Brace
brace()
Draw a curly brace between two points.
cetz.decorations.brace((0,1),(2,1))
cetz.decorations.brace((0,0),(2,0), outer-inset: 0)
start:
Start point
end:
End point
Styling
Root: brace
Sets the height of the brace, from its baseline to its middle tip.
Thickness of tapered braces (if ratio, relative to half the amplitude).
Use the fill style for tapered braces and set stroke to none.
Anchors
- start Where the brace starts, same as the
startparameter. - end Where the brace end, same as the
endparameter. - spike Point of the spike, halfway between
startandendand shifted byamplitudetowards the pointing direction. - content Point to place content/text at, in front of the spike.
- center Center of the enclosing rectangle.