WasmGPU.createControls¶
Summary¶
WasmGPU.createControls is the camera-controls factory facade. It creates navigation, orbit, trackball, and fly controllers bound to a camera and canvas element; the returned controller is caller-owned and should be disposed when it is no longer needed.
Canonical documentation namepaths use createControls.* for the directly traversable controller factories and createControls.*#* for members of a returned controller instance.
Syntax¶
Available APIs¶
- createControls.navigation creates the unified navigation controller.
- createControls.orbit, createControls.trackball, and createControls.fly create mode-specific controllers.
- createControls.navigation#setView and createControls.navigation#fitScene orient a returned navigation controller.
- createControls.navigation#dispose releases DOM listeners owned by the controller.