react-big-screen 0.0.16 → 0.0.19
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/es/{IInputNumber-Vk6zq2bP.mjs → IInputNumber-8TbQFEeQ.mjs} +3 -3
- package/es/{Line-DVDoMjnT.mjs → Line-h-rhOKev.mjs} +37 -37
- package/es/{attributes-CaEhpijN.mjs → attributes-5RpQLPsm.mjs} +4 -4
- package/es/{attributes-GqB4d5iv.mjs → attributes-B8s8kYoD.mjs} +1 -1
- package/es/{attributes-DpCS0mF3.mjs → attributes-BDv3jJ5O.mjs} +1 -1
- package/es/{attributes-CiSpGTC2.mjs → attributes-BIXlzE3A.mjs} +1 -1
- package/es/{attributes-UoPVReqf.mjs → attributes-CauLjFb0.mjs} +1 -1
- package/es/{attributes-CTkK-zKe.mjs → attributes-CgnjWsLu.mjs} +1 -1
- package/es/{attributes-C6-L5-Tc.mjs → attributes-CqNLwRW3.mjs} +5 -5
- package/es/{attributes-yLDINEsg.mjs → attributes-CuUxWoIW.mjs} +1 -1
- package/es/{attributes-DkJdS65t.mjs → attributes-CxnJg-FT.mjs} +1 -1
- package/es/{attributes-DWlxiiYG.mjs → attributes-DBip_IK_.mjs} +54 -55
- package/es/{attributes-CLKtng9Z.mjs → attributes-DYnxULqW.mjs} +1 -1
- package/es/{attributes-HHhF4o7Y.mjs → attributes-NVduSBUS.mjs} +2 -2
- package/es/{index-Ccbgx0jH.mjs → index-56XQx0At.mjs} +2 -2
- package/es/{index-D5vYVcTR.mjs → index-8Jjn38kS.mjs} +20 -21
- package/es/{index-CAMpiOxt.mjs → index-BAzeX1Ol.mjs} +26 -27
- package/es/{index-CbTTJ-CP.mjs → index-BFdLFt4J.mjs} +2 -2
- package/es/{index-Dk9oedlP.mjs → index-BInCuYp5.mjs} +14 -15
- package/es/{index-CV3CbGOy.mjs → index-BVjByyUe.mjs} +2 -2
- package/es/{index-0K85o51g.mjs → index-Bdqrb_sj.mjs} +3 -3
- package/es/index-BhafNo6T.mjs +16092 -0
- package/es/{index-BldlzvuU.mjs → index-Bi3lZwlI.mjs} +50 -51
- package/es/{index-D0KDJrVL.mjs → index-C49BBpRX.mjs} +2 -2
- package/es/{index-BM4ILKEc.mjs → index-CBAcYtqX.mjs} +3 -3
- package/es/{index-CUNz1tFb.mjs → index-CFdcAnNu.mjs} +3 -3
- package/es/{index-DexsopTp.mjs → index-CgI9EXqn.mjs} +2 -2
- package/es/{index-DKoTC2Xk.mjs → index-CjeVSp69.mjs} +2 -2
- package/es/{index-BCZdjBJJ.mjs → index-Cm-Rzkqs.mjs} +42 -43
- package/es/{index-iFuEY-wV.mjs → index-D07zNDg9.mjs} +8 -8
- package/es/{index-CZvhSCSC.mjs → index-DCIgeYYw.mjs} +2 -2
- package/es/{index-Clk_czMj.mjs → index-Daza1EsK.mjs} +1 -1
- package/es/{index-qrNjlWih.mjs → index-Dkl0nzkU.mjs} +4 -4
- package/es/{index-sZk6Or23.mjs → index-Dvs_cgct.mjs} +6 -6
- package/es/{index-BNC3UbKF.mjs → index-DzRsgn_u.mjs} +15 -15
- package/es/{index-thG37Ydl.mjs → index-GdH3Zwz0.mjs} +2 -2
- package/es/{index-GcMZDFMx.mjs → index-SkjPQ6Pt.mjs} +2 -2
- package/es/index-dxiyF_62.mjs +29 -0
- package/es/{index-lLnHnoQq.mjs → index-i0K7Ynj-.mjs} +2 -2
- package/es/{index-C9hmLstz.mjs → index-nSniwbAA.mjs} +5 -6
- package/es/{index-C2dVSPVz.mjs → index-umVDADGS.mjs} +3 -3
- package/es/index.mjs +4 -4
- package/es/{selectPage-BYoFtkBW.mjs → selectPage-ChSsIBe9.mjs} +1 -1
- package/es/{useCurrentPageId-BKvMaKLl.mjs → useCurrentPageId-BlVc4whf.mjs} +1 -1
- package/package.json +1 -1
- package/es/index-ClIbiw0p.mjs +0 -4441
- package/es/index-Cq0uVP0H.mjs +0 -29
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
var R = Object.defineProperty;
|
|
2
2
|
var T = (e, n, t) => n in e ? R(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var b = (e, n, t) => T(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { b as O, u as k,
|
|
4
|
+
import { b as O, u as k, c as F, w as x, R as N } from "./index-BhafNo6T.mjs";
|
|
5
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
6
|
-
import
|
|
6
|
+
import z, { useEffect as y, useMemo as M, useRef as E, useState as D, useCallback as G } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
9
9
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
10
10
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
11
|
-
import { jsxs as
|
|
12
|
-
import
|
|
11
|
+
import { jsxs as U, jsx as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
12
|
+
import Z from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/umi-request@1.4.0/node_modules/umi-request/dist/index.esm.js";
|
|
13
13
|
import { u as j } from "./useListenRef-Dqm6KZRj.mjs";
|
|
14
|
-
import { message as Z } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
|
|
15
14
|
import { u as Q } from "./useEffectOnce-Ct0JMBZd.mjs";
|
|
16
|
-
import { u as V } from "./useCurrentPageId-
|
|
15
|
+
import { u as V } from "./useCurrentPageId-BlVc4whf.mjs";
|
|
17
16
|
import I from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/hotkeys-js@3.13.15/node_modules/hotkeys-js/dist/hotkeys.esm.js";
|
|
18
17
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
|
|
19
18
|
function X(e) {
|
|
20
19
|
return e.button == 0;
|
|
21
20
|
}
|
|
22
|
-
function
|
|
21
|
+
function De(e) {
|
|
23
22
|
return e.button == 2;
|
|
24
23
|
}
|
|
25
24
|
function W(e) {
|
|
@@ -28,7 +27,7 @@ function W(e) {
|
|
|
28
27
|
function B(e) {
|
|
29
28
|
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
30
29
|
}
|
|
31
|
-
function
|
|
30
|
+
function He(e) {
|
|
32
31
|
return typeof e == "object" && !Array.isArray(e) && !!e;
|
|
33
32
|
}
|
|
34
33
|
function q(e) {
|
|
@@ -55,13 +54,13 @@ function $(e, n) {
|
|
|
55
54
|
};
|
|
56
55
|
}, []);
|
|
57
56
|
}
|
|
58
|
-
function
|
|
57
|
+
function Xe() {
|
|
59
58
|
return O((e) => e.componentNodes);
|
|
60
59
|
}
|
|
61
60
|
function J(e) {
|
|
62
61
|
return O((n) => e ? e(n.config) : n.config);
|
|
63
62
|
}
|
|
64
|
-
function
|
|
63
|
+
function $e(e) {
|
|
65
64
|
const n = M(() => e, []), { engine: t } = k();
|
|
66
65
|
return y(() => (t.instance.add(n), () => {
|
|
67
66
|
t.instance.delete(n.id);
|
|
@@ -92,7 +91,7 @@ class K {
|
|
|
92
91
|
// 立刻请求一次
|
|
93
92
|
async request(n, t, s) {
|
|
94
93
|
const r = t || this.requestConfig;
|
|
95
|
-
return r != null && r.url ?
|
|
94
|
+
return r != null && r.url ? Z(`${(r == null ? void 0 : r.url) || ""}`, {
|
|
96
95
|
...s,
|
|
97
96
|
method: `${(r == null ? void 0 : r.method) || "get"}`,
|
|
98
97
|
params: n
|
|
@@ -109,8 +108,8 @@ class K {
|
|
|
109
108
|
};
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
function
|
|
113
|
-
const { dataSourceType: n = "static" } = e, t = j(n === "static"), s =
|
|
111
|
+
function Oe(e) {
|
|
112
|
+
const { dataSourceType: n = "static" } = e, t = j(n === "static"), s = E(), [r, a] = D(), f = G(() => {
|
|
114
113
|
var u;
|
|
115
114
|
return s.current || (s.current = new K(e.request), (u = s.current) == null || u.onChangeDataSource((h) => a(h))), s.current;
|
|
116
115
|
}, [e.dataSourceType]);
|
|
@@ -141,7 +140,7 @@ function je(e) {
|
|
|
141
140
|
requestInstance: d
|
|
142
141
|
};
|
|
143
142
|
}
|
|
144
|
-
function
|
|
143
|
+
function _(e, n) {
|
|
145
144
|
return `${e}-${n}`;
|
|
146
145
|
}
|
|
147
146
|
function A(e, n, t) {
|
|
@@ -179,7 +178,7 @@ function ne(e, n, t, s, r) {
|
|
|
179
178
|
target: t,
|
|
180
179
|
origin: s,
|
|
181
180
|
option: a
|
|
182
|
-
}), e.events.notify(
|
|
181
|
+
}), e.events.notify(_(t.id, n.exposeId), d);
|
|
183
182
|
}
|
|
184
183
|
function se(e, n) {
|
|
185
184
|
return function(t, s) {
|
|
@@ -188,7 +187,7 @@ function se(e, n) {
|
|
|
188
187
|
a && a.forEach((h) => {
|
|
189
188
|
const l = e.componentNode.get(h.id);
|
|
190
189
|
if (!l) {
|
|
191
|
-
|
|
190
|
+
F.error("[bigScreen]: target componentNode not exist.");
|
|
192
191
|
return;
|
|
193
192
|
}
|
|
194
193
|
h.opts.forEach((g) => {
|
|
@@ -210,7 +209,7 @@ function se(e, n) {
|
|
|
210
209
|
});
|
|
211
210
|
};
|
|
212
211
|
}
|
|
213
|
-
function
|
|
212
|
+
function je(e) {
|
|
214
213
|
const { engine: n } = k();
|
|
215
214
|
return M(() => se(n, e), []);
|
|
216
215
|
}
|
|
@@ -218,26 +217,26 @@ function re(e, n) {
|
|
|
218
217
|
return function(t) {
|
|
219
218
|
y(() => {
|
|
220
219
|
for (const s in t)
|
|
221
|
-
e.events.on(
|
|
220
|
+
e.events.on(_(n, s), t[s]);
|
|
222
221
|
return () => {
|
|
223
222
|
for (const s in t)
|
|
224
|
-
e.events.remove(
|
|
223
|
+
e.events.remove(_(n, s), t[s]);
|
|
225
224
|
};
|
|
226
225
|
}, []);
|
|
227
226
|
};
|
|
228
227
|
}
|
|
229
|
-
function
|
|
228
|
+
function qe(e) {
|
|
230
229
|
const { engine: n } = k();
|
|
231
230
|
return M(() => re(n, e), []);
|
|
232
231
|
}
|
|
233
|
-
function
|
|
234
|
-
const [e, n] =
|
|
232
|
+
function Ae() {
|
|
233
|
+
const [e, n] = D([]), { engine: t } = k();
|
|
235
234
|
return Q(() => (n(t.component.getAllPackage()), t.component.onPackageChange((s) => {
|
|
236
235
|
n(s);
|
|
237
236
|
}))), e;
|
|
238
237
|
}
|
|
239
238
|
function ae() {
|
|
240
|
-
const { engine: e } = k(), n = V(), [t, s] =
|
|
239
|
+
const { engine: e } = k(), n = V(), [t, s] = D(r);
|
|
241
240
|
function r() {
|
|
242
241
|
return e.page.get(e.config.getCurrentPage());
|
|
243
242
|
}
|
|
@@ -249,7 +248,7 @@ function ae() {
|
|
|
249
248
|
}, [n]), t;
|
|
250
249
|
}
|
|
251
250
|
function ie() {
|
|
252
|
-
const e =
|
|
251
|
+
const e = N.getActiveEngine();
|
|
253
252
|
if (!e) return;
|
|
254
253
|
const n = e.config.getConfig();
|
|
255
254
|
e.config.setConfig({
|
|
@@ -275,7 +274,7 @@ class ue {
|
|
|
275
274
|
this.isSet && (this.isSet = !1, document.documentElement.classList.remove(P), this.style && ((t = (n = this.style) == null ? void 0 : n.remove) == null || t.call(n), this.style = void 0));
|
|
276
275
|
}
|
|
277
276
|
}
|
|
278
|
-
const
|
|
277
|
+
const w = new ue();
|
|
279
278
|
function oe(e, n, t) {
|
|
280
279
|
return e < n ? n : e > t ? t : e;
|
|
281
280
|
}
|
|
@@ -351,7 +350,7 @@ function Y(e) {
|
|
|
351
350
|
return typeof e == "number";
|
|
352
351
|
}
|
|
353
352
|
function ge(e) {
|
|
354
|
-
const { engine: n } = k(), { defaultScale: t = 1, scaleStep: s = 0.05, scaleMax: r = 2, scaleMin: a = 0.1 } = e, f =
|
|
353
|
+
const { engine: n } = k(), { defaultScale: t = 1, scaleStep: s = 0.05, scaleMax: r = 2, scaleMin: a = 0.1 } = e, f = E(null), d = E(null), u = E(null), h = j(e), l = E({
|
|
355
354
|
scale: t,
|
|
356
355
|
x: 0,
|
|
357
356
|
y: 0
|
|
@@ -380,16 +379,16 @@ function ge(e) {
|
|
|
380
379
|
// 重置
|
|
381
380
|
mousedown(i) {
|
|
382
381
|
var c, o;
|
|
383
|
-
W(i) && ((o = (c = h.current) == null ? void 0 : c.onReset) == null || o.call(c)), X(i) && I.isPressed("space") &&
|
|
382
|
+
W(i) && ((o = (c = h.current) == null ? void 0 : c.onReset) == null || o.call(c)), X(i) && I.isPressed("space") && w.set("grabbing");
|
|
384
383
|
},
|
|
385
384
|
// 鼠标松开
|
|
386
385
|
mouseup(i) {
|
|
387
386
|
if (X(i)) {
|
|
388
387
|
if (I.isPressed("space")) {
|
|
389
|
-
|
|
388
|
+
w.set("grab");
|
|
390
389
|
return;
|
|
391
390
|
}
|
|
392
|
-
|
|
391
|
+
w.revoke();
|
|
393
392
|
}
|
|
394
393
|
},
|
|
395
394
|
wheel(i) {
|
|
@@ -421,10 +420,10 @@ function ge(e) {
|
|
|
421
420
|
let i = !1;
|
|
422
421
|
o();
|
|
423
422
|
function c() {
|
|
424
|
-
i = !0, u.current.style.removeProperty("pointer-events"), u.current.style.zIndex = `${n.componentNode.getMaxLevel()}`,
|
|
423
|
+
i = !0, u.current.style.removeProperty("pointer-events"), u.current.style.zIndex = `${n.componentNode.getMaxLevel()}`, w.set("grab");
|
|
425
424
|
}
|
|
426
425
|
function o() {
|
|
427
|
-
i = !1, u.current.style.pointerEvents = "none",
|
|
426
|
+
i = !1, u.current.style.pointerEvents = "none", w.revoke();
|
|
428
427
|
}
|
|
429
428
|
I("space", { keyup: !0 }, (H) => {
|
|
430
429
|
H.type === "keydown" && !i && c(), H.type === "keyup" && o();
|
|
@@ -436,12 +435,12 @@ function ge(e) {
|
|
|
436
435
|
l.current.x = e.offsetX,
|
|
437
436
|
l.current.y = e.offsetY
|
|
438
437
|
);
|
|
439
|
-
}, [e.offsetX, e.offsetY]), /* @__PURE__ */
|
|
438
|
+
}, [e.offsetX, e.offsetY]), /* @__PURE__ */ U("div", { className: L.infiniteCanvas, ref: f, style: e == null ? void 0 : e.style, children: [
|
|
440
439
|
/* @__PURE__ */ S("div", { className: L.infiniteCanvas_inner, ref: d, children: e == null ? void 0 : e.children }),
|
|
441
440
|
/* @__PURE__ */ S("div", { className: L.infiniteCanvas_mask, ref: u })
|
|
442
441
|
] });
|
|
443
442
|
}
|
|
444
|
-
const
|
|
443
|
+
const Re = z.forwardRef((e, n) => {
|
|
445
444
|
const { options: t } = ae() || {}, { engine: s } = k(), r = J(), a = /* @__PURE__ */ S(
|
|
446
445
|
"div",
|
|
447
446
|
{
|
|
@@ -483,18 +482,18 @@ const Te = N.forwardRef((e, n) => {
|
|
|
483
482
|
);
|
|
484
483
|
});
|
|
485
484
|
export {
|
|
486
|
-
|
|
485
|
+
Re as P,
|
|
487
486
|
$ as a,
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
487
|
+
Xe as b,
|
|
488
|
+
Ae as c,
|
|
489
|
+
Oe as d,
|
|
490
|
+
je as e,
|
|
491
|
+
qe as f,
|
|
492
|
+
w as g,
|
|
493
|
+
$e as h,
|
|
495
494
|
X as i,
|
|
496
|
-
|
|
497
|
-
|
|
495
|
+
De as j,
|
|
496
|
+
He as k,
|
|
498
497
|
ae as l,
|
|
499
498
|
he as s,
|
|
500
499
|
J as u
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { R as h } from "./index-
|
|
3
|
-
import {
|
|
2
|
+
import { R as h } from "./index-Daza1EsK.mjs";
|
|
3
|
+
import { H as x } from "./index-BhafNo6T.mjs";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
5
5
|
import { useRef as g, useMemo as I } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
6
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -8,9 +8,9 @@ import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3
|
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
9
9
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
10
10
|
import { u as y } from "./useEffectOnce-Ct0JMBZd.mjs";
|
|
11
|
-
import { DEFAULT_OPTIONS as b } from "./attributes-
|
|
11
|
+
import { DEFAULT_OPTIONS as b } from "./attributes-CgnjWsLu.mjs";
|
|
12
12
|
const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz项目"], i = [1048, 735, 580, 484, 300], j = x((m) => {
|
|
13
|
-
const { width: u, height: d, options: t } = m,
|
|
13
|
+
const { width: u, height: d, options: t } = m, n = g(), f = I(() => {
|
|
14
14
|
const e = S.map((r, l) => ({
|
|
15
15
|
name: r,
|
|
16
16
|
value: i[l]
|
|
@@ -68,12 +68,12 @@ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz
|
|
|
68
68
|
return y(() => {
|
|
69
69
|
let e = null, a = 0;
|
|
70
70
|
function r() {
|
|
71
|
-
var s,
|
|
72
|
-
e !== null && ((s =
|
|
71
|
+
var s, o, c;
|
|
72
|
+
e !== null && ((s = n.current) == null || s.dispatchAction({
|
|
73
73
|
type: "downplay",
|
|
74
74
|
seriesIndex: 0,
|
|
75
75
|
dataIndex: e
|
|
76
|
-
})), (c = (
|
|
76
|
+
})), (c = (o = n.current) == null ? void 0 : o.dispatchAction) == null || c.call(o, {
|
|
77
77
|
type: "highlight",
|
|
78
78
|
seriesIndex: 0,
|
|
79
79
|
dataIndex: e = a
|
|
@@ -87,7 +87,7 @@ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz
|
|
|
87
87
|
}), /* @__PURE__ */ p(
|
|
88
88
|
h,
|
|
89
89
|
{
|
|
90
|
-
onGetInstance: (e) =>
|
|
90
|
+
onGetInstance: (e) => n.current = e,
|
|
91
91
|
options: f,
|
|
92
92
|
style: {
|
|
93
93
|
width: u,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { R as e } from "./index-
|
|
3
|
-
import {
|
|
2
|
+
import { R as e } from "./index-Daza1EsK.mjs";
|
|
3
|
+
import { H as a } from "./index-BhafNo6T.mjs";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
5
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
6
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -6,7 +6,7 @@ import { TitleComponent as O, TooltipComponent as j, ToolboxComponent as w, Visu
|
|
|
6
6
|
import { LabelLayout as F, UniversalTransition as P } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/features.js";
|
|
7
7
|
import { CanvasRenderer as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/renderers.js";
|
|
8
8
|
import { useUpdateEffect as V } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/ahooks@3.9.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/ahooks/es/index.js";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-BhafNo6T.mjs";
|
|
10
10
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
11
11
|
import { u as q } from "./useResizeDom-BUgMcz6M.mjs";
|
|
12
12
|
f.use([
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as a, jsx as l } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { H as t } from "./index-BhafNo6T.mjs";
|
|
3
3
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
5
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
6
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
9
|
-
import { DEFAULT_OPTIONS as d } from "./attributes-
|
|
10
|
-
const
|
|
9
|
+
import { DEFAULT_OPTIONS as d } from "./attributes-CuUxWoIW.mjs";
|
|
10
|
+
const H = t((r) => {
|
|
11
11
|
const { options: e, width: _, height: g } = r;
|
|
12
12
|
return /* @__PURE__ */ a(
|
|
13
13
|
"div",
|
|
@@ -58,5 +58,5 @@ const k = t((r) => {
|
|
|
58
58
|
);
|
|
59
59
|
}, d);
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
H as default
|
|
62
62
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { n } from "./index-
|
|
1
|
+
import { jsx as r, Fragment as g } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { H as n } from "./index-BhafNo6T.mjs";
|
|
3
3
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
4
4
|
import m from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
5
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
6
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
9
|
-
import { DEFAULT_OPTIONS as c } from "./attributes-
|
|
9
|
+
import { DEFAULT_OPTIONS as c } from "./attributes-NVduSBUS.mjs";
|
|
10
10
|
const b = /* @__PURE__ */ Object.assign({ "./assets/base-1.png": () => import("./base-1-Bxyjxg2p.mjs"), "./assets/base-2.png": () => import("./base-2-DwwJwZna.mjs"), "./assets/base-3.png": () => import("./base-3-Cgpni-Ls.mjs"), "./assets/base-4.png": () => import("./base-4-B347HMAK.mjs"), "./assets/bg-theme-1.jpeg": () => import("./bg-theme-1-C6_IGFfb.mjs"), "./assets/bg-theme-2.jpg": () => import("./bg-theme-2-CUzHZf9k.mjs"), "./assets/bg-theme-3.jpg": () => import("./bg-theme-3-D8JmxCmu.mjs"), "./assets/bg-theme-4.jpg": () => import("./bg-theme-4-DSDHPL-t.mjs"), "./assets/bg-theme-5.jpg": () => import("./bg-theme-5-CSy6VFVO.mjs"), "./assets/bg-theme-6.jpg": () => import("./bg-theme-6-rNDMxpbu.mjs"), "./assets/bg-theme-7.jpg": () => import("./bg-theme-7-X9aTr92s.mjs"), "./assets/clock.png": () => import("./clock-DnKpmpR_.mjs"), "./assets/com-bg-1.png": () => import("./com-bg-1-CziqISRC.mjs"), "./assets/com-bg-2.png": () => import("./com-bg-2-CJpBMT0l.mjs"), "./assets/com-bg-3.png": () => import("./com-bg-3--MVO0Zy-.mjs"), "./assets/com-bg-4.png": () => import("./com-bg-4-CtztvOjH.mjs"), "./assets/com-bg-5.png": () => import("./com-bg-5-Dn0jCJgl.mjs"), "./assets/com-bg-6.png": () => import("./com-bg-6-DerMFR5l.mjs"), "./assets/title-1.png": () => import("./title-1-d6ywbVeM.mjs"), "./assets/title-2.png": () => import("./title-2-D71Ygwgt.mjs"), "./assets/title-3.png": () => import("./title-3-X8ry0PXo.mjs"), "./assets/title-4.png": () => import("./title-4-HL43GPvP.mjs") });
|
|
11
11
|
async function h(e) {
|
|
12
12
|
if (e)
|
|
@@ -15,10 +15,10 @@ async function h(e) {
|
|
|
15
15
|
const O = n((e) => {
|
|
16
16
|
const { width: s, height: i, options: t } = e, [p, o] = m.useState();
|
|
17
17
|
return m.useEffect(() => {
|
|
18
|
-
h(t == null ? void 0 : t.id).then((
|
|
19
|
-
o(
|
|
18
|
+
h(t == null ? void 0 : t.id).then((a) => {
|
|
19
|
+
o(a);
|
|
20
20
|
});
|
|
21
|
-
}, [t == null ? void 0 : t.id]), p ? /* @__PURE__ */ r("img", { style: { width: s, height: i, pointerEvents: "none" }, alt: "预制图片", src: p }) : /* @__PURE__ */ r(
|
|
21
|
+
}, [t == null ? void 0 : t.id]), p ? /* @__PURE__ */ r("img", { style: { width: s, height: i, pointerEvents: "none" }, alt: "预制图片", src: p }) : /* @__PURE__ */ r(g, {});
|
|
22
22
|
}, c);
|
|
23
23
|
export {
|
|
24
24
|
O as default
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as d, Fragment as f } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
2
|
import g, { useState as w, useMemo as m, useEffect as y, useRef as l, Suspense as C } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
3
|
-
import { u as R } from "./index-
|
|
3
|
+
import { u as R } from "./index-BhafNo6T.mjs";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
5
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
6
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
9
|
-
import { d as S, e as v, f as x, h as N, u as
|
|
9
|
+
import { d as S, e as v, f as x, h as N, u as _, l as H, c as q, b as B, P } from "./index-Cm-Rzkqs.mjs";
|
|
10
10
|
import $ from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
11
11
|
import { u as b } from "./useResizeDom-BUgMcz6M.mjs";
|
|
12
12
|
function k(e) {
|
|
13
13
|
const [n, t] = w(e == null ? void 0 : e.componentNode), r = (n == null ? void 0 : n.show) ?? !0, { engine: c } = R(), s = m(() => c.component.get(n.cId), [n == null ? void 0 : n.cId, e == null ? void 0 : e.packages]);
|
|
14
14
|
return y(() => c.componentNode.onChange(n.id, ({ payload: i }) => {
|
|
15
15
|
t({ ...i });
|
|
16
|
-
}), []), s && r ? /* @__PURE__ */
|
|
16
|
+
}), []), s && r ? /* @__PURE__ */ d(E, { componentNode: n, component: s }) : /* @__PURE__ */ d(f, {});
|
|
17
17
|
}
|
|
18
18
|
function E(e) {
|
|
19
19
|
const { component: n, componentNode: t } = e, r = l(), c = l(null), { dataSource: s, requestInstance: i } = S(t), u = v(t.id), a = x(t.id);
|
|
@@ -48,8 +48,8 @@ function E(e) {
|
|
|
48
48
|
i.reload();
|
|
49
49
|
},
|
|
50
50
|
// 立刻请求一次
|
|
51
|
-
request: (
|
|
52
|
-
}), /* @__PURE__ */
|
|
51
|
+
request: (o, h) => i.request(o, h)
|
|
52
|
+
}), /* @__PURE__ */ d(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
ref: c,
|
|
@@ -61,7 +61,7 @@ function E(e) {
|
|
|
61
61
|
height: t.height,
|
|
62
62
|
zIndex: t.level
|
|
63
63
|
},
|
|
64
|
-
children: /* @__PURE__ */
|
|
64
|
+
children: /* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(
|
|
65
65
|
n.component,
|
|
66
66
|
{
|
|
67
67
|
handleTrigger: u,
|
|
@@ -86,14 +86,14 @@ function z(e) {
|
|
|
86
86
|
return;
|
|
87
87
|
const i = r.current.getBoundingClientRect();
|
|
88
88
|
if (i.width / i.height > s) {
|
|
89
|
-
const a = i.height / t,
|
|
89
|
+
const a = i.height / t, o = a * n, h = (i.width - o) / 2;
|
|
90
90
|
c.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
|
|
91
91
|
} else {
|
|
92
92
|
const a = i.width / n;
|
|
93
93
|
c.current.style.transform = `scale(${a})`;
|
|
94
94
|
}
|
|
95
95
|
c.current.style.width = `${n}px`, c.current.style.height = `${t}px`;
|
|
96
|
-
}), /* @__PURE__ */
|
|
96
|
+
}), /* @__PURE__ */ d("div", { className: e == null ? void 0 : e.className, ref: r, style: e == null ? void 0 : e.style, children: /* @__PURE__ */ d(
|
|
97
97
|
"div",
|
|
98
98
|
{
|
|
99
99
|
className: $(e == null ? void 0 : e.bodyClassName, D.fitScreenBody),
|
|
@@ -107,15 +107,15 @@ const U = "_preview_x6h89_59", j = {
|
|
|
107
107
|
preview: U
|
|
108
108
|
};
|
|
109
109
|
function V(e) {
|
|
110
|
-
const { engine: n, json: t } = e, r =
|
|
110
|
+
const { engine: n, json: t } = e, r = _(), { options: c } = H() || {}, s = q(), i = B(), u = m(() => {
|
|
111
111
|
var a;
|
|
112
|
-
return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (
|
|
112
|
+
return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (o) => /* @__PURE__ */ d(
|
|
113
113
|
k,
|
|
114
114
|
{
|
|
115
|
-
componentNode:
|
|
115
|
+
componentNode: o,
|
|
116
116
|
packages: s
|
|
117
117
|
},
|
|
118
|
-
|
|
118
|
+
o == null ? void 0 : o.id
|
|
119
119
|
)) : [];
|
|
120
120
|
}, [i, s]);
|
|
121
121
|
return g.useEffect(() => {
|
|
@@ -123,14 +123,14 @@ function V(e) {
|
|
|
123
123
|
var a;
|
|
124
124
|
(a = e == null ? void 0 : e.onJSONLoad) == null || a.call(e);
|
|
125
125
|
});
|
|
126
|
-
}, []), /* @__PURE__ */
|
|
126
|
+
}, []), /* @__PURE__ */ d(
|
|
127
127
|
z,
|
|
128
128
|
{
|
|
129
129
|
className: j.preview,
|
|
130
130
|
dw: (r == null ? void 0 : r.width) || 1920,
|
|
131
131
|
dh: (r == null ? void 0 : r.height) || 1080,
|
|
132
132
|
style: { background: c == null ? void 0 : c.whiteBoardColor },
|
|
133
|
-
children: /* @__PURE__ */
|
|
133
|
+
children: /* @__PURE__ */ d(P, { preview: !0, style: { width: "100%", height: "100%" }, children: u })
|
|
134
134
|
}
|
|
135
135
|
);
|
|
136
136
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { H as b } from "./index-BhafNo6T.mjs";
|
|
3
3
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
4
4
|
import { useState as u, useMemo as x } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
5
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -8,7 +8,7 @@ import { r as f, g as y } from "./random-DD0zMfMm.mjs";
|
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
9
9
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
10
10
|
import { u as d } from "./useEffectOnce-Ct0JMBZd.mjs";
|
|
11
|
-
import { R as h } from "./index-
|
|
11
|
+
import { R as h } from "./index-Daza1EsK.mjs";
|
|
12
12
|
const g = ["06-01", "06-02", "06-03", "06-04", "06-05", "06-06", "06-07"], r = 250, a = [210, 200, 195, 200, 202, 195, 180], N = b((i) => {
|
|
13
13
|
const { width: n, height: s } = i, [e, l] = u(a), m = x(() => {
|
|
14
14
|
const o = e.map((t) => t * 100 / r);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as l } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { H as a } from "./index-BhafNo6T.mjs";
|
|
3
3
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
5
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -7,7 +7,7 @@ import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3
|
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
9
9
|
import { DoubleRightOutlined as r, DoubleLeftOutlined as s } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/@ant-design+icons@5.6.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/icons/es/index.js";
|
|
10
|
-
import { DEFAULT_OPTIONS as T } from "./attributes-
|
|
10
|
+
import { DEFAULT_OPTIONS as T } from "./attributes-CxnJg-FT.mjs";
|
|
11
11
|
const p = "_specialTitle_7705n_59", m = "_specialTitle_line_left_7705n_64", o = "_specialTitle_inner_7705n_69", h = "_specialTitle_inner_icon_7705n_74", d = "_specialTitle_line_right_7705n_78", i = {
|
|
12
12
|
specialTitle: p,
|
|
13
13
|
specialTitle_line_left: m,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as n } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import m from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
3
|
+
import { A as i } from "./index-BhafNo6T.mjs";
|
|
4
|
+
function l(y, s) {
|
|
5
|
+
return !// 左侧
|
|
6
|
+
(y.x2 < s.x1 || // 右侧
|
|
7
|
+
y.x1 > s.x2 || // 上方
|
|
8
|
+
y.y2 < s.y1 || // 下方
|
|
9
|
+
y.y1 > s.y2);
|
|
10
|
+
}
|
|
11
|
+
function I(y, s) {
|
|
12
|
+
return y.x >= s.x1 && y.x <= s.x2 && y.y >= s.y1 && y.y <= s.y2;
|
|
13
|
+
}
|
|
14
|
+
function o(y, s) {
|
|
15
|
+
return y.x1 >= s.x1 && y.y1 >= s.y1 && y.x2 <= s.x2 && y.y2 <= s.y2;
|
|
16
|
+
}
|
|
17
|
+
const x = "_iEmpty_177ye_59", E = {
|
|
18
|
+
iEmpty: x
|
|
19
|
+
};
|
|
20
|
+
function t(y) {
|
|
21
|
+
const { description: s = "暂无数据" } = y;
|
|
22
|
+
return /* @__PURE__ */ n("div", { className: m(y.className, E.iEmpty), style: y == null ? void 0 : y.style, children: /* @__PURE__ */ n(i, { image: i.PRESENTED_IMAGE_SIMPLE, description: s }) });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
t as I,
|
|
26
|
+
I as a,
|
|
27
|
+
o as b,
|
|
28
|
+
l as i
|
|
29
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { R as r } from "./index-
|
|
3
|
-
import {
|
|
2
|
+
import { R as r } from "./index-Daza1EsK.mjs";
|
|
3
|
+
import { H as a } from "./index-BhafNo6T.mjs";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
5
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
6
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsx as o } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as p } from "./index-ClIbiw0p.mjs";
|
|
2
|
+
import { H as i, K as p } from "./index-BhafNo6T.mjs";
|
|
4
3
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
5
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
6
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
7
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
8
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
9
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
10
|
-
import { DEFAULT_OPTIONS as n } from "./attributes-
|
|
11
|
-
const
|
|
9
|
+
import { DEFAULT_OPTIONS as n } from "./attributes-DYnxULqW.mjs";
|
|
10
|
+
const x = i((e) => {
|
|
12
11
|
const { options: r, width: t, height: m } = e;
|
|
13
12
|
return /* @__PURE__ */ o(
|
|
14
|
-
|
|
13
|
+
p,
|
|
15
14
|
{
|
|
16
15
|
src: r == null ? void 0 : r.src,
|
|
17
16
|
style: { width: t, height: m, pointerEvents: "none" },
|
|
@@ -20,5 +19,5 @@ const g = p((e) => {
|
|
|
20
19
|
);
|
|
21
20
|
}, n);
|
|
22
21
|
export {
|
|
23
|
-
|
|
22
|
+
x as default
|
|
24
23
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as c } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { R as u } from "./index-
|
|
3
|
-
import {
|
|
2
|
+
import { R as u } from "./index-Daza1EsK.mjs";
|
|
3
|
+
import { H as f } from "./index-BhafNo6T.mjs";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
5
5
|
import { useMemo as g } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
6
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
9
9
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
10
|
-
import { DEFAULT_OPTIONS as l } from "./attributes-
|
|
10
|
+
import { DEFAULT_OPTIONS as l } from "./attributes-DBip_IK_.mjs";
|
|
11
11
|
function p(m = "name", a, n) {
|
|
12
12
|
return !(a != null && a.length) || !(n != null && n.length) ? {
|
|
13
13
|
source: []
|
package/es/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { V as e, R as m, U as p, s as E } from "./index-BhafNo6T.mjs";
|
|
3
3
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
5
5
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
e as EXAMPLE,
|
|
8
|
+
m as RbsEngine,
|
|
9
|
+
p as defaultPackage,
|
|
10
10
|
E as startDriver
|
|
11
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as g, useEffect as r } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
2
|
-
import { u as i, R as a } from "./index-
|
|
2
|
+
import { u as i, R as a } from "./index-BhafNo6T.mjs";
|
|
3
3
|
function f() {
|
|
4
4
|
const [n, e] = g([]), { engine: t } = i();
|
|
5
5
|
return r(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as i,
|
|
1
|
+
import { b as i, N as m } from "./index-BhafNo6T.mjs";
|
|
2
2
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
|
|
3
3
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|