react-big-screen 0.0.20 → 0.0.21

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 (45) hide show
  1. package/es/{IInputNumber-Vk6zq2bP.mjs → IInputNumber-PnHJNf9H.mjs} +1 -1
  2. package/es/{Line-nA3VtARp.mjs → Line-CLgwvraj.mjs} +1 -1
  3. package/es/{attributes-BDcSpbcs.mjs → attributes-BWtBVgsg.mjs} +7 -6
  4. package/es/{attributes-Ck-M5Rw3.mjs → attributes-BuMChZnt.mjs} +4 -3
  5. package/es/{attributes-C7YISj8O.mjs → attributes-C0SMjnHG.mjs} +11 -10
  6. package/es/{attributes-CbI6ZNLl.mjs → attributes-C5pimFaJ.mjs} +4 -3
  7. package/es/{attributes-Cg2w2wqR.mjs → attributes-COwKDUMI.mjs} +4 -3
  8. package/es/{attributes-Nwf_EnEX.mjs → attributes-C_fbpAUx.mjs} +4 -3
  9. package/es/{attributes-OZgEPZfV.mjs → attributes-DdjjVR4N.mjs} +4 -3
  10. package/es/{attributes-jJg_yENs.mjs → attributes-Dv8IMI4h.mjs} +4 -3
  11. package/es/{attributes-DuAsVU2g.mjs → attributes-DztmBsKn.mjs} +4 -3
  12. package/es/{attributes-BZxcK9tt.mjs → attributes-E8oqU4q7.mjs} +5 -4
  13. package/es/{attributes-Dk4Khv-P.mjs → attributes-YL1J6lLR.mjs} +4 -3
  14. package/es/{attributes-BWjMqQ_s.mjs → attributes-w4UsefFp.mjs} +10 -10
  15. package/es/{index-C8d60TqQ.mjs → index-B4KSL-Bu.mjs} +5 -4
  16. package/es/{index-DuXGzYdH.mjs → index-B8JqjjA1.mjs} +2 -2
  17. package/es/{index-CrN898XP.mjs → index-B9Nb8R2I.mjs} +11 -11
  18. package/es/{index-C7UdPRSB.mjs → index-BRgbtPVH.mjs} +5 -4
  19. package/es/{index-COVC4gVe.mjs → index-BUth1V1H.mjs} +5 -4
  20. package/es/{index-CXKN_KjL.mjs → index-BYJ5e2rN.mjs} +5 -4
  21. package/es/{index-hRI5WRPs.mjs → index-BYe40Zu2.mjs} +8 -7
  22. package/es/{index-7n0O_7or.mjs → index-Bvab-NQ4.mjs} +14 -13
  23. package/es/{index-BemZB0VC.mjs → index-BzpuXSbE.mjs} +5 -4
  24. package/es/{index-CaUBqf8D.mjs → index-C6HV7IaP.mjs} +8 -8
  25. package/es/{index-nTep9Ubc.mjs → index-CBxj6uKJ.mjs} +5 -4
  26. package/es/{index-Bwm3aMXZ.mjs → index-CRDggJyg.mjs} +36 -36
  27. package/es/{index-DcyXbsRZ.mjs → index-CUkul7R0.mjs} +5 -4
  28. package/es/{index-BUic5qZC.mjs → index-CpYmNO_5.mjs} +10 -10
  29. package/es/{index-CKqOSJ9y.mjs → index-CyS-CdYv.mjs} +3 -3
  30. package/es/{index-CLnTLLjS.mjs → index-D--V8m-b.mjs} +1 -1
  31. package/es/{index-Cq0uVP0H.mjs → index-D1ux0Voe.mjs} +1 -1
  32. package/es/{index-Ce7eAD1W.mjs → index-DQU0jlV0.mjs} +3 -3
  33. package/es/{index-B1ohG9Hu.mjs → index-D_0vVSWq.mjs} +5 -4
  34. package/es/{index-TjFlu-86.mjs → index-Dh00vKAk.mjs} +10 -9
  35. package/es/{index-CBBKPguI.mjs → index-DyB0TE1y.mjs} +25 -24
  36. package/es/{index-B8Ei_KZZ.mjs → index-KruFCy9N.mjs} +5 -4
  37. package/es/{index-BF07nOIu.mjs → index-Ljz96Vra.mjs} +6 -5
  38. package/es/{index-DB3YcEiT.mjs → index-hPKl41YD.mjs} +12 -11
  39. package/es/{index-B75SSKFG.mjs → index-n9OtRMYa.mjs} +10 -9
  40. package/es/{index-CR3gnAfy.mjs → index-qoPI1H9i.mjs} +21 -20
  41. package/es/{index-BnaaZaeo.mjs → index-ryl5yfWq.mjs} +5 -4
  42. package/es/index.mjs +5 -4
  43. package/es/{selectPage-BfNytQ95.mjs → selectPage-D267xnl4.mjs} +1 -1
  44. package/es/{useCurrentPageId-C1KnE1O3.mjs → useCurrentPageId-DM05DNLI.mjs} +4 -3
  45. package/package.json +1 -1
