@synnaxlabs/pluto 0.43.0 → 0.43.1
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/dist/{Item-BrHZi6Fl.cjs → Item-CB5c--eX.cjs} +1 -1
- package/dist/{Item-BgUwEjzV.js → Item-LAMTj0X2.js} +2 -2
- package/dist/{Link-Bngd8rrL.cjs → Link-CPnT8Xp9.cjs} +1 -1
- package/dist/{Link-y133HE5v.js → Link-DcudTtgT.js} +1 -1
- package/dist/{Provider-CAR23fYq.js → Provider-CLPfWTcl.js} +2 -2
- package/dist/{Provider-B1j7nPL9.cjs → Provider-s70PZ9lg.cjs} +1 -1
- package/dist/{Text-P0b041la.js → Text-BiWcjO1i.js} +1 -1
- package/dist/{Text-CLsJyQGy.cjs → Text-Dw0NDc2A.cjs} +1 -1
- package/dist/{Text-Ddc0C5JU.cjs → Text-bSIbkBIL.cjs} +1 -1
- package/dist/{Text-B1uUpUKk.js → Text-wL3te5S6.js} +3 -3
- package/dist/{Toggle-BC1o8qt5.js → Toggle-CbzT5wR_.js} +2 -2
- package/dist/{Toggle-D-vvd8lz.cjs → Toggle-CpDGR6M6.cjs} +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/{eraser-CupVBBBp.js → eraser-BJxXs5KS.js} +2 -2
- package/dist/{eraser-C0Kv4_kL.cjs → eraser-CGxyWj3B.cjs} +2 -2
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +6 -6
- package/dist/{external-8zJ3fvo2.js → external-5nVYtLDI.js} +4 -4
- package/dist/{external-firJ8w9n.js → external-69bqTAcN.js} +3 -3
- package/dist/{external-Ds5GDIp9.cjs → external-B-B5ro_s.cjs} +1 -1
- package/dist/{external-D38Y0J6S.cjs → external-B3Mtbu36.cjs} +1 -1
- package/dist/{external-DHw0SdIj.cjs → external-BgwS5D0j.cjs} +1 -1
- package/dist/{external-BYsOdgw5.js → external-Bn3A7Rew.js} +3 -3
- package/dist/{external-BgKH42un.cjs → external-Bojct8Fy.cjs} +1 -1
- package/dist/{external-CKag7gXR.js → external-C6mmYO7R.js} +4 -4
- package/dist/{external-BmeMUsxr.js → external-CnkWbciu.js} +2 -2
- package/dist/{external-D8mHEAIG.cjs → external-Cxwmal3D.cjs} +1 -1
- package/dist/{external-DuvwfKLw.js → external-Dm9rg2x7.js} +2 -2
- package/dist/{external-DlyrUZhP.cjs → external-EvgywGSS.cjs} +1 -1
- package/dist/{external-D1gwMWza.cjs → external-MJ2UMa_L.cjs} +1 -1
- package/dist/{external-Cjnx793K.js → external-UeyJ6mPv.js} +6 -6
- package/dist/{external-CjTwWT6m.cjs → external-V0yO0q2n.cjs} +1 -1
- package/dist/{external-IsogMmdT.cjs → external-cDUxSE0v.cjs} +1 -1
- package/dist/{external-BDh272rT.js → external-cJGWYB3x.js} +1 -1
- package/dist/{external-ZV7pEm55.js → external-fwvNilmo.js} +1 -1
- package/dist/{font-Cy9UYjyY.js → font-Csp00pQP.js} +2 -2
- package/dist/{font-C5EV9fq1.cjs → font-ifUcrCey.cjs} +1 -1
- package/dist/{fontString-CUy7T-OR.cjs → fontString-BWECl_1B.cjs} +1 -1
- package/dist/{fontString-CynarMI1.js → fontString-ap-NPnCD.js} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +177 -183
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/{provider-B8IM-N4g.cjs → provider-YWPkhTn6.cjs} +28 -28
- package/dist/{provider-CQqS-teQ.js → provider-gW90qzEG.js} +4439 -4409
- package/dist/src/aether/aether/aether.d.ts.map +1 -1
- package/dist/src/channel/LinePlot.d.ts +2 -2
- package/dist/src/channel/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/Provider.d.ts.map +1 -1
- package/dist/src/vis/lineplot/range/aether/provider.d.ts +2 -2
- package/dist/src/vis/lineplot/range/aether/provider.d.ts.map +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{value-BVL4mfhG.cjs → value--TYeJRXm.cjs} +4 -4
- package/dist/{value-DLy5XRhS.js → value-dkHk-BsO.js} +27 -27
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2,68 +2,68 @@ var z0 = Object.defineProperty;
|
|
|
2
2
|
var R0 = (e, t, n) => t in e ? z0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var at = (e, t, n) => R0(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { j as r } from "./jsx-runtime-C5mzlN2N.js";
|
|
5
|
-
import fo, { useState as me, useEffect as
|
|
5
|
+
import fo, { useState as me, useEffect as K, useRef as te, useCallback as F, Children as D0, createElement as kn, isValidElement as V0, createContext as ft, use as Ln, useMemo as we, memo as Te, useLayoutEffect as ol, useImperativeHandle as F0, useId as rl, createRef as H0, Fragment as Ko, useContext as ho, forwardRef as Kc, cloneElement as Z0 } from "react";
|
|
6
6
|
import { y as he, T as Be, c as rt, d as qc, u as Qc, M as Pn, b as W0, E as qo, f as wi, g as Y0, t as G0 } from "./Divider-CDFHLK9U.js";
|
|
7
7
|
import { l as be, g as Pe, C as m, P as Z, Q as X0, W as cs, n as U0, y as po, Z as K0, S as Qo, A as Ct, K as oe, s as q0, I as zt, H as Q0, o as Q, z as J0, L as ji, q as Gn, c as Cr, v as Xn, d as Un, k as bi, G as e2, p as t2 } from "./css-DjQu2Qyf.js";
|
|
8
8
|
import { _ as VS, E as FS, Y as HS, V as ZS, F as WS, a0 as YS } from "./css-DjQu2Qyf.js";
|
|
9
|
-
import { H as n2, B as o2, A as r2 } from "./external-
|
|
10
|
-
import { e as XS } from "./external-
|
|
9
|
+
import { H as n2, B as o2, A as r2 } from "./external-fwvNilmo.js";
|
|
10
|
+
import { e as XS } from "./external-fwvNilmo.js";
|
|
11
11
|
import { o as it, _ as eo, f as Jc, C as s2, i as l2, n as qt, b as Xe, c as Jo, l as sl, w as i2, g as ea, d as c2 } from "./state-DAFH2z9y.js";
|
|
12
12
|
import { fp as KS } from "./state-DAFH2z9y.js";
|
|
13
13
|
import { G as QS } from "./Stack-D50qN0Vu.js";
|
|
14
|
-
import { p as er, B as a2, I as He, N as Fe } from "./external-
|
|
15
|
-
import { e as e_, s as t_ } from "./external-
|
|
14
|
+
import { p as er, B as a2, I as He, N as Fe } from "./external-UeyJ6mPv.js";
|
|
15
|
+
import { e as e_, s as t_ } from "./external-UeyJ6mPv.js";
|
|
16
16
|
import { C as u2, S as re } from "./Space-DxHm2ok7.js";
|
|
17
17
|
import { l as d2, c as ta, h as Ls, d as Ps, v as Ns, a as na, P as f2, q as as } from "./hooks-u_TgL0Xi.js";
|
|
18
18
|
import { g as h2 } from "./useVirtualCursorDragWebKit-CfxbToxm.js";
|
|
19
|
-
import { d as oa, e as Sr, f as Et, C as ht, c as Oe, g as p2, h as ln, i as ll, j as g2, P as m2, k as x2, u as Nn } from "./Provider-
|
|
20
|
-
import { m as o_, l as r_ } from "./Provider-
|
|
19
|
+
import { d as oa, e as Sr, f as Et, C as ht, c as Oe, g as p2, h as ln, i as ll, j as g2, P as m2, k as x2, u as Nn } from "./Provider-CLPfWTcl.js";
|
|
20
|
+
import { m as o_, l as r_ } from "./Provider-CLPfWTcl.js";
|
|
21
21
|
import { e as l_ } from "./external-CVHgvs0C.js";
|
|
22
|
-
import { r as ra, a as il, b as y2, T as cn, t as w2, u as Tn } from "./external-
|
|
23
|
-
import { I as c_, e as a_ } from "./external-
|
|
22
|
+
import { r as ra, a as il, b as y2, T as cn, t as w2, u as Tn } from "./external-CnkWbciu.js";
|
|
23
|
+
import { I as c_, e as a_ } from "./external-CnkWbciu.js";
|
|
24
24
|
import { L as j2 } from "./external-upR9Jz-8.js";
|
|
25
25
|
import { e as d_ } from "./external-upR9Jz-8.js";
|
|
26
26
|
import { W as sa, D as b2 } from "./WithIcon-B7VPBqA2.js";
|
|
27
27
|
import { a as h_ } from "./WithIcon-B7VPBqA2.js";
|
|
28
28
|
import { t as Ne } from "./array-CPtP5Oov.js";
|
|
29
|
-
import { e as g_ } from "./external-
|
|
30
|
-
import { A as cl } from "./external-
|
|
31
|
-
import { a as x_, e as y_ } from "./external-
|
|
32
|
-
import { C as la, D as ia, b as v2, f as C2, u as S2, w as _2, I as Ze, B as Vt, c as go, a as ca } from "./Toggle-
|
|
33
|
-
import { i as j_ } from "./Toggle-
|
|
34
|
-
import { T as kt } from "./Text-
|
|
35
|
-
import {
|
|
36
|
-
import { V as ua, A as da, T as Ft, m as fa, n as _r, o as T2, H as A2, c as us, C as I2, L as $2, S as B2, g as O2, u as ha, s as pa } from "./Text-
|
|
37
|
-
import { p as v_ } from "./Text-
|
|
38
|
-
import { Z as z2, P as vi, I as Xt, J as R2, K as D2, M as V2, T as F2, N as H2, O as Z2, Q as W2, S as Y2, U as G2, V as X2, W as U2, l as K2, L as q2, _ as No, $ as Q2, a0 as J2, a1 as em, X as tm, Y as nm, a2 as om, a3 as rm, a4 as sm, a5 as lm, b as im, B as cm, a6 as am, a7 as um, a8 as dm, a9 as fm, aa as hm, ab as pm, ac as gm, ad as mm, ae as Ci, af as Si, ag as xm, ah as ym, ai as wm, aj as jm, ak as bm, al as ga, am as ma, an as xa, ao as ya, t as vm, ap as Cm, aq as Sm, ar as wa, as as Mr, at as _m, au as Er, av as Mm, aw as ja, ax as ba, ay as va, az as Ca, aA as An, aB as kr, aC as Sa, aD as Em, aE as km, aF as _i, aG as al, aH as ul, aI as Lm, aJ as Pm, aK as St, aL as _t, aM as tr, aN as Kn, aO as Ts, aP as Nm, aQ as Tm, aR as Am, aS as Mi, aT as Im, aU as Ei, aV as ds, aW as $m, aX as Bm, aY as Om, aZ as zm, a_ as dl, a$ as Rm, b0 as nr, b1 as mo, b2 as fl, b3 as Dm, b4 as Vm, b5 as Fm, b6 as Hm, b7 as Zm, b8 as Wm, b9 as Ym, ba as Gm, bb as Xm, bc as Um } from "./value-
|
|
39
|
-
import { A as S_ } from "./value-
|
|
29
|
+
import { e as g_ } from "./external-Dm9rg2x7.js";
|
|
30
|
+
import { A as cl } from "./external-5nVYtLDI.js";
|
|
31
|
+
import { a as x_, e as y_ } from "./external-5nVYtLDI.js";
|
|
32
|
+
import { C as la, D as ia, b as v2, f as C2, u as S2, w as _2, I as Ze, B as Vt, c as go, a as ca } from "./Toggle-CbzT5wR_.js";
|
|
33
|
+
import { i as j_ } from "./Toggle-CbzT5wR_.js";
|
|
34
|
+
import { T as kt } from "./Text-BiWcjO1i.js";
|
|
35
|
+
import { D as M2, v as aa, M as E2, x as k2, C as L2, E as P2, k as N2 } from "./provider-gW90qzEG.js";
|
|
36
|
+
import { V as ua, A as da, T as Ft, m as fa, n as _r, o as T2, H as A2, c as us, C as I2, L as $2, S as B2, g as O2, u as ha, s as pa } from "./Text-wL3te5S6.js";
|
|
37
|
+
import { p as v_ } from "./Text-wL3te5S6.js";
|
|
38
|
+
import { Z as z2, P as vi, I as Xt, J as R2, K as D2, M as V2, T as F2, N as H2, O as Z2, Q as W2, S as Y2, U as G2, V as X2, W as U2, l as K2, L as q2, _ as No, $ as Q2, a0 as J2, a1 as em, X as tm, Y as nm, a2 as om, a3 as rm, a4 as sm, a5 as lm, b as im, B as cm, a6 as am, a7 as um, a8 as dm, a9 as fm, aa as hm, ab as pm, ac as gm, ad as mm, ae as Ci, af as Si, ag as xm, ah as ym, ai as wm, aj as jm, ak as bm, al as ga, am as ma, an as xa, ao as ya, t as vm, ap as Cm, aq as Sm, ar as wa, as as Mr, at as _m, au as Er, av as Mm, aw as ja, ax as ba, ay as va, az as Ca, aA as An, aB as kr, aC as Sa, aD as Em, aE as km, aF as _i, aG as al, aH as ul, aI as Lm, aJ as Pm, aK as St, aL as _t, aM as tr, aN as Kn, aO as Ts, aP as Nm, aQ as Tm, aR as Am, aS as Mi, aT as Im, aU as Ei, aV as ds, aW as $m, aX as Bm, aY as Om, aZ as zm, a_ as dl, a$ as Rm, b0 as nr, b1 as mo, b2 as fl, b3 as Dm, b4 as Vm, b5 as Fm, b6 as Hm, b7 as Zm, b8 as Wm, b9 as Ym, ba as Gm, bb as Xm, bc as Um } from "./value-dkHk-BsO.js";
|
|
39
|
+
import { A as S_ } from "./value-dkHk-BsO.js";
|
|
40
40
|
import { a as _a, f as De, c as Lr, b as pt, u as Ht, F as Ma, P as Km } from "./Haul-D6kpOYBa.js";
|
|
41
41
|
import { H as M_ } from "./Haul-D6kpOYBa.js";
|
|
42
42
|
import { a as qe, u as Ea, b as ka } from "./useMemoCompare-B5QPDK2p.js";
|
|
43
43
|
import { c as k_ } from "./useMemoCompare-B5QPDK2p.js";
|
|
44
44
|
import { d as ki } from "./dimensions-FnMV2fyj.js";
|
|
45
|
-
import { u as hl } from "./font-
|
|
45
|
+
import { u as hl } from "./font-Csp00pQP.js";
|
|
46
46
|
import { u as pl, a as qm, b as gl, f as Qm } from "./Dropdown-CQu3yo3v.js";
|
|
47
47
|
import { c as P_, D as N_, M as T_ } from "./Dropdown-CQu3yo3v.js";
|
|
48
48
|
import { u as Jm, c as e3, J as Ve } from "./deep-D72Fid_q.js";
|
|
49
|
-
import { u as xo, S as Pr, P as t3, G as n3 } from "./external-
|
|
50
|
-
import { e as I_ } from "./external-
|
|
49
|
+
import { u as xo, S as Pr, P as t3, G as n3 } from "./external-69bqTAcN.js";
|
|
50
|
+
import { e as I_ } from "./external-69bqTAcN.js";
|
|
51
51
|
import { P as Nr } from "./Pack-BiS6QIuA.js";
|
|
52
52
|
import { u as o3, b as r3, a as ml, C as xl } from "./ContextMenu-DLM5eLLG.js";
|
|
53
53
|
import { T as s3 } from "./Text-CacHYC7L.js";
|
|
54
54
|
import { u as l3 } from "./external-l7imNJRR.js";
|
|
55
55
|
import { e as B_ } from "./external-l7imNJRR.js";
|
|
56
|
-
import "./Item-
|
|
56
|
+
import "./Item-LAMTj0X2.js";
|
|
57
57
|
import { createPortal as La } from "react-dom";
|
|
58
|
-
import { S as Pa, F as Na } from "./external-
|
|
59
|
-
import { e as z_, c as R_, f as D_, p as V_ } from "./external-
|
|
58
|
+
import { S as Pa, F as Na } from "./external-C6mmYO7R.js";
|
|
59
|
+
import { e as z_, c as R_, f as D_, p as V_ } from "./external-C6mmYO7R.js";
|
|
60
60
|
import { createHexOpacityVariants as H_, unitProperty as Z_ } from "./css.js";
|
|
61
61
|
import { u as Y_ } from "./useClickOutside-Dw3KdU3w.js";
|
|
62
62
|
import { u as Ta } from "./useDebouncedCallback-Cvo_HNow.js";
|
|
63
|
-
import { e as X_ } from "./external-
|
|
64
|
-
import { E as i3, e as c3, P as a3, p as u3 } from "./eraser-
|
|
63
|
+
import { e as X_ } from "./external-cJGWYB3x.js";
|
|
64
|
+
import { E as i3, e as c3, P as a3, p as u3 } from "./eraser-BJxXs5KS.js";
|
|
65
65
|
import { D as As } from "./DateTime-CdNKxVxT.js";
|
|
66
|
-
import { e as K_ } from "./external-
|
|
66
|
+
import { e as K_ } from "./external-Bn3A7Rew.js";
|
|
67
67
|
import { V as Q_ } from "./Video-Bq_WSdfc.js";
|
|
68
68
|
const d3 = (e) => e.nullable().transform((t) => t === null ? void 0 : t).optional(), Aa = (e) => Jm(e, (t, n, o) => {
|
|
69
69
|
const s = n === o.length - 1, l = !isNaN(parseInt(t)), i = !isNaN(parseInt(o[n + 1]));
|
|
@@ -83,7 +83,7 @@ const d3 = (e) => e.nullable().transform((t) => t === null ? void 0 : t).optiona
|
|
|
83
83
|
nullToUndefined: d3
|
|
84
84
|
}, Symbol.toStringTag, { value: "Module" })), UC = (e, t, n = 150) => {
|
|
85
85
|
const [o, s] = me(e);
|
|
86
|
-
return
|
|
86
|
+
return K(() => {
|
|
87
87
|
const l = setTimeout(() => s(t), n);
|
|
88
88
|
return () => clearTimeout(l);
|
|
89
89
|
}, [t, n]), o;
|
|
@@ -153,7 +153,7 @@ const d3 = (e) => e.nullable().transform((t) => t === null ? void 0 : t).optiona
|
|
|
153
153
|
},
|
|
154
154
|
[o, c, s]
|
|
155
155
|
);
|
|
156
|
-
|
|
156
|
+
K(
|
|
157
157
|
() => e == null ? void 0 : e(i.sizeDistribution),
|
|
158
158
|
[i.sizeDistribution, e]
|
|
159
159
|
);
|
|
@@ -295,7 +295,7 @@ const d3 = (e) => e.nullable().transform((t) => t === null ? void 0 : t).optiona
|
|
|
295
295
|
(y) => p(y) === ps && (e == null ? void 0 : e()),
|
|
296
296
|
[e, p]
|
|
297
297
|
);
|
|
298
|
-
|
|
298
|
+
K(() => {
|
|
299
299
|
o == null || s == null || d((y) => {
|
|
300
300
|
const b = cs(y, o, s);
|
|
301
301
|
return f.current = b, b;
|
|
@@ -971,7 +971,7 @@ const Zo = function e(t, n, o) {
|
|
|
971
971
|
},
|
|
972
972
|
[c]
|
|
973
973
|
), f = te(null), h = pl(d, { debounce: t }), p = Qc(f, h);
|
|
974
|
-
|
|
974
|
+
K(() => {
|
|
975
975
|
const x = () => {
|
|
976
976
|
window.devicePixelRatio === i || !a.current.bootstrapped || f.current == null || c((w) => ({
|
|
977
977
|
...w,
|
|
@@ -983,7 +983,7 @@ const Zo = function e(t, n, o) {
|
|
|
983
983
|
}));
|
|
984
984
|
};
|
|
985
985
|
window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`).addEventListener("change", x, { once: !0 });
|
|
986
|
-
}, [i]),
|
|
986
|
+
}, [i]), K(() => {
|
|
987
987
|
const x = () => {
|
|
988
988
|
!a.current.bootstrapped || f.current == null || c((w) => ({
|
|
989
989
|
...w,
|
|
@@ -1073,8 +1073,8 @@ const Zo = function e(t, n, o) {
|
|
|
1073
1073
|
throw new Error(`Cannot to use ${e} as a non-child of LinePlot.`);
|
|
1074
1074
|
return t;
|
|
1075
1075
|
}, Ua = (e) => {
|
|
1076
|
-
const t = dt("Viewport")
|
|
1077
|
-
|
|
1076
|
+
const { addViewportHandler: t } = dt("Viewport");
|
|
1077
|
+
K(() => t(e), [t, e]);
|
|
1078
1078
|
}, wo = (e, t) => {
|
|
1079
1079
|
const { setGridEntry: n, removeGridEntry: o } = dt(t), { key: s } = e;
|
|
1080
1080
|
return p2(
|
|
@@ -1083,7 +1083,7 @@ const Zo = function e(t, n, o) {
|
|
|
1083
1083
|
},
|
|
1084
1084
|
([c], [a]) => Ve.equal(c, a),
|
|
1085
1085
|
[e]
|
|
1086
|
-
),
|
|
1086
|
+
), K(() => () => o(s), []), { gridArea: Pe.swap(be.direction(e.loc)) === "x" ? `axis-start-${s} / plot-start / axis-end-${s} / plot-end` : `plot-start / axis-start-${s} / plot-end / axis-end-${s}` };
|
|
1087
1087
|
}, Ka = ({
|
|
1088
1088
|
aetherKey: e,
|
|
1089
1089
|
style: t,
|
|
@@ -1111,7 +1111,7 @@ const Zo = function e(t, n, o) {
|
|
|
1111
1111
|
},
|
|
1112
1112
|
[g, c]
|
|
1113
1113
|
), w = yo(x, { debounce: n });
|
|
1114
|
-
|
|
1114
|
+
K(() => g((z) => ({ ...z, ...f })), [f]);
|
|
1115
1115
|
const j = te(/* @__PURE__ */ new Map()), S = F(
|
|
1116
1116
|
(z) => (j.current.set(z, null), () => j.current.delete(z)),
|
|
1117
1117
|
[j]
|
|
@@ -1226,7 +1226,7 @@ const Zo = function e(t, n, o) {
|
|
|
1226
1226
|
schema: em,
|
|
1227
1227
|
initialState: R
|
|
1228
1228
|
});
|
|
1229
|
-
|
|
1229
|
+
K(() => _((D) => ({ ...D, ...R })), [R]), K(() => {
|
|
1230
1230
|
const { lower: D, upper: V } = Q2(k.autoBounds);
|
|
1231
1231
|
k.bounds != null && (D && (w == null ? void 0 : w.lower) !== k.bounds.lower || V && (w == null ? void 0 : w.upper) !== k.bounds.upper) && (L == null || L(k.bounds));
|
|
1232
1232
|
}, [k.autoBounds, k.bounds]);
|
|
@@ -1234,7 +1234,7 @@ const Zo = function e(t, n, o) {
|
|
|
1234
1234
|
{ loc: c, key: `${n}-${O}`, size: M + v, order: 1 },
|
|
1235
1235
|
`${e.toUpperCase()}Axis`
|
|
1236
1236
|
), B = hl(u).toString(), I = te(0);
|
|
1237
|
-
return
|
|
1237
|
+
return K(() => {
|
|
1238
1238
|
if (e === "y") {
|
|
1239
1239
|
if (a == null) return;
|
|
1240
1240
|
let V = ki(a, B)[Pe.dimension(Pe.construct(d))];
|
|
@@ -1513,7 +1513,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1513
1513
|
...s
|
|
1514
1514
|
}) => {
|
|
1515
1515
|
const l = ln(e), { setLine: i, removeLine: c } = dt("Line");
|
|
1516
|
-
return
|
|
1516
|
+
return K(() => (i({ key: l, color: t, label: n, visible: o }), () => c(l)), [n, t, o]), /* @__PURE__ */ r.jsx(
|
|
1517
1517
|
El,
|
|
1518
1518
|
{
|
|
1519
1519
|
aetherKey: l,
|
|
@@ -1547,7 +1547,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1547
1547
|
},
|
|
1548
1548
|
[o]
|
|
1549
1549
|
), i = F(() => o({ position: null }), [o]);
|
|
1550
|
-
return
|
|
1550
|
+
return K(() => {
|
|
1551
1551
|
if (s.current === null) return;
|
|
1552
1552
|
const c = s.current.parentElement;
|
|
1553
1553
|
if (c != null)
|
|
@@ -1782,7 +1782,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1782
1782
|
const { close: h, visible: p, toggle: g } = gl(), [x, w] = me(
|
|
1783
1783
|
(e == null ? void 0 : e.find((y) => y.key === t)) ?? null
|
|
1784
1784
|
);
|
|
1785
|
-
|
|
1785
|
+
K(() => {
|
|
1786
1786
|
w((e == null ? void 0 : e.find((y) => y.key === t)) ?? null);
|
|
1787
1787
|
}, [e, t]);
|
|
1788
1788
|
const j = F(
|
|
@@ -1998,7 +1998,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1998
1998
|
...f
|
|
1999
1999
|
}) => {
|
|
2000
2000
|
const { clear: h } = ha(), [p, g] = me("");
|
|
2001
|
-
|
|
2001
|
+
K(() => {
|
|
2002
2002
|
if (!n) {
|
|
2003
2003
|
if (Q0.isZero(t == null ? void 0 : t.key)) return g("");
|
|
2004
2004
|
t != null && g(fu(e, t));
|
|
@@ -2395,10 +2395,10 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2395
2395
|
ref: s
|
|
2396
2396
|
}) => {
|
|
2397
2397
|
const l = (t == null ? void 0 : t.defaultMode) ?? "zoom", [i, c] = me(Z.ZERO), [a, u] = me(l), [d, f] = W0(n), h = te(oe.ZERO), p = te(null), g = Gn.construct(o);
|
|
2398
|
-
|
|
2398
|
+
K(
|
|
2399
2399
|
() => f(() => Z.truncate(n, Hn(n))),
|
|
2400
2400
|
[n]
|
|
2401
|
-
),
|
|
2401
|
+
), K(() => u(l), [l]);
|
|
2402
2402
|
const [x, w, j, S] = Ea(
|
|
2403
2403
|
() => {
|
|
2404
2404
|
const A = {
|
|
@@ -2483,7 +2483,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2483
2483
|
},
|
|
2484
2484
|
[o]
|
|
2485
2485
|
), E = Ns({ triggers: [["Control"]] }), L = Ns({ triggers: [["Alt"]] });
|
|
2486
|
-
|
|
2486
|
+
K(() => {
|
|
2487
2487
|
const A = ($) => {
|
|
2488
2488
|
if (p.current == null) return;
|
|
2489
2489
|
let O = 1;
|
|
@@ -2641,20 +2641,11 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2641
2641
|
{ key: o, loc: "top", size: c > 0 ? 32 : 0, order: 3 },
|
|
2642
2642
|
"Annotation.Provider"
|
|
2643
2643
|
), d = o3(), f = rt(d.visible), h = F(
|
|
2644
|
-
(
|
|
2645
|
-
const g = (w) => {
|
|
2646
|
-
a((j) => ({ ...j, cursor: { x: w.clientX, y: w.clientY } }));
|
|
2647
|
-
}, x = p.currentTarget;
|
|
2648
|
-
x.addEventListener("mousemove", g), x.addEventListener(
|
|
2649
|
-
"mouseleave",
|
|
2650
|
-
() => {
|
|
2651
|
-
x.removeEventListener("mousemove", g), f.current || a((w) => ({ ...w, cursor: null }));
|
|
2652
|
-
},
|
|
2653
|
-
{ once: !0 }
|
|
2654
|
-
);
|
|
2655
|
-
},
|
|
2644
|
+
(g) => a((x) => ({ ...x, cursor: { x: g.clientX, y: g.clientY } })),
|
|
2656
2645
|
[a]
|
|
2657
|
-
)
|
|
2646
|
+
), p = F(() => {
|
|
2647
|
+
f.current || a((g) => ({ ...g, cursor: null }));
|
|
2648
|
+
}, [a, f]);
|
|
2658
2649
|
return /* @__PURE__ */ r.jsx(
|
|
2659
2650
|
r3,
|
|
2660
2651
|
{
|
|
@@ -2682,7 +2673,8 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2682
2673
|
stage: "start"
|
|
2683
2674
|
}), l(!0));
|
|
2684
2675
|
},
|
|
2685
|
-
|
|
2676
|
+
onMouseMove: h,
|
|
2677
|
+
onMouseLeave: p
|
|
2686
2678
|
}
|
|
2687
2679
|
)
|
|
2688
2680
|
}
|
|
@@ -2732,7 +2724,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2732
2724
|
), c = F(() => {
|
|
2733
2725
|
n((a) => ({ ...a, hover: null }));
|
|
2734
2726
|
}, [n]);
|
|
2735
|
-
return
|
|
2727
|
+
return K(() => {
|
|
2736
2728
|
if (o.current === null) return;
|
|
2737
2729
|
const a = o.current.parentElement;
|
|
2738
2730
|
if (a != null)
|
|
@@ -2784,7 +2776,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2784
2776
|
}), y = te(j);
|
|
2785
2777
|
j !== y.current && (y.current = j);
|
|
2786
2778
|
const { id: b } = dt("Rule"), E = document.getElementById(b), L = E == null ? void 0 : E.querySelector(".pluto-line-plot__viewport"), P = te(j);
|
|
2787
|
-
|
|
2779
|
+
K(() => {
|
|
2788
2780
|
S((z) => ({
|
|
2789
2781
|
...z,
|
|
2790
2782
|
position: n,
|
|
@@ -2905,14 +2897,16 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2905
2897
|
legendVariant: j,
|
|
2906
2898
|
onViewportChange: S,
|
|
2907
2899
|
viewportTriggers: y,
|
|
2908
|
-
|
|
2900
|
+
rangeAnnotationProvider: b,
|
|
2909
2901
|
onSelectRule: E,
|
|
2910
2902
|
children: L,
|
|
2911
2903
|
...P
|
|
2912
2904
|
}) => {
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2905
|
+
const A = t.filter(({ location: M }) => be.isY(M)), $ = te(null), O = wi(e.length), R = wi(P.hold), z = O === 0 && e.length !== 0 || R === !0 && P.hold === !1;
|
|
2906
|
+
return K(() => {
|
|
2907
|
+
var M;
|
|
2908
|
+
z && ((M = $.current) == null || M.reset());
|
|
2909
|
+
}, [z]), /* @__PURE__ */ r.jsxs(Ka, { ...P, children: [
|
|
2916
2910
|
A.map((M, v) => {
|
|
2917
2911
|
const k = e.filter((B) => B.axes.x === M.key), _ = t.filter(({ location: B }) => be.isX(B)), N = p == null ? void 0 : p.filter(
|
|
2918
2912
|
(B) => [..._.map(({ key: I }) => I), M.key].includes(B.axis)
|
|
@@ -3312,7 +3306,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3312
3306
|
required: !1
|
|
3313
3307
|
};
|
|
3314
3308
|
});
|
|
3315
|
-
|
|
3309
|
+
K(() => (l(e, { optional: t || o != null }) == null && o != null && c(e, o), d(l(e, { optional: t })), i({ path: e, onChange: d, listenToChildren: !1 })), [e, n, i, l, t, o]);
|
|
3316
3310
|
const f = F(
|
|
3317
3311
|
(g) => {
|
|
3318
3312
|
n == null || n(g, { ...s, path: e }), c(e, g);
|
|
@@ -3330,11 +3324,11 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3330
3324
|
return s.mode === "preview" && (p = "preview"), { onChange: f, setStatus: h, variant: p, ...u };
|
|
3331
3325
|
}, Mu = (e, t = !1, n) => {
|
|
3332
3326
|
const { get: o, bind: s } = Pt(n), [, l] = me(0);
|
|
3333
|
-
return
|
|
3327
|
+
return K(() => (l((i) => i + 1), s({ path: e, onChange: () => l((i) => i + 1) })), [e, s]), o(e, { optional: t }) ?? null;
|
|
3334
3328
|
}, Eu = (e, t = !1, n) => {
|
|
3335
3329
|
var i;
|
|
3336
3330
|
const { get: o, bind: s } = Pt(n), [, l] = me(0);
|
|
3337
|
-
return
|
|
3331
|
+
return K(() => (l((c) => c + 1), s({ path: e, onChange: () => l((c) => c + 1) })), [e, s]), ((i = o(e, { optional: t })) == null ? void 0 : i.value) ?? null;
|
|
3338
3332
|
}, W5 = (e) => {
|
|
3339
3333
|
var t, n;
|
|
3340
3334
|
return ((n = (t = Mu(e, !0)) == null ? void 0 : t.status) == null ? void 0 : n.variant) === "success";
|
|
@@ -3344,7 +3338,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3344
3338
|
onChange: n
|
|
3345
3339
|
}) => {
|
|
3346
3340
|
const o = Pt(t);
|
|
3347
|
-
|
|
3341
|
+
K(
|
|
3348
3342
|
() => o.bind({
|
|
3349
3343
|
path: e,
|
|
3350
3344
|
onChange: (s) => n(s, o),
|
|
@@ -3357,7 +3351,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3357
3351
|
optional: t = !1
|
|
3358
3352
|
}) => {
|
|
3359
3353
|
const { bind: n, get: o } = Pt(), [s, l] = me(o(e, { optional: t }));
|
|
3360
|
-
if (
|
|
3354
|
+
if (K(() => (l(o(e, { optional: t })), n({
|
|
3361
3355
|
path: e,
|
|
3362
3356
|
onChange: (i) => l({ ...i, value: Xn(i.value) }),
|
|
3363
3357
|
listenToChildren: !0
|
|
@@ -3397,7 +3391,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3397
3391
|
ctx: n
|
|
3398
3392
|
}) => {
|
|
3399
3393
|
const o = Pt(n), { bind: s, get: l } = o, [i, c] = me(l(e).value);
|
|
3400
|
-
return
|
|
3394
|
+
return K(() => (c(l(e).value), s({
|
|
3401
3395
|
path: e,
|
|
3402
3396
|
onChange: (a) => {
|
|
3403
3397
|
c(Xn(a.value));
|
|
@@ -3604,7 +3598,7 @@ const iS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3604
3598
|
const { statuses: M } = i.current;
|
|
3605
3599
|
M.clear(), M.forEach((v, k) => b(k));
|
|
3606
3600
|
}, []);
|
|
3607
|
-
return
|
|
3601
|
+
return K(() => {
|
|
3608
3602
|
if (!t) return;
|
|
3609
3603
|
const { listeners: M } = i.current;
|
|
3610
3604
|
i.current.state = e, M.forEach((v, k) => {
|
|
@@ -4179,7 +4173,7 @@ class Du {
|
|
|
4179
4173
|
}
|
|
4180
4174
|
const wx = ({ node: e }) => {
|
|
4181
4175
|
const t = H0(), n = te(e);
|
|
4182
|
-
return
|
|
4176
|
+
return K(() => {
|
|
4183
4177
|
const o = t.current;
|
|
4184
4178
|
if (o == null) return;
|
|
4185
4179
|
const s = o.parentNode;
|
|
@@ -4187,7 +4181,7 @@ const wx = ({ node: e }) => {
|
|
|
4187
4181
|
return e.mount(s, o), () => {
|
|
4188
4182
|
t.current != null && e.unmount(t.current);
|
|
4189
4183
|
};
|
|
4190
|
-
}, []),
|
|
4184
|
+
}, []), K(() => {
|
|
4191
4185
|
n.current != null && e !== n.current && (n.current.unmount(t.current), n.current = e);
|
|
4192
4186
|
const o = t.current;
|
|
4193
4187
|
if (o == null) return;
|
|
@@ -4421,7 +4415,7 @@ const bx = {
|
|
|
4421
4415
|
}
|
|
4422
4416
|
}), Mx = ({ allowRename: e = !1, initialTree: t }) => {
|
|
4423
4417
|
const [n, o] = me(t);
|
|
4424
|
-
return
|
|
4418
|
+
return K(() => o(lr(t)[0]), [t]), {
|
|
4425
4419
|
root: n,
|
|
4426
4420
|
onDrop: (u, d, f) => o((h) => Ou(h, d, f, u)[0]),
|
|
4427
4421
|
onClose: (u) => o((d) => Bl(d, u)[0]),
|
|
@@ -4765,7 +4759,7 @@ const Ax = ({ children: e, ...t }) => {
|
|
|
4765
4759
|
}
|
|
4766
4760
|
}
|
|
4767
4761
|
});
|
|
4768
|
-
|
|
4762
|
+
K(() => {
|
|
4769
4763
|
i((h) => ({ ...h, ...s }));
|
|
4770
4764
|
}, [s, i]);
|
|
4771
4765
|
const c = F(
|
|
@@ -4795,11 +4789,11 @@ const Ax = ({ children: e, ...t }) => {
|
|
|
4795
4789
|
schema: ba,
|
|
4796
4790
|
initialState: o
|
|
4797
4791
|
});
|
|
4798
|
-
return
|
|
4792
|
+
return K(() => {
|
|
4799
4793
|
l != null && (t == null || t(l));
|
|
4800
|
-
}, [l, t]),
|
|
4794
|
+
}, [l, t]), K(() => {
|
|
4801
4795
|
c((a) => ({ ...a, ...o }));
|
|
4802
|
-
}, [o, c]),
|
|
4796
|
+
}, [o, c]), K(() => () => t == null ? void 0 : t("released"), []), /* @__PURE__ */ r.jsxs(Yu, { value: { needsControlOf: i }, children: [
|
|
4803
4797
|
/* @__PURE__ */ r.jsx(ht, { path: s, children: e }),
|
|
4804
4798
|
";"
|
|
4805
4799
|
] });
|
|
@@ -4821,7 +4815,7 @@ const Ax = ({ children: e, ...t }) => {
|
|
|
4821
4815
|
},
|
|
4822
4816
|
schema: va
|
|
4823
4817
|
});
|
|
4824
|
-
|
|
4818
|
+
K(() => {
|
|
4825
4819
|
l((a) => ({ ...a, ...n }));
|
|
4826
4820
|
}, [n, l]);
|
|
4827
4821
|
let i;
|
|
@@ -4847,7 +4841,7 @@ const Ax = ({ children: e, ...t }) => {
|
|
|
4847
4841
|
needsControlOf: t
|
|
4848
4842
|
}
|
|
4849
4843
|
});
|
|
4850
|
-
|
|
4844
|
+
K(() => {
|
|
4851
4845
|
o((i) => ({ ...i, needsControlOf: t }));
|
|
4852
4846
|
}, [t]);
|
|
4853
4847
|
const l = Cr.unique(n.map((i) => i.subject.key)).map((i) => {
|
|
@@ -5178,7 +5172,7 @@ const Ax = ({ children: e, ...t }) => {
|
|
|
5178
5172
|
schema: _i.stateZ,
|
|
5179
5173
|
initialState: { region: Z.ZERO, visible: n }
|
|
5180
5174
|
});
|
|
5181
|
-
|
|
5175
|
+
K(() => {
|
|
5182
5176
|
l((c) => ({ ...c, visible: n }));
|
|
5183
5177
|
}, [n]);
|
|
5184
5178
|
const i = yo((c) => l((a) => ({ ...a, region: c })));
|
|
@@ -5346,7 +5340,7 @@ const Ax = ({ children: e, ...t }) => {
|
|
|
5346
5340
|
});
|
|
5347
5341
|
n({ ...t, telem: x });
|
|
5348
5342
|
}, a = (g) => c({ valueStream: St({ channel: g ?? 0 }) }), u = (g) => c({ stringifier: Kn({ ...l, notation: g }) }), d = (g) => c({ stringifier: Kn({ ...l, precision: g }) }), f = (g) => c({ rollingAverage: tr({ windowSize: g }) }), h = Ar(s.channel);
|
|
5349
|
-
return
|
|
5343
|
+
return K(() => n({ ...t, tooltip: [h] }), [h]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
5350
5344
|
/* @__PURE__ */ r.jsx(He, { label: "Input Channel", grow: !0, children: /* @__PURE__ */ r.jsx(
|
|
5351
5345
|
en,
|
|
5352
5346
|
{
|
|
@@ -5408,7 +5402,7 @@ const Ax = ({ children: e, ...t }) => {
|
|
|
5408
5402
|
schema: Ts.z,
|
|
5409
5403
|
initialState: d
|
|
5410
5404
|
});
|
|
5411
|
-
return
|
|
5405
|
+
return K(() => h((p) => ({ ...p, ...d })), [d]), { width: f.width ?? f.minWidth };
|
|
5412
5406
|
}, IS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5413
5407
|
__proto__: null,
|
|
5414
5408
|
TelemForm: Dl,
|
|
@@ -7821,15 +7815,15 @@ var xr;
|
|
|
7821
7815
|
(function(e) {
|
|
7822
7816
|
e.Arrow = "arrow", e.ArrowClosed = "arrowclosed";
|
|
7823
7817
|
})(xr || (xr = {}));
|
|
7824
|
-
var
|
|
7818
|
+
var q;
|
|
7825
7819
|
(function(e) {
|
|
7826
7820
|
e.Left = "left", e.Top = "top", e.Right = "right", e.Bottom = "bottom";
|
|
7827
|
-
})(
|
|
7821
|
+
})(q || (q = {}));
|
|
7828
7822
|
const nc = {
|
|
7829
|
-
[
|
|
7830
|
-
[
|
|
7831
|
-
[
|
|
7832
|
-
[
|
|
7823
|
+
[q.Left]: q.Right,
|
|
7824
|
+
[q.Right]: q.Left,
|
|
7825
|
+
[q.Top]: q.Bottom,
|
|
7826
|
+
[q.Bottom]: q.Top
|
|
7833
7827
|
};
|
|
7834
7828
|
function Od(e) {
|
|
7835
7829
|
return e === null ? null : e ? "valid" : "invalid";
|
|
@@ -8158,17 +8152,17 @@ function Bo(e, t) {
|
|
|
8158
8152
|
}
|
|
8159
8153
|
function ic({ pos: e, x1: t, y1: n, x2: o, y2: s, c: l }) {
|
|
8160
8154
|
switch (e) {
|
|
8161
|
-
case
|
|
8155
|
+
case q.Left:
|
|
8162
8156
|
return [t - Bo(t - o, l), n];
|
|
8163
|
-
case
|
|
8157
|
+
case q.Right:
|
|
8164
8158
|
return [t + Bo(o - t, l), n];
|
|
8165
|
-
case
|
|
8159
|
+
case q.Top:
|
|
8166
8160
|
return [t, n - Bo(n - s, l)];
|
|
8167
|
-
case
|
|
8161
|
+
case q.Bottom:
|
|
8168
8162
|
return [t, n + Bo(s - n, l)];
|
|
8169
8163
|
}
|
|
8170
8164
|
}
|
|
8171
|
-
function Ud({ sourceX: e, sourceY: t, sourcePosition: n =
|
|
8165
|
+
function Ud({ sourceX: e, sourceY: t, sourcePosition: n = q.Bottom, targetX: o, targetY: s, targetPosition: l = q.Top, curvature: i = 0.25 }) {
|
|
8172
8166
|
const [c, a] = ic({
|
|
8173
8167
|
pos: n,
|
|
8174
8168
|
x1: e,
|
|
@@ -8256,12 +8250,12 @@ function Jd({ sourceX: e, sourceY: t, targetX: n, targetY: o }) {
|
|
|
8256
8250
|
return [`M ${e},${t}L ${n},${o}`, s, l, i, c];
|
|
8257
8251
|
}
|
|
8258
8252
|
const cc = {
|
|
8259
|
-
[
|
|
8260
|
-
[
|
|
8261
|
-
[
|
|
8262
|
-
[
|
|
8263
|
-
}, U9 = ({ source: e, sourcePosition: t =
|
|
8264
|
-
function K9({ source: e, sourcePosition: t =
|
|
8253
|
+
[q.Left]: { x: -1, y: 0 },
|
|
8254
|
+
[q.Right]: { x: 1, y: 0 },
|
|
8255
|
+
[q.Top]: { x: 0, y: -1 },
|
|
8256
|
+
[q.Bottom]: { x: 0, y: 1 }
|
|
8257
|
+
}, U9 = ({ source: e, sourcePosition: t = q.Bottom, target: n }) => t === q.Left || t === q.Right ? e.x < n.x ? { x: 1, y: 0 } : { x: -1, y: 0 } : e.y < n.y ? { x: 0, y: 1 } : { x: 0, y: -1 }, ac = (e, t) => Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
|
|
8258
|
+
function K9({ source: e, sourcePosition: t = q.Bottom, target: n, targetPosition: o = q.Top, center: s, offset: l }) {
|
|
8265
8259
|
const i = cc[t], c = cc[o], a = { x: e.x + i.x * l, y: e.y + i.y * l }, u = { x: n.x + c.x * l, y: n.y + c.y * l }, d = U9({
|
|
8266
8260
|
source: a,
|
|
8267
8261
|
sourcePosition: t,
|
|
@@ -8319,7 +8313,7 @@ function q9(e, t, n, o) {
|
|
|
8319
8313
|
const c = e.x < n.x ? 1 : -1, a = e.y < n.y ? -1 : 1;
|
|
8320
8314
|
return `L ${l},${i + s * a}Q ${l},${i} ${l + s * c},${i}`;
|
|
8321
8315
|
}
|
|
8322
|
-
function qs({ sourceX: e, sourceY: t, sourcePosition: n =
|
|
8316
|
+
function qs({ sourceX: e, sourceY: t, sourcePosition: n = q.Bottom, targetX: o, targetY: s, targetPosition: l = q.Top, borderRadius: i = 5, centerX: c, centerY: a, offset: u = 20 }) {
|
|
8323
8317
|
const [d, f, h, p, g] = K9({
|
|
8324
8318
|
source: { x: e, y: t },
|
|
8325
8319
|
sourcePosition: n,
|
|
@@ -8353,7 +8347,7 @@ function Q9(e) {
|
|
|
8353
8347
|
sourceHandle: e.sourceHandle,
|
|
8354
8348
|
targetHandle: e.targetHandle
|
|
8355
8349
|
})), null;
|
|
8356
|
-
const c = (l == null ? void 0 : l.position) ||
|
|
8350
|
+
const c = (l == null ? void 0 : l.position) || q.Bottom, a = (i == null ? void 0 : i.position) || q.Top, u = co(t, l, c), d = co(n, i, a);
|
|
8357
8351
|
return {
|
|
8358
8352
|
sourceX: u.x,
|
|
8359
8353
|
sourceY: u.y,
|
|
@@ -8374,18 +8368,18 @@ function dc(e) {
|
|
|
8374
8368
|
target: n
|
|
8375
8369
|
};
|
|
8376
8370
|
}
|
|
8377
|
-
function co(e, t, n =
|
|
8371
|
+
function co(e, t, n = q.Left, o = !1) {
|
|
8378
8372
|
const s = ((t == null ? void 0 : t.x) ?? 0) + e.internals.positionAbsolute.x, l = ((t == null ? void 0 : t.y) ?? 0) + e.internals.positionAbsolute.y, { width: i, height: c } = t ?? Nt(e);
|
|
8379
8373
|
if (o)
|
|
8380
8374
|
return { x: s + i / 2, y: l + c / 2 };
|
|
8381
8375
|
switch ((t == null ? void 0 : t.position) ?? n) {
|
|
8382
|
-
case
|
|
8376
|
+
case q.Top:
|
|
8383
8377
|
return { x: s + i / 2, y: l };
|
|
8384
|
-
case
|
|
8378
|
+
case q.Right:
|
|
8385
8379
|
return { x: s + i, y: l + c / 2 };
|
|
8386
|
-
case
|
|
8380
|
+
case q.Bottom:
|
|
8387
8381
|
return { x: s + i / 2, y: l + c };
|
|
8388
|
-
case
|
|
8382
|
+
case q.Left:
|
|
8389
8383
|
return { x: s, y: l + c / 2 };
|
|
8390
8384
|
}
|
|
8391
8385
|
}
|
|
@@ -8876,7 +8870,7 @@ function f7(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: s,
|
|
|
8876
8870
|
}, ee = a.get(s), se = {
|
|
8877
8871
|
inProgress: !0,
|
|
8878
8872
|
isValid: null,
|
|
8879
|
-
from: co(ee, H,
|
|
8873
|
+
from: co(ee, H, q.Left, !0),
|
|
8880
8874
|
fromHandle: H,
|
|
8881
8875
|
fromPosition: H.position,
|
|
8882
8876
|
fromNode: ee,
|
|
@@ -9776,7 +9770,7 @@ function J7(e, t) {
|
|
|
9776
9770
|
}
|
|
9777
9771
|
function e8({ onSelectionChange: e }) {
|
|
9778
9772
|
const t = Ae(), { selectedNodes: n, selectedEdges: o } = Ce(Q7, J7);
|
|
9779
|
-
return
|
|
9773
|
+
return K(() => {
|
|
9780
9774
|
const s = { nodes: n, edges: o };
|
|
9781
9775
|
e == null || e(s), t.getState().onSelectionChangeHandlers.forEach((l) => l(s));
|
|
9782
9776
|
}, [n, o, e]), null;
|
|
@@ -9871,11 +9865,11 @@ const mf = [0, 0], o8 = { x: 0, y: 0, zoom: 1 }, r8 = [
|
|
|
9871
9865
|
};
|
|
9872
9866
|
function l8(e) {
|
|
9873
9867
|
const { setNodes: t, setEdges: n, setMinZoom: o, setMaxZoom: s, setTranslateExtent: l, setNodeExtent: i, reset: c, setDefaultNodesAndEdges: a, setPaneClickDistance: u } = Ce(s8, $e), d = Ae();
|
|
9874
|
-
|
|
9868
|
+
K(() => (a(e.defaultNodes, e.defaultEdges), () => {
|
|
9875
9869
|
f.current = Mc, c();
|
|
9876
9870
|
}), []);
|
|
9877
9871
|
const f = te(Mc);
|
|
9878
|
-
return
|
|
9872
|
+
return K(
|
|
9879
9873
|
() => {
|
|
9880
9874
|
for (const h of _c) {
|
|
9881
9875
|
const p = e[h], g = f.current[h];
|
|
@@ -9893,7 +9887,7 @@ function Ec() {
|
|
|
9893
9887
|
function i8(e) {
|
|
9894
9888
|
var o;
|
|
9895
9889
|
const [t, n] = me(e === "system" ? null : e);
|
|
9896
|
-
return
|
|
9890
|
+
return K(() => {
|
|
9897
9891
|
if (e !== "system") {
|
|
9898
9892
|
n(e);
|
|
9899
9893
|
return;
|
|
@@ -9918,7 +9912,7 @@ function ao(e = null, t = { target: kc, actInsideInputWithModifier: !0 }) {
|
|
|
9918
9912
|
}
|
|
9919
9913
|
return [[], []];
|
|
9920
9914
|
}, [e]);
|
|
9921
|
-
return
|
|
9915
|
+
return K(() => {
|
|
9922
9916
|
const a = (t == null ? void 0 : t.target) ?? kc, u = (t == null ? void 0 : t.actInsideInputWithModifier) ?? !0;
|
|
9923
9917
|
if (e !== null) {
|
|
9924
9918
|
const d = (p) => {
|
|
@@ -10098,7 +10092,7 @@ const Ac = (e) => I9(e), u8 = (e) => zd(e);
|
|
|
10098
10092
|
function jf(e) {
|
|
10099
10093
|
return Kc(e);
|
|
10100
10094
|
}
|
|
10101
|
-
const d8 = typeof window < "u" ? ol :
|
|
10095
|
+
const d8 = typeof window < "u" ? ol : K;
|
|
10102
10096
|
function Ic(e) {
|
|
10103
10097
|
const [t, n] = me(BigInt(0)), [o] = me(() => f8(() => n((s) => s + BigInt(1))));
|
|
10104
10098
|
return d8(() => {
|
|
@@ -10294,18 +10288,18 @@ function an() {
|
|
|
10294
10288
|
const $c = (e) => e.selected, m8 = typeof window < "u" ? window : void 0;
|
|
10295
10289
|
function x8({ deleteKeyCode: e, multiSelectionKeyCode: t }) {
|
|
10296
10290
|
const n = Ae(), { deleteElements: o } = an(), s = ao(e, { actInsideInputWithModifier: !1 }), l = ao(t, { target: m8 });
|
|
10297
|
-
|
|
10291
|
+
K(() => {
|
|
10298
10292
|
if (s) {
|
|
10299
10293
|
const { edges: i, nodes: c } = n.getState();
|
|
10300
10294
|
o({ nodes: c.filter($c), edges: i.filter($c) }), n.setState({ nodesSelectionActive: !1 });
|
|
10301
10295
|
}
|
|
10302
|
-
}, [s]),
|
|
10296
|
+
}, [s]), K(() => {
|
|
10303
10297
|
n.setState({ multiSelectionActive: l });
|
|
10304
10298
|
}, [l]);
|
|
10305
10299
|
}
|
|
10306
10300
|
function y8(e) {
|
|
10307
10301
|
const t = Ae();
|
|
10308
|
-
|
|
10302
|
+
K(() => {
|
|
10309
10303
|
const n = () => {
|
|
10310
10304
|
var s, l;
|
|
10311
10305
|
if (!e.current)
|
|
@@ -10338,7 +10332,7 @@ function j8({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
10338
10332
|
const O = F((R) => {
|
|
10339
10333
|
j == null || j({ x: R[0], y: R[1], zoom: R[2] }), S || b.setState({ transform: R });
|
|
10340
10334
|
}, [j, S]);
|
|
10341
|
-
return
|
|
10335
|
+
return K(() => {
|
|
10342
10336
|
if (E.current) {
|
|
10343
10337
|
$.current = v7({
|
|
10344
10338
|
domNode: E.current,
|
|
@@ -10371,7 +10365,7 @@ function j8({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0, p
|
|
|
10371
10365
|
(v = $.current) == null || v.destroy();
|
|
10372
10366
|
};
|
|
10373
10367
|
}
|
|
10374
|
-
}, []),
|
|
10368
|
+
}, []), K(() => {
|
|
10375
10369
|
var R;
|
|
10376
10370
|
(R = $.current) == null || R.update({
|
|
10377
10371
|
onPaneContextMenu: e,
|
|
@@ -10521,7 +10515,7 @@ function tl({ id: e, store: t, unselect: n = !1, nodeRef: o }) {
|
|
|
10521
10515
|
}
|
|
10522
10516
|
function vf({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: o, nodeId: s, isSelectable: l, nodeClickDistance: i }) {
|
|
10523
10517
|
const c = Ae(), [a, u] = me(!1), d = te();
|
|
10524
|
-
return
|
|
10518
|
+
return K(() => {
|
|
10525
10519
|
d.current = i7({
|
|
10526
10520
|
getStoreItems: () => c.getState(),
|
|
10527
10521
|
onNodeMouseDown: (f) => {
|
|
@@ -10538,7 +10532,7 @@ function vf({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
|
|
|
10538
10532
|
u(!1);
|
|
10539
10533
|
}
|
|
10540
10534
|
});
|
|
10541
|
-
}, []),
|
|
10535
|
+
}, []), K(() => {
|
|
10542
10536
|
var f, h;
|
|
10543
10537
|
if (t)
|
|
10544
10538
|
(f = d.current) == null || f.destroy();
|
|
@@ -10600,7 +10594,7 @@ const Sf = () => ho(oi), E8 = (e) => ({
|
|
|
10600
10594
|
valid: d && u
|
|
10601
10595
|
};
|
|
10602
10596
|
};
|
|
10603
|
-
function L8({ type: e = "source", position: t =
|
|
10597
|
+
function L8({ type: e = "source", position: t = q.Top, isValidConnection: n, isConnectable: o = !0, isConnectableStart: s = !0, isConnectableEnd: l = !0, id: i, onConnect: c, children: a, className: u, onMouseDown: d, onTouchStart: f, ...h }, p) {
|
|
10604
10598
|
var k, _;
|
|
10605
10599
|
const g = i || null, x = e === "target", w = Ae(), j = Sf(), { connectOnClick: S, noPanClassName: y, rfId: b } = Ce(E8, $e), { connectingFrom: E, connectingTo: L, clickConnecting: P, isPossibleEndHandle: A, connectionInProcess: $, clickConnectionInProcess: O, valid: R } = Ce(k8(j, g, e), $e);
|
|
10606
10600
|
j || (_ = (k = w.getState()).onError) == null || _.call(k, "010", We.error010());
|
|
@@ -10697,16 +10691,16 @@ function L8({ type: e = "source", position: t = K.Top, isValidConnection: n, isC
|
|
|
10697
10691
|
]), onMouseDown: M, onTouchStart: M, onClick: S ? v : void 0, ref: p, ...h, children: a });
|
|
10698
10692
|
}
|
|
10699
10693
|
const uo = Te(jf(L8));
|
|
10700
|
-
function P8({ data: e, isConnectable: t, sourcePosition: n =
|
|
10694
|
+
function P8({ data: e, isConnectable: t, sourcePosition: n = q.Bottom }) {
|
|
10701
10695
|
return r.jsxs(r.Fragment, { children: [e == null ? void 0 : e.label, r.jsx(uo, { type: "source", position: n, isConnectable: t })] });
|
|
10702
10696
|
}
|
|
10703
|
-
function N8({ data: e, isConnectable: t, targetPosition: n =
|
|
10697
|
+
function N8({ data: e, isConnectable: t, targetPosition: n = q.Top, sourcePosition: o = q.Bottom }) {
|
|
10704
10698
|
return r.jsxs(r.Fragment, { children: [r.jsx(uo, { type: "target", position: n, isConnectable: t }), e == null ? void 0 : e.label, r.jsx(uo, { type: "source", position: o, isConnectable: t })] });
|
|
10705
10699
|
}
|
|
10706
10700
|
function T8() {
|
|
10707
10701
|
return null;
|
|
10708
10702
|
}
|
|
10709
|
-
function A8({ data: e, isConnectable: t, targetPosition: n =
|
|
10703
|
+
function A8({ data: e, isConnectable: t, targetPosition: n = q.Top }) {
|
|
10710
10704
|
return r.jsxs(r.Fragment, { children: [r.jsx(uo, { type: "target", position: n, isConnectable: t }), e == null ? void 0 : e.label] });
|
|
10711
10705
|
}
|
|
10712
10706
|
const vr = {
|
|
@@ -10743,7 +10737,7 @@ const $8 = (e) => {
|
|
|
10743
10737
|
};
|
|
10744
10738
|
function B8({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y: n }) {
|
|
10745
10739
|
const o = Ae(), { width: s, height: l, transformString: i, userSelectionActive: c } = Ce($8, $e), a = Cf(), u = te(null);
|
|
10746
|
-
if (
|
|
10740
|
+
if (K(() => {
|
|
10747
10741
|
var h;
|
|
10748
10742
|
n || (h = u.current) == null || h.focus({
|
|
10749
10743
|
preventScroll: !0
|
|
@@ -10791,17 +10785,17 @@ function F8() {
|
|
|
10791
10785
|
});
|
|
10792
10786
|
}), e(o);
|
|
10793
10787
|
}));
|
|
10794
|
-
return
|
|
10788
|
+
return K(() => () => {
|
|
10795
10789
|
t == null || t.disconnect();
|
|
10796
10790
|
}, [t]), t;
|
|
10797
10791
|
}
|
|
10798
10792
|
function H8({ node: e, nodeType: t, hasDimensions: n, resizeObserver: o }) {
|
|
10799
10793
|
const s = Ae(), l = te(null), i = te(null), c = te(e.sourcePosition), a = te(e.targetPosition), u = te(t), d = n && !!e.internals.handleBounds;
|
|
10800
|
-
return
|
|
10794
|
+
return K(() => {
|
|
10801
10795
|
l.current && !e.hidden && (!d || i.current !== l.current) && (i.current && (o == null || o.unobserve(i.current)), o == null || o.observe(l.current), i.current = l.current);
|
|
10802
|
-
}, [d, e.hidden]),
|
|
10796
|
+
}, [d, e.hidden]), K(() => () => {
|
|
10803
10797
|
i.current && (o == null || o.unobserve(i.current), i.current = null);
|
|
10804
|
-
}, []),
|
|
10798
|
+
}, []), K(() => {
|
|
10805
10799
|
if (l.current) {
|
|
10806
10800
|
const f = u.current !== t, h = c.current !== e.sourcePosition, p = a.current !== e.targetPosition;
|
|
10807
10801
|
(f || h || p) && (u.current = t, c.current = e.sourcePosition, a.current = e.targetPosition, s.getState().updateNodeInternals(/* @__PURE__ */ new Map([[e.id, { id: e.id, nodeElement: l.current, force: !0 }]])));
|
|
@@ -10990,7 +10984,7 @@ Ef.displayName = "MarkerDefinitions";
|
|
|
10990
10984
|
var Q8 = Te(Ef);
|
|
10991
10985
|
function kf({ x: e, y: t, label: n, labelStyle: o, labelShowBg: s = !0, labelBgStyle: l, labelBgPadding: i = [2, 4], labelBgBorderRadius: c = 2, children: a, className: u, ...d }) {
|
|
10992
10986
|
const [f, h] = me({ x: 1, y: 0, width: 0, height: 0 }), p = Re(["react-flow__edge-textwrapper", u]), g = te(null);
|
|
10993
|
-
return
|
|
10987
|
+
return K(() => {
|
|
10994
10988
|
if (g.current) {
|
|
10995
10989
|
const x = g.current.getBBox();
|
|
10996
10990
|
h({
|
|
@@ -11008,9 +11002,9 @@ function lt({ path: e, labelX: t, labelY: n, label: o, labelStyle: s, labelShowB
|
|
|
11008
11002
|
return r.jsxs(r.Fragment, { children: [r.jsx("path", { ...d, d: e, fill: "none", className: Re(["react-flow__edge-path", d.className]) }), u && r.jsx("path", { d: e, fill: "none", strokeOpacity: 0, strokeWidth: u, className: "react-flow__edge-interaction" }), o && st(t) && st(n) ? r.jsx(J8, { x: t, y: n, label: o, labelStyle: s, labelShowBg: l, labelBgStyle: i, labelBgPadding: c, labelBgBorderRadius: a }) : null] });
|
|
11009
11003
|
}
|
|
11010
11004
|
function Rc({ pos: e, x1: t, y1: n, x2: o, y2: s }) {
|
|
11011
|
-
return e ===
|
|
11005
|
+
return e === q.Left || e === q.Right ? [0.5 * (t + o), n] : [t, 0.5 * (n + s)];
|
|
11012
11006
|
}
|
|
11013
|
-
function Lf({ sourceX: e, sourceY: t, sourcePosition: n =
|
|
11007
|
+
function Lf({ sourceX: e, sourceY: t, sourcePosition: n = q.Bottom, targetX: o, targetY: s, targetPosition: l = q.Top }) {
|
|
11014
11008
|
const [i, c] = Rc({
|
|
11015
11009
|
pos: n,
|
|
11016
11010
|
x1: e,
|
|
@@ -11058,7 +11052,7 @@ const ew = Pf({ isInternal: !1 }), Nf = Pf({ isInternal: !0 });
|
|
|
11058
11052
|
ew.displayName = "SimpleBezierEdge";
|
|
11059
11053
|
Nf.displayName = "SimpleBezierEdgeInternal";
|
|
11060
11054
|
function Tf(e) {
|
|
11061
|
-
return Te(({ id: t, sourceX: n, sourceY: o, targetX: s, targetY: l, label: i, labelStyle: c, labelShowBg: a, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: f, style: h, sourcePosition: p =
|
|
11055
|
+
return Te(({ id: t, sourceX: n, sourceY: o, targetX: s, targetY: l, label: i, labelStyle: c, labelShowBg: a, labelBgStyle: u, labelBgPadding: d, labelBgBorderRadius: f, style: h, sourcePosition: p = q.Bottom, targetPosition: g = q.Top, markerEnd: x, markerStart: w, pathOptions: j, interactionWidth: S }) => {
|
|
11062
11056
|
const [y, b, E] = qs({
|
|
11063
11057
|
sourceX: n,
|
|
11064
11058
|
sourceY: o,
|
|
@@ -11098,7 +11092,7 @@ const nw = Of({ isInternal: !1 }), zf = Of({ isInternal: !0 });
|
|
|
11098
11092
|
nw.displayName = "StraightEdge";
|
|
11099
11093
|
zf.displayName = "StraightEdgeInternal";
|
|
11100
11094
|
function Rf(e) {
|
|
11101
|
-
return Te(({ id: t, sourceX: n, sourceY: o, targetX: s, targetY: l, sourcePosition: i =
|
|
11095
|
+
return Te(({ id: t, sourceX: n, sourceY: o, targetX: s, targetY: l, sourcePosition: i = q.Bottom, targetPosition: c = q.Top, label: a, labelStyle: u, labelShowBg: d, labelBgStyle: f, labelBgPadding: h, labelBgBorderRadius: p, style: g, markerEnd: x, markerStart: w, pathOptions: j, interactionWidth: S }) => {
|
|
11102
11096
|
const [y, b, E] = Ud({
|
|
11103
11097
|
sourceX: n,
|
|
11104
11098
|
sourceY: o,
|
|
@@ -11127,7 +11121,7 @@ const Dc = {
|
|
|
11127
11121
|
targetY: null,
|
|
11128
11122
|
sourcePosition: null,
|
|
11129
11123
|
targetPosition: null
|
|
11130
|
-
}, rw = (e, t, n) => n ===
|
|
11124
|
+
}, rw = (e, t, n) => n === q.Left ? e - t : n === q.Right ? e + t : e, sw = (e, t, n) => n === q.Top ? e - t : n === q.Bottom ? e + t : e, Fc = "react-flow__edgeupdater";
|
|
11131
11125
|
function Hc({ position: e, centerX: t, centerY: n, radius: o = 10, onMouseDown: s, onMouseEnter: l, onMouseOut: i, type: c }) {
|
|
11132
11126
|
return r.jsx("circle", { onMouseDown: s, onMouseEnter: l, onMouseOut: i, className: Re([Fc, `${Fc}-${c}`]), cx: rw(t, o, e), cy: sw(n, o, e), r: o, stroke: "transparent", fill: "transparent" });
|
|
11133
11127
|
}
|
|
@@ -11255,7 +11249,7 @@ function dw({ children: e }) {
|
|
|
11255
11249
|
}
|
|
11256
11250
|
function fw(e) {
|
|
11257
11251
|
const t = an(), n = te(!1);
|
|
11258
|
-
|
|
11252
|
+
K(() => {
|
|
11259
11253
|
!n.current && t.viewportInitialized && e && (setTimeout(() => e(t), 1), n.current = !0);
|
|
11260
11254
|
}, [e, t.viewportInitialized]);
|
|
11261
11255
|
}
|
|
@@ -11265,7 +11259,7 @@ const hw = (e) => {
|
|
|
11265
11259
|
};
|
|
11266
11260
|
function pw(e) {
|
|
11267
11261
|
const t = Ce(hw), n = Ae();
|
|
11268
|
-
return
|
|
11262
|
+
return K(() => {
|
|
11269
11263
|
e && (t == null || t(e), n.setState({ transform: [e.x, e.y, e.zoom] }));
|
|
11270
11264
|
}, [e, t]), null;
|
|
11271
11265
|
}
|
|
@@ -11330,7 +11324,7 @@ Ff.displayName = "ConnectionLine";
|
|
|
11330
11324
|
const jw = {};
|
|
11331
11325
|
function Zc(e = jw) {
|
|
11332
11326
|
const t = te(e), n = Ae();
|
|
11333
|
-
|
|
11327
|
+
K(() => {
|
|
11334
11328
|
var o, s;
|
|
11335
11329
|
if (process.env.NODE_ENV === "development") {
|
|
11336
11330
|
const l = /* @__PURE__ */ new Set([...Object.keys(t.current), ...Object.keys(e)]);
|
|
@@ -11345,7 +11339,7 @@ function Zc(e = jw) {
|
|
|
11345
11339
|
}
|
|
11346
11340
|
function bw() {
|
|
11347
11341
|
const e = Ae(), t = te(!1);
|
|
11348
|
-
|
|
11342
|
+
K(() => {
|
|
11349
11343
|
var n, o;
|
|
11350
11344
|
if (process.env.NODE_ENV === "development" && !t.current) {
|
|
11351
11345
|
const s = document.querySelector(".react-flow__pane");
|
|
@@ -11669,11 +11663,11 @@ function kw() {
|
|
|
11669
11663
|
}
|
|
11670
11664
|
function Lw({ onStart: e, onChange: t, onEnd: n }) {
|
|
11671
11665
|
const o = Ae();
|
|
11672
|
-
|
|
11666
|
+
K(() => {
|
|
11673
11667
|
o.setState({ onViewportChangeStart: e });
|
|
11674
|
-
}, [e]),
|
|
11668
|
+
}, [e]), K(() => {
|
|
11675
11669
|
o.setState({ onViewportChange: t });
|
|
11676
|
-
}, [t]),
|
|
11670
|
+
}, [t]), K(() => {
|
|
11677
11671
|
o.setState({ onViewportChangeEnd: n });
|
|
11678
11672
|
}, [n]);
|
|
11679
11673
|
}
|
|
@@ -11857,7 +11851,7 @@ function Gf({
|
|
|
11857
11851
|
offsetScale: b = 5
|
|
11858
11852
|
}) {
|
|
11859
11853
|
const E = Ae(), L = te(null), { boundingRect: P, viewBB: A, rfId: $, panZoom: O, translateExtent: R, flowWidth: z, flowHeight: M, ariaLabelConfig: v } = Ce(qw, $e), k = (e == null ? void 0 : e.width) ?? Xw, _ = (e == null ? void 0 : e.height) ?? Uw, N = P.width / k, B = P.height / _, I = Math.max(N, B), D = I * k, V = I * _, H = b * I, ee = P.x - (D - P.width) / 2 - H, ne = P.y - (V - P.height) / 2 - H, se = D + H * 2, le = V + H * 2, pe = `${Qw}-${$}`, J = te(0), ue = te();
|
|
11860
|
-
J.current = I,
|
|
11854
|
+
J.current = I, K(() => {
|
|
11861
11855
|
if (L.current && O)
|
|
11862
11856
|
return ue.current = h7({
|
|
11863
11857
|
domNode: L.current,
|
|
@@ -11868,7 +11862,7 @@ function Gf({
|
|
|
11868
11862
|
var ae;
|
|
11869
11863
|
(ae = ue.current) == null || ae.destroy();
|
|
11870
11864
|
};
|
|
11871
|
-
}, [O]),
|
|
11865
|
+
}, [O]), K(() => {
|
|
11872
11866
|
var ae;
|
|
11873
11867
|
(ae = ue.current) == null || ae.update({
|
|
11874
11868
|
translateExtent: R,
|
|
@@ -11908,7 +11902,7 @@ const Jw = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, ej =
|
|
|
11908
11902
|
};
|
|
11909
11903
|
function tj({ nodeId: e, position: t, variant: n = En.Handle, className: o, style: s = void 0, children: l, color: i, minWidth: c = 10, minHeight: a = 10, maxWidth: u = Number.MAX_VALUE, maxHeight: d = Number.MAX_VALUE, keepAspectRatio: f = !1, resizeDirection: h, autoScale: p = !0, shouldResize: g, onResizeStart: x, onResize: w, onResizeEnd: j }) {
|
|
11910
11904
|
const S = Sf(), y = typeof e == "string" ? e : S, b = Ae(), E = te(null), L = n === En.Handle, P = Ce(F(Jw(L && p), [L, p]), $e), A = te(null), $ = t ?? ej[n];
|
|
11911
|
-
|
|
11905
|
+
K(() => {
|
|
11912
11906
|
if (!(!E.current || !y))
|
|
11913
11907
|
return A.current || (A.current = L7({
|
|
11914
11908
|
domNode: E.current,
|
|
@@ -12461,7 +12455,7 @@ const gj = ({
|
|
|
12461
12455
|
}), So = () => Ln(Jf), eh = Te(
|
|
12462
12456
|
({ children: e }) => {
|
|
12463
12457
|
const { registerNodeRenderer: t } = So();
|
|
12464
|
-
return
|
|
12458
|
+
return K(() => t(e), [t, e]), null;
|
|
12465
12459
|
}
|
|
12466
12460
|
);
|
|
12467
12461
|
eh.displayName = "NodeRenderer";
|
|
@@ -12502,7 +12496,7 @@ const Cj = ["Backspace", "Delete"], Sj = ({
|
|
|
12502
12496
|
[j, y, d]
|
|
12503
12497
|
)
|
|
12504
12498
|
);
|
|
12505
|
-
|
|
12499
|
+
K(() => j((W) => ({ ...W, ...x })), [x]);
|
|
12506
12500
|
const E = Q.hex(Nn().colors.gray.l11), L = Ea(
|
|
12507
12501
|
() => a ?? Nl.zoom,
|
|
12508
12502
|
ta,
|
|
@@ -12752,7 +12746,7 @@ const Cj = ["Backspace", "Delete"], Sj = ({
|
|
|
12752
12746
|
...a
|
|
12753
12747
|
}
|
|
12754
12748
|
});
|
|
12755
|
-
|
|
12749
|
+
K(() => {
|
|
12756
12750
|
f((p) => ({ ...p, ...a }));
|
|
12757
12751
|
}, [a, f]);
|
|
12758
12752
|
const h = yo(
|
|
@@ -13573,7 +13567,7 @@ const Cj = ["Backspace", "Delete"], Sj = ({
|
|
|
13573
13567
|
});
|
|
13574
13568
|
n({ ...t, source: f });
|
|
13575
13569
|
}, a = Ar(s.channel);
|
|
13576
|
-
return
|
|
13570
|
+
return K(() => n({ ...t }), [a]), /* @__PURE__ */ r.jsxs(Ye, { x: !0, align: "stretch", children: [
|
|
13577
13571
|
/* @__PURE__ */ r.jsx(He, { label: "Input Channel", grow: !0, children: /* @__PURE__ */ r.jsx(
|
|
13578
13572
|
en,
|
|
13579
13573
|
{
|
|
@@ -13868,42 +13862,42 @@ const Cj = ["Backspace", "Delete"], Sj = ({
|
|
|
13868
13862
|
/* @__PURE__ */ r.jsx(Yt, { path: "" })
|
|
13869
13863
|
] }), Jj = () => /* @__PURE__ */ r.jsx(nh, { includeBorderRadius: !0, includeStrokeWidth: !0 }), eb = () => /* @__PURE__ */ r.jsx(Me, { hideInnerOrientation: !0 }), T = (e) => /* @__PURE__ */ r.jsx("path", { vectorEffect: "non-scaling-stroke", ...e }), Se = (e) => /* @__PURE__ */ r.jsx("rect", { vectorEffect: "non-scaling-stroke", ...e }), ze = (e) => /* @__PURE__ */ r.jsx("circle", { vectorEffect: "non-scaling-stroke", ...e }), je = (e) => /* @__PURE__ */ r.jsx("line", { vectorEffect: "non-scaling-stroke", ...e }), tb = {
|
|
13870
13864
|
left: {
|
|
13871
|
-
left:
|
|
13872
|
-
right:
|
|
13873
|
-
top:
|
|
13874
|
-
bottom:
|
|
13865
|
+
left: q.Left,
|
|
13866
|
+
right: q.Right,
|
|
13867
|
+
top: q.Top,
|
|
13868
|
+
bottom: q.Bottom
|
|
13875
13869
|
},
|
|
13876
13870
|
right: {
|
|
13877
|
-
left:
|
|
13878
|
-
right:
|
|
13879
|
-
top:
|
|
13880
|
-
bottom:
|
|
13871
|
+
left: q.Right,
|
|
13872
|
+
right: q.Left,
|
|
13873
|
+
top: q.Bottom,
|
|
13874
|
+
bottom: q.Top
|
|
13881
13875
|
},
|
|
13882
13876
|
top: {
|
|
13883
|
-
left:
|
|
13884
|
-
right:
|
|
13885
|
-
top:
|
|
13886
|
-
bottom:
|
|
13877
|
+
left: q.Bottom,
|
|
13878
|
+
right: q.Top,
|
|
13879
|
+
top: q.Left,
|
|
13880
|
+
bottom: q.Right
|
|
13887
13881
|
},
|
|
13888
13882
|
bottom: {
|
|
13889
|
-
left:
|
|
13890
|
-
right:
|
|
13891
|
-
top:
|
|
13892
|
-
bottom:
|
|
13883
|
+
left: q.Top,
|
|
13884
|
+
right: q.Bottom,
|
|
13885
|
+
top: q.Right,
|
|
13886
|
+
bottom: q.Left
|
|
13893
13887
|
}
|
|
13894
13888
|
}, nb = (e, t) => tb[t][e], ob = (e, t = !1) => {
|
|
13895
13889
|
if (t) return e;
|
|
13896
13890
|
switch (e) {
|
|
13897
|
-
case
|
|
13898
|
-
return
|
|
13899
|
-
case
|
|
13900
|
-
return
|
|
13901
|
-
case
|
|
13902
|
-
return
|
|
13903
|
-
case
|
|
13904
|
-
return
|
|
13891
|
+
case q.Left:
|
|
13892
|
+
return q.Right;
|
|
13893
|
+
case q.Right:
|
|
13894
|
+
return q.Left;
|
|
13895
|
+
case q.Top:
|
|
13896
|
+
return q.Bottom;
|
|
13897
|
+
case q.Bottom:
|
|
13898
|
+
return q.Top;
|
|
13905
13899
|
default:
|
|
13906
|
-
return
|
|
13900
|
+
return q.Top;
|
|
13907
13901
|
}
|
|
13908
13902
|
}, rb = (e, t, n, o = !1) => o ? { left: t, top: e } : n === "left" ? { top: e, left: t } : n === "right" ? { top: 100 - e, left: 100 - t } : n === "top" ? { top: 100 - t, left: e } : { top: t, left: 100 - e }, G = ({
|
|
13909
13903
|
children: e,
|
|
@@ -13917,7 +13911,7 @@ const Cj = ["Backspace", "Delete"], Sj = ({
|
|
|
13917
13911
|
return null;
|
|
13918
13912
|
}
|
|
13919
13913
|
const s = te(null), l = te(!0);
|
|
13920
|
-
return
|
|
13914
|
+
return K(() => {
|
|
13921
13915
|
if (s.current == null) return;
|
|
13922
13916
|
if (l.current) {
|
|
13923
13917
|
l.current = !1;
|
|
@@ -18363,7 +18357,7 @@ const Cj = ["Backspace", "Delete"], Sj = ({
|
|
|
18363
18357
|
schema: Vm,
|
|
18364
18358
|
initialState: s.current
|
|
18365
18359
|
});
|
|
18366
|
-
|
|
18360
|
+
K(() => {
|
|
18367
18361
|
s.current = { ...s.current, ...o }, l(s.current);
|
|
18368
18362
|
}, [o, l, e]);
|
|
18369
18363
|
const i = F(() => {
|
|
@@ -18382,7 +18376,7 @@ const Cj = ["Backspace", "Delete"], Sj = ({
|
|
|
18382
18376
|
...n
|
|
18383
18377
|
}
|
|
18384
18378
|
});
|
|
18385
|
-
return
|
|
18379
|
+
return K(
|
|
18386
18380
|
() => s((l) => ({ ...l, ...n })),
|
|
18387
18381
|
[n, s]
|
|
18388
18382
|
), { enabled: o };
|
|
@@ -18397,7 +18391,7 @@ const Cj = ["Backspace", "Delete"], Sj = ({
|
|
|
18397
18391
|
...o
|
|
18398
18392
|
}
|
|
18399
18393
|
});
|
|
18400
|
-
return
|
|
18394
|
+
return K(() => {
|
|
18401
18395
|
l((c) => ({ ...c, ...o }));
|
|
18402
18396
|
}, [o, l]), { set: F(
|
|
18403
18397
|
(c) => l((a) => ({
|
|
@@ -18418,7 +18412,7 @@ const Cj = ["Backspace", "Delete"], Sj = ({
|
|
|
18418
18412
|
...o
|
|
18419
18413
|
}
|
|
18420
18414
|
});
|
|
18421
|
-
return
|
|
18415
|
+
return K(() => {
|
|
18422
18416
|
i((a) => ({ ...a, ...o }));
|
|
18423
18417
|
}, [o, i]), {
|
|
18424
18418
|
toggle: F(
|