@glodon-aiot/react-components 3.1.0-beta.16 → 3.2.1
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/dist/aiot-react-components.js +8186 -7514
- package/dist/aiot-react-components.umd.cjs +43 -40
- package/dist/src/Button/index.d.ts +2 -1
- package/dist/src/ConfirmableButton/index.d.ts +1 -1
- package/dist/src/Drawable/LineElement.d.ts +1 -0
- package/dist/src/Drawable/MarkersMap.d.ts +1 -0
- package/dist/src/Drawable/PolygonElement.d.ts +1 -0
- package/dist/src/Drawable/index.d.ts +2 -1
- package/dist/src/Drawable/state.d.ts +1 -1
- package/dist/src/ExpandablePannel/index.d.ts +1 -0
- package/dist/src/GOSImageMap/DrawableImageMap.d.ts +1 -0
- package/dist/src/IconButton/index.d.ts +1 -0
- package/dist/src/Iconfont/CloudIconfont.d.ts +1 -1
- package/dist/src/Iconfont/EdgeIconfont.d.ts +1 -1
- package/dist/src/Iconfont/index.d.ts +1 -1
- package/dist/src/ImageMap/index.d.ts +2 -1
- package/dist/src/MouseTip/index.d.ts +1 -0
- package/dist/src/PassMap/index.d.ts +2 -1
- package/dist/src/TrackMap/index.d.ts +2 -1
- package/dist/src/useBimface/index.d.ts +1 -1
- package/package.json +7 -9
- package/dist/es/Button/index.mjs +0 -47
- package/dist/es/ConfirmableButton/index.mjs +0 -59
- package/dist/es/Drawable/Drawable.mjs +0 -220
- package/dist/es/Drawable/LineElement.mjs +0 -27
- package/dist/es/Drawable/MarkerElement.mjs +0 -39
- package/dist/es/Drawable/PolygonElement.mjs +0 -88
- package/dist/es/Drawable/index.mjs +0 -23
- package/dist/es/Drawable/state.mjs +0 -134
- package/dist/es/ExpandablePannel/index.mjs +0 -93
- package/dist/es/GOSImageMap/DrawableImageMap.mjs +0 -50
- package/dist/es/GOSImageMap/ImageMap.mjs +0 -43
- package/dist/es/IconButton/index.mjs +0 -22
- package/dist/es/Iconfont/index.mjs +0 -8
- package/dist/es/ImageMap/index.mjs +0 -299
- package/dist/es/MouseTip/constant.mjs +0 -9
- package/dist/es/MouseTip/index.mjs +0 -53
- package/dist/es/MouseTip/utils.mjs +0 -70
- package/dist/es/PanoramaRecordPlayer/index.mjs +0 -84
- package/dist/es/PassMap/index.mjs +0 -42
- package/dist/es/TrackMap/PointTooltip.mjs +0 -86
- package/dist/es/TrackMap/TrackPoint.mjs +0 -57
- package/dist/es/TrackMap/index.mjs +0 -374
- package/dist/es/Zoom/index.mjs +0 -48
- package/dist/es/index.mjs +0 -39
- package/dist/es/useBimface/index.mjs +0 -148
- package/dist/es/utils/JSAsyncLoader.mjs +0 -7
- package/dist/lib/index.js +0 -2
- package/dist/src/Iconfont/font_3929209_z3fhml098hr.d.ts +0 -0
- package/dist/src/Iconfont/font_edge.d.ts +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { jsx as s, Fragment as O } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as R, useState as m, useEffect as p, useMemo as g } from "react";
|
|
3
|
-
import { diff as x } from "deep-object-diff";
|
|
4
|
-
import C from "./PointTooltip.mjs";
|
|
5
|
-
import P from "lodash/debounce";
|
|
6
|
-
const D = {
|
|
7
|
-
attributes: !0,
|
|
8
|
-
characterData: !0
|
|
9
|
-
}, F = (t) => {
|
|
10
|
-
const o = R(null), {
|
|
11
|
-
point: e,
|
|
12
|
-
open: h,
|
|
13
|
-
id: y,
|
|
14
|
-
x: n,
|
|
15
|
-
y: r,
|
|
16
|
-
r: i,
|
|
17
|
-
active: v = !1,
|
|
18
|
-
hidden: b = !1,
|
|
19
|
-
onPointClick: a,
|
|
20
|
-
getTooltipContainer: T
|
|
21
|
-
} = t, [c, k] = m(t.style), [w, u] = m(!0);
|
|
22
|
-
p(() => {
|
|
23
|
-
const l = x(c, t.style);
|
|
24
|
-
Object.keys(l).length && k(t.style);
|
|
25
|
-
}, [t.style]);
|
|
26
|
-
const f = g(() => /* @__PURE__ */ s("circle", {
|
|
27
|
-
id: `mark-${y}`,
|
|
28
|
-
className: "point point-active",
|
|
29
|
-
cx: n,
|
|
30
|
-
cy: r,
|
|
31
|
-
r: i,
|
|
32
|
-
ref: o,
|
|
33
|
-
style: c,
|
|
34
|
-
onClick: () => a && a(e)
|
|
35
|
-
}), [n, r, i, c, v]), d = g(() => {
|
|
36
|
-
const l = P(() => {
|
|
37
|
-
u(!0), console.log("show tooltip", e.id), console.log((/* @__PURE__ */ new Date()).valueOf());
|
|
38
|
-
}, 200);
|
|
39
|
-
return new MutationObserver(() => {
|
|
40
|
-
console.log("circle is changed"), console.log("hide tooltip", e.id), console.log((/* @__PURE__ */ new Date()).valueOf()), u(!1), l();
|
|
41
|
-
});
|
|
42
|
-
}, []);
|
|
43
|
-
return p(() => {
|
|
44
|
-
if (!(!o.current || !e.tooltipRender))
|
|
45
|
-
return d.observe(o.current, D), () => {
|
|
46
|
-
o.current && d.disconnect();
|
|
47
|
-
};
|
|
48
|
-
}, [n, r, i]), b ? /* @__PURE__ */ s(O, {}) : e.tooltipRender && w ? /* @__PURE__ */ s(C, {
|
|
49
|
-
open: h,
|
|
50
|
-
point: e,
|
|
51
|
-
getPopupContainer: T,
|
|
52
|
-
children: f
|
|
53
|
-
}) : f;
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
F as default
|
|
57
|
-
};
|
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
var Tt = Object.defineProperty, $t = Object.defineProperties;
|
|
2
|
-
var Ft = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var ht = Object.getOwnPropertySymbols;
|
|
4
|
-
var zt = Object.prototype.hasOwnProperty, Dt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var yt = (x, l, y) => l in x ? Tt(x, l, { enumerable: !0, configurable: !0, writable: !0, value: y }) : x[l] = y, b = (x, l) => {
|
|
6
|
-
for (var y in l || (l = {}))
|
|
7
|
-
zt.call(l, y) && yt(x, y, l[y]);
|
|
8
|
-
if (ht)
|
|
9
|
-
for (var y of ht(l))
|
|
10
|
-
Dt.call(l, y) && yt(x, y, l[y]);
|
|
11
|
-
return x;
|
|
12
|
-
}, X = (x, l) => $t(x, Ft(l));
|
|
13
|
-
import { jsx as d, jsxs as Y } from "react/jsx-runtime";
|
|
14
|
-
import { useRef as D, useState as u, useEffect as h } from "react";
|
|
15
|
-
import Mt from "antd/es/tooltip";
|
|
16
|
-
import Ot from "react-moveable";
|
|
17
|
-
/* empty css */import mt from "./TrackPoint.mjs";
|
|
18
|
-
import { ConfigProvider as Ct } from "antd";
|
|
19
|
-
const Ut = (x) => {
|
|
20
|
-
var ft;
|
|
21
|
-
const {
|
|
22
|
-
width: l,
|
|
23
|
-
height: y,
|
|
24
|
-
points: T,
|
|
25
|
-
scale: a,
|
|
26
|
-
pointSize: $ = 6,
|
|
27
|
-
direction: q,
|
|
28
|
-
activePointId: M,
|
|
29
|
-
style: g,
|
|
30
|
-
lineStyle: O,
|
|
31
|
-
pointStyle: k,
|
|
32
|
-
directionStyle: xt,
|
|
33
|
-
marks: ot,
|
|
34
|
-
resizable: H,
|
|
35
|
-
transform: r,
|
|
36
|
-
keepRatio: it = !1,
|
|
37
|
-
onPointClick: J,
|
|
38
|
-
onTransform: N,
|
|
39
|
-
onPointsChange: C,
|
|
40
|
-
onCancelResize: Wt,
|
|
41
|
-
actions: B = !0,
|
|
42
|
-
setIsSaved: st,
|
|
43
|
-
isSaved: ct = !1
|
|
44
|
-
} = x, S = D(null), w = D(null), s = D(null), E = D(null), K = D(null), [F, pt] = u(null), [Q, U] = u((r == null ? void 0 : r.scale) || [1, 1]), [V, Z] = u((r == null ? void 0 : r.rotate) || 0), [W, _] = u((r == null ? void 0 : r.translate) || [0, 0, 0, 0]), [bt, vt] = u([]), [f, Rt] = u(), [kt, at] = u(), [P, G] = u(H), [lt, tt] = u([]), [v, dt] = u(T), [I, Pt] = u(!0), [R, j] = u(), [m, z] = u(), [It, Nt] = u(typeof B != "boolean" ? B : B === !0 ? {} : null), A = ($ - $ / 4 * 0.9) * 2 / a;
|
|
45
|
-
h(() => {
|
|
46
|
-
Nt(typeof B != "boolean" ? B : B === !0 ? {} : null);
|
|
47
|
-
}, [B]);
|
|
48
|
-
const Bt = (t, e) => {
|
|
49
|
-
if (!t.length)
|
|
50
|
-
return;
|
|
51
|
-
let i;
|
|
52
|
-
return t.map((o) => {
|
|
53
|
-
var p;
|
|
54
|
-
if (!i) {
|
|
55
|
-
i = o;
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const c = /* @__PURE__ */ d("line", {
|
|
59
|
-
x1: Number.isFinite(i.x) ? i.x : 0,
|
|
60
|
-
y1: Number.isFinite(i.y) ? i.y : 0,
|
|
61
|
-
x2: Number.isFinite(o.x) ? o.x : 0,
|
|
62
|
-
y2: Number.isFinite(o.y) ? o.y : 0,
|
|
63
|
-
style: X(b(b({
|
|
64
|
-
stroke: "#1F66E1BF"
|
|
65
|
-
}, O), i.lineStyle), {
|
|
66
|
-
strokeWidth: Number((O == null ? void 0 : O.strokeWidth) || ((p = i.lineStyle) == null ? void 0 : p.strokeWidth) || 2) / e
|
|
67
|
-
})
|
|
68
|
-
}, o.id);
|
|
69
|
-
return i = o, c;
|
|
70
|
-
});
|
|
71
|
-
}, ut = new ResizeObserver(() => {
|
|
72
|
-
S.current && (w.current && (w.current.style.transform = "none", w.current.style.width = "auto", w.current.style.height = "100%"), w.current && (w.current.style.width = "100%", w.current.style.height = "100%"));
|
|
73
|
-
});
|
|
74
|
-
h(() => {
|
|
75
|
-
var t;
|
|
76
|
-
z((t = s.current) == null ? void 0 : t.getBoundingClientRect());
|
|
77
|
-
}, [g == null ? void 0 : g.left, g == null ? void 0 : g.top, g == null ? void 0 : g.width, g == null ? void 0 : g.height, a]), h(() => {
|
|
78
|
-
G(H);
|
|
79
|
-
}, [H]), h(() => {
|
|
80
|
-
dt(T || []);
|
|
81
|
-
}, [T, lt]), h(() => {
|
|
82
|
-
var t;
|
|
83
|
-
(!((t = s.current) != null && t.style.transform) || s.current.style.transform === "none") && (U((r == null ? void 0 : r.scale) || [1, 1]), Z((r == null ? void 0 : r.rotate) || 0), _((r == null ? void 0 : r.translate) || [0, 0, 0, 0]));
|
|
84
|
-
}, [(ft = s.current) == null ? void 0 : ft.style.transform]), h(() => {
|
|
85
|
-
!s.current || P || (s.current.style.transform = "none", U((r == null ? void 0 : r.scale) || [1, 1]), Z((r == null ? void 0 : r.rotate) || 0), _((r == null ? void 0 : r.translate) || [0, 0, 0, 0]));
|
|
86
|
-
}, [P]), h(() => {
|
|
87
|
-
if (S.current)
|
|
88
|
-
return ut.observe(S.current), () => {
|
|
89
|
-
S.current && ut.unobserve(S.current);
|
|
90
|
-
};
|
|
91
|
-
}, [S.current]), h(() => {
|
|
92
|
-
!F || !r || (F.throttleDragRotate = r.rotate, F.throttleScale = r.scale, F.throttleDrag = r.translate);
|
|
93
|
-
}, [F, r]), h(() => {
|
|
94
|
-
Rt(v == null ? void 0 : v.find((e) => e.id === M));
|
|
95
|
-
let t = v.map((e) => {
|
|
96
|
-
var p, nt, L;
|
|
97
|
-
const i = e.x, n = e.y, o = e.id === M, c = $ * (o ? 1.2 : 1) / a;
|
|
98
|
-
return /* @__PURE__ */ d(mt, {
|
|
99
|
-
open: I,
|
|
100
|
-
id: e.id,
|
|
101
|
-
point: e,
|
|
102
|
-
getTooltipContainer: () => K.current || document.body,
|
|
103
|
-
x: i,
|
|
104
|
-
y: n,
|
|
105
|
-
r: k != null && k.r || (p = e.pointStyle) != null && p.r ? Number((k == null ? void 0 : k.r) || ((nt = e.pointStyle) == null ? void 0 : nt.r)) / a : c / 2,
|
|
106
|
-
hidden: o,
|
|
107
|
-
style: X(b(b({
|
|
108
|
-
stroke: "#1F66E1BF",
|
|
109
|
-
fill: "#fff",
|
|
110
|
-
cursor: J ? "pointer" : "unset"
|
|
111
|
-
}, k), e.pointStyle), {
|
|
112
|
-
strokeWidth: Number(((L = e.pointStyle) == null ? void 0 : L.strokeWidth) || 2) / a,
|
|
113
|
-
r: void 0
|
|
114
|
-
}),
|
|
115
|
-
onPointClick: J
|
|
116
|
-
}, e.id);
|
|
117
|
-
}) || [];
|
|
118
|
-
vt(t);
|
|
119
|
-
}, [v, M, a, I]), h(() => {
|
|
120
|
-
var o, c, p;
|
|
121
|
-
if (!f) {
|
|
122
|
-
at(void 0);
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
const t = f.x, e = f.y, i = f.id === M, n = $ * (i ? 1.2 : 1) / a;
|
|
126
|
-
at(/* @__PURE__ */ Y("g", {
|
|
127
|
-
children: [q !== void 0 && /* @__PURE__ */ d("circle", {
|
|
128
|
-
id: `mark-${f.id}`,
|
|
129
|
-
cx: t,
|
|
130
|
-
cy: e,
|
|
131
|
-
r: `${A}`,
|
|
132
|
-
strokeDasharray: A * 2 * Math.PI,
|
|
133
|
-
strokeDashoffset: A * 2 * Math.PI / 360 * (360 - 60),
|
|
134
|
-
style: b({
|
|
135
|
-
transform: `rotate(${q + 240}deg)`,
|
|
136
|
-
transformOrigin: `${t}px ${e}px`,
|
|
137
|
-
strokeWidth: A * 2,
|
|
138
|
-
stroke: "#1F66E1BF",
|
|
139
|
-
fill: "transparent",
|
|
140
|
-
pointerEvents: "none"
|
|
141
|
-
}, xt)
|
|
142
|
-
}), /* @__PURE__ */ d(mt, {
|
|
143
|
-
open: I,
|
|
144
|
-
point: f,
|
|
145
|
-
getTooltipContainer: () => K.current || document.body,
|
|
146
|
-
x: t,
|
|
147
|
-
y: e,
|
|
148
|
-
r: (o = f.pointStyle) != null && o.r ? Number((c = f.pointStyle) == null ? void 0 : c.r) / a : n / 2,
|
|
149
|
-
style: X(b(b({
|
|
150
|
-
stroke: "#1F66E1BF",
|
|
151
|
-
fill: "#fff"
|
|
152
|
-
}, k), f.pointStyle), {
|
|
153
|
-
strokeWidth: Number(((p = f.pointStyle) == null ? void 0 : p.strokeWidth) || 2) / a,
|
|
154
|
-
r: void 0
|
|
155
|
-
}),
|
|
156
|
-
onPointClick: J
|
|
157
|
-
}, f.id)]
|
|
158
|
-
}, f.id));
|
|
159
|
-
}, [f, q, a, I]), h(() => {
|
|
160
|
-
s.current && setTimeout(() => {
|
|
161
|
-
var t, e;
|
|
162
|
-
j((t = s.current) == null ? void 0 : t.getBBox()), z((e = s.current) == null ? void 0 : e.getBoundingClientRect());
|
|
163
|
-
}, 100);
|
|
164
|
-
}, [r]), h(() => {
|
|
165
|
-
var e, i;
|
|
166
|
-
if (!s.current)
|
|
167
|
-
return;
|
|
168
|
-
j((e = s.current) == null ? void 0 : e.getBBox()), z((i = s.current) == null ? void 0 : i.getBoundingClientRect()), new ResizeObserver(() => {
|
|
169
|
-
var n, o;
|
|
170
|
-
j((n = s.current) == null ? void 0 : n.getBBox()), z((o = s.current) == null ? void 0 : o.getBoundingClientRect());
|
|
171
|
-
}).observe(s.current);
|
|
172
|
-
}, [s.current]), h(() => {
|
|
173
|
-
ct && (St(), st && st(!1));
|
|
174
|
-
}, [ct]);
|
|
175
|
-
const St = () => {
|
|
176
|
-
var n;
|
|
177
|
-
const t = (n = E.current) == null ? void 0 : n.getBoundingClientRect();
|
|
178
|
-
if (!t) {
|
|
179
|
-
C && C(T), G(!1);
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
const e = lt.map((o) => {
|
|
183
|
-
const c = o.getBoundingClientRect();
|
|
184
|
-
return {
|
|
185
|
-
id: o.id.split("-")[1],
|
|
186
|
-
x: (c.x + c.width / 2 - t.x) / a,
|
|
187
|
-
y: (c.y + c.height / 2 - t.y) / a
|
|
188
|
-
};
|
|
189
|
-
}), i = T.map((o) => {
|
|
190
|
-
const c = e == null ? void 0 : e.find((p) => p.id.toString() === o.id.toString());
|
|
191
|
-
return c ? b(b({}, o), c) : o;
|
|
192
|
-
});
|
|
193
|
-
dt(i), C && C(i.length ? i.map((o, c) => ({
|
|
194
|
-
id: o.id,
|
|
195
|
-
x: o.x,
|
|
196
|
-
y: o.y,
|
|
197
|
-
order: c
|
|
198
|
-
})) : T), G(!1);
|
|
199
|
-
}, wt = (t) => t.map((e) => {
|
|
200
|
-
const {
|
|
201
|
-
render: i,
|
|
202
|
-
renderData: n
|
|
203
|
-
} = e, o = e.x * a, c = e.y * a;
|
|
204
|
-
return /* @__PURE__ */ d(Mt, {
|
|
205
|
-
className: "track-map-marker-tooltip",
|
|
206
|
-
placement: "top",
|
|
207
|
-
title: i(n, b({}, e)),
|
|
208
|
-
open: !!n,
|
|
209
|
-
style: {
|
|
210
|
-
zIndex: 9999
|
|
211
|
-
},
|
|
212
|
-
children: /* @__PURE__ */ d("circle", {
|
|
213
|
-
id: `mark-${e.id}`,
|
|
214
|
-
cx: o,
|
|
215
|
-
cy: c,
|
|
216
|
-
r: $ / 2,
|
|
217
|
-
style: {
|
|
218
|
-
stroke: "#1F66E100",
|
|
219
|
-
strokeWidth: 2,
|
|
220
|
-
fill: "#fff0"
|
|
221
|
-
},
|
|
222
|
-
children: /* @__PURE__ */ d("span", {
|
|
223
|
-
children: n.label
|
|
224
|
-
})
|
|
225
|
-
})
|
|
226
|
-
}, e.id);
|
|
227
|
-
}), gt = R ? {
|
|
228
|
-
x: R.x + R.width / 2,
|
|
229
|
-
y: R.y + R.height / 2
|
|
230
|
-
} : {
|
|
231
|
-
x: 0,
|
|
232
|
-
y: 0
|
|
233
|
-
}, et = v.reduce((t, e) => [Math.min(t[0], e.x), Math.max(t[1], e.x)], [0, 0]), rt = v.reduce((t, e) => [Math.min(t[0], e.y), Math.max(t[1], e.y)], [0, 0]);
|
|
234
|
-
return /* @__PURE__ */ d(Ct, {
|
|
235
|
-
prefixCls: "g-rc",
|
|
236
|
-
children: /* @__PURE__ */ Y("div", {
|
|
237
|
-
className: "track-map",
|
|
238
|
-
style: {
|
|
239
|
-
width: "100%",
|
|
240
|
-
height: "100%"
|
|
241
|
-
},
|
|
242
|
-
ref: S,
|
|
243
|
-
children: [/* @__PURE__ */ d("svg", {
|
|
244
|
-
style: g,
|
|
245
|
-
ref: E,
|
|
246
|
-
viewBox: `0 0 ${l} ${y}`,
|
|
247
|
-
children: /* @__PURE__ */ Y("g", {
|
|
248
|
-
ref: s,
|
|
249
|
-
x: et[0],
|
|
250
|
-
y: rt[0],
|
|
251
|
-
width: et[1] - et[0],
|
|
252
|
-
height: rt[1] - rt[0],
|
|
253
|
-
style: {
|
|
254
|
-
transformOrigin: `${gt.x}px ${gt.y}px`,
|
|
255
|
-
cursor: P ? "url('./images/icon-move.svg') 16 16, move" : "unset",
|
|
256
|
-
transform: r && r.scale ? `${r.translate ? ` translate(${r.translate[0]}px, ${r.translate[1]}px)` : ""} rotate(${r.rotate}rad)${r.scale ? ` scale(${r.scale[0]}, ${r.scale[1]})` : ""}` : "none"
|
|
257
|
-
},
|
|
258
|
-
children: [R && /* @__PURE__ */ d("rect", {
|
|
259
|
-
x: R.x,
|
|
260
|
-
y: R.y,
|
|
261
|
-
width: R.width,
|
|
262
|
-
height: R.height,
|
|
263
|
-
fill: "#ff000004"
|
|
264
|
-
}), /* @__PURE__ */ d("g", {
|
|
265
|
-
className: "track-lines",
|
|
266
|
-
children: Bt((v == null ? void 0 : v.filter((t) => t.order > -1)) || [], a)
|
|
267
|
-
}), /* @__PURE__ */ Y("g", {
|
|
268
|
-
className: "track-points",
|
|
269
|
-
children: [bt, kt]
|
|
270
|
-
}), ot && /* @__PURE__ */ d("g", {
|
|
271
|
-
children: wt(ot)
|
|
272
|
-
})]
|
|
273
|
-
})
|
|
274
|
-
}), /* @__PURE__ */ d("div", {
|
|
275
|
-
className: "tooltip-container",
|
|
276
|
-
ref: K,
|
|
277
|
-
style: {
|
|
278
|
-
position: "fixed",
|
|
279
|
-
top: (m == null ? void 0 : m.y) || 0,
|
|
280
|
-
left: (m == null ? void 0 : m.x) || 0,
|
|
281
|
-
width: (m == null ? void 0 : m.width) || 0,
|
|
282
|
-
height: (m == null ? void 0 : m.height) || 0
|
|
283
|
-
}
|
|
284
|
-
}), P && s.current && E.current && /* @__PURE__ */ d(Ot, {
|
|
285
|
-
className: "path-moveable-control-box",
|
|
286
|
-
ref: (t) => {
|
|
287
|
-
pt(t);
|
|
288
|
-
},
|
|
289
|
-
keepRatio: it,
|
|
290
|
-
target: [s.current],
|
|
291
|
-
draggable: !0,
|
|
292
|
-
scalable: !0,
|
|
293
|
-
rotatable: !0,
|
|
294
|
-
padding: {
|
|
295
|
-
left: 10,
|
|
296
|
-
right: 10,
|
|
297
|
-
top: 10,
|
|
298
|
-
bottom: 10
|
|
299
|
-
},
|
|
300
|
-
onDrag: ({
|
|
301
|
-
target: t,
|
|
302
|
-
beforeDelta: e,
|
|
303
|
-
beforeDist: i,
|
|
304
|
-
left: n,
|
|
305
|
-
top: o,
|
|
306
|
-
right: c,
|
|
307
|
-
bottom: p,
|
|
308
|
-
delta: nt,
|
|
309
|
-
dist: L,
|
|
310
|
-
transform: Et,
|
|
311
|
-
clientX: jt,
|
|
312
|
-
clientY: At
|
|
313
|
-
}) => {
|
|
314
|
-
_(L), t.style.transform = Et;
|
|
315
|
-
},
|
|
316
|
-
onDragStart: ({
|
|
317
|
-
inputEvent: t
|
|
318
|
-
}) => {
|
|
319
|
-
t.stopPropagation();
|
|
320
|
-
},
|
|
321
|
-
onDragEnd: () => {
|
|
322
|
-
var e;
|
|
323
|
-
const t = (e = s.current) == null ? void 0 : e.getElementsByTagName("circle");
|
|
324
|
-
tt(t != null && t.length ? [...t] : []), N && N({
|
|
325
|
-
rotate: V,
|
|
326
|
-
translate: W,
|
|
327
|
-
scale: Q
|
|
328
|
-
}, t != null && t.length ? [...t] : [], E.current || void 0);
|
|
329
|
-
},
|
|
330
|
-
renderDirections: it ? ["nw", "ne", "sw", "se"] : ["n", "w", "e", "s", "nw", "ne", "sw", "se"],
|
|
331
|
-
onScale: ({
|
|
332
|
-
target: t,
|
|
333
|
-
scale: e,
|
|
334
|
-
transform: i
|
|
335
|
-
}) => {
|
|
336
|
-
var o;
|
|
337
|
-
U(e), t.style.transform = i;
|
|
338
|
-
const n = (o = s.current) == null ? void 0 : o.getElementsByTagName("circle");
|
|
339
|
-
tt(n != null && n.length ? [...n] : []), N && N({
|
|
340
|
-
rotate: V,
|
|
341
|
-
translate: W,
|
|
342
|
-
scale: e
|
|
343
|
-
}, n != null && n.length ? [...n] : [], E.current || void 0);
|
|
344
|
-
},
|
|
345
|
-
onRotate: ({
|
|
346
|
-
target: t,
|
|
347
|
-
dist: e,
|
|
348
|
-
transform: i
|
|
349
|
-
}) => {
|
|
350
|
-
var o;
|
|
351
|
-
Z(e), t.style.transform = i;
|
|
352
|
-
const n = (o = s.current) == null ? void 0 : o.getElementsByTagName("circle");
|
|
353
|
-
tt(n != null && n.length ? [...n] : []), N && N({
|
|
354
|
-
rotate: e,
|
|
355
|
-
translate: W,
|
|
356
|
-
scale: Q
|
|
357
|
-
}, n != null && n.length ? [...n] : [], E.current || void 0);
|
|
358
|
-
},
|
|
359
|
-
onRenderEnd: () => {
|
|
360
|
-
var e, i, n;
|
|
361
|
-
const t = (e = s.current) == null ? void 0 : e.getElementsByTagName("circle");
|
|
362
|
-
N && N({
|
|
363
|
-
rotate: V,
|
|
364
|
-
translate: W,
|
|
365
|
-
scale: Q
|
|
366
|
-
}, t != null && t.length ? [...t] : [], E.current || void 0), j((i = s.current) == null ? void 0 : i.getBBox()), z((n = s.current) == null ? void 0 : n.getBoundingClientRect());
|
|
367
|
-
}
|
|
368
|
-
})]
|
|
369
|
-
})
|
|
370
|
-
});
|
|
371
|
-
};
|
|
372
|
-
export {
|
|
373
|
-
Ut as default
|
|
374
|
-
};
|
package/dist/es/Zoom/index.mjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import m from "../IconButton/index.mjs";
|
|
3
|
-
import a from "../Iconfont/index.mjs";
|
|
4
|
-
import { useState as x, useEffect as u } from "react";
|
|
5
|
-
const y = (l) => {
|
|
6
|
-
const {
|
|
7
|
-
className: f,
|
|
8
|
-
style: h,
|
|
9
|
-
value: o,
|
|
10
|
-
min: i,
|
|
11
|
-
max: c,
|
|
12
|
-
step: n = 1,
|
|
13
|
-
onChange: r,
|
|
14
|
-
showText: p = !1
|
|
15
|
-
} = l, [t, s] = x(o != null ? o : 0);
|
|
16
|
-
return u(() => {
|
|
17
|
-
s(o != null ? o : 0);
|
|
18
|
-
}, [o]), /* @__PURE__ */ d("div", {
|
|
19
|
-
className: f,
|
|
20
|
-
style: h,
|
|
21
|
-
children: [/* @__PURE__ */ e(m, {
|
|
22
|
-
disabled: !!(c && c <= t),
|
|
23
|
-
onClick: () => {
|
|
24
|
-
r(t + n), s(t + n);
|
|
25
|
-
},
|
|
26
|
-
children: /* @__PURE__ */ e(a, {
|
|
27
|
-
type: "icon-fangda"
|
|
28
|
-
})
|
|
29
|
-
}), p && /* @__PURE__ */ d("div", {
|
|
30
|
-
style: {
|
|
31
|
-
width: 40,
|
|
32
|
-
textAlign: "center"
|
|
33
|
-
},
|
|
34
|
-
children: [Math.round(t * 100), "%"]
|
|
35
|
-
}), /* @__PURE__ */ e(m, {
|
|
36
|
-
disabled: !!(i && i >= t),
|
|
37
|
-
onClick: () => {
|
|
38
|
-
r(t - n), s(t - n);
|
|
39
|
-
},
|
|
40
|
-
children: /* @__PURE__ */ e(a, {
|
|
41
|
-
type: "icon-suoxiao"
|
|
42
|
-
})
|
|
43
|
-
})]
|
|
44
|
-
});
|
|
45
|
-
}, k = y;
|
|
46
|
-
export {
|
|
47
|
-
k as default
|
|
48
|
-
};
|
package/dist/es/index.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.storybook-button{font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;border:0;border-radius:3em;cursor:pointer;display:inline-block;line-height:1}.storybook-button--primary{color:#fff;background-color:#027bf4}.storybook-button--secondary{color:#333;background-color:transparent;box-shadow:#00000026 0 0 0 1px inset}.storybook-button--small{font-size:12px;padding:10px 16px}.storybook-button--medium{font-size:14px;padding:11px 20px}.storybook-button--large{font-size:16px;padding:12px 24px}
|
|
2
|
-
*{box-sizing:border-box}.g-expandable-pannel-wrap{inset:0;z-index:999}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar{position:absolute;right:0;top:0;background-color:#222836;z-index:9999}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar.collapsed{position:absolute;top:0;right:0;z-index:9;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar.expaned{padding:0}.g-expandable-pannel-wrap .g-expandable-pannel-expand-bar.expaned .g-icon-btn{background-color:#0000}.g-expandable-pannel-wrap .g-expandable-pannel{width:100%;height:100%;border:.5px solid #313A4D}.g-expandable-pannel-wrap .g-expandable-pannel-header{position:absolute;right:0;top:0;z-index:9;padding-right:28px;height:28px;display:flex;flex-direction:row-reverse}.g-expandable-pannel-wrap .g-expandable-pannel-body{opacity:.85;width:100%;height:100%}.g-expandable-pannel-wrap .g-expandable-pannel-body .icon{width:16px;height:16px}.g-expandable-pannel-wrap .g-expandable-pannel.full{width:100%!important;height:100%!important;inset:0 55px;z-index:9}.g-expandable-pannel-wrap .g-expandable-pannel.hidden{inset:0 -20000px}.g-expandable-pannel-wrap .g-expandable-pannel.hidden+.bar-btn{position:absolute;right:0!important;background:rgba(58,63,76,.5);border-radius:20px 0 0 20px}.g-expandable-pannel-wrap .g-expandable-pannel.normal{height:250px;overflow:hidden;padding:0}.g-expandable-pannel-wrap .g-expandable-pannel.full+.bar-btn{top:0;right:55px;z-index:99}.g-expandable-pannel-wrap .g-expandable-pannel.full~.cover{display:block;position:absolute;width:100vw;height:100vh;top:0;left:0;background:#00000066}.g-expandable-pannel-wrap .g-expandable-pannel.hiddern~.cover{display:none}.g-expandable-pannel-wrap .g-expandable-pannel .minimap-menu-pannel{width:134px;background:#ffffff;border:1px solid #ececec;box-shadow:2px 2px 6px #c0c0c040;border-radius:4px;padding:6px 12px}.g-expandable-pannel-wrap .g-expandable-pannel .minimap-menu-pannel .item-row{width:100%;display:flex;height:32px;align-items:center}.g-expandable-pannel-wrap .g-expandable-pannel .minimap-menu-pannel .item-row img{width:16px;height:16px;margin:0 8px}.g-expandable-pannel-wrap .g-expandable-pannel .status{display:block}.g-expandable-pannel-wrap .g-expandable-pannel .status.success:before{display:inline-block;content:"";width:12px;height:12px;background-color:#52c41a}.g-expandable-pannel-wrap .g-expandable-pannel .status.error:before{display:inline-block;content:"";width:12px;height:12px;background-color:#ff4d4f}.g-expandable-pannel-wrap .g-expandable-pannel .pass-confirm-wrap{position:absolute}
|
|
3
|
-
*{box-sizing:border-box}.g-icon-btn{height:28px;width:28px;line-height:28px;background-color:#222836;color:#b8c1d0;cursor:pointer;text-align:center;padding:0;border:none;font-size:16px;display:block}.g-icon-btn:hover{color:#fff;background:linear-gradient(180deg,#4e5b73 0%,#222836 100%);border-image:linear-gradient(180deg,#4e5b73 0%,#222836 100%),linear-gradient(180deg,#ffffff 16.67%,#d2d2d2 49.48%,#000000 73.44%,#e4e4e4 92.71%)}.g-icon-btn:disabled{color:#68707e;cursor:not-allowed;background:linear-gradient(180deg,#0a111d 0%,#222836 100%)}
|
|
4
|
-
.g-mouse-tip{display:inline-flex;justify-content:center;align-items:center;gap:4px;box-shadow:0 1px 10px #0000000d,0 4px 5px #00000014,0 2px 4px -1px #0000001f;border-radius:4px;background:#000;position:fixed;z-index:2000;padding:8px 12px}.g-mouse-tip-content{font-size:12px;font-style:normal;font-weight:400;color:#fff}
|
|
5
|
-
.pass-map{background:transparent}.pass-map .pass-area{position:absolute;background:rgba(255,77,79,.21);border:1px solid #00000000;z-index:1}.pass-map .pass-area-circle{border-radius:50%}.pass-map .pass-area__active{background:rgba(255,77,79,.25);border:1px solid #ff4d4f}
|
|
6
|
-
*{box-sizing:border-box}.image-map{position:relative;width:100%;height:100%;overflow:hidden;user-select:none;display:flex;justify-content:center}.image-map .image-map-pannel{width:100%;height:100%;user-select:none;display:flex;justify-content:center;align-items:center}.image-map .image-map-toolbar{position:absolute;width:auto;height:auto;bottom:12px;z-index:99;display:flex;align-items:center;gap:12px;background-color:#393939;padding:10px;border-radius:6px}.image-map .image-map-toolbar .zoom-controller{display:flex;height:100%;align-items:center;gap:12px;color:#fff}.image-map .image-map-toolbar .zoom-controller .g-icon-btn,.image-map .image-map-toolbar .zoom-controller .g-icon-btn button{background-color:unset;font-size:16px;border:.5px solid #6f6f6f;border-radius:2px;font-size:14px}.image-map .image-map-toolbar .zoom-controller .g-icon-btn .anticon,.image-map .image-map-toolbar .zoom-controller .g-icon-btn button .anticon{font-size:14px}.image-map .image-map-toolbar .zoom-controller.vertical{flex-direction:column}.image-map .image-map-toolbar .zoom-controller.vertical .g-icon-btn{background-color:red;margin-top:6px;border:none}.image-map .image-map-toolbar .zoom-controller.vertical .g-icon-btn .anticon{font-size:16px}.image-map .image-map-toolbar .zoom-controller.horizontal{flex-direction:row}.image-map .image-map-toolbar .line{width:1px;height:12px;border:.5px solid #e0e0e0}.image-map .image-map-toolbar .moveable-controller{background-color:unset;height:100%;border:.5px solid #6f6f6f;border-radius:2px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn{position:relative;border:none;border-radius:2px;background-color:unset;padding:0;display:flex;height:100%}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn .btn-change{display:flex;align-items:center;color:#fff;gap:10px;height:100%;margin-inline-end:unset;padding:4px 8px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn .btn-change svg{font-size:16px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn .anticon{font-size:24px}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn.active{color:#fff}.image-map .image-map-toolbar .moveable-controller .moveable-controller-btn:hover{background:linear-gradient(180deg,#4e5b73 0%,#222836 100%)}.image-map .image-map-toolbar .editing-controller{display:flex;gap:12px;align-items:center;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left}.image-map .image-map-toolbar .editing-controller .ant-btn-default{border:.5px solid #6f6f6f;border-radius:2px;background-color:unset;color:#fff;padding:4px 8px}.image-map .image-map-toolbar .editing-controller .ant-btn-default:hover{background:linear-gradient(180deg,#4e5b73 0%,#222836 100%)}.image-map .image-map-toolbar .editing-controller .ant-btn-primary{border-radius:2px;background-color:#0532a6;border:.5px solid #6f6f6f;color:#fff;padding:4px 8px}.image-map .image-map-toolbar .editing-controller .ant-btn-primary:hover{background:#0949d2}.image-map .image-map-toolbar .editing-controller .ant-btn-primary .save-detail{display:flex;align-items:center;color:#fff;gap:10px;height:100%}.image-map .image-map-toolbar .editing-controller .ant-btn-primary .save-detail svg{font-size:16px}
|
|
7
|
-
.track-map{z-index:10;position:relative}.track-map .point{cursor:pointer}.track-map .bottom-action{position:fixed;left:50%;bottom:10px;transform:translate(-50%);z-index:1000;display:flex;justify-content:center;align-items:flex-end;padding-bottom:12px}.track-map .bottom-action .bottom-pannel{background:white;height:48px;background:rgba(255,255,255,.9);border:1px solid #f8f8f8;box-shadow:2px 2px 4px #c0c0c040;border-radius:4px;padding:0 12px}:where(.css-ed5zg0)[class^=ant-popconfirm],:where(.css-ed5zg0)[class*=" ant-popconfirm"]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:14px;box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popconfirm]:before,:where(.css-ed5zg0)[class*=" ant-popconfirm"]:before,:where(.css-ed5zg0)[class^=ant-popconfirm]:after,:where(.css-ed5zg0)[class*=" ant-popconfirm"]:after{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popconfirm] [class^=ant-popconfirm],:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class^=ant-popconfirm],:where(.css-ed5zg0)[class^=ant-popconfirm] [class*=" ant-popconfirm"],:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class*=" ant-popconfirm"]{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popconfirm] [class^=ant-popconfirm]:before,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class^=ant-popconfirm]:before,:where(.css-ed5zg0)[class^=ant-popconfirm] [class*=" ant-popconfirm"]:before,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class*=" ant-popconfirm"]:before,:where(.css-ed5zg0)[class^=ant-popconfirm] [class^=ant-popconfirm]:after,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class^=ant-popconfirm]:after,:where(.css-ed5zg0)[class^=ant-popconfirm] [class*=" ant-popconfirm"]:after,:where(.css-ed5zg0)[class*=" ant-popconfirm"] [class*=" ant-popconfirm"]:after{box-sizing:border-box}:where(.css-ed5zg0).ant-popconfirm{z-index:1060}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-inner-content{color:#000000e0}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message{position:relative;margin-bottom:8px;color:#000000e0;font-size:14px;display:flex;flex-wrap:nowrap;align-items:start}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message>.ant-popconfirm-message-icon .anticon{color:#faad14;font-size:14px;flex:none;line-height:1;padding-top:4px}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message-title{flex:auto;margin-inline-start:8px}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-message-title-only{font-weight:600}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-description{position:relative;margin-inline-start:22px;margin-bottom:8px;color:#000000e0;font-size:14px}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-buttons{text-align:end}:where(.css-ed5zg0).ant-popconfirm .ant-popconfirm-buttons button{margin-inline-start:8px}:where(.css-ed5zg0)[class^=ant-popover],:where(.css-ed5zg0)[class*=" ant-popover"]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:14px;box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popover]:before,:where(.css-ed5zg0)[class*=" ant-popover"]:before,:where(.css-ed5zg0)[class^=ant-popover]:after,:where(.css-ed5zg0)[class*=" ant-popover"]:after{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popover] [class^=ant-popover],:where(.css-ed5zg0)[class*=" ant-popover"] [class^=ant-popover],:where(.css-ed5zg0)[class^=ant-popover] [class*=" ant-popover"],:where(.css-ed5zg0)[class*=" ant-popover"] [class*=" ant-popover"]{box-sizing:border-box}:where(.css-ed5zg0)[class^=ant-popover] [class^=ant-popover]:before,:where(.css-ed5zg0)[class*=" ant-popover"] [class^=ant-popover]:before,:where(.css-ed5zg0)[class^=ant-popover] [class*=" ant-popover"]:before,:where(.css-ed5zg0)[class*=" ant-popover"] [class*=" ant-popover"]:before,:where(.css-ed5zg0)[class^=ant-popover] [class^=ant-popover]:after,:where(.css-ed5zg0)[class*=" ant-popover"] [class^=ant-popover]:after,:where(.css-ed5zg0)[class^=ant-popover] [class*=" ant-popover"]:after,:where(.css-ed5zg0)[class*=" ant-popover"] [class*=" ant-popover"]:after{box-sizing:border-box}:where(.css-ed5zg0).ant-popover{box-sizing:border-box;margin:0;padding:0;color:#000000e0;font-size:14px;line-height:1.57142857;list-style:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";position:absolute;top:0;left:0;z-index:1030;font-weight:400;white-space:normal;text-align:start;cursor:auto;user-select:text;--antd-arrow-background-color: #ffffff}:where(.css-ed5zg0).ant-popover-rtl{direction:rtl}:where(.css-ed5zg0).ant-popover-hidden{display:none}:where(.css-ed5zg0).ant-popover .ant-popover-content{position:relative}:where(.css-ed5zg0).ant-popover .ant-popover-inner{background-color:#fff;background-clip:padding-box;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:12px}:where(.css-ed5zg0).ant-popover .ant-popover-title{min-width:177px;margin-bottom:8px;color:#000000e0;font-weight:600}:where(.css-ed5zg0).ant-popover .ant-popover-inner-content{color:#000000e0;padding:0}:where(.css-ed5zg0).ant-popover .ant-popover-arrow{position:absolute;z-index:1;display:block;pointer-events:none;width:16px;height:16px;overflow:hidden;border:0}:where(.css-ed5zg0).ant-popover .ant-popover-arrow:before{position:absolute;bottom:0;inset-inline-start:0;width:16px;height:8px;background:var(--antd-arrow-background-color);clip-path:polygon(1.65685425px 100%,50% 1.65685425px,14.34314575px 100%,1.65685425px 100%);clip-path:path("M 0 8 A 4 4 0 0 0 2.82842712474619 6.82842712474619 L 6.585786437626905 3.0710678118654755 A 2 2 0 0 1 9.414213562373096 3.0710678118654755 L 13.17157287525381 6.82842712474619 A 4 4 0 0 0 16 8 Z");content:""}:where(.css-ed5zg0).ant-popover .ant-popover-arrow:after{content:"";position:absolute;width:8.97056275px;height:8.97056275px;bottom:0;inset-inline:0;margin:auto;border-radius:0 0 2px;transform:translateY(50%) rotate(-135deg);box-shadow:2px 2px 5px #0000000d;z-index:0;background:transparent}:where(.css-ed5zg0).ant-popover .ant-popover-arrow:before{background:var(--antd-arrow-background-color)}:where(.css-ed5zg0).ant-popover-placement-top .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-topLeft .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-topRight .ant-popover-arrow{bottom:0;transform:translateY(100%) rotate(180deg)}:where(.css-ed5zg0).ant-popover-placement-top .ant-popover-arrow{left:50%;transform:translate(-50%) translateY(100%) rotate(180deg)}:where(.css-ed5zg0).ant-popover-placement-topLeft .ant-popover-arrow{left:12px}:where(.css-ed5zg0).ant-popover-placement-topRight .ant-popover-arrow{right:12px}:where(.css-ed5zg0).ant-popover-placement-bottom .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-bottomLeft .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-bottomRight .ant-popover-arrow{top:0;transform:translateY(-100%)}:where(.css-ed5zg0).ant-popover-placement-bottom .ant-popover-arrow{left:50%;transform:translate(-50%) translateY(-100%)}:where(.css-ed5zg0).ant-popover-placement-bottomLeft .ant-popover-arrow{left:12px}:where(.css-ed5zg0).ant-popover-placement-bottomRight .ant-popover-arrow{right:12px}:where(.css-ed5zg0).ant-popover-placement-left .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-leftTop .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-leftBottom .ant-popover-arrow{right:0;transform:translate(100%) rotate(90deg)}:where(.css-ed5zg0).ant-popover-placement-left .ant-popover-arrow{top:50%;transform:translateY(-50%) translate(100%) rotate(90deg)}:where(.css-ed5zg0).ant-popover-placement-leftTop .ant-popover-arrow{top:12px}:where(.css-ed5zg0).ant-popover-placement-leftBottom .ant-popover-arrow{bottom:12px}:where(.css-ed5zg0).ant-popover-placement-right .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-rightTop .ant-popover-arrow,:where(.css-ed5zg0).ant-popover-placement-rightBottom .ant-popover-arrow{left:0;transform:translate(-100%) rotate(-90deg)}:where(.css-ed5zg0).ant-popover-placement-right .ant-popover-arrow{top:50%;transform:translateY(-50%) translate(-100%) rotate(-90deg)}:where(.css-ed5zg0).ant-popover-placement-rightTop .ant-popover-arrow{top:12px}:where(.css-ed5zg0).ant-popover-placement-rightBottom .ant-popover-arrow{bottom:12px}:where(.css-ed5zg0).ant-popover-pure{position:relative;max-width:none;margin:16px;display:inline-block}:where(.css-ed5zg0).ant-popover-pure .ant-popover-content{display:inline-block}:where(.css-ed5zg0).ant-popover.ant-popover-blue{--antd-arrow-background-color: #1677ff}:where(.css-ed5zg0).ant-popover.ant-popover-blue .ant-popover-inner{background-color:#1677ff}:where(.css-ed5zg0).ant-popover.ant-popover-blue .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-purple{--antd-arrow-background-color: #722ed1}:where(.css-ed5zg0).ant-popover.ant-popover-purple .ant-popover-inner{background-color:#722ed1}:where(.css-ed5zg0).ant-popover.ant-popover-purple .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-cyan{--antd-arrow-background-color: #13c2c2}:where(.css-ed5zg0).ant-popover.ant-popover-cyan .ant-popover-inner{background-color:#13c2c2}:where(.css-ed5zg0).ant-popover.ant-popover-cyan .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-green{--antd-arrow-background-color: #52c41a}:where(.css-ed5zg0).ant-popover.ant-popover-green .ant-popover-inner{background-color:#52c41a}:where(.css-ed5zg0).ant-popover.ant-popover-green .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-magenta{--antd-arrow-background-color: #eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-magenta .ant-popover-inner{background-color:#eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-magenta .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-pink{--antd-arrow-background-color: #eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-pink .ant-popover-inner{background-color:#eb2f96}:where(.css-ed5zg0).ant-popover.ant-popover-pink .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-red{--antd-arrow-background-color: #f5222d}:where(.css-ed5zg0).ant-popover.ant-popover-red .ant-popover-inner{background-color:#f5222d}:where(.css-ed5zg0).ant-popover.ant-popover-red .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-orange{--antd-arrow-background-color: #fa8c16}:where(.css-ed5zg0).ant-popover.ant-popover-orange .ant-popover-inner{background-color:#fa8c16}:where(.css-ed5zg0).ant-popover.ant-popover-orange .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-yellow{--antd-arrow-background-color: #fadb14}:where(.css-ed5zg0).ant-popover.ant-popover-yellow .ant-popover-inner{background-color:#fadb14}:where(.css-ed5zg0).ant-popover.ant-popover-yellow .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-volcano{--antd-arrow-background-color: #fa541c}:where(.css-ed5zg0).ant-popover.ant-popover-volcano .ant-popover-inner{background-color:#fa541c}:where(.css-ed5zg0).ant-popover.ant-popover-volcano .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-geekblue{--antd-arrow-background-color: #2f54eb}:where(.css-ed5zg0).ant-popover.ant-popover-geekblue .ant-popover-inner{background-color:#2f54eb}:where(.css-ed5zg0).ant-popover.ant-popover-geekblue .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-lime{--antd-arrow-background-color: #a0d911}:where(.css-ed5zg0).ant-popover.ant-popover-lime .ant-popover-inner{background-color:#a0d911}:where(.css-ed5zg0).ant-popover.ant-popover-lime .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-popover.ant-popover-gold{--antd-arrow-background-color: #faad14}:where(.css-ed5zg0).ant-popover.ant-popover-gold .ant-popover-inner{background-color:#faad14}:where(.css-ed5zg0).ant-popover.ant-popover-gold .ant-popover-arrow{background:transparent}:where(.css-ed5zg0).ant-zoom-big-enter,:where(.css-ed5zg0).ant-zoom-big-appear{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}:where(.css-ed5zg0).ant-zoom-big-leave{animation-duration:.2s;animation-fill-mode:both;animation-play-state:paused}:where(.css-ed5zg0).ant-zoom-big-enter.ant-zoom-big-enter-active,:where(.css-ed5zg0).ant-zoom-big-appear.ant-zoom-big-appear-active{animation-name:css-ed5zg0-antZoomBigIn;animation-play-state:running}:where(.css-ed5zg0).ant-zoom-big-leave.ant-zoom-big-leave-active{animation-name:css-ed5zg0-antZoomBigOut;animation-play-state:running;pointer-events:none}:where(.css-ed5zg0).ant-zoom-big-enter,:where(.css-ed5zg0).ant-zoom-big-appear{transform:scale(0);opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1)}:where(.css-ed5zg0).ant-zoom-big-enter-prepare,:where(.css-ed5zg0).ant-zoom-big-appear-prepare{transform:none}:where(.css-ed5zg0).ant-zoom-big-leave{animation-timing-function:cubic-bezier(.78,.14,.15,.86)}.track-map .tooltip-container{pointer-events:none!important}.track-map .tooltip-container>*{pointer-events:initial}.g-expandable-pannel-wrap.collapsed .tooltip-container{display:none}.g-rc-tooltip{position:absolute!important}.g-rc-tooltip .g-rc-tooltip-arrow{height:10px}`)),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
8
|
-
import { default as f } from "./Button/index.mjs";
|
|
9
|
-
import { default as m } from "./ExpandablePannel/index.mjs";
|
|
10
|
-
import { default as s } from "./IconButton/index.mjs";
|
|
11
|
-
import { default as x } from "./Iconfont/index.mjs";
|
|
12
|
-
import { default as n } from "./ImageMap/index.mjs";
|
|
13
|
-
import { default as i } from "./PanoramaRecordPlayer/index.mjs";
|
|
14
|
-
import { default as I } from "./TrackMap/index.mjs";
|
|
15
|
-
import { default as b } from "./MouseTip/index.mjs";
|
|
16
|
-
import { default as B } from "./PassMap/index.mjs";
|
|
17
|
-
import { default as D } from "./Zoom/index.mjs";
|
|
18
|
-
import { useBimface as k } from "./useBimface/index.mjs";
|
|
19
|
-
import "react/jsx-runtime";
|
|
20
|
-
import "ahooks";
|
|
21
|
-
import "react";
|
|
22
|
-
import { default as A } from "./GOSImageMap/DrawableImageMap.mjs";
|
|
23
|
-
import { DrawableContext as E, calAngle as R } from "./Drawable/index.mjs";
|
|
24
|
-
export {
|
|
25
|
-
f as Button,
|
|
26
|
-
E as DrawableContext,
|
|
27
|
-
A as DrawableImageMap,
|
|
28
|
-
m as ExpandablePannel,
|
|
29
|
-
s as IconButton,
|
|
30
|
-
x as Iconfont,
|
|
31
|
-
n as ImageMap,
|
|
32
|
-
b as MouseTip,
|
|
33
|
-
i as PanoramaRecordPlayer,
|
|
34
|
-
B as PassMap,
|
|
35
|
-
I as TrackMap,
|
|
36
|
-
D as Zoom,
|
|
37
|
-
R as calAngle,
|
|
38
|
-
k as useBimface
|
|
39
|
-
};
|