Create controls for a stage and optionally attach their browser event listeners.
ReadonlycameraPerspective camera manipulated by these controls.
ReadonlycanvasCanvas that receives pointer, wheel, and touch events.
Whether pan gestures are accepted.
Whether orbit gestures are accepted.
Whether dolly gestures are accepted.
Whether browser event listeners are currently attached.
Maximum camera distance from the target.
Maximum polar orbit angle in radians.
Minimum camera distance from the target.
Minimum polar orbit angle in radians.
Optional callback invoked after the controls change the camera view.
Pan sensitivity multiplier.
Orbit sensitivity multiplier.
ReadonlystageStage that owns the controlled canvas and default camera.
ReadonlytargetMutable orbit center in the camera parent's coordinate space.
Dolly sensitivity multiplier.
Detach all listeners and restore the canvas touch-action style.
Release the browser event listeners owned by these controls.
Move the camera toward its target. Values above one zoom in; values below one zoom out.
Attach pointer, wheel, touch, and context-menu listeners to the canvas.
Pan in screen pixels while preserving the camera-to-target offset.
Restore the camera position and target captured at construction time.
Orbit by a pointer delta measured in CSS pixels.
Reorient the camera toward the target and enforce the configured orbit limits.
Camera-centric orbit, dolly, and pan controls for a PerspectiveCamera.
Mouse: drag to orbit, right-drag or Shift-drag to pan, and wheel to dolly. Touch: drag with one finger to orbit, or use two fingers to pan and pinch-to-dolly.