Skip to content

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

NameTypeDescription
controlsAxisGatedControlsthe scene's controls; trackball or orbit, either spelling
axesGestureAxeswhich 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

NameType
controlsAxisGatedControls

Returns

boolean

Defined in

src/Controls/gestureGate.ts:118