From 4f4af02acea0022a5c1966d9b7b4150b35749edd Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 6 Apr 2023 12:57:26 +0200 Subject: Fix path and polygon strokes --- tests/ref/layout/container.png | Bin 20514 -> 20435 bytes tests/typ/layout/container.typ | 19 ++++++++++++------- tests/typ/visualize/path.typ | 3 ++- 3 files changed, 14 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/ref/layout/container.png b/tests/ref/layout/container.png index eff06f1a..f016385b 100644 Binary files a/tests/ref/layout/container.png and b/tests/ref/layout/container.png differ diff --git a/tests/typ/layout/container.typ b/tests/typ/layout/container.typ index d9b62f5e..8a711b10 100644 --- a/tests/typ/layout/container.typ +++ b/tests/typ/layout/container.typ @@ -11,13 +11,18 @@ Apart --- // Test box sizing. -#box(width: 50pt, height: 50pt, fill: yellow, path( - fill: purple, - (0pt, 0pt), - (30pt, 30pt), - (0pt, 30pt), - (30pt, 0pt), -)) +#box( + width: 50pt, + height: 50pt, + fill: yellow, + path( + fill: purple, + (0pt, 0pt), + (30pt, 30pt), + (0pt, 30pt), + (30pt, 0pt), + ), +) --- // Test fr box. diff --git a/tests/typ/visualize/path.typ b/tests/typ/visualize/path.typ index 7a260eb8..c7c1af50 100644 --- a/tests/typ/visualize/path.typ +++ b/tests/typ/visualize/path.typ @@ -8,7 +8,6 @@ align: center + horizon, path( fill: red, - stroke: none, closed: true, ((0%, 0%), (4%, -4%)), ((50%, 50%), (4%, -4%)), @@ -17,6 +16,7 @@ ), path( fill: purple, + stroke: 1pt, (0pt, 0pt), (30pt, 30pt), (0pt, 30pt), @@ -24,6 +24,7 @@ ), path( fill: blue, + stroke: 1pt, closed: true, ((30%, 0%), (35%, 30%), (-20%, 0%)), ((30%, 60%), (-20%, 0%), (0%, 0%)), -- cgit v1.2.3