changed internal lifelines structure

This commit is contained in:
2025-07-18 17:30:00 +02:00
parent 22254211f3
commit ff8ec72a42
4 changed files with 35 additions and 40 deletions

View File

@@ -102,23 +102,23 @@
if seq.disable-src {
let src-line = ctx.lifelines.at(i1)
src-line.level -= 1
src-line.lines.push(("disable", start-info.y))
src-line.events.push((type: "disable", y: start-info.y))
ctx.lifelines.at(i1) = src-line
}
if seq.destroy-src {
let src-line = ctx.lifelines.at(i1)
src-line.lines.push(("destroy", start-info.y))
src-line.events.push((type: "destroy", y: start-info.y))
ctx.lifelines.at(i1) = src-line
}
if seq.disable-dst {
let dst-line = ctx.lifelines.at(i2)
dst-line.level -= 1
dst-line.lines.push(("disable", end-info.y))
dst-line.events.push((type: "disable", y: end-info.y))
ctx.lifelines.at(i2) = dst-line
}
if seq.destroy-dst {
let dst-line = ctx.lifelines.at(i2)
dst-line.lines.push(("destroy", end-info.y))
dst-line.events.push((type: "destroy", y: end-info.y))
ctx.lifelines.at(i2) = dst-line
}
if seq.enable-dst {
@@ -341,12 +341,12 @@
if seq.create-dst {
let dst-line = ctx.lifelines.at(i2)
dst-line.lines.push(("create", end-info.y))
dst-line.events.push((type: "create", y: end-info.y))
ctx.lifelines.at(i2) = dst-line
}
if seq.enable-dst {
let dst-line = ctx.lifelines.at(i2)
dst-line.lines.push(("enable", end-info.y, seq.lifeline-style))
dst-line.events.push((type: "enable", y: end-info.y, style: seq.lifeline-style))
ctx.lifelines.at(i2) = dst-line
}