brace
A curly brace spanning from one point to another, with its label at the tip: brace(start: (0, 0); end: (4, 0); label: $w$). What axis.brace is for an interval ON an axis, this is for a distance anywhere in the picture — the height a projectile reaches, the object distance in a ray diagram, the side of a triangle. It bows to the LEFT of the direction it is written in, so swapping the ends (or flip) puts it on the other side, and its depth is in pixels, like an angle's radius: notation on the picture rather than a measurement in the data.
#Attributes
Also written: fromThe point the span begins at, as a coordinate pair. Written first, and the brace bows to the left of the direction from here to
end.Can be written as shorthand: brace:valueWhat the span is called, at the brace's tip — rich text, so
$maths$ renders. A brace with nothing to say is a bracket; the name is the reason to draw one.How far the brace bows out from the line it spans, in pixels — so it neither swells nor thins as the reader zooms.
Default
10colour
Also written: colorThe brace's colour, and its label's.
Default
neutralDeclared but not drawn. Animatable —
hidden: true !cue.to{false}(at: 2) reveals it — and unlike a cue, a hidden element still frames the plot, so the axes do not jump when it appears.Default
falseAlso written: lockedKeeps the reader from editing this element on an
editable: graph. Nothing at all on a graph that is not editable.Default
false#Allowed in
#Examples
brace(start: (0, 0); end: (4, 0); label: $w$)brace(start: (3, 0); end: (3, 2.4); label: $H$; colour: teal)brace(start: (1, 1); end: (4, 3); label: $d$; flip: true; depth: 14)