summaryrefslogtreecommitdiff
path: root/tests/layouts
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-10 11:37:12 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-10 11:37:12 +0100
commit92586d3e6895f0895fb2c88abcdd5e7160482a5b (patch)
tree2af23968bbff7213d237e05ab78ef886491da852 /tests/layouts
parent7e980224354880cfda1797136a1ff886d6642662 (diff)
Progressing stack layouter 🚊
Diffstat (limited to 'tests/layouts')
-rw-r--r--tests/layouts/test.typ44
1 files changed, 17 insertions, 27 deletions
diff --git a/tests/layouts/test.typ b/tests/layouts/test.typ
index 063a7bfe..68f73a73 100644
--- a/tests/layouts/test.typ
+++ b/tests/layouts/test.typ
@@ -1,31 +1,21 @@
[page.size: w=5cm, h=5cm]
[page.margins: 0cm]
-// [box: w=4cm, h=3cm][1]
-// //
-// [direction: ttb, ltr]
-// [box: w=2cm, h=1][2]
-// //
-// [direction: btt, rtl]
-// [align: bottom, right]
-// [box: w=3cm, h=1][3]
-// //
-// [direction: ltr, ttb]
-// [align: center, center]
-// [box: w=2cm, h=2cm][4]
+// Test 1
+// [box][
+// [align: center]
+// [box: ps=3cm, ss=1cm]
+// [direction: ttb, ltr]
+// [box: ps=3cm, ss=1cm]
+// [box: ps=1cm, ss=1cm]
+// [box: ps=2cm, ss=1cm]
+// [box: ps=1cm, ss=1cm]
+// ]
-[align: center]
-
-//[direction: primary=btt, secondary=rtl]
-//[align: primary=bottom, secondary=right]
-//[box][Hi]
-
-[box][
-//[align: primary=center, secondary=bottom]
-[direction: secondary=btt]
-Blabla
-[v: 0.5cm]
-[align: vertical=end] Origin 2]
-//[align: vertical=center] Center
-//[align: vertical=center] Center
-//[align: vertical=end] End End End
+// Test 2
+[align: secondary=top] Top
+[align: secondary=center] Center
+[align: secondary=bottom] Bottom
+[direction: ttb, ltr]
+[align: primary=bottom]
+[box: w=1cm, h=1cm]