Escape hatch for @xstate/react integration (e.g. useSelector).
Prefer the typed methods on this class for all other use cases.
true while the underlying XState actor is running (i.e. not yet stopped).
true after destroy has been called. The instance cannot be reused once destroyed.
The current top-level layers in their display order.
Returns the managed item for id, or undefined if it does not exist.
Alias for destroy.
Resets layer state, unregisters the adapter, cancels all subscriptions, and stops the actor.
Removes all layers and groups, returning the manager to its initial empty state.
Attach or replace the adapter at any time.
Pass null to detach the current adapter.
Removes the layer or group with the given layerId.
Shows or hides the layer with the given layerId.
Sets the opacity (0–1) for the layer with the given layerId.
Sets the time info for the layer with the given layerId.
Framework-agnostic manager for an ordered collection of layers and layer groups.
TLayeris the consumer's layer data type;TGroupis the group data type (defaults toTLayerwhen omitted). Lifecycle events are forwarded to both the optional LayerManagerAdapter and the callbacks in LayerManagerOptions.