Skip to content

@hobom-grid/core


@hobom-grid/core / InteractionAction

Type Alias: InteractionAction

InteractionAction = { hit: HitTarget; mods: ModifierKeys; point: GridPoint; type: "PointerMoved"; } | { button: PointerButton; hit: HitTarget; mods: ModifierKeys; point: GridPoint; type: "PointerDown"; } | { button: PointerButton; hit: HitTarget; mods: ModifierKeys; point: GridPoint; type: "PointerUp"; } | { type: "PointerLeave"; } | { key: NavKey; mods: ModifierKeys; type: "KeyDown"; } | { type: "FocusGained"; } | { type: "FocusLost"; } | { cell: GridCellRef | null; type: "SetActiveCell"; } | { type: "ClearSelection"; } | { hit: HitTarget; mods: ModifierKeys; point: GridPoint; type: "PointerDragStart"; } | { hit: HitTarget; mods: ModifierKeys; point: GridPoint; type: "PointerDragMove"; } | { hit: HitTarget; mods: ModifierKeys; point: GridPoint; type: "PointerDragEnd"; }

Defined in: contracts/interaction-action.ts:26