Fix sequence connection with leftmost lifeline #25
@@ -139,16 +139,14 @@
|
|||||||
// Compute left/right position at start/end
|
// Compute left/right position at start/end
|
||||||
start-info.insert("rx", start-info.x + start-info.ll-lvl)
|
start-info.insert("rx", start-info.x + start-info.ll-lvl)
|
||||||
end-info.insert("rx", end-info.x + end-info.ll-lvl)
|
end-info.insert("rx", end-info.x + end-info.ll-lvl)
|
||||||
let start-lx
|
let start-lx = start-info.x
|
||||||
let end-lx
|
let end-lx = end-info.x
|
||||||
if seq.outer-lifeline-connect {
|
if seq.outer-lifeline-connect {
|
||||||
start-lx = start-info.x
|
|
||||||
end-lx = end-info.x
|
|
||||||
if start-info.ll-lvl != 0 {start-lx -= LIFELINE-W / 2}
|
if start-info.ll-lvl != 0 {start-lx -= LIFELINE-W / 2}
|
||||||
if end-info.ll-lvl != 0 {end-lx -= LIFELINE-W / 2}
|
if end-info.ll-lvl != 0 {end-lx -= LIFELINE-W / 2}
|
||||||
} else {
|
} else {
|
||||||
start-lx = start-info.rx - LIFELINE-W
|
if start-info.ll-lvl != 0 {start-lx = start-info.rx - LIFELINE-W}
|
||||||
end-lx = end-info.rx - LIFELINE-W
|
if end-info.ll-lvl != 0 {end-lx = end-info.rx - LIFELINE-W}
|
||||||
}
|
}
|
||||||
start-info.insert("lx", start-lx)
|
start-info.insert("lx", start-lx)
|
||||||
end-info.insert("lx", end-lx)
|
end-info.insert("lx", end-lx)
|
||||||
|
|||||||
Reference in New Issue
Block a user