added participant creation

This commit is contained in:
2024-06-18 23:01:53 +02:00
parent 4dd940f584
commit a9b467152a
7 changed files with 103 additions and 43 deletions

View File

@ -39,11 +39,18 @@
participants.push(_par(elmt.p1).first())
}
if not participant._exists(participants, elmt.p2) {
participants.push(_par(elmt.p2).first())
let par = _par(elmt.p2, from-start: not elmt.create-dst).first()
participants.push(par)
}
}
}
// Add index to participant
for (i, p) in participants.enumerate() {
p.insert("i", i)
participants.at(i) = p
}
// Compute groups spans (horizontal)
for (i, elmt) in elmts.enumerate() {
if elmt.type == "grp" {