Optionalname: stringClear selection
Destroy the embed viewer and clean up resources
Zoom the camera to fit specific entities (or all if no IDs given)
Optionalids: number[]Get info about all loaded models
Capture a screenshot of the viewport
Optionalwidth: numberOptionalheight: numberHide specific entities
Isolate (show only) specific entities
Load a model from an ArrayBuffer (zero-copy transfer)
Remove a model from the federation
Reset all color overrides
Select entities by global IDs
Select entities by IFC GlobalId GUIDs
Set the camera's absolute orientation, in degrees, around whatever it is
currently looking at. zoom is reserved and ignored by the viewer — see
InboundPayloads['SET_CAMERA'].
Optionalzoom: numberSet color overrides for entities. Keys are entity IDs, values are [r,g,b,a].
Control the section plane
Change the color theme
Optionalbg: stringToggle IFC type visibility: spaces, spatialZones, openings,
virtualElements, site, ifcAnnotations, ifcGrid. Omitted flags are
left as they are. See TypeVisibilityFlags for the classes each one gates.
Show specific entities
Show all entities (reset visibility)
StaticcreateCreate an embed viewer instance. Returns a promise that resolves after the handshake.
Add a model to the federation