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

    Interface FakeOpfsRootOptions

    Options for createFakeOpfsRoot.

    interface FakeOpfsRootOptions {
        datasetDir?: unknown;
        onRemoveDataset?: (datasetId: string) => void;
        estimate?: () => Promise<any>;
    }
    Index
    datasetDir?: unknown

    A test-built dataset-level handle to hand out instead of the default flat one. Every dataset id resolves to it.

    onRemoveDataset?: (datasetId: string) => void

    What removing a dataset directory does (luxarDir.removeEntry(id, …)). Defaults to wiping the built-in files / metaFiles; a test supplying its own datasetDir passes the wipe of ITS maps here.

    estimate?: () => Promise<any>

    navigator.storage.estimate() replacement (default: 10 GB quota, 1 GB used).