mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
Missed activationWidth
new configuration option for sequence diagrams
This commit is contained in:
@@ -1002,8 +1002,8 @@ const calculateLoopBounds = function(messages, actors) {
|
||||
break;
|
||||
case parser.yy.LINETYPE.ACTIVE_START:
|
||||
{
|
||||
const actorRect = actors[msg.from.actor];
|
||||
const stackedSize = actorActivations(msg.from.actor).length;
|
||||
const actorRect = actors[msg.from ? msg.from.actor : msg.to.actor];
|
||||
const stackedSize = actorActivations(msg.from ? msg.from.actor : msg.to.actor).length;
|
||||
const x =
|
||||
actorRect.x + actorRect.width / 2 + ((stackedSize - 1) * conf.activationWidth) / 2;
|
||||
const toAdd = {
|
||||
|
Reference in New Issue
Block a user