react-big-screen 0.0.2 → 0.0.3

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 (44) hide show
  1. package/README.md +47 -0
  2. package/es/{attributes-DZxC4B37.mjs → attributes-9JJnMyOM.mjs} +1 -1
  3. package/es/{attributes-DieePkzV.mjs → attributes-B0TGeGwd.mjs} +1 -1
  4. package/es/{attributes-LoqmZojB.mjs → attributes-BYa3Kx6D.mjs} +1 -1
  5. package/es/{attributes-C4LeY1BZ.mjs → attributes-C1Er2mU2.mjs} +1 -1
  6. package/es/{attributes-CE73rly0.mjs → attributes-CjTTwDCD.mjs} +1 -1
  7. package/es/{attributes-CSKP7npu.mjs → attributes-DD_Hogjd.mjs} +1 -1
  8. package/es/{attributes-D_stokyh.mjs → attributes-D_kdeVdD.mjs} +1 -1
  9. package/es/{attributes-ue-CmjAw.mjs → attributes-DlWyA2om.mjs} +1 -1
  10. package/es/{attributes-Bd6bjYNO.mjs → attributes-DprEERBw.mjs} +2 -2
  11. package/es/{attributes-BwCVvyg1.mjs → attributes-DqJGC0Ag.mjs} +1 -1
  12. package/es/{attributes-BPfIEMhu.mjs → attributes-NyWPJ3_p.mjs} +1 -1
  13. package/es/{attributes-Ca3YwNp_.mjs → attributes-yntL0BJM.mjs} +1 -1
  14. package/es/{index-Bz8aOQKt.mjs → index-BFgfDn8P.mjs} +3 -3
  15. package/es/{index-Ch7bAVMa.mjs → index-BLkx_Jpg.mjs} +2 -2
  16. package/es/{index-NIXnXIfG.mjs → index-BRCJpbOA.mjs} +2 -2
  17. package/es/{index-COR9xxjJ.mjs → index-BUoMt_pm.mjs} +2 -2
  18. package/es/{index-EkKLbWrX.mjs → index-BVm2ihs2.mjs} +67 -59
  19. package/es/{index-Bx44D9HL.mjs → index-BsZJ5Qtx.mjs} +12 -12
  20. package/es/{index-5L7Vf29E.mjs → index-BvJsCGUq.mjs} +2 -2
  21. package/es/{index-CWaDu7tv.mjs → index-BvMSWX7-.mjs} +2 -2
  22. package/es/{index-oRp9BKd0.mjs → index-C9x-zwVC.mjs} +28 -28
  23. package/es/{index-dvGAMCvV.mjs → index-CGPWZMnx.mjs} +2 -2
  24. package/es/{index-B00lQcU7.mjs → index-CPJZOGYB.mjs} +2 -2
  25. package/es/{index-BUdNXLkt.mjs → index-CPeT0oeP.mjs} +3 -3
  26. package/es/{index-BSb4qVX4.mjs → index-CRv8sS9n.mjs} +2 -2
  27. package/es/{index-DzGMaMlo.mjs → index-CaDgVbYl.mjs} +1 -1
  28. package/es/{index-CNVmSNi4.mjs → index-Co9UFyo-.mjs} +2 -2
  29. package/es/{index-7ZW-SCwo.mjs → index-Cp1LVlIc.mjs} +2 -2
  30. package/es/{index-Gk3zSHHS.mjs → index-CtW8_7m2.mjs} +2 -2
  31. package/es/{index-BE6SbJah.mjs → index-D-MRie5y.mjs} +1 -1
  32. package/es/{index-syzd3ScW.mjs → index-DCC5Ubca.mjs} +2 -2
  33. package/es/{index-NDbr0gtf.mjs → index-DCssRFM_.mjs} +2 -2
  34. package/es/{index-BH8sNWnz.mjs → index-DKoIcrH8.mjs} +2 -2
  35. package/es/{index-BXv4ZOBe.mjs → index-IPshmTia.mjs} +3 -3
  36. package/es/{index-D2MkDARx.mjs → index-eNxsu4gw.mjs} +2 -2
  37. package/es/{index-Bf6X5Fsf.mjs → index-om-B_yMg.mjs} +3 -3
  38. package/es/{index-WI440ion.mjs → index-qx54Fc2k.mjs} +2 -2
  39. package/es/{index-BFdbTW64.mjs → index-zQJneiJO.mjs} +2 -2
  40. package/es/index.mjs +1 -1
  41. package/es/{selectPage-BQkRPT-9.mjs → selectPage-BV06fhR-.mjs} +1 -1
  42. package/es/{useCurrentPageId-DrIZvYrl.mjs → useCurrentPageId-7D7A4sjF.mjs} +1 -1
  43. package/package.json +3 -3
  44. package/types/src/export/index.d.ts +7 -1
