summaryrefslogtreecommitdiff
path: root/tests/typ/insert/circle.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-17 22:04:18 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-17 22:20:37 +0200
commit594809e35b9e768f1a50926cf5e7a9df41ba7d16 (patch)
tree488f201599a67329d7916b9b3ecb73dd27ad24d7 /tests/typ/insert/circle.typ
parentc53d98a22f367a9eecfb45d1b22f1be5c6cf908d (diff)
Library functions behave more imperatively
- Templates scope state changes - State-modifying function operate in place instead of returning a template - Internal template representation contains actual owned nodes instead of a pointer to a syntax tree + an expression map - No more wide calls
Diffstat (limited to 'tests/typ/insert/circle.typ')
-rw-r--r--tests/typ/insert/circle.typ23
1 files changed, 12 insertions, 11 deletions
diff --git a/tests/typ/insert/circle.typ b/tests/typ/insert/circle.typ
index 41e0c40d..c46d37e4 100644
--- a/tests/typ/insert/circle.typ
+++ b/tests/typ/insert/circle.typ
@@ -5,23 +5,24 @@
Auto-sized circle. \
#circle(fill: rgb("eb5278"))[
- #align!(center, center)
+ #align(center, center)
But, soft!
]
Center-aligned rect in auto-sized circle.
#circle(fill: forest)[
- #align!(center, center)
- #rect!(fill: conifer)
- #pad!(5pt)
- But, soft!
+ #align(center, center)
+ #rect(fill: conifer, pad(5pt)[
+ But, soft!
+ ])
]
100%-width rect in auto-sized circle. \
-#circle(fill: forest)[
- #rect!(width: 100%, fill: conifer)
- But, soft! what light through yonder window breaks?
-]
+#circle(fill: forest,
+ rect(width: 100%, fill: conifer)[
+ But, soft! what light through yonder window breaks?
+ ]
+)
Expanded by height.
#circle(fill: conifer)[A \ B \ C]
@@ -29,8 +30,8 @@ Expanded by height.
---
// Test relative sizing.
#rect(width: 100%, height: 50pt, fill: rgb("aaa"))[
- #align!(center, center)
- #font!(fill: white)
+ #align(center, center)
+ #font(fill: white)
#circle(radius: 10pt, fill: eastern)[A]
#circle(height: 60%, fill: eastern)[B]
#circle(width: 20% + 20pt, fill: eastern)[C]