3d-force-graph 1.73.3 → 1.73.5

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.
@@ -8,7 +8,7 @@ import Kapsule from 'kapsule';
8
8
  function styleInject(css, ref) {
9
9
  if (ref === void 0) ref = {};
10
10
  var insertAt = ref.insertAt;
11
- if (!css || typeof document === 'undefined') {
11
+ if (typeof document === 'undefined') {
12
12
  return;
13
13
  }
14
14
  var head = document.head || document.getElementsByTagName('head')[0];
@@ -33,6 +33,28 @@ function styleInject(css, ref) {
33
33
  var css_248z = ".graph-info-msg {\n top: 50%;\n width: 100%;\n text-align: center;\n color: lavender;\n opacity: 0.7;\n font-size: 22px;\n position: absolute;\n font-family: Sans-serif;\n}\n\n.scene-container .clickable {\n cursor: pointer;\n}\n\n.scene-container .grabbable {\n cursor: move;\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n\n.scene-container .grabbable:active {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}";
34
34
  styleInject(css_248z);
35
35
 
36
+ function _arrayLikeToArray(r, a) {
37
+ (null == a || a > r.length) && (a = r.length);
38
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
39
+ return n;
40
+ }
41
+ function _arrayWithoutHoles(r) {
42
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
43
+ }
44
+ function _defineProperty(e, r, t) {
45
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
46
+ value: t,
47
+ enumerable: !0,
48
+ configurable: !0,
49
+ writable: !0
50
+ }) : e[r] = t, e;
51
+ }
52
+ function _iterableToArray(r) {
53
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
54
+ }
55
+ function _nonIterableSpread() {
56
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
57
+ }
36
58
  function ownKeys(e, r) {
37
59
  var t = Object.keys(e);
38
60
  if (Object.getOwnPropertySymbols) {
@@ -54,6 +76,9 @@ function _objectSpread2(e) {
54
76
  }
55
77
  return e;
56
78
  }
79
+ function _toConsumableArray(r) {
80
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
81
+ }
57
82
  function _toPrimitive(t, r) {
58
83
  if ("object" != typeof t || !t) return t;
59
84
  var e = t[Symbol.toPrimitive];
@@ -68,44 +93,12 @@ function _toPropertyKey(t) {
68
93
  var i = _toPrimitive(t, "string");
69
94
  return "symbol" == typeof i ? i : i + "";
70
95
  }
71
- function _defineProperty(obj, key, value) {
72
- key = _toPropertyKey(key);
73
- if (key in obj) {
74
- Object.defineProperty(obj, key, {
75
- value: value,
76
- enumerable: true,
77
- configurable: true,
78
- writable: true
79
- });
80
- } else {
81
- obj[key] = value;
96
+ function _unsupportedIterableToArray(r, a) {
97
+ if (r) {
98
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
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) : void 0;
82
101
  }
83
- return obj;
84
- }
85
- function _toConsumableArray(arr) {
86
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
87
- }
88
- function _arrayWithoutHoles(arr) {
89
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
90
- }
91
- function _iterableToArray(iter) {
92
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
93
- }
94
- function _unsupportedIterableToArray(o, minLen) {
95
- if (!o) return;
96
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
97
- var n = Object.prototype.toString.call(o).slice(8, -1);
98
- if (n === "Object" && o.constructor) n = o.constructor.name;
99
- if (n === "Map" || n === "Set") return Array.from(o);
100
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
101
- }
102
- function _arrayLikeToArray(arr, len) {
103
- if (len == null || len > arr.length) len = arr.length;
104
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
105
- return arr2;
106
- }
107
- function _nonIterableSpread() {
108
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
109
102
  }
110
103
 
111
104
  function linkKapsule (kapsulePropName, kapsuleType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3d-force-graph",
3
- "version": "1.73.3",
3
+ "version": "1.73.5",
4
4
  "description": "UI component for a 3D force-directed graph using ThreeJS and d3-force-3d layout engine",
5
5
  "type": "module",
6
6
  "unpkg": "dist/3d-force-graph.min.js",
@@ -53,18 +53,18 @@
53
53
  "three-render-objects": "^1.29"
54
54
  },
55
55
  "devDependencies": {
56
- "@babel/core": "^7.24.3",
57
- "@babel/preset-env": "^7.24.3",
56
+ "@babel/core": "^7.26.0",
57
+ "@babel/preset-env": "^7.26.0",
58
58
  "@rollup/plugin-babel": "^6.0.4",
59
- "@rollup/plugin-commonjs": "^25.0.7",
60
- "@rollup/plugin-node-resolve": "^15.2.3",
59
+ "@rollup/plugin-commonjs": "^28.0.1",
60
+ "@rollup/plugin-node-resolve": "^15.3.0",
61
61
  "@rollup/plugin-terser": "^0.4.4",
62
- "postcss": "^8.4.38",
63
- "rimraf": "^5.0.5",
64
- "rollup": "^4.13.1",
65
- "rollup-plugin-dts": "^6.1.0",
62
+ "postcss": "^8.4.47",
63
+ "rimraf": "^6.0.1",
64
+ "rollup": "^4.24.3",
65
+ "rollup-plugin-dts": "^6.1.1",
66
66
  "rollup-plugin-postcss": "^4.0.2",
67
- "typescript": "^5.4.3"
67
+ "typescript": "^5.6.3"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">=12"