Skip to main content

Import

Inheritance: extends OPElement implements IShape, IPlaceable

Constructor

DatumType.LEVEL
number
World Y elevation.
[number, number]
Start point on the X-Z plane: [x, z].
number
Signed length of the line along local +X (before rotation).
number
Plan-view rotation around the origin, degrees. Default 0.
boolean
Show the label at the start endpoint. Default true.
boolean
Show the label at the end endpoint. Default true.
number
Font size for the OpenGlyph label, in world units. Default 2.5.
string
Override for label text. Falls back to ${labelName} ${formatElevation(elevation)}.
string
The storey this datum displays, when it is bound to one (Building segment storey / BmStorey id). Data only — the level stays a visual datum.
string
string
number
Line / symbol colour. Defaulted per subtype when omitted.
number
Line weight for the datum’s 2D representation.
DatumVisibility
Whether this datum is shown in plan / model views.

Properties

string
string
Map<string, THREE.Object3D>
Map<string, THREE.Object3D>
boolean
boolean
boolean
Event<null>
LevelOptions
string
DatumType
Read-only.
number
boolean
boolean

Methods

editableSchema

move

Translate this element by delta (world-space, meters).

rotate

Rotate this element by angleDeg around axis (default Y-up), pivoted at anchor (default the element’s own centroid).

setOPConfig

getOPConfig

getEditAnchors

Draggable handles: the start origin (free on the floor plane), the far end (slides along the level’s own direction → length), and an elevation grip at the midpoint (vertical).

applyEditAnchor

setOPMaterial

setOPGeometry

Types

LevelOptions

DatumOptionsBase

Common fields shared by every datum subtype.
string
string
required
DatumType
required
number
Line / symbol colour. Defaulted per subtype when omitted.
number
Line weight for the datum’s 2D representation.
DatumVisibility
Whether this datum is shown in plan / model views.
Last modified on October 6, 2026