react-big-screen 0.0.25 → 0.0.27
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/{attributes-CtQvGbYt.mjs → attributes-37oRDeiw.mjs} +1 -1
- package/es/{attributes-Dz98d9lm.mjs → attributes-BC2XYDnm.mjs} +1 -1
- package/es/{attributes-CT0FOCY5.mjs → attributes-CFAAA-FK.mjs} +1 -1
- package/es/{attributes-BbimeCWH.mjs → attributes-CNwvsXE5.mjs} +1 -1
- package/es/{attributes-aebdh3-2.mjs → attributes-Cp73xyQm.mjs} +1 -1
- package/es/{attributes-BU4RteR4.mjs → attributes-D0dmBpEf.mjs} +1 -1
- package/es/{attributes-CRXnxBzA.mjs → attributes-DAQH7xMw.mjs} +2 -2
- package/es/{attributes-BpbbmYhM.mjs → attributes-DWU9BUKh.mjs} +1 -1
- package/es/{attributes-B-HnT330.mjs → attributes-Dm1mRhJa.mjs} +1 -1
- package/es/{attributes-CMthjycV.mjs → attributes-Dx09zpi1.mjs} +1 -1
- package/es/{attributes-DsE3dkzP.mjs → attributes-PPbAA9kF.mjs} +1 -1
- package/es/{attributes-BVf57pkp.mjs → attributes-gbuiHh84.mjs} +1 -1
- package/es/{index-BydqrGsF.mjs → index-BEfKA0Oo.mjs} +34 -34
- package/es/{index-CW1RuHQK.mjs → index-BY57DPIo.mjs} +3 -3
- package/es/{index-GzFjRCz_.mjs → index-BZS4D6c_.mjs} +1 -1
- package/es/{index-BTio6V_c.mjs → index-Be8S2w0f.mjs} +2 -2
- package/es/{index-BJWDg_cD.mjs → index-BmFCJgNG.mjs} +2 -2
- package/es/{index-CVCPzSmu.mjs → index-C3-Zv57L.mjs} +2 -2
- package/es/{index-COVxsHS9.mjs → index-CE58GZ2Z.mjs} +3 -3
- package/es/{index-BlOuO44L.mjs → index-CEakLFe6.mjs} +2 -2
- package/es/{index-CIspZGHv.mjs → index-CMLxu1BA.mjs} +2 -2
- package/es/index-CWExh3ye.mjs +147 -0
- package/es/{index-D8iQUy0r.mjs → index-Cev5s4f4.mjs} +2 -2
- package/es/{index-BuyncOQP.mjs → index-CpDafvNL.mjs} +2 -2
- package/es/{index-DC_DhKaS.mjs → index-CxWgdC-p.mjs} +3 -3
- package/es/{index-C1IN4HrE.mjs → index-DI07DBdE.mjs} +2 -2
- package/es/{index-oK1Pyk5T.mjs → index-DP9D_S3K.mjs} +2 -2
- package/es/{index-BoLXnAtC.mjs → index-DUSaI5pv.mjs} +3 -3
- package/es/{index-CCU-VzDv.mjs → index-D_o9HbuW.mjs} +1 -1
- package/es/{index-sSfWkA8B.mjs → index-DammwG6Z.mjs} +2 -2
- package/es/{index-ByNVYAww.mjs → index-DcRSXtNa.mjs} +2 -2
- package/es/{index-qyKdx0SV.mjs → index-Dd7tb2pn.mjs} +2 -2
- package/es/{index-CFg0WKFQ.mjs → index-Ddg1E_NY.mjs} +840 -840
- package/es/{index-D7TCGxYg.mjs → index-DiYL9bxg.mjs} +2 -2
- package/es/{index-V6j7Zu7r.mjs → index-Dw1l13DT.mjs} +2 -2
- package/es/{index-DW5eZVLq.mjs → index-iTOdkt9p.mjs} +2 -2
- package/es/{index-ChS976cJ.mjs → index-kE9UvOV8.mjs} +2 -2
- package/es/{index-By-60WbF.mjs → index-kuW0nAG2.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-BdrK7e7G.mjs → selectPage-CSS9hyqU.mjs} +1 -1
- package/es/{useCurrentPageId-CPdhqp51.mjs → useCurrentPageId-DDU_InIh.mjs} +1 -1
- package/package.json +1 -1
- package/es/index-gBfOXBIy.mjs +0 -142
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { R as e } from "./index-
|
|
3
|
-
import { n as r } from "./index-
|
|
2
|
+
import { R as e } from "./index-BZS4D6c_.mjs";
|
|
3
|
+
import { n as r } from "./index-BEfKA0Oo.mjs";
|
|
4
4
|
import "localforage";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { R as r } from "./index-
|
|
3
|
-
import { n as a } from "./index-
|
|
2
|
+
import { R as r } from "./index-BZS4D6c_.mjs";
|
|
3
|
+
import { n as a } from "./index-BEfKA0Oo.mjs";
|
|
4
4
|
import "localforage";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { n as d } from "./index-
|
|
2
|
+
import { n as d } from "./index-BEfKA0Oo.mjs";
|
|
3
3
|
import "localforage";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
@@ -9,7 +9,7 @@ import "driver.js";
|
|
|
9
9
|
import "driver.js/dist/driver.css";
|
|
10
10
|
import "lodash-es";
|
|
11
11
|
import "ahooks";
|
|
12
|
-
import { DEFAULT_OPTIONS as p } from "./attributes-
|
|
12
|
+
import { DEFAULT_OPTIONS as p } from "./attributes-D0dmBpEf.mjs";
|
|
13
13
|
import { A as _ } from "./index-D5seKG8I.mjs";
|
|
14
14
|
import { CalendarOutlined as f } from "@ant-design/icons";
|
|
15
15
|
const m = "_scrollList_ni091_59", L = "_scrollList_line_ni091_62", s = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { n as p } from "./index-
|
|
2
|
+
import { n as p } from "./index-BEfKA0Oo.mjs";
|
|
3
3
|
import "localforage";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
@@ -9,7 +9,7 @@ import "driver.js";
|
|
|
9
9
|
import "driver.js/dist/driver.css";
|
|
10
10
|
import "lodash-es";
|
|
11
11
|
import "ahooks";
|
|
12
|
-
import { DEFAULT_OPTIONS as n } from "./attributes-
|
|
12
|
+
import { DEFAULT_OPTIONS as n } from "./attributes-CNwvsXE5.mjs";
|
|
13
13
|
const l = p((o) => {
|
|
14
14
|
const { options: t, width: r, height: i } = o;
|
|
15
15
|
return /* @__PURE__ */ m("div", { style: { width: r, height: i, background: t.background } });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as g } from "react/jsx-runtime";
|
|
2
|
-
import { C as l } from "./index-
|
|
3
|
-
import { I as u } from "./index-
|
|
2
|
+
import { C as l } from "./index-BEfKA0Oo.mjs";
|
|
3
|
+
import { I as u } from "./index-D_o9HbuW.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { Tooltip as v, Checkbox as h, Slider as C } from "antd";
|
|
6
6
|
import "ahooks";
|
package/es/index.mjs
CHANGED
package/package.json
CHANGED
package/es/index-gBfOXBIy.mjs
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { jsx as s, Fragment as f } from "react/jsx-runtime";
|
|
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-BydqrGsF.mjs";
|
|
4
|
-
import "localforage";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
import "react-dom/client";
|
|
7
|
-
import "antd";
|
|
8
|
-
import "driver.js";
|
|
9
|
-
import "driver.js/dist/driver.css";
|
|
10
|
-
import "lodash-es";
|
|
11
|
-
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-D8iQUy0r.mjs";
|
|
12
|
-
import "ahooks";
|
|
13
|
-
import $ from "classnames";
|
|
14
|
-
import { u as b } from "./useResizeDom-B6mM4jrh.mjs";
|
|
15
|
-
function k(e) {
|
|
16
|
-
const [n, t] = w(e == null ? void 0 : e.componentNode), c = (n == null ? void 0 : n.show) ?? !0, { engine: r } = R(), o = m(() => r.component.get(n.cId), [n == null ? void 0 : n.cId, e == null ? void 0 : e.packages]);
|
|
17
|
-
return y(() => r.componentNode.onChange(n.id, ({ payload: i }) => {
|
|
18
|
-
t({ ...i });
|
|
19
|
-
}), []), o && c ? /* @__PURE__ */ s(E, { componentNode: n, component: o }) : /* @__PURE__ */ s(f, {});
|
|
20
|
-
}
|
|
21
|
-
function E(e) {
|
|
22
|
-
const { component: n, componentNode: t } = e, c = l(), r = l(null), { dataSource: o, requestInstance: i } = S(t), u = v(t.id), a = x(t.id);
|
|
23
|
-
return N({
|
|
24
|
-
id: t.id,
|
|
25
|
-
// 经过实例
|
|
26
|
-
handleHover() {
|
|
27
|
-
},
|
|
28
|
-
// 离开实例
|
|
29
|
-
handleUnHover() {
|
|
30
|
-
},
|
|
31
|
-
// 选中实例样式
|
|
32
|
-
handleSelected() {
|
|
33
|
-
},
|
|
34
|
-
// 取消选中实例样式
|
|
35
|
-
handleUnSelected() {
|
|
36
|
-
},
|
|
37
|
-
// 获取容器dom
|
|
38
|
-
getContainerDom() {
|
|
39
|
-
return r.current;
|
|
40
|
-
},
|
|
41
|
-
// 获取对应的 componentNode
|
|
42
|
-
getComponentNode() {
|
|
43
|
-
return c.current;
|
|
44
|
-
},
|
|
45
|
-
// 获取实例的 component
|
|
46
|
-
getComponent() {
|
|
47
|
-
return n;
|
|
48
|
-
},
|
|
49
|
-
// 重新载入request配置
|
|
50
|
-
reloadRequest() {
|
|
51
|
-
i.reload();
|
|
52
|
-
},
|
|
53
|
-
// 立刻请求一次
|
|
54
|
-
request: (d, h) => i.request(d, h)
|
|
55
|
-
}), /* @__PURE__ */ s(
|
|
56
|
-
"div",
|
|
57
|
-
{
|
|
58
|
-
ref: r,
|
|
59
|
-
style: {
|
|
60
|
-
position: "absolute",
|
|
61
|
-
left: t.x,
|
|
62
|
-
top: t.y,
|
|
63
|
-
width: t.width,
|
|
64
|
-
height: t.height,
|
|
65
|
-
zIndex: t.level
|
|
66
|
-
},
|
|
67
|
-
children: /* @__PURE__ */ s(C, { children: /* @__PURE__ */ s(
|
|
68
|
-
n.component,
|
|
69
|
-
{
|
|
70
|
-
handleTrigger: u,
|
|
71
|
-
useExpose: a,
|
|
72
|
-
dataSource: o,
|
|
73
|
-
componentNode: t,
|
|
74
|
-
options: t.options,
|
|
75
|
-
width: t.width,
|
|
76
|
-
height: t.height
|
|
77
|
-
}
|
|
78
|
-
) })
|
|
79
|
-
}
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
const I = "_fitScreenBody_1qzud_59", D = {
|
|
83
|
-
fitScreenBody: I
|
|
84
|
-
};
|
|
85
|
-
function z(e) {
|
|
86
|
-
const { dw: n = 1920, dh: t = 1080 } = e, c = l(null), r = l(null), o = m(() => n / t, [n, t]);
|
|
87
|
-
return b(c, () => {
|
|
88
|
-
if (!c.current || !r.current)
|
|
89
|
-
return;
|
|
90
|
-
const i = c.current.getBoundingClientRect();
|
|
91
|
-
if (i.width / i.height > o) {
|
|
92
|
-
const a = i.height / t, d = a * n, h = (i.width - d) / 2;
|
|
93
|
-
r.current.style.transform = `scale(${a}) translate3d(${h / a}px, 0, 0)`;
|
|
94
|
-
} else {
|
|
95
|
-
const a = i.width / n;
|
|
96
|
-
r.current.style.transform = `scale(${a})`;
|
|
97
|
-
}
|
|
98
|
-
r.current.style.width = `${n}px`, r.current.style.height = `${t}px`;
|
|
99
|
-
}), /* @__PURE__ */ s("div", { className: e == null ? void 0 : e.className, ref: c, style: e == null ? void 0 : e.style, children: /* @__PURE__ */ s(
|
|
100
|
-
"div",
|
|
101
|
-
{
|
|
102
|
-
className: $(e == null ? void 0 : e.bodyClassName, D.fitScreenBody),
|
|
103
|
-
style: e == null ? void 0 : e.bodyStyle,
|
|
104
|
-
ref: r,
|
|
105
|
-
children: e == null ? void 0 : e.children
|
|
106
|
-
}
|
|
107
|
-
) });
|
|
108
|
-
}
|
|
109
|
-
const U = "_preview_x6h89_59", j = {
|
|
110
|
-
preview: U
|
|
111
|
-
};
|
|
112
|
-
function Z(e) {
|
|
113
|
-
const { engine: n, json: t } = e, c = H(), { options: r } = q() || {}, o = B(), i = P(), u = m(() => {
|
|
114
|
-
var a;
|
|
115
|
-
return o.length ? (a = i == null ? void 0 : i.map) == null ? void 0 : a.call(i, (d) => /* @__PURE__ */ s(
|
|
116
|
-
k,
|
|
117
|
-
{
|
|
118
|
-
componentNode: d,
|
|
119
|
-
packages: o
|
|
120
|
-
},
|
|
121
|
-
d == null ? void 0 : d.id
|
|
122
|
-
)) : [];
|
|
123
|
-
}, [i, o]);
|
|
124
|
-
return g.useEffect(() => {
|
|
125
|
-
n.loadJSON(t).then(() => {
|
|
126
|
-
var a;
|
|
127
|
-
(a = e == null ? void 0 : e.onJSONLoad) == null || a.call(e);
|
|
128
|
-
});
|
|
129
|
-
}, []), /* @__PURE__ */ s(
|
|
130
|
-
z,
|
|
131
|
-
{
|
|
132
|
-
className: j.preview,
|
|
133
|
-
dw: (c == null ? void 0 : c.width) || 1920,
|
|
134
|
-
dh: (c == null ? void 0 : c.height) || 1080,
|
|
135
|
-
style: { background: r == null ? void 0 : r.whiteBoardColor },
|
|
136
|
-
children: /* @__PURE__ */ s(_, { preview: !0, style: { width: "100%", height: "100%" }, children: u })
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
export {
|
|
141
|
-
Z as default
|
|
142
|
-
};
|