mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 10:36:43 +02:00
prevent deeply nested activations from calling classes that don't exist (by limiting to 3)
This commit is contained in:
@@ -106,7 +106,7 @@ export const drawActivation = function (elem, bounds, verticalPos, conf, actorAc
|
||||
const g = bounds.anchored
|
||||
rect.x = bounds.startx
|
||||
rect.y = bounds.starty
|
||||
rect.class = 'activation' + actorActivations
|
||||
rect.class = 'activation' + (actorActivations % 3) // Will evaluate to 0, 1 or 2
|
||||
rect.width = bounds.stopx - bounds.startx
|
||||
rect.height = verticalPos - bounds.starty
|
||||
drawRect(g, rect)
|
||||
|
Reference in New Issue
Block a user