diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-04-06 12:57:26 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-04-06 12:58:27 +0200 |
| commit | 4f4af02acea0022a5c1966d9b7b4150b35749edd (patch) | |
| tree | 4e7107d8df1e169ce941ef8bf2c65e52600b36cc /tests | |
| parent | f9b9be16f96d01ffb0587f65c8c32da9e9e4b3f5 (diff) | |
Fix path and polygon strokes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/container.png | bin | 20514 -> 20435 bytes | |||
| -rw-r--r-- | tests/typ/layout/container.typ | 19 | ||||
| -rw-r--r-- | tests/typ/visualize/path.typ | 3 |
3 files changed, 14 insertions, 8 deletions
diff --git a/tests/ref/layout/container.png b/tests/ref/layout/container.png Binary files differindex eff06f1a..f016385b 100644 --- a/tests/ref/layout/container.png +++ b/tests/ref/layout/container.png 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%)), |
