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.
@@ -274,7 +274,7 @@ function getDagDepths (_ref, idAccessor) {
274
274
  foundLoops.push(loop);
275
275
  onLoopError(loop);
276
276
  }
277
- return "continue";
277
+ return 1; // continue
278
278
  }
279
279
  if (currentDepth > node.depth) {
280
280
  // Don't unnecessarily revisit chunks of the graph
@@ -283,8 +283,7 @@ function getDagDepths (_ref, idAccessor) {
283
283
  }
284
284
  };
285
285
  for (var i = 0, l = nodes.length; i < l; i++) {
286
- var _ret = _loop();
287
- if (_ret === "continue") continue;
286
+ if (_loop()) continue;
288
287
  }
289
288
  }
290
289
  }
@@ -930,7 +929,7 @@ var CanvasForceGraph = Kapsule({
930
929
  function linkKapsule (kapsulePropNames, kapsuleType) {
931
930
  var propNames = kapsulePropNames instanceof Array ? kapsulePropNames : [kapsulePropNames];
932
931
  var dummyK = new kapsuleType(); // To extract defaults
933
-
932
+ dummyK._destructor && dummyK._destructor();
934
933
  return {
935
934
  linkProp: function linkProp(prop) {
936
935
  // link property config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "force-graph",
3
- "version": "1.43.2",
3
+ "version": "1.43.3",
4
4
  "description": "2D force-directed graph rendered on HTML5 canvas",
5
5
  "type": "module",
6
6
  "unpkg": "dist/force-graph.min.js",
@@ -63,16 +63,16 @@
63
63
  "lodash-es": "4"
64
64
  },
65
65
  "devDependencies": {
66
- "@babel/core": "^7.22.8",
67
- "@babel/preset-env": "^7.22.7",
66
+ "@babel/core": "^7.22.10",
67
+ "@babel/preset-env": "^7.22.10",
68
68
  "@rollup/plugin-babel": "^6.0.3",
69
- "@rollup/plugin-commonjs": "^25.0.2",
70
- "@rollup/plugin-node-resolve": "^15.1.0",
69
+ "@rollup/plugin-commonjs": "^25.0.4",
70
+ "@rollup/plugin-node-resolve": "^15.2.0",
71
71
  "@rollup/plugin-terser": "^0.4.3",
72
- "postcss": "^8.4.25",
72
+ "postcss": "^8.4.28",
73
73
  "rimraf": "^5.0.1",
74
- "rollup": "^3.26.2",
75
- "rollup-plugin-dts": "^5.3.0",
74
+ "rollup": "^3.28.0",
75
+ "rollup-plugin-dts": "^6.0.0",
76
76
  "rollup-plugin-postcss": "^4.0.2",
77
77
  "typescript": "^5.1.6"
78
78
  },
@@ -3,6 +3,7 @@ export default function(kapsulePropNames, kapsuleType) {
3
3
  const propNames = kapsulePropNames instanceof Array ? kapsulePropNames : [kapsulePropNames];
4
4
 
5
5
  const dummyK = new kapsuleType(); // To extract defaults
6
+ dummyK._destructor && dummyK._destructor();
6
7
 
7
8
  return {
8
9
  linkProp: function(prop) { // link property config