leiting-bim 2.2.50 → 2.2.52

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.
@@ -1,7 +1,7 @@
1
- import { p as oe, c as se, w as ie } from "../create-DynflqE1.js";
2
- import { defineComponent as ue, ref as i, computed as C, openBlock as Q, createElementBlock as Z, normalizeClass as X, unref as E, createElementVNode as ee, normalizeStyle as j, toDisplayString as fe, createCommentVNode as ce, watch as re, onUnmounted as pe } from "vue";
3
- import { b as ve, c as xe, d as he } from "../index-Kqi_S6KA.js";
4
- const ye = {
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
- }, de = /* @__PURE__ */ ue({
33
- name: `${oe}-marker`,
32
+ }, he = /* @__PURE__ */ pe({
33
+ name: `${ue}-marker`,
34
34
  __name: "MarkerBubble",
35
- props: ye,
35
+ props: me,
36
36
  emits: ["setOtherOffset"],
37
- setup(te, { emit: ae }) {
38
- const t = te, M = se("marker"), W = ae, D = i(), { width: _, height: L } = ve(D), P = i(!1), G = C(() => {
39
- let r = t.otherOffset?.x || 0, O = t.otherOffset?.y || 0;
40
- p.value && (t.isCanDraggable || P.value) && (r = w.value || 0, O = m.value || 0);
41
- let B = (t.pixelOffset?.x || 0) + r, $ = (t.pixelOffset?.y || 0) + O, l = 0, a = 0, k = l + B, e = l + B + _.value / 2, s = l + B + _.value, u = a + $, x = a + $ + L.value / 2, g = a + $ + L.value, n = 0, o = 0, v = 0, f = 0, Y = 0, A = 0, le = 0, ne = 0, J = 24, b = 4, K = 4, c = "", F = "", R = "";
42
- if (l < k && a >= u && a <= g) {
43
- n = k, v = k;
44
- let h = a < x ? u : x;
45
- o = h + b, f = h + b + Math.min(J, L.value / 2 - b - K), c = "left";
46
- } else if (l > s && a >= u && a <= g) {
47
- n = s, v = s;
48
- let h = a < x ? u : x;
49
- o = h + b, f = h + b + Math.min(J, L.value / 2 - b - K), c = "right";
50
- } else if (a < u) {
51
- o = u, f = u;
52
- let h = l < e ? k : e;
53
- n = h + b, v = h + b + Math.min(J, _.value / 2 - b - K), c = "top";
54
- } else if (a > g) {
55
- o = g, f = g;
56
- let h = l < e ? k : e;
57
- n = h + b, v = h + b + Math.min(J, _.value / 2 - b - K), c = "bottom";
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, v = 0, o = 0, f = 0;
60
- l >= n && l <= v ? (Y = Math.abs(l - n) + Math.abs(l - v), le = -Math.abs(l - n), F = "mid") : (Y = Math.max(Math.abs(l - n), Math.abs(l - v)), le = l < n ? 0 : -Y, F = l < n ? "left" : "right"), a >= o && a <= f ? (A = Math.abs(a - o) + Math.abs(a - f), ne = -Math.abs(a - o), R = "mid") : (A = Math.max(Math.abs(a - o), Math.abs(a - f)), ne = a < o ? 0 : -A, R = a < o ? "top" : "bottom");
61
- let N = 0, T = 0, V = 0, z = 0, H = 0, U = 0;
62
- (c == "top" || c == "bottom") && (T = c == "top" ? 0 : "100%", z = c == "top" ? "100%" : 0, U = c == "top" ? "100%" : 0, F == "left" ? (N = 0, V = n + "px", H = "100%") : F == "right" ? (N = "100%", V = 0, H = Math.abs(v - n) + "px") : F == "mid" && (N = Math.abs(l - n) + "px", V = 0, H = "100%")), (c == "left" || c == "right") && (N = c == "left" ? 0 : "100%", V = c == "left" ? "100%" : 0, H = c == "left" ? "100%" : 0, R == "top" ? (T = 0, z = o + "px", U = "100%") : R == "bottom" ? (T = "100%", z = 0, U = Math.abs(f - o) + "px") : R == "mid" && (T = Math.abs(a - o) + "px", z = 0, U = "100%"));
63
- let be = `polygon(${N} ${T}, ${V} ${z},${H} ${U})`;
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
- ...t.lineStyle,
66
- width: Y + "px",
67
- height: A + "px",
68
- clipPath: be,
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(${-B + le + r}px , ${-$ + ne + O}px)`
72
+ transform: `translate(${-p + re + l}px , ${-L + ie + c}px)`
73
73
  };
74
- }), y = i(0), d = i(0), w = i(0), m = i(0), p = i(!1), S = C(() => p.value && (t.isCanDraggable || P.value) ? {
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(${w.value}px, ${m.value}px)`
76
+ transform: `translate(${b.value}px, ${x.value}px)`
77
77
  } : {
78
78
  width: "max-content",
79
- transform: `translate(${t.otherOffset?.x || 0}px, ${t.otherOffset?.y || 0}px)`
80
- }), { elementPositionX: q, elementPositionY: I } = xe(D);
81
- return he(D, {
82
- initialValue: { x: q.value, y: I.value },
83
- onStart: () => {
84
- y.value = q.value, d.value = I.value, setTimeout(() => {
85
- t.onCanDraggable && (P.value = t.onCanDraggable()), p.value = !0;
86
- });
87
- },
88
- onMove: (r) => {
89
- (t.isCanDraggable || P.value) && p.value && (w.value = r.x - y.value + (t.otherOffset?.x || 0), m.value = r.y - d.value + (t.otherOffset?.y || 0));
90
- },
91
- onEnd: (r) => {
92
- if (!(r.x == 0 && r.y == 0) && !(r.x == y.value && r.y == d.value)) {
93
- if (t.isCanDraggable || P.value) {
94
- w.value = r.x - y.value + (t.otherOffset?.x || 0), m.value = r.y - d.value + (t.otherOffset?.y || 0);
95
- const O = {
96
- x: r.x - y.value + (t.otherOffset?.x || 0),
97
- y: r.y - d.value + (t.otherOffset?.y || 0)
98
- };
99
- W("setOtherOffset", O);
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
- ee("div", {
101
+ ae("div", {
108
102
  ref_key: "el",
109
- ref: D,
110
- style: j(S.value)
103
+ ref: F,
104
+ style: j(D.value),
105
+ onPointerdown: oe
111
106
  }, [
112
- t.text ? (Q(), Z("div", {
107
+ a.text ? (ee(), te("div", {
113
108
  key: 0,
114
- class: X(E(M).be("bubble", "name")),
115
- style: j(t.textStyle)
116
- }, fe(t.text), 7)) : ce("", !0)
117
- ], 4),
118
- ee("div", {
119
- class: X(E(M).be("bubble", "line")),
120
- style: j(G.value)
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
- }), me = {
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
- }, ge = /* @__PURE__ */ ue({
150
- name: `${oe}-marker-bubble-line`,
144
+ }, we = /* @__PURE__ */ pe({
145
+ name: `${ue}-marker-bubble-line`,
151
146
  __name: "MarkerBubbleLine",
152
- props: me,
147
+ props: ge,
153
148
  emits: ["setOtherOffset", "setLineStake"],
154
- setup(te, { emit: ae }) {
155
- const t = te, M = se("marker"), W = ae, D = i(), _ = i(), { width: L, height: P } = ve(D), G = i(!1), y = i(!1), d = i(null), w = i({ x: 0, y: 0 }), m = i({ x: 0, y: 0 }), p = i(t.otherOffset?.x ?? 0), S = i(t.otherOffset?.y ?? 0), q = C(() => t.isCanDraggable || G.value);
156
- re(
157
- () => t.otherOffset,
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
- y.value || (p.value = e?.x ?? 0, S.value = e?.y ?? 0);
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 I = C(() => {
164
- const e = (t.pixelOffset?.x ?? 0) + p.value, s = (t.pixelOffset?.y ?? 0) + S.value;
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: s,
168
- width: L.value ?? 0,
169
- height: P.value ?? 0
162
+ y: t,
163
+ width: I.value ?? 0,
164
+ height: _.value ?? 0
170
165
  };
171
- }), r = C(() => ({
166
+ }), A = E(() => ({
172
167
  width: "max-content",
173
- transform: `translate(${I.value.x}px, ${I.value.y}px)`
174
- })), O = C(() => {
175
- const e = I.value, s = e.width / 2, u = e.height / 2, x = {
176
- top: { x: e.x + s, y: e.y },
177
- right: { x: e.x + e.width, y: e.y + u },
178
- bottom: { x: e.x + s, y: e.y + e.height },
179
- left: { x: e.x, y: e.y + u }
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 g = "top", n = x.top, o = Number.POSITIVE_INFINITY;
182
- return Object.keys(x).forEach((v) => {
183
- const f = x[v], Y = f.x * f.x + f.y * f.y;
184
- Y < o && (o = Y, g = v, n = f);
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: g,
187
- anchorPoint: n
181
+ stake: P,
182
+ anchorPoint: u
188
183
  };
189
184
  });
190
- re(
191
- O,
185
+ se(
186
+ S,
192
187
  (e) => {
193
- W("setLineStake", e);
188
+ G("setLineStake", e);
194
189
  },
195
190
  { deep: !0, immediate: !0 }
196
191
  );
197
- const B = C(() => {
198
- const { x: e, y: s } = O.value.anchorPoint, u = -e, x = -s, g = Math.hypot(u, x), n = Math.atan2(x, u) * (180 / Math.PI);
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
- ...t.lineStyle,
208
- width: `${g}px`,
209
- transform: `translate(${e}px, ${s}px) rotate(${n}deg)`
202
+ ...a.lineStyle,
203
+ width: `${P}px`,
204
+ transform: `translate(${e}px, ${t}px) rotate(${u}deg)`
210
205
  };
211
- }), $ = () => {
212
- window.removeEventListener("pointermove", l), window.removeEventListener("pointerup", a), window.removeEventListener("pointercancel", a);
213
- }, l = (e) => {
214
- !y.value || d.value !== e.pointerId || (p.value = m.value.x + e.clientX - w.value.x, S.value = m.value.y + e.clientY - w.value.y);
215
- }, a = (e) => {
216
- if (d.value !== e.pointerId) return;
217
- const s = { x: p.value, y: S.value }, u = s.x !== m.value.x || s.y !== m.value.y;
218
- y.value = !1, d.value = null, $(), u && W("setOtherOffset", s);
219
- }, k = (e) => {
220
- t.onCanDraggable && (G.value = !!t.onCanDraggable()), q.value && (e.preventDefault(), d.value = e.pointerId, y.value = !0, w.value = { x: e.clientX, y: e.clientY }, m.value = { x: p.value, y: S.value }, window.addEventListener("pointermove", l), window.addEventListener("pointerup", a), window.addEventListener("pointercancel", a));
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 pe(() => {
223
- $();
224
- }), (e, s) => (Q(), Z("div", {
225
- class: X(E(M).b("bubble-line"))
217
+ return ve(() => {
218
+ l();
219
+ }), (e, t) => (ee(), te("div", {
220
+ class: Y(X(M).b("bubble-line"))
226
221
  }, [
227
- ee("div", {
222
+ ae("div", {
228
223
  ref_key: "dragRef",
229
- ref: D,
230
- class: X(E(M).be("bubble-line", "drag")),
231
- style: j(r.value),
232
- onPointerdown: k
224
+ ref: F,
225
+ class: Y(X(M).be("bubble-line", "drag")),
226
+ style: j(A.value),
227
+ onPointerdown: L
233
228
  }, [
234
- t.text ? (Q(), Z("div", {
229
+ a.text ? (ee(), te("div", {
235
230
  key: 0,
236
- class: X(E(M).be("bubble-line", "name")),
237
- style: j(t.textStyle)
238
- }, fe(t.text), 7)) : ce("", !0)
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
- ee("div", {
235
+ ae("div", {
241
236
  ref_key: "lineRef",
242
- ref: _,
243
- class: X(E(M).be("bubble-line", "line")),
244
- style: j(B.value),
245
- onPointerdown: k
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 = ie(de), De = ie(ge);
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
- me as markerBubbleLineProps,
255
- ye as markerBubbleProps
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-0EaF-0Fy.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-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-Kqi_S6KA.js";
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-2sxRAf1D.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-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-0EaF-0Fy.js";
5
- import { M as W } from "./index-0EaF-0Fy.js";
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";