Skip to main content

Interface: ToggleLayerAction

Defined in: runtime/action.ts:20

Flips (or explicitly sets) a layer's visibility.

Properties

layerId

layerId: string

Defined in: runtime/action.ts:23

Id of the layer to toggle — must match spec.layers[].id.


rationale?

optional rationale?: string

Defined in: runtime/action.ts:27

Optional free-text reason, preserved on the action log entry for audit.


type

type: "toggle-layer"

Defined in: runtime/action.ts:21


visible?

optional visible?: boolean

Defined in: runtime/action.ts:25

Explicit next visibility. Omitted: flips the layer's current visibility.