OverlayPathItem
Interface in @bimworks/viewer3d.
API catalogue · @bimworks/viewer3d · Interface
interface OverlayPathItemA 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#
arrows?: { spacing: number }Direction cones every spacing mm along the drawn path
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
directed#
directed?: booleanRuns from the first point to the last: a cone at the end
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
lift#
lift?: numbermm above the points, default the radius + 10
marks#
marks?: ({ at: number; kind?: string; label?: string })[]A collar (and its label above it) at an arc length on the points as sent
points#
points: (number)[]Flat x,y,z triples on the walking surface
qids#
qids?: (string)[]Related model objects
inheritedFrom: OverlayItemCommon.qids
role#
role?: OverlayRoleinheritedFrom: OverlayItemCommon.role
segmentRoles#
segmentRoles?: ([number, number, OverlayRole])[][fromPoint, toPoint, role]: those segments in another role's colour
stations#
stations?: { interval: number; labels?: boolean }Not drawn yet
storey#
storey?: stringinheritedFrom: OverlayItemCommon.storey
style#
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#
tooltip?: stringinheritedFrom: OverlayItemCommon.tooltip
type#
type: "path"overwrites: OverlayItemCommon.type
views#
views?: ("2d" | "3d")[]inheritedFrom: OverlayItemCommon.views