mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-08 16:49:38 +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",
|
"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.",
|
"description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"module": "./dist/mermaid.core.mjs",
|
"module": "./dist/mermaid.core.mjs",
|
||||||
|
@@ -48,15 +48,15 @@ const calcIntersectionPoint = (node, point) => {
|
|||||||
const calcIntersections = (points, startNodeId, endNodeId, startNodeSize, endNodeSize) => {
|
const calcIntersections = (points, startNodeId, endNodeId, startNodeSize, endNodeSize) => {
|
||||||
const startNode = nodeDB.get(startNodeId);
|
const startNode = nodeDB.get(startNodeId);
|
||||||
if (startNodeSize) {
|
if (startNodeSize) {
|
||||||
startNode.x = startNodeSize.width;
|
startNode.x = startNodeSize.x;
|
||||||
startNode.y = startNodeSize.width;
|
startNode.y = startNodeSize.y;
|
||||||
startNode.width = startNodeSize.width;
|
startNode.width = startNodeSize.width;
|
||||||
startNode.height = startNodeSize.height;
|
startNode.height = startNodeSize.height;
|
||||||
}
|
}
|
||||||
const endNode = nodeDB.get(endNodeId);
|
const endNode = nodeDB.get(endNodeId);
|
||||||
if (endNodeSize) {
|
if (endNodeSize) {
|
||||||
endNode.x = endNodeSize.width;
|
endNode.x = endNodeSize.x;
|
||||||
endNode.y = endNodeSize.width;
|
endNode.y = endNodeSize.y;
|
||||||
endNode.width = endNodeSize.width;
|
endNode.width = endNodeSize.width;
|
||||||
endNode.height = endNodeSize.height;
|
endNode.height = endNodeSize.height;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user