mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 11:29:42 +02:00
adjust activation after message to self
This commit is contained in:
@@ -350,7 +350,8 @@ module.exports.draw = function (text, id) {
|
|||||||
function activeEnd(msg, verticalPos) {
|
function activeEnd(msg, verticalPos) {
|
||||||
var activationData = exports.bounds.endActivation(msg);
|
var activationData = exports.bounds.endActivation(msg);
|
||||||
if(activationData.starty + 18 > verticalPos) {
|
if(activationData.starty + 18 > verticalPos) {
|
||||||
activationData.starty = verticalPos - 18;
|
activationData.starty = verticalPos - 6;
|
||||||
|
verticalPos += 12;
|
||||||
}
|
}
|
||||||
svgDraw.drawActivation(diagram, activationData, verticalPos, conf);
|
svgDraw.drawActivation(diagram, activationData, verticalPos, conf);
|
||||||
|
|
||||||
@@ -386,12 +387,7 @@ module.exports.draw = function (text, id) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case sq.yy.LINETYPE.ACTIVE_START:
|
case sq.yy.LINETYPE.ACTIVE_START:
|
||||||
// exports.bounds.bumpVerticalPos(conf.boxMargin);
|
|
||||||
exports.bounds.newActivation(msg, diagram);
|
exports.bounds.newActivation(msg, diagram);
|
||||||
// exports.bounds.bumpVerticalPos(conf.boxMargin + conf.boxTextMargin);
|
|
||||||
if (lastMsg && (lastMsg.from == lastMsg.to)) {
|
|
||||||
activeEnd(msg, exports.bounds.getVerticalPos() - 12);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case sq.yy.LINETYPE.ACTIVE_END:
|
case sq.yy.LINETYPE.ACTIVE_END:
|
||||||
activeEnd(msg, exports.bounds.getVerticalPos());
|
activeEnd(msg, exports.bounds.getVerticalPos());
|
||||||
|
Reference in New Issue
Block a user