Updated intersection calculations , Mermaid version 11.0.0-b.73

This commit is contained in:
Knut Sveidqvist
2024-08-15 18:26:23 +02:00
parent a0a03b932d
commit e9b91485f4
2 changed files with 5 additions and 5 deletions

View File

@@ -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",

View File

@@ -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;
}