Skip to content

ToolEvent

ToolEvent = InitialTool | ToolActivation | ToolStateChange

A tool lifecycle event delivered to observeToolChanges() callbacks.

Three variants are possible:

  • 'Initial' — the current tool when you first subscribe
  • 'Activation' — the user switched to a new tool
  • 'StateChange' — the active tool changed its internal state