Interface StreamedIfcOpenOptions

Options for a streamed IFC open. All optional; defaults suit a browser worker over an OPFS-backed store.

interface StreamedIfcOpenOptions {
    chunkBytes?: number;
    maxResidentChunks?: number;
    onRecordIndexed?: ((localID: number, expressID: number, typeID: undefined | EntityTypesIfc) => void);
    pool?: number;
}

Properties

chunkBytes?: number

Windowed provider chunk size (default: provider's).

maxResidentChunks?: number

Windowed provider LRU cap in chunks (default: provider's).

onRecordIndexed?: ((localID: number, expressID: number, typeID: undefined | EntityTypesIfc) => void)

Live per-record event (localID, expressID, typeID) — the M2 seam for incremental consumers (type index, roots, cross-refs) that run while the model is still parsing. Must be synchronous and cheap.

pool?: number

Parse window size in bytes (default 1 MiB).