copper3d / Modules / Controls/gestureGate
Module: Controls/gestureGate
Table of contents
Interfaces
Functions
Functions
beginGesture
▸ beginGesture(controls, axes?): () => void
Suppresses the requested axes and returns the function that restores them.
Parameters
| Name | Type | Description |
|---|---|---|
controls | AxisGatedControls | the scene's controls; trackball or orbit, either spelling |
axes | GestureAxes | which axes the gesture needs; rotate only by default |
Returns
fn
▸ (): void
Returns
void
Defined in
src/Controls/gestureGate.ts:66
isGestureActive
▸ isGestureActive(controls): boolean
Whether a gesture currently holds this controls object. Mainly for tests.
Parameters
| Name | Type |
|---|---|
controls | AxisGatedControls |
Returns
boolean