G-code Preview — API Reference
    Preparing search index...
    ModelViewerEvent:
        | { info: ModelReadyInfo; type: "ready" }
        | { state: CameraState; type: "camera-changed" }
        | { code: string; message: string; type: "error" }
        | { feature: string; message: string; type: "renderer-unsupported" }
        | { type: "context-lost" }
        | { type: "context-restored" }

    Type Declaration

    • { info: ModelReadyInfo; type: "ready" }
    • { state: CameraState; type: "camera-changed" }

      Fires once per user camera gesture (orbit/zoom/pan) after it settles — never for programmatic moves.

    • { code: string; message: string; type: "error" }
    • { feature: string; message: string; type: "renderer-unsupported" }
    • { type: "context-lost" }
    • { type: "context-restored" }