added synched sequences
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#import participant: PAR-SPECIALS
|
||||
#import "sequence.typ"
|
||||
#import "separator.typ"
|
||||
#import "sync.typ"
|
||||
#import "consts.typ": *
|
||||
#import "note.typ" as note: get-note-box
|
||||
|
||||
@ -203,6 +204,7 @@
|
||||
let draw-sep = separator.render.with(x-pos)
|
||||
let draw-par = participant.render.with(x-pos)
|
||||
let draw-note = note.render.with(pars-i, x-pos)
|
||||
let draw-sync = sync.render.with(pars-i, x-pos, participants)
|
||||
|
||||
// Draw participants (start)
|
||||
for p in participants {
|
||||
@ -295,6 +297,12 @@
|
||||
(y, shps) = draw-note(elmt, y, lifelines)
|
||||
shapes += shps
|
||||
}
|
||||
|
||||
// Synched sequences
|
||||
} else if elmt.type == "sync" {
|
||||
let shps
|
||||
(y, lifelines, shps) = draw-sync(elmt, y, lifelines)
|
||||
shapes += shps
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user