@hpcc-js/graph 2.84.0 → 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.
Files changed (46) hide show
  1. package/dist/index.es6.js +12 -2
  2. package/dist/index.es6.js.map +1 -1
  3. package/dist/index.js +12 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/package.json +7 -7
  8. package/src/__package__.ts +2 -2
  9. package/src/__tests__/data.ts +444 -0
  10. package/src/__tests__/index.ts +1 -0
  11. package/src/__tests__/test1.ts +18 -0
  12. package/src/__tests__/test2.ts +79 -0
  13. package/src/__tests__/test3.ts +46 -0
  14. package/src/__tests__/test4.ts +66 -0
  15. package/src/__tests__/test5.ts +82 -0
  16. package/src/graph2/graphReactT.ts +1 -0
  17. package/src/graph2/graphT.ts +7 -2
  18. package/src/graph2/layouts/placeholders.ts +4 -0
  19. package/types/__package__.d.ts +2 -2
  20. package/types/__package__.d.ts.map +1 -1
  21. package/types/__tests__/data.d.ts +9 -0
  22. package/types/__tests__/data.d.ts.map +1 -0
  23. package/types/__tests__/index.d.ts +2 -0
  24. package/types/__tests__/index.d.ts.map +1 -0
  25. package/types/__tests__/test1.d.ts +5 -0
  26. package/types/__tests__/test1.d.ts.map +1 -0
  27. package/types/__tests__/test2.d.ts +5 -0
  28. package/types/__tests__/test2.d.ts.map +1 -0
  29. package/types/__tests__/test3.d.ts +5 -0
  30. package/types/__tests__/test3.d.ts.map +1 -0
  31. package/types/__tests__/test4.d.ts +5 -0
  32. package/types/__tests__/test4.d.ts.map +1 -0
  33. package/types/__tests__/test5.d.ts +5 -0
  34. package/types/__tests__/test5.d.ts.map +1 -0
  35. package/types/graph2/graphT.d.ts.map +1 -1
  36. package/types/graph2/layouts/placeholders.d.ts +1 -0
  37. package/types/graph2/layouts/placeholders.d.ts.map +1 -1
  38. package/types-3.4/__package__.d.ts +2 -2
  39. package/types-3.4/__tests__/data.d.ts +9 -0
  40. package/types-3.4/__tests__/index.d.ts +2 -0
  41. package/types-3.4/__tests__/test1.d.ts +5 -0
  42. package/types-3.4/__tests__/test2.d.ts +5 -0
  43. package/types-3.4/__tests__/test3.d.ts +5 -0
  44. package/types-3.4/__tests__/test4.d.ts +5 -0
  45. package/types-3.4/__tests__/test5.d.ts +5 -0
  46. 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.0";
9
- var BUILD_VERSION = "2.104.8";
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
  };
@@ -18629,6 +18638,7 @@ var GraphReactT = /** @class */ (function (_super) {
18629
18638
  };
18630
18639
  return GraphReactT;
18631
18640
  }(GraphT));
18641
+ GraphReactT.prototype._class += " graph_GraphReactT";
18632
18642
 
18633
18643
  // , Shape, Text,
18634
18644
  var BasicEdge = function (_a) {