react-big-screen 0.0.19 → 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.
- package/es/{IInputNumber-8TbQFEeQ.mjs → IInputNumber-PnHJNf9H.mjs} +3 -3
- package/es/{Line-h-rhOKev.mjs → Line-CLgwvraj.mjs} +37 -37
- package/es/{attributes-CxnJg-FT.mjs → attributes-BWtBVgsg.mjs} +9 -8
- package/es/{attributes-BIXlzE3A.mjs → attributes-BuMChZnt.mjs} +6 -5
- package/es/{attributes-BDv3jJ5O.mjs → attributes-C0SMjnHG.mjs} +13 -12
- package/es/{attributes-CauLjFb0.mjs → attributes-C5pimFaJ.mjs} +6 -5
- package/es/{attributes-DYnxULqW.mjs → attributes-COwKDUMI.mjs} +6 -5
- package/es/{attributes-CqNLwRW3.mjs → attributes-C_fbpAUx.mjs} +9 -8
- package/es/{attributes-CuUxWoIW.mjs → attributes-DdjjVR4N.mjs} +6 -5
- package/es/{attributes-B8s8kYoD.mjs → attributes-Dv8IMI4h.mjs} +6 -5
- package/es/{attributes-5RpQLPsm.mjs → attributes-DztmBsKn.mjs} +8 -7
- package/es/{attributes-NVduSBUS.mjs → attributes-E8oqU4q7.mjs} +7 -6
- package/es/{attributes-CgnjWsLu.mjs → attributes-YL1J6lLR.mjs} +6 -5
- package/es/{attributes-DBip_IK_.mjs → attributes-w4UsefFp.mjs} +51 -50
- package/es/{index-GdH3Zwz0.mjs → index-B4KSL-Bu.mjs} +8 -7
- package/es/{index-BAzeX1Ol.mjs → index-B8JqjjA1.mjs} +29 -28
- package/es/{index-8Jjn38kS.mjs → index-B9Nb8R2I.mjs} +19 -18
- package/es/{index-BFdLFt4J.mjs → index-BRgbtPVH.mjs} +7 -6
- package/es/{index-DCIgeYYw.mjs → index-BUth1V1H.mjs} +7 -6
- package/es/{index-56XQx0At.mjs → index-BYJ5e2rN.mjs} +7 -6
- package/es/{index-SkjPQ6Pt.mjs → index-BYe40Zu2.mjs} +10 -9
- package/es/{index-D07zNDg9.mjs → index-Bvab-NQ4.mjs} +14 -13
- package/es/{index-BVjByyUe.mjs → index-BzpuXSbE.mjs} +7 -6
- package/es/{index-Cm-Rzkqs.mjs → index-C6HV7IaP.mjs} +42 -41
- package/es/{index-CjeVSp69.mjs → index-CBxj6uKJ.mjs} +8 -7
- package/es/index-CRDggJyg.mjs +4441 -0
- package/es/{index-i0K7Ynj-.mjs → index-CUkul7R0.mjs} +7 -6
- package/es/{index-Bi3lZwlI.mjs → index-CpYmNO_5.mjs} +55 -54
- package/es/{index-BInCuYp5.mjs → index-CyS-CdYv.mjs} +17 -16
- package/es/{index-Daza1EsK.mjs → index-D--V8m-b.mjs} +3 -3
- package/es/index-D1ux0Voe.mjs +29 -0
- package/es/{index-nSniwbAA.mjs → index-DQU0jlV0.mjs} +8 -7
- package/es/{index-Dvs_cgct.mjs → index-D_0vVSWq.mjs} +11 -10
- package/es/{index-Dkl0nzkU.mjs → index-Dh00vKAk.mjs} +11 -10
- package/es/{index-DzRsgn_u.mjs → index-DyB0TE1y.mjs} +38 -37
- package/es/{index-CBAcYtqX.mjs → index-KruFCy9N.mjs} +8 -7
- package/es/{index-Bdqrb_sj.mjs → index-Ljz96Vra.mjs} +8 -7
- package/es/{index-kvRZQZJ-.mjs → index-guYPVm3G.mjs} +1 -1
- package/es/{index-CgI9EXqn.mjs → index-hPKl41YD.mjs} +14 -13
- package/es/{index-CFdcAnNu.mjs → index-n9OtRMYa.mjs} +12 -11
- package/es/{index-umVDADGS.mjs → index-qoPI1H9i.mjs} +23 -22
- package/es/{index-C49BBpRX.mjs → index-ryl5yfWq.mjs} +8 -7
- package/es/index.mjs +8 -7
- package/es/{selectPage-ChSsIBe9.mjs → selectPage-D267xnl4.mjs} +2 -2
- package/es/{useCurrentPageId-BlVc4whf.mjs → useCurrentPageId-DM05DNLI.mjs} +6 -5
- package/es/useEffectOnce-l5sUTCBG.mjs +7 -0
- package/es/useListenRef-B01dENv0.mjs +8 -0
- package/es/{useResizeDom-BUgMcz6M.mjs → useResizeDom-B6mM4jrh.mjs} +2 -2
- package/package.json +1 -1
- package/es/index-BhafNo6T.mjs +0 -16092
- package/es/index-dxiyF_62.mjs +0 -29
- package/es/useEffectOnce-Ct0JMBZd.mjs +0 -7
- package/es/useListenRef-Dqm6KZRj.mjs +0 -8
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
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
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "react";
|
|
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-
|
|
10
|
-
const H =
|
|
11
|
-
const { options: e, width: _, height: g } =
|
|
12
|
-
return /* @__PURE__ */
|
|
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 H = t((r) => {
|
|
|
17
18
|
height: g
|
|
18
19
|
},
|
|
19
20
|
children: [
|
|
20
|
-
(e == null ? void 0 : e.value_1) && /* @__PURE__ */
|
|
21
|
+
(e == null ? void 0 : e.value_1) && /* @__PURE__ */ r(
|
|
21
22
|
"div",
|
|
22
23
|
{
|
|
23
24
|
style: {
|
|
@@ -35,7 +36,7 @@ const H = t((r) => {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
),
|
|
38
|
-
(e == null ? void 0 : e.value_2) && /* @__PURE__ */
|
|
39
|
+
(e == null ? void 0 : e.value_2) && /* @__PURE__ */ r(
|
|
39
40
|
"div",
|
|
40
41
|
{
|
|
41
42
|
style: {
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import g, { useState as w, useMemo as m, useEffect as y, useRef as l, Suspense as C } from "
|
|
3
|
-
import { u as R } from "./index-
|
|
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-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
|
-
import "
|
|
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
|
|
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
|
-
import { u as b } from "./useResizeDom-
|
|
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),
|
|
14
|
-
return y(() =>
|
|
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 &&
|
|
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,
|
|
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
|
|
37
|
+
return r.current;
|
|
37
38
|
},
|
|
38
39
|
// 获取对应的 componentNode
|
|
39
40
|
getComponentNode() {
|
|
40
|
-
return
|
|
41
|
+
return c.current;
|
|
41
42
|
},
|
|
42
43
|
// 获取实例的 component
|
|
43
44
|
getComponent() {
|
|
@@ -48,11 +49,11 @@ function E(e) {
|
|
|
48
49
|
i.reload();
|
|
49
50
|
},
|
|
50
51
|
// 立刻请求一次
|
|
51
|
-
request: (
|
|
52
|
-
}), /* @__PURE__ */
|
|
52
|
+
request: (d, h) => i.request(d, h)
|
|
53
|
+
}), /* @__PURE__ */ o(
|
|
53
54
|
"div",
|
|
54
55
|
{
|
|
55
|
-
ref:
|
|
56
|
+
ref: r,
|
|
56
57
|
style: {
|
|
57
58
|
position: "absolute",
|
|
58
59
|
left: t.x,
|
|
@@ -61,7 +62,7 @@ function E(e) {
|
|
|
61
62
|
height: t.height,
|
|
62
63
|
zIndex: t.level
|
|
63
64
|
},
|
|
64
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ o(C, { children: /* @__PURE__ */ o(
|
|
65
66
|
n.component,
|
|
66
67
|
{
|
|
67
68
|
handleTrigger: u,
|
|
@@ -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,
|
|
84
|
-
return b(
|
|
85
|
-
if (!
|
|
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 =
|
|
88
|
+
const i = c.current.getBoundingClientRect();
|
|
88
89
|
if (i.width / i.height > s) {
|
|
89
|
-
const a = i.height / t,
|
|
90
|
-
|
|
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)`;
|
|
91
92
|
} else {
|
|
92
93
|
const a = i.width / n;
|
|
93
|
-
|
|
94
|
+
r.current.style.transform = `scale(${a})`;
|
|
94
95
|
}
|
|
95
|
-
|
|
96
|
-
}), /* @__PURE__ */
|
|
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:
|
|
102
|
+
ref: r,
|
|
102
103
|
children: e == null ? void 0 : e.children
|
|
103
104
|
}
|
|
104
105
|
) });
|
|
@@ -106,16 +107,16 @@ function z(e) {
|
|
|
106
107
|
const U = "_preview_x6h89_59", j = {
|
|
107
108
|
preview: U
|
|
108
109
|
};
|
|
109
|
-
function
|
|
110
|
-
const { engine: n, json: t } = e,
|
|
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
|
-
return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (
|
|
113
|
+
return s.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (d) => /* @__PURE__ */ o(
|
|
113
114
|
k,
|
|
114
115
|
{
|
|
115
|
-
componentNode:
|
|
116
|
+
componentNode: d,
|
|
116
117
|
packages: s
|
|
117
118
|
},
|
|
118
|
-
|
|
119
|
+
d == null ? void 0 : d.id
|
|
119
120
|
)) : [];
|
|
120
121
|
}, [i, s]);
|
|
121
122
|
return g.useEffect(() => {
|
|
@@ -123,17 +124,17 @@ function V(e) {
|
|
|
123
124
|
var a;
|
|
124
125
|
(a = e == null ? void 0 : e.onJSONLoad) == null || a.call(e);
|
|
125
126
|
});
|
|
126
|
-
}, []), /* @__PURE__ */
|
|
127
|
+
}, []), /* @__PURE__ */ o(
|
|
127
128
|
z,
|
|
128
129
|
{
|
|
129
130
|
className: j.preview,
|
|
130
|
-
dw: (
|
|
131
|
-
dh: (
|
|
132
|
-
style: { background:
|
|
133
|
-
children: /* @__PURE__ */
|
|
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 })
|
|
134
135
|
}
|
|
135
136
|
);
|
|
136
137
|
}
|
|
137
138
|
export {
|
|
138
|
-
|
|
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 {
|
|
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
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "react";
|
|
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
|
|
10
|
-
const
|
|
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
|
-
|
|
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 {
|
|
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
|
-
import { useMemo as v } from "
|
|
5
|
-
import "
|
|
4
|
+
import { useMemo as v } from "react";
|
|
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-
|
|
10
|
-
import { u as L } from "./useCurrentPageId-
|
|
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
|
|
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
|
-
|
|
95
|
+
Q as default
|
|
95
96
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as x } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import { forwardRef as I, useRef as r, useState as i, useImperativeHandle as M, useEffect as w } from "
|
|
2
|
+
import { forwardRef as I, useRef as r, useState as i, useImperativeHandle as M, useEffect as w } from "react";
|
|
3
3
|
import y from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
4
4
|
const A = "_autoScroll_h2edl_59", D = "_autoScroll_inner_h2edl_65", H = "_scroll_h2edl_112", P = "_scroll_paused_h2edl_115", n = {
|
|
5
5
|
autoScroll: A,
|
|
@@ -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 {
|
|
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
|
-
import { useRef as c, useEffect as a } from "
|
|
5
|
-
import "
|
|
4
|
+
import { useRef as c, useEffect as a } from "react";
|
|
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-
|
|
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
|
|
12
|
-
const { width: i, height: n, options:
|
|
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
|
-
|
|
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:
|
|
28
|
-
fontSize:
|
|
29
|
-
textAlign:
|
|
30
|
-
lineHeight: `${
|
|
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:
|
|
33
|
+
ref: e,
|
|
33
34
|
children: 11
|
|
34
35
|
}
|
|
35
36
|
);
|
|
36
37
|
}, u);
|
|
37
38
|
export {
|
|
38
|
-
|
|
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 {
|
|
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
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "react";
|
|
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-
|
|
11
|
-
import { DEFAULT_OPTIONS as g } from "./attributes-
|
|
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
|
|
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
|
-
],
|
|
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:
|
|
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
|
|
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 =
|
|
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
|
-
|
|
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-
|
|
3
|
-
import {
|
|
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
|
-
import { useMemo as g } from "
|
|
6
|
-
import "
|
|
5
|
+
import { useMemo as g } from "react";
|
|
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
|
|
11
|
-
function
|
|
12
|
-
return !(
|
|
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, ...
|
|
16
|
+
dimensions: [m, ...o.map((r) => r.name)],
|
|
16
17
|
source: n.map((r) => {
|
|
17
|
-
const
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
}),
|
|
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
|
|
26
|
-
return ((
|
|
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
|
|
33
|
-
const { width:
|
|
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:
|
|
36
|
+
dataset: l(
|
|
36
37
|
r == null ? void 0 : r.nameCode,
|
|
37
38
|
r == null ? void 0 : r.seriesList,
|
|
38
|
-
Array.isArray(
|
|
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
|
-
}), [
|
|
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:
|
|
50
|
+
width: o,
|
|
50
51
|
height: n,
|
|
51
52
|
background: r == null ? void 0 : r.background
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
);
|
|
55
|
-
},
|
|
56
|
+
}, p);
|
|
56
57
|
export {
|
|
57
|
-
|
|
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 {
|
|
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
|
-
import { useState as f, useMemo as g } from "
|
|
5
|
-
import "
|
|
4
|
+
import { useState as f, useMemo as g } from "react";
|
|
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 d } from "./useEffectOnce-
|
|
10
|
-
import { R as y } from "./index-
|
|
10
|
+
import { u as d } from "./useEffectOnce-l5sUTCBG.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],
|
|
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
|
-
|
|
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 {
|
|
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
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import "antd";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
m as EXAMPLE,
|
|
9
|
+
e as RbsEngine,
|
|
10
|
+
E as defaultPackage,
|
|
11
|
+
f as startDriver
|
|
11
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useState as g, useEffect as r } from "
|
|
2
|
-
import { u as i, R as a } from "./index-
|
|
1
|
+
import { useState as g, useEffect as r } from "react";
|
|
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,
|
|
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
|
-
import "
|
|
4
|
-
import "
|
|
3
|
+
import "react";
|
|
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
|
|
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
|
-
|
|
17
|
+
l as u
|
|
17
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useEffect as i } from "
|
|
2
|
-
import { u as m } from "./useListenRef-
|
|
1
|
+
import { useEffect as i } from "react";
|
|
2
|
+
import { u as m } from "./useListenRef-B01dENv0.mjs";
|
|
3
3
|
function p(r, n) {
|
|
4
4
|
const e = m(n);
|
|
5
5
|
i(() => {
|