Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.9
    Preparing search index...

    Interface WebGLContextLossOptions

    interface WebGLContextLossOptions {
        autoRestore?: boolean;
        canvasRef?: RefObject<HTMLCanvasElement>;
        maxRetries?: number;
        mountDelay?: number;
        onContextLost?: () => void;
        onContextRestored?: () => void;
    }
    Index

    Properties

    autoRestore?: boolean

    Whether to attempt automatic restoration (default: true)

    canvasRef?: RefObject<HTMLCanvasElement>

    Optional canvas ref to attach to a specific canvas element If not provided, will query for the first canvas in the document

    maxRetries?: number

    Maximum attempts to find canvas element (default: 5)

    mountDelay?: number

    Delay in ms before attempting to query for canvas (default: 50) Helps avoid race conditions during screen transitions

    onContextLost?: () => void

    Callback when context is lost

    onContextRestored?: () => void

    Callback when context is restored