2 Commits

Author SHA1 Message Date
7da39889d4 chore: update gallery examples
All checks were successful
CI / tests (pull_request) Successful in 21s
2026-02-04 14:29:54 +01:00
a46bb8534b fix: measure sync group span on sync-end 2026-02-04 14:29:26 +01:00
8 changed files with 3 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -4,7 +4,7 @@
#chronos.diagram({ #chronos.diagram({
import chronos: * import chronos: *
_seq("User", "A", comment: "DoWork", enable-dst: true) _seq("User", "A", comment: "DoWork", enable-dst: true)
_seq("A", "B", comment: [#sym.quote.angle.l createRequest #sym.quote.angle.r], enable-dst: true) _seq("A", "B", comment: [#sym.quote.chevron.l createRequest #sym.quote.chevron.r], enable-dst: true)
_seq("B", "C", comment: "DoWork", enable-dst: true) _seq("B", "C", comment: "DoWork", enable-dst: true)
_seq("C", "B", comment: "WorkDone", destroy-src: true, disable-src: true, dashed: true) _seq("C", "B", comment: "WorkDone", destroy-src: true, disable-src: true, dashed: true)
_seq("B", "A", comment: "RequestCreated", disable-src: true, dashed: true) _seq("B", "A", comment: "RequestCreated", disable-src: true, dashed: true)
@@ -15,7 +15,7 @@
import chronos: * import chronos: *
_seq("User", "A", comment: "DoWork", enable-dst: true, lifeline-style: (fill: rgb("#FFBBBB"))) _seq("User", "A", comment: "DoWork", enable-dst: true, lifeline-style: (fill: rgb("#FFBBBB")))
_seq("A", "A", comment: "Internal call", enable-dst: true, lifeline-style: (fill: rgb("#E9967A"))) _seq("A", "A", comment: "Internal call", enable-dst: true, lifeline-style: (fill: rgb("#E9967A")))
_seq("A", "B", comment: [#sym.quote.angle.l createRequest #sym.quote.angle.r], enable-dst: true) _seq("A", "B", comment: [#sym.quote.chevron.l createRequest #sym.quote.chevron.r], enable-dst: true)
_seq("B", "A", comment: "RequestCreated", disable-src: true, disable-dst: true, dashed: true) _seq("B", "A", comment: "RequestCreated", disable-src: true, disable-dst: true, dashed: true)
_seq("A", "User", comment: "Done", disable-src: true) _seq("A", "User", comment: "Done", disable-src: true)
}) })

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -42,7 +42,7 @@
let (i0, i1) = get-group-span(participants, elmt) let (i0, i1) = get-group-span(participants, elmt)
min-i = calc.min(min-i, i0) min-i = calc.min(min-i, i0)
max-i = calc.max(max-i, i1) max-i = calc.max(max-i, i1)
} else if elmt.type == "sync" { } else if elmt.type == "sync-end" {
let (i0, i1) = get-group-span(participants, elmt) let (i0, i1) = get-group-span(participants, elmt)
min-i = calc.min(min-i, i0) min-i = calc.min(min-i, i0)
max-i = calc.max(max-i, i1) max-i = calc.max(max-i, i1)