OverlayGltfItem
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
interface OverlayGltfItemA glTF 2.0 model (.glb, or .gltf with embedded buffers; no Draco or meshopt) in the overlay's frame:
its coordinates taken as raw world mm of the bound model, Z up. Fetched with the viewer's own client,
so download URLs that need its credentials work; drawn one mesh per material colour once it has
loaded (color or role recolours all of it). A check's helper geometry (docs/ui-api-wp5/README.md §2.5)
Inheritance and interfaces#
Members#
| Member | Kind | Description |
|---|---|---|
| color | Property | "#rrggbb" or "#rrggbbaa", overrides the role colour inheritedFrom: OverlayItemCommon.color |
| depth | Property | "ghost" draws as "test" until the ghost pass arrives inheritedFrom: OverlayItemCommon.depth |
| id | Property | Unique within the overlay inheritedFrom: OverlayItemCommon.id |
| label | Property | inheritedFrom: OverlayItemCommon.label |
| labelShow | Property | "hover": the label only while the item or one of its qids is hovered; default "always" inheritedFrom: OverlayItemCommon.labelShow |
| qids | Property | Related model objects inheritedFrom: OverlayItemCommon.qids |
| role | Property | inheritedFrom: OverlayItemCommon.role |
| storey | Property | inheritedFrom: OverlayItemCommon.storey |
| tooltip | Property | inheritedFrom: OverlayItemCommon.tooltip |
| type | Property | overwrites: OverlayItemCommon.type |
| url | Property | |
| views | Property | inheritedFrom: OverlayItemCommon.views |
color#
color?: string"#rrggbb" or "#rrggbbaa", overrides the role colour
inheritedFrom: OverlayItemCommon.color
depth#
depth?: "always" | "test" | "ghost""ghost" draws as "test" until the ghost pass arrives
inheritedFrom: OverlayItemCommon.depth
id#
id: stringUnique within the overlay
inheritedFrom: OverlayItemCommon.id
label#
label?: stringinheritedFrom: OverlayItemCommon.label
labelShow#
labelShow?: "always" | "hover""hover": the label only while the item or one of its qids is hovered; default "always"
inheritedFrom: OverlayItemCommon.labelShow
qids#
qids?: (string)[]Related model objects
inheritedFrom: OverlayItemCommon.qids
role#
role?: OverlayRoleinheritedFrom: OverlayItemCommon.role
storey#
storey?: stringinheritedFrom: OverlayItemCommon.storey
tooltip#
tooltip?: stringinheritedFrom: OverlayItemCommon.tooltip
type#
type: "gltf"overwrites: OverlayItemCommon.type
url#
url: stringviews#
views?: ("2d" | "3d")[]inheritedFrom: OverlayItemCommon.views