IFClite TypeScript API
    Preparing search index...

    Interface IfcStoreBase

    interface IfcStoreBase {
        entities: EntityTable;
        entityCount: number;
        entityIndex: {
            byId: ReadonlyMapLike<number, unknown>;
            byType: ReadonlyMapLike<string, number[]>;
        };
        fileSize: number;
        properties: PropertyTable;
        quantities: QuantityTable;
        relationships: RelationshipGraph;
        schemaVersion: "IFC2X3"
        | "IFC4"
        | "IFC4X3"
        | "IFC5";
        selectionRelationshipIndex?: {
            exceptionalDefinitionTargets: Map<number, number[]>;
            exceptionalSubjects: Map<number, number[]>;
            missing: number[];
            retryTypeRows: number[];
            typeDefinitions: Map<number, number[]>;
            typeExceptionalReferences: Map<number, number>;
            typeReferences: number;
            typeRefusals: Map<number, string>;
            typeRows: number;
            unverifiedTypeRows: number[];
        };
        sourceHeader?: IfcSourceHeader;
        sourceKind?: "step"
        | "tabular";
        spatialHierarchy?: SpatialHierarchy;
        spatialIndex?: SpatialIndex;
        getEntitiesByType(typeName: string): IfcEntity[];
        getEntity(expressId: number): IfcEntity | null;
        getProperties(expressId: number): PropertySet[];
        getQuantities(expressId: number): QuantitySet[];
    }

    Hierarchy (View Summary)

    Index
    entities: EntityTable
    entityCount: number
    entityIndex: {
        byId: ReadonlyMapLike<number, unknown>;
        byType: ReadonlyMapLike<string, number[]>;
    }
    fileSize: number
    properties: PropertyTable
    quantities: QuantityTable
    relationships: RelationshipGraph
    schemaVersion: "IFC2X3" | "IFC4" | "IFC4X3" | "IFC5"
    selectionRelationshipIndex?: {
        exceptionalDefinitionTargets: Map<number, number[]>;
        exceptionalSubjects: Map<number, number[]>;
        missing: number[];
        retryTypeRows: number[];
        typeDefinitions: Map<number, number[]>;
        typeExceptionalReferences: Map<number, number>;
        typeReferences: number;
        typeRefusals: Map<number, string>;
        typeRows: number;
        unverifiedTypeRows: number[];
    }

    Parser-worker coverage for bounded current type reads, retained by worker/cache transport.

    Type Declaration

    • exceptionalDefinitionTargets: Map<number, number[]>
    • exceptionalSubjects: Map<number, number[]>
    • missing: number[]
    • retryTypeRows: number[]
    • typeDefinitions: Map<number, number[]>
    • typeExceptionalReferences: Map<number, number>

      Canonical fallback facts for rows the numeric byte scanner could not index.

    • typeReferences: number
    • typeRefusals: Map<number, string>
    • typeRows: number
    • unverifiedTypeRows: number[]
    sourceHeader?: IfcSourceHeader

    Verbatim HEADER fields from the source file, when this store was built by parsing a STEP/IFC file. Absent for created-from-scratch models. Lets a round-trip export preserve the original FILE_DESCRIPTION items and the exact FILE_SCHEMA token (e.g. IFC4X3_ADD2).

    sourceKind?: "step" | "tabular"

    What backs this store's rows, which schemaVersion does not say.

    • 'step': STEP records. source holds them and entityIndex addresses them.
    • 'tabular': a reader handed over finished tables (IFCX is one). source holds the file's bytes, but they are not STEP, and entityIndex is empty: the entity table is the only list of rows.

    Absent on a store that states neither (synthetic, cache-restored, server-built). Ask sourceKind === 'tabular'; do not infer it from the schema label.

    Absent therefore reads as "not tabular", so the STEP-only gates keep their schemaVersion === 'IFC5' and empty-source clauses alongside this one: those still carry every store built before the marker existed (the synthetic builder sets no marker and no bytes). Dropping either clause would admit such a store, which is the defect #9890 set out to remove.

    spatialHierarchy?: SpatialHierarchy
    spatialIndex?: SpatialIndex
    • Parameters

      • typeName: string

      Returns IfcEntity[]

    • Parameters

      • expressId: number

      Returns IfcEntity | null