3d-force-graph 1.76.1 → 1.76.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.
Files changed (39) hide show
  1. package/README.md +3 -1
  2. package/dist/3d-force-graph.d.ts +2 -1
  3. package/dist/3d-force-graph.js +19594 -10981
  4. package/dist/3d-force-graph.js.map +1 -1
  5. package/dist/3d-force-graph.min.js +3 -3
  6. package/dist/3d-force-graph.mjs +4 -4
  7. package/example/async-load/index.html +1 -1
  8. package/example/auto-colored/index.html +1 -1
  9. package/example/basic/index.html +1 -1
  10. package/example/bloom-effect/index.html +1 -1
  11. package/example/camera-auto-orbit/index.html +1 -1
  12. package/example/click-to-focus/index.html +1 -1
  13. package/example/collision-detection/index.html +1 -1
  14. package/example/controls-fly/index.html +1 -1
  15. package/example/controls-orbit/index.html +1 -1
  16. package/example/curved-links/index.html +1 -1
  17. package/example/custom-node-geometry/index.html +1 -1
  18. package/example/dag-yarn/index.html +1 -1
  19. package/example/directional-links-arrows/index.html +1 -1
  20. package/example/directional-links-particles/index.html +1 -1
  21. package/example/dynamic/index.html +1 -1
  22. package/example/emit-particles/index.html +1 -1
  23. package/example/expandable-nodes/index.html +1 -1
  24. package/example/fit-to-canvas/index.html +1 -1
  25. package/example/fix-dragged-nodes/index.html +1 -1
  26. package/example/gradient-links/index.html +1 -1
  27. package/example/highlight/index.html +1 -1
  28. package/example/html-nodes/index.html +1 -1
  29. package/example/img-nodes/index.html +1 -1
  30. package/example/large-graph/index.html +1 -1
  31. package/example/manipulate-link-force/index.html +1 -1
  32. package/example/multi-selection/index.html +1 -1
  33. package/example/pause-resume/index.html +1 -1
  34. package/example/responsive/index.html +1 -1
  35. package/example/scene/index.html +1 -1
  36. package/example/text-links/index.html +1 -1
  37. package/example/text-nodes/index.html +1 -1
  38. package/example/tree/index.html +1 -1
  39. package/package.json +10 -9
@@ -6,7 +6,7 @@ import accessorFn from 'accessor-fn';
6
6
  import Kapsule from 'kapsule';
7
7
 
