Square
squareBlock elementGraph
A square shape positioned at (x, y) with a given size. Supports fill, opacity, and color customization.
Attributes
label
rich-texthidden
booleanDefaultfalse
lock
booleanDefaultfalse
Stacking order. Higher z renders on top; when omitted or equal, elements stack in document order (later on top).
Allowed content
Body { }Inline Chalk content (formatted text, inline math, links, and inline elements)
Allowed in
Examples
square(x: 0; y: 0; size: 2)square(x: 1; y: -1; size: 1.2; opacity: 0.6)