diff --git a/tests/participant/shapes/.gitignore b/tests/participant/shapes/.gitignore new file mode 100644 index 0000000..40223be --- /dev/null +++ b/tests/participant/shapes/.gitignore @@ -0,0 +1,4 @@ +# generated by tytanic, do not edit + +diff/** +out/** diff --git a/tests/participant/shapes/ferris.png b/tests/participant/shapes/ferris.png new file mode 100644 index 0000000..e7b9578 Binary files /dev/null and b/tests/participant/shapes/ferris.png differ diff --git a/tests/participant/shapes/gitea.png b/tests/participant/shapes/gitea.png new file mode 100644 index 0000000..7d2874c Binary files /dev/null and b/tests/participant/shapes/gitea.png differ diff --git a/tests/participant/shapes/me.jpg b/tests/participant/shapes/me.jpg new file mode 100644 index 0000000..ccf8d07 Binary files /dev/null and b/tests/participant/shapes/me.jpg differ diff --git a/tests/participant/shapes/ref/1.png b/tests/participant/shapes/ref/1.png new file mode 100644 index 0000000..67e3f67 Binary files /dev/null and b/tests/participant/shapes/ref/1.png differ diff --git a/tests/participant/shapes/test.typ b/tests/participant/shapes/test.typ new file mode 100644 index 0000000..0515acf --- /dev/null +++ b/tests/participant/shapes/test.typ @@ -0,0 +1,21 @@ +#set page(width: auto, height: auto) +#import "/src/lib.typ": * + + +#let TYPST = image("typst.png", width: 1.5cm, height: 1.5cm, fit: "contain") +#let FERRIS = image("ferris.png", width: 1.5cm, height: 1.5cm, fit: "contain") +#let ME = image("me.jpg", width: 1.5cm, height: 1.5cm, fit: "contain") + +#diagram({ + _par("Foo", display-name: "Participant", shape: "participant") + _par("Foo1", display-name: "Actor", shape: "actor") + _par("Foo2", display-name: "Boundary", shape: "boundary") + _par("Foo3", display-name: "Control", shape: "control") + _par("Foo4", display-name: "Entity", shape: "entity") + _par("Foo5", display-name: "Database", shape: "database") + _par("Foo6", display-name: "Collections", shape: "collections") + _par("Foo7", display-name: "Queue", shape: "queue") + _par("Foo8", display-name: "Typst", shape: "custom", custom-image: TYPST) + _par("Foo9", display-name: "Ferris", shape: "custom", custom-image: FERRIS) + _par("Foo10", display-name: "Baryhobal", shape: "custom", custom-image: ME) +}) \ No newline at end of file diff --git a/tests/participant/shapes/typst.png b/tests/participant/shapes/typst.png new file mode 100644 index 0000000..40613e7 Binary files /dev/null and b/tests/participant/shapes/typst.png differ