8
8
  function styleInject(css, ref) {
9
- if (ref === undefined) ref = {};
9
+ if (ref === void 0) ref = {};
10
10
  var insertAt = ref.insertAt;
11
11
  if (typeof document === 'undefined') {
12
12
  return;
@@ -82,7 +82,7 @@ function _toConsumableArray(r) {
82
82
  function _toPrimitive(t, r) {
83
83
  if ("object" != typeof t || !t) return t;
84
84
  var e = t[Symbol.toPrimitive];
85
- if (undefined !== e) {
85
+ if (void 0 !== e) {
86
86
  var i = e.call(t, r);
87
87
  if ("object" != typeof i) return i;
88
88
  throw new TypeError("@@toPrimitive must return a primitive value.");
@@ -97,7 +97,7 @@ function _unsupportedIterableToArray(r, a) {
97
97
  if (r) {
98
98
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
99
99
  var t = {}.toString.call(r).slice(8, -1);
100
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : undefined;
100
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
101
101
  }
102
102
  }
103
103
 
@@ -145,7 +145,7 @@ var CAMERA_DISTANCE2NODES_FACTOR = 170;
145
145
 
146
146
  // Expose config from forceGraph
147
147
  var bindFG = linkKapsule('forceGraph', ThreeForceGraph);
148
- var linkedFGProps = Object.assign.apply(Object, _toConsumableArray(['jsonUrl', 'graphData', 'numDimensions', 'dagMode', 'dagLevelDistance', 'dagNodeFilter', 'onDagError', 'nodeRelSize', 'nodeId', 'nodeVal', 'nodeResolution', 'nodeColor', 'nodeAutoColorBy', 'nodeOpacity', 'nodeVisibility', 'nodeThreeObject', 'nodeThreeObjectExtend', 'linkSource', 'linkTarget', 'linkVisibility', 'linkColor', 'linkAutoColorBy', 'linkOpacity', 'linkWidth', 'linkResolution', 'linkCurvature', 'linkCurveRotation', 'linkMaterial', 'linkThreeObject', 'linkThreeObjectExtend', 'linkPositionUpdate', 'linkDirectionalArrowLength', 'linkDirectionalArrowColor', 'linkDirectionalArrowRelPos', 'linkDirectionalArrowResolution', 'linkDirectionalParticles', 'linkDirectionalParticleSpeed', 'linkDirectionalParticleWidth', 'linkDirectionalParticleColor', 'linkDirectionalParticleResolution', 'forceEngine', 'd3AlphaDecay', 'd3VelocityDecay', 'd3AlphaMin', 'ngraphPhysics', 'warmupTicks', 'cooldownTicks', 'cooldownTime', 'onEngineTick', 'onEngineStop'].map(function (p) {
148
+ var linkedFGProps = Object.assign.apply(Object, _toConsumableArray(['jsonUrl', 'graphData', 'numDimensions', 'dagMode', 'dagLevelDistance', 'dagNodeFilter', 'onDagError', 'nodeRelSize', 'nodeId', 'nodeVal', 'nodeResolution', 'nodeColor', 'nodeAutoColorBy', 'nodeOpacity', 'nodeVisibility', 'nodeThreeObject', 'nodeThreeObjectExtend', 'nodePositionUpdate', 'linkSource', 'linkTarget', 'linkVisibility', 'linkColor', 'linkAutoColorBy', 'linkOpacity', 'linkWidth', 'linkResolution', 'linkCurvature', 'linkCurveRotation', 'linkMaterial', 'linkThreeObject', 'linkThreeObjectExtend', 'linkPositionUpdate', 'linkDirectionalArrowLength', 'linkDirectionalArrowColor', 'linkDirectionalArrowRelPos', 'linkDirectionalArrowResolution', 'linkDirectionalParticles', 'linkDirectionalParticleSpeed', 'linkDirectionalParticleWidth', 'linkDirectionalParticleColor', 'linkDirectionalParticleResolution', 'forceEngine', 'd3AlphaDecay', 'd3VelocityDecay', 'd3AlphaMin', 'ngraphPhysics', 'warmupTicks', 'cooldownTicks', 'cooldownTime', 'onEngineTick', 'onEngineStop'].map(function (p) {
149
149
  return _defineProperty({}, p, bindFG.linkProp(p));
150
150
  })));
151
151
  var linkedFGMethods = Object.assign.apply(Object, _toConsumableArray(['refresh', 'getGraphBbox', 'd3Force', 'd3ReheatSimulation', 'emitParticle'].map(function (p) {
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!-- <script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  <script src="//bundle.run/@yarnpkg/lockfile@1.1.0"></script>
5
5
 
6
- <script src="//unpkg.com/3d-force-graph"></script>
6
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
7
7
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
8
8
  </head>
9
9
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -10,7 +10,7 @@
10
10
  }
11
11
  </style>
12
12
 
13
- <script src="//unpkg.com/3d-force-graph"></script>
13
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
14
14
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
15
15
  </head>
16
16
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!-- <script src="../../dist/3d-force-graph.js"></script>-->
6
6
 
7
7
  <style>
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!-- <script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!-- <script src="../../dist/3d-force-graph.js"></script>-->
6
6
 
7
7
  <style>
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!-- <script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!-- <script src="../../dist/3d-force-graph.js"></script> -->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!-- <script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 30px; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!-- <script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!-- <script src="../../dist/3d-force-graph.js"></script> -->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <style> body { margin: 0; } </style>
3
3
 
4
- <script src="//unpkg.com/3d-force-graph"></script>
4
+ <script src="//cdn.jsdelivr.net/npm/3d-force-graph"></script>
5
5
  <!--<script src="../../dist/3d-force-graph.js"></script>-->
6
6
  </head>
7
7
 
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "3d-force-graph",
3
- "version": "1.76.1",
3
+ "version": "1.76.3",
4
4
  "description": "UI component for a 3D force-directed graph using ThreeJS and d3-force-3d layout engine",
5
5
  "type": "module",
6
+ "jsdelivr": "dist/3d-force-graph.min.js",
6
7
  "unpkg": "dist/3d-force-graph.min.js",
7
8
  "main": "dist/3d-force-graph.mjs",
8
9
  "module": "dist/3d-force-graph.mjs",
@@ -53,18 +54,18 @@
53
54
  "three-render-objects": "^1.35"
54
55
  },
55
56
  "devDependencies": {
56
- "@babel/core": "^7.26.7",
57
- "@babel/preset-env": "^7.26.7",
57
+ "@babel/core": "^7.26.10",
58
+ "@babel/preset-env": "^7.26.9",
58
59
  "@rollup/plugin-babel": "^6.0.4",
59
- "@rollup/plugin-commonjs": "^28.0.2",
60
- "@rollup/plugin-node-resolve": "^16.0.0",
60
+ "@rollup/plugin-commonjs": "^28.0.3",
61
+ "@rollup/plugin-node-resolve": "^16.0.1",
61
62
  "@rollup/plugin-terser": "^0.4.4",
62
- "postcss": "^8.5.1",
63
+ "postcss": "^8.5.3",
63
64
  "rimraf": "^6.0.1",
64
- "rollup": "^4.34.4",
65
- "rollup-plugin-dts": "^6.1.1",
65
+ "rollup": "^4.36.0",
66
+ "rollup-plugin-dts": "^6.2.1",
66
67
  "rollup-plugin-postcss": "^4.0.2",
67
- "typescript": "^5.7.3"
68
+ "typescript": "^5.8.2"
68
69
  },
69
70
  "engines": {
70
71
  "node": ">=12"