summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-23 11:58:16 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-23 11:58:16 +0100
commitd3f6040cedacad1b6c323be721c9086f6c5d9a44 (patch)
tree2a39a206ab4d032880b4841bf421eee59fcbec73 /tests
parent02f114d072ffba72c5b18953f2959eac4dee1612 (diff)
Horizon alignment
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/elements/circle.typ6
-rw-r--r--tests/typ/elements/ellipse.typ2
-rw-r--r--tests/typ/elements/fill-stroke.typ2
-rw-r--r--tests/typ/layout/align.typ2
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/typ/elements/circle.typ b/tests/typ/elements/circle.typ
index b89c8a0d..9590ef7b 100644
--- a/tests/typ/elements/circle.typ
+++ b/tests/typ/elements/circle.typ
@@ -10,12 +10,12 @@
Auto-sized circle. \
#circle(fill: rgb("eb5278"), thickness: 2pt,
- align(center, center)[But, soft!]
+ align(center, horizon)[But, soft!]
)
Center-aligned rect in auto-sized circle.
#circle(fill: forest, stroke: conifer,
- align(center, center,
+ align(center, horizon,
rect(fill: conifer, pad(5pt)[But, soft!])
)
)
@@ -37,7 +37,7 @@ Expanded by height.
---
// Test relative sizing.
-#let centered(body) = align(center, center, body)
+#let centered(body) = align(center, horizon, body)
#font(fill: white)
#rect(width: 100pt, height: 50pt, fill: rgb("aaa"), centered[
#circle(radius: 10pt, fill: eastern, centered[A]) // D=20pt
diff --git a/tests/typ/elements/ellipse.typ b/tests/typ/elements/ellipse.typ
index 49b1514d..4f1d3187 100644
--- a/tests/typ/elements/ellipse.typ
+++ b/tests/typ/elements/ellipse.typ
@@ -9,7 +9,7 @@ Rect in ellipse in fixed rect. \
#rect(width: 3cm, height: 2cm, fill: rgb("2a631a"),
ellipse(fill: forest,
rect(fill: conifer,
- align(center, center)[
+ align(center, horizon)[
Stuff inside an ellipse!
]
)
diff --git a/tests/typ/elements/fill-stroke.typ b/tests/typ/elements/fill-stroke.typ
index b8f2b4bc..3ae5f987 100644
--- a/tests/typ/elements/fill-stroke.typ
+++ b/tests/typ/elements/fill-stroke.typ
@@ -16,7 +16,7 @@
rect(fill: forest, thickness: 2pt),
rect(fill: forest, stroke: conifer, thickness: 2pt),
) {
- (align(vertical: center)[{i + 1}.], rect, [])
+ (align(horizon)[{i + 1}.], rect, [])
}
#grid(
diff --git a/tests/typ/layout/align.typ b/tests/typ/layout/align.typ
index 1454542a..c41e0cb4 100644
--- a/tests/typ/layout/align.typ
+++ b/tests/typ/layout/align.typ
@@ -7,7 +7,7 @@
align(center, square(size: 20pt, fill: eastern)),
align(right, square(size: 15pt, fill: eastern)),
)
-#align(center, center, rect(fill: eastern, height: 10pt))
+#align(center, horizon, rect(fill: eastern, height: 10pt))
#align(bottom, stack(
align(center, rect(fill: conifer, height: 10pt)),
rect(fill: forest, height: 10pt),