Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface SceneIdentityWatchdogOptions

    interface SceneIdentityWatchdogOptions {
        datasetUrl: string;
        expectedContentHash: string | null;
        expectedAttrsJson?: string | null;
        intervalMs?: number;
        fetchImpl?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
    }
    Index
    datasetUrl: string

    Dataset base URL (the ?src= value). A trailing slash, a query string and a fragment are all tolerated: the probe appends .zattrs to the path, keeps the query, and drops the fragment.

    expectedContentHash: string | null

    content_hash of the scene actually loaded (null when absent).

    expectedAttrsJson?: string | null

    canonicalJson of the root attrs actually loaded — the identity baseline for HASH-LESS scenes (bare nodes), compared against the canonicalized probe body. Baselines on what was loaded, so even a swap before the first probe is caught (a first-probe baseline would adopt the impostor as the identity).

    intervalMs?: number

    Probe cadence override (tests).

    fetchImpl?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Fetch override (tests).

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>