@@ -1,15 +1,16 @@
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 { n as t } from "./index-Bwm3aMXZ.mjs";
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-CRDggJyg.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 "react";
5
5
  import "react-dom";
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";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
9
  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-OZgEPZfV.mjs";
10
- const k = t((r) => {
11
- const { options: e, width: _, height: g } = r;
12
- return /* @__PURE__ */ a(
10
+ import { DEFAULT_OPTIONS as d } from "./attributes-DdjjVR4N.mjs";
11
+ const H = a((l) => {
12
+ const { options: e, width: _, height: g } = l;
13
+ return /* @__PURE__ */ t(
13
14
  "div",
14
15
  {
15
16
  style: {
@@ -17,7 +18,7 @@ const k = t((r) => {
17
18
  height: g
18
19
  },
19
20
  children: [
20
- (e == null ? void 0 : e.value_1) && /* @__PURE__ */ l(
21
+ (e == null ? void 0 : e.value_1) && /* @__PURE__ */ r(
21
22
  "div",
22
23
  {
23
24
  style: {
@@ -35,7 +36,7 @@ const k = t((r) => {
35
36
  }
36
37
  }
37
38
  ),
38
- (e == null ? void 0 : e.value_2) && /* @__PURE__ */ l(
39
+ (e == null ? void 0 : e.value_2) && /* @__PURE__ */ r(
39
40
  "div",
40
41
  {
41
42
  style: {
@@ -58,5 +59,5 @@ const k = t((r) => {
58
59
  );
59
60
  }, d);
60
61
  export {
61
- k as default
62
+ H as default
62
63
  };
@@ -1,22 +1,23 @@
1
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
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-Bwm3aMXZ.mjs";
3
+ import { u as R } from "./index-CRDggJyg.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 "react-dom";
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";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
9
  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 H, l as q, c as B, b as P, P as _ } from "./index-CaUBqf8D.mjs";
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-C6HV7IaP.mjs";
10
11
  import $ from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
11
12
  import { u as b } from "./useResizeDom-B6mM4jrh.mjs";
12
13
  function k(e) {
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 }) => {
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 }) => {
15
16
  t({ ...i });
16
- }), []), s && r ? /* @__PURE__ */ o(E, { componentNode: n, component: s }) : /* @__PURE__ */ o(f, {});
17
+ }), []), s && c ? /* @__PURE__ */ o(E, { componentNode: n, component: s }) : /* @__PURE__ */ o(f, {});
17
18
  }
18
19
  function E(e) {
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
+ 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);
20
21
  return N({
21
22
  id: t.id,
22
23
  // 经过实例
@@ -33,11 +34,11 @@ function E(e) {
33
34
  },
34
35
  // 获取容器dom
35
36
  getContainerDom() {
36
- return c.current;
37
+ return r.current;
37
38
  },
38
39
  // 获取对应的 componentNode
39
40
  getComponentNode() {
40
- return r.current;
41
+ return c.current;
41
42
  },
42
43
  // 获取实例的 component
43
44
  getComponent() {
@@ -52,7 +53,7 @@ function E(e) {
52
53
  }), /* @__PURE__ */ o(
53
54
  "div",
54
55
  {
55
- ref: c,
56
+ ref: r,
56
57
  style: {
57
58
  position: "absolute",
58
59
  left: t.x,
@@ -80,25 +81,25 @@ const I = "_fitScreenBody_1qzud_59", D = {
80
81
  fitScreenBody: I
81
82
  };
82
83
  function z(e) {
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)
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)
86
87
  return;
87
- const i = r.current.getBoundingClientRect();
88
+ const i = c.current.getBoundingClientRect();
88
89
  if (i.width / i.height > s) {
89
90
  const a = i.height / t, d = a * n, h = (i.width - d) / 2;
90
- c.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
91
+ r.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
91
92
  } else {
92
93
  const a = i.width / n;
93
- c.current.style.transform = `scale(${a})`;
94
+ r.current.style.transform = `scale(${a})`;
94
95
  }
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(
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(
97
98
  "div",
98
99
  {
99
100
  className: $(e == null ? void 0 : e.bodyClassName, D.fitScreenBody),
100
101
  style: e == null ? void 0 : e.bodyStyle,
101
- ref: c,
102
+ ref: r,
102
103
  children: e == null ? void 0 : e.children
103
104
  }
104
105
  ) });
@@ -106,8 +107,8 @@ function z(e) {
106
107
  const U = "_preview_x6h89_59", j = {
107
108
  preview: U
108
109
  };
109
- function V(e) {
110
- const { engine: n, json: t } = e, r = H(), { options: c } = q() || {}, s = B(), i = P(), u = m(() => {
110
+ function X(e) {
111
+ const { engine: n, json: t } = e, c = H(), { options: r } = q() || {}, s = B(), i = P(), u = m(() => {
111
112
  var a;
112
113
  return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (d) => /* @__PURE__ */ o(
113
114
  k,
@@ -127,13 +128,13 @@ function V(e) {
127
128
  z,
128
129
  {
129
130
  className: j.preview,
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 },
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 },
133
134
  children: /* @__PURE__ */ o(_, { preview: !0, style: { width: "100%", height: "100%" }, children: u })
134
135
  }
135
136
  );
136
137
  }
137
138
  export {
138
- V as default
139
+ X as default
139
140
  };
@@ -1,16 +1,17 @@
1
1
  import { jsx as m } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as p } from "./index-Bwm3aMXZ.mjs";
2
+ import { n as p } from "./index-CRDggJyg.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 "react";
5
5
  import "react-dom";
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";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
9
  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 n } from "./attributes-Nwf_EnEX.mjs";
10
- const x = p((o) => {
10
+ import { DEFAULT_OPTIONS as n } from "./attributes-C_fbpAUx.mjs";
11
+ const b = p((o) => {
11
12
  const { options: t, width: r, height: i } = o;
12
13
  return /* @__PURE__ */ m("div", { style: { width: r, height: i, background: t.background } });
13
14
  }, n);
14
15
  export {
15
- x as default
16
+ b as default
16
17
  };
@@ -1,13 +1,14 @@
1
1
  import { jsx as d, jsxs as h, Fragment as u } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as m } from "./index-Bwm3aMXZ.mjs";
2
+ import { n as m } from "./index-CRDggJyg.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 { useMemo as v } from "react";
5
5
  import "react-dom";
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";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/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-BfNytQ95.mjs";
10
- import { u as L } from "./useCurrentPageId-C1KnE1O3.mjs";
10
+ import { u as f, s as I } from "./selectPage-D267xnl4.mjs";
11
+ import { u as L } from "./useCurrentPageId-DM05DNLI.mjs";
11
12
  import S from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
12
13
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/hotkeys-js@3.13.15/node_modules/hotkeys-js/dist/hotkeys.esm.js";
13
14
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
@@ -74,7 +75,7 @@ function w(t, s = {}) {
74
75
  c.push(a);
75
76
  }), { tree: c, treeMap: s };
76
77
  }
77
- const O = m((t) => {
78
+ const Q = m((t) => {
78
79
  const s = f(), c = L(), { tree: n, treeMap: e } = v(() => w(s), [s]), a = v(
79
80
  () => P(c, e),
80
81
  [c, e]
@@ -91,5 +92,5 @@ const O = m((t) => {
91
92
  return /* @__PURE__ */ d("div", { style: { width: t == null ? void 0 : t.width, height: t == null ? void 0 : t.height }, children: l });
92
93
  });
93
94
  export {
94
- O as default
95
+ Q as default
95
96
  };
@@ -1,18 +1,19 @@
1
1
  import { jsx as f } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as l } from "./index-Bwm3aMXZ.mjs";
2
+ import { n as l } from "./index-CRDggJyg.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 { useRef as c, useEffect as a } from "react";
5
5
  import "react-dom";
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";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
9
  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 u } from "./attributes-Ck-M5Rw3.mjs";
10
+ import { DEFAULT_OPTIONS as u } from "./attributes-BuMChZnt.mjs";
10
11
  import d from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
11
- const D = l((m) => {
12
- const { width: i, height: n, options: e } = m, r = c(null);
12
+ const M = l((m) => {
13
+ const { width: i, height: n, options: r } = m, e = c(null);
13
14
  return a(() => {
14
15
  function t() {
15
- r.current.innerHTML = d().format("YYYY-MM-DD HH:mm:ss");
16
+ e.current.innerHTML = d().format("YYYY-MM-DD HH:mm:ss");
16
17
  }
17
18
  let o = setInterval(t, 1e3);
18
19
  return t(), () => {
@@ -24,16 +25,16 @@ const D = l((m) => {
24
25
  style: {
25
26
  width: i,
26
27
  height: n,
27
- color: e == null ? void 0 : e.color,
28
- fontSize: e == null ? void 0 : e.fontSize,
29
- textAlign: e == null ? void 0 : e.textAlign,
30
- lineHeight: `${e == null ? void 0 : e.lineHeight}px`
28
+ color: r == null ? void 0 : r.color,
29
+ fontSize: r == null ? void 0 : r.fontSize,
30
+ textAlign: r == null ? void 0 : r.textAlign,
31
+ lineHeight: `${r == null ? void 0 : r.lineHeight}px`
31
32
  },
32
- ref: r,
33
+ ref: e,
33
34
  children: 11
34
35
  }
35
36
  );
36
37
  }, u);
37
38
  export {
38
- D as default
39
+ M as default
39
40
  };
@@ -1,14 +1,15 @@
1
1
  import { jsx as b } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as C } from "./index-Bwm3aMXZ.mjs";
2
+ import { n as C } from "./index-CRDggJyg.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 "react";
5
5
  import "react-dom";
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";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
10
  import { useRequest 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";
10
- import { R as S } from "./index-CLnTLLjS.mjs";
11
- import { DEFAULT_OPTIONS as g } from "./attributes-C7YISj8O.mjs";
11
+ import { R as S } from "./index-D--V8m-b.mjs";
12
+ import { DEFAULT_OPTIONS as g } from "./attributes-C0SMjnHG.mjs";
12
13
  const n = "chinaOutline";
13
14
  async function z() {
14
15
  var t, c;
@@ -34,14 +35,14 @@ async function $() {
34
35
  const r = await z();
35
36
  window.echarts.registerMap(n, r);
36
37
  }
37
- const O = "path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z", o = [
38
+ const p = "path://M1705.06,1318.313v-89.254l-319.9-221.799l0.073-208.063c0.521-84.662-26.629-121.796-63.961-121.491c-37.332-0.305-64.482,36.829-63.961,121.491l0.073,208.063l-319.9,221.799v89.254l330.343-157.288l12.238,241.308l-134.449,92.931l0.531,42.034l175.125-42.917l175.125,42.917l0.531-42.034l-134.449-92.931l12.238-241.308L1705.06,1318.313z", o = [
38
39
  { name: "北京", coords: [116, 39], value: 83 },
39
40
  { name: "广东", coords: [115, 22], value: 22 },
40
41
  { name: "西藏", coords: [91, 29], value: 45 },
41
42
  { name: "云南", coords: [102, 25], value: 108 },
42
43
  { name: "广西", coords: [108, 22], value: 230 },
43
44
  { name: "新疆", coords: [87, 43], value: 67 }
44
- ], p = o.reduce((r, t) => (r[t.name] = t.value, r), {}), L = o[0].coords, h = o.slice(1).map((r) => ({
45
+ ], O = o.reduce((r, t) => (r[t.name] = t.value, r), {}), L = o[0].coords, h = o.slice(1).map((r) => ({
45
46
  coords: [L, r.coords],
46
47
  tooltip: {
47
48
  formatter: () => `${r == null ? void 0 : r.name}:${(r == null ? void 0 : r.value) || 0}个`
@@ -87,7 +88,7 @@ function W() {
87
88
  show: !0,
88
89
  period: f,
89
90
  trailLength: 0,
90
- symbol: O,
91
+ symbol: p,
91
92
  symbolSize: 15,
92
93
  color: l
93
94
  },
@@ -127,7 +128,7 @@ function W() {
127
128
  }
128
129
  ];
129
130
  }
130
- const N = C((r) => {
131
+ const T = C((r) => {
131
132
  const { width: t, height: c, options: e } = r, { data: i } = v(
132
133
  async () => {
133
134
  await $();
@@ -162,7 +163,7 @@ const N = C((r) => {
162
163
  ...m ? {} : {
163
164
  tooltip: {
164
165
  formatter(a) {
165
- const w = p[a == null ? void 0 : a.name] || 0;
166
+ const w = O[a == null ? void 0 : a.name] || 0;
166
167
  return `${(a == null ? void 0 : a.name) || ""}: ${w}个`;
167
168
  }
168
169
  }
@@ -255,5 +256,5 @@ const N = C((r) => {
255
256
  );
256
257
  }, g);
257
258
  export {
258
- N as default
259
+ T as default
259
260
  };
@@ -1,58 +1,59 @@
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-CLnTLLjS.mjs";
3
- import { n as f } from "./index-Bwm3aMXZ.mjs";
2
+ import { R as u } from "./index-D--V8m-b.mjs";
3
+ import { n as f } from "./index-CRDggJyg.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 "react";
6
6
  import "react-dom";
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";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
10
  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-BWjMqQ_s.mjs";
11
- function p(m = "name", a, n) {
12
- return !(a != null && a.length) || !(n != null && n.length) ? {
11
+ import { DEFAULT_OPTIONS as p } from "./attributes-w4UsefFp.mjs";
12
+ function l(m = "name", o, n) {
13
+ return !(o != null && o.length) || !(n != null && n.length) ? {
13
14
  source: []
14
15
  } : {
15
- dimensions: [m, ...a.map((r) => r.name)],
16
+ dimensions: [m, ...o.map((r) => r.name)],
16
17
  source: n.map((r) => {
17
- const o = { [m]: `${r[m] ?? ""}` };
18
- return a.forEach((t) => {
19
- o[t.name] = r[t.value] || 0;
20
- }), o;
18
+ const a = { [m]: `${r[m] ?? ""}` };
19
+ return o.forEach((t) => {
20
+ a[t.name] = r[t.value] || 0;
21
+ }), a;
21
22
  })
22
23
  };
23
24
  }
24
25
  function h(m) {
25
- var a;
26
- return ((a = m == null ? void 0 : m.map) == null ? void 0 : a.call(m, (n) => ({
26
+ var o;
27
+ return ((o = m == null ? void 0 : m.map) == null ? void 0 : o.call(m, (n) => ({
27
28
  id: n == null ? void 0 : n.key,
28
29
  type: "line",
29
30
  color: n == null ? void 0 : n.color
30
31
  }))) || [];
31
32
  }
32
- const D = f((m) => {
33
- const { width: a, height: n, options: r, dataSource: o } = m, t = g(() => ({
33
+ const R = f((m) => {
34
+ const { width: o, height: n, options: r, dataSource: a } = m, t = g(() => ({
34
35
  tooltip: { trigger: "item" },
35
- dataset: p(
36
+ dataset: l(
36
37
  r == null ? void 0 : r.nameCode,
37
38
  r == null ? void 0 : r.seriesList,
38
- Array.isArray(o) ? o : []
39
+ Array.isArray(a) ? a : []
39
40
  ),
40
41
  xAxis: [{ type: "category" }],
41
42
  yAxis: [{}],
42
43
  series: h(r == null ? void 0 : r.seriesList)
43
- }), [o, r == null ? void 0 : r.seriesList, r == null ? void 0 : r.nameCode]);
44
+ }), [a, r == null ? void 0 : r.seriesList, r == null ? void 0 : r.nameCode]);
44
45
  return /* @__PURE__ */ c(
45
46
  u,
46
47
  {
47
48
  options: t,
48
49
  style: {
49
- width: a,
50
+ width: o,
50
51
  height: n,
51
52
  background: r == null ? void 0 : r.background
52
53
  }
53
54
  }
54
55
  );
55
- }, l);
56
+ }, p);
56
57
  export {
57
- D as default
58
+ R as default
58
59
  };
@@ -1,13 +1,14 @@
1
1
  import { jsx as b } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as h } from "./index-Bwm3aMXZ.mjs";
2
+ import { n as h } from "./index-CRDggJyg.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 f, useMemo as g } from "react";
5
5
  import "react-dom";
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";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
10
  import { u as d } from "./useEffectOnce-l5sUTCBG.mjs";
10
- import { R as y } from "./index-CLnTLLjS.mjs";
11
+ import { R as y } from "./index-D--V8m-b.mjs";
11
12
  const n = [
12
13
  "rgb(28, 172, 255)",
13
14
  "rgb(69, 201, 235)",
@@ -16,7 +17,7 @@ const n = [
16
17
  "rgb(124, 219, 225)",
17
18
  "rgb(172,202,178)",
18
19
  "rgb(184, 140, 212)"
19
- ], w = ["私有化项目", "tjh项目", "xxx项目", "xyz项目", "zz项目", "演示项目", "培训项目"], o = [900, 100, 150, 250, 800, 1100, 200], k = h((l) => {
20
+ ], w = ["私有化项目", "tjh项目", "xxx项目", "xyz项目", "zz项目", "演示项目", "培训项目"], o = [900, 100, 150, 250, 800, 1100, 200], C = h((l) => {
20
21
  const { width: c, height: m } = l, [a, p] = f(o), u = g(() => ({
21
22
  tooltip: {
22
23
  trigger: "axis",
@@ -97,5 +98,5 @@ const n = [
97
98
  }), /* @__PURE__ */ b(y, { style: { width: c, height: m }, options: u });
98
99
  });
99
100
  export {
100
- k as default
101
+ C as default
101
102
  };
package/es/index.mjs CHANGED
@@ -1,11 +1,12 @@
1
1
  import "/Users/tangjiahui/tjh/react-big-screen/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-Bwm3aMXZ.mjs";
2
+ import { q as m, R as e, p as E, s as f } from "./index-CRDggJyg.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 "react";
5
5
  import "react-dom";
6
+ import "antd";
6
7
  export {
7
- p as EXAMPLE,
8
+ m as EXAMPLE,
8
9
  e as RbsEngine,
9
- m as defaultPackage,
10
- E as startDriver
10
+ E as defaultPackage,
11
+ f as startDriver
11
12
  };
@@ -1,5 +1,5 @@
1
1
  import { useState as g, useEffect as r } from "react";
2
- import { u as i, R as a } from "./index-Bwm3aMXZ.mjs";
2
+ import { u as i, R as a } from "./index-CRDggJyg.mjs";
3
3
  function f() {
4
4
  const [n, e] = g([]), { engine: t } = i();
5
5
  return r(() => {
@@ -1,17 +1,18 @@
1
- import { b as i, D as m } from "./index-Bwm3aMXZ.mjs";
1
+ import { b as i, D as m } from "./index-CRDggJyg.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 "react";
4
4
  import "react-dom";
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/client.js";
6
+ import "antd";
6
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
7
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
8
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
9
- function g() {
10
+ function l() {
10
11
  return i((r) => {
11
12
  var o;
12
13
  return ((o = r == null ? void 0 : r.config) == null ? void 0 : o.currentPageId) || m.id;
13
14
  });
14
15
  }
15
16
  export {
16
- g as u
17
+ l as u
17
18
  };
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "tangjiahui-cn",
6
6
  "description": "一个前端大屏看板项目",
7
7
  "license": "ISC",
8
- "version": "0.0.20",
8
+ "version": "0.0.21",
9
9
  "module": "./es/index.mjs",
10
10
  "types": "./types/src/export/index.d.ts",
11
11
  "scripts": {