mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 00:29:39 +02:00
Updated intersection calculations , Mermaid version 11.0.0-b.73
This commit is contained in:
@@ -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",
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user