Reference·JavaScript · @bimworks/viewer3dJavaScript

OverlayArrowItem

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface OverlayArrowItem

A 3D arrow; lengths in mm. size "screen" keeps ~48 px on screen and ignores length

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
direction Property
headLength Property mm, default 0.3 x length; the thickness follows it (head radius 0.4 x headLength, shaft a third of that)
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
length Property
origin Property
qids Property Related model objects inheritedFrom: OverlayItemCommon.qids
role Property inheritedFrom: OverlayItemCommon.role
size Property
storey Property inheritedFrom: OverlayItemCommon.storey
tooltip Property inheritedFrom: OverlayItemCommon.tooltip
type Property overwrites: OverlayItemCommon.type
views Property inheritedFrom: OverlayItemCommon.views

color#

TypeScript#
color?: string

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

inheritedFrom: OverlayItemCommon.color

depth#

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

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

inheritedFrom: OverlayItemCommon.depth

direction#

TypeScript#
direction: [number, number, number]

headLength#

TypeScript#
headLength?: number

mm, default 0.3 x length; the thickness follows it (head radius 0.4 x headLength, shaft a third of that)

id#

TypeScript#
id: string

Unique within the overlay

inheritedFrom: OverlayItemCommon.id

label#

TypeScript#
label?: string

inheritedFrom: OverlayItemCommon.label

labelShow#

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

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

inheritedFrom: OverlayItemCommon.labelShow

length#

TypeScript#
length?: number

origin#

TypeScript#
origin: [number, number, number]

qids#

TypeScript#
qids?: (string)[]

Related model objects

inheritedFrom: OverlayItemCommon.qids

role#

TypeScript#
role?: OverlayRole

inheritedFrom: OverlayItemCommon.role

size#

TypeScript#
size?: "screen" | "world"

storey#

TypeScript#
storey?: string

inheritedFrom: OverlayItemCommon.storey

tooltip#

TypeScript#
tooltip?: string

inheritedFrom: OverlayItemCommon.tooltip

type#

TypeScript#
type: "arrow"

overwrites: OverlayItemCommon.type

views#

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

inheritedFrom: OverlayItemCommon.views