diff options
| author | Ana Gelez <ana@gelez.xyz> | 2024-04-02 14:17:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-02 12:17:10 +0000 |
| commit | 29af23663d5614f4a66e3b895440dc2048f74a66 (patch) | |
| tree | 8d139ffb1521af159bbed32c69960fa77ff2b91b /tests/typ/visualize | |
| parent | c413bef11dd83b9489dc4d70d797df2d745bcddd (diff) | |
Support negative dimensions in rectangles (#3807)
Diffstat (limited to 'tests/typ/visualize')
| -rw-r--r-- | tests/typ/visualize/shape-rect.typ | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/typ/visualize/shape-rect.typ b/tests/typ/visualize/shape-rect.typ index ea0e66b0..bd9cf1ae 100644 --- a/tests/typ/visualize/shape-rect.typ +++ b/tests/typ/visualize/shape-rect.typ @@ -61,3 +61,18 @@ #set par(justify: true) #lorem(100) #rect(lorem(100)) + +--- +// Negative dimensions +#rect(width: -1cm, fill: gradient.linear(red, blue))[Reverse left] + +#rect(width: 1cm, fill: gradient.linear(red, blue))[Left] + +#align(center, rect(width: -1cm, fill: gradient.linear(red, blue))[Reverse center]) + +#align(center, rect(width: 1cm, fill: gradient.linear(red, blue))[Center]) + +#align(right, rect(width: -1cm, fill: gradient.linear(red, blue))[Reverse right]) + +#align(right, rect(width: 1cm, fill: gradient.linear(red, blue))[Right]) + |
