3 Commits

Author SHA1 Message Date
d6c390f3c5 fixed uncommitted ref image
All checks were successful
CI / tests (push) Successful in 13s
2025-07-28 22:48:57 +02:00
bbc8bb0339 added test for groups
Some checks failed
CI / tests (push) Failing after 14s
2025-07-28 22:47:28 +02:00
f39e14654a fixed #17
All checks were successful
CI / tests (push) Successful in 17s
2025-07-28 22:35:57 +02:00
8 changed files with 77 additions and 2 deletions

View File

@@ -39,5 +39,5 @@
}
_grp(name, desc: desc, type: "loop", elmts)
}
#let _opt(desc, elmts) = grp("opt", desc: desc, type: "opt", elmts)
#let _break(desc, elmts) = grp("break", desc: desc, type: "break", elmts)
#let _opt(desc, elmts) = _grp("opt", desc: desc, type: "opt", elmts)
#let _break(desc, elmts) = _grp("break", desc: desc, type: "break", elmts)

4
tests/special-group/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
# generated by tytanic, do not edit
diff/**
out/**

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

@@ -0,0 +1,71 @@
#set page(width: auto, height: auto)
#import "/src/lib.typ": *
#let preamble = {
_par("a", display-name: [Alice])
_par("b", display-name: [Bob])
_col("a", "b", width: 2cm)
}
#diagram({
preamble
_grp("Group 1", {
_seq("a", "b")
})
_grp("Group 2", desc: [Description], {
_seq("a", "b")
})
})
#pagebreak()
#diagram({
preamble
_alt(
"case 1", {
_seq("a", "b")
},
"case 2", {
_seq("a", "b")
},
"case 3", {
_seq("a", "b")
}
)
})
#pagebreak()
#diagram({
preamble
_loop("loop 1", {
_seq("a", "b")
})
_loop("loop 2", min: 1, {
_seq("a", "b")
})
_loop("loop 3", max: 10, {
_seq("a", "b")
})
_loop("loop 3", min: 1, max: 10, {
_seq("a", "b")
})
})
#pagebreak()
#diagram({
preamble
_opt("Optional", {
_seq("a", "b")
})
})
#pagebreak()
#diagram({
preamble
_break("Break", {
_seq("a", "b")
})
})