From eb05c418107fe7be20aea0acafbd1de3d01def23 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Tue, 20 Aug 2024 23:19:43 +0200 Subject: [PATCH] added show-top / -bottom options to participants --- gallery/example3.pdf | Bin 418978 -> 419155 bytes gallery/example3.typ | 13 ++++++++++++- src/participant.typ | 8 ++++++-- src/renderer.typ | 6 ++++-- 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/gallery/example3.pdf b/gallery/example3.pdf index 60c3e2b2abe155b8f8fc45332a10d097d4119efe..21602b366aa58ff01a386fc763dfc4b83d48f4d7 100644 GIT binary patch delta 6699 zcmZ{oWl$Viv#x^;?rwqL&Hw`p?(R--4el;skU@jnV8J!GOEwx{a0%`V5P}3tu%Ksu zb>+vo=dM4i>U~yqt*WlKtGi3bDHkRv!=Xq}WGD(06^hmdu#-jM0|H?PNdOb%%*-@p z6GRd=+XzIip)Izc+xfHZO_(JuyVco&4;o1Qu|qr{dmFi4n6a;M*MPEvHw<)cKXj&7+-fLr=?X4e+PLd~k}K>zq9E;k zbr}ETAZ2Zk)-R@5xc@Wdyn-IGC%FBmGUEV#e)4FlxV`PasmnvElTNijt>FG8+xTa1 z2{N_smgg^v#Cwk5)c%b-4+t~d^kCFv8h87>ZZ9g(ByD5AXza(p&E$Zy4Kb_2a?aQG z72V57`g5OOM1qT+Xf3=AaQAiHYql@JC2d~y>z$S8P>z5o2Eks<5NRDqgOV?m&fQe< zcYVj%sR1$ysdWLGqqc$`hai$7v(LrZ!7XoOQ8-s^auMGug%a1!d*BakQ8 zBZ7KbL)M#i22u_p!x5Y~6TfFWcymLMOCf}+3gjPd_c&+4_P0YPdG+GuKRH=0;1S>2bd=2FK@e{&YMM)M`|+l-?+poXGcL) zBf6ynIFj;Q2!=7V57SCmT{0#fh-^WH_VZ{lAEF4jHUqQ!mtD7A@vzGA@e=1mpMydt z2`PK8;bXB0za~OCHHm#4Rt=zZ$YPt6f!*?`qn5&%ni3@OBDk$Mf=2tMuJ_su!KK-H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 --- a/gallery/example3.typ +++ b/gallery/example3.typ @@ -133,4 +133,15 @@ chronos.diagram({ _seq("a", "a", end-tip: ("o", "//"), comment: `-//o`) _seq("a", "a", start-tip: "x", end-tip: ("o", ">"), comment: `x->o`) }) -) \ No newline at end of file +) + +#chronos.diagram({ + import chronos: * + + _par("a", display-name: "Alice") + _par("b", display-name: "Bob", show-bottom: false) + _par("c", display-name: "Caleb", show-top: false) + _par("d", display-name: "Danny", show-bottom: false, show-top: false) + + _gap() +}) \ No newline at end of file diff --git a/src/participant.typ b/src/participant.typ index 9d7ad3d..d1ec7ef 100644 --- a/src/participant.typ +++ b/src/participant.typ @@ -21,7 +21,9 @@ invisible: false, shape: "participant", color: rgb("#E2E2F0"), - custom-image: none + custom-image: none, + show-bottom: true, + show-top: true, ) = { return (( type: "par", @@ -31,7 +33,9 @@ invisible: invisible, shape: shape, color: color, - custom-image: custom-image + custom-image: custom-image, + show-bottom: show-bottom, + show-top: show-top ),) } diff --git a/src/renderer.typ b/src/renderer.typ index f55aa8f..ace3830 100644 --- a/src/renderer.typ +++ b/src/renderer.typ @@ -218,7 +218,7 @@ // Draw participants (start) for p in participants { - if p.from-start and not p.invisible { + if p.from-start and not p.invisible and p.show-top { shapes += draw-par(p) } } @@ -417,7 +417,9 @@ } // Draw participants (end) - draw-par(p, y: y, bottom: true) + if p.show-bottom { + draw-par(p, y: y, bottom: true) + } } })