GesturePoint
import type { GesturePoint } from 'pixi-silk/ui/gesture';
A point in the gesture’s space plus the event behind it.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
buttons | number | buttons bit mask of the event (1 left, 2 right, 4 middle). | ui/gesture.ts:18 |
dx | number | Movement since the press, local units. | ui/gesture.ts:10 |
dy | number | - | ui/gesture.ts:11 |
event | FederatedPointerEvent | The live event. Pixi pools events: read it inside the callback only. | ui/gesture.ts:22 |
global | Point | Position on the canvas in CSS pixels (a copy). | ui/gesture.ts:20 |
kind | InputKind | Pointer kind, from the event’s pointerType. Unknown kinds count as mouse. | ui/gesture.ts:13 |
pointerId | number | Copied from the event, so a point stays valid after Pixi reuses the event object. | ui/gesture.ts:15 |
pointerType | string | - | ui/gesture.ts:16 |
x | number | Position in the gesture’s space, local units. | ui/gesture.ts:7 |
y | number | - | ui/gesture.ts:8 |