diff options
Diffstat (limited to 'tests/typ/visualize/shape-rect.typ')
| -rw-r--r-- | tests/typ/visualize/shape-rect.typ | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/tests/typ/visualize/shape-rect.typ b/tests/typ/visualize/shape-rect.typ index ff80dfb9..a95f2750 100644 --- a/tests/typ/visualize/shape-rect.typ +++ b/tests/typ/visualize/shape-rect.typ @@ -24,19 +24,23 @@ #rect(height: 1cm, width: 100%, fill: rgb("734ced"))[Topleft] // These are inline with text. -{#rect(width: 0.5in, height: 7pt, fill: rgb("d6cd67")) - #rect(width: 0.5in, height: 7pt, fill: rgb("edd466")) - #rect(width: 0.5in, height: 7pt, fill: rgb("e3be62"))} +{#box(rect(width: 0.5in, height: 7pt, fill: rgb("d6cd67"))) + #box(rect(width: 0.5in, height: 7pt, fill: rgb("edd466"))) + #box(rect(width: 0.5in, height: 7pt, fill: rgb("e3be62")))} // Rounded corners. -#rect(width: 2cm, radius: 60%) -#rect(width: 1cm, radius: (left: 10pt, right: 5pt)) -#rect(width: 1.25cm, radius: ( - top-left: 2pt, - top-right: 5pt, - bottom-right: 8pt, - bottom-left: 11pt -)) +#stack( + dir: ltr, + spacing: 1fr, + rect(width: 2cm, radius: 60%), + rect(width: 1cm, radius: (left: 10pt, right: 5pt)), + rect(width: 1.25cm, radius: ( + top-left: 2pt, + top-right: 5pt, + bottom-right: 8pt, + bottom-left: 11pt + )), +) // Different strokes. #set rect(stroke: (right: red)) |
