From e7a7ff8a2a44df14c131e44d17f5e5d3f44b5616 Mon Sep 17 00:00:00 2001 From: omkarht Date: Mon, 11 Aug 2025 13:20:49 +0530 Subject: [PATCH] fix: refactored code on-behalf-of: @Mermaid-Chart --- packages/mermaid/src/diagrams/sequence/svgDraw.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/mermaid/src/diagrams/sequence/svgDraw.js b/packages/mermaid/src/diagrams/sequence/svgDraw.js index f6aa3d34b..95863234d 100644 --- a/packages/mermaid/src/diagrams/sequence/svgDraw.js +++ b/packages/mermaid/src/diagrams/sequence/svgDraw.js @@ -706,10 +706,9 @@ const drawActorTypeControl = function (elem, actor, conf, isFooter) { // Draw looping arrow as arc path actElem - .append('path') - .attr('d', `M ${cx},${cy - r}`) - .attr('stroke-width', 1.5) - .attr('marker-end', 'url(#filled-head-control)'); + .append('line') + .attr('marker-end', 'url(#filled-head-control)') + .attr('transform', `translate(${cx}, ${cy - r})`); const bounds = actElem.node().getBBox(); actor.height = bounds.height + 2 * (conf?.sequence?.labelBoxHeight ?? 0); @@ -775,7 +774,7 @@ const drawActorTypeEntity = function (elem, actor, conf, isFooter) { .attr('stroke-width', 2); const bounds = actElem.node().getBBox(); - actor.height = bounds.height + (conf.sequence.labelBoxHeight ?? 0); + actor.height = bounds.height + (conf?.sequence?.labelBoxHeight ?? 0); if (!isFooter) { actorCnt++;