ToolEvent
What happened, handed to a tool’s handlers.
Properties
Section titled “Properties”
readonlyalt:boolean
readonlyctrl:boolean
Ctrl, or Cmd on macOS.
readonlykey:string|null
For key events: a letter, "enter", "backspace", "escape", "space", an arrow such as "left", or a modifier.
picked
Section titled “picked”
readonlypicked: {entity:AnyEntity;path: readonly (ComponentInstance|Group)[]; } |null
The deepest entity under the pointer, such as a face inside a group, and the groups and
instances above it, from the model root down. The Select tool would pick the first of
path below Model.activePath, or entity when there is none.
readonlypoint:ToolPoint|null
The snapped point under the pointer, or null over empty space.
reason
Section titled “reason”
readonlyreason:"escape"|"reselected"|"history"|"focusLost"|null
For "cancel": why the gesture ended.
repeat
Section titled “repeat”
readonlyrepeat:boolean
readonlyshift:boolean
readonlytext:string|null
For "value": what the user typed in the measurement box.
readonlytype:"value"|"activate"|"deactivate"|"suspend"|"resume"|"move"|"down"|"up"|"doubleClick"|"keyDown"|"keyUp"|"cancel"
readonlyx:number
Pointer position in logical viewport pixels.
readonlyy:number