mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
Merge branch 'develop' into feature/1295_generic_rendering_engine
This commit is contained in:
@@ -247,6 +247,8 @@ const drawMessage = function(elem, startx, stopx, verticalPos, msg, sequenceInde
|
|||||||
const offsetLineCounter = counterBreaklines - 1;
|
const offsetLineCounter = counterBreaklines - 1;
|
||||||
const totalOffset = offsetLineCounter * breaklineOffset;
|
const totalOffset = offsetLineCounter * breaklineOffset;
|
||||||
|
|
||||||
|
bounds.bumpVerticalPos(totalOffset);
|
||||||
|
|
||||||
let textWidth = (textElem._groups || textElem)[0][0].getBBox().width;
|
let textWidth = (textElem._groups || textElem)[0][0].getBBox().width;
|
||||||
|
|
||||||
let line;
|
let line;
|
||||||
@@ -295,9 +297,9 @@ const drawMessage = function(elem, startx, stopx, verticalPos, msg, sequenceInde
|
|||||||
} else {
|
} else {
|
||||||
line = g.append('line');
|
line = g.append('line');
|
||||||
line.attr('x1', startx);
|
line.attr('x1', startx);
|
||||||
line.attr('y1', verticalPos);
|
line.attr('y1', verticalPos + totalOffset);
|
||||||
line.attr('x2', stopx);
|
line.attr('x2', stopx);
|
||||||
line.attr('y2', verticalPos);
|
line.attr('y2', verticalPos + totalOffset);
|
||||||
bounds.insert(
|
bounds.insert(
|
||||||
startx,
|
startx,
|
||||||
bounds.getVerticalPos() - 10 + totalOffset,
|
bounds.getVerticalPos() - 10 + totalOffset,
|
||||||
|
Reference in New Issue
Block a user