Clear action
Use this action with change({ id: 'Clear', context }).
Context
paneIndex?: numberannotations:true|falsestudies:true|false
Behavior
Clears annotations, studies, or both.
- If
paneIndexis provided, the action applies only to that pane. - If
paneIndexis omitted, it applies to all panes. - If both
annotationsandstudiesare omitted/false, nothing changes. - If removing studies empties a standalone pane, that pane is removed even if it still has annotations.