sej
    Preparing search index...

    Type Alias ViewportControls

    ViewportControls: {
        dispose: (delta: number) => void;
        domElement: HTMLCanvasElement;
        enabled: boolean;
        focus: (...args: any[]) => void;
        object: THREE.Object3D<THREE.Object3DEventMap>;
        setCamera: (camera: THREE.Camera) => void;
        update: (delta: number) => void;
    } & THREE.EventDispatcher<{ change: never }> & Test & AddDebug

    The ViewportControls controls an object in the viewport. It's usually the camera.

    Type declaration

    • dispose: (delta: number) => void

      Dispose the controls and its event listeners.

    • domElement: HTMLCanvasElement

      Reference to the canvas element where the controls are attached. I.e. where pointer events are listened.

    • enabled: boolean

      Whether the controls are enabled or not.

      true
      
    • focus: (...args: any[]) => void

      Focus the controls on the given target.

    • object: THREE.Object3D<THREE.Object3DEventMap>

      Object that is begin controlled. Usually the camera.

    • setCamera: (camera: THREE.Camera) => void

      Set the camera to be used by this renderer.

    • update: (delta: number) => void

      Call this on every frame to update the controls.