leiting-bim 2.1.126 → 2.1.128

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,13 @@
1
1
  import { w as we } from "../create-DynflqE1.js";
2
- import { h as M, markRaw as T, render as I, defineComponent as xe, inject as Ie, onMounted as Se, watch as j, onUnmounted as De, renderSlot as Ee, unref as Ge } from "vue";
3
- import { M as S, H as Z, a as H } from "../HtmlOverlayLabelPool-DgCFnmr3.js";
4
- import { CxCardCarousel as J } from "./card-carousel.js";
5
- import { CxMarkerDefault as Q } from "./marker-default.js";
6
- import { CxMarkerHtml as Oe } from "./marker-html.js";
7
- import { i as K, b as oe, a as L, S as E, d as ee, c as W, e as ne, f as Ae, g as se, M as le, h as N, j as ke, k as Re, l as $e, m as he, n as ce, o as Be, p as He, q as Ne, r as ze, s as Fe, t as de, u as Ke, v as We, w as Ve, x as Ye } from "../index-Kdqw0FJN.js";
8
- const Ue = {
2
+ import { h as L, markRaw as M, render as S, defineComponent as xe, inject as Se, onMounted as De, watch as Z, onUnmounted as Ie, renderSlot as Oe, unref as Ee } from "vue";
3
+ import { M as D, H as J, a as H } from "../HtmlOverlayLabelPool-DgCFnmr3.js";
4
+ import { CxCardCarousel as Q } from "./card-carousel.js";
5
+ import { CxMarkerBubble as Ge } from "./marker-bubble.js";
6
+ import { CxMarkerDefault as ee } from "./marker-default.js";
7
+ import { CxMarkerHtml as Ae } from "./marker-html.js";
8
+ import { CxMarkerText as ke } from "./marker-text.js";
9
+ import { i as W, b as ne, a as _, S as O, d as te, c as V, e as se, f as Re, g as le, M as he, h as N, j as $e, k as Be, l as He, m as ce, n as de, o as Ne, p as ze, q as Fe, r as Ke, s as We, t as ge, u as Ve, v as Ye, w as Ue, x as Xe } from "../index-McKGafjp.js";
10
+ const qe = {
9
11
  id: { type: String, default: "marker" },
10
12
  Cesium: { type: Object },
11
13
  viewer: { type: Object },
@@ -16,8 +18,8 @@ const Ue = {
16
18
  themeConfig: { type: Object }
17
19
  // Optional override
18
20
  };
19
- var D = /* @__PURE__ */ ((r) => (r.左建选中模型 = "MODEL_LEFT_CLICK", r.标记左键点击 = "TAG_LEFT_CLICK", r.标记移入 = "TAG_MOUSEENTER", r.标记移出 = "TAG_MOUSELEAVE", r.模型位置保存 = "SAVE_REGION", r.模型加载完成 = "MODEL_READY", r))(D || {});
20
- class Xe {
21
+ 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 || {});
22
+ class je {
21
23
  Cesium;
22
24
  viewer;
23
25
  labelPool;
@@ -118,23 +120,23 @@ class Xe {
118
120
  for (const a of this.levels) {
119
121
  const n = a.level, s = this.gridLayers.get(n);
120
122
  if (!s) continue;
121
- const h = this.Cesium.Cartographic.fromDegrees(i.lon, i.lat), d = this.tilingScheme.positionToTileXY(
123
+ const h = this.Cesium.Cartographic.fromDegrees(i.lon, i.lat), c = this.tilingScheme.positionToTileXY(
122
124
  h,
123
125
  n,
124
126
  new this.Cesium.Cartesian2()
125
127
  );
126
- if (!d) continue;
127
- const l = `${d.x}_${d.y}`, c = s.get(l);
128
- if (c) {
129
- const g = c.allPoints.findIndex((f) => f.id === e.id);
130
- if (g !== -1 && c.allPoints.splice(g, 1), i.data?.billboard?.[0]?.skipAggregation) {
131
- const f = c.skipPoints.findIndex((u) => u.id === e.id);
132
- f !== -1 && c.skipPoints.splice(f, 1);
128
+ if (!c) continue;
129
+ const l = `${c.x}_${c.y}`, d = s.get(l);
130
+ if (d) {
131
+ const g = d.allPoints.findIndex((f) => f.id === e.id);
132
+ if (g !== -1 && d.allPoints.splice(g, 1), i.data?.billboard?.[0]?.skipAggregation) {
133
+ const f = d.skipPoints.findIndex((u) => u.id === e.id);
134
+ f !== -1 && d.skipPoints.splice(f, 1);
133
135
  } else {
134
- const f = this.groupByTheme ? i.data?.theme : this.clusterTheme, u = c.groups.get(f);
136
+ const f = this.groupByTheme ? i.data?.theme : this.clusterTheme, u = d.groups.get(f);
135
137
  if (u) {
136
138
  const p = u.findIndex((y) => y.id === e.id);
137
- p !== -1 && u.splice(p, 1), u.length === 0 && c.groups.delete(f);
139
+ p !== -1 && u.splice(p, 1), u.length === 0 && d.groups.delete(f);
138
140
  }
139
141
  }
140
142
  }
@@ -151,8 +153,8 @@ class Xe {
151
153
  for (const [a, n] of o.entries()) {
152
154
  n.allPoints = n.allPoints.filter((s) => !t.has(s.id)), n.skipPoints = n.skipPoints.filter((s) => !t.has(s.id));
153
155
  for (const [s, h] of n.groups.entries()) {
154
- const d = h.filter((l) => !t.has(l.id));
155
- d.length === 0 ? n.groups.delete(s) : n.groups.set(s, d);
156
+ const c = h.filter((l) => !t.has(l.id));
157
+ c.length === 0 ? n.groups.delete(s) : n.groups.set(s, c);
156
158
  }
157
159
  n.allPoints.length === 0 && o.delete(a);
158
160
  }
@@ -185,8 +187,8 @@ class Xe {
185
187
  }, o.set(s, h)), h.allPoints.push(e), e.data?.billboard?.[0]?.skipAggregation)
186
188
  h.skipPoints.push(e);
187
189
  else {
188
- const d = this.groupByTheme ? e.data?.billboard?.[0]?.theme : this.clusterTheme;
189
- h.groups.has(d) || h.groups.set(d, []), h.groups.get(d).push(e);
190
+ const c = this.groupByTheme ? e.data?.billboard?.[0]?.theme : this.clusterTheme;
191
+ h.groups.has(c) || h.groups.set(c, []), h.groups.get(c).push(e);
190
192
  }
191
193
  }
192
194
  }
@@ -281,41 +283,41 @@ class Xe {
281
283
  return t;
282
284
  }
283
285
  _processTiles(e, t) {
284
- const i = /* @__PURE__ */ new Set(), o = this.viewer.scene, a = o && o.globe, n = a && a.ellipsoid, s = n && o.camera.computeViewRectangle(n), h = (d, l, c) => {
286
+ const i = /* @__PURE__ */ new Set(), o = this.viewer.scene, a = o && o.globe, n = a && a.ellipsoid, s = n && o.camera.computeViewRectangle(n), h = (c, l, d) => {
285
287
  if (!s) return !0;
286
- const g = this.tilingScheme.tileXYToRectangle(d, l, c);
288
+ const g = this.tilingScheme.tileXYToRectangle(c, l, d);
287
289
  return !(!g || g.east <= s.west || g.west >= s.east || g.north <= s.south || g.south >= s.north);
288
290
  };
289
- for (const d of e) {
290
- const l = d.rectangle, c = d._level ?? d.level;
291
- if (!l || typeof c != "number") continue;
292
- const g = this._getGridRefLevel(c), f = this._resolveLevelIndex(g);
291
+ for (const c of e) {
292
+ const l = c.rectangle, d = c._level ?? c.level;
293
+ if (!l || typeof d != "number") continue;
294
+ const g = this._getGridRefLevel(d), f = this._resolveLevelIndex(g);
293
295
  if (f === void 0) continue;
294
- const u = this.levels[f].level, p = d._x ?? d.x, y = d._y ?? d.y;
296
+ const u = this.levels[f].level, p = c._x ?? c.x, y = c._y ?? c.y;
295
297
  if (typeof p == "number" && typeof y == "number") {
296
- const C = c - u;
298
+ const C = d - u;
297
299
  if (C >= 0) {
298
- const _ = 1 << C, v = Math.floor(p / _), w = Math.floor(y / _), x = `${u}_${v}_${w}`;
300
+ const b = 1 << C, v = Math.floor(p / b), w = Math.floor(y / b), x = `${u}_${v}_${w}`;
299
301
  if (i.has(x)) continue;
300
- i.add(x), t(f, v, w, c);
302
+ i.add(x), t(f, v, w, d);
301
303
  } else {
302
304
  const v = 1 << Math.min(-C, this.maxRefineLevels), w = p * v, x = y * v;
303
305
  for (let k = 0; k < v; k++)
304
306
  for (let R = 0; R < v; R++) {
305
307
  const $ = w + k, B = x + R;
306
308
  if (!h($, B, u)) continue;
307
- const q = `${u}_${$}_${B}`;
308
- i.has(q) || (i.add(q), t(f, $, B, c));
309
+ const j = `${u}_${$}_${B}`;
310
+ i.has(j) || (i.add(j), t(f, $, B, d));
309
311
  }
310
312
  }
311
313
  continue;
312
314
  }
313
- const b = this.levels[f].size, m = this.Cesium.Math.toDegrees(l.west), X = this.Cesium.Math.toDegrees(l.east), O = this.Cesium.Math.toDegrees(l.south), P = this.Cesium.Math.toDegrees(l.north), A = Math.floor((m - -180) / b), Me = Math.floor((X - -180) / b), Te = Math.floor((O - -90) / b), Pe = Math.floor((P - -90) / b);
315
+ const T = this.levels[f].size, m = this.Cesium.Math.toDegrees(l.west), q = this.Cesium.Math.toDegrees(l.east), G = this.Cesium.Math.toDegrees(l.south), P = this.Cesium.Math.toDegrees(l.north), A = Math.floor((m - -180) / T), Me = Math.floor((q - -180) / T), Te = Math.floor((G - -90) / T), Pe = Math.floor((P - -90) / T);
314
316
  for (let C = A; C <= Me; C++)
315
- for (let _ = Te; _ <= Pe; _++) {
316
- if (!h(C, _, u)) continue;
317
- const v = `${u}_${C}_${_}`;
318
- i.has(v) || (i.add(v), t(f, C, _, c));
317
+ for (let b = Te; b <= Pe; b++) {
318
+ if (!h(C, b, u)) continue;
319
+ const v = `${u}_${C}_${b}`;
320
+ i.has(v) || (i.add(v), t(f, C, b, d));
319
321
  }
320
322
  }
321
323
  }
@@ -328,18 +330,18 @@ class Xe {
328
330
  _getCellContext(e, t, i, o) {
329
331
  const n = this.levels[e].level, s = this.gridLayers.get(n);
330
332
  if (!s) return null;
331
- const h = `${t}_${i}`, d = s.get(h);
332
- if (!d) return null;
333
- const l = this.tilingScheme.tileXYToRectangle(t, i, n), c = this.Cesium.Math.toDegrees(l.west), g = this.Cesium.Math.toDegrees(l.south), f = this.Cesium.Math.toDegrees(l.east), u = this.Cesium.Math.toDegrees(l.north), p = (c + f) / 2, y = (g + u) / 2;
333
+ const h = `${t}_${i}`, c = s.get(h);
334
+ if (!c) return null;
335
+ const l = this.tilingScheme.tileXYToRectangle(t, i, n), d = this.Cesium.Math.toDegrees(l.west), g = this.Cesium.Math.toDegrees(l.south), f = this.Cesium.Math.toDegrees(l.east), u = this.Cesium.Math.toDegrees(l.north), p = (d + f) / 2, y = (g + u) / 2;
334
336
  return {
335
337
  levelIdx: e,
336
338
  tileLevel: n,
337
339
  lonIdx: t,
338
340
  latIdx: i,
339
341
  key: h,
340
- cell: d,
342
+ cell: c,
341
343
  rect: l,
342
- west: c,
344
+ west: d,
343
345
  south: g,
344
346
  east: f,
345
347
  north: u,
@@ -371,17 +373,17 @@ class Xe {
371
373
  latIdx: n,
372
374
  cell: s,
373
375
  centerLon: h,
374
- centerLat: d,
376
+ centerLat: c,
375
377
  viewTileLevel: l
376
- } = e, c = l;
378
+ } = e, d = l;
377
379
  for (const [g, f] of s.groups) {
378
380
  const u = f.filter((m) => m.data?.show !== !1);
379
381
  if (u.length === 0) continue;
380
- let p = h, y = d, G = u[0]?.height || 0;
381
- if (this.centralPointMode == "firstPoint" && (p = u[0]?.lon || 0, y = u[0]?.lat || 0, G = u[0]?.height || 0), o === this.levels.length - 1 || u.length < t)
382
+ let p = h, y = c, E = u[0]?.height || 0;
383
+ if (this.centralPointMode == "firstPoint" && (p = u[0]?.lon || 0, y = u[0]?.lat || 0, E = u[0]?.height || 0), o === this.levels.length - 1 || u.length < t)
382
384
  for (const m of u) {
383
385
  if (i >= this.displayLimit) break;
384
- this._isVisibleAtLevel(m, c) && (this.labelPool.add(m.data, {
386
+ this._isVisibleAtLevel(m, d) && (this.labelPool.add(m.data, {
385
387
  id: `point-${m.id}`,
386
388
  lon: m.lon,
387
389
  lat: m.lat,
@@ -393,9 +395,9 @@ class Xe {
393
395
  else {
394
396
  if (i >= this.displayLimit)
395
397
  return i;
396
- const m = c == null ? u : u.filter((A) => this._isVisibleAtLevel(A, c));
398
+ const m = d == null ? u : u.filter((A) => this._isVisibleAtLevel(A, d));
397
399
  if (!m.length) return i;
398
- const O = m[0]?.data?.billboard?.[0]?.theme || this.clusterTheme, P = this.groupByTheme ? `cluster-${o}-${a}-${n}-${g}` : `cluster-${o}-${a}-${n}`;
400
+ const G = m[0]?.data?.billboard?.[0]?.theme || this.clusterTheme, P = this.groupByTheme ? `cluster-${o}-${a}-${n}-${g}` : `cluster-${o}-${a}-${n}`;
399
401
  this.labelPool.add(
400
402
  {
401
403
  id: P,
@@ -409,8 +411,8 @@ class Xe {
409
411
  id: P,
410
412
  lon: p,
411
413
  lat: y,
412
- height: G,
413
- theme: O
414
+ height: E,
415
+ theme: G
414
416
  }
415
417
  ), i++;
416
418
  }
@@ -419,13 +421,13 @@ class Xe {
419
421
  }
420
422
  _debugDrawCell(e) {
421
423
  if (!this.debugCurrentGrids) return;
422
- const { levelIdx: t, west: i, south: o, east: a, north: n, lonIdx: s, latIdx: h } = e, d = this.levels[t].level;
424
+ const { levelIdx: t, west: i, south: o, east: a, north: n, lonIdx: s, latIdx: h } = e, c = this.levels[t].level;
423
425
  this._drawDebugGrid(
424
426
  i,
425
427
  o,
426
428
  a,
427
429
  n,
428
- `L:${d} X:${s} Y:${h}`
430
+ `L:${c} X:${s} Y:${h}`
429
431
  );
430
432
  }
431
433
  refresh() {
@@ -502,30 +504,30 @@ class Xe {
502
504
  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(), this._removeDebugImageryLayer();
503
505
  }
504
506
  }
505
- var qe = "[object Symbol]";
506
- function V(r) {
507
- return typeof r == "symbol" || K(r) && oe(r) == qe;
507
+ var Ze = "[object Symbol]";
508
+ function Y(r) {
509
+ return typeof r == "symbol" || W(r) && ne(r) == Ze;
508
510
  }
509
- function ge(r, e) {
511
+ function ue(r, e) {
510
512
  for (var t = -1, i = r == null ? 0 : r.length, o = Array(i); ++t < i; )
511
513
  o[t] = e(r[t], t, r);
512
514
  return o;
513
515
  }
514
- var te = E ? E.prototype : void 0, ie = te ? te.toString : void 0;
515
- function ue(r) {
516
+ var ie = O ? O.prototype : void 0, re = ie ? ie.toString : void 0;
517
+ function fe(r) {
516
518
  if (typeof r == "string")
517
519
  return r;
518
- if (L(r))
519
- return ge(r, ue) + "";
520
- if (V(r))
521
- return ie ? ie.call(r) : "";
520
+ if (_(r))
521
+ return ue(r, fe) + "";
522
+ if (Y(r))
523
+ return re ? re.call(r) : "";
522
524
  var e = r + "";
523
525
  return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
524
526
  }
525
- function fe(r) {
527
+ function me(r) {
526
528
  return r;
527
529
  }
528
- function je(r, e, t) {
530
+ function Je(r, e, t) {
529
531
  switch (t.length) {
530
532
  case 0:
531
533
  return r.call(e);
@@ -538,72 +540,72 @@ function je(r, e, t) {
538
540
  }
539
541
  return r.apply(e, t);
540
542
  }
541
- var Ze = 800, Je = 16, Qe = Date.now;
542
- function et(r) {
543
+ var Qe = 800, et = 16, tt = Date.now;
544
+ function it(r) {
543
545
  var e = 0, t = 0;
544
546
  return function() {
545
- var i = Qe(), o = Je - (i - t);
547
+ var i = tt(), o = et - (i - t);
546
548
  if (t = i, o > 0) {
547
- if (++e >= Ze)
549
+ if (++e >= Qe)
548
550
  return arguments[0];
549
551
  } else
550
552
  e = 0;
551
553
  return r.apply(void 0, arguments);
552
554
  };
553
555
  }
554
- function tt(r) {
556
+ function rt(r) {
555
557
  return function() {
556
558
  return r;
557
559
  };
558
560
  }
559
- var it = ee ? function(r, e) {
560
- return ee(r, "toString", {
561
+ var at = te ? function(r, e) {
562
+ return te(r, "toString", {
561
563
  configurable: !0,
562
564
  enumerable: !1,
563
- value: tt(e),
565
+ value: rt(e),
564
566
  writable: !0
565
567
  });
566
- } : fe, me = et(it), re = Math.max;
567
- function pe(r, e, t) {
568
- return e = re(e === void 0 ? r.length - 1 : e, 0), function() {
569
- for (var i = arguments, o = -1, a = re(i.length - e, 0), n = Array(a); ++o < a; )
568
+ } : me, pe = it(at), ae = Math.max;
569
+ function ye(r, e, t) {
570
+ return e = ae(e === void 0 ? r.length - 1 : e, 0), function() {
571
+ for (var i = arguments, o = -1, a = ae(i.length - e, 0), n = Array(a); ++o < a; )
570
572
  n[o] = i[e + o];
571
573
  o = -1;
572
574
  for (var s = Array(e + 1); ++o < e; )
573
575
  s[o] = i[o];
574
- return s[e] = t(n), je(r, this, s);
576
+ return s[e] = t(n), Je(r, this, s);
575
577
  };
576
578
  }
577
- function rt(r, e) {
578
- return me(pe(r, e, fe), r + "");
579
+ function ot(r, e) {
580
+ return pe(ye(r, e, me), r + "");
579
581
  }
580
- function at(r, e, t) {
581
- if (!W(t))
582
+ function nt(r, e, t) {
583
+ if (!V(t))
582
584
  return !1;
583
585
  var i = typeof e;
584
- return (i == "number" ? ne(t) && Ae(e, t.length) : i == "string" && e in t) ? se(t[e], r) : !1;
586
+ return (i == "number" ? se(t) && Re(e, t.length) : i == "string" && e in t) ? le(t[e], r) : !1;
585
587
  }
586
- function ot(r) {
587
- return rt(function(e, t) {
588
+ function st(r) {
589
+ return ot(function(e, t) {
588
590
  var i = -1, o = t.length, a = o > 1 ? t[o - 1] : void 0, n = o > 2 ? t[2] : void 0;
589
- for (a = r.length > 3 && typeof a == "function" ? (o--, a) : void 0, n && at(t[0], t[1], n) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++i < o; ) {
591
+ for (a = r.length > 3 && typeof a == "function" ? (o--, a) : void 0, n && nt(t[0], t[1], n) && (a = o < 3 ? void 0 : a, o = 1), e = Object(e); ++i < o; ) {
590
592
  var s = t[i];
591
593
  s && r(e, s, i, a);
592
594
  }
593
595
  return e;
594
596
  });
595
597
  }
596
- var nt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, st = /^\w*$/;
597
- function lt(r, e) {
598
- if (L(r))
598
+ var lt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ht = /^\w*$/;
599
+ function ct(r, e) {
600
+ if (_(r))
599
601
  return !1;
600
602
  var t = typeof r;
601
- return t == "number" || t == "symbol" || t == "boolean" || r == null || V(r) ? !0 : st.test(r) || !nt.test(r) || e != null && r in Object(e);
603
+ return t == "number" || t == "symbol" || t == "boolean" || r == null || Y(r) ? !0 : ht.test(r) || !lt.test(r) || e != null && r in Object(e);
602
604
  }
603
- var ht = "Expected a function";
604
- function Y(r, e) {
605
+ var dt = "Expected a function";
606
+ function U(r, e) {
605
607
  if (typeof r != "function" || e != null && typeof e != "function")
606
- throw new TypeError(ht);
608
+ throw new TypeError(dt);
607
609
  var t = function() {
608
610
  var i = arguments, o = e ? e.apply(this, i) : i[0], a = t.cache;
609
611
  if (a.has(o))
@@ -611,77 +613,77 @@ function Y(r, e) {
611
613
  var n = r.apply(this, i);
612
614
  return t.cache = a.set(o, n) || a, n;
613
615
  };
614
- return t.cache = new (Y.Cache || le)(), t;
616
+ return t.cache = new (U.Cache || he)(), t;
615
617
  }
616
- Y.Cache = le;
617
- var ct = 500;
618
- function dt(r) {
619
- var e = Y(r, function(i) {
620
- return t.size === ct && t.clear(), i;
618
+ U.Cache = he;
619
+ var gt = 500;
620
+ function ut(r) {
621
+ var e = U(r, function(i) {
622
+ return t.size === gt && t.clear(), i;
621
623
  }), t = e.cache;
622
624
  return e;
623
625
  }
624
- var gt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ut = /\\(\\)?/g, ft = dt(function(r) {
626
+ var ft = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, mt = /\\(\\)?/g, pt = ut(function(r) {
625
627
  var e = [];
626
- return r.charCodeAt(0) === 46 && e.push(""), r.replace(gt, function(t, i, o, a) {
627
- e.push(o ? a.replace(ut, "$1") : i || t);
628
+ return r.charCodeAt(0) === 46 && e.push(""), r.replace(ft, function(t, i, o, a) {
629
+ e.push(o ? a.replace(mt, "$1") : i || t);
628
630
  }), e;
629
631
  });
630
- function mt(r) {
631
- return r == null ? "" : ue(r);
632
+ function yt(r) {
633
+ return r == null ? "" : fe(r);
632
634
  }
633
- function U(r, e) {
634
- return L(r) ? r : lt(r, e) ? [r] : ft(mt(r));
635
+ function X(r, e) {
636
+ return _(r) ? r : ct(r, e) ? [r] : pt(yt(r));
635
637
  }
636
- function ye(r) {
637
- if (typeof r == "string" || V(r))
638
+ function z(r) {
639
+ if (typeof r == "string" || Y(r))
638
640
  return r;
639
641
  var e = r + "";
640
642
  return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
641
643
  }
642
- function pt(r, e) {
643
- e = U(e, r);
644
+ function vt(r, e) {
645
+ e = X(e, r);
644
646
  for (var t = 0, i = e.length; r != null && t < i; )
645
- r = r[ye(e[t++])];
647
+ r = r[z(e[t++])];
646
648
  return t && t == i ? r : void 0;
647
649
  }
648
- var ae = E ? E.isConcatSpreadable : void 0;
649
- function yt(r) {
650
- return L(r) || N(r) || !!(ae && r && r[ae]);
650
+ var oe = O ? O.isConcatSpreadable : void 0;
651
+ function Ct(r) {
652
+ return _(r) || N(r) || !!(oe && r && r[oe]);
651
653
  }
652
- function vt(r, e, t, i, o) {
654
+ function bt(r, e, t, i, o) {
653
655
  var a = -1, n = r.length;
654
- for (t || (t = yt), o || (o = []); ++a < n; ) {
656
+ for (t || (t = Ct), o || (o = []); ++a < n; ) {
655
657
  var s = r[a];
656
- t(s) ? ke(o, s) : o[o.length] = s;
658
+ t(s) ? $e(o, s) : o[o.length] = s;
657
659
  }
658
660
  return o;
659
661
  }
660
- function Ct(r) {
662
+ function _t(r) {
661
663
  var e = r == null ? 0 : r.length;
662
- return e ? vt(r) : [];
664
+ return e ? bt(r) : [];
663
665
  }
664
- function _t(r) {
665
- return me(pe(r, void 0, Ct), r + "");
666
+ function Lt(r) {
667
+ return pe(ye(r, void 0, _t), r + "");
666
668
  }
667
- var Lt = "[object Object]", bt = Function.prototype, Mt = Object.prototype, ve = bt.toString, Tt = Mt.hasOwnProperty, Pt = ve.call(Object);
669
+ var Mt = "[object Object]", Tt = Function.prototype, Pt = Object.prototype, ve = Tt.toString, wt = Pt.hasOwnProperty, xt = ve.call(Object);
668
670
  function Ce(r) {
669
- if (!K(r) || oe(r) != Lt)
671
+ if (!W(r) || ne(r) != Mt)
670
672
  return !1;
671
- var e = Re(r);
673
+ var e = Be(r);
672
674
  if (e === null)
673
675
  return !0;
674
- var t = Tt.call(e, "constructor") && e.constructor;
675
- return typeof t == "function" && t instanceof t && ve.call(t) == Pt;
676
+ var t = wt.call(e, "constructor") && e.constructor;
677
+ return typeof t == "function" && t instanceof t && ve.call(t) == xt;
676
678
  }
677
- function wt(r, e, t) {
679
+ function St(r, e, t) {
678
680
  var i = -1, o = r.length;
679
681
  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;
680
682
  for (var a = Array(o); ++i < o; )
681
683
  a[i] = r[i + e];
682
684
  return a;
683
685
  }
684
- function xt(r) {
686
+ function Dt(r) {
685
687
  return function(e, t, i) {
686
688
  for (var o = -1, a = Object(e), n = i(e), s = n.length; s--; ) {
687
689
  var h = n[++o];
@@ -691,89 +693,82 @@ function xt(r) {
691
693
  return e;
692
694
  };
693
695
  }
694
- var It = xt();
695
- function z(r, e, t) {
696
- (t !== void 0 && !se(r[e], t) || t === void 0 && !(e in r)) && $e(r, e, t);
696
+ var It = Dt();
697
+ function F(r, e, t) {
698
+ (t !== void 0 && !le(r[e], t) || t === void 0 && !(e in r)) && He(r, e, t);
697
699
  }
698
- function St(r) {
699
- return K(r) && ne(r);
700
+ function Ot(r) {
701
+ return W(r) && se(r);
700
702
  }
701
- function F(r, e) {
703
+ function K(r, e) {
702
704
  if (!(e === "constructor" && typeof r[e] == "function") && e != "__proto__")
703
705
  return r[e];
704
706
  }
705
- function Dt(r) {
706
- return he(r, ce(r));
707
+ function Et(r) {
708
+ return ce(r, de(r));
707
709
  }
708
- function Et(r, e, t, i, o, a, n) {
709
- var s = F(r, t), h = F(e, t), d = n.get(h);
710
- if (d) {
711
- z(r, t, d);
710
+ function Gt(r, e, t, i, o, a, n) {
711
+ var s = K(r, t), h = K(e, t), c = n.get(h);
712
+ if (c) {
713
+ F(r, t, c);
712
714
  return;
713
715
  }
714
- var l = a ? a(s, h, t + "", r, e, n) : void 0, c = l === void 0;
715
- if (c) {
716
- var g = L(h), f = !g && Be(h), u = !g && !f && He(h);
717
- l = h, g || f || u ? L(s) ? l = s : St(s) ? l = Ne(s) : f ? (c = !1, l = ze(h, !0)) : u ? (c = !1, l = Fe(h, !0)) : l = [] : Ce(h) || N(h) ? (l = s, N(s) ? l = Dt(s) : (!W(s) || de(s)) && (l = Ke(h))) : c = !1;
716
+ var l = a ? a(s, h, t + "", r, e, n) : void 0, d = l === void 0;
717
+ if (d) {
718
+ var g = _(h), f = !g && Ne(h), u = !g && !f && ze(h);
719
+ l = h, g || f || u ? _(s) ? l = s : Ot(s) ? l = Fe(s) : f ? (d = !1, l = Ke(h, !0)) : u ? (d = !1, l = We(h, !0)) : l = [] : Ce(h) || N(h) ? (l = s, N(s) ? l = Et(s) : (!V(s) || ge(s)) && (l = Ve(h))) : d = !1;
718
720
  }
719
- c && (n.set(h, l), o(l, h, i, a, n), n.delete(h)), z(r, t, l);
721
+ d && (n.set(h, l), o(l, h, i, a, n), n.delete(h)), F(r, t, l);
720
722
  }
721
- function _e(r, e, t, i, o) {
723
+ function be(r, e, t, i, o) {
722
724
  r !== e && It(e, function(a, n) {
723
- if (o || (o = new We()), W(a))
724
- Et(r, e, n, t, _e, i, o);
725
+ if (o || (o = new Ye()), V(a))
726
+ Gt(r, e, n, t, be, i, o);
725
727
  else {
726
- var s = i ? i(F(r, n), a, n + "", r, e, o) : void 0;
727
- s === void 0 && (s = a), z(r, n, s);
728
+ var s = i ? i(K(r, n), a, n + "", r, e, o) : void 0;
729
+ s === void 0 && (s = a), F(r, n, s);
728
730
  }
729
- }, ce);
731
+ }, de);
730
732
  }
731
- function Gt(r) {
733
+ function At(r) {
732
734
  var e = r == null ? 0 : r.length;
733
735
  return e ? r[e - 1] : void 0;
734
736
  }
735
- function Ot(r, e) {
736
- return e.length < 2 ? r : pt(r, wt(e, 0, -1));
737
+ function kt(r, e) {
738
+ return e.length < 2 ? r : vt(r, St(e, 0, -1));
737
739
  }
738
- var At = ot(function(r, e, t) {
739
- _e(r, e, t);
740
- }), kt = Object.prototype, Rt = kt.hasOwnProperty;
741
- function $t(r, e) {
742
- e = U(e, r);
740
+ var Rt = st(function(r, e, t) {
741
+ be(r, e, t);
742
+ }), $t = Object.prototype, Bt = $t.hasOwnProperty;
743
+ function Ht(r, e) {
744
+ e = X(e, r);
743
745
  var t = -1, i = e.length;
744
746
  if (!i)
745
747
  return !0;
746
- for (var o = r == null || typeof r != "object" && typeof r != "function"; ++t < i; ) {
747
- var a = e[t];
748
- if (typeof a == "string") {
749
- if (a === "__proto__" && !Rt.call(r, "__proto__"))
750
- return !1;
751
- if (a === "constructor" && t + 1 < i && typeof e[t + 1] == "string" && e[t + 1] === "prototype") {
752
- if (o && t === 0)
753
- continue;
754
- return !1;
755
- }
756
- }
748
+ for (; ++t < i; ) {
749
+ var o = z(e[t]);
750
+ if (o === "__proto__" && !Bt.call(r, "__proto__") || (o === "constructor" || o === "prototype") && t < i - 1)
751
+ return !1;
757
752
  }
758
- var n = Ot(r, e);
759
- return n == null || delete n[ye(Gt(e))];
753
+ var a = kt(r, e);
754
+ return a == null || delete a[z(At(e))];
760
755
  }
761
- function Bt(r) {
756
+ function Nt(r) {
762
757
  return Ce(r) ? void 0 : r;
763
758
  }
764
- var Ht = 1, Nt = 2, zt = 4, Ft = _t(function(r, e) {
759
+ var zt = 1, Ft = 2, Kt = 4, Wt = Lt(function(r, e) {
765
760
  var t = {};
766
761
  if (r == null)
767
762
  return t;
768
763
  var i = !1;
769
- e = ge(e, function(a) {
770
- return a = U(a, r), i || (i = a.length > 1), a;
771
- }), he(r, Ve(r), t), i && (t = Ye(t, Ht | Nt | zt, Bt));
764
+ e = ue(e, function(a) {
765
+ return a = X(a, r), i || (i = a.length > 1), a;
766
+ }), ce(r, Ue(r), t), i && (t = Xe(t, zt | Ft | Kt, Nt));
772
767
  for (var o = e.length; o--; )
773
- $t(t, e[o]);
768
+ Ht(t, e[o]);
774
769
  return t;
775
770
  });
776
- function Kt(r, e) {
771
+ function Vt(r, e) {
777
772
  const t = e.materialType || "DynamicImgMaterial" + Date.now() + Math.floor(Math.random() * 1e3);
778
773
  function i(a) {
779
774
  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();
@@ -810,7 +805,7 @@ function Kt(r, e) {
810
805
  vec2 st = materialInput.st;
811
806
  float time = fract(mod(float(czm_frameNumber * 33.0) , float(${a.duration})) / float(${a.duration}));
812
807
  ${a.freely === "vertical" ? `vec4 colorImage = texture(image, vec2(fract(float(${a.count}) *st.t ${a.direction} time), fract(st.s)));` : `vec4 colorImage = texture(image, vec2(fract(float(${a.count}) *st.s ${a.direction} time), fract(st.t)));`}
813
- ${a.isCustomColor ? "material.diffuse = color.rgb;" : "material.diffuse = colorImage.rgb;"}
808
+ material.diffuse = color.rgb;
814
809
  material.alpha = colorImage.a;
815
810
  return material;
816
811
  }`;
@@ -827,8 +822,7 @@ function Kt(r, e) {
827
822
  count: e.count,
828
823
  freely: e.freely || "",
829
824
  direction: e.direction,
830
- duration: e.duration || 100,
831
- isCustomColor: e.isCustomColor
825
+ duration: e.duration || 100
832
826
  })
833
827
  },
834
828
  translucent() {
@@ -836,7 +830,7 @@ function Kt(r, e) {
836
830
  }
837
831
  }), new i(e);
838
832
  }
839
- function Le(r, e) {
833
+ function _e(r, e) {
840
834
  const t = e.MaterialType || "wallType" + (/* @__PURE__ */ new Date()).getTime() + parseInt(Math.random() * 1e3 + "");
841
835
  function i(a) {
842
836
  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();
@@ -870,10 +864,10 @@ function Le(r, e) {
870
864
  return a.freely == "vertical" ? n += "vec4 colorImage = texture(image, vec2(fract(float(" + a.count + ")*st.t " + a.direction + ` time), fract(st.s)));
871
865
  ` : n += "vec4 colorImage = texture(image, vec2(fract(float(" + a.count + ")*st.s " + a.direction + ` time), fract(st.t)));
872
866
  `, n += `vec4 fragColor;
873
- fragColor.rgb = (colorImage.rgb) / 1.0;
867
+ fragColor.rgb = (color.rgb) / 1.0;
874
868
  fragColor = czm_gammaCorrect(fragColor);
875
- `, n += ` material.diffuse = colorImage.rgb;
876
- material.alpha = colorImage.a;
869
+ `, n += ` material.diffuse = color.rgb;
870
+ material.alpha = colorImage.a * color.a;
877
871
  material.emission = fragColor.rgb;
878
872
 
879
873
  return material;
@@ -884,7 +878,7 @@ function Le(r, e) {
884
878
  fabric: {
885
879
  type: t,
886
880
  uniforms: {
887
- color: new r.Color(1, 0, 0, 0.5),
881
+ color: e.color || new r.Color(1, 1, 1, 1),
888
882
  image: e.image,
889
883
  time: 0
890
884
  },
@@ -899,11 +893,11 @@ function Le(r, e) {
899
893
  }
900
894
  }), new i(e);
901
895
  }
902
- function Wt(r, e) {
903
- const t = r.Color, i = Object.defineProperties, o = r.Event, a = r.createPropertyDescriptor, n = r.Property, s = (c, g) => c === void 0 ? g : c, h = {};
904
- let d = e.materialType || "PolylineFlow" + Date.now() + Math.floor(Math.random() * 1e3);
905
- function l(c) {
906
- c = s(c, h), this._definitionChanged = new o(), this._color = void 0, this._colorSubscription = void 0, this.color = c.color || t.fromBytes(0, 255, 255, 255), this._duration = void 0, this._durationSubscription = void 0, this.duration = s(c.duration, 45);
896
+ function Yt(r, e) {
897
+ const t = r.Color, i = Object.defineProperties, o = r.Event, a = r.createPropertyDescriptor, n = r.Property, s = (d, g) => d === void 0 ? g : d, h = {};
898
+ let c = e.materialType || "PolylineFlow" + Date.now() + Math.floor(Math.random() * 1e3);
899
+ function l(d) {
900
+ d = s(d, h), this._definitionChanged = new o(), this._color = void 0, this._colorSubscription = void 0, this.color = d.color || t.fromBytes(0, 255, 255, 255), this._duration = void 0, this._durationSubscription = void 0, this.duration = s(d.duration, 45);
907
901
  }
908
902
  return i(l.prototype, {
909
903
  isConstant: {
@@ -916,23 +910,23 @@ function Wt(r, e) {
916
910
  return this._definitionChanged;
917
911
  }
918
912
  }
919
- }), l.prototype.getType = function(c) {
920
- return d;
921
- }, l.prototype.getValue = function(c, g) {
913
+ }), l.prototype.getType = function(d) {
914
+ return c;
915
+ }, l.prototype.getValue = function(d, g) {
922
916
  return g || (g = {}), g.color = n.getValueOrClonedDefault(
923
917
  this._color,
924
- c,
918
+ d,
925
919
  r.Color.WHITE,
926
920
  g.color
927
921
  ), g.duration = this._duration, g;
928
- }, l.prototype.equals = function(c) {
929
- return this === c || c instanceof l && n.equals(this._color, c._color);
922
+ }, l.prototype.equals = function(d) {
923
+ return this === d || d instanceof l && n.equals(this._color, d._color);
930
924
  }, i(l.prototype, {
931
925
  color: a("color"),
932
926
  duration: a("duration")
933
- }), r.PolylineFlowMaterialProperty = l, r.Material._materialCache.addMaterial(d, {
927
+ }), r.PolylineFlowMaterialProperty = l, r.Material._materialCache.addMaterial(c, {
934
928
  fabric: {
935
- type: d,
929
+ type: c,
936
930
  uniforms: {
937
931
  color: new t(1, 1, 1, 1),
938
932
  duration: 45
@@ -962,7 +956,7 @@ function Wt(r, e) {
962
956
  }
963
957
  }), new l(e);
964
958
  }
965
- class be {
959
+ class Le {
966
960
  categoryMap = /* @__PURE__ */ new Map();
967
961
  CategoryGet = {};
968
962
  constructor() {
@@ -1051,7 +1045,7 @@ class be {
1051
1045
  return [...this.categoryMap.keys()];
1052
1046
  }
1053
1047
  }
1054
- class Vt {
1048
+ class Ut {
1055
1049
  id;
1056
1050
  entities = [];
1057
1051
  primitives = [];
@@ -1087,7 +1081,7 @@ class Vt {
1087
1081
  }), 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;
1088
1082
  }
1089
1083
  }
1090
- class Yt {
1084
+ class Xt {
1091
1085
  id;
1092
1086
  groupMap = /* @__PURE__ */ new Map();
1093
1087
  Cesium;
@@ -1096,9 +1090,9 @@ class Yt {
1096
1090
  aggregator;
1097
1091
  cardPool;
1098
1092
  constructor(e, t, i, o, a, n) {
1099
- this.id = e, this.Cesium = t, this.viewer = i, this.materialManager = o, this.aggregator = a, this.cardPool = n, this.aggregator.labelPool.eventBus.addListener(S.Click, {
1093
+ 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, {
1100
1094
  name: "BufferedHierarchicalAggregator_maker_click",
1101
- fn: (h, d) => {
1095
+ fn: (h, c) => {
1102
1096
  this.cardPool.showByIds([h.data.id]);
1103
1097
  }
1104
1098
  }), new t.ScreenSpaceEventHandler(i.scene.canvas).setInputAction(() => {
@@ -1152,8 +1146,8 @@ class Yt {
1152
1146
  themeKey: e.theme,
1153
1147
  category: "polygon",
1154
1148
  options: e
1155
- }), o = Array.isArray(e.hierarchy[0]) ? e.hierarchy.flat() : e.hierarchy, a = this.Cesium.Cartesian3.fromDegreesArrayHeights(o), n = e.holes?.map((d) => {
1156
- let l = Array.isArray(d[0]) ? e.hierarchy.flat() : e.hole;
1149
+ }), o = Array.isArray(e.hierarchy[0]) ? e.hierarchy.flat() : e.hierarchy, a = this.Cesium.Cartesian3.fromDegreesArrayHeights(o), n = e.holes?.map((c) => {
1150
+ let l = Array.isArray(c[0]) ? e.hierarchy.flat() : e.hole;
1157
1151
  return this.Cesium.Cartesian3.fromDegreesArrayHeights(l.flat());
1158
1152
  }) || [], s = new this.Cesium.PolygonHierarchy(a, n);
1159
1153
  let h = {
@@ -1200,18 +1194,18 @@ class Yt {
1200
1194
  this.removeGroup(i);
1201
1195
  const o = [], a = e.show !== !1;
1202
1196
  (e.polyline || []).forEach((h) => {
1203
- const d = this.createPolyline(h, a);
1204
- d && o.push(d);
1197
+ const c = this.createPolyline(h, a);
1198
+ c && o.push(c);
1205
1199
  }), (e.wall || []).forEach((h) => {
1206
- const d = this.createWall(h, a);
1207
- d && o.push(d);
1200
+ const c = this.createWall(h, a);
1201
+ c && o.push(c);
1208
1202
  }), (e.polygon || []).forEach((h) => {
1209
- const d = this.createPolygon(h, a);
1210
- d && o.push(d);
1203
+ const c = this.createPolygon(h, a);
1204
+ c && o.push(c);
1211
1205
  });
1212
1206
  const n = this.createBillboardPoints(e);
1213
1207
  n.length && t && this.aggregator.appendPoints(n, !1), this.createCard(e);
1214
- const s = new Vt({
1208
+ const s = new Ut({
1215
1209
  id: i,
1216
1210
  entities: o,
1217
1211
  primitives: [],
@@ -1259,7 +1253,7 @@ class Yt {
1259
1253
  this.groupMap.forEach((e) => e.removeAll(this.viewer)), this.groupMap.clear();
1260
1254
  }
1261
1255
  }
1262
- class Ut {
1256
+ class qt {
1263
1257
  Cesium;
1264
1258
  viewer;
1265
1259
  layerMap = /* @__PURE__ */ new Map();
@@ -1272,7 +1266,7 @@ class Ut {
1272
1266
  addLayer(e) {
1273
1267
  this.layerMap.has(e) || this.layerMap.set(
1274
1268
  e,
1275
- new Yt(
1269
+ new Xt(
1276
1270
  e,
1277
1271
  this.Cesium,
1278
1272
  this.viewer,
@@ -1307,7 +1301,7 @@ class Ut {
1307
1301
  this.layerMap.get(e)?.removeGroups(t);
1308
1302
  }
1309
1303
  }
1310
- class Xt {
1304
+ class jt {
1311
1305
  labelId;
1312
1306
  cardId;
1313
1307
  opt;
@@ -1315,13 +1309,13 @@ class Xt {
1315
1309
  MaterialManager;
1316
1310
  instance;
1317
1311
  constructor(e) {
1318
- 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);
1312
+ this.labelId = e.labelId, this.cardId = e.cardId, this.opt = e, this.MaterialManager = e.MaterialManager || new Le(), this.instance = this.initCore(e, e.eventBus, e.cardEventBus);
1319
1313
  }
1320
1314
  //初始化标记管理
1321
1315
  initCore(e, t, i) {
1322
1316
  let { Cesium: o, viewer: a, aggregatorOptions: n } = e;
1323
1317
  t || (t = new H()), i || (i = new H());
1324
- const s = new Z(o, a, this.labelId, t), h = new Z(o, a, this.cardId, i, !1), d = new Xe(o, a, {
1318
+ const s = new J(o, a, this.labelId, t), h = new J(o, a, this.cardId, i, !1), c = new je(o, a, {
1325
1319
  //聚合
1326
1320
  threshold: n?.threshold || 16,
1327
1321
  displayLimit: n?.displayLimit || 300,
@@ -1335,15 +1329,15 @@ class Xt {
1335
1329
  // 普通点的默认主题
1336
1330
  ...n,
1337
1331
  labelPool: s
1338
- }), l = this.MaterialManager, c = new Ut(
1332
+ }), l = this.MaterialManager, d = new qt(
1339
1333
  //实体图层管理
1340
1334
  o,
1341
1335
  a,
1342
1336
  l,
1343
- d,
1337
+ c,
1344
1338
  h
1345
1339
  );
1346
- return { materialManager: l, entityLayerManager: c, cardPool: h, labelPool: s, aggregator: d, eventBus: t, cardEventBus: i };
1340
+ return { materialManager: l, entityLayerManager: d, cardPool: h, labelPool: s, aggregator: c, eventBus: t, cardEventBus: i };
1347
1341
  }
1348
1342
  //添加标记
1349
1343
  set(e) {
@@ -1357,18 +1351,18 @@ class Xt {
1357
1351
  //添加
1358
1352
  add(e) {
1359
1353
  let t = [];
1360
- L(e) ? t = e : t.push(e), t.forEach((i) => {
1354
+ _(e) ? t = e : t.push(e), t.forEach((i) => {
1361
1355
  this.entityList.set(i.id, i);
1362
1356
  }), this.instance.entityLayerManager.getLayer("Layer_default") || this.instance.entityLayerManager.addLayer("Layer_default"), this.instance.entityLayerManager.addGroupsToLayer("Layer_default", t);
1363
1357
  }
1364
1358
  //更新标记
1365
1359
  update(e, t = !0) {
1366
1360
  let i = [];
1367
- L(e) ? i = e : i.push(e);
1361
+ _(e) ? i = e : i.push(e);
1368
1362
  const o = i.map((a) => {
1369
1363
  const n = this.entityList.get(a.id);
1370
1364
  if (!n) return;
1371
- let s = At({}, n, a);
1365
+ let s = Rt({}, n, a);
1372
1366
  return this.entityList.set(a.id, s), s;
1373
1367
  }).filter(Boolean);
1374
1368
  t && this.instance.entityLayerManager.updateGroupToLayer("Layer_default", o);
@@ -1387,7 +1381,7 @@ class Xt {
1387
1381
  //删除标记
1388
1382
  delete(e) {
1389
1383
  let t = [];
1390
- L(e) ? t = e : t.push(e), t.forEach((i) => {
1384
+ _(e) ? t = e : t.push(e), t.forEach((i) => {
1391
1385
  this.entityList.delete(i);
1392
1386
  }), this.instance.entityLayerManager.removeGroups("Layer_default", t);
1393
1387
  }
@@ -1398,14 +1392,14 @@ class Xt {
1398
1392
  this.instance.aggregator.setDebugCurrentGrids(e || !1);
1399
1393
  }
1400
1394
  }
1401
- function qt({
1395
+ function Zt({
1402
1396
  Cesium: r,
1403
1397
  options: e,
1404
1398
  MaterialManager: t
1405
1399
  }) {
1406
1400
  if (e.data?.theme) {
1407
1401
  if (e.data?.lineType == "1") {
1408
- let i = Wt(r, {
1402
+ let i = Yt(r, {
1409
1403
  color: new r.Color.fromCssColorString(e?.options?.color || "#ffffff"),
1410
1404
  duration: 100
1411
1405
  });
@@ -1445,7 +1439,7 @@ function qt({
1445
1439
  category: "polyline"
1446
1440
  });
1447
1441
  } else if (e.data?.lineType == "5") {
1448
- let i = Kt(r, {
1442
+ let i = Vt(r, {
1449
1443
  image: e.img,
1450
1444
  color: new r.Color.fromCssColorString(e?.options?.color || "#ffffff"),
1451
1445
  duration: 5e3,
@@ -1461,7 +1455,7 @@ function qt({
1461
1455
  }
1462
1456
  }
1463
1457
  }
1464
- function jt({
1458
+ function Jt({
1465
1459
  Cesium: r,
1466
1460
  options: e,
1467
1461
  MaterialManager: t
@@ -1484,7 +1478,7 @@ function jt({
1484
1478
  category: "polygon"
1485
1479
  });
1486
1480
  } else if (e.data?.polygonType == "DynamicImgMaterial") {
1487
- let i = Le(r, {
1481
+ let i = _e(r, {
1488
1482
  image: e.img,
1489
1483
  color: new r.Color.fromCssColorString(e?.options?.color),
1490
1484
  duration: 5e3,
@@ -1500,7 +1494,7 @@ function jt({
1500
1494
  }
1501
1495
  }
1502
1496
  }
1503
- function Zt({
1497
+ function Qt({
1504
1498
  Cesium: r,
1505
1499
  options: e,
1506
1500
  MaterialManager: t
@@ -1516,9 +1510,9 @@ function Zt({
1516
1510
  category: "wall"
1517
1511
  });
1518
1512
  } else if (e.data?.wallType == "DynamicImgMaterial") {
1519
- let i = Le(r, {
1513
+ let i = _e(r, {
1520
1514
  image: e.img,
1521
- // color: new Cesium.Color.fromCssColorString(options?.options?.color),
1515
+ color: new r.Color.fromCssColorString(e?.options?.color),
1522
1516
  duration: 5e3,
1523
1517
  freely: e.data?.freely || "vertical",
1524
1518
  direction: "+",
@@ -1532,7 +1526,7 @@ function Zt({
1532
1526
  }
1533
1527
  }
1534
1528
  }
1535
- class Jt extends Xt {
1529
+ class ei extends jt {
1536
1530
  constructor(e) {
1537
1531
  const {
1538
1532
  labelId: t = "report-marker",
@@ -1542,14 +1536,14 @@ class Jt extends Xt {
1542
1536
  cardThemeConfig: n = [],
1543
1537
  runListener: s = () => {
1544
1538
  },
1545
- MaterialManager: h = new be(),
1546
- aggregatorOptions: d
1547
- } = e, l = [...o], c = [...a], g = [...n], f = {
1539
+ MaterialManager: h = new Le(),
1540
+ aggregatorOptions: c
1541
+ } = e, l = [...o], d = [...a], g = [...n], f = {
1548
1542
  clusterTheme: "Tag1007",
1549
1543
  pointTheme: "Tag1001",
1550
1544
  centralPointMode: "firstPoint",
1551
1545
  debugCurrentGrids: !1,
1552
- ...d || {}
1546
+ ...c || {}
1553
1547
  }, u = {
1554
1548
  ...e,
1555
1549
  labelId: t,
@@ -1558,7 +1552,7 @@ class Jt extends Xt {
1558
1552
  aggregatorOptions: f,
1559
1553
  eventBus: new H()
1560
1554
  };
1561
- super(u), this.opt = { ...this.opt, ...u }, this.initTagListener(this.instance.eventBus, this.opt), this.loadTabThemeConfig(l), this.loadLineThemeConfig(c), this.loadCardThemeConfig(g), this.initDefaultLineMaterials(), this.initDefaultTagTheme();
1555
+ super(u), this.opt = { ...this.opt, ...u }, this.initTagListener(this.instance.eventBus, this.opt), this.loadTabThemeConfig(l), this.loadLineThemeConfig(d), this.loadCardThemeConfig(g), this.initDefaultLineMaterials(), this.initDefaultTagTheme();
1562
1556
  }
1563
1557
  initDefaultTagTheme() {
1564
1558
  this.setTagTheme({
@@ -1671,21 +1665,21 @@ class Jt extends Xt {
1671
1665
  const t = this.opt.Cesium, i = this.instance.materialManager || this.opt.MaterialManager;
1672
1666
  if (e.line?.length > 0)
1673
1667
  for (let o of e.line)
1674
- qt({
1668
+ Zt({
1675
1669
  options: o,
1676
1670
  Cesium: t,
1677
1671
  MaterialManager: i
1678
1672
  });
1679
1673
  if (e.polygon?.length > 0)
1680
1674
  for (let o of e.polygon)
1681
- jt({
1675
+ Jt({
1682
1676
  options: o,
1683
1677
  Cesium: t,
1684
1678
  MaterialManager: i
1685
1679
  });
1686
1680
  if (e.wall?.length > 0)
1687
1681
  for (let o of e.wall)
1688
- Zt({
1682
+ Qt({
1689
1683
  options: o,
1690
1684
  Cesium: t,
1691
1685
  MaterialManager: i
@@ -1719,7 +1713,7 @@ class Jt extends Xt {
1719
1713
  t.registerTheme(i.data.theme, {
1720
1714
  createElement(o, a) {
1721
1715
  let n = a.data.data, s;
1722
- return i.comType == 1 ? s = M(T(J), {
1716
+ return i.comType == 1 ? s = L(M(Q), {
1723
1717
  data: n || {},
1724
1718
  imgSrc: i.data.img,
1725
1719
  styleConfig: {
@@ -1740,7 +1734,7 @@ class Jt extends Xt {
1740
1734
  top: "0px"
1741
1735
  },
1742
1736
  bgClass: [i.data.theme]
1743
- }) : i.comType == 3 && (s = M(T(J), {
1737
+ }) : i.comType == 3 && (s = L(M(Q), {
1744
1738
  data: n || {},
1745
1739
  imgSrc: i.data.img,
1746
1740
  styleConfig: {
@@ -1763,7 +1757,7 @@ class Jt extends Xt {
1763
1757
  bgClass: [i.data.theme]
1764
1758
  // titleConfig: themeOptions.options.titleConfig,
1765
1759
  // pageInfoConfig: themeOptions.options.pageInfoConfig,
1766
- })), I(s, o), () => I(null, o);
1760
+ })), S(s, o), () => S(null, o);
1767
1761
  },
1768
1762
  options: {
1769
1763
  offset: i.data.pixelOffset,
@@ -1778,7 +1772,7 @@ class Jt extends Xt {
1778
1772
  t.registerTheme(e.data.theme, {
1779
1773
  createElement(i, o) {
1780
1774
  let a = o.data?.billboard?.[0];
1781
- const n = Ft(a, ["position", "options"]);
1775
+ const n = Wt(a, ["position", "options"]);
1782
1776
  let s, h = {
1783
1777
  ...n,
1784
1778
  text: a?.options?.text,
@@ -1787,71 +1781,93 @@ class Jt extends Xt {
1787
1781
  textStyle: e?.data?.options?.textStyle,
1788
1782
  imgStyle: e?.data?.options?.imgStyle
1789
1783
  };
1790
- return o.data?.gridKey ? s = M(T(Q), {
1791
- text: o.data?.count,
1792
- isFullLink: e.isFullLink ?? !1,
1793
- img: e?.data.options.img,
1794
- imgStyle: e?.data.options?.imgStyle,
1795
- textStyle: {
1796
- display: "block !important",
1797
- "font-size": "12px !important",
1798
- minWidth: "20px",
1799
- maxWidth: "max-content",
1800
- position: "absolute",
1801
- left: "63%",
1802
- top: "-8px",
1803
- background: "#f00",
1804
- "border-radius": "50%",
1805
- height: "20px",
1806
- "line-height": "20px",
1807
- "text-align": "center",
1808
- color: "white"
1809
- }
1810
- }) : e.comType == 4 ? s = M(T(Oe), h) : s = M(T(Q), h), I(s, i), () => I(null, i);
1784
+ if (o.data?.gridKey)
1785
+ s = L(M(ee), {
1786
+ text: o.data?.count,
1787
+ isFullLink: e.isFullLink ?? !1,
1788
+ img: e?.data.options.img,
1789
+ imgStyle: e?.data.options?.imgStyle,
1790
+ textStyle: {
1791
+ display: "block !important",
1792
+ "font-size": "12px !important",
1793
+ minWidth: "20px",
1794
+ maxWidth: "max-content",
1795
+ position: "absolute",
1796
+ left: "63%",
1797
+ top: "-8px",
1798
+ background: "#f00",
1799
+ "border-radius": "50%",
1800
+ height: "20px",
1801
+ "line-height": "20px",
1802
+ "text-align": "center",
1803
+ color: "white"
1804
+ }
1805
+ });
1806
+ else if (e.comType == 4)
1807
+ s = L(M(Ae), h);
1808
+ else if (e.comType == 5) {
1809
+ const c = a?.options || {}, l = e?.data?.options || {}, d = a?.pixelOffset || e?.data?.pixelOffset || { x: 0, y: 0 }, g = c.otherOffset ?? l.otherOffset ?? { x: 0, y: -0 }, f = c.isCanDraggable ?? l.isCanDraggable ?? e?.isCanDraggable ?? !1;
1810
+ s = L(M(Ge), {
1811
+ ...h,
1812
+ pixelOffset: d,
1813
+ textStyle: c.textStyle || l.textStyle,
1814
+ lineStyle: c.lineStyle || l.lineStyle,
1815
+ otherOffset: g,
1816
+ isCanDraggable: f,
1817
+ onCanDraggable: c.onCanDraggable || e?.onCanDraggable,
1818
+ onSetOtherOffset: (u) => {
1819
+ o.data?.billboard?.[0]?.options && (o.data.billboard[0].options.otherOffset = u), c.onSetOtherOffset?.(u), e?.onSetOtherOffset?.(o.data, u);
1820
+ }
1821
+ });
1822
+ } else e.comType == 6 || e.comType == 7 ? s = L(M(ke), {
1823
+ text: h.text,
1824
+ textStyle: h.textStyle
1825
+ }) : s = L(M(ee), h);
1826
+ return S(s, i), () => S(null, i);
1811
1827
  },
1812
1828
  options: {
1813
- offset: e?.data?.pixelOffset || {}
1829
+ offset: e.comType == 5 ? {} : e?.data?.pixelOffset || {}
1814
1830
  }
1815
1831
  });
1816
1832
  }
1817
1833
  //标记监听事件
1818
1834
  initTagListener(e, t) {
1819
1835
  let { viewer: i, tagListeningOptions: o } = t;
1820
- e.addListener(S.Click, {
1836
+ e.addListener(D.Click, {
1821
1837
  name: "marker:click",
1822
1838
  fn: (a) => {
1823
- t.runListener?.(D.标记左键点击, a.data), de(a.data?.onClick) && a.data?.onClick(a.data), a.data?.cameraPoint && a.data?.billboard[0]?.isFlyToCameraPoint && i?.camera?.flyTo({
1839
+ t.runListener?.(I.标记左键点击, a.data), ge(a.data?.onClick) && a.data?.onClick(a.data), a.data?.cameraPoint && a.data?.billboard[0]?.isFlyToCameraPoint && i?.camera?.flyTo({
1824
1840
  duration: 1,
1825
1841
  ...a.data?.cameraPoint
1826
1842
  });
1827
1843
  }
1828
- }), e.addListener(S.MouseEnter, {
1844
+ }), e.addListener(D.MouseEnter, {
1829
1845
  name: "marker:mouseenter",
1830
1846
  fn: (a) => {
1831
1847
  let n = this.opt.Cesium, s = { x: 0, y: 0 };
1832
1848
  try {
1833
1849
  if (a.data?.billboard?.[0]?.position?.length > 2) {
1834
- let h = a.data?.billboard[0]?.position, d = n.Cartesian3.fromDegrees(h[0], h[1], h[3] || 0), l = this.instance.labelPool.toWindowCoordinates(d);
1850
+ let h = a.data?.billboard[0]?.position, c = n.Cartesian3.fromDegrees(h[0], h[1], h[3] || 0), l = this.instance.labelPool.toWindowCoordinates(c);
1835
1851
  s.x = l.x, s.y = l.y;
1836
1852
  }
1837
1853
  } catch (h) {
1838
1854
  console.log(h);
1839
1855
  }
1840
- t.runListener?.(D.标记移入, a.data, s);
1856
+ t.runListener?.(I.标记移入, a.data, s);
1841
1857
  }
1842
- }), e.addListener(S.MouseLeave, {
1858
+ }), e.addListener(D.MouseLeave, {
1843
1859
  name: "marker:mouseleave",
1844
1860
  fn: (a) => {
1845
1861
  let n = this.opt.Cesium, s = { x: 0, y: 0 };
1846
1862
  try {
1847
1863
  if (a.data?.billboard?.[0]?.position?.length > 2) {
1848
- let h = a.data?.billboard[0]?.position, d = n.Cartesian3.fromDegrees(h[0], h[1], h[3] || 0), l = this.instance.labelPool.toWindowCoordinates(d);
1864
+ let h = a.data?.billboard[0]?.position, c = n.Cartesian3.fromDegrees(h[0], h[1], h[3] || 0), l = this.instance.labelPool.toWindowCoordinates(c);
1849
1865
  s.x = l.x, s.y = l.y;
1850
1866
  }
1851
1867
  } catch (h) {
1852
1868
  console.log(h);
1853
1869
  }
1854
- t.runListener?.(D.标记移出, a.data, s);
1870
+ t.runListener?.(I.标记移出, a.data, s);
1855
1871
  }
1856
1872
  }), o?.forEach((a) => {
1857
1873
  e.addListener(a.key, a.ListenerItem, a.overwrite);
@@ -1869,16 +1885,16 @@ class Jt extends Xt {
1869
1885
  });
1870
1886
  }
1871
1887
  }
1872
- const Qt = /* @__PURE__ */ xe({
1888
+ const ti = /* @__PURE__ */ xe({
1873
1889
  __name: "MarkerManage",
1874
- props: Ue,
1890
+ props: qe,
1875
1891
  emits: ["register", "load", "marker-event"],
1876
1892
  setup(r, { expose: e, emit: t }) {
1877
- const i = r, o = t, a = Ie("leitingMethods");
1893
+ const i = r, o = t, a = Se("leitingMethods");
1878
1894
  let n = null;
1879
1895
  const s = (l = {}) => {
1880
1896
  if (n) return n;
1881
- const c = {
1897
+ const d = {
1882
1898
  ...i,
1883
1899
  ...l,
1884
1900
  Cesium: l.Cesium || i.Cesium,
@@ -1887,50 +1903,50 @@ const Qt = /* @__PURE__ */ xe({
1887
1903
  o("marker-event", { key: g, data: f, args: u });
1888
1904
  }
1889
1905
  };
1890
- return !c.Cesium || !c.viewer ? null : (n = new Jt(c), l.methods && (l.methods.setTagTheme = n.setTagTheme.bind(n), l.methods.setMaterial = n.setMaterial.bind(n), l.methods.setEntityList = n.set.bind(n), l.methods.addComItem = n.add.bind(n), l.methods.deleteComItem = n.delete.bind(n), l.methods.updateComItem = n.update.bind(n), l.methods.getEntityByID = n.getById.bind(n), l.methods.getOptions = n.getOptions.bind(n)), o("load", n), n);
1906
+ return !d.Cesium || !d.viewer ? null : (n = new ei(d), l.methods && (l.methods.setTagTheme = n.setTagTheme.bind(n), l.methods.setMaterial = n.setMaterial.bind(n), l.methods.setEntityList = n.set.bind(n), l.methods.addComItem = n.add.bind(n), l.methods.deleteComItem = n.delete.bind(n), l.methods.updateComItem = n.update.bind(n), l.methods.getEntityByID = n.getById.bind(n), l.methods.getOptions = n.getOptions.bind(n)), o("load", n), n);
1891
1907
  }, h = {
1892
1908
  init: s,
1893
1909
  set: (l) => n?.set(l),
1894
1910
  add: (l) => n?.add(l),
1895
- update: (l, c) => n?.update(l, c),
1911
+ update: (l, d) => n?.update(l, d),
1896
1912
  getById: (l) => n?.getById(l),
1897
1913
  getOptions: () => n?.getOptions(),
1898
1914
  delete: (l) => n?.delete(l),
1899
- setMarkerAggregationEnabled: (l, c) => n?.setMarkerAggregationEnabled(l, c),
1915
+ setMarkerAggregationEnabled: (l, d) => n?.setMarkerAggregationEnabled(l, d),
1900
1916
  setDebugCurrentGridsEnabled: (l) => n?.setDebugCurrentGridsEnabled(l),
1901
1917
  initThemes: (l) => n?.initThemes(l),
1902
1918
  setTagTheme: (l) => n?.setTagTheme(l),
1903
1919
  setMaterial: (l) => n?.setMaterial(l)
1904
1920
  };
1905
1921
  e(h), o("register", h);
1906
- function d() {
1922
+ function c() {
1907
1923
  if (n) return n;
1908
- const l = Ge(a), c = l?.getCesium?.(), g = l?.getViewer?.();
1909
- c && g ? s({ Cesium: c, viewer: g, methods: l }) : i.Cesium && i.viewer && s({ methods: l });
1924
+ const l = Ee(a), d = l?.getCesium?.(), g = l?.getViewer?.();
1925
+ d && g ? s({ Cesium: d, viewer: g, methods: l }) : i.Cesium && i.viewer && s({ methods: l });
1910
1926
  }
1911
- return Se(() => {
1912
- d();
1913
- }), j(
1927
+ return De(() => {
1928
+ c();
1929
+ }), Z(
1914
1930
  () => [i.Cesium, i.viewer],
1915
- ([l, c]) => {
1916
- l && c && !n && d();
1931
+ ([l, d]) => {
1932
+ l && d && !n && c();
1917
1933
  }
1918
- ), j(
1934
+ ), Z(
1919
1935
  () => a?.value,
1920
- (l, c) => {
1921
- d();
1936
+ (l, d) => {
1937
+ c();
1922
1938
  },
1923
1939
  { deep: !1 }
1924
- ), De(() => {
1925
- }), (l, c) => Ee(l.$slots, "default");
1940
+ ), Ie(() => {
1941
+ }), (l, d) => Oe(l.$slots, "default");
1926
1942
  }
1927
- }), si = we(Qt);
1943
+ }), di = we(ti);
1928
1944
  export {
1929
- si as CxMarkerManage,
1930
- Jt as MarkerManage,
1931
- Xt as MarkerManagerCore,
1932
- D as ReportListenerKey,
1933
- si as default,
1934
- Ue as markerManageProps
1945
+ di as CxMarkerManage,
1946
+ ei as MarkerManage,
1947
+ jt as MarkerManagerCore,
1948
+ I as ReportListenerKey,
1949
+ di as default,
1950
+ qe as markerManageProps
1935
1951
  };
1936
1952
  //# sourceMappingURL=marker-manage.js.map