Skip to Content
Bear documentation

datums

Import from bear/engine/datums.

Interfaces

Datums

Defined in: bear/engine/datums.ts:70

Properties

PropertyType
dimsreadonly DimDatum[]
gridlinesreadonly GridlineDatum[]

DimDatum

Defined in: bear/engine/datums.ts:53

A dim, as the two planes it measures between. Where the dimension line itself is drawn is a view's decision, not the model's: the same dim is a string along the footprint in one view and a leader in another.

Properties

PropertyTypeDescription
derivedbooleanTrue when solve filled the value in rather than the author stating it.
directionAxis-
fromVector3The world point of the plane each endpoint resolved to.
labelstring"@A → W.start along x".
nodestringThe fqn of the <Dim> node that authored it.
satisfiedbooleanFalse when the measured span disagrees with what the dim states.
textstringThe measured span, formatted: 24', 5' 1/2".
toVector3-

GridlineDatum

Defined in: bear/engine/datums.ts:35

A named gridline, drawn along the provider's base plane.

Properties

PropertyTypeDescription
axis"y" | "x"The axis the gridline measures along, not the one it runs along.
endVector3-
labelstringHow a dim endpoint spells it: "@A".
namestringThe authored name: "A", "Left".
providerstringThe fqn of the node that published the grid.
startVector3-

Functions

datumsOf()

function datumsOf(result): Datums;

Defined in: bear/engine/datums.ts:76

Every construction datum of a model, ready to draw.

Parameters

ParameterType
resultModelView

Returns

Datums

On this page