IFClite TypeScript API
    Preparing search index...

    Abstraction over the viewer's internal state — SDK namespaces use this.

    Each namespace is a typed property with methods matching the adapter contract. SDK namespace classes call backend.query.entities(...) instead of dispatch().

    BimHost (wire protocol) uses dispatchToBackend() to route string-based SdkRequests to the typed namespace methods.

    Hierarchy (View Summary)

    Implements

    Index
    checkEntityRef: EntityRefCheck

    The reference check bim.mutate.* is gated on (null when writable, else the reason), exposed because the mutation TOOLS write into getMutationView() directly and need the same gate (#3764).

    IFC 5D cost reads, when the backend retains loaded source bytes.

    Structural analysis reads, when supported by the backend.

    Persistent colouring — present only on local backends with store access.

    Mutable so the MCP server can swap in streaming adapters when the viewer subprocess starts, then revert when it closes. Marked readonly on the BimBackend interface but the underlying instance is ours to manage.

    • Whether modelId names the one model this backend holds.

      Parameters

      • modelId: string

      Returns boolean

    • Refuse an unknown model id loudly, at whichever surface was handed it.

      Parameters

      • modelId: string

      Returns void

    • Restore no-op viewer/visibility adapters (for ViewerManager close).

      Returns void

    • Returns void

    • Force creation of the editor (used by mutation tools that always need it).

      Returns StoreEditor

    • Parameters

      • provider: any

      Returns void

    • Subscribe to viewer events

      Parameters

      Returns () => void