G-code Preview — API Reference
    Preparing search index...

    A serializable snapshot of the camera (#268), in scene coordinates — a stable contract a dashboard may persist across sessions. InteractiveStage.getCameraState reads it and InteractiveStage.setCameraState restores it verbatim (no re-fit to the current model).

    interface CameraState {
        cameraMode: CameraMode;
        position: Vec3;
        target: Vec3;
        zoom: number;
    }
    Index

    Properties

    cameraMode: CameraMode
    position: Vec3
    target: Vec3
    zoom: number

    Camera zoom factor (three's camera.zoom); mainly meaningful for the orthographic view.