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 + arrowhead + text) to vector lines + a label (paper mm).terminatorGeometry
One terminator atat, opening back along inward.
Types
DimensionInput
The package does not export this type by name.Point2
required
Point2
required
number
required
Perpendicular offset of the dimension line from the start→end segment.
string
Override text; defaults to the measured paper distance.
number
required
DimensionStyle
The package does not export this type by name.number
Terminator half-length in paper mm. Defaults to
fontSize * 0.5.TerminatorKind
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.VectorLine[]
required
VectorText
required
DrawingLoop[]
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.
Point2
2D point in the extractor’s output.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.
string
required
"angular"
required
string
Named style in
PaperDocument.dimensionStyles. Absent uses the default.string
required
Point2
required
Angle vertex (model metres).
Point2
required
A point along the first ray (model metres).
Point2
required
A point along the second ray (model metres).
number
required
Arc radius in paper mm (annotation scale, zoom/scale-independent).
number
required
number
Decimal places on the degree value. Default 0.
string
Optional label override; default = measured angle in degrees.
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.
string
required
"radial"
required
string
Named style in
PaperDocument.dimensionStyles. Absent uses the default.string
required
Point2
required
Arc/circle centre (model metres).
Point2
required
A point on the arc/circle (model metres);
|edge − center| is the radius."radius" | "diameter"
required
radius → “R…”; diameter → ”⌀…” (line spans through the centre).number
required
number
Decimal places on the measured mm value. Default 0.
string
Optional label override; default = measured radius/diameter in mm.
LeaderInput
The package does not export this type by name.Point2
required
Arrow tip — points at the thing being annotated.
Point2[]
required
Knee points from the target to the text anchor (last point).
string
required
number
required
LeaderStyle
The package does not export this type by name.number
Arrowhead barb length in paper mm. Defaults to
fontSize.number
Half-angle of the arrowhead in degrees. Defaults to 20.
TerminatorKind
TerminatorGeometry type
A terminator’s ink: stroked lines plus any filled loops. The package does not export this type by name.VectorLine[]
required
DrawingLoop[]
required
Solid areas — a filled arrowhead or a dot. Empty for stroked kinds.