@@ -6,13 +6,13 @@ import zt, { useRef as B, useEffect as w, useMemo as A, useState as S, forwardRe
6
6
  import { DownOutlined as Sn, ReloadOutlined as Q, CloseOutlined as Nn, ArrowUpOutlined as et, ArrowRightOutlined as wn, ArrowDownOutlined as tt, ArrowLeftOutlined as En, QuestionCircleOutlined as An, UploadOutlined as Ln, VerticalAlignBottomOutlined as $t, SaveOutlined as p, ClearOutlined as Rt, TranslationOutlined as Dn, SettingOutlined as Ft, GithubFilled as On, LockOutlined as Ht, EyeOutlined as Pn, EyeInvisibleOutlined as Mn, RightOutlined as Bn, VerticalAlignTopOutlined as jn, UnlockOutlined as zn, BlockOutlined as Tn, DisconnectOutlined as $n, CopyOutlined as Rn, DeleteOutlined as de, StarOutlined as dt, BorderOuterOutlined as Fn, BorderBottomOutlined as Hn, DownloadOutlined as Kn, LoadingOutlined as Kt, EditOutlined as qt, BarsOutlined as qn, FileOutlined as Un, AppstoreOutlined as Jn, FileTextOutlined as Wn, ApartmentOutlined as Vn, BankOutlined as Gn, HistoryOutlined as Xn, PlusOutlined as rt, RedoOutlined as Yn } from "/Users/tangjiahui/Desktop/big-screen-demo/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";
7
7
  import { message as E, Tooltip as T, InputNumber as le, Popover as st, Slider as Zn, Space as D, Dropdown as be, Button as K, Input as Qn, Collapse as Ct, Form as M, Modal as re, Descriptions as je, Tree as pn, Row as nt, Col as H, Checkbox as we, Switch as Ut, Tabs as ei, Empty as xt } from "/Users/tangjiahui/Desktop/big-screen-demo/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";
8
8
  import $ from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
9
- import { R as k, u as N, E as ti, a as ni, b as ii, c as ut, s as li, L as ci, d as ai, e as Jt, f as ht, g as it, l as ze, h as It, i as oi, j as kt, I as Te, k as di, m as ri } from "./index-EkKLbWrX.mjs";
9
+ import { R as k, u as N, E as ti, a as ni, b as ii, c as ut, s as li, L as ci, d as ai, e as Jt, f as ht, g as it, l as ze, h as It, i as oi, j as kt, I as Te, k as di, m as ri } from "./index-BVm2ihs2.mjs";
10
10
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
11
11
  import { createPortal as si } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
12
12
  import { createRoot as Wt } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
13
13
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
14
14
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
15
- import { u as Ee, i as Ae, a as gt, b as Vt, c as Gt, g as ae, d as ui, e as hi, f as gi, h as _i, j as Xt, s as St, P as mi, k as fi, l as yi } from "./index-NDbr0gtf.mjs";
15
+ import { u as Ee, i as Ae, a as gt, b as Vt, c as Gt, g as ae, d as ui, e as hi, f as gi, h as _i, j as Xt, s as St, P as mi, k as fi, l as yi } from "./index-DCssRFM_.mjs";
16
16
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-color@2.19.3_react@18.3.1/node_modules/react-color/es/index.js";
17
17
  import { I as ee, L as Le, a as z, C as vi, b as $e } from "./Line-_Oh8Pbbj.mjs";
18
18
  import { I as _t, a as bi } from "./IInputNumber-D1VHHCf0.mjs";
@@ -30,10 +30,10 @@ import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/monaco-edit
30
30
  import ft from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js";
31
31
  import { saveAs as en } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/file-saver@2.0.5/node_modules/file-saver/dist/FileSaver.min.js";
32
32
  import { u as tn } from "./useEffectOnce-DrBvWFlm.mjs";
33
- import { u as wi, s as Re } from "./selectPage-BQkRPT-9.mjs";
34
- import { u as Ei } from "./useCurrentPageId-DrIZvYrl.mjs";
33
+ import { u as wi, s as Re } from "./selectPage-BV06fhR-.mjs";
34
+ import { u as Ei } from "./useCurrentPageId-7D7A4sjF.mjs";
35
35
  import { u as nn } from "./useListenRef-C7BrHZ68.mjs";
36
- import { I as Ce } from "./index-DzGMaMlo.mjs";
36
+ import { I as Ce } from "./index-CaDgVbYl.mjs";
37
37
  async function ln(e) {
38
38
  return new Promise((t) => {
39
39
  let n = document.createElement("input");
@@ -815,7 +815,7 @@ const Sl = (e, t, n) => {
815
815
  };
816
816
  async function Nl(e) {
817
817
  var i;
818
- const t = await Sl(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-EkKLbWrX.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-EkKLbWrX.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = k.getActiveEngine();
818
+ const t = await Sl(/* @__PURE__ */ Object.assign({ "../../../../../../public/example/classic.json": () => import("./index-BVm2ihs2.mjs").then((c) => c.r), "../../../../../../public/example/multiple-components-interactive.json": () => import("./index-BVm2ihs2.mjs").then((c) => c.t) }), `../../../../../../public/example/${e}.json`, 9), n = k.getActiveEngine();
819
819
  (i = n == null ? void 0 : n.loadJSON) == null || i.call(n, t);
820
820
  }
821
821
  function wl() {
@@ -4694,12 +4694,12 @@ function Kd() {
4694
4694
  }
4695
4695
  function Ir(e) {
4696
4696
  const { engine: t, json: n } = e;
4697
- return pi(), zt.useEffect(() => (t.loadJSON(n).then(() => {
4698
- var i;
4699
- (i = e == null ? void 0 : e.onJSONLoad) == null || i.call(e);
4700
- }), () => {
4701
- t.destroy();
4702
- }), []), /* @__PURE__ */ g("div", { className: G.page, children: [
4697
+ return pi(), zt.useEffect(() => {
4698
+ t.loadJSON(n).then(() => {
4699
+ var i;
4700
+ (i = e == null ? void 0 : e.onJSONLoad) == null || i.call(e);
4701
+ });
4702
+ }, []), /* @__PURE__ */ g("div", { className: G.page, children: [
4703
4703
  /* @__PURE__ */ l("div", { className: G.page_header, children: /* @__PURE__ */ l(Ll, {}) }),
4704
4704
  /* @__PURE__ */ g("div", { className: G.page_body, children: [
4705
4705
  /* @__PURE__ */ l("div", { className: G.page_body_left, id: "rbs-menu", children: /* @__PURE__ */ l(fa, {}) }),
@@ -1,12 +1,12 @@
1
1
  import { jsxs as a, jsx as l } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as t } from "./index-EkKLbWrX.mjs";
2
+ import { n as t } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- import { DEFAULT_OPTIONS as d } from "./attributes-DieePkzV.mjs";
9
+ import { DEFAULT_OPTIONS as d } from "./attributes-B0TGeGwd.mjs";
10
10
  const k = t((r) => {
11
11
  const { options: e, width: _, height: g } = r;
12
12
  return /* @__PURE__ */ a(
@@ -1,12 +1,12 @@
1
1
  import { jsx as r, Fragment as a } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n } from "./index-EkKLbWrX.mjs";
2
+ import { n } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import m from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- import { DEFAULT_OPTIONS as c } from "./attributes-Bd6bjYNO.mjs";
9
+ import { DEFAULT_OPTIONS as c } from "./attributes-DprEERBw.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)
@@ -1,22 +1,22 @@
1
1
  import { jsx as o, Fragment as f } from "/Users/tangjiahui/Desktop/big-screen-demo/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/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
3
- import { u as R } from "./index-EkKLbWrX.mjs";
3
+ import { u as R } from "./index-BVm2ihs2.mjs";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/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 H, l as q, c as B, b as P, P as _ } from "./index-NDbr0gtf.mjs";
9
+ 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-DCssRFM_.mjs";
10
10
  import $ from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
11
11
  import { u as b } from "./useResizeDom-CwFwXEqh.mjs";
12
12
  function k(e) {
13
- 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]);
14
- 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 }) => {
15
15
  t({ ...i });
16
- }), []), s && c ? /* @__PURE__ */ o(E, { componentNode: n, component: s }) : /* @__PURE__ */ o(f, {});
16
+ }), []), s && r ? /* @__PURE__ */ o(E, { componentNode: n, component: s }) : /* @__PURE__ */ o(f, {});
17
17
  }
18
18
  function E(e) {
19
- 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);
20
20
  return N({
21
21
  id: t.id,
22
22
  // 经过实例
@@ -33,11 +33,11 @@ function E(e) {
33
33
  },
34
34
  // 获取容器dom
35
35
  getContainerDom() {
36
- return r.current;
36
+ return c.current;
37
37
  },
38
38
  // 获取对应的 componentNode
39
39
  getComponentNode() {
40
- return c.current;
40
+ return r.current;
41
41
  },
42
42
  // 获取实例的 component
43
43
  getComponent() {
@@ -52,7 +52,7 @@ function E(e) {
52
52
  }), /* @__PURE__ */ o(
53
53
  "div",
54
54
  {
55
- ref: r,
55
+ ref: c,
56
56
  style: {
57
57
  position: "absolute",
58
58
  left: t.x,
@@ -80,25 +80,25 @@ const I = "_fitScreenBody_1qzud_59", D = {
80
80
  fitScreenBody: I
81
81
  };
82
82
  function z(e) {
83
- const { dw: n = 1920, dh: t = 1080 } = e, c = l(null), r = l(null), s = m(() => n / t, [n, t]);
84
- return b(c, () => {
85
- 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)
86
86
  return;
87
- const i = c.current.getBoundingClientRect();
87
+ const i = r.current.getBoundingClientRect();
88
88
  if (i.width / i.height > s) {
89
89
  const a = i.height / t, d = a * n, h = (i.width - d) / 2;
90
- r.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
90
+ c.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
91
91
  } else {
92
92
  const a = i.width / n;
93
- r.current.style.transform = `scale(${a})`;
93
+ c.current.style.transform = `scale(${a})`;
94
94
  }
95
- r.current.style.width = `${n}px`, r.current.style.height = `${t}px`;
96
- }), /* @__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__ */ o("div", { className: e == null ? void 0 : e.className, ref: r, style: e == null ? void 0 : e.style, children: /* @__PURE__ */ o(
97
97
  "div",
98
98
  {
99
99
  className: $(e == null ? void 0 : e.bodyClassName, D.fitScreenBody),
100
100
  style: e == null ? void 0 : e.bodyStyle,
101
- ref: r,
101
+ ref: c,
102
102
  children: e == null ? void 0 : e.children
103
103
  }
104
104
  ) });
@@ -107,7 +107,7 @@ const U = "_preview_x6h89_59", j = {
107
107
  preview: U
108
108
  };
109
109
  function V(e) {
110
- const { engine: n, json: t } = e, c = H(), { options: r } = q() || {}, s = B(), i = P(), u = m(() => {
110
+ const { engine: n, json: t } = e, r = H(), { options: c } = q() || {}, s = B(), i = P(), u = m(() => {
111
111
  var a;
112
112
  return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (d) => /* @__PURE__ */ o(
113
113
  k,
@@ -118,18 +118,18 @@ function V(e) {
118
118
  d == null ? void 0 : d.id
119
119
  )) : [];
120
120
  }, [i, s]);
121
- return g.useEffect(() => (n.loadJSON(t).then(() => {
122
- var a;
123
- (a = e == null ? void 0 : e.onJSONLoad) == null || a.call(e);
124
- }), () => {
125
- n.destroy();
126
- }), []), /* @__PURE__ */ o(
121
+ return g.useEffect(() => {
122
+ n.loadJSON(t).then(() => {
123
+ var a;
124
+ (a = e == null ? void 0 : e.onJSONLoad) == null || a.call(e);
125
+ });
126
+ }, []), /* @__PURE__ */ o(
127
127
  z,
128
128
  {
129
129
  className: j.preview,
130
- dw: (c == null ? void 0 : c.width) || 1920,
131
- dh: (c == null ? void 0 : c.height) || 1080,
132
- style: { background: r == null ? void 0 : r.whiteBoardColor },
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
133
  children: /* @__PURE__ */ o(_, { preview: !0, style: { width: "100%", height: "100%" }, children: u })
134
134
  }
135
135
  );
@@ -1,5 +1,5 @@
1
1
  import { jsx as b } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as h } from "./index-EkKLbWrX.mjs";
2
+ import { n as h } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import { useState as f, useMemo as g } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/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/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@1
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
9
  import { u as d } from "./useEffectOnce-DrBvWFlm.mjs";
10
- import { R as y } from "./index-BE6SbJah.mjs";
10
+ import { R as y } from "./index-D-MRie5y.mjs";
11
11
  const n = [
12
12
  "rgb(28, 172, 255)",
13
13
  "rgb(69, 201, 235)",
@@ -1,6 +1,6 @@
1
1
  import { jsx as n, jsxs as g } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { C as l } from "./index-EkKLbWrX.mjs";
3
- import { I as u } from "./index-DzGMaMlo.mjs";
2
+ import { C as l } from "./index-BVm2ihs2.mjs";
3
+ import { I as u } from "./index-CaDgVbYl.mjs";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-color@2.19.3_react@18.3.1/node_modules/react-color/es/index.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as b } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as C } from "./index-EkKLbWrX.mjs";
2
+ import { n as C } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
@@ -7,8 +7,8 @@ import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@1
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
9
  import { useRequest as v } from "/Users/tangjiahui/Desktop/big-screen-demo/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";
10
- import { R as S } from "./index-BE6SbJah.mjs";
11
- import { DEFAULT_OPTIONS as g } from "./attributes-C4LeY1BZ.mjs";
10
+ import { R as S } from "./index-D-MRie5y.mjs";
11
+ import { DEFAULT_OPTIONS as g } from "./attributes-C1Er2mU2.mjs";
12
12
  const n = "chinaOutline";
13
13
  async function z() {
14
14
  var t, c;
@@ -1,12 +1,12 @@
1
1
  import { jsx as s, jsxs as a } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as d } from "./index-EkKLbWrX.mjs";
2
+ import { n as d } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- import { DEFAULT_OPTIONS as p } from "./attributes-D_stokyh.mjs";
9
+ import { DEFAULT_OPTIONS as p } from "./attributes-D_kdeVdD.mjs";
10
10
  import { A as _ } from "./index-BVzODV3B.mjs";
11
11
  import { CalendarOutlined as f } from "/Users/tangjiahui/Desktop/big-screen-demo/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";
12
12
  const L = "_scrollList_ni091_59", h = "_scrollList_line_ni091_62", o = {
@@ -3,7 +3,7 @@ import { useState as S } from "/Users/tangjiahui/Desktop/big-screen-demo/node_mo
3
3
  import { Select as M } from "/Users/tangjiahui/Desktop/big-screen-demo/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";
4
4
  import { useDebounceEffect as X, useUpdateEffect as V } from "/Users/tangjiahui/Desktop/big-screen-demo/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";
5
5
  import { u as Y } from "./useEffectOnce-DrBvWFlm.mjs";
6
- import { i as Z } from "./index-EkKLbWrX.mjs";
6
+ import { i as Z } from "./index-BVm2ihs2.mjs";
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
8
8
  const q = (e, l) => {
9
9
  var r, f, d;
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as m } from "./index-BE6SbJah.mjs";
3
- import { n as r } from "./index-EkKLbWrX.mjs";
2
+ import { R as m } from "./index-D-MRie5y.mjs";
3
+ import { n as r } from "./index-BVm2ihs2.mjs";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
@@ -1,12 +1,12 @@
1
1
  import { jsx as e, jsxs as l } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as c } from "./index-EkKLbWrX.mjs";
2
+ import { n as c } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- import { DEFAULT_OPTIONS as i } from "./attributes-BwCVvyg1.mjs";
9
+ import { DEFAULT_OPTIONS as i } from "./attributes-DqJGC0Ag.mjs";
10
10
  import { DoubleRightOutlined as s } from "/Users/tangjiahui/Desktop/big-screen-demo/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";
11
11
  const _ = "_specialCard_1s46n_59", t = "_specialCard_head_1s46n_64", m = "_specialCard_head_arrow_1s46n_71", o = "_specialCard_head_title_1s46n_74", r = {
12
12
  specialCard: _,
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as a } from "./index-BE6SbJah.mjs";
3
- import { n as i } from "./index-EkKLbWrX.mjs";
2
+ import { R as a } from "./index-D-MRie5y.mjs";
3
+ import { n as i } from "./index-BVm2ihs2.mjs";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/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/Desktop/big-screen-demo/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/features.js";
7
7
  import { CanvasRenderer as S } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/renderers.js";
8
8
  import { useUpdateEffect as V } from "/Users/tangjiahui/Desktop/big-screen-demo/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-EkKLbWrX.mjs";
9
+ import "./index-BVm2ihs2.mjs";
10
10
  import "/Users/tangjiahui/Desktop/big-screen-demo/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-CwFwXEqh.mjs";
12
12
  f.use([
@@ -1,5 +1,5 @@
1
1
  import { jsxs as t, jsx as l } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as a } from "./index-EkKLbWrX.mjs";
2
+ import { n as a } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/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/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@1
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/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/Desktop/big-screen-demo/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-Ca3YwNp_.mjs";
10
+ import { DEFAULT_OPTIONS as T } from "./attributes-yntL0BJM.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,
@@ -1,7 +1,7 @@
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-EkKLbWrX.mjs";
4
+ import { b as O, u as k, I as x, R as F } from "./index-BVm2ihs2.mjs";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
6
6
  import N, { useEffect as y, useMemo as M, useRef as w, useState as _, useCallback as z } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
@@ -13,7 +13,7 @@ import U from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/umi-
13
13
  import { u as j } from "./useListenRef-C7BrHZ68.mjs";
14
14
  import { message as Z } from "/Users/tangjiahui/Desktop/big-screen-demo/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
15
  import { u as Q } from "./useEffectOnce-DrBvWFlm.mjs";
16
- import { u as V } from "./useCurrentPageId-DrIZvYrl.mjs";
16
+ import { u as V } from "./useCurrentPageId-7D7A4sjF.mjs";
17
17
  import I from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/hotkeys-js@3.13.15/node_modules/hotkeys-js/dist/hotkeys.esm.js";
18
18
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
19
19
  function X(e) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as e } from "./index-BE6SbJah.mjs";
3
- import { n as a } from "./index-EkKLbWrX.mjs";
2
+ import { R as e } from "./index-D-MRie5y.mjs";
3
+ import { n as a } from "./index-BVm2ihs2.mjs";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
@@ -1,13 +1,13 @@
1
1
  import { jsx as d, jsxs as h, Fragment as u } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as m } from "./index-EkKLbWrX.mjs";
2
+ import { n as m } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import { useMemo as v } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- import { u as f, s as I } from "./selectPage-BQkRPT-9.mjs";
10
- import { u as L } from "./useCurrentPageId-DrIZvYrl.mjs";
9
+ import { u as f, s as I } from "./selectPage-BV06fhR-.mjs";
10
+ import { u as L } from "./useCurrentPageId-7D7A4sjF.mjs";
11
11
  import S from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
12
12
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/hotkeys-js@3.13.15/node_modules/hotkeys-js/dist/hotkeys.esm.js";
13
13
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as i } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as r } from "./index-BE6SbJah.mjs";
3
- import { n as a } from "./index-EkKLbWrX.mjs";
2
+ import { R as r } from "./index-D-MRie5y.mjs";
3
+ import { n as a } from "./index-BVm2ihs2.mjs";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as p } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as h } from "./index-BE6SbJah.mjs";
3
- import { n as x } from "./index-EkKLbWrX.mjs";
2
+ import { R as h } from "./index-D-MRie5y.mjs";
3
+ import { n as x } from "./index-BVm2ihs2.mjs";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/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/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
@@ -8,7 +8,7 @@ import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@1
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
9
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
10
  import { u as y } from "./useEffectOnce-DrBvWFlm.mjs";
11
- import { DEFAULT_OPTIONS as b } from "./attributes-LoqmZojB.mjs";
11
+ import { DEFAULT_OPTIONS as b } from "./attributes-BYa3Kx6D.mjs";
12
12
  const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz项目"], i = [1048, 735, 580, 484, 300], j = x((m) => {
13
13
  const { width: u, height: d, options: t } = m, o = g(), f = I(() => {
14
14
  const e = S.map((r, l) => ({
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as a } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as h } from "./index-EkKLbWrX.mjs";
2
+ import { n as h } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import { useState as p, useMemo as L, useEffect as x } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
@@ -9,7 +9,7 @@ import { r as y, g as C } from "./random-DD0zMfMm.mjs";
9
9
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
10
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
11
11
  import { cloneDeep as v } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/lodash.js";
12
- import { DEFAULT_OPTIONS as I } from "./attributes-CSKP7npu.mjs";
12
+ import { DEFAULT_OPTIONS as I } from "./attributes-DD_Hogjd.mjs";
13
13
  import { A as M } from "./index-BVzODV3B.mjs";
14
14
  import { DoubleRightOutlined as z } from "/Users/tangjiahui/Desktop/big-screen-demo/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";
15
15
  const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_progressList_line_header_xy0sd_69", c = {
@@ -1,12 +1,12 @@
1
1
  import { jsx as m } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as p } from "./index-EkKLbWrX.mjs";
2
+ import { n as p } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
6
6
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
7
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
8
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
- import { DEFAULT_OPTIONS as n } from "./attributes-DZxC4B37.mjs";
9
+ import { DEFAULT_OPTIONS as n } from "./attributes-9JJnMyOM.mjs";
10
10
  const x = p((o) => {
11
11
  const { options: t, width: r, height: i } = o;
12
12
  return /* @__PURE__ */ m("div", { style: { width: r, height: i, background: t.background } });
package/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { q as p, R as e, p as m, s as E } from "./index-EkKLbWrX.mjs";
2
+ import { q as p, R as e, p as m, s as E } from "./index-BVm2ihs2.mjs";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
5
5
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
@@ -1,5 +1,5 @@
1
1
  import { useState as g, useEffect as r } from "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
2
- import { u as i, R as a } from "./index-EkKLbWrX.mjs";
2
+ import { u as i, R as a } from "./index-BVm2ihs2.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, D as m } from "./index-EkKLbWrX.mjs";
1
+ import { b as i, D as m } from "./index-BVm2ihs2.mjs";
2
2
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
3
3
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
4
4
  import "/Users/tangjiahui/Desktop/big-screen-demo/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
package/package.json CHANGED
@@ -5,15 +5,15 @@
5
5
  "author": "tangjiahui-cn",
6
6
  "description": "一个前端大屏看板项目",
7
7
  "license": "ISC",
8
- "version": "0.0.2",
8
+ "version": "0.0.3",
9
9
  "module": "./es/index.mjs",
10
10
  "types": "./types/src/export/index.d.ts",
11
11
  "scripts": {
12
12
  "dev": "cross-env vite",
13
13
  "build": "tsc -b && vite build",
14
14
  "build:analyzer": "tsc -b cross-env mode=analyzer pnpm build",
15
- "build:esm": "tsc -b && cross-env LIB_MODE=1 vite build -c ./config/vite.buildEsmBundle.ts",
16
- "build-analysis:esm": "tsc -b && cross-env LIB_MODE=1 mode=analyzer vite build -c ./config/vite.buildEsmBundle.ts",
15
+ "build:esm": "tsc -b && cross-env LIB_MODE=1 vite build -c ./config/vite.buildESM.ts",
16
+ "build-analysis:esm": "tsc -b && cross-env LIB_MODE=1 mode=analyzer vite build -c ./config/vite.buildESM.ts",
17
17
  "lint": "eslint .",
18
18
  "preview": "vite preview",
19
19
  "postinstall": "husky install",
@@ -23,12 +23,18 @@ export declare class RbsEngine {
23
23
  mode: "edit" | "preview";
24
24
  /** 事件钩子 */
25
25
  private hooks;
26
+ private lastJson;
26
27
  constructor(options?: RbsEngineOptions);
27
28
  /**
28
29
  * 挂载dom(会触发编辑器渲染)
29
30
  * @param el 待挂载到的dom
30
31
  */
31
32
  mount(el: HTMLElement): Promise<void>;
33
+ /**
34
+ * 取消挂载dom
35
+ * @description 与destroy的区别是会保留json的状态,重新挂载dom即可重新渲染。
36
+ */
37
+ unmount(): Promise<void>;
32
38
  /**
33
39
  * 监听事件
34
40
  * @param type 事件类型
@@ -52,7 +58,7 @@ export declare class RbsEngine {
52
58
  /**
53
59
  * 销毁
54
60
  */
55
- destroy(): void;
61
+ destroy(): Promise<void>;
56
62
  /**
57
63
  * 导入JSONString(会触发渲染)
58
64
  * @param text json的文本格式