Reference·JavaScript · @bimworks/viewer3dJavaScript

OverlayPathItem

Interface in @bimworks/viewer3d.

API catalogue · @bimworks/viewer3d · Interface

TypeScript#
interface OverlayPathItem

A 3D polyline on the walking surface (an escape route), drawn as a tube ("snake") raised by lift, in front of the model by default (depth "always"). Lengths in mm (docs/check-result-interaction-design.md §7)

Inheritance and interfaces#

Members#

Member Kind Description
arrows Property Direction cones every spacing mm along the drawn path
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
directed Property Runs from the first point to the last: a cone at the end
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
lift Property mm above the points, default the radius + 10
marks Property A collar (and its label above it) at an arc length on the points as sent
points Property Flat x,y,z triples on the walking surface
qids Property Related model objects inheritedFrom: OverlayItemCommon.qids
role Property inheritedFrom: OverlayItemCommon.role
segmentRoles Property [fromPoint, toPoint, role]: those segments in another role's colour
stations Property Not drawn yet
storey Property inheritedFrom: OverlayItemCommon.storey
style Property Only "snake" with rounded corners is drawn so far; radius default 60 mm
tooltip Property inheritedFrom: OverlayItemCommon.tooltip
type Property overwrites: OverlayItemCommon.type
views Property inheritedFrom: OverlayItemCommon.views

arrows#

TypeScript#
arrows?: { spacing: number }

Direction cones every spacing mm along the drawn path

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

directed#

TypeScript#
directed?: boolean

Runs from the first point to the last: a cone at the end

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

lift#

TypeScript#
lift?: number

mm above the points, default the radius + 10

marks#

TypeScript#
marks?: ({ at: number; kind?: string; label?: string })[]

A collar (and its label above it) at an arc length on the points as sent

points#

TypeScript#
points: (number)[]

Flat x,y,z triples on the walking surface

qids#

TypeScript#
qids?: (string)[]

Related model objects

inheritedFrom: OverlayItemCommon.qids

role#

TypeScript#
role?: OverlayRole

inheritedFrom: OverlayItemCommon.role

segmentRoles#

TypeScript#
segmentRoles?: ([number, number, OverlayRole])[]

[fromPoint, toPoint, role]: those segments in another role's colour

stations#

TypeScript#
stations?: { interval: number; labels?: boolean }

Not drawn yet

storey#

TypeScript#
storey?: string

inheritedFrom: OverlayItemCommon.storey

style#

TypeScript#
style?: { kind?: "line" | "snake" | "ribbon"; radius?: number; smooth?: "none" | "corners" | "spline" }

Only "snake" with rounded corners is drawn so far; radius default 60 mm

tooltip#

TypeScript#
tooltip?: string

inheritedFrom: OverlayItemCommon.tooltip

type#

TypeScript#
type: "path"

overwrites: OverlayItemCommon.type

views#

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

inheritedFrom: OverlayItemCommon.views