mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-13 11:09:39 +02:00
fix: Sequence loop rendering
This commit is contained in:
@@ -1421,8 +1421,7 @@ const buildMessageModel = function (msg, actors, diagObj) {
|
|||||||
return isArrowToRight ? -value : value;
|
return isArrowToRight ? -value : value;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 3 is max difference for +/- 1
|
if (msg.from === msg.to) {
|
||||||
if (Math.abs(startx - stopx) <= 3) {
|
|
||||||
// This is a self reference, so we need to make sure the arrow is drawn correctly
|
// This is a self reference, so we need to make sure the arrow is drawn correctly
|
||||||
// There are many checks in the downstream rendering that checks for equality.
|
// There are many checks in the downstream rendering that checks for equality.
|
||||||
// The lines on loops will be off by few pixels, but that's fine for now.
|
// The lines on loops will be off by few pixels, but that's fine for now.
|
||||||
|
Reference in New Issue
Block a user