Skip to content

Commit 4eb0823

Browse files
Release v0.0.106
1 parent efd5d49 commit 4eb0823

File tree

6 files changed

+21
-7
lines changed

6 files changed

+21
-7
lines changed

dist/build.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -50785,7 +50785,11 @@ var mxEdgeStyle =
5078550785
}
5078650786
else
5078750787
{
50788-
result.push(dep);
50788+
// create a random deltaX to avoid edges overlapping from 2 - 20 px and in gaps of 5px
50789+
const randomDeltaX = Math.floor(Math.random() * 5) * 4 + 2;
50790+
arr.x += randomDeltaX;
50791+
result.push(new mxPoint(arr.x, dep.y));
50792+
//result.push(dep); azdatagraph edit
5078950793
result.push(arr);
5079050794
}
5079150795
}

dist/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -25123,7 +25123,9 @@ var require_build = __commonJS({
2512325123
result2.push(new mxPoint(arr.x, midY));
2512425124
result2.push(arr);
2512525125
} else {
25126-
result2.push(dep);
25126+
const randomDeltaX = Math.floor(Math.random() * 5) * 4 + 2;
25127+
arr.x += randomDeltaX;
25128+
result2.push(new mxPoint(arr.x, dep.y));
2512725129
result2.push(arr);
2512825130
}
2512925131
}

dist/index.js.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/view/mxEdgeStyle.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ var mxEdgeStyle =
214214
}
215215
else
216216
{
217-
result.push(dep);
217+
// create a random deltaX to avoid edges overlapping from 2 - 20 px and in gaps of 5px
218+
const randomDeltaX = Math.floor(Math.random() * 5) * 4 + 2;
219+
arr.x += randomDeltaX;
220+
result.push(new mxPoint(arr.x, dep.y));
221+
//result.push(dep); azdatagraph edit
218222
result.push(arr);
219223
}
220224
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "azdataGraph",
33
"description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
4-
"version": "0.0.105",
4+
"version": "0.0.106",
55
"homepage": "https://github.com/microsoft/azdataGraph",
66
"author": "Microsoft",
77
"license": "Apache-2.0",

src/js/view/mxEdgeStyle.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,11 @@ var mxEdgeStyle =
214214
}
215215
else
216216
{
217-
result.push(dep);
217+
// create a random deltaX to avoid edges overlapping from 2 - 20 px and in gaps of 5px
218+
const randomDeltaX = Math.floor(Math.random() * 5) * 4 + 2;
219+
arr.x += randomDeltaX;
220+
result.push(new mxPoint(arr.x, dep.y));
221+
//result.push(dep); azdatagraph edit
218222
result.push(arr);
219223
}
220224
}

0 commit comments

Comments
 (0)