@hpcc-js/graph 2.84.1 → 2.84.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es6.js +11 -2
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +7 -7
- package/src/__package__.ts +2 -2
- package/src/__tests__/data.ts +444 -0
- package/src/__tests__/index.ts +1 -0
- package/src/__tests__/test1.ts +18 -0
- package/src/__tests__/test2.ts +79 -0
- package/src/__tests__/test3.ts +46 -0
- package/src/__tests__/test4.ts +66 -0
- package/src/__tests__/test5.ts +82 -0
- package/src/graph2/graphT.ts +7 -2
- package/src/graph2/layouts/placeholders.ts +4 -0
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types/__tests__/data.d.ts +9 -0
- package/types/__tests__/data.d.ts.map +1 -0
- package/types/__tests__/index.d.ts +2 -0
- package/types/__tests__/index.d.ts.map +1 -0
- package/types/__tests__/test1.d.ts +5 -0
- package/types/__tests__/test1.d.ts.map +1 -0
- package/types/__tests__/test2.d.ts +5 -0
- package/types/__tests__/test2.d.ts.map +1 -0
- package/types/__tests__/test3.d.ts +5 -0
- package/types/__tests__/test3.d.ts.map +1 -0
- package/types/__tests__/test4.d.ts +5 -0
- package/types/__tests__/test4.d.ts.map +1 -0
- package/types/__tests__/test5.d.ts +5 -0
- package/types/__tests__/test5.d.ts.map +1 -0
- package/types/graph2/graphT.d.ts.map +1 -1
- package/types/graph2/layouts/placeholders.d.ts +1 -0
- package/types/graph2/layouts/placeholders.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/__tests__/data.d.ts +9 -0
- package/types-3.4/__tests__/index.d.ts +2 -0
- package/types-3.4/__tests__/test1.d.ts +5 -0
- package/types-3.4/__tests__/test2.d.ts +5 -0
- package/types-3.4/__tests__/test3.d.ts +5 -0
- package/types-3.4/__tests__/test4.d.ts +5 -0
- package/types-3.4/__tests__/test5.d.ts +5 -0
- package/types-3.4/graph2/layouts/placeholders.d.ts +1 -0
package/dist/index.es6.js
CHANGED
|
@@ -5,8 +5,8 @@ import { render, Icons, React, Text as Text$1, Subgraph as Subgraph$1, Vertex as
|
|
|
5
5
|
import { HTMLTooltip } from '@hpcc-js/html';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/graph";
|
|
8
|
-
var PKG_VERSION = "2.84.
|
|
9
|
-
var BUILD_VERSION = "2.104.
|
|
8
|
+
var PKG_VERSION = "2.84.2";
|
|
9
|
+
var BUILD_VERSION = "2.104.11";
|
|
10
10
|
|
|
11
11
|
/******************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -16705,6 +16705,10 @@ var Null = /** @class */ (function (_super) {
|
|
|
16705
16705
|
return Initial;
|
|
16706
16706
|
})(Layout));
|
|
16707
16707
|
|
|
16708
|
+
function isEdgePlaceholder(item) {
|
|
16709
|
+
return item.id !== undefined && item.props !== undefined && item.source !== undefined && item.target !== undefined;
|
|
16710
|
+
}
|
|
16711
|
+
|
|
16708
16712
|
function defaultSeparation$1(a, b) {
|
|
16709
16713
|
return a.parent === b.parent ? 1 : 2;
|
|
16710
16714
|
}
|
|
@@ -17590,6 +17594,10 @@ var GraphT = /** @class */ (function (_super) {
|
|
|
17590
17594
|
.targetFunc(function (e) { return e.target.id; })
|
|
17591
17595
|
.updateFunc(function (b, a) {
|
|
17592
17596
|
b.props = a.props;
|
|
17597
|
+
if (isEdgePlaceholder(a) && isEdgePlaceholder(b)) {
|
|
17598
|
+
b.source = a.source;
|
|
17599
|
+
b.target = a.target;
|
|
17600
|
+
}
|
|
17593
17601
|
return b;
|
|
17594
17602
|
});
|
|
17595
17603
|
_this._prevDoClickTime = 0;
|
|
@@ -18431,6 +18439,7 @@ var GraphT = /** @class */ (function (_super) {
|
|
|
18431
18439
|
this.updateSubgraphs();
|
|
18432
18440
|
this.updateVertices();
|
|
18433
18441
|
this.updateEdges();
|
|
18442
|
+
this.moveEdges(false);
|
|
18434
18443
|
this.updateLayout();
|
|
18435
18444
|
this.updateIconBar();
|
|
18436
18445
|
};
|