Reference·JavaScript · @bimworks/viewer3dJavaScript

OverlayItemCommon

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface OverlayItemCommon

Fields common to every overlay item (docs/check-overlays-design.md §3.1)

Members#

Member Kind Description
color Property "#rrggbb" or "#rrggbbaa", overrides the role colour
depth Property "ghost" draws as "test" until the ghost pass arrives
id Property Unique within the overlay
label Property
labelShow Property "hover": the label only while the item or one of its qids is hovered; default "always"
qids Property Related model objects
role Property
storey Property
tooltip Property
type Property
views Property

color#

TypeScript#
color?: string

"#rrggbb" or "#rrggbbaa", overrides the role colour

depth#

TypeScript#
depth?: "always" | "test" | "ghost"

"ghost" draws as "test" until the ghost pass arrives

id#

TypeScript#
id: string

Unique within the overlay

label#

TypeScript#
label?: string

labelShow#

TypeScript#
labelShow?: "always" | "hover"

"hover": the label only while the item or one of its qids is hovered; default "always"

qids#

TypeScript#
qids?: (string)[]

Related model objects

role#

TypeScript#
role?: OverlayRole

storey#

TypeScript#
storey?: string

tooltip#

TypeScript#
tooltip?: string

type#

TypeScript#
type: string

views#

TypeScript#
views?: ("2d" | "3d")[]