interface StageOptions {
    appHeight: number;
    appWidth: number;
    boundsMargin: number | [number, number, number, number];
    canvas: OffscreenCanvas | HTMLCanvasElement;
    clearColor: number;
    createImageBitmapSupport:
        | "basic"
        | "auto"
        | "options"
        | "full";
    deviceLogicalPixelRatio: number;
    devicePhysicalPixelRatio: number;
    enableContextSpy: boolean;
    eventBus: EventEmitter;
    fontEngines: (typeof SdfTextRenderer | typeof CanvasTextRenderer)[];
    forceWebGL2: boolean;
    fpsUpdateInterval: number;
    inspector: boolean;
    numImageWorkers: number;
    platform: Platform | WebPlatform;
    quadBufferSize: number;
    renderEngine: typeof WebGlCoreRenderer | typeof CanvasRenderer;
    strictBounds: boolean;
    textureMemory: TextureMemoryManagerSettings;
    textureProcessingTimeLimit: number;
}

Properties

appHeight: number
appWidth: number
boundsMargin: number | [number, number, number, number]
canvas: OffscreenCanvas | HTMLCanvasElement
clearColor: number
createImageBitmapSupport:
    | "basic"
    | "auto"
    | "options"
    | "full"
deviceLogicalPixelRatio: number
devicePhysicalPixelRatio: number
enableContextSpy: boolean
eventBus: EventEmitter
fontEngines: (typeof SdfTextRenderer | typeof CanvasTextRenderer)[]
forceWebGL2: boolean
fpsUpdateInterval: number
inspector: boolean
numImageWorkers: number
platform: Platform | WebPlatform
quadBufferSize: number
renderEngine: typeof WebGlCoreRenderer | typeof CanvasRenderer
strictBounds: boolean
textureMemory: TextureMemoryManagerSettings
textureProcessingTimeLimit: number