react-big-screen 0.0.17 → 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.
Files changed (53) hide show
  1. package/es/{IInputNumber-PnHJNf9H.mjs → IInputNumber-8TbQFEeQ.mjs} +3 -3
  2. package/es/{Line-CLgwvraj.mjs → Line-h-rhOKev.mjs} +37 -37
  3. package/es/{attributes-CCphg5Uz.mjs → attributes-5RpQLPsm.mjs} +7 -8
  4. package/es/{attributes-B2zdUkEM.mjs → attributes-B8s8kYoD.mjs} +5 -6
  5. package/es/{attributes-BoihG0Pf.mjs → attributes-BDv3jJ5O.mjs} +12 -13
  6. package/es/{attributes-DFoyvXIt.mjs → attributes-BIXlzE3A.mjs} +5 -6
  7. package/es/{attributes-DDwE7z2U.mjs → attributes-CauLjFb0.mjs} +5 -6
  8. package/es/{attributes-IldrBXRw.mjs → attributes-CgnjWsLu.mjs} +5 -6
  9. package/es/{attributes-GO1j5FqP.mjs → attributes-CqNLwRW3.mjs} +8 -9
  10. package/es/{attributes-Cp6DmzH2.mjs → attributes-CuUxWoIW.mjs} +5 -6
  11. package/es/{attributes-D0U-wvwb.mjs → attributes-CxnJg-FT.mjs} +8 -9
  12. package/es/{attributes-CGZYjvqh.mjs → attributes-DBip_IK_.mjs} +50 -51
  13. package/es/{attributes-DiQPq5cp.mjs → attributes-DYnxULqW.mjs} +5 -6
  14. package/es/{attributes-CReX9tBs.mjs → attributes-NVduSBUS.mjs} +6 -7
  15. package/es/{index-D44zLboN.mjs → index-56XQx0At.mjs} +6 -7
  16. package/es/{index-DcqPY0qy.mjs → index-8Jjn38kS.mjs} +18 -19
  17. package/es/{index-CSzeRH1c.mjs → index-BAzeX1Ol.mjs} +28 -29
  18. package/es/{index-BfVztt-6.mjs → index-BFdLFt4J.mjs} +6 -7
  19. package/es/{index-D1jy9Oi_.mjs → index-BInCuYp5.mjs} +16 -17
  20. package/es/{index-X3IxUabI.mjs → index-BVjByyUe.mjs} +6 -7
  21. package/es/{index-DJy3VCmO.mjs → index-Bdqrb_sj.mjs} +7 -8
  22. package/es/index-BhafNo6T.mjs +16092 -0
  23. package/es/{index-I1LC9rW6.mjs → index-Bi3lZwlI.mjs} +54 -55
  24. package/es/{index-94huGSfW.mjs → index-C49BBpRX.mjs} +7 -8
  25. package/es/{index-Id1jg1qj.mjs → index-CBAcYtqX.mjs} +7 -8
  26. package/es/{index-DbwrHA2p.mjs → index-CFdcAnNu.mjs} +11 -12
  27. package/es/{index-3yjjqo9a.mjs → index-CgI9EXqn.mjs} +13 -14
  28. package/es/{index-COdMO6-N.mjs → index-CjeVSp69.mjs} +7 -8
  29. package/es/{index-DdNS18i9.mjs → index-Cm-Rzkqs.mjs} +41 -42
  30. package/es/{index-jD_EEzQJ.mjs → index-D07zNDg9.mjs} +13 -14
  31. package/es/{index-D3O-30zC.mjs → index-DCIgeYYw.mjs} +6 -7
  32. package/es/{index-C2gXj9yh.mjs → index-Daza1EsK.mjs} +3 -3
  33. package/es/{index-CNgtHfNT.mjs → index-Dkl0nzkU.mjs} +10 -11
  34. package/es/{index-CEejLCq7.mjs → index-Dvs_cgct.mjs} +10 -11
  35. package/es/{index-BCzhbh3u.mjs → index-DzRsgn_u.mjs} +37 -38
  36. package/es/{index-BaY0buPw.mjs → index-GdH3Zwz0.mjs} +7 -8
  37. package/es/{index-VRwDBwp0.mjs → index-SkjPQ6Pt.mjs} +9 -10
  38. package/es/index-dxiyF_62.mjs +29 -0
  39. package/es/{index-3f6NpN6Q.mjs → index-i0K7Ynj-.mjs} +6 -7
  40. package/es/{index-guYPVm3G.mjs → index-kvRZQZJ-.mjs} +1 -1
  41. package/es/{index-BOLcaCeQ.mjs → index-nSniwbAA.mjs} +7 -8
  42. package/es/{index-7SrSU63A.mjs → index-umVDADGS.mjs} +22 -23
  43. package/es/index.mjs +7 -8
  44. package/es/{selectPage-DGZoj14b.mjs → selectPage-ChSsIBe9.mjs} +2 -2
  45. package/es/{useCurrentPageId-CuYS8NBR.mjs → useCurrentPageId-BlVc4whf.mjs} +5 -6
  46. package/es/useEffectOnce-Ct0JMBZd.mjs +7 -0
  47. package/es/useListenRef-Dqm6KZRj.mjs +8 -0
  48. package/es/{useResizeDom-B6mM4jrh.mjs → useResizeDom-BUgMcz6M.mjs} +2 -2
  49. package/package.json +1 -1
  50. package/es/index-BqPf_Hxm.mjs +0 -4441
  51. package/es/index-D1ux0Voe.mjs +0 -29
  52. package/es/useEffectOnce-l5sUTCBG.mjs +0 -7
  53. package/es/useListenRef-B01dENv0.mjs +0 -8
