diff --git a/packages/mermaid/package.json b/packages/mermaid/package.json index eca33f76e..d45db409c 100644 --- a/packages/mermaid/package.json +++ b/packages/mermaid/package.json @@ -1,6 +1,6 @@ { "name": "@mermaid-chart/mermaid", - "version": "11.0.0-b.72", + "version": "11.0.0-b.73", "description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", "type": "module", "module": "./dist/mermaid.core.mjs", diff --git a/packages/mermaid/src/rendering-util/layout-algorithms/fixed/index.js b/packages/mermaid/src/rendering-util/layout-algorithms/fixed/index.js index f2d84c9ba..3b8de448d 100644 --- a/packages/mermaid/src/rendering-util/layout-algorithms/fixed/index.js +++ b/packages/mermaid/src/rendering-util/layout-algorithms/fixed/index.js @@ -48,15 +48,15 @@ const calcIntersectionPoint = (node, point) => { const calcIntersections = (points, startNodeId, endNodeId, startNodeSize, endNodeSize) => { const startNode = nodeDB.get(startNodeId); if (startNodeSize) { - startNode.x = startNodeSize.width; - startNode.y = startNodeSize.width; + startNode.x = startNodeSize.x; + startNode.y = startNodeSize.y; startNode.width = startNodeSize.width; startNode.height = startNodeSize.height; } const endNode = nodeDB.get(endNodeId); if (endNodeSize) { - endNode.x = endNodeSize.width; - endNode.y = endNodeSize.width; + endNode.x = endNodeSize.x; + endNode.y = endNodeSize.y; endNode.width = endNodeSize.width; endNode.height = endNodeSize.height; }