added participant creation
This commit is contained in:
@ -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" {
|
||||
|
Reference in New Issue
Block a user