@squareys/webdecks-sdk - v0.0.0
    Preparing search index...

    Interface ViewportOptions

    interface ViewportOptions {
        devicePixelRatio?: number;
        zoom?: number;
        autoResize?: boolean;
        presentMode?: "onDemand" | "continuous";
    }
    Index
    devicePixelRatio?: number

    Backing pixels per CSS pixel. Defaults to window.devicePixelRatio (or 1).

    zoom?: number

    View scale applied by the engine. Defaults to 1.

    autoResize?: boolean

    Track the canvas's CSS size with a ResizeObserver and repaint on change. Default true.

    presentMode?: "onDemand" | "continuous"

    "onDemand" (default) presents only when something requests a frame (a model edit, a resize, an explicit Viewport.requestFrame); "continuous" presents every animation frame, for hosts that animate.