Skip to content

Clear action

Use this action with change({ id: 'Clear', context }).

Context

  • paneIndex?: number
  • annotations: true | false
  • studies: true | false

Behavior

Clears annotations, studies, or both.

  • If paneIndex is provided, the action applies only to that pane.
  • If paneIndex is omitted, it applies to all panes.
  • If both annotations and studies are omitted/false, nothing changes.
  • If removing studies empties a standalone pane, that pane is removed even if it still has annotations.