PinchEvent
One step of a two-finger pinch or a ctrl+wheel (trackpad) pinch. Position in client pixels.
Defined in: engine/src/input/gestures.ts:60
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
dx | number | Midpoint movement since the previous pinch event. | engine/src/input/gestures.ts:64 |
dy | number | - | engine/src/input/gestures.ts:65 |
ratio | number | Scale change since the previous pinch event; > 1 spreads the fingers. | engine/src/input/gestures.ts:62 |
source | "touch" | "wheel" | A wheel pinch has no midpoint movement (dx, dy are 0). | engine/src/input/gestures.ts:70 |
x | number | Midpoint of the two fingers, or the cursor for a wheel pinch. | engine/src/input/gestures.ts:67 |
y | number | - | engine/src/input/gestures.ts:68 |
OrbitOptions
Options for makeOrbitController. Angles are in degrees; distance and target are in world units (voxels), as the renderer's makeCamera takes them.
PointerState
A pointer that is down on the surface, as tracked by Input. The object is shared by every listener on the input and updated in place, so copy what you need to keep.