3d-force-graph 1.76.2 → 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.
- package/README.md +3 -1
- package/dist/3d-force-graph.d.ts +2 -1
- package/dist/3d-force-graph.js +19594 -10981
- package/dist/3d-force-graph.js.map +1 -1
- package/dist/3d-force-graph.min.js +3 -3
- package/dist/3d-force-graph.mjs +4 -4
- package/package.json +10 -10
package/dist/3d-force-graph.mjs
CHANGED
|
@@ -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 ===
|
|
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 (
|
|
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) :
|
|
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) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3d-force-graph",
|
|
3
|
-
"version": "1.76.
|
|
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
|
-
"unpkg": "dist/3d-force-graph.min.js",
|
|
7
6
|
"jsdelivr": "dist/3d-force-graph.min.js",
|
|
7
|
+
"unpkg": "dist/3d-force-graph.min.js",
|
|
8
8
|
"main": "dist/3d-force-graph.mjs",
|
|
9
9
|
"module": "dist/3d-force-graph.mjs",
|
|
10
10
|
"types": "dist/3d-force-graph.d.ts",
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"three-render-objects": "^1.35"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@babel/core": "^7.26.
|
|
58
|
-
"@babel/preset-env": "^7.26.
|
|
57
|
+
"@babel/core": "^7.26.10",
|
|
58
|
+
"@babel/preset-env": "^7.26.9",
|
|
59
59
|
"@rollup/plugin-babel": "^6.0.4",
|
|
60
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
61
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
60
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
61
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
62
62
|
"@rollup/plugin-terser": "^0.4.4",
|
|
63
|
-
"postcss": "^8.5.
|
|
63
|
+
"postcss": "^8.5.3",
|
|
64
64
|
"rimraf": "^6.0.1",
|
|
65
|
-
"rollup": "^4.
|
|
66
|
-
"rollup-plugin-dts": "^6.
|
|
65
|
+
"rollup": "^4.36.0",
|
|
66
|
+
"rollup-plugin-dts": "^6.2.1",
|
|
67
67
|
"rollup-plugin-postcss": "^4.0.2",
|
|
68
|
-
"typescript": "^5.
|
|
68
|
+
"typescript": "^5.8.2"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=12"
|