Skip to content

MosaicState

@whittakertech/mosaic / MosaicState

Enumeration: MosaicState

Defined in: state.ts:5

Represents the current interaction lifecycle state of a MosaicJS instance. States are mutually exclusive and transition deterministically.

Enumeration Members

Destroyed

Destroyed: "destroyed";

Defined in: state.ts:25

Instance has been destroyed and will not process further events


Dragging

Dragging: "dragging";

Defined in: state.ts:13

Active drag operation in progress


Dropping

Dropping: "dropping";

Defined in: state.ts:16

Pointer released; evaluating constraints


Idle

Idle: "idle";

Defined in: state.ts:7

No active interaction


Mutated

Mutated: "mutated";

Defined in: state.ts:19

A mutation has been applied and is awaiting confirmation


PointerDown

PointerDown: "pointerdown";

Defined in: state.ts:10

Pointer is down but no drag threshold has been exceeded


RollingBack

RollingBack: "rollback";

Defined in: state.ts:22

Restoring the previous state after a rejected mutation