Import
dimensionGeometry
Resolve a linear dimension to vector lines + a label (paper mm).measureDimension
Build a viewport-linked dimension between two saved model points (metres).resolveMeasure
Resolve a MeasureAnnotation to vector geometry at render time, using the SAMEviewportTransform the viewport’s drawing uses — so witness lines use the same transform as the drawing.
resolveAngular
Resolve an AngularMeasureAnnotation at render time.resolveRadial
Resolve a RadialMeasureAnnotation at render time.leaderGeometry
Resolve a leader (polyline + end mark + text) to vector lines + a label (paper mm).terminatorGeometry
One terminator atat, opening back along inward.
pickArcEdge
Types
DimensionInput
The package does not export this type by name.DimensionStyle
The package does not export this type by name.Which mark to draw at each end. Defaults to “slash” — the architectural convention this package
has always drawn, and the only one it could.
AnnotationGeometry
The vector primitives an annotation resolves to (paper mm). The package does not export this type by name.Solid areas — a filled arrowhead, a dot terminator. Absent for annotations drawn entirely in
stroke, which is every one this package emitted before terminators became configurable.
UnitSystem
Drawing scales: the named ratios a technical drawing is actually plotted at, and the one formatter that turns a ratio into the label printed on the sheet.AngularMeasureAnnotation
A viewport-linked angular dimension:vertex/from/to are saved points in the viewport’s model space (metres).
The package does not export this type by name.
RadialMeasureAnnotation
A viewport-linked radial dimension:center/edge are saved points in a viewport’s model space (metres), typically an arc/circle centre and edge.
The package does not export this type by name.