leiting-bim 2.1.101 → 2.1.103

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,11 +1,11 @@
1
- import { w as be } from "../create-DynflqE1.js";
2
- import { h as w, markRaw as x, render as G, defineComponent as Me, inject as _e, onMounted as Pe, watch as Y, onUnmounted as Le, renderSlot as Te, unref as we } from "vue";
3
- import { M as D, H as X, a as $ } from "../HtmlOverlayLabelPool-B1gUt-p1.js";
4
- import { CxCardCarousel as q } from "./card-carousel.js";
1
+ import { w as _e } from "../create-DynflqE1.js";
2
+ import { h as S, markRaw as E, render as D, defineComponent as Le, inject as Pe, onMounted as Te, watch as X, onUnmounted as we, renderSlot as xe, unref as Se } from "vue";
3
+ import { M as I, H as q, a as H } from "../HtmlOverlayLabelPool-B1gUt-p1.js";
4
+ import { CxCardCarousel as j } from "./card-carousel.js";
5
5
  import { CxMarkerDefault as Z } from "./marker-default.js";
6
- import { CxMarkerHtml as xe } from "./marker-html.js";
7
- import { i as F, b as ie, a as _, S as O, d as j, c as K, e as re, f as Se, g as ae, M as oe, h as H, j as Ee, k as Ge, l as De, m as ne, n as se, o as Ie, p as Oe, q as Ae, r as ke, s as Be, t as le, u as $e, v as He, w as Re, x as ze } from "../index-Kdqw0FJN.js";
8
- const Fe = {
6
+ import { CxMarkerHtml as Ee } from "./marker-html.js";
7
+ import { i as K, b as re, a as L, S as A, d as J, c as N, e as ae, f as Ge, g as oe, M as ne, h as R, j as De, k as Ie, l as Oe, m as se, n as le, o as Ae, p as ke, q as Be, r as $e, s as He, t as he, u as Re, v as ze, w as Fe, x as Ke } from "../index-Kdqw0FJN.js";
8
+ const Ne = {
9
9
  id: { type: String, default: "marker" },
10
10
  Cesium: { type: Object },
11
11
  viewer: { type: Object },
@@ -16,8 +16,8 @@ const Fe = {
16
16
  themeConfig: { type: Object }
17
17
  // Optional override
18
18
  };
19
- var I = /* @__PURE__ */ ((r) => (r.左建选中模型 = "MODEL_LEFT_CLICK", r.标记左键点击 = "TAG_LEFT_CLICK", r.标记移入 = "TAG_MOUSEENTER", r.标记移出 = "TAG_MOUSELEAVE", r.模型位置保存 = "SAVE_REGION", r.模型加载完成 = "MODEL_READY", r))(I || {});
20
- class Ke {
19
+ var O = /* @__PURE__ */ ((r) => (r.左建选中模型 = "MODEL_LEFT_CLICK", r.标记左键点击 = "TAG_LEFT_CLICK", r.标记移入 = "TAG_MOUSEENTER", r.标记移出 = "TAG_MOUSELEAVE", r.模型位置保存 = "SAVE_REGION", r.模型加载完成 = "MODEL_READY", r))(O || {});
20
+ class We {
21
21
  Cesium;
22
22
  viewer;
23
23
  labelPool;
@@ -45,18 +45,16 @@ class Ke {
45
45
  _cameraDirty = !1;
46
46
  _tileLoadListener = null;
47
47
  _cameraChangedHandler = null;
48
+ // 默认显示的地图层级区间(兼容旧数据)
49
+ defaultMinLevel = 0;
50
+ defaultMaxLevel = 28;
48
51
  constructor(e, t, i) {
49
52
  this.Cesium = e, this.viewer = t, this.labelPool = i.labelPool, this.threshold = i.threshold ?? 10, this.displayLimit = i.displayLimit ?? 100, this.maxLevel = i.maxLevel ?? 5, this.debugCurrentGrids = i.debugCurrentGrids ?? !1, this.clusterTheme = i.clusterTheme ?? "cluster-label", this.pointTheme = i.pointTheme ?? "point-label", this.centralPointMode = i.centralPointMode ?? "central", this.minGlobalPointCount = i.minGlobalPointCount ?? 0, this.groupByTheme = i.groupByTheme ?? !1;
50
53
  const o = this.viewer.scene && this.viewer.scene.globe, a = o && o._surface, n = a && a._tileProvider, l = n?.tilingScheme || new this.Cesium.GeographicTilingScheme();
51
54
  this._lastTileProvider = n, this.tilingScheme = l, this.levels = this._createLevels(), this._buildLevels(), this._updateFn = this._update.bind(this), o && (this._tileLoadListener = (s) => {
52
55
  s === 0 && this._cameraDirty && (this._cameraDirty = !1, this._scheduleUpdate());
53
56
  }, o.tileLoadProgressEvent.addEventListener(this._tileLoadListener)), this._cameraChangedHandler = () => {
54
- const s = this.viewer.scene, d = s && s.globe;
55
- if (!d) {
56
- this._scheduleUpdate();
57
- return;
58
- }
59
- this._cameraDirty = !0, d.tilesLoaded && (this._cameraDirty = !1, this._scheduleUpdate());
57
+ this._update();
60
58
  }, this.viewer.camera.changed.addEventListener(this._cameraChangedHandler);
61
59
  }
62
60
  setGroupByTheme(e, t = !0, i = !0) {
@@ -99,14 +97,14 @@ class Ke {
99
97
  }
100
98
  appendPoints(e, t = !0) {
101
99
  for (const i of e)
102
- this.points.push(i);
100
+ this._preparePointLevelRange(i), this.points.push(i);
103
101
  for (const i of e)
104
102
  this._addPointToGrid(i);
105
103
  t && this._scheduleUpdate();
106
104
  }
107
105
  _scheduleUpdate() {
108
106
  this._updateTimer !== null && clearTimeout(this._updateTimer), this._updateTimer = window.setTimeout(() => {
109
- this._update(), this._updateTimer = null;
107
+ this._update(), this._cameraDirty = !0, this._updateTimer = null;
110
108
  }, this._updateDelay);
111
109
  }
112
110
  updatePoint(e) {
@@ -131,8 +129,8 @@ class Ke {
131
129
  } else {
132
130
  const u = this.groupByTheme ? i.data?.theme : this.clusterTheme, f = c.groups.get(u);
133
131
  if (f) {
134
- const L = f.findIndex((b) => b.id === e.id);
135
- L !== -1 && f.splice(L, 1), f.length === 0 && c.groups.delete(u);
132
+ const P = f.findIndex((_) => _.id === e.id);
133
+ P !== -1 && f.splice(P, 1), f.length === 0 && c.groups.delete(u);
136
134
  }
137
135
  }
138
136
  }
@@ -188,69 +186,86 @@ class Ke {
188
186
  }
189
187
  }
190
188
  }
189
+ // 在添加/更新点时预计算并缓存地图层级区间
190
+ _preparePointLevelRange(e) {
191
+ const t = e.data || {};
192
+ let i = t.minLevel, o = t.maxLevel;
193
+ const a = t.levelRange;
194
+ Array.isArray(a) ? (a.length > 0 && i == null && (i = a[0]), a.length > 1 && o == null && (o = a[1])) : a && typeof a == "object" && (i == null && typeof a.min == "number" && (i = a.min), o == null && typeof a.max == "number" && (o = a.max));
195
+ const n = i == null ? this.defaultMinLevel : Number(i) || this.defaultMinLevel, l = o == null ? this.defaultMaxLevel : Number(o) || this.defaultMaxLevel;
196
+ e.__minLevel = n, e.__maxLevel = l;
197
+ }
198
+ _isVisibleAtLevel(e, t) {
199
+ if (t == null) return !0;
200
+ (e.__minLevel === void 0 || e.__maxLevel === void 0) && this._preparePointLevelRange(e);
201
+ const i = e.__minLevel ?? this.defaultMinLevel, o = e.__maxLevel ?? this.defaultMaxLevel;
202
+ return t >= i && t <= o;
203
+ }
191
204
  _update() {
192
205
  if (!this.labelPool) return;
193
206
  this._syncTilingSchemeAndLevels(), this.labelPool.reset(), this.debugCurrentGrids && this._clearDebugGrids();
194
207
  const e = this.points.length < this.minGlobalPointCount ? 1 / 0 : this.threshold;
195
208
  let t = 0;
196
- const i = (o, a, n) => {
209
+ const i = (o, a, n, l) => {
197
210
  if (t >= this.displayLimit || o < 0) return;
198
211
  o >= this.levels.length && (o = this.levels.length - 1);
199
- const l = this.levels[o], s = o === this.levels.length - 1, d = l.level, h = this.gridLayers.get(d);
200
- if (!h) return;
201
- const c = `${a}_${n}`, g = h.get(c);
202
- if (!g) return;
203
- const u = this.tilingScheme.tileXYToRectangle(a, n, d), f = this.Cesium.Math.toDegrees(u.west), L = this.Cesium.Math.toDegrees(u.south), b = this.Cesium.Math.toDegrees(u.east), T = this.Cesium.Math.toDegrees(u.north), A = (f + b) / 2, k = (L + T) / 2;
204
- for (const p of g.skipPoints)
212
+ const s = this.levels[o], d = o === this.levels.length - 1, h = s.level, c = this.gridLayers.get(h);
213
+ if (!c) return;
214
+ const g = `${a}_${n}`, u = c.get(g);
215
+ if (!u) return;
216
+ const f = this.tilingScheme.tileXYToRectangle(a, n, h), P = this.Cesium.Math.toDegrees(f.west), _ = this.Cesium.Math.toDegrees(f.south), w = this.Cesium.Math.toDegrees(f.east), x = this.Cesium.Math.toDegrees(f.north), k = (P + w) / 2, B = (_ + x) / 2, T = l;
217
+ for (const p of u.skipPoints)
205
218
  if (p.data?.show !== !1) {
206
219
  if (t >= this.displayLimit) break;
207
- this.labelPool.add(p.data, {
220
+ this._isVisibleAtLevel(p, T) && (this.labelPool.add(p.data, {
208
221
  id: `point-${p.id}`,
209
222
  lon: p.lon,
210
223
  lat: p.lat,
211
224
  height: p.height,
212
225
  theme: p.data?.billboard?.[0]?.theme || this.pointTheme,
213
226
  style: p.style
214
- }), t++;
227
+ }), t++);
215
228
  }
216
229
  if (t >= this.displayLimit) {
217
- this.debugCurrentGrids && this._drawDebugGrid(f, L, b, T, c);
230
+ this.debugCurrentGrids && this._drawDebugGrid(P, _, w, x, g);
218
231
  return;
219
232
  }
220
- for (const [p, B] of g.groups) {
221
- const C = B.filter((m) => m.data?.show !== !1);
222
- if (C.length === 0) continue;
223
- let S = A, E = k, y = C[0]?.height || 0;
224
- if (this.centralPointMode == "firstPoint" && (S = C[0]?.lon || 0, E = C[0]?.lat || 0, y = C[0]?.height || 0), s || C.length < e)
225
- for (const m of C) {
233
+ for (const [p, $] of u.groups) {
234
+ const b = $.filter((m) => m.data?.show !== !1);
235
+ if (b.length === 0) continue;
236
+ let y = k, C = B, v = b[0]?.height || 0;
237
+ if (this.centralPointMode == "firstPoint" && (y = b[0]?.lon || 0, C = b[0]?.lat || 0, v = b[0]?.height || 0), d || b.length < e)
238
+ for (const m of b) {
226
239
  if (t >= this.displayLimit) break;
227
- this.labelPool.add(m.data, {
240
+ this._isVisibleAtLevel(m, T) && (this.labelPool.add(m.data, {
228
241
  id: `point-${m.id}`,
229
242
  lon: m.lon,
230
243
  lat: m.lat,
231
244
  height: m.height,
232
245
  theme: m.data?.billboard?.[0]?.theme || this.pointTheme,
233
246
  style: m.style
234
- }), t++;
247
+ }), t++);
235
248
  }
236
249
  else {
237
250
  if (t >= this.displayLimit) break;
238
- const v = C[0]?.data?.billboard?.[0]?.theme || this.clusterTheme, P = this.groupByTheme ? `cluster-${o}-${a}-${n}-${p}` : `cluster-${o}-${a}-${n}`;
251
+ const m = T == null ? b : b.filter((Me) => this._isVisibleAtLevel(Me, T));
252
+ if (!m.length) continue;
253
+ const G = m[0]?.data?.billboard?.[0]?.theme || this.clusterTheme, Y = this.groupByTheme ? `cluster-${o}-${a}-${n}-${p}` : `cluster-${o}-${a}-${n}`;
239
254
  this.labelPool.add(
240
255
  {
241
- id: P,
242
- billboard: C[0]?.data?.billboard || [],
243
- count: C.length,
244
- gridKey: c,
245
- points: C,
256
+ id: Y,
257
+ billboard: m[0]?.data?.billboard || [],
258
+ count: m.length,
259
+ gridKey: g,
260
+ points: m,
246
261
  aggregationGroup: p
247
262
  },
248
263
  {
249
- id: P,
250
- lon: S,
251
- lat: E,
252
- height: y,
253
- theme: v
264
+ id: Y,
265
+ lon: y,
266
+ lat: C,
267
+ height: v,
268
+ theme: G
254
269
  }
255
270
  ), t++;
256
271
  }
@@ -258,10 +273,10 @@ class Ke {
258
273
  if (this.debugCurrentGrids) {
259
274
  const p = this.levels[o].level;
260
275
  this._drawDebugGrid(
261
- f,
262
- L,
263
- b,
264
- T,
276
+ P,
277
+ _,
278
+ w,
279
+ x,
265
280
  `L:${p} X:${a} Y:${n}`
266
281
  );
267
282
  }
@@ -292,16 +307,16 @@ class Ke {
292
307
  let c = this.levelIndexByTileLevel.get(h);
293
308
  if (c === void 0) {
294
309
  if (this.levels.length === 0) continue;
295
- const y = this.levels[0].level, m = this.levels[this.levels.length - 1].level;
296
- if (h > m)
310
+ const y = this.levels[0].level, C = this.levels[this.levels.length - 1].level;
311
+ if (h > C)
297
312
  c = this.levels.length - 1;
298
313
  else if (h < y)
299
314
  c = 0;
300
315
  else {
301
- let v = 0, P = 1 / 0;
316
+ let v = 0, m = 1 / 0;
302
317
  for (let M = 0; M < this.levels.length; M++) {
303
- const U = Math.abs(this.levels[M].level - h);
304
- U < P && (P = U, v = M);
318
+ const G = Math.abs(this.levels[M].level - h);
319
+ G < m && (m = G, v = M);
305
320
  }
306
321
  c = v;
307
322
  }
@@ -309,25 +324,25 @@ class Ke {
309
324
  if (c === void 0) continue;
310
325
  const g = this.levels[c].level, u = s._x ?? s.x, f = s._y ?? s.y;
311
326
  if (typeof u == "number" && typeof f == "number") {
312
- let y = u, m = f;
327
+ let y = u, C = f;
313
328
  const v = h - g;
314
329
  if (v > 0) {
315
330
  const M = 1 << v;
316
- y = Math.floor(u / M), m = Math.floor(f / M);
331
+ y = Math.floor(u / M), C = Math.floor(f / M);
317
332
  } else if (v < 0) {
318
333
  const M = 1 << -v;
319
- y = u * M, m = f * M;
334
+ y = u * M, C = f * M;
320
335
  }
321
- const P = `${g}_${y}_${m}`;
322
- if (l.has(P)) continue;
323
- l.add(P), i(c, y, m);
336
+ const m = `${g}_${y}_${C}`;
337
+ if (l.has(m)) continue;
338
+ l.add(m), i(c, y, C, h);
324
339
  continue;
325
340
  }
326
- const b = this.levels[c].size, T = this.Cesium.Math.toDegrees(d.west), A = this.Cesium.Math.toDegrees(d.east), k = this.Cesium.Math.toDegrees(d.south), p = this.Cesium.Math.toDegrees(d.north), B = Math.floor((T - -180) / b), C = Math.floor((A - -180) / b), S = Math.floor((k - -90) / b), E = Math.floor((p - -90) / b);
327
- for (let y = B; y <= C; y++)
328
- for (let m = S; m <= E; m++) {
329
- const v = `${g}_${y}_${m}`;
330
- l.has(v) || (l.add(v), i(c, y, m));
341
+ const _ = this.levels[c].size, w = this.Cesium.Math.toDegrees(d.west), x = this.Cesium.Math.toDegrees(d.east), k = this.Cesium.Math.toDegrees(d.south), B = this.Cesium.Math.toDegrees(d.north), T = Math.floor((w - -180) / _), p = Math.floor((x - -180) / _), $ = Math.floor((k - -90) / _), b = Math.floor((B - -90) / _);
342
+ for (let y = T; y <= p; y++)
343
+ for (let C = $; C <= b; C++) {
344
+ const v = `${g}_${y}_${C}`;
345
+ l.has(v) || (l.add(v), i(c, y, C, h));
331
346
  }
332
347
  }
333
348
  } catch {
@@ -372,30 +387,30 @@ class Ke {
372
387
  t && this._tileLoadListener && (t.tileLoadProgressEvent.removeEventListener(this._tileLoadListener), this._tileLoadListener = null), this._updateTimer !== null && (clearTimeout(this._updateTimer), this._updateTimer = null), this.labelPool.reset(), this._clearDebugGrids();
373
388
  }
374
389
  }
375
- var Ne = "[object Symbol]";
376
- function N(r) {
377
- return typeof r == "symbol" || F(r) && ie(r) == Ne;
390
+ var Ve = "[object Symbol]";
391
+ function W(r) {
392
+ return typeof r == "symbol" || K(r) && re(r) == Ve;
378
393
  }
379
- function he(r, e) {
394
+ function ce(r, e) {
380
395
  for (var t = -1, i = r == null ? 0 : r.length, o = Array(i); ++t < i; )
381
396
  o[t] = e(r[t], t, r);
382
397
  return o;
383
398
  }
384
- var J = O ? O.prototype : void 0, Q = J ? J.toString : void 0;
385
- function ce(r) {
399
+ var Q = A ? A.prototype : void 0, ee = Q ? Q.toString : void 0;
400
+ function de(r) {
386
401
  if (typeof r == "string")
387
402
  return r;
388
- if (_(r))
389
- return he(r, ce) + "";
390
- if (N(r))
391
- return Q ? Q.call(r) : "";
403
+ if (L(r))
404
+ return ce(r, de) + "";
405
+ if (W(r))
406
+ return ee ? ee.call(r) : "";
392
407
  var e = r + "";
393
408
  return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
394
409
  }
395
- function de(r) {
410
+ function ge(r) {
396
411
  return r;
397
412
  }
398
- function We(r, e, t) {
413
+ function Ue(r, e, t) {
399
414
  switch (t.length) {
400
415
  case 0:
401
416
  return r.call(e);
@@ -408,72 +423,72 @@ function We(r, e, t) {
408
423
  }
409
424
  return r.apply(e, t);
410
425
  }
411
- var Ve = 800, Ue = 16, Ye = Date.now;
412
- function Xe(r) {
426
+ var Ye = 800, Xe = 16, qe = Date.now;
427
+ function je(r) {
413
428
  var e = 0, t = 0;
414
429
  return function() {
415
- var i = Ye(), o = Ue - (i - t);
430
+ var i = qe(), o = Xe - (i - t);
416
431
  if (t = i, o > 0) {
417
- if (++e >= Ve)
432
+ if (++e >= Ye)
418
433
  return arguments[0];
419
434
  } else
420
435
  e = 0;
421
436
  return r.apply(void 0, arguments);
422
437
  };
423
438
  }
424
- function qe(r) {
439
+ function Ze(r) {
425
440
  return function() {
426
441
  return r;
427
442
  };
428
443
  }
429
- var Ze = j ? function(r, e) {
430
- return j(r, "toString", {
444
+ var Je = J ? function(r, e) {
445
+ return J(r, "toString", {
431
446
  configurable: !0,
432
447
  enumerable: !1,
433
- value: qe(e),
448
+ value: Ze(e),
434
449
  writable: !0
435
450
  });
436
- } : de, ge = Xe(Ze), ee = Math.max;
437
- function ue(r, e, t) {
438
- return e = ee(e === void 0 ? r.length - 1 : e, 0), function() {
439
- for (var i = arguments, o = -1, a = ee(i.length - e, 0), n = Array(a); ++o < a; )
451
+ } : ge, ue = je(Je), te = Math.max;
452
+ function fe(r, e, t) {
453
+ return e = te(e === void 0 ? r.length - 1 : e, 0), function() {
454
+ for (var i = arguments, o = -1, a = te(i.length - e, 0), n = Array(a); ++o < a; )
440
455
  n[o] = i[e + o];
441
456
  o = -1;
442
457
  for (var l = Array(e + 1); ++o < e; )
443
458
  l[o] = i[o];
444
- return l[e] = t(n), We(r, this, l);
459
+ return l[e] = t(n), Ue(r, this, l);
445
460
  };
446
461
  }
447
- function je(r, e) {
448
- return ge(ue(r, e, de), r + "");
462
+ function Qe(r, e) {
463
+ return ue(fe(r, e, ge), r + "");
449
464
  }
450
- function Je(r, e, t) {
451
- if (!K(t))
465
+ function et(r, e, t) {
466
+ if (!N(t))
452
467
  return !1;
453
468
  var i = typeof e;
454
- return (i == "number" ? re(t) && Se(e, t.length) : i == "string" && e in t) ? ae(t[e], r) : !1;
469
+ return (i == "number" ? ae(t) && Ge(e, t.length) : i == "string" && e in t) ? oe(t[e], r) : !1;
455
470
  }
456
- function Qe(r) {
457
- return je(function(e, t) {
471
+ function tt(r) {
472
+ return Qe(function(e, t) {
458
473
  var i = -1, o = t.length, a = o > 1 ? t[o - 1] : void 0, n = o > 2 ? t[2] : void 0;
459
- for (a = r.length > 3 && typeof a == "function" ? (o--, a) : void 0, n && Je(t[0], t[1], n) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++i < o; ) {
474
+ for (a = r.length > 3 && typeof a == "function" ? (o--, a) : void 0, n && et(t[0], t[1], n) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++i < o; ) {
460
475
  var l = t[i];
461
476
  l && r(e, l, i, a);
462
477
  }
463
478
  return e;
464
479
  });
465
480
  }
466
- var et = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, tt = /^\w*$/;
467
- function it(r, e) {
468
- if (_(r))
481
+ var it = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, rt = /^\w*$/;
482
+ function at(r, e) {
483
+ if (L(r))
469
484
  return !1;
470
485
  var t = typeof r;
471
- return t == "number" || t == "symbol" || t == "boolean" || r == null || N(r) ? !0 : tt.test(r) || !et.test(r) || e != null && r in Object(e);
486
+ return t == "number" || t == "symbol" || t == "boolean" || r == null || W(r) ? !0 : rt.test(r) || !it.test(r) || e != null && r in Object(e);
472
487
  }
473
- var rt = "Expected a function";
474
- function W(r, e) {
488
+ var ot = "Expected a function";
489
+ function V(r, e) {
475
490
  if (typeof r != "function" || e != null && typeof e != "function")
476
- throw new TypeError(rt);
491
+ throw new TypeError(ot);
477
492
  var t = function() {
478
493
  var i = arguments, o = e ? e.apply(this, i) : i[0], a = t.cache;
479
494
  if (a.has(o))
@@ -481,77 +496,77 @@ function W(r, e) {
481
496
  var n = r.apply(this, i);
482
497
  return t.cache = a.set(o, n) || a, n;
483
498
  };
484
- return t.cache = new (W.Cache || oe)(), t;
499
+ return t.cache = new (V.Cache || ne)(), t;
485
500
  }
486
- W.Cache = oe;
487
- var at = 500;
488
- function ot(r) {
489
- var e = W(r, function(i) {
490
- return t.size === at && t.clear(), i;
501
+ V.Cache = ne;
502
+ var nt = 500;
503
+ function st(r) {
504
+ var e = V(r, function(i) {
505
+ return t.size === nt && t.clear(), i;
491
506
  }), t = e.cache;
492
507
  return e;
493
508
  }
494
- var nt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, st = /\\(\\)?/g, lt = ot(function(r) {
509
+ var lt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ht = /\\(\\)?/g, ct = st(function(r) {
495
510
  var e = [];
496
- return r.charCodeAt(0) === 46 && e.push(""), r.replace(nt, function(t, i, o, a) {
497
- e.push(o ? a.replace(st, "$1") : i || t);
511
+ return r.charCodeAt(0) === 46 && e.push(""), r.replace(lt, function(t, i, o, a) {
512
+ e.push(o ? a.replace(ht, "$1") : i || t);
498
513
  }), e;
499
514
  });
500
- function ht(r) {
501
- return r == null ? "" : ce(r);
515
+ function dt(r) {
516
+ return r == null ? "" : de(r);
502
517
  }
503
- function V(r, e) {
504
- return _(r) ? r : it(r, e) ? [r] : lt(ht(r));
518
+ function U(r, e) {
519
+ return L(r) ? r : at(r, e) ? [r] : ct(dt(r));
505
520
  }
506
- function fe(r) {
507
- if (typeof r == "string" || N(r))
521
+ function me(r) {
522
+ if (typeof r == "string" || W(r))
508
523
  return r;
509
524
  var e = r + "";
510
525
  return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
511
526
  }
512
- function ct(r, e) {
513
- e = V(e, r);
527
+ function gt(r, e) {
528
+ e = U(e, r);
514
529
  for (var t = 0, i = e.length; r != null && t < i; )
515
- r = r[fe(e[t++])];
530
+ r = r[me(e[t++])];
516
531
  return t && t == i ? r : void 0;
517
532
  }
518
- var te = O ? O.isConcatSpreadable : void 0;
519
- function dt(r) {
520
- return _(r) || H(r) || !!(te && r && r[te]);
533
+ var ie = A ? A.isConcatSpreadable : void 0;
534
+ function ut(r) {
535
+ return L(r) || R(r) || !!(ie && r && r[ie]);
521
536
  }
522
- function gt(r, e, t, i, o) {
537
+ function ft(r, e, t, i, o) {
523
538
  var a = -1, n = r.length;
524
- for (t || (t = dt), o || (o = []); ++a < n; ) {
539
+ for (t || (t = ut), o || (o = []); ++a < n; ) {
525
540
  var l = r[a];
526
- t(l) ? Ee(o, l) : o[o.length] = l;
541
+ t(l) ? De(o, l) : o[o.length] = l;
527
542
  }
528
543
  return o;
529
544
  }
530
- function ut(r) {
545
+ function mt(r) {
531
546
  var e = r == null ? 0 : r.length;
532
- return e ? gt(r) : [];
547
+ return e ? ft(r) : [];
533
548
  }
534
- function ft(r) {
535
- return ge(ue(r, void 0, ut), r + "");
549
+ function pt(r) {
550
+ return ue(fe(r, void 0, mt), r + "");
536
551
  }
537
- var mt = "[object Object]", pt = Function.prototype, yt = Object.prototype, me = pt.toString, Ct = yt.hasOwnProperty, vt = me.call(Object);
538
- function pe(r) {
539
- if (!F(r) || ie(r) != mt)
552
+ var yt = "[object Object]", Ct = Function.prototype, vt = Object.prototype, pe = Ct.toString, bt = vt.hasOwnProperty, Mt = pe.call(Object);
553
+ function ye(r) {
554
+ if (!K(r) || re(r) != yt)
540
555
  return !1;
541
- var e = Ge(r);
556
+ var e = Ie(r);
542
557
  if (e === null)
543
558
  return !0;
544
- var t = Ct.call(e, "constructor") && e.constructor;
545
- return typeof t == "function" && t instanceof t && me.call(t) == vt;
559
+ var t = bt.call(e, "constructor") && e.constructor;
560
+ return typeof t == "function" && t instanceof t && pe.call(t) == Mt;
546
561
  }
547
- function bt(r, e, t) {
562
+ function _t(r, e, t) {
548
563
  var i = -1, o = r.length;
549
564
  e < 0 && (e = -e > o ? 0 : o + e), t = t > o ? o : t, t < 0 && (t += o), o = e > t ? 0 : t - e >>> 0, e >>>= 0;
550
565
  for (var a = Array(o); ++i < o; )
551
566
  a[i] = r[i + e];
552
567
  return a;
553
568
  }
554
- function Mt(r) {
569
+ function Lt(r) {
555
570
  return function(e, t, i) {
556
571
  for (var o = -1, a = Object(e), n = i(e), l = n.length; l--; ) {
557
572
  var s = n[++o];
@@ -561,62 +576,62 @@ function Mt(r) {
561
576
  return e;
562
577
  };
563
578
  }
564
- var _t = Mt();
565
- function R(r, e, t) {
566
- (t !== void 0 && !ae(r[e], t) || t === void 0 && !(e in r)) && De(r, e, t);
579
+ var Pt = Lt();
580
+ function z(r, e, t) {
581
+ (t !== void 0 && !oe(r[e], t) || t === void 0 && !(e in r)) && Oe(r, e, t);
567
582
  }
568
- function Pt(r) {
569
- return F(r) && re(r);
583
+ function Tt(r) {
584
+ return K(r) && ae(r);
570
585
  }
571
- function z(r, e) {
586
+ function F(r, e) {
572
587
  if (!(e === "constructor" && typeof r[e] == "function") && e != "__proto__")
573
588
  return r[e];
574
589
  }
575
- function Lt(r) {
576
- return ne(r, se(r));
590
+ function wt(r) {
591
+ return se(r, le(r));
577
592
  }
578
- function Tt(r, e, t, i, o, a, n) {
579
- var l = z(r, t), s = z(e, t), d = n.get(s);
593
+ function xt(r, e, t, i, o, a, n) {
594
+ var l = F(r, t), s = F(e, t), d = n.get(s);
580
595
  if (d) {
581
- R(r, t, d);
596
+ z(r, t, d);
582
597
  return;
583
598
  }
584
599
  var h = a ? a(l, s, t + "", r, e, n) : void 0, c = h === void 0;
585
600
  if (c) {
586
- var g = _(s), u = !g && Ie(s), f = !g && !u && Oe(s);
587
- h = s, g || u || f ? _(l) ? h = l : Pt(l) ? h = Ae(l) : u ? (c = !1, h = ke(s, !0)) : f ? (c = !1, h = Be(s, !0)) : h = [] : pe(s) || H(s) ? (h = l, H(l) ? h = Lt(l) : (!K(l) || le(l)) && (h = $e(s))) : c = !1;
601
+ var g = L(s), u = !g && Ae(s), f = !g && !u && ke(s);
602
+ h = s, g || u || f ? L(l) ? h = l : Tt(l) ? h = Be(l) : u ? (c = !1, h = $e(s, !0)) : f ? (c = !1, h = He(s, !0)) : h = [] : ye(s) || R(s) ? (h = l, R(l) ? h = wt(l) : (!N(l) || he(l)) && (h = Re(s))) : c = !1;
588
603
  }
589
- c && (n.set(s, h), o(h, s, i, a, n), n.delete(s)), R(r, t, h);
604
+ c && (n.set(s, h), o(h, s, i, a, n), n.delete(s)), z(r, t, h);
590
605
  }
591
- function ye(r, e, t, i, o) {
592
- r !== e && _t(e, function(a, n) {
593
- if (o || (o = new He()), K(a))
594
- Tt(r, e, n, t, ye, i, o);
606
+ function Ce(r, e, t, i, o) {
607
+ r !== e && Pt(e, function(a, n) {
608
+ if (o || (o = new ze()), N(a))
609
+ xt(r, e, n, t, Ce, i, o);
595
610
  else {
596
- var l = i ? i(z(r, n), a, n + "", r, e, o) : void 0;
597
- l === void 0 && (l = a), R(r, n, l);
611
+ var l = i ? i(F(r, n), a, n + "", r, e, o) : void 0;
612
+ l === void 0 && (l = a), z(r, n, l);
598
613
  }
599
- }, se);
614
+ }, le);
600
615
  }
601
- function wt(r) {
616
+ function St(r) {
602
617
  var e = r == null ? 0 : r.length;
603
618
  return e ? r[e - 1] : void 0;
604
619
  }
605
- function xt(r, e) {
606
- return e.length < 2 ? r : ct(r, bt(e, 0, -1));
620
+ function Et(r, e) {
621
+ return e.length < 2 ? r : gt(r, _t(e, 0, -1));
607
622
  }
608
- var St = Qe(function(r, e, t) {
609
- ye(r, e, t);
610
- }), Et = Object.prototype, Gt = Et.hasOwnProperty;
611
- function Dt(r, e) {
612
- e = V(e, r);
623
+ var Gt = tt(function(r, e, t) {
624
+ Ce(r, e, t);
625
+ }), Dt = Object.prototype, It = Dt.hasOwnProperty;
626
+ function Ot(r, e) {
627
+ e = U(e, r);
613
628
  var t = -1, i = e.length;
614
629
  if (!i)
615
630
  return !0;
616
631
  for (var o = r == null || typeof r != "object" && typeof r != "function"; ++t < i; ) {
617
632
  var a = e[t];
618
633
  if (typeof a == "string") {
619
- if (a === "__proto__" && !Gt.call(r, "__proto__"))
634
+ if (a === "__proto__" && !It.call(r, "__proto__"))
620
635
  return !1;
621
636
  if (a === "constructor" && t + 1 < i && typeof e[t + 1] == "string" && e[t + 1] === "prototype") {
622
637
  if (o && t === 0)
@@ -625,25 +640,25 @@ function Dt(r, e) {
625
640
  }
626
641
  }
627
642
  }
628
- var n = xt(r, e);
629
- return n == null || delete n[fe(wt(e))];
643
+ var n = Et(r, e);
644
+ return n == null || delete n[me(St(e))];
630
645
  }
631
- function It(r) {
632
- return pe(r) ? void 0 : r;
646
+ function At(r) {
647
+ return ye(r) ? void 0 : r;
633
648
  }
634
- var Ot = 1, At = 2, kt = 4, Bt = ft(function(r, e) {
649
+ var kt = 1, Bt = 2, $t = 4, Ht = pt(function(r, e) {
635
650
  var t = {};
636
651
  if (r == null)
637
652
  return t;
638
653
  var i = !1;
639
- e = he(e, function(a) {
640
- return a = V(a, r), i || (i = a.length > 1), a;
641
- }), ne(r, Re(r), t), i && (t = ze(t, Ot | At | kt, It));
654
+ e = ce(e, function(a) {
655
+ return a = U(a, r), i || (i = a.length > 1), a;
656
+ }), se(r, Fe(r), t), i && (t = Ke(t, kt | Bt | $t, At));
642
657
  for (var o = e.length; o--; )
643
- Dt(t, e[o]);
658
+ Ot(t, e[o]);
644
659
  return t;
645
660
  });
646
- function $t(r, e) {
661
+ function Rt(r, e) {
647
662
  const t = e.materialType || "DynamicImgMaterial" + Date.now() + Math.floor(Math.random() * 1e3);
648
663
  function i(a) {
649
664
  this._definitionChanged = new r.Event(), this._color = a.color, this._colorSubscription = void 0, this.color = a.color, this.duration = a.duration, this._time = Date.now();
@@ -706,7 +721,7 @@ function $t(r, e) {
706
721
  }
707
722
  }), new i(e);
708
723
  }
709
- function Ce(r, e) {
724
+ function ve(r, e) {
710
725
  const t = e.MaterialType || "wallType" + (/* @__PURE__ */ new Date()).getTime() + parseInt(Math.random() * 1e3 + "");
711
726
  function i(a) {
712
727
  this._definitionChanged = new r.Event(), this._color = void 0, this._colorSubscription = void 0, this.color = a.color, this.duration = a.duration, this._time = (/* @__PURE__ */ new Date()).getTime();
@@ -769,7 +784,7 @@ function Ce(r, e) {
769
784
  }
770
785
  }), new i(e);
771
786
  }
772
- function Ht(r, e) {
787
+ function zt(r, e) {
773
788
  const t = r.Color, i = Object.defineProperties, o = r.Event, a = r.createPropertyDescriptor, n = r.Property, l = (c, g) => c === void 0 ? g : c, s = {};
774
789
  let d = e.materialType || "PolylineFlow" + Date.now() + Math.floor(Math.random() * 1e3);
775
790
  function h(c) {
@@ -832,7 +847,7 @@ function Ht(r, e) {
832
847
  }
833
848
  }), new h(e);
834
849
  }
835
- class ve {
850
+ class be {
836
851
  categoryMap = /* @__PURE__ */ new Map();
837
852
  CategoryGet = {};
838
853
  constructor() {
@@ -921,7 +936,7 @@ class ve {
921
936
  return [...this.categoryMap.keys()];
922
937
  }
923
938
  }
924
- class Rt {
939
+ class Ft {
925
940
  id;
926
941
  entities = [];
927
942
  primitives = [];
@@ -957,7 +972,7 @@ class Rt {
957
972
  }), this.primitives = [], t && this.aggregator && Array.isArray(this.dataItem.billboard) && this.aggregator.removePointsById([this.dataItem.id]), t && this.cardPool && this.dataItem.card && this.cardPool.removeByIds([this.dataItem.id]), this.dataItem.id;
958
973
  }
959
974
  }
960
- class zt {
975
+ class Kt {
961
976
  id;
962
977
  groupMap = /* @__PURE__ */ new Map();
963
978
  Cesium;
@@ -966,7 +981,7 @@ class zt {
966
981
  aggregator;
967
982
  cardPool;
968
983
  constructor(e, t, i, o, a, n) {
969
- this.id = e, this.Cesium = t, this.viewer = i, this.materialManager = o, this.aggregator = a, this.cardPool = n, this.aggregator.labelPool.eventBus.addListener(D.Click, {
984
+ this.id = e, this.Cesium = t, this.viewer = i, this.materialManager = o, this.aggregator = a, this.cardPool = n, this.aggregator.labelPool.eventBus.addListener(I.Click, {
970
985
  name: "BufferedHierarchicalAggregator_maker_click",
971
986
  fn: (s, d) => {
972
987
  this.cardPool.showByIds([s.data.id]);
@@ -1081,7 +1096,7 @@ class zt {
1081
1096
  });
1082
1097
  const n = this.createBillboardPoints(e);
1083
1098
  n.length && t && this.aggregator.appendPoints(n, !1), this.createCard(e);
1084
- const l = new Rt({
1099
+ const l = new Ft({
1085
1100
  id: i,
1086
1101
  entities: o,
1087
1102
  primitives: [],
@@ -1129,7 +1144,7 @@ class zt {
1129
1144
  this.groupMap.forEach((e) => e.removeAll(this.viewer)), this.groupMap.clear();
1130
1145
  }
1131
1146
  }
1132
- class Ft {
1147
+ class Nt {
1133
1148
  Cesium;
1134
1149
  viewer;
1135
1150
  layerMap = /* @__PURE__ */ new Map();
@@ -1142,7 +1157,7 @@ class Ft {
1142
1157
  addLayer(e) {
1143
1158
  this.layerMap.has(e) || this.layerMap.set(
1144
1159
  e,
1145
- new zt(
1160
+ new Kt(
1146
1161
  e,
1147
1162
  this.Cesium,
1148
1163
  this.viewer,
@@ -1177,7 +1192,7 @@ class Ft {
1177
1192
  this.layerMap.get(e)?.removeGroups(t);
1178
1193
  }
1179
1194
  }
1180
- class Kt {
1195
+ class Wt {
1181
1196
  labelId;
1182
1197
  cardId;
1183
1198
  opt;
@@ -1185,13 +1200,13 @@ class Kt {
1185
1200
  MaterialManager;
1186
1201
  instance;
1187
1202
  constructor(e) {
1188
- this.labelId = e.labelId, this.cardId = e.cardId, this.opt = e, this.MaterialManager = e.MaterialManager || new ve(), this.instance = this.initCore(e, e.eventBus, e.cardEventBus);
1203
+ this.labelId = e.labelId, this.cardId = e.cardId, this.opt = e, this.MaterialManager = e.MaterialManager || new be(), this.instance = this.initCore(e, e.eventBus, e.cardEventBus);
1189
1204
  }
1190
1205
  //初始化标记管理
1191
1206
  initCore(e, t, i) {
1192
1207
  let { Cesium: o, viewer: a, aggregatorOptions: n } = e;
1193
- t || (t = new $()), i || (i = new $());
1194
- const l = new X(o, a, this.labelId, t), s = new X(o, a, this.cardId, i, !1), d = new Ke(o, a, {
1208
+ t || (t = new H()), i || (i = new H());
1209
+ const l = new q(o, a, this.labelId, t), s = new q(o, a, this.cardId, i, !1), d = new We(o, a, {
1195
1210
  //聚合
1196
1211
  threshold: n?.threshold || 16,
1197
1212
  displayLimit: n?.displayLimit || 1e3,
@@ -1205,7 +1220,7 @@ class Kt {
1205
1220
  // 普通点的默认主题
1206
1221
  ...n,
1207
1222
  labelPool: l
1208
- }), h = this.MaterialManager, c = new Ft(
1223
+ }), h = this.MaterialManager, c = new Nt(
1209
1224
  //实体图层管理
1210
1225
  o,
1211
1226
  a,
@@ -1227,18 +1242,18 @@ class Kt {
1227
1242
  //添加
1228
1243
  add(e) {
1229
1244
  let t = [];
1230
- _(e) ? t = e : t.push(e), t.forEach((i) => {
1245
+ L(e) ? t = e : t.push(e), t.forEach((i) => {
1231
1246
  this.entityList.set(i.id, i);
1232
1247
  }), this.instance.entityLayerManager.getLayer("Layer_default") || this.instance.entityLayerManager.addLayer("Layer_default"), this.instance.entityLayerManager.addGroupsToLayer("Layer_default", t);
1233
1248
  }
1234
1249
  //更新标记
1235
1250
  update(e, t = !0) {
1236
1251
  let i = [];
1237
- _(e) ? i = e : i.push(e);
1252
+ L(e) ? i = e : i.push(e);
1238
1253
  const o = i.map((a) => {
1239
1254
  const n = this.entityList.get(a.id);
1240
1255
  if (!n) return;
1241
- let l = St({}, n, a);
1256
+ let l = Gt({}, n, a);
1242
1257
  return this.entityList.set(a.id, l), l;
1243
1258
  }).filter(Boolean);
1244
1259
  t && this.instance.entityLayerManager.updateGroupToLayer("Layer_default", o);
@@ -1257,7 +1272,7 @@ class Kt {
1257
1272
  //删除标记
1258
1273
  delete(e) {
1259
1274
  let t = [];
1260
- _(e) ? t = e : t.push(e), t.forEach((i) => {
1275
+ L(e) ? t = e : t.push(e), t.forEach((i) => {
1261
1276
  this.entityList.delete(i);
1262
1277
  }), this.instance.entityLayerManager.removeGroups("Layer_default", t);
1263
1278
  }
@@ -1268,14 +1283,14 @@ class Kt {
1268
1283
  this.instance.aggregator.setDebugCurrentGrids(e || !1);
1269
1284
  }
1270
1285
  }
1271
- function Nt({
1286
+ function Vt({
1272
1287
  Cesium: r,
1273
1288
  options: e,
1274
1289
  MaterialManager: t
1275
1290
  }) {
1276
1291
  if (e.data?.theme) {
1277
1292
  if (e.data?.lineType == "1") {
1278
- let i = Ht(r, {
1293
+ let i = zt(r, {
1279
1294
  color: new r.Color.fromCssColorString(e?.options?.color || "#ffffff"),
1280
1295
  duration: 100
1281
1296
  });
@@ -1315,7 +1330,7 @@ function Nt({
1315
1330
  category: "polyline"
1316
1331
  });
1317
1332
  } else if (e.data?.lineType == "5") {
1318
- let i = $t(r, {
1333
+ let i = Rt(r, {
1319
1334
  image: e.img,
1320
1335
  color: new r.Color.fromCssColorString(e?.options?.color || "#ffffff"),
1321
1336
  duration: 5e3,
@@ -1331,7 +1346,7 @@ function Nt({
1331
1346
  }
1332
1347
  }
1333
1348
  }
1334
- function Wt({
1349
+ function Ut({
1335
1350
  Cesium: r,
1336
1351
  options: e,
1337
1352
  MaterialManager: t
@@ -1354,7 +1369,7 @@ function Wt({
1354
1369
  category: "polygon"
1355
1370
  });
1356
1371
  } else if (e.data?.polygonType == "DynamicImgMaterial") {
1357
- let i = Ce(r, {
1372
+ let i = ve(r, {
1358
1373
  image: e.img,
1359
1374
  color: new r.Color.fromCssColorString(e?.options?.color),
1360
1375
  duration: 5e3,
@@ -1370,7 +1385,7 @@ function Wt({
1370
1385
  }
1371
1386
  }
1372
1387
  }
1373
- function Vt({
1388
+ function Yt({
1374
1389
  Cesium: r,
1375
1390
  options: e,
1376
1391
  MaterialManager: t
@@ -1386,7 +1401,7 @@ function Vt({
1386
1401
  category: "wall"
1387
1402
  });
1388
1403
  } else if (e.data?.wallType == "DynamicImgMaterial") {
1389
- let i = Ce(r, {
1404
+ let i = ve(r, {
1390
1405
  image: e.img,
1391
1406
  // color: new Cesium.Color.fromCssColorString(options?.options?.color),
1392
1407
  duration: 5e3,
@@ -1402,7 +1417,7 @@ function Vt({
1402
1417
  }
1403
1418
  }
1404
1419
  }
1405
- class Ut extends Kt {
1420
+ class Xt extends Wt {
1406
1421
  constructor(e) {
1407
1422
  const {
1408
1423
  labelId: t = "report-marker",
@@ -1412,7 +1427,7 @@ class Ut extends Kt {
1412
1427
  cardThemeConfig: n = [],
1413
1428
  runListener: l = () => {
1414
1429
  },
1415
- MaterialManager: s = new ve(),
1430
+ MaterialManager: s = new be(),
1416
1431
  aggregatorOptions: d
1417
1432
  } = e, h = [...o], c = [...a], g = [...n], u = {
1418
1433
  clusterTheme: "Tag1007",
@@ -1426,7 +1441,7 @@ class Ut extends Kt {
1426
1441
  cardId: i,
1427
1442
  MaterialManager: s,
1428
1443
  aggregatorOptions: u,
1429
- eventBus: new $()
1444
+ eventBus: new H()
1430
1445
  };
1431
1446
  super(f), this.opt = { ...this.opt, ...f }, this.initTagListener(this.instance.eventBus, this.opt), this.loadTabThemeConfig(h), this.loadLineThemeConfig(c), this.loadCardThemeConfig(g), this.initDefaultLineMaterials(), this.initDefaultTagTheme();
1432
1447
  }
@@ -1541,21 +1556,21 @@ class Ut extends Kt {
1541
1556
  const t = this.opt.Cesium, i = this.instance.materialManager || this.opt.MaterialManager;
1542
1557
  if (e.line?.length > 0)
1543
1558
  for (let o of e.line)
1544
- Nt({
1559
+ Vt({
1545
1560
  options: o,
1546
1561
  Cesium: t,
1547
1562
  MaterialManager: i
1548
1563
  });
1549
1564
  if (e.polygon?.length > 0)
1550
1565
  for (let o of e.polygon)
1551
- Wt({
1566
+ Ut({
1552
1567
  options: o,
1553
1568
  Cesium: t,
1554
1569
  MaterialManager: i
1555
1570
  });
1556
1571
  if (e.wall?.length > 0)
1557
1572
  for (let o of e.wall)
1558
- Vt({
1573
+ Yt({
1559
1574
  options: o,
1560
1575
  Cesium: t,
1561
1576
  MaterialManager: i
@@ -1589,7 +1604,7 @@ class Ut extends Kt {
1589
1604
  t.registerTheme(i.data.theme, {
1590
1605
  createElement(o, a) {
1591
1606
  let n = a.data.data, l;
1592
- return i.comType == 1 ? l = w(x(q), {
1607
+ return i.comType == 1 ? l = S(E(j), {
1593
1608
  data: n || {},
1594
1609
  imgSrc: i.data.img,
1595
1610
  styleConfig: {
@@ -1610,7 +1625,7 @@ class Ut extends Kt {
1610
1625
  top: "0px"
1611
1626
  },
1612
1627
  bgClass: [i.data.theme]
1613
- }) : i.comType == 3 && (l = w(x(q), {
1628
+ }) : i.comType == 3 && (l = S(E(j), {
1614
1629
  data: n || {},
1615
1630
  imgSrc: i.data.img,
1616
1631
  styleConfig: {
@@ -1633,7 +1648,7 @@ class Ut extends Kt {
1633
1648
  bgClass: [i.data.theme]
1634
1649
  // titleConfig: themeOptions.options.titleConfig,
1635
1650
  // pageInfoConfig: themeOptions.options.pageInfoConfig,
1636
- })), G(l, o), () => G(null, o);
1651
+ })), D(l, o), () => D(null, o);
1637
1652
  },
1638
1653
  options: {
1639
1654
  offset: i.data.pixelOffset,
@@ -1648,18 +1663,20 @@ class Ut extends Kt {
1648
1663
  t.registerTheme(e.data.theme, {
1649
1664
  createElement(i, o) {
1650
1665
  let a = o.data?.billboard?.[0];
1651
- const n = Bt(a, ["position", "options"]);
1666
+ const n = Ht(a, ["position", "options"]);
1652
1667
  let l, s = {
1653
1668
  ...n,
1654
1669
  text: a?.options?.text,
1655
1670
  isFullLink: e?.isFullLink ?? !1,
1656
1671
  img: e?.data?.options?.img,
1657
- textStyle: e?.data?.options?.textStyle
1672
+ textStyle: e?.data?.options?.textStyle,
1673
+ imgStyle: e?.data?.options?.imgStyle
1658
1674
  };
1659
- return o.data?.gridKey ? l = w(x(Z), {
1675
+ return o.data?.gridKey ? l = S(E(Z), {
1660
1676
  text: o.data?.count,
1661
1677
  isFullLink: e.isFullLink ?? !1,
1662
1678
  img: e?.data.options.img,
1679
+ imgStyle: e?.data.options?.imgStyle,
1663
1680
  textStyle: {
1664
1681
  display: "block !important",
1665
1682
  "font-size": "12px !important",
@@ -1675,7 +1692,7 @@ class Ut extends Kt {
1675
1692
  "text-align": "center",
1676
1693
  color: "white"
1677
1694
  }
1678
- }) : e.comType == 4 ? l = w(x(xe), s) : l = w(x(Z), s), G(l, i), () => G(null, i);
1695
+ }) : e.comType == 4 ? l = S(E(Ee), s) : l = S(E(Z), s), D(l, i), () => D(null, i);
1679
1696
  },
1680
1697
  options: {
1681
1698
  offset: e?.data?.pixelOffset || {}
@@ -1685,15 +1702,15 @@ class Ut extends Kt {
1685
1702
  //标记监听事件
1686
1703
  initTagListener(e, t) {
1687
1704
  let { viewer: i, tagListeningOptions: o } = t;
1688
- e.addListener(D.Click, {
1705
+ e.addListener(I.Click, {
1689
1706
  name: "marker:click",
1690
1707
  fn: (a) => {
1691
- t.runListener?.(I.标记左键点击, a.data), le(a.data?.onClick) && a.data?.onClick(a.data), a.data?.cameraPoint && a.data?.billboard[0]?.isFlyToCameraPoint && i?.camera?.flyTo({
1708
+ t.runListener?.(O.标记左键点击, a.data), he(a.data?.onClick) && a.data?.onClick(a.data), a.data?.cameraPoint && a.data?.billboard[0]?.isFlyToCameraPoint && i?.camera?.flyTo({
1692
1709
  duration: 1,
1693
1710
  ...a.data?.cameraPoint
1694
1711
  });
1695
1712
  }
1696
- }), e.addListener(D.MouseEnter, {
1713
+ }), e.addListener(I.MouseEnter, {
1697
1714
  name: "marker:mouseenter",
1698
1715
  fn: (a) => {
1699
1716
  let n = this.opt.Cesium, l = { x: 0, y: 0 };
@@ -1705,9 +1722,9 @@ class Ut extends Kt {
1705
1722
  } catch (s) {
1706
1723
  console.log(s);
1707
1724
  }
1708
- t.runListener?.(I.标记移入, a.data, l);
1725
+ t.runListener?.(O.标记移入, a.data, l);
1709
1726
  }
1710
- }), e.addListener(D.MouseLeave, {
1727
+ }), e.addListener(I.MouseLeave, {
1711
1728
  name: "marker:mouseleave",
1712
1729
  fn: (a) => {
1713
1730
  let n = this.opt.Cesium, l = { x: 0, y: 0 };
@@ -1719,7 +1736,7 @@ class Ut extends Kt {
1719
1736
  } catch (s) {
1720
1737
  console.log(s);
1721
1738
  }
1722
- t.runListener?.(I.标记移出, a.data, l);
1739
+ t.runListener?.(O.标记移出, a.data, l);
1723
1740
  }
1724
1741
  }), o?.forEach((a) => {
1725
1742
  e.addListener(a.key, a.ListenerItem, a.overwrite);
@@ -1737,12 +1754,12 @@ class Ut extends Kt {
1737
1754
  });
1738
1755
  }
1739
1756
  }
1740
- const Yt = /* @__PURE__ */ Me({
1757
+ const qt = /* @__PURE__ */ Le({
1741
1758
  __name: "MarkerManage",
1742
- props: Fe,
1759
+ props: Ne,
1743
1760
  emits: ["register", "load", "marker-event"],
1744
1761
  setup(r, { expose: e, emit: t }) {
1745
- const i = r, o = t, a = _e("leitingMethods");
1762
+ const i = r, o = t, a = Pe("leitingMethods");
1746
1763
  let n = null;
1747
1764
  const l = (h = {}) => {
1748
1765
  if (n) return n;
@@ -1755,7 +1772,7 @@ const Yt = /* @__PURE__ */ Me({
1755
1772
  o("marker-event", { key: g, data: u, args: f });
1756
1773
  }
1757
1774
  };
1758
- return !c.Cesium || !c.viewer ? null : (n = new Ut(c), h.methods && (h.methods.setTagTheme = n.setTagTheme.bind(n), h.methods.setMaterial = n.setMaterial.bind(n), h.methods.setEntityList = n.set.bind(n), h.methods.addComItem = n.add.bind(n), h.methods.deleteComItem = n.delete.bind(n), h.methods.updateComItem = n.update.bind(n), h.methods.getEntityByID = n.getById.bind(n), h.methods.getOptions = n.getOptions.bind(n)), o("load", n), n);
1775
+ return !c.Cesium || !c.viewer ? null : (n = new Xt(c), h.methods && (h.methods.setTagTheme = n.setTagTheme.bind(n), h.methods.setMaterial = n.setMaterial.bind(n), h.methods.setEntityList = n.set.bind(n), h.methods.addComItem = n.add.bind(n), h.methods.deleteComItem = n.delete.bind(n), h.methods.updateComItem = n.update.bind(n), h.methods.getEntityByID = n.getById.bind(n), h.methods.getOptions = n.getOptions.bind(n)), o("load", n), n);
1759
1776
  }, s = {
1760
1777
  init: l,
1761
1778
  set: (h) => n?.set(h),
@@ -1773,32 +1790,32 @@ const Yt = /* @__PURE__ */ Me({
1773
1790
  e(s), o("register", s);
1774
1791
  function d() {
1775
1792
  if (n) return n;
1776
- const h = we(a), c = h?.getCesium?.(), g = h?.getViewer?.();
1793
+ const h = Se(a), c = h?.getCesium?.(), g = h?.getViewer?.();
1777
1794
  c && g ? l({ Cesium: c, viewer: g, methods: h }) : i.Cesium && i.viewer && l({ methods: h });
1778
1795
  }
1779
- return Pe(() => {
1796
+ return Te(() => {
1780
1797
  d();
1781
- }), Y(
1798
+ }), X(
1782
1799
  () => [i.Cesium, i.viewer],
1783
1800
  ([h, c]) => {
1784
1801
  h && c && !n && d();
1785
1802
  }
1786
- ), Y(
1803
+ ), X(
1787
1804
  () => a?.value,
1788
1805
  (h, c) => {
1789
1806
  d();
1790
1807
  },
1791
1808
  { deep: !1 }
1792
- ), Le(() => {
1793
- }), (h, c) => Te(h.$slots, "default");
1809
+ ), we(() => {
1810
+ }), (h, c) => xe(h.$slots, "default");
1794
1811
  }
1795
- }), ti = be(Yt);
1812
+ }), ri = _e(qt);
1796
1813
  export {
1797
- ti as CxMarkerManage,
1798
- Ut as MarkerManage,
1799
- Kt as MarkerManagerCore,
1800
- I as ReportListenerKey,
1801
- ti as default,
1802
- Fe as markerManageProps
1814
+ ri as CxMarkerManage,
1815
+ Xt as MarkerManage,
1816
+ Wt as MarkerManagerCore,
1817
+ O as ReportListenerKey,
1818
+ ri as default,
1819
+ Ne as markerManageProps
1803
1820
  };
1804
1821
  //# sourceMappingURL=marker-manage.js.map