G-code Preview — API Reference
    Preparing search index...
    interface ModelViewer {
        capture(opts?: CaptureOptions): Promise<Blob>;
        dispose(): void;
        frame(): void;
        getCameraState(): null | CameraState;
        onEvent(cb: (e: ModelViewerEvent) => void): () => void;
        resize(width: number, height: number): void;
        setBackground(bg: ModelBackground): void;
        setCameraState(state: CameraState): void;
        setInteractionQuality(mode: "off" | "auto"): void;
        setRenderScope(scope: null | RenderScope): void;
        setSource(input: ModelSourceInput): Promise<ModelReadyInfo>;
        setView(view: CameraView): void;
    }
    Index

    Methods

    • Render only a subset of the current source (DD-030 D2): { plateId }, { objectIds }, or an { instanceFilter }; null restores the whole source. Rebuilds and reframes to the subset. Gate a { plateId } on the ready info's plates being present — an unmatched scope renders empty.

      Parameters

      Returns void