From e9b91485f458a654ceb9e0d6f170f773eab723aa Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Thu, 15 Aug 2024 18:26:23 +0200 Subject: [PATCH] Updated intersection calculations , Mermaid version 11.0.0-b.73 --- packages/mermaid/package.json | 2 +- .../src/rendering-util/layout-algorithms/fixed/index.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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; }