From fe1f4400693690b68db5a7ec0976ba998624a740 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 30 Dec 2022 10:07:46 +0100 Subject: Clamp shape radii --- tests/typ/visualize/shape-rounded.typ | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/typ/visualize/shape-rounded.typ (limited to 'tests/typ/visualize') diff --git a/tests/typ/visualize/shape-rounded.typ b/tests/typ/visualize/shape-rounded.typ new file mode 100644 index 00000000..862141ba --- /dev/null +++ b/tests/typ/visualize/shape-rounded.typ @@ -0,0 +1,6 @@ +// Test rounded rectangles and squares. + +--- +// Ensure that radius is clamped. +#rect(radius: -20pt) +#square(radius: 30pt) -- cgit v1.2.3