supervision-js
    Preparing search index...

    Type Alias DecodeResolutionStrategy

    DecodeResolutionStrategy:
        | { kind: "native" }
        | { kind: "viewport"; maxDevicePixelRatio: number }
        | { kind: "capped"; maxWidth: number }
        | {
            kind: "displayBox";
            boxWidth: number;
            boxHeight: number;
            devicePixelRatio: number;
            maxDevicePixelRatio: number;
        }

    A decode-resolution choice as serializable data. Held as a descriptor rather than a closure so the choice can cross the worker boundary in a load command; resolveDecodeDimensions runs the width math worker-side once native dimensions are known. The resolver clamps any result above native so no strategy can upscale during decode.