The type of the element.
The element's view type, if any.
The element's model type, if any.
The element's emitter type, if any.
The type of the element.
The element's view type, if any.
The element's model type, if any.
The element's emitter type, if any.
The element to attach to, plus the tool name, embedded target, activation event, click mode, mapped key, and activation callbacks.
Create a tool bound to an element. Anything omitted from properties falls back to the
value already declared on the instance, then to a default — the event manager to
GradumEventManager.instance, the activation event to the default click name, and the click mode
to ClickMode.left.
ReadonlyembeddedReadonlymanagerReadonlyactivationReadonlyclickReadonlykeyProtectedsetupProtectedsetupProtectedsetupFunction
initialize
Initialization function that calls GradumSelector.makeTool on this.element, sets it up,
and attaches all the defined tool behaviors.
Function
customActivation
The tool element itself.
Optionalmanager: GradumEventManager
The event manager instance this tool should register against. Defaults
to GradumEventManager.instance.
GradumTool
Description
A named mode that changes what interacting with an element does. Its
@behaviormethods run during the capture phase of the event loop, before any interactor sees the event, so a tool can claim an interaction and stop it reaching the element underneath. Only the active tool for a given click mode receives events.