leiting-bim 2.2.51 → 2.2.53
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/leiting-bim.es.js +1 -1
- package/leitingbim.css +1 -1
- package/package.json +1 -1
- package/plugins/cesium-vue/dist/components/card-content.js +1 -1
- package/plugins/cesium-vue/dist/components/echarts-pro.js +1 -1
- package/plugins/cesium-vue/dist/components/marker-bubble.js +140 -145
- package/plugins/cesium-vue/dist/components/marker-manage.js +1 -1
- package/plugins/cesium-vue/dist/index-BPvWIRdW.js +134 -0
- package/plugins/cesium-vue/dist/{index-2sxRAf1D.js → index-DcRdyqU6.js} +1 -1
- package/plugins/cesium-vue/dist/{index-0EaF-0Fy.js → index-qGfk85JD.js} +1 -1
- package/plugins/cesium-vue/dist/index.js +2 -2
- package/plugins/cesium-vue/dist/index-Kqi_S6KA.js +0 -403
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { b as
|
|
4
|
-
const
|
|
1
|
+
import { p as ue, c as fe, w as ce } from "../create-DynflqE1.js";
|
|
2
|
+
import { defineComponent as pe, ref as r, computed as E, onUnmounted as ve, openBlock as ee, createElementBlock as te, normalizeClass as Y, unref as X, createElementVNode as ae, normalizeStyle as j, toDisplayString as de, createCommentVNode as be, watch as se } from "vue";
|
|
3
|
+
import { b as xe } from "../index-BPvWIRdW.js";
|
|
4
|
+
const me = {
|
|
5
5
|
text: { type: String, default: "文字" },
|
|
6
6
|
textStyle: {
|
|
7
7
|
type: Object,
|
|
@@ -29,99 +29,94 @@ const ye = {
|
|
|
29
29
|
onSetOtherOffset: {
|
|
30
30
|
type: Function
|
|
31
31
|
}
|
|
32
|
-
},
|
|
33
|
-
name: `${
|
|
32
|
+
}, he = /* @__PURE__ */ pe({
|
|
33
|
+
name: `${ue}-marker`,
|
|
34
34
|
__name: "MarkerBubble",
|
|
35
|
-
props:
|
|
35
|
+
props: me,
|
|
36
36
|
emits: ["setOtherOffset"],
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
let
|
|
42
|
-
if (
|
|
43
|
-
n =
|
|
44
|
-
let
|
|
45
|
-
o =
|
|
46
|
-
} else if (
|
|
47
|
-
n =
|
|
48
|
-
let
|
|
49
|
-
o =
|
|
50
|
-
} else if (
|
|
51
|
-
o = u,
|
|
52
|
-
let
|
|
53
|
-
n =
|
|
54
|
-
} else if (
|
|
55
|
-
o =
|
|
56
|
-
let
|
|
57
|
-
n =
|
|
37
|
+
setup(ne, { emit: le }) {
|
|
38
|
+
const a = ne, M = fe("marker"), G = le, F = r(), { width: C, height: I } = xe(F), _ = r(!1), q = E(() => {
|
|
39
|
+
let l = a.otherOffset?.x || 0, c = a.otherOffset?.y || 0;
|
|
40
|
+
m.value && (a.isCanDraggable || _.value) && (l = b.value || 0, c = x.value || 0);
|
|
41
|
+
let p = (a.pixelOffset?.x || 0) + l, L = (a.pixelOffset?.y || 0) + c, e = 0, t = 0, s = e + p, v = e + p + C.value / 2, P = e + p + C.value, u = t + L, $ = t + L + I.value / 2, k = t + L + I.value, n = 0, o = 0, w = 0, O = 0, J = 0, K = 0, re = 0, ie = 0, Q = 24, f = 4, Z = 4, i = "", R = "", N = "";
|
|
42
|
+
if (e < s && t >= u && t <= k) {
|
|
43
|
+
n = s, w = s;
|
|
44
|
+
let d = t < $ ? u : $;
|
|
45
|
+
o = d + f, O = d + f + Math.min(Q, I.value / 2 - f - Z), i = "left";
|
|
46
|
+
} else if (e > P && t >= u && t <= k) {
|
|
47
|
+
n = P, w = P;
|
|
48
|
+
let d = t < $ ? u : $;
|
|
49
|
+
o = d + f, O = d + f + Math.min(Q, I.value / 2 - f - Z), i = "right";
|
|
50
|
+
} else if (t < u) {
|
|
51
|
+
o = u, O = u;
|
|
52
|
+
let d = e < v ? s : v;
|
|
53
|
+
n = d + f, w = d + f + Math.min(Q, C.value / 2 - f - Z), i = "top";
|
|
54
|
+
} else if (t > k) {
|
|
55
|
+
o = k, O = k;
|
|
56
|
+
let d = e < v ? s : v;
|
|
57
|
+
n = d + f, w = d + f + Math.min(Q, C.value / 2 - f - Z), i = "bottom";
|
|
58
58
|
} else
|
|
59
|
-
n = 0,
|
|
60
|
-
|
|
61
|
-
let
|
|
62
|
-
(
|
|
63
|
-
let
|
|
59
|
+
n = 0, w = 0, o = 0, O = 0;
|
|
60
|
+
e >= n && e <= w ? (J = Math.abs(e - n) + Math.abs(e - w), re = -Math.abs(e - n), R = "mid") : (J = Math.max(Math.abs(e - n), Math.abs(e - w)), re = e < n ? 0 : -J, R = e < n ? "left" : "right"), t >= o && t <= O ? (K = Math.abs(t - o) + Math.abs(t - O), ie = -Math.abs(t - o), N = "mid") : (K = Math.max(Math.abs(t - o), Math.abs(t - O)), ie = t < o ? 0 : -K, N = t < o ? "top" : "bottom");
|
|
61
|
+
let T = 0, z = 0, U = 0, V = 0, H = 0, W = 0;
|
|
62
|
+
(i == "top" || i == "bottom") && (z = i == "top" ? 0 : "100%", V = i == "top" ? "100%" : 0, W = i == "top" ? "100%" : 0, R == "left" ? (T = 0, U = n + "px", H = "100%") : R == "right" ? (T = "100%", U = 0, H = Math.abs(w - n) + "px") : R == "mid" && (T = Math.abs(e - n) + "px", U = 0, H = "100%")), (i == "left" || i == "right") && (T = i == "left" ? 0 : "100%", U = i == "left" ? "100%" : 0, H = i == "left" ? "100%" : 0, N == "top" ? (z = 0, V = o + "px", W = "100%") : N == "bottom" ? (z = "100%", V = 0, W = Math.abs(O - o) + "px") : N == "mid" && (z = Math.abs(t - o) + "px", V = 0, W = "100%"));
|
|
63
|
+
let ye = `polygon(${T} ${z}, ${U} ${V},${H} ${W})`;
|
|
64
64
|
return {
|
|
65
|
-
...
|
|
66
|
-
width:
|
|
67
|
-
height:
|
|
68
|
-
clipPath:
|
|
65
|
+
...a.lineStyle,
|
|
66
|
+
width: J + "px",
|
|
67
|
+
height: K + "px",
|
|
68
|
+
clipPath: ye,
|
|
69
69
|
position: "absolute",
|
|
70
70
|
top: 0,
|
|
71
71
|
left: 0,
|
|
72
|
-
transform: `translate(${-
|
|
72
|
+
transform: `translate(${-p + re + l}px , ${-L + ie + c}px)`
|
|
73
73
|
};
|
|
74
|
-
}),
|
|
74
|
+
}), b = r(0), x = r(0), m = r(!1), D = E(() => m.value && (a.isCanDraggable || _.value) ? {
|
|
75
75
|
width: "max-content",
|
|
76
|
-
transform: `translate(${
|
|
76
|
+
transform: `translate(${b.value}px, ${x.value}px)`
|
|
77
77
|
} : {
|
|
78
78
|
width: "max-content",
|
|
79
|
-
transform: `translate(${
|
|
80
|
-
}), {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
p.value = !1;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}), (r, O) => (Q(), Z("div", {
|
|
105
|
-
class: X(E(M).b("bubble"))
|
|
79
|
+
transform: `translate(${a.otherOffset?.x || 0}px, ${a.otherOffset?.y || 0}px)`
|
|
80
|
+
}), y = r(null), h = r({ x: 0, y: 0 }), g = r({ x: 0, y: 0 });
|
|
81
|
+
function B() {
|
|
82
|
+
window.removeEventListener("pointermove", A), window.removeEventListener("pointerup", S), window.removeEventListener("pointercancel", S);
|
|
83
|
+
}
|
|
84
|
+
function A(l) {
|
|
85
|
+
!m.value || y.value !== l.pointerId || (b.value = g.value.x + l.clientX - h.value.x, x.value = g.value.y + l.clientY - h.value.y);
|
|
86
|
+
}
|
|
87
|
+
function S(l) {
|
|
88
|
+
if (y.value !== l.pointerId) return;
|
|
89
|
+
const c = { x: b.value, y: x.value }, p = c.x !== g.value.x || c.y !== g.value.y;
|
|
90
|
+
y.value = null, m.value = !1, B(), p && G("setOtherOffset", c);
|
|
91
|
+
}
|
|
92
|
+
function oe(l) {
|
|
93
|
+
a.onCanDraggable && (_.value = !!a.onCanDraggable()), (a.isCanDraggable || _.value) && (l.preventDefault(), y.value = l.pointerId, h.value = { x: l.clientX, y: l.clientY }, g.value = {
|
|
94
|
+
x: a.otherOffset?.x || 0,
|
|
95
|
+
y: a.otherOffset?.y || 0
|
|
96
|
+
}, b.value = g.value.x, x.value = g.value.y, m.value = !0, window.addEventListener("pointermove", A), window.addEventListener("pointerup", S), window.addEventListener("pointercancel", S));
|
|
97
|
+
}
|
|
98
|
+
return ve(B), (l, c) => (ee(), te("div", {
|
|
99
|
+
class: Y(X(M).b("bubble"))
|
|
106
100
|
}, [
|
|
107
|
-
|
|
101
|
+
ae("div", {
|
|
108
102
|
ref_key: "el",
|
|
109
|
-
ref:
|
|
110
|
-
style: j(
|
|
103
|
+
ref: F,
|
|
104
|
+
style: j(D.value),
|
|
105
|
+
onPointerdown: oe
|
|
111
106
|
}, [
|
|
112
|
-
|
|
107
|
+
a.text ? (ee(), te("div", {
|
|
113
108
|
key: 0,
|
|
114
|
-
class: X(
|
|
115
|
-
style: j(
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
|
|
119
|
-
class: X(
|
|
120
|
-
style: j(
|
|
109
|
+
class: Y(X(M).be("bubble", "name")),
|
|
110
|
+
style: j(a.textStyle)
|
|
111
|
+
}, de(a.text), 7)) : be("", !0)
|
|
112
|
+
], 36),
|
|
113
|
+
ae("div", {
|
|
114
|
+
class: Y(X(M).be("bubble", "line")),
|
|
115
|
+
style: j(q.value)
|
|
121
116
|
}, null, 6)
|
|
122
117
|
], 2));
|
|
123
118
|
}
|
|
124
|
-
}),
|
|
119
|
+
}), ge = {
|
|
125
120
|
text: { type: String, default: "文字" },
|
|
126
121
|
textStyle: {
|
|
127
122
|
type: Object,
|
|
@@ -146,56 +141,56 @@ const ye = {
|
|
|
146
141
|
type: Object,
|
|
147
142
|
default: () => ({ x: 0, y: 0 })
|
|
148
143
|
}
|
|
149
|
-
},
|
|
150
|
-
name: `${
|
|
144
|
+
}, we = /* @__PURE__ */ pe({
|
|
145
|
+
name: `${ue}-marker-bubble-line`,
|
|
151
146
|
__name: "MarkerBubbleLine",
|
|
152
|
-
props:
|
|
147
|
+
props: ge,
|
|
153
148
|
emits: ["setOtherOffset", "setLineStake"],
|
|
154
|
-
setup(
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
() =>
|
|
149
|
+
setup(ne, { emit: le }) {
|
|
150
|
+
const a = ne, M = fe("marker"), G = le, F = r(), C = r(), { width: I, height: _ } = xe(F), q = r(!1), b = r(!1), x = r(null), m = r({ x: 0, y: 0 }), D = r({ x: 0, y: 0 }), y = r(a.otherOffset?.x ?? 0), h = r(a.otherOffset?.y ?? 0), g = E(() => a.isCanDraggable || q.value);
|
|
151
|
+
se(
|
|
152
|
+
() => a.otherOffset,
|
|
158
153
|
(e) => {
|
|
159
|
-
|
|
154
|
+
b.value || (y.value = e?.x ?? 0, h.value = e?.y ?? 0);
|
|
160
155
|
},
|
|
161
156
|
{ deep: !0, immediate: !0 }
|
|
162
157
|
);
|
|
163
|
-
const
|
|
164
|
-
const e = (
|
|
158
|
+
const B = E(() => {
|
|
159
|
+
const e = (a.pixelOffset?.x ?? 0) + y.value, t = (a.pixelOffset?.y ?? 0) + h.value;
|
|
165
160
|
return {
|
|
166
161
|
x: e,
|
|
167
|
-
y:
|
|
168
|
-
width:
|
|
169
|
-
height:
|
|
162
|
+
y: t,
|
|
163
|
+
width: I.value ?? 0,
|
|
164
|
+
height: _.value ?? 0
|
|
170
165
|
};
|
|
171
|
-
}),
|
|
166
|
+
}), A = E(() => ({
|
|
172
167
|
width: "max-content",
|
|
173
|
-
transform: `translate(${
|
|
174
|
-
})),
|
|
175
|
-
const e =
|
|
176
|
-
top: { x: e.x +
|
|
177
|
-
right: { x: e.x + e.width, y: e.y +
|
|
178
|
-
bottom: { x: e.x +
|
|
179
|
-
left: { x: e.x, y: e.y +
|
|
168
|
+
transform: `translate(${B.value.x}px, ${B.value.y}px)`
|
|
169
|
+
})), S = E(() => {
|
|
170
|
+
const e = B.value, t = e.width / 2, s = e.height / 2, v = {
|
|
171
|
+
top: { x: e.x + t, y: e.y },
|
|
172
|
+
right: { x: e.x + e.width, y: e.y + s },
|
|
173
|
+
bottom: { x: e.x + t, y: e.y + e.height },
|
|
174
|
+
left: { x: e.x, y: e.y + s }
|
|
180
175
|
};
|
|
181
|
-
let
|
|
182
|
-
return Object.keys(
|
|
183
|
-
const
|
|
184
|
-
|
|
176
|
+
let P = "top", u = v.top, $ = Number.POSITIVE_INFINITY;
|
|
177
|
+
return Object.keys(v).forEach((k) => {
|
|
178
|
+
const n = v[k], o = n.x * n.x + n.y * n.y;
|
|
179
|
+
o < $ && ($ = o, P = k, u = n);
|
|
185
180
|
}), {
|
|
186
|
-
stake:
|
|
187
|
-
anchorPoint:
|
|
181
|
+
stake: P,
|
|
182
|
+
anchorPoint: u
|
|
188
183
|
};
|
|
189
184
|
});
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
se(
|
|
186
|
+
S,
|
|
192
187
|
(e) => {
|
|
193
|
-
|
|
188
|
+
G("setLineStake", e);
|
|
194
189
|
},
|
|
195
190
|
{ deep: !0, immediate: !0 }
|
|
196
191
|
);
|
|
197
|
-
const
|
|
198
|
-
const { x: e, y:
|
|
192
|
+
const oe = E(() => {
|
|
193
|
+
const { x: e, y: t } = S.value.anchorPoint, s = -e, v = -t, P = Math.hypot(s, v), u = Math.atan2(v, s) * (180 / Math.PI);
|
|
199
194
|
return {
|
|
200
195
|
position: "absolute",
|
|
201
196
|
top: 0,
|
|
@@ -204,53 +199,53 @@ const ye = {
|
|
|
204
199
|
transformOrigin: "0 50%",
|
|
205
200
|
height: "1px",
|
|
206
201
|
backgroundColor: "#fff",
|
|
207
|
-
...
|
|
208
|
-
width: `${
|
|
209
|
-
transform: `translate(${e}px, ${
|
|
202
|
+
...a.lineStyle,
|
|
203
|
+
width: `${P}px`,
|
|
204
|
+
transform: `translate(${e}px, ${t}px) rotate(${u}deg)`
|
|
210
205
|
};
|
|
211
|
-
}),
|
|
212
|
-
window.removeEventListener("pointermove",
|
|
213
|
-
},
|
|
214
|
-
!
|
|
215
|
-
},
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
},
|
|
220
|
-
|
|
206
|
+
}), l = () => {
|
|
207
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", p), window.removeEventListener("pointercancel", p);
|
|
208
|
+
}, c = (e) => {
|
|
209
|
+
!b.value || x.value !== e.pointerId || (y.value = D.value.x + e.clientX - m.value.x, h.value = D.value.y + e.clientY - m.value.y);
|
|
210
|
+
}, p = (e) => {
|
|
211
|
+
if (x.value !== e.pointerId) return;
|
|
212
|
+
const t = { x: y.value, y: h.value }, s = t.x !== D.value.x || t.y !== D.value.y;
|
|
213
|
+
b.value = !1, x.value = null, l(), s && G("setOtherOffset", t);
|
|
214
|
+
}, L = (e) => {
|
|
215
|
+
a.onCanDraggable && (q.value = !!a.onCanDraggable()), g.value && (e.preventDefault(), x.value = e.pointerId, b.value = !0, m.value = { x: e.clientX, y: e.clientY }, D.value = { x: y.value, y: h.value }, window.addEventListener("pointermove", c), window.addEventListener("pointerup", p), window.addEventListener("pointercancel", p));
|
|
221
216
|
};
|
|
222
|
-
return
|
|
223
|
-
|
|
224
|
-
}), (e,
|
|
225
|
-
class: X(
|
|
217
|
+
return ve(() => {
|
|
218
|
+
l();
|
|
219
|
+
}), (e, t) => (ee(), te("div", {
|
|
220
|
+
class: Y(X(M).b("bubble-line"))
|
|
226
221
|
}, [
|
|
227
|
-
|
|
222
|
+
ae("div", {
|
|
228
223
|
ref_key: "dragRef",
|
|
229
|
-
ref:
|
|
230
|
-
class: X(
|
|
231
|
-
style: j(
|
|
232
|
-
onPointerdown:
|
|
224
|
+
ref: F,
|
|
225
|
+
class: Y(X(M).be("bubble-line", "drag")),
|
|
226
|
+
style: j(A.value),
|
|
227
|
+
onPointerdown: L
|
|
233
228
|
}, [
|
|
234
|
-
|
|
229
|
+
a.text ? (ee(), te("div", {
|
|
235
230
|
key: 0,
|
|
236
|
-
class: X(
|
|
237
|
-
style: j(
|
|
238
|
-
},
|
|
231
|
+
class: Y(X(M).be("bubble-line", "name")),
|
|
232
|
+
style: j(a.textStyle)
|
|
233
|
+
}, de(a.text), 7)) : be("", !0)
|
|
239
234
|
], 38),
|
|
240
|
-
|
|
235
|
+
ae("div", {
|
|
241
236
|
ref_key: "lineRef",
|
|
242
|
-
ref:
|
|
243
|
-
class: X(
|
|
244
|
-
style: j(
|
|
245
|
-
onPointerdown:
|
|
237
|
+
ref: C,
|
|
238
|
+
class: Y(X(M).be("bubble-line", "line")),
|
|
239
|
+
style: j(oe.value),
|
|
240
|
+
onPointerdown: L
|
|
246
241
|
}, null, 38)
|
|
247
242
|
], 2));
|
|
248
243
|
}
|
|
249
|
-
}), ke =
|
|
244
|
+
}), ke = ce(he), De = ce(we);
|
|
250
245
|
export {
|
|
251
246
|
ke as CxMarkerBubble,
|
|
252
247
|
De as CxMarkerBubbleLine,
|
|
253
248
|
ke as default,
|
|
254
|
-
|
|
255
|
-
|
|
249
|
+
ge as markerBubbleLineProps,
|
|
250
|
+
me as markerBubbleProps
|
|
256
251
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../create-DynflqE1.js";
|
|
2
|
-
import { a as s, b as M, c as o, M as k, R as n, a as t, m as g } from "../index-
|
|
2
|
+
import { a as s, b as M, c as o, M as k, R as n, a as t, m as g } from "../index-qGfk85JD.js";
|
|
3
3
|
export {
|
|
4
4
|
s as CxMarkerManage,
|
|
5
5
|
M as CxMarkerPreview,
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { onMounted as S, nextTick as W, getCurrentScope as B, onScopeDispose as O, getCurrentInstance as A, shallowRef as w, isRef as I, watch as x, shallowReadonly as M, toValue as R, computed as y } from "vue";
|
|
2
|
+
function m(e) {
|
|
3
|
+
return B() ? (O(e), !0) : !1;
|
|
4
|
+
}
|
|
5
|
+
const g = typeof window < "u" && typeof document < "u";
|
|
6
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7
|
+
function _(e) {
|
|
8
|
+
return Array.isArray(e) ? e : [e];
|
|
9
|
+
}
|
|
10
|
+
function k(e) {
|
|
11
|
+
return A();
|
|
12
|
+
}
|
|
13
|
+
function z(e, t = !0, s) {
|
|
14
|
+
k() ? S(e, s) : t ? e() : W(e);
|
|
15
|
+
}
|
|
16
|
+
function E(e, t = 1e3, s = {}) {
|
|
17
|
+
const {
|
|
18
|
+
immediate: l = !0,
|
|
19
|
+
immediateCallback: f = !1
|
|
20
|
+
} = s;
|
|
21
|
+
let i = null;
|
|
22
|
+
const o = w(!1);
|
|
23
|
+
function u() {
|
|
24
|
+
i && (clearInterval(i), i = null);
|
|
25
|
+
}
|
|
26
|
+
function d() {
|
|
27
|
+
o.value = !1, u();
|
|
28
|
+
}
|
|
29
|
+
function a() {
|
|
30
|
+
const r = R(t);
|
|
31
|
+
r <= 0 || (o.value = !0, f && e(), u(), o.value && (i = setInterval(e, r)));
|
|
32
|
+
}
|
|
33
|
+
if (l && g && a(), I(t) || typeof t == "function") {
|
|
34
|
+
const r = x(t, () => {
|
|
35
|
+
o.value && g && a();
|
|
36
|
+
});
|
|
37
|
+
m(r);
|
|
38
|
+
}
|
|
39
|
+
return m(d), {
|
|
40
|
+
isActive: M(o),
|
|
41
|
+
pause: d,
|
|
42
|
+
resume: a
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const C = g ? window : void 0;
|
|
46
|
+
function h(e) {
|
|
47
|
+
var t;
|
|
48
|
+
const s = R(e);
|
|
49
|
+
return (t = s?.$el) != null ? t : s;
|
|
50
|
+
}
|
|
51
|
+
// @__NO_SIDE_EFFECTS__
|
|
52
|
+
function G() {
|
|
53
|
+
const e = w(!1), t = A();
|
|
54
|
+
return t && S(() => {
|
|
55
|
+
e.value = !0;
|
|
56
|
+
}, t), e;
|
|
57
|
+
}
|
|
58
|
+
// @__NO_SIDE_EFFECTS__
|
|
59
|
+
function T(e) {
|
|
60
|
+
const t = /* @__PURE__ */ G();
|
|
61
|
+
return y(() => (t.value, !!e()));
|
|
62
|
+
}
|
|
63
|
+
function V(e, t, s = {}) {
|
|
64
|
+
const { window: l = C, ...f } = s;
|
|
65
|
+
let i;
|
|
66
|
+
const o = /* @__PURE__ */ T(() => l && "ResizeObserver" in l), u = () => {
|
|
67
|
+
i && (i.disconnect(), i = void 0);
|
|
68
|
+
}, d = y(() => {
|
|
69
|
+
const n = R(e);
|
|
70
|
+
return Array.isArray(n) ? n.map((c) => h(c)) : [h(n)];
|
|
71
|
+
}), a = x(
|
|
72
|
+
d,
|
|
73
|
+
(n) => {
|
|
74
|
+
if (u(), o.value && l) {
|
|
75
|
+
i = new ResizeObserver(t);
|
|
76
|
+
for (const c of n)
|
|
77
|
+
c && i.observe(c, f);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{ immediate: !0, flush: "post" }
|
|
81
|
+
), r = () => {
|
|
82
|
+
u(), a();
|
|
83
|
+
};
|
|
84
|
+
return m(r), {
|
|
85
|
+
isSupported: o,
|
|
86
|
+
stop: r
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function H(e, t = { width: 0, height: 0 }, s = {}) {
|
|
90
|
+
const { window: l = C, box: f = "content-box" } = s, i = y(() => {
|
|
91
|
+
var n, c;
|
|
92
|
+
return (c = (n = h(e)) == null ? void 0 : n.namespaceURI) == null ? void 0 : c.includes("svg");
|
|
93
|
+
}), o = w(t.width), u = w(t.height), { stop: d } = V(
|
|
94
|
+
e,
|
|
95
|
+
([n]) => {
|
|
96
|
+
const c = f === "border-box" ? n.borderBoxSize : f === "content-box" ? n.contentBoxSize : n.devicePixelContentBoxSize;
|
|
97
|
+
if (l && i.value) {
|
|
98
|
+
const p = h(e);
|
|
99
|
+
if (p) {
|
|
100
|
+
const v = p.getBoundingClientRect();
|
|
101
|
+
o.value = v.width, u.value = v.height;
|
|
102
|
+
}
|
|
103
|
+
} else if (c) {
|
|
104
|
+
const p = _(c);
|
|
105
|
+
o.value = p.reduce((v, { inlineSize: b }) => v + b, 0), u.value = p.reduce((v, { blockSize: b }) => v + b, 0);
|
|
106
|
+
} else
|
|
107
|
+
o.value = n.contentRect.width, u.value = n.contentRect.height;
|
|
108
|
+
},
|
|
109
|
+
s
|
|
110
|
+
);
|
|
111
|
+
z(() => {
|
|
112
|
+
const n = h(e);
|
|
113
|
+
n && (o.value = "offsetWidth" in n ? n.offsetWidth : t.width, u.value = "offsetHeight" in n ? n.offsetHeight : t.height);
|
|
114
|
+
});
|
|
115
|
+
const a = x(
|
|
116
|
+
() => h(e),
|
|
117
|
+
(n) => {
|
|
118
|
+
o.value = n ? t.width : 0, u.value = n ? t.height : 0;
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
function r() {
|
|
122
|
+
d(), a();
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
width: o,
|
|
126
|
+
height: u,
|
|
127
|
+
stop: r
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export {
|
|
131
|
+
E as a,
|
|
132
|
+
H as b,
|
|
133
|
+
V as u
|
|
134
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as OP, w as kP } from "./create-DynflqE1.js";
|
|
2
2
|
import { ref as pC, onMounted as dC, nextTick as VP, onBeforeUnmount as gC, markRaw as BP, defineComponent as zP, useTemplateRef as GP, watch as FP, openBlock as HP, createElementBlock as WP, normalizeStyle as UP, createElementVNode as $P, unref as f_ } from "vue";
|
|
3
|
-
import { u as YP, a as XP } from "./index-
|
|
3
|
+
import { u as YP, a as XP } from "./index-BPvWIRdW.js";
|
|
4
4
|
import { g as ZP } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation.
|
|
@@ -6,7 +6,7 @@ import { CxMarkerBubbleLine as Pe, CxMarkerBubble as Oe } from "./components/mar
|
|
|
6
6
|
import { CxMarkerDefault as te } from "./components/marker-default.js";
|
|
7
7
|
import { CxMarkerHtml as St } from "./components/marker-html.js";
|
|
8
8
|
import { CxMarkerText as Ee } from "./components/marker-text.js";
|
|
9
|
-
import { i as se, b as Ie, a as L, S as z, d as pe, c as ce, e as _e, f as Pt, g as Ae, M as Ne, h as re, j as Ot, k as Et, l as It, m as ke, n as He, o as _t, p as At, q as Nt, r as kt, s as Ht, t as De, u as Dt, v as Ft, w as Wt, x as Rt } from "./index-
|
|
9
|
+
import { i as se, b as Ie, a as L, S as z, d as pe, c as ce, e as _e, f as Pt, g as Ae, M as Ne, h as re, j as Ot, k as Et, l as It, m as ke, n as He, o as _t, p as At, q as Nt, r as kt, s as Ht, t as De, u as Dt, v as Ft, w as Wt, x as Rt } from "./index-DcRdyqU6.js";
|
|
10
10
|
const Bt = {
|
|
11
11
|
text: { type: String, default: "" },
|
|
12
12
|
svg: { type: Object, default: () => ({}) },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as m, unref as f, onUnmounted as c, defineAsyncComponent as u } from "vue";
|
|
2
2
|
import { CxMarkerDefault as C } from "./components/marker-default.js";
|
|
3
3
|
import { CxMarkerHtml as x } from "./components/marker-html.js";
|
|
4
|
-
import { C as p, a as l, b as M } from "./index-
|
|
5
|
-
import { M as W } from "./index-
|
|
4
|
+
import { C as p, a as l, b as M } from "./index-qGfk85JD.js";
|
|
5
|
+
import { M as W } from "./index-qGfk85JD.js";
|
|
6
6
|
import { CxMarkerText as g } from "./components/marker-text.js";
|
|
7
7
|
import { CxMarkerBubble as d, CxMarkerBubbleLine as k } from "./components/marker-bubble.js";
|
|
8
8
|
import { CxBasicVideo as P } from "./components/basic-video.js";
|