@samoramachel/netuniverse 1.1.0 → 1.2.0
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 +8 -3
- package/dist/GraphScene.d.ts.map +1 -1
- package/dist/index.es.js +61 -59
- package/dist/index.umd.js +7 -7
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,10 +37,11 @@ npm install react react-dom three
|
|
|
37
37
|
### Basic Example
|
|
38
38
|
|
|
39
39
|
```tsx
|
|
40
|
-
import { GraphScene } from 'netuniverse';
|
|
40
|
+
import { GraphScene, generateGraphData } from 'netuniverse';
|
|
41
41
|
import type { GraphData } from 'netuniverse';
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
// Option 1: Use your own data
|
|
44
|
+
const myData: GraphData = {
|
|
44
45
|
nodes: [
|
|
45
46
|
{ id: '1', label: 'Node 1', cluster: 'CORE', x: 0, y: 0, z: 0 },
|
|
46
47
|
{ id: '2', label: 'Node 2', cluster: 'FINANCE', x: 100, y: 0, z: 0 },
|
|
@@ -50,13 +51,17 @@ const data: GraphData = {
|
|
|
50
51
|
]
|
|
51
52
|
};
|
|
52
53
|
|
|
54
|
+
// Option 2: Prototype with default random data
|
|
55
|
+
const defaultData = generateGraphData();
|
|
56
|
+
|
|
53
57
|
function App() {
|
|
54
58
|
const [selectedNode, setSelectedNode] = useState(null);
|
|
55
59
|
|
|
60
|
+
// Use myData or defaultData
|
|
56
61
|
return (
|
|
57
62
|
<div style={{ width: '100vw', height: '100vh' }}>
|
|
58
63
|
<GraphScene
|
|
59
|
-
data={
|
|
64
|
+
data={defaultData}
|
|
60
65
|
onNodeSelect={setSelectedNode}
|
|
61
66
|
selectedNodeId={selectedNode?.id || null}
|
|
62
67
|
/>
|
package/dist/GraphScene.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GraphScene.d.ts","sourceRoot":"","sources":["../GraphScene.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMxD,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B;AAED,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"GraphScene.d.ts","sourceRoot":"","sources":["../GraphScene.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMxD,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B;AAED,eAAO,MAAM,UAAU,kFA4FrB,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as Mt, Fragment as Us, jsx as L } from "react/jsx-runtime";
|
|
2
2
|
import * as wi from "react";
|
|
3
|
-
import Wn, { useRef as
|
|
3
|
+
import Wn, { useRef as J, useEffect as Fn, useMemo as vt, useState as ns, useCallback as Ws, Suspense as Nc, createContext as nn, useLayoutEffect as Ic, useId as Gs, useContext as ct, useInsertionEffect as Ks, Children as Fc, isValidElement as Bc, Fragment as $a, createElement as si, forwardRef as Ys, Component as zc } from "react";
|
|
4
4
|
import { useThree as jc, useFrame as Ua, Canvas as $c } from "@react-three/fiber";
|
|
5
5
|
import { Html as Uc, PerspectiveCamera as Wc, OrbitControls as Gc } from "@react-three/drei";
|
|
6
6
|
import * as Zt from "three";
|
|
@@ -33,7 +33,7 @@ var kt = {
|
|
|
33
33
|
delay: 0
|
|
34
34
|
}, qs, at, U, Nt = 1e8, B = 1 / Nt, is = Math.PI * 2, Kc = is / 4, Yc = 0, Ga = Math.sqrt, qc = Math.cos, Xc = Math.sin, st = function(t) {
|
|
35
35
|
return typeof t == "string";
|
|
36
|
-
},
|
|
36
|
+
}, Z = function(t) {
|
|
37
37
|
return typeof t == "function";
|
|
38
38
|
}, ne = function(t) {
|
|
39
39
|
return typeof t == "number";
|
|
@@ -46,7 +46,7 @@ var kt = {
|
|
|
46
46
|
}, Hs = function() {
|
|
47
47
|
return typeof window < "u";
|
|
48
48
|
}, Gn = function(t) {
|
|
49
|
-
return
|
|
49
|
+
return Z(t) || st(t);
|
|
50
50
|
}, Ka = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
51
51
|
}, dt = Array.isArray, Hc = /random\([^)]+\)/g, Zc = /,\s*/g, Hr = /(?:-?\.?\d|\.)+/gi, Ya = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, Ie = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ei = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, qa = /[+-]=-?[.\d]+/, Qc = /[^,'"\[\]\s]+/gi, Jc = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, K, Wt, ss, Zs, Vt = {}, ri = {}, Xa, Ha = function(t) {
|
|
52
52
|
return (ri = Xe(t, Vt)) && St;
|
|
@@ -69,7 +69,7 @@ var kt = {
|
|
|
69
69
|
suppressEvents: !0
|
|
70
70
|
}, Js = {}, fe = [], rs = {}, Qa, At = {}, ki = {}, Zr = 30, Zn = [], tr = "", er = function(t) {
|
|
71
71
|
var n = t[0], i, s;
|
|
72
|
-
if (Xt(n) ||
|
|
72
|
+
if (Xt(n) || Z(n) || (t = [t]), !(i = (n._gsap || {}).harness)) {
|
|
73
73
|
for (s = Zn.length; s-- && !Zn[s].targetTest(n); )
|
|
74
74
|
;
|
|
75
75
|
i = Zn[s];
|
|
@@ -80,10 +80,10 @@ var kt = {
|
|
|
80
80
|
}, De = function(t) {
|
|
81
81
|
return t._gsap || er(It(t))[0]._gsap;
|
|
82
82
|
}, Ja = function(t, n, i) {
|
|
83
|
-
return (i = t[n]) &&
|
|
83
|
+
return (i = t[n]) && Z(i) ? t[n]() : Xs(i) && t.getAttribute && t.getAttribute(n) || i;
|
|
84
84
|
}, wt = function(t, n) {
|
|
85
85
|
return (t = t.split(",")).forEach(n) || t;
|
|
86
|
-
},
|
|
86
|
+
}, Q = function(t) {
|
|
87
87
|
return Math.round(t * 1e5) / 1e5 || 0;
|
|
88
88
|
}, G = function(t) {
|
|
89
89
|
return Math.round(t * 1e7) / 1e7 || 0;
|
|
@@ -271,7 +271,7 @@ var kt = {
|
|
|
271
271
|
return 0.5 - Math.random();
|
|
272
272
|
});
|
|
273
273
|
}, ul = function(t) {
|
|
274
|
-
if (
|
|
274
|
+
if (Z(t))
|
|
275
275
|
return t;
|
|
276
276
|
var n = Xt(t) ? t : {
|
|
277
277
|
each: t
|
|
@@ -302,7 +302,7 @@ var kt = {
|
|
|
302
302
|
};
|
|
303
303
|
}, cl = function(t, n) {
|
|
304
304
|
var i = dt(t), s, r;
|
|
305
|
-
return !i && Xt(t) && (s = i = t.radius || Nt, t.values ? (t = It(t.values), (r = !ne(t[0])) && (s *= s)) : t = cs(t.increment)), ve(n, i ?
|
|
305
|
+
return !i && Xt(t) && (s = i = t.radius || Nt, t.values ? (t = It(t.values), (r = !ne(t[0])) && (s *= s)) : t = cs(t.increment)), ve(n, i ? Z(t) ? function(o) {
|
|
306
306
|
return r = t(o), Math.abs(r - o) <= s ? r : o;
|
|
307
307
|
} : function(o) {
|
|
308
308
|
for (var a = parseFloat(r ? o.x : o), l = parseFloat(r ? o.y : 0), u = Nt, c = 0, h = t.length, f, d; h--; )
|
|
@@ -395,7 +395,7 @@ var kt = {
|
|
|
395
395
|
}, Fe, pl = [], ml = function(t) {
|
|
396
396
|
if (t)
|
|
397
397
|
if (t = !t.name && t.default || t, Hs() || t.headless) {
|
|
398
|
-
var n = t.name, i =
|
|
398
|
+
var n = t.name, i = Z(t), s = n && !i && t.init ? function() {
|
|
399
399
|
this._props = [];
|
|
400
400
|
} : t, r = {
|
|
401
401
|
init: Pn,
|
|
@@ -549,7 +549,7 @@ var kt = {
|
|
|
549
549
|
for (var i = t._first, s; i; )
|
|
550
550
|
i instanceof pt ? e(i, n) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== n && (i.timeline ? e(i.timeline, n) : (s = i._ease, i._ease = i._yEase, i._yEase = s, i._yoyo = n)), i = i._next;
|
|
551
551
|
}, ke = function(t, n) {
|
|
552
|
-
return t && (
|
|
552
|
+
return t && (Z(t) ? t : I[t] || Sh(t)) || n;
|
|
553
553
|
}, Le = function(t, n, i, s) {
|
|
554
554
|
i === void 0 && (i = function(l) {
|
|
555
555
|
return 1 - n(1 - l);
|
|
@@ -731,9 +731,9 @@ var Tl = function(t, n) {
|
|
|
731
731
|
}, t.then = function(i) {
|
|
732
732
|
var s = this, r = s._prom;
|
|
733
733
|
return new Promise(function(o) {
|
|
734
|
-
var a =
|
|
734
|
+
var a = Z(i) ? i : nl, l = function() {
|
|
735
735
|
var c = s.then;
|
|
736
|
-
s.then = null, r && r(),
|
|
736
|
+
s.then = null, r && r(), Z(a) && (a = a(s)) && (a.then || a === s) && (s.then = c), o(a), s.then = c;
|
|
737
737
|
};
|
|
738
738
|
s._initted && s.totalProgress() === 1 && s._ts >= 0 || !s._tTime && s._ts < 0 ? l() : s._prom = l;
|
|
739
739
|
});
|
|
@@ -841,7 +841,7 @@ var pt = /* @__PURE__ */ (function(e) {
|
|
|
841
841
|
}), this;
|
|
842
842
|
if (st(s))
|
|
843
843
|
return this.addLabel(s, r);
|
|
844
|
-
if (
|
|
844
|
+
if (Z(s))
|
|
845
845
|
s = et.delayedCall(0, s);
|
|
846
846
|
else
|
|
847
847
|
return this;
|
|
@@ -857,7 +857,7 @@ var pt = /* @__PURE__ */ (function(e) {
|
|
|
857
857
|
if (r[o].vars.id === s)
|
|
858
858
|
return r[o];
|
|
859
859
|
}, n.remove = function(s) {
|
|
860
|
-
return st(s) ? this.removeLabel(s) :
|
|
860
|
+
return st(s) ? this.removeLabel(s) : Z(s) ? this.killTweensOf(s) : (s.parent === this && Ti(this, s), s === this._recent && (this._recent = this._last), Ee(this));
|
|
861
861
|
}, n.totalTime = function(s, r) {
|
|
862
862
|
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = G(Ct.time - (this._ts > 0 ? s / this._ts : (this.totalDuration() - s) / -this._ts))), e.prototype.totalTime.call(this, s, r), this._forcing = 0, this) : this._tTime;
|
|
863
863
|
}, n.addLabel = function(s, r) {
|
|
@@ -970,12 +970,12 @@ var Ph = function(t, n, i, s, r, o, a) {
|
|
|
970
970
|
}, u = Ei.lastIndex);
|
|
971
971
|
return l.c = u < s.length ? s.substring(u, s.length) : "", l.fp = a, (qa.test(s) || g) && (l.e = 0), this._pt = l, l;
|
|
972
972
|
}, ir = function(t, n, i, s, r, o, a, l, u, c) {
|
|
973
|
-
|
|
974
|
-
var h = t[n], f = i !== "get" ? i :
|
|
973
|
+
Z(s) && (s = s(r || 0, t, o));
|
|
974
|
+
var h = t[n], f = i !== "get" ? i : Z(h) ? u ? t[n.indexOf("set") || !Z(t["get" + n.substr(3)]) ? n : "get" + n.substr(3)](u) : t[n]() : h, d = Z(h) ? u ? Eh : Al : rr, m;
|
|
975
975
|
if (st(s) && (~s.indexOf("random(") && (s = An(s)), s.charAt(1) === "=" && (m = We(f, s) + (ht(f) || 0), (m || m === 0) && (s = m))), !c || f !== s || hs)
|
|
976
976
|
return !isNaN(f * s) && s !== "" ? (m = new Tt(this._pt, t, n, +f || 0, s - (f || 0), typeof h == "boolean" ? Vh : Ml, 0, d), u && (m.fp = u), a && m.modifier(a, this, t), this._pt = m) : (!h && !(n in t) && Qs(n, s), Ph.call(this, t, n, f, s, d, l || kt.stringFilter, u));
|
|
977
977
|
}, Ah = function(t, n, i, s, r) {
|
|
978
|
-
if (
|
|
978
|
+
if (Z(t) && (t = vn(t, r, n, i, s)), !Xt(t) || t.style && t.nodeType || dt(t) || Ka(t))
|
|
979
979
|
return st(t) ? vn(t, r, n, i, s) : t;
|
|
980
980
|
var o = {}, a;
|
|
981
981
|
for (a in t)
|
|
@@ -1046,7 +1046,7 @@ var Ph = function(t, n, i, s, r, o, a) {
|
|
|
1046
1046
|
u.push(c);
|
|
1047
1047
|
}
|
|
1048
1048
|
for (d = u.length; d--; )
|
|
1049
|
-
h = u[d], c = h._pt || h, c.s = (s || s === 0) && !r ? s : c.s + (s || 0) + o * c.c, c.c = i - c.s, h.e && (h.e =
|
|
1049
|
+
h = u[d], c = h._pt || h, c.s = (s || s === 0) && !r ? s : c.s + (s || 0) + o * c.c, c.c = i - c.s, h.e && (h.e = Q(i) + ht(h.e)), h.b && (h.b = c.s + ht(h.b));
|
|
1050
1050
|
}, Ch = function(t, n) {
|
|
1051
1051
|
var i = t[0] ? De(t[0]).harness : 0, s = i && i.aliases, r, o, a, l;
|
|
1052
1052
|
if (!s)
|
|
@@ -1075,7 +1075,7 @@ var Ph = function(t, n, i, s, r, o, a) {
|
|
|
1075
1075
|
e: r
|
|
1076
1076
|
});
|
|
1077
1077
|
}, vn = function(t, n, i, s, r) {
|
|
1078
|
-
return
|
|
1078
|
+
return Z(t) ? t.call(n, i, s, r) : st(t) && ~t.indexOf("random(") ? An(t) : t;
|
|
1079
1079
|
}, Sl = tr + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Pl = {};
|
|
1080
1080
|
wt(Sl + ",id,stagger,delay,duration,paused,scrollTrigger", function(e) {
|
|
1081
1081
|
return Pl[e] = 1;
|
|
@@ -1230,7 +1230,7 @@ var rr = function(t, n, i) {
|
|
|
1230
1230
|
}, kh = function(t, n, i) {
|
|
1231
1231
|
return t.setAttribute(n, i);
|
|
1232
1232
|
}, or = function(t, n) {
|
|
1233
|
-
return
|
|
1233
|
+
return Z(t[n]) ? Al : Xs(t[n]) && t.setAttribute ? kh : rr;
|
|
1234
1234
|
}, Ml = function(t, n) {
|
|
1235
1235
|
return n.set(n.t, n.p, Math.round((n.s + n.c * t) * 1e6) / 1e6, n);
|
|
1236
1236
|
}, Vh = function(t, n) {
|
|
@@ -1310,12 +1310,12 @@ var Ve = [], Qn = {}, Nh = [], io = 0, Ih = 0, Li = function(t) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
var t = e.prototype;
|
|
1312
1312
|
return t.add = function(i, s, r) {
|
|
1313
|
-
|
|
1313
|
+
Z(i) && (r = s, s = i, i = Z);
|
|
1314
1314
|
var o = this, a = function() {
|
|
1315
1315
|
var u = U, c = o.selector, h;
|
|
1316
|
-
return u && u !== o && u.data.push(o), r && (o.selector = us(r)), U = o, h = s.apply(o, arguments),
|
|
1316
|
+
return u && u !== o && u.data.push(o), r && (o.selector = us(r)), U = o, h = s.apply(o, arguments), Z(h) && o._r.push(h), U = u, o.selector = c, o.isReverted = !1, h;
|
|
1317
1317
|
};
|
|
1318
|
-
return o.last = a, i ===
|
|
1318
|
+
return o.last = a, i === Z ? a(o, function(l) {
|
|
1319
1319
|
return o.add(null, l);
|
|
1320
1320
|
}) : i ? o[i] = a : a;
|
|
1321
1321
|
}, t.ignore = function(i) {
|
|
@@ -1748,15 +1748,15 @@ var so, ue, Ge, lr, Ae, ro, ur, jh = function() {
|
|
|
1748
1748
|
if (s === o || !r || co[s] || co[o])
|
|
1749
1749
|
return r;
|
|
1750
1750
|
if (o !== "px" && !f && (r = e(t, n, i, "px")), g = t.getCTM && Il(t), (d || o === "%") && (ie[n] || ~n.indexOf("adius")))
|
|
1751
|
-
return m = g ? t.getBBox()[l ? "width" : "height"] : t[c],
|
|
1751
|
+
return m = g ? t.getBBox()[l ? "width" : "height"] : t[c], Q(d ? r / m * h : r / 100 * m);
|
|
1752
1752
|
if (a[l ? "width" : "height"] = h + (f ? o : s), p = s !== "rem" && ~n.indexOf("adius") || s === "em" && t.appendChild && !u ? t : t.parentNode, g && (p = (t.ownerSVGElement || {}).parentNode), (!p || p === ue || !p.appendChild) && (p = ue.body), y = p._gsap, y && d && y.width && l && y.time === Ct.time && !y.uncache)
|
|
1753
|
-
return
|
|
1753
|
+
return Q(r / y.width * h);
|
|
1754
1754
|
if (d && (n === "height" || n === "width")) {
|
|
1755
1755
|
var x = t.style[n];
|
|
1756
1756
|
t.style[n] = h + s, m = t[c], x ? t.style[n] = x : me(t, n);
|
|
1757
1757
|
} else
|
|
1758
1758
|
(d || o === "%") && !nf[Et(p, "display")] && (a.position = Et(t, "position")), p === t && (a.position = "static"), p.appendChild(Ae), m = Ae[c], p.removeChild(Ae), a.position = "absolute";
|
|
1759
|
-
return l && d && (y = De(p), y.time = Ct.time, y.width = p[c]),
|
|
1759
|
+
return l && d && (y = De(p), y.time = Ct.time, y.width = p[c]), Q(f ? m * r / h : m && r ? h / m * r : 0);
|
|
1760
1760
|
}, Jt = function(t, n, i, s) {
|
|
1761
1761
|
var r;
|
|
1762
1762
|
return lr || ms(), n in Kt && n !== "transform" && (n = Kt[n], ~n.indexOf(",") && (n = n.split(",")[0])), ie[n] && n !== "transform" ? (r = En(t, s), r = n !== "transformOrigin" ? r[n] : r.svg ? r.origin : hi(Et(t, bt)) + " " + r.zOrigin + "px") : (r = t.style[n], (!r || r === "auto" || s || ~(r + "").indexOf("calc(")) && (r = ci[n] && ci[n](t, n, i) || Et(t, n) || Ja(t, n) || (n === "opacity" ? 1 : 0))), i && !~(r + "").trim().indexOf(" ") ? ge(t, n, r, i) + i : r;
|
|
@@ -1873,7 +1873,7 @@ var so, ue, Ge, lr, Ae, ro, ur, jh = function() {
|
|
|
1873
1873
|
return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
|
|
1874
1874
|
}, fo = function(t) {
|
|
1875
1875
|
var n = Et(t, Y);
|
|
1876
|
-
return Bl(n) ? Dn : n.substr(7).match(Ya).map(
|
|
1876
|
+
return Bl(n) ? Dn : n.substr(7).match(Ya).map(Q);
|
|
1877
1877
|
}, hr = function(t, n) {
|
|
1878
1878
|
var i = t._gsap || De(t), s = t.style, r = fo(t), o, a, l, u;
|
|
1879
1879
|
return i.svg && t.getAttribute("transform") ? (l = t.transform.baseVal.consolidate().matrix, r = [l.a, l.b, l.c, l.d, l.e, l.f], r.join(",") === "1,0,0,1,0,0" ? Dn : r) : (r === Dn && !t.offsetParent && t !== Ge && !i.svg && (l = s.display, s.display = "block", o = t.parentNode, (!o || !t.offsetParent && !t.getBoundingClientRect().width) && (u = 1, a = t.nextElementSibling, Ge.appendChild(t)), r = fo(t), l ? s.display = l : me(t, "display"), u && (a ? o.insertBefore(t, a) : o ? o.appendChild(t) : Ge.removeChild(t))), n && r.length > 6 ? [r[0], r[1], r[4], r[5], r[12], r[13]] : r);
|
|
@@ -1885,12 +1885,12 @@ var so, ue, Ge, lr, Ae, ro, ur, jh = function() {
|
|
|
1885
1885
|
if ("x" in i && !n && !i.uncache)
|
|
1886
1886
|
return i;
|
|
1887
1887
|
var s = t.style, r = i.scaleX < 0, o = "px", a = "deg", l = getComputedStyle(t), u = Et(t, bt) || "0", c, h, f, d, m, p, y, g, x, v, w, _, T, S, b, P, C, k, A, M, R, E, O, V, N, X, rt, j, ut, zt, it, oe;
|
|
1888
|
-
return c = h = f = p = y = g = x = v = w = 0, d = m = 1, i.svg = !!(t.getCTM && Il(t)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (s[Y] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[Y] !== "none" ? l[Y] : "")), s.scale = s.rotate = s.translate = "none"), S = hr(t, i.svg), i.svg && (i.uncache ? (N = t.getBBox(), u = i.xOrigin - N.x + "px " + (i.yOrigin - N.y) + "px", V = "") : V = !n && t.getAttribute("data-svg-origin"), gs(t, V || u, !!V || i.originIsAbsolute, i.smooth !== !1, S)), _ = i.xOrigin || 0, T = i.yOrigin || 0, S !== Dn && (k = S[0], A = S[1], M = S[2], R = S[3], c = E = S[4], h = O = S[5], S.length === 6 ? (d = Math.sqrt(k * k + A * A), m = Math.sqrt(R * R + M * M), p = k || A ? Ne(A, k) * Se : 0, x = M || R ? Ne(M, R) * Se + p : 0, x && (m *= Math.abs(Math.cos(x * Ke))), i.svg && (c -= _ - (_ * k + T * M), h -= T - (_ * A + T * R))) : (oe = S[6], zt = S[7], rt = S[8], j = S[9], ut = S[10], it = S[11], c = S[12], h = S[13], f = S[14], b = Ne(oe, ut), y = b * Se, b && (P = Math.cos(-b), C = Math.sin(-b), V = E * P + rt * C, N = O * P + j * C, X = oe * P + ut * C, rt = E * -C + rt * P, j = O * -C + j * P, ut = oe * -C + ut * P, it = zt * -C + it * P, E = V, O = N, oe = X), b = Ne(-M, ut), g = b * Se, b && (P = Math.cos(-b), C = Math.sin(-b), V = k * P - rt * C, N = A * P - j * C, X = M * P - ut * C, it = R * C + it * P, k = V, A = N, M = X), b = Ne(A, k), p = b * Se, b && (P = Math.cos(b), C = Math.sin(b), V = k * P + A * C, N = E * P + O * C, A = A * P - k * C, O = O * P - E * C, k = V, E = N), y && Math.abs(y) + Math.abs(p) > 359.9 && (y = p = 0, g = 180 - g), d =
|
|
1888
|
+
return c = h = f = p = y = g = x = v = w = 0, d = m = 1, i.svg = !!(t.getCTM && Il(t)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (s[Y] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[Y] !== "none" ? l[Y] : "")), s.scale = s.rotate = s.translate = "none"), S = hr(t, i.svg), i.svg && (i.uncache ? (N = t.getBBox(), u = i.xOrigin - N.x + "px " + (i.yOrigin - N.y) + "px", V = "") : V = !n && t.getAttribute("data-svg-origin"), gs(t, V || u, !!V || i.originIsAbsolute, i.smooth !== !1, S)), _ = i.xOrigin || 0, T = i.yOrigin || 0, S !== Dn && (k = S[0], A = S[1], M = S[2], R = S[3], c = E = S[4], h = O = S[5], S.length === 6 ? (d = Math.sqrt(k * k + A * A), m = Math.sqrt(R * R + M * M), p = k || A ? Ne(A, k) * Se : 0, x = M || R ? Ne(M, R) * Se + p : 0, x && (m *= Math.abs(Math.cos(x * Ke))), i.svg && (c -= _ - (_ * k + T * M), h -= T - (_ * A + T * R))) : (oe = S[6], zt = S[7], rt = S[8], j = S[9], ut = S[10], it = S[11], c = S[12], h = S[13], f = S[14], b = Ne(oe, ut), y = b * Se, b && (P = Math.cos(-b), C = Math.sin(-b), V = E * P + rt * C, N = O * P + j * C, X = oe * P + ut * C, rt = E * -C + rt * P, j = O * -C + j * P, ut = oe * -C + ut * P, it = zt * -C + it * P, E = V, O = N, oe = X), b = Ne(-M, ut), g = b * Se, b && (P = Math.cos(-b), C = Math.sin(-b), V = k * P - rt * C, N = A * P - j * C, X = M * P - ut * C, it = R * C + it * P, k = V, A = N, M = X), b = Ne(A, k), p = b * Se, b && (P = Math.cos(b), C = Math.sin(b), V = k * P + A * C, N = E * P + O * C, A = A * P - k * C, O = O * P - E * C, k = V, E = N), y && Math.abs(y) + Math.abs(p) > 359.9 && (y = p = 0, g = 180 - g), d = Q(Math.sqrt(k * k + A * A + M * M)), m = Q(Math.sqrt(O * O + oe * oe)), b = Ne(E, O), x = Math.abs(b) > 2e-4 ? b * Se : 0, w = it ? 1 / (it < 0 ? -it : it) : 0), i.svg && (V = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !Bl(Et(t, Y)), V && t.setAttribute("transform", V))), Math.abs(x) > 90 && Math.abs(x) < 270 && (r ? (d *= -1, x += p <= 0 ? 180 : -180, p += p <= 0 ? 180 : -180) : (m *= -1, x += x <= 0 ? 180 : -180)), n = n || i.uncache, i.x = c - ((i.xPercent = c && (!n && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-c) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + o, i.y = h - ((i.yPercent = h && (!n && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + o, i.z = f + o, i.scaleX = Q(d), i.scaleY = Q(m), i.rotation = Q(p) + a, i.rotationX = Q(y) + a, i.rotationY = Q(g) + a, i.skewX = x + a, i.skewY = v + a, i.transformPerspective = w + o, (i.zOrigin = parseFloat(u.split(" ")[2]) || !n && i.zOrigin || 0) && (s[bt] = hi(u)), i.xOffset = i.yOffset = 0, i.force3D = kt.force3D, i.renderTransform = i.svg ? lf : Ll ? zl : af, i.uncache = 0, i;
|
|
1889
1889
|
}, hi = function(t) {
|
|
1890
1890
|
return (t = t.split(" "))[0] + " " + t[1];
|
|
1891
1891
|
}, Ii = function(t, n, i) {
|
|
1892
1892
|
var s = ht(n);
|
|
1893
|
-
return
|
|
1893
|
+
return Q(parseFloat(n) + parseFloat(ge(t, "x", i + "px", s))) + s;
|
|
1894
1894
|
}, af = function(t, n) {
|
|
1895
1895
|
n.z = "0px", n.rotationY = n.rotationX = "0deg", n.force3D = 0, zl(t, n);
|
|
1896
1896
|
}, we = "0deg", ln = "0px", Te = ") ", zl = function(t, n) {
|
|
@@ -1902,7 +1902,7 @@ var so, ue, Ge, lr, Ae, ro, ur, jh = function() {
|
|
|
1902
1902
|
y !== ln && (w += "perspective(" + y + Te), (s || r) && (w += "translate(" + s + "%, " + r + "%) "), (_ || o !== ln || a !== ln || l !== ln) && (w += l !== ln || _ ? "translate3d(" + o + ", " + a + ", " + l + ") " : "translate(" + o + ", " + a + Te), u !== we && (w += "rotate(" + u + Te), c !== we && (w += "rotateY(" + c + Te), h !== we && (w += "rotateX(" + h + Te), (f !== we || d !== we) && (w += "skew(" + f + ", " + d + Te), (m !== 1 || p !== 1) && (w += "scale(" + m + ", " + p + Te), x.style[Y] = w || "translate(0, 0)";
|
|
1903
1903
|
}, lf = function(t, n) {
|
|
1904
1904
|
var i = n || this, s = i.xPercent, r = i.yPercent, o = i.x, a = i.y, l = i.rotation, u = i.skewX, c = i.skewY, h = i.scaleX, f = i.scaleY, d = i.target, m = i.xOrigin, p = i.yOrigin, y = i.xOffset, g = i.yOffset, x = i.forceCSS, v = parseFloat(o), w = parseFloat(a), _, T, S, b, P;
|
|
1905
|
-
l = parseFloat(l), u = parseFloat(u), c = parseFloat(c), c && (c = parseFloat(c), u += c, l += c), l || u ? (l *= Ke, u *= Ke, _ = Math.cos(l) * h, T = Math.sin(l) * h, S = Math.sin(l - u) * -f, b = Math.cos(l - u) * f, u && (c *= Ke, P = Math.tan(u - c), P = Math.sqrt(1 + P * P), S *= P, b *= P, c && (P = Math.tan(c), P = Math.sqrt(1 + P * P), _ *= P, T *= P)), _ =
|
|
1905
|
+
l = parseFloat(l), u = parseFloat(u), c = parseFloat(c), c && (c = parseFloat(c), u += c, l += c), l || u ? (l *= Ke, u *= Ke, _ = Math.cos(l) * h, T = Math.sin(l) * h, S = Math.sin(l - u) * -f, b = Math.cos(l - u) * f, u && (c *= Ke, P = Math.tan(u - c), P = Math.sqrt(1 + P * P), S *= P, b *= P, c && (P = Math.tan(c), P = Math.sqrt(1 + P * P), _ *= P, T *= P)), _ = Q(_), T = Q(T), S = Q(S), b = Q(b)) : (_ = h, b = f, T = S = 0), (v && !~(o + "").indexOf("px") || w && !~(a + "").indexOf("px")) && (v = ge(d, "x", o, "px"), w = ge(d, "y", a, "px")), (m || p || y || g) && (v = Q(v + m - (m * _ + p * S) + y), w = Q(w + p - (m * T + p * b) + g)), (s || r) && (P = d.getBBox(), v = Q(v + s / 100 * P.width), w = Q(w + r / 100 * P.height)), P = "matrix(" + _ + "," + T + "," + S + "," + b + "," + v + "," + w + ")", d.setAttribute("transform", P), x && (d.style[Y] = P);
|
|
1906
1906
|
}, uf = function(t, n, i, s, r) {
|
|
1907
1907
|
var o = 360, a = st(r), l = parseFloat(r) * (a && ~r.indexOf("rad") ? Se : 1), u = l - s, c = s + u + "deg", h, f;
|
|
1908
1908
|
return a && (h = r.split("_")[1], h === "short" && (u %= o, u !== u % (o / 2) && (u += u < 0 ? o : -o)), h === "cw" && u < 0 ? u = (u + o * oo) % o - ~~(u / o) * o : h === "ccw" && u > 0 && (u = (u - o * oo) % o - ~~(u / o) * o)), t._pt = f = new Tt(t._pt, n, i, s, u, Wh), f.e = c, f.u = "deg", t._props.push(i), f;
|
|
@@ -2979,7 +2979,7 @@ function Md() {
|
|
|
2979
2979
|
}, c;
|
|
2980
2980
|
}
|
|
2981
2981
|
const Cd = (e) => {
|
|
2982
|
-
const { nodes: t, links: n } = e, i =
|
|
2982
|
+
const { nodes: t, links: n } = e, i = J(null);
|
|
2983
2983
|
return Fn(() => {
|
|
2984
2984
|
const s = Ad(t).numDimensions(3).force("charge", Md().strength(-250).distanceMax(300)).force("link", hd(n).id((r) => r.id).distance(40).strength(0.5)).force("cluster", (r) => {
|
|
2985
2985
|
t.forEach((o) => {
|
|
@@ -2994,7 +2994,7 @@ const Cd = (e) => {
|
|
|
2994
2994
|
s.stop();
|
|
2995
2995
|
};
|
|
2996
2996
|
}, [t, n]), i;
|
|
2997
|
-
}, Dd = { network_node_count: 4e3, network_spread: 1500, connection_distance: 300, grab_distance: 300, camera_max_distance: 1200, initial_camera_position: [400, 0, 400], detail_view_distance: 60, colors: { grab_line: "#012056", network_node: "#BDC3C7", network_line: "#BDC3C7", click_active: "#E47600" } }, Ed = { bounce: { enabled: !0, boundary_radius: 4e3, rebound_factor: -0.01, dampening: 0.99 }, click: { camera_duration: 1.5, camera_ease: "power3.inOut" }, highlight: { scale_hover: 1.5, scale_selected: 1.5, transition_duration: 0.3 } }, kd = { enableZoom: !
|
|
2997
|
+
}, Dd = { network_node_count: 4e3, network_spread: 1500, connection_distance: 300, grab_distance: 300, camera_max_distance: 1200, initial_camera_position: [400, 0, 400], detail_view_distance: 60, colors: { grab_line: "#012056", network_node: "#BDC3C7", network_line: "#BDC3C7", click_active: "#E47600", background: "#FFFBF4" } }, Ed = { bounce: { enabled: !0, boundary_radius: 4e3, rebound_factor: -0.01, dampening: 0.99 }, click: { camera_duration: 1.5, camera_ease: "power3.inOut" }, highlight: { scale_hover: 1.5, scale_selected: 1.5, transition_duration: 0.3 } }, kd = { enableZoom: !0, enablePan: !1, enableRotate: !0, minPolarAngle: 0, maxPolarAngle: 3.14159, minAzimuthAngle: "Infinity", maxAzimuthAngle: "Infinity" }, H = {
|
|
2998
2998
|
graph: Dd,
|
|
2999
2999
|
animation: Ed,
|
|
3000
3000
|
controls: kd
|
|
@@ -3034,7 +3034,7 @@ const Cd = (e) => {
|
|
|
3034
3034
|
const E = A.get(R.source), O = A.get(R.target);
|
|
3035
3035
|
E !== void 0 && O !== void 0 && M.push(E, O);
|
|
3036
3036
|
}), M;
|
|
3037
|
-
}, [h, c]), g =
|
|
3037
|
+
}, [h, c]), g = J(null), x = J(null), v = J(null), w = J(null), _ = vt(() => new Zt.Object3D(), []), T = J(!1), S = J(0), b = J(null);
|
|
3038
3038
|
Fn(() => {
|
|
3039
3039
|
const A = () => {
|
|
3040
3040
|
T.current = !0;
|
|
@@ -3047,7 +3047,7 @@ const Cd = (e) => {
|
|
|
3047
3047
|
}, []), Ua(() => {
|
|
3048
3048
|
if (g.current) {
|
|
3049
3049
|
l.setFromCamera(a, r);
|
|
3050
|
-
const A = l.ray.origin, M = l.ray.direction, R = new Zt.Vector3().copy(A).add(M.clone().multiplyScalar(800)), E =
|
|
3050
|
+
const A = l.ray.origin, M = l.ray.direction, R = new Zt.Vector3().copy(A).add(M.clone().multiplyScalar(800)), E = H.graph.grab_distance * H.graph.grab_distance, O = [];
|
|
3051
3051
|
for (let j = 0; j < d; j++) {
|
|
3052
3052
|
let ut = m[j * 3], zt = m[j * 3 + 1], it = m[j * 3 + 2];
|
|
3053
3053
|
ut += p[j * 3], zt += p[j * 3 + 1], it += p[j * 3 + 2], ut * ut + zt * zt + it * it > 4e3 * 4e3 && (p[j * 3] += ut * -0.01 * 1e-3, p[j * 3 + 1] += zt * -0.01 * 1e-3, p[j * 3 + 2] += it * -0.01 * 1e-3);
|
|
@@ -3057,7 +3057,7 @@ const Cd = (e) => {
|
|
|
3057
3057
|
g.current.instanceMatrix.needsUpdate = !0, v.current && (v.current.setAttribute("position", new Zt.Float32BufferAttribute(O, 3)), v.current.setDrawRange(0, O.length / 3));
|
|
3058
3058
|
const V = T.current ? 1 : 0;
|
|
3059
3059
|
S.current += (V - S.current) * 0.1;
|
|
3060
|
-
const N = new Zt.Color(
|
|
3060
|
+
const N = new Zt.Color(H.graph.colors.network_node), X = new Zt.Color(H.graph.colors.click_active), rt = N.clone().lerp(X, S.current);
|
|
3061
3061
|
g.current.material && g.current.material.color.copy(rt), b.current && b.current.color.copy(rt);
|
|
3062
3062
|
}
|
|
3063
3063
|
if (x.current) {
|
|
@@ -3105,7 +3105,7 @@ const Cd = (e) => {
|
|
|
3105
3105
|
] }),
|
|
3106
3106
|
/* @__PURE__ */ Mt("lineSegments", { children: [
|
|
3107
3107
|
/* @__PURE__ */ L("bufferGeometry", { ref: v }),
|
|
3108
|
-
/* @__PURE__ */ L("lineBasicMaterial", { color:
|
|
3108
|
+
/* @__PURE__ */ L("lineBasicMaterial", { color: H.graph.colors.grab_line, transparent: !0, opacity: 0.3, depthWrite: !1, linewidth: 1 })
|
|
3109
3109
|
] }),
|
|
3110
3110
|
/* @__PURE__ */ Mt("lineSegments", { children: [
|
|
3111
3111
|
/* @__PURE__ */ L("bufferGeometry", { ref: w }),
|
|
@@ -3125,11 +3125,11 @@ const Cd = (e) => {
|
|
|
3125
3125
|
))
|
|
3126
3126
|
] });
|
|
3127
3127
|
}, Rd = ({ node: e, selected: t, hovered: n, dimmed: i, onClick: s, onHover: r }) => {
|
|
3128
|
-
const o =
|
|
3128
|
+
const o = J(null), a = $l[e.cluster], l = a ? a.color : "#6e6e6e";
|
|
3129
3129
|
Ua(() => {
|
|
3130
3130
|
o.current && typeof e.x == "number" && !isNaN(e.x) && o.current.position.set(e.x, e.y, e.z);
|
|
3131
3131
|
});
|
|
3132
|
-
const u = e.size || 8, c = n ? u *
|
|
3132
|
+
const u = e.size || 8, c = n ? u * H.animation.highlight.scale_hover : t ? u * H.animation.highlight.scale_selected : u;
|
|
3133
3133
|
return /* @__PURE__ */ L("group", { ref: o, children: /* @__PURE__ */ L(
|
|
3134
3134
|
Uc,
|
|
3135
3135
|
{
|
|
@@ -3153,7 +3153,7 @@ const Cd = (e) => {
|
|
|
3153
3153
|
style: {
|
|
3154
3154
|
width: `${c}px`,
|
|
3155
3155
|
height: `${c}px`,
|
|
3156
|
-
transitionDuration: `${
|
|
3156
|
+
transitionDuration: `${H.animation.highlight.transition_duration}s`
|
|
3157
3157
|
},
|
|
3158
3158
|
children: [
|
|
3159
3159
|
/* @__PURE__ */ L(
|
|
@@ -3161,7 +3161,7 @@ const Cd = (e) => {
|
|
|
3161
3161
|
{
|
|
3162
3162
|
className: "w-full h-full rounded-full transition-all",
|
|
3163
3163
|
style: {
|
|
3164
|
-
transitionDuration: `${
|
|
3164
|
+
transitionDuration: `${H.animation.highlight.transition_duration}s`,
|
|
3165
3165
|
backgroundColor: l,
|
|
3166
3166
|
boxShadow: n || t ? `0 0 0 4px rgba(0,0,0,0.1), 0 0 10px ${l}` : "none"
|
|
3167
3167
|
}
|
|
@@ -3229,20 +3229,21 @@ const Cd = (e) => {
|
|
|
3229
3229
|
far: 2e3
|
|
3230
3230
|
}
|
|
3231
3231
|
),
|
|
3232
|
-
/* @__PURE__ */ L("
|
|
3232
|
+
/* @__PURE__ */ L("color", { attach: "background", args: [H.graph.colors.background] }),
|
|
3233
|
+
/* @__PURE__ */ L("fog", { attach: "fog", args: [H.graph.colors.background, 400, 1600] }),
|
|
3233
3234
|
/* @__PURE__ */ L(
|
|
3234
3235
|
Gc,
|
|
3235
3236
|
{
|
|
3236
3237
|
ref: a,
|
|
3237
|
-
enablePan:
|
|
3238
|
-
enableZoom:
|
|
3239
|
-
enableRotate:
|
|
3240
|
-
maxDistance:
|
|
3241
|
-
minDistance:
|
|
3242
|
-
minPolarAngle:
|
|
3243
|
-
maxPolarAngle:
|
|
3244
|
-
minAzimuthAngle:
|
|
3245
|
-
maxAzimuthAngle:
|
|
3238
|
+
enablePan: H.controls.enablePan,
|
|
3239
|
+
enableZoom: H.controls.enableZoom,
|
|
3240
|
+
enableRotate: H.controls.enableRotate,
|
|
3241
|
+
maxDistance: H.graph.camera_max_distance,
|
|
3242
|
+
minDistance: H.graph.detail_view_distance,
|
|
3243
|
+
minPolarAngle: H.controls.minPolarAngle,
|
|
3244
|
+
maxPolarAngle: H.controls.maxPolarAngle,
|
|
3245
|
+
minAzimuthAngle: H.controls.minAzimuthAngle === "Infinity" ? -1 / 0 : Number(H.controls.minAzimuthAngle),
|
|
3246
|
+
maxAzimuthAngle: H.controls.maxAzimuthAngle === "Infinity" ? 1 / 0 : Number(H.controls.maxAzimuthAngle),
|
|
3246
3247
|
zoomSpeed: 0.6,
|
|
3247
3248
|
panSpeed: 0.5,
|
|
3248
3249
|
rotateSpeed: 0.5,
|
|
@@ -3265,7 +3266,7 @@ const Cd = (e) => {
|
|
|
3265
3266
|
] }) });
|
|
3266
3267
|
}), mr = nn({});
|
|
3267
3268
|
function gr(e) {
|
|
3268
|
-
const t =
|
|
3269
|
+
const t = J(null);
|
|
3269
3270
|
return t.current === null && (t.current = e()), t.current;
|
|
3270
3271
|
}
|
|
3271
3272
|
const tu = typeof window < "u", eu = tu ? Ic : Fn, Ai = /* @__PURE__ */ nn(null);
|
|
@@ -7028,7 +7029,7 @@ class l0 extends wi.Component {
|
|
|
7028
7029
|
}
|
|
7029
7030
|
function u0({ children: e, isPresent: t, anchorX: n, anchorY: i, root: s }) {
|
|
7030
7031
|
var h;
|
|
7031
|
-
const r = Gs(), o =
|
|
7032
|
+
const r = Gs(), o = J(null), a = J({
|
|
7032
7033
|
width: 0,
|
|
7033
7034
|
height: 0,
|
|
7034
7035
|
top: 0,
|
|
@@ -7103,7 +7104,7 @@ function Ma(e) {
|
|
|
7103
7104
|
}), t;
|
|
7104
7105
|
}
|
|
7105
7106
|
const f0 = ({ children: e, custom: t, initial: n = !0, onExitComplete: i, presenceAffectsLayout: s = !0, mode: r = "sync", propagate: o = !1, anchorX: a = "left", anchorY: l = "top", root: u }) => {
|
|
7106
|
-
const [c, h] = Tc(o), f = vt(() => Ma(e), [e]), d = o && !c ? [] : f.map(qn), m =
|
|
7107
|
+
const [c, h] = Tc(o), f = vt(() => Ma(e), [e]), d = o && !c ? [] : f.map(qn), m = J(!0), p = J(f), y = gr(() => /* @__PURE__ */ new Map()), g = J(/* @__PURE__ */ new Set()), [x, v] = ns(f), [w, _] = ns(f);
|
|
7107
7108
|
eu(() => {
|
|
7108
7109
|
m.current = !1, p.current = f;
|
|
7109
7110
|
for (let b = 0; b < w.length; b++) {
|
|
@@ -7392,11 +7393,11 @@ const Cc = (e) => (t, n) => {
|
|
|
7392
7393
|
createRenderState: Mc
|
|
7393
7394
|
}), E0 = Symbol.for("motionComponentSymbol");
|
|
7394
7395
|
function k0(e, t, n) {
|
|
7395
|
-
const i =
|
|
7396
|
+
const i = J(n);
|
|
7396
7397
|
Ks(() => {
|
|
7397
7398
|
i.current = n;
|
|
7398
7399
|
});
|
|
7399
|
-
const s =
|
|
7400
|
+
const s = J(null);
|
|
7400
7401
|
return Ws((r) => {
|
|
7401
7402
|
var a;
|
|
7402
7403
|
r && ((a = e.onMount) == null || a.call(e, r)), t && (r ? t.mount(r) : t.unmount());
|
|
@@ -7415,7 +7416,7 @@ function gn(e) {
|
|
|
7415
7416
|
}
|
|
7416
7417
|
function V0(e, t, n, i, s, r) {
|
|
7417
7418
|
var v, w;
|
|
7418
|
-
const { visualElement: o } = ct(Di), a = ct(bc), l = ct(Ai), u = ct(Wr), c = u.reducedMotion, h = u.skipAnimations, f =
|
|
7419
|
+
const { visualElement: o } = ct(Di), a = ct(bc), l = ct(Ai), u = ct(Wr), c = u.reducedMotion, h = u.skipAnimations, f = J(null), d = J(!1);
|
|
7419
7420
|
i = i || a.renderer, !f.current && i && (f.current = i(e, {
|
|
7420
7421
|
visualState: t,
|
|
7421
7422
|
parent: o,
|
|
@@ -7428,11 +7429,11 @@ function V0(e, t, n, i, s, r) {
|
|
|
7428
7429
|
}), d.current && f.current && (f.current.manuallyAnimateOnMount = !0));
|
|
7429
7430
|
const m = f.current, p = ct(Dc);
|
|
7430
7431
|
m && !m.projection && s && (m.type === "html" || m.type === "svg") && R0(f.current, n, s, p);
|
|
7431
|
-
const y =
|
|
7432
|
+
const y = J(!1);
|
|
7432
7433
|
Ks(() => {
|
|
7433
7434
|
m && y.current && m.update(n, l);
|
|
7434
7435
|
});
|
|
7435
|
-
const g = n[Fu], x =
|
|
7436
|
+
const g = n[Fu], x = J(!!g && !((v = window.MotionHandoffIsComplete) != null && v.call(window, g)) && ((w = window.MotionHasOptimisedAnimation) == null ? void 0 : w.call(window, g)));
|
|
7436
7437
|
return eu(() => {
|
|
7437
7438
|
d.current = !0, m && (y.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), x.current && m.animationState && m.animationState.animateChanges());
|
|
7438
7439
|
}), Fn(() => {
|
|
@@ -8429,8 +8430,9 @@ const Ay = [
|
|
|
8429
8430
|
}
|
|
8430
8431
|
) }) });
|
|
8431
8432
|
export {
|
|
8433
|
+
$t as ClusterId,
|
|
8432
8434
|
Vd as GalaxyGraph,
|
|
8433
8435
|
Oy as GraphScene,
|
|
8434
8436
|
Ny as OverlayUI,
|
|
8435
|
-
|
|
8437
|
+
H as defaultConfig
|
|
8436
8438
|
};
|