API reference / edit-controls / EditControlsEngine
Interface: EditControlsEngine
Defined in: tacticalgraphics/ui/editControls.ts:47
What the controls need from an engine. Every engine returned by createTacticalGraphics has it.
Methods
beginGesture()
ts
beginGesture(kind, event): boolean;Defined in: tacticalgraphics/ui/editControls.ts:50
Parameters
kind
event
PointerEvent
Returns
boolean
getInteractionMode()?
ts
optional getInteractionMode(): EditMode;Defined in: tacticalgraphics/ui/editControls.ts:51
Returns
getSelection()?
ts
optional getSelection():
| SelectedGraphic
| null;Defined in: tacticalgraphics/ui/editControls.ts:53
The selected graphic, which an action's visible and onPress are given.
Returns
| SelectedGraphic | null
selectionBox()
ts
selectionBox():
| SelectionBox
| undefined;Defined in: tacticalgraphics/ui/editControls.ts:48
Returns
| SelectionBox | undefined
selectionGestures()
ts
selectionGestures():
| AllowedGestures
| null;Defined in: tacticalgraphics/ui/editControls.ts:49
Returns
| AllowedGestures | null