force-graph 1.43.2 → 1.43.3

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.
@@ -193,4 +193,4 @@ type ForceGraphInstance = ForceGraphGenericInstance<ForceGraphInstance>;
193
193
 
194
194
  declare function ForceGraph(): ForceGraphInstance;
195
195
 
196
- export { CanvasCustomRenderFn, CanvasCustomRenderModeFn, CanvasPointerAreaPaintFn, ForceGraphGenericInstance, ForceGraphInstance, GraphData, LinkObject, NodeObject, ForceGraph as default };
196
+ export { type CanvasCustomRenderFn, type CanvasCustomRenderModeFn, type CanvasPointerAreaPaintFn, type ForceGraphGenericInstance, type ForceGraphInstance, type GraphData, type LinkObject, type NodeObject, ForceGraph as default };
@@ -1,4 +1,4 @@
1
- // Version 1.43.2 force-graph - https://github.com/vasturiano/force-graph
1
+ // Version 1.43.3 force-graph - https://github.com/vasturiano/force-graph
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -8649,7 +8649,7 @@
8649
8649
  y: dCpts[i].y + (dCpts[i + 1].y - dCpts[i].y) * t,
8650
8650
  };
8651
8651
  if (typeof dCpts[i].z !== "undefined") {
8652
- dCpts[i] = dCpts[i].z + (dCpts[i + 1].z - dCpts[i].z) * t;
8652
+ dCpts[i].z = dCpts[i].z + (dCpts[i + 1].z - dCpts[i].z) * t;
8653
8653
  }
8654
8654
  }
8655
8655
  dCpts.splice(dCpts.length - 1, 1);
@@ -10799,7 +10799,7 @@
10799
10799
  foundLoops.push(loop);
10800
10800
  onLoopError(loop);
10801
10801
  }
10802
- return "continue";
10802
+ return 1; // continue
10803
10803
  }
10804
10804
  if (currentDepth > node.depth) {
10805
10805
  // Don't unnecessarily revisit chunks of the graph
@@ -10808,8 +10808,7 @@
10808
10808
  }
10809
10809
  };
10810
10810
  for (var i = 0, l = nodes.length; i < l; i++) {
10811
- var _ret = _loop();
10812
- if (_ret === "continue") continue;
10811
+ if (_loop()) continue;
10813
10812
  }
10814
10813
  }
10815
10814
  }
@@ -11455,7 +11454,7 @@
11455
11454
  function linkKapsule (kapsulePropNames, kapsuleType) {
11456
11455
  var propNames = kapsulePropNames instanceof Array ? kapsulePropNames : [kapsulePropNames];
11457
11456
  var dummyK = new kapsuleType(); // To extract defaults
11458
-
11457
+ dummyK._destructor && dummyK._destructor();
11459
11458
  return {
11460
11459
  linkProp: function linkProp(prop) {
11461
11460
  // link property config