DimLayout typedef
DimLayout = ({(Vector2, Vector2) ext0, (Vector2, Vector2) ext1, Vector2 n, Vector2 q0, Vector2 q1, (Vector2, Vector2) slash0, (Vector2, Vector2) slash1, String text, double textAngle, Vector2 textAt, double textHeight, Vector2 u, double value})
One dimension's geometry in world (spec 11 D6-D8), from layoutDimension:
value: what it measures, never negative;text, its format in the page's unit with the page's decimal separator;u,n: the measuring direction and its left normal;q0,q1: the dimension line's ends;ext0,ext1: the extension lines ataandb, (start, end);slash0,slash1: the slashes aboutq0andq1;textAt,textAngle(radians),textHeight: the value's insertion point, world angle and cap height.
Implementation
typedef DimLayout = ({
double value,
Vector2 u,
Vector2 n,
Vector2 q0,
Vector2 q1,
(Vector2, Vector2) ext0,
(Vector2, Vector2) ext1,
(Vector2, Vector2) slash0,
(Vector2, Vector2) slash1,
Vector2 textAt,
double textAngle,
double textHeight,
String text,
});