@@ -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, I as x, R as F } from "./index-BqPf_Hxm.mjs";
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 N, { useEffect as y, useMemo as M, useRef as w, useState as _, useCallback as z } from "react";
7
- import "react-dom";
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
+ 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
- import { message as G } from "antd";
10
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
11
10
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
12
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";
13
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";
14
- import { u as j } from "./useListenRef-B01dENv0.mjs";
15
- import { u as Q } from "./useEffectOnce-l5sUTCBG.mjs";
16
- import { u as V } from "./useCurrentPageId-CuYS8NBR.mjs";
13
+ import { u as j } from "./useListenRef-Dqm6KZRj.mjs";
14
+ import { u as Q } from "./useEffectOnce-Ct0JMBZd.mjs";
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 He(e) {
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 Xe(e) {
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 $e() {
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 Oe(e) {
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);
@@ -109,8 +108,8 @@ class K {
109
108
  };
110
109
  }
111
110
  }
112
- function je(e) {
113
- const { dataSourceType: n = "static" } = e, t = j(n === "static"), s = w(), [r, a] = _(), f = z(() => {
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 D(e, n) {
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(D(t.id, n.exposeId), d);
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
- G.error("[bigScreen]: target componentNode not exist.");
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 qe(e) {
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(D(n, s), t[s]);
220
+ e.events.on(_(n, s), t[s]);
222
221
  return () => {
223
222
  for (const s in t)
224
- e.events.remove(D(n, s), t[s]);
223
+ e.events.remove(_(n, s), t[s]);
225
224
  };
226
225
  }, []);
227
226
  };
228
227
  }
229
- function Ae(e) {
228
+ function qe(e) {
230
229
  const { engine: n } = k();
231
230
  return M(() => re(n, e), []);
232
231
  }
233
- function Re() {
234
- const [e, n] = _([]), { engine: t } = k();
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] = _(r);
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 = F.getActiveEngine();
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 E = new ue();
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 = w(null), d = w(null), u = w(null), h = j(e), l = w({
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") && E.set("grabbing");
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
- E.set("grab");
388
+ w.set("grab");
390
389
  return;
391
390
  }
392
- E.revoke();
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()}`, E.set("grab");
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", E.revoke();
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();
@@ -441,7 +440,7 @@ function ge(e) {
441
440
  /* @__PURE__ */ S("div", { className: L.infiniteCanvas_mask, ref: u })
442
441
  ] });
443
442
  }
444
- const Te = N.forwardRef((e, n) => {
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
- Te as P,
485
+ Re as P,
487
486
  $ as a,
488
- $e as b,
489
- Re as c,
490
- je as d,
491
- qe as e,
492
- Ae as f,
493
- E as g,
494
- Oe as h,
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
- He as j,
497
- Xe as k,
495
+ De as j,
496
+ He as k,
498
497
  ae as l,
499
498
  he as s,
500
499
  J as u
@@ -1,16 +1,15 @@
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-C2gXj9yh.mjs";
3
- import { n as x } from "./index-BqPf_Hxm.mjs";
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
- import { useRef as g, useMemo as I } from "react";
6
- import "react-dom";
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
+ 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
- import "antd";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
11
- import { u as y } from "./useEffectOnce-l5sUTCBG.mjs";
12
- import { DEFAULT_OPTIONS as b } from "./attributes-IldrBXRw.mjs";
13
- const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz项目"], i = [1048, 735, 580, 484, 300], W = x((m) => {
10
+ import { u as y } from "./useEffectOnce-Ct0JMBZd.mjs";
11
+ import { DEFAULT_OPTIONS as b } from "./attributes-CgnjWsLu.mjs";
12
+ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz项目"], i = [1048, 735, 580, 484, 300], j = x((m) => {
14
13
  const { width: u, height: d, options: t } = m, n = g(), f = I(() => {
15
14
  const e = S.map((r, l) => ({
16
15
  name: r,
@@ -67,18 +66,18 @@ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz
67
66
  };
68
67
  }, [t == null ? void 0 : t.titleColor, t == null ? void 0 : t.subtextColor]);
69
68
  return y(() => {
70
- let e = null, o = 0;
69
+ let e = null, a = 0;
71
70
  function r() {
72
- var s, a, c;
71
+ var s, o, c;
73
72
  e !== null && ((s = n.current) == null || s.dispatchAction({
74
73
  type: "downplay",
75
74
  seriesIndex: 0,
76
75
  dataIndex: e
77
- })), (c = (a = n.current) == null ? void 0 : a.dispatchAction) == null || c.call(a, {
76
+ })), (c = (o = n.current) == null ? void 0 : o.dispatchAction) == null || c.call(o, {
78
77
  type: "highlight",
79
78
  seriesIndex: 0,
80
- dataIndex: e = o
81
- }), o = ++o >= i.length ? 0 : o;
79
+ dataIndex: e = a
80
+ }), a = ++a >= i.length ? 0 : a;
82
81
  }
83
82
  r();
84
83
  let l = setInterval(r, 2e3);
@@ -98,5 +97,5 @@ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz
98
97
  );
99
98
  }, b);
100
99
  export {
101
- W as default
100
+ j as default
102
101
  };
@@ -1,14 +1,13 @@
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-C2gXj9yh.mjs";
3
- import { n as a } from "./index-BqPf_Hxm.mjs";
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
- import "react";
6
- import "react-dom";
5
+ import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
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
- import "antd";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
11
- const l = a((t) => {
10
+ const f = a((t) => {
12
11
  const { width: o, height: r } = t;
13
12
  return /* @__PURE__ */ i(
14
13
  e,
@@ -37,5 +36,5 @@ const l = a((t) => {
37
36
  );
38
37
  });
39
38
  export {
40
- l as default
39
+ f as default
41
40
  };
@@ -1,14 +1,14 @@
1
1
  import { jsx as R } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { useRef as m, useCallback as T, useEffect as E, useMemo as y } from "react";
2
+ import { useRef as m, useCallback as T, useEffect as E, useMemo as y } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
3
3
  import * as f from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/core.js";
4
4
  import { PieChart as L, BarChart as b, LineChart as k, LinesChart as v, RadarChart as g, GaugeChart as x, MapChart as G, EffectScatterChart as M } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/charts.js";
5
5
  import { TitleComponent as O, TooltipComponent as j, ToolboxComponent as w, VisualMapComponent as z, GridComponent as D, DatasetComponent as N, TransformComponent as U, LegendComponent as B } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/components.js";
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-BqPf_Hxm.mjs";
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
- import { u as q } from "./useResizeDom-B6mM4jrh.mjs";
11
+ import { u as q } from "./useResizeDom-BUgMcz6M.mjs";
12
12
  f.use([
13
13
  // 图表
14
14
  L,
@@ -1,16 +1,15 @@
1
- import { jsxs as t, jsx as r } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as a } from "./index-BqPf_Hxm.mjs";
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 { 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
- import "react";
5
- import "react-dom";
4
+ import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
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
- import "antd";
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 d } from "./attributes-Cp6DmzH2.mjs";
11
- const H = a((l) => {
12
- const { options: e, width: _, height: g } = l;
13
- return /* @__PURE__ */ t(
9
+ import { DEFAULT_OPTIONS as d } from "./attributes-CuUxWoIW.mjs";
10
+ const H = t((r) => {
11
+ const { options: e, width: _, height: g } = r;
12
+ return /* @__PURE__ */ a(
14
13
  "div",
15
14
  {
16
15
  style: {
@@ -18,7 +17,7 @@ const H = a((l) => {
18
17
  height: g
19
18
  },
20
19
  children: [
21
- (e == null ? void 0 : e.value_1) && /* @__PURE__ */ r(
20
+ (e == null ? void 0 : e.value_1) && /* @__PURE__ */ l(
22
21
  "div",
23
22
  {
24
23
  style: {
@@ -36,7 +35,7 @@ const H = a((l) => {
36
35
  }
37
36
  }
38
37
  ),
39
- (e == null ? void 0 : e.value_2) && /* @__PURE__ */ r(
38
+ (e == null ? void 0 : e.value_2) && /* @__PURE__ */ l(
40
39
  "div",
41
40
  {
42
41
  style: {
@@ -1,26 +1,25 @@
1
- import { jsx as r, Fragment as a } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n } from "./index-BqPf_Hxm.mjs";
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
- import m from "react";
5
- import "react-dom";
4
+ import m from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
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
- import "antd";
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 c } from "./attributes-CReX9tBs.mjs";
9
+ import { DEFAULT_OPTIONS as c } from "./attributes-NVduSBUS.mjs";
11
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") });
12
11
  async function h(e) {
13
12
  if (e)
14
13
  return b[`./assets/${e}`]().then((s) => (s == null ? void 0 : s.default) || void 0);
15
14
  }
16
- const S = n((e) => {
15
+ const O = n((e) => {
17
16
  const { width: s, height: i, options: t } = e, [p, o] = m.useState();
18
17
  return m.useEffect(() => {
19
- h(t == null ? void 0 : t.id).then((g) => {
20
- o(g);
18
+ h(t == null ? void 0 : t.id).then((a) => {
19
+ o(a);
21
20
  });
22
- }, [t == null ? void 0 : t.id]), p ? /* @__PURE__ */ r("img", { style: { width: s, height: i, pointerEvents: "none" }, alt: "预制图片", src: p }) : /* @__PURE__ */ r(a, {});
21
+ }, [t == null ? void 0 : t.id]), p ? /* @__PURE__ */ r("img", { style: { width: s, height: i, pointerEvents: "none" }, alt: "预制图片", src: p }) : /* @__PURE__ */ r(g, {});
23
22
  }, c);
24
23
  export {
25
- S as default
24
+ O as default
26
25
  };
@@ -1,23 +1,22 @@
1
- import { jsx as o, Fragment as f } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import g, { useState as w, useMemo as m, useEffect as y, useRef as l, Suspense as C } from "react";
3
- import { u as R } from "./index-BqPf_Hxm.mjs";
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
+ 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-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
- import "react-dom";
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
- import "antd";
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 { d as S, e as v, f as x, h as N, u as H, l as q, c as B, b as P, P as _ } from "./index-DdNS18i9.mjs";
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";
11
10
  import $ from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
12
- import { u as b } from "./useResizeDom-B6mM4jrh.mjs";
11
+ import { u as b } from "./useResizeDom-BUgMcz6M.mjs";
13
12
  function k(e) {
14
- const [n, t] = w(e == null ? void 0 : e.componentNode), c = (n == null ? void 0 : n.show) ?? !0, { engine: r } = R(), s = m(() => r.component.get(n.cId), [n == null ? void 0 : n.cId, e == null ? void 0 : e.packages]);
15
- return y(() => r.componentNode.onChange(n.id, ({ payload: i }) => {
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
+ return y(() => c.componentNode.onChange(n.id, ({ payload: i }) => {
16
15
  t({ ...i });
17
- }), []), s && c ? /* @__PURE__ */ o(E, { componentNode: n, component: s }) : /* @__PURE__ */ o(f, {});
16
+ }), []), s && r ? /* @__PURE__ */ d(E, { componentNode: n, component: s }) : /* @__PURE__ */ d(f, {});
18
17
  }
19
18
  function E(e) {
20
- const { component: n, componentNode: t } = e, c = l(), r = l(null), { dataSource: s, requestInstance: i } = S(t), u = v(t.id), a = x(t.id);
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);
21
20
  return N({
22
21
  id: t.id,
23
22
  // 经过实例
@@ -34,11 +33,11 @@ function E(e) {
34
33
  },
35
34
  // 获取容器dom
36
35
  getContainerDom() {
37
- return r.current;
36
+ return c.current;
38
37
  },
39
38
  // 获取对应的 componentNode
40
39
  getComponentNode() {
41
- return c.current;
40
+ return r.current;
42
41
  },
43
42
  // 获取实例的 component
44
43
  getComponent() {
@@ -49,11 +48,11 @@ function E(e) {
49
48
  i.reload();
50
49
  },
51
50
  // 立刻请求一次
52
- request: (d, h) => i.request(d, h)
53
- }), /* @__PURE__ */ o(
51
+ request: (o, h) => i.request(o, h)
52
+ }), /* @__PURE__ */ d(
54
53
  "div",
55
54
  {
56
- ref: r,
55
+ ref: c,
57
56
  style: {
58
57
  position: "absolute",
59
58
  left: t.x,
@@ -62,7 +61,7 @@ function E(e) {
62
61
  height: t.height,
63
62
  zIndex: t.level
64
63
  },
65
- children: /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o(
64
+ children: /* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(
66
65
  n.component,
67
66
  {
68
67
  handleTrigger: u,
@@ -81,25 +80,25 @@ const I = "_fitScreenBody_1qzud_59", D = {
81
80
  fitScreenBody: I
82
81
  };
83
82
  function z(e) {
84
- const { dw: n = 1920, dh: t = 1080 } = e, c = l(null), r = l(null), s = m(() => n / t, [n, t]);
85
- return b(c, () => {
86
- if (!c.current || !r.current)
83
+ const { dw: n = 1920, dh: t = 1080 } = e, r = l(null), c = l(null), s = m(() => n / t, [n, t]);
84
+ return b(r, () => {
85
+ if (!r.current || !c.current)
87
86
  return;
88
- const i = c.current.getBoundingClientRect();
87
+ const i = r.current.getBoundingClientRect();
89
88
  if (i.width / i.height > s) {
90
- const a = i.height / t, d = a * n, h = (i.width - d) / 2;
91
- r.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
89
+ const a = i.height / t, o = a * n, h = (i.width - o) / 2;
90
+ c.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
92
91
  } else {
93
92
  const a = i.width / n;
94
- r.current.style.transform = `scale(${a})`;
93
+ c.current.style.transform = `scale(${a})`;
95
94
  }
96
- r.current.style.width = `${n}px`, r.current.style.height = `${t}px`;
97
- }), /* @__PURE__ */ o("div", { className: e == null ? void 0 : e.className, ref: c, style: e == null ? void 0 : e.style, children: /* @__PURE__ */ o(
95
+ c.current.style.width = `${n}px`, c.current.style.height = `${t}px`;
96
+ }), /* @__PURE__ */ d("div", { className: e == null ? void 0 : e.className, ref: r, style: e == null ? void 0 : e.style, children: /* @__PURE__ */ d(
98
97
  "div",
99
98
  {
100
99
  className: $(e == null ? void 0 : e.bodyClassName, D.fitScreenBody),
101
100
  style: e == null ? void 0 : e.bodyStyle,
102
- ref: r,
101
+ ref: c,
103
102
  children: e == null ? void 0 : e.children
104
103
  }
105
104
  ) });
@@ -107,16 +106,16 @@ function z(e) {
107
106
  const U = "_preview_x6h89_59", j = {
108
107
  preview: U
109
108
  };
110
- function X(e) {
111
- const { engine: n, json: t } = e, c = H(), { options: r } = q() || {}, s = B(), i = P(), u = m(() => {
109
+ function V(e) {
110
+ const { engine: n, json: t } = e, r = _(), { options: c } = H() || {}, s = q(), i = B(), u = m(() => {
112
111
  var a;
113
- return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (d) => /* @__PURE__ */ o(
112
+ return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (o) => /* @__PURE__ */ d(
114
113
  k,
115
114
  {
116
- componentNode: d,
115
+ componentNode: o,
117
116
  packages: s
118
117
  },
119
- d == null ? void 0 : d.id
118
+ o == null ? void 0 : o.id
120
119
  )) : [];
121
120
  }, [i, s]);
122
121
  return g.useEffect(() => {
@@ -124,17 +123,17 @@ function X(e) {
124
123
  var a;
125
124
  (a = e == null ? void 0 : e.onJSONLoad) == null || a.call(e);
126
125
  });
127
- }, []), /* @__PURE__ */ o(
126
+ }, []), /* @__PURE__ */ d(
128
127
  z,
129
128
  {
130
129
  className: j.preview,
131
- dw: (c == null ? void 0 : c.width) || 1920,
132
- dh: (c == null ? void 0 : c.height) || 1080,
133
- style: { background: r == null ? void 0 : r.whiteBoardColor },
134
- children: /* @__PURE__ */ o(_, { preview: !0, style: { width: "100%", height: "100%" }, children: u })
130
+ dw: (r == null ? void 0 : r.width) || 1920,
131
+ dh: (r == null ? void 0 : r.height) || 1080,
132
+ style: { background: c == null ? void 0 : c.whiteBoardColor },
133
+ children: /* @__PURE__ */ d(P, { preview: !0, style: { width: "100%", height: "100%" }, children: u })
135
134
  }
136
135
  );
137
136
  }
138
137
  export {
139
- X as default
138
+ V as default
140
139
  };
@@ -1,16 +1,15 @@
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 { n as b } from "./index-BqPf_Hxm.mjs";
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
- import { useState as u, useMemo as x } from "react";
5
- import "react-dom";
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
+ 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
- import "antd";
8
7
  import { r as f, g as y } from "./random-DD0zMfMm.mjs";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
11
- import { u as d } from "./useEffectOnce-l5sUTCBG.mjs";
12
- import { R as h } from "./index-C2gXj9yh.mjs";
13
- 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], C = b((i) => {
10
+ import { u as d } from "./useEffectOnce-Ct0JMBZd.mjs";
11
+ import { R as h } from "./index-Daza1EsK.mjs";
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) => {
14
13
  const { width: n, height: s } = i, [e, l] = u(a), m = x(() => {
15
14
  const o = e.map((t) => t * 100 / r);
16
15
  return {
@@ -148,5 +147,5 @@ const g = ["06-01", "06-02", "06-03", "06-04", "06-05", "06-06", "06-07"], r = 2
148
147
  }), /* @__PURE__ */ c(h, { options: m, style: { width: n, height: s } });
149
148
  });
150
149
  export {
151
- C as default
150
+ N as default
152
151
  };