leiting-bim 2.1.70 → 2.1.71
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.
Potentially problematic release.
This version of leiting-bim might be problematic. Click here for more details.
- package/leiting-bim.es.js +1 -1
- package/package.json +1 -1
- package/plugins/cesium-core/dist/cesium-core.mjs +20 -20
- package/plugins/cesium-core/dist/cesium-core.mjs.map +1 -1
- package/plugins/cesium-core/dist/cesium-core.umd.js +2 -2
- package/plugins/cesium-core/dist/cesium-core.umd.js.map +1 -1
- package/plugins/cesium-core/package.json +1 -1
- package/plugins/cesium-vue/dist/cesium-vue/src/components/basic-audio/index.d.ts +13 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/basic-video/index.d.ts +98 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/card-carousel/index.d.ts +147 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/card-content/index.d.ts +16 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/card-page/index.d.ts +64 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/carousel-img/index.d.ts +34 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/echarts-pro/index.d.ts +63 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/marker-bubble/index.d.ts +73 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/marker-default/index.d.ts +43 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/marker-html/index.d.ts +43 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/marker-manage/index.d.ts +159 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/marker-text/index.d.ts +25 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/measurement/index.d.ts +73 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/components/position-picker/index.d.ts +58 -0
- package/plugins/cesium-vue/dist/cesium-vue/src/index.d.ts +46 -0
- package/plugins/cesium-vue/dist/components/basic-audio.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/basic-audio.js.map +1 -1
- package/plugins/cesium-vue/dist/components/basic-video.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/basic-video.js.map +1 -1
- package/plugins/cesium-vue/dist/components/card-carousel.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/card-carousel.js.map +1 -1
- package/plugins/cesium-vue/dist/components/card-content.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/card-content.js.map +1 -1
- package/plugins/cesium-vue/dist/components/card-page.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/card-page.js.map +1 -1
- package/plugins/cesium-vue/dist/components/carousel-img.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/carousel-img.js.map +1 -1
- package/plugins/cesium-vue/dist/components/echarts-pro.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/marker-bubble.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/marker-bubble.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-default.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/marker-default.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-html.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/marker-html.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-manage.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/marker-manage.js +211 -194
- package/plugins/cesium-vue/dist/components/marker-manage.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-text.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/marker-text.js.map +1 -1
- package/plugins/cesium-vue/dist/components/measurement.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/measurement.js.map +1 -1
- package/plugins/cesium-vue/dist/components/position-picker.d.ts +3 -3
- package/plugins/cesium-vue/dist/components/position-picker.js.map +1 -1
- package/plugins/cesium-vue/dist/index-CUs_hd1V.js.map +1 -1
- package/plugins/cesium-vue/dist/index-Kdqw0FJN.js.map +1 -1
- package/plugins/cesium-vue/dist/index.d.ts +6 -46
- package/plugins/cesium-vue/dist/index.js.map +1 -1
- package/plugins/cesium-vue/package.json +4 -4
- package/plugins/theme-chalk/package.json +1 -1
- package/plugins/utils/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { w as be } from "../create-DynflqE1.js";
|
|
2
|
-
import { h as w, markRaw as x, render as D, defineComponent as Me, inject as
|
|
2
|
+
import { h as w, markRaw as x, render as D, defineComponent as Me, inject as _e, onMounted as Pe, watch as Y, onUnmounted as Le, renderSlot as Te, unref as we } from "vue";
|
|
3
3
|
import { M as S, H as X, a as $ } from "../HtmlOverlayLabelPool-B1gUt-p1.js";
|
|
4
4
|
import { CxCardCarousel as q } from "./card-carousel.js";
|
|
5
5
|
import { CxMarkerDefault as Z } from "./marker-default.js";
|
|
6
6
|
import { CxMarkerHtml as xe } from "./marker-html.js";
|
|
7
|
-
import { i as
|
|
8
|
-
const
|
|
7
|
+
import { i as F, b as re, a as _, S as O, d as j, c as K, e as ie, f as Ee, g as ae, M as oe, h as H, j as Ge, k as De, l as Se, 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 = {
|
|
9
9
|
id: { type: String, default: "marker" },
|
|
10
10
|
Cesium: { type: Object },
|
|
11
11
|
viewer: { type: Object },
|
|
@@ -17,7 +17,7 @@ const Ke = {
|
|
|
17
17
|
// Optional override
|
|
18
18
|
};
|
|
19
19
|
var I = /* @__PURE__ */ ((i) => (i.左建选中模型 = "MODEL_LEFT_CLICK", i.标记左键点击 = "TAG_LEFT_CLICK", i.标记移入 = "TAG_MOUSEENTER", i.标记移出 = "TAG_MOUSELEAVE", i.模型位置保存 = "SAVE_REGION", i.模型加载完成 = "MODEL_READY", i))(I || {});
|
|
20
|
-
class
|
|
20
|
+
class Ke {
|
|
21
21
|
Cesium;
|
|
22
22
|
viewer;
|
|
23
23
|
labelPool;
|
|
@@ -111,23 +111,23 @@ class Fe {
|
|
|
111
111
|
for (const a of this.levels) {
|
|
112
112
|
const n = a.level, l = this.gridLayers.get(n);
|
|
113
113
|
if (!l) continue;
|
|
114
|
-
const s = this.Cesium.Cartographic.fromDegrees(r.lon, r.lat),
|
|
114
|
+
const s = this.Cesium.Cartographic.fromDegrees(r.lon, r.lat), d = this.tilingScheme.positionToTileXY(
|
|
115
115
|
s,
|
|
116
116
|
n,
|
|
117
117
|
new this.Cesium.Cartesian2()
|
|
118
118
|
);
|
|
119
|
-
if (!
|
|
120
|
-
const h = `${
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
124
|
-
const
|
|
125
|
-
|
|
119
|
+
if (!d) continue;
|
|
120
|
+
const h = `${d.x}_${d.y}`, c = l.get(h);
|
|
121
|
+
if (c) {
|
|
122
|
+
const g = c.allPoints.findIndex((u) => u.id === e.id);
|
|
123
|
+
if (g !== -1 && c.allPoints.splice(g, 1), r.data?.skipAggregation) {
|
|
124
|
+
const u = c.skipPoints.findIndex((f) => f.id === e.id);
|
|
125
|
+
u !== -1 && c.skipPoints.splice(u, 1);
|
|
126
126
|
} else {
|
|
127
|
-
const
|
|
128
|
-
if (
|
|
129
|
-
const P =
|
|
130
|
-
P !== -1 &&
|
|
127
|
+
const u = this.groupByTheme ? r.data?.theme : this.clusterTheme, f = c.groups.get(u);
|
|
128
|
+
if (f) {
|
|
129
|
+
const P = f.findIndex((b) => b.id === e.id);
|
|
130
|
+
P !== -1 && f.splice(P, 1), f.length === 0 && c.groups.delete(u);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -144,8 +144,8 @@ class Fe {
|
|
|
144
144
|
for (const [a, n] of o.entries()) {
|
|
145
145
|
n.allPoints = n.allPoints.filter((l) => !t.has(l.id)), n.skipPoints = n.skipPoints.filter((l) => !t.has(l.id));
|
|
146
146
|
for (const [l, s] of n.groups.entries()) {
|
|
147
|
-
const
|
|
148
|
-
|
|
147
|
+
const d = s.filter((h) => !t.has(h.id));
|
|
148
|
+
d.length === 0 ? n.groups.delete(l) : n.groups.set(l, d);
|
|
149
149
|
}
|
|
150
150
|
n.allPoints.length === 0 && o.delete(a);
|
|
151
151
|
}
|
|
@@ -178,8 +178,8 @@ class Fe {
|
|
|
178
178
|
}, o.set(l, s)), s.allPoints.push(e), e.data?.billboard?.[0]?.skipAggregation)
|
|
179
179
|
s.skipPoints.push(e);
|
|
180
180
|
else {
|
|
181
|
-
const
|
|
182
|
-
s.groups.has(
|
|
181
|
+
const d = this.groupByTheme ? e.data?.billboard?.[0]?.theme : this.clusterTheme;
|
|
182
|
+
s.groups.has(d) || s.groups.set(d, []), s.groups.get(d).push(e);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -191,12 +191,12 @@ class Fe {
|
|
|
191
191
|
const r = (o, a, n) => {
|
|
192
192
|
if (t >= this.displayLimit || o < 0) return;
|
|
193
193
|
o >= this.levels.length && (o = this.levels.length - 1);
|
|
194
|
-
const l = this.levels[o], s = o === this.levels.length - 1,
|
|
194
|
+
const l = this.levels[o], s = o === this.levels.length - 1, d = l.level, h = this.gridLayers.get(d);
|
|
195
195
|
if (!h) return;
|
|
196
|
-
const
|
|
197
|
-
if (!
|
|
198
|
-
const
|
|
199
|
-
for (const p of
|
|
196
|
+
const c = `${a}_${n}`, g = h.get(c);
|
|
197
|
+
if (!g) return;
|
|
198
|
+
const u = this.tilingScheme.tileXYToRectangle(a, n, d), f = this.Cesium.Math.toDegrees(u.west), P = this.Cesium.Math.toDegrees(u.south), b = this.Cesium.Math.toDegrees(u.east), L = this.Cesium.Math.toDegrees(u.north), A = (f + b) / 2, k = (P + L) / 2;
|
|
199
|
+
for (const p of g.skipPoints)
|
|
200
200
|
if (p.data?.show !== !1) {
|
|
201
201
|
if (t >= this.displayLimit) break;
|
|
202
202
|
this.labelPool.add(p.data, {
|
|
@@ -209,23 +209,23 @@ class Fe {
|
|
|
209
209
|
}), t++;
|
|
210
210
|
}
|
|
211
211
|
if (t >= this.displayLimit) {
|
|
212
|
-
this.debugCurrentGrids && this._drawDebugGrid(
|
|
212
|
+
this.debugCurrentGrids && this._drawDebugGrid(f, P, b, L, c);
|
|
213
213
|
return;
|
|
214
214
|
}
|
|
215
|
-
for (const [p, B] of
|
|
216
|
-
const v = B.filter((
|
|
215
|
+
for (const [p, B] of g.groups) {
|
|
216
|
+
const v = B.filter((m) => m.data?.show !== !1);
|
|
217
217
|
if (v.length === 0) continue;
|
|
218
218
|
let E = A, G = k;
|
|
219
219
|
if (this.centralPointMode == "firstPoint" && (E = v[0]?.lon || 0, G = v[0]?.lat || 0), s || v.length < e)
|
|
220
|
-
for (const
|
|
220
|
+
for (const m of v) {
|
|
221
221
|
if (t >= this.displayLimit) break;
|
|
222
|
-
this.labelPool.add(
|
|
223
|
-
id: `point-${
|
|
224
|
-
lon:
|
|
225
|
-
lat:
|
|
226
|
-
height:
|
|
227
|
-
theme:
|
|
228
|
-
style:
|
|
222
|
+
this.labelPool.add(m.data, {
|
|
223
|
+
id: `point-${m.id}`,
|
|
224
|
+
lon: m.lon,
|
|
225
|
+
lat: m.lat,
|
|
226
|
+
height: m.height,
|
|
227
|
+
theme: m.data?.billboard?.[0]?.theme || this.pointTheme,
|
|
228
|
+
style: m.style
|
|
229
229
|
}), t++;
|
|
230
230
|
}
|
|
231
231
|
else {
|
|
@@ -236,7 +236,7 @@ class Fe {
|
|
|
236
236
|
id: C,
|
|
237
237
|
billboard: v[0]?.data?.billboard || [],
|
|
238
238
|
count: v.length,
|
|
239
|
-
gridKey:
|
|
239
|
+
gridKey: c,
|
|
240
240
|
points: v,
|
|
241
241
|
aggregationGroup: p
|
|
242
242
|
},
|
|
@@ -252,10 +252,10 @@ class Fe {
|
|
|
252
252
|
if (this.debugCurrentGrids) {
|
|
253
253
|
const p = this.levels[o].level;
|
|
254
254
|
this._drawDebugGrid(
|
|
255
|
-
|
|
255
|
+
f,
|
|
256
256
|
P,
|
|
257
257
|
b,
|
|
258
|
-
|
|
258
|
+
L,
|
|
259
259
|
`L:${p} X:${a} Y:${n}`
|
|
260
260
|
);
|
|
261
261
|
}
|
|
@@ -281,47 +281,47 @@ class Fe {
|
|
|
281
281
|
this._tilesRetryCount = 0;
|
|
282
282
|
const l = /* @__PURE__ */ new Set();
|
|
283
283
|
for (const s of n) {
|
|
284
|
-
const
|
|
285
|
-
if (!
|
|
286
|
-
let
|
|
287
|
-
if (
|
|
284
|
+
const d = s.rectangle, h = s._level ?? s.level;
|
|
285
|
+
if (!d || typeof h != "number") continue;
|
|
286
|
+
let c = this.levelIndexByTileLevel.get(h);
|
|
287
|
+
if (c === void 0) {
|
|
288
288
|
if (this.levels.length === 0) continue;
|
|
289
|
-
const
|
|
289
|
+
const m = this.levels[0].level, y = this.levels[this.levels.length - 1].level;
|
|
290
290
|
if (h > y)
|
|
291
|
-
|
|
292
|
-
else if (h <
|
|
293
|
-
|
|
291
|
+
c = this.levels.length - 1;
|
|
292
|
+
else if (h < m)
|
|
293
|
+
c = 0;
|
|
294
294
|
else {
|
|
295
|
-
let C = 0,
|
|
295
|
+
let C = 0, T = 1 / 0;
|
|
296
296
|
for (let M = 0; M < this.levels.length; M++) {
|
|
297
297
|
const U = Math.abs(this.levels[M].level - h);
|
|
298
|
-
U <
|
|
298
|
+
U < T && (T = U, C = M);
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
c = C;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
if (
|
|
304
|
-
const
|
|
305
|
-
if (typeof
|
|
306
|
-
let
|
|
307
|
-
const C = h -
|
|
303
|
+
if (c === void 0) continue;
|
|
304
|
+
const g = this.levels[c].level, u = s._x ?? s.x, f = s._y ?? s.y;
|
|
305
|
+
if (typeof u == "number" && typeof f == "number") {
|
|
306
|
+
let m = u, y = f;
|
|
307
|
+
const C = h - g;
|
|
308
308
|
if (C > 0) {
|
|
309
309
|
const M = 1 << C;
|
|
310
|
-
|
|
310
|
+
m = Math.floor(u / M), y = Math.floor(f / M);
|
|
311
311
|
} else if (C < 0) {
|
|
312
312
|
const M = 1 << -C;
|
|
313
|
-
|
|
313
|
+
m = u * M, y = f * M;
|
|
314
314
|
}
|
|
315
|
-
const
|
|
316
|
-
if (l.has(
|
|
317
|
-
l.add(
|
|
315
|
+
const T = `${g}_${m}_${y}`;
|
|
316
|
+
if (l.has(T)) continue;
|
|
317
|
+
l.add(T), r(c, m, y);
|
|
318
318
|
continue;
|
|
319
319
|
}
|
|
320
|
-
const b = this.levels[
|
|
321
|
-
for (let
|
|
320
|
+
const b = this.levels[c].size, L = 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((L - -180) / b), v = Math.floor((A - -180) / b), E = Math.floor((k - -90) / b), G = Math.floor((p - -90) / b);
|
|
321
|
+
for (let m = B; m <= v; m++)
|
|
322
322
|
for (let y = E; y <= G; y++) {
|
|
323
|
-
const C = `${
|
|
324
|
-
l.has(C) || (l.add(C), r(
|
|
323
|
+
const C = `${g}_${m}_${y}`;
|
|
324
|
+
l.has(C) || (l.add(C), r(c, m, y));
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
} catch {
|
|
@@ -368,21 +368,21 @@ class Fe {
|
|
|
368
368
|
}
|
|
369
369
|
var Ne = "[object Symbol]";
|
|
370
370
|
function N(i) {
|
|
371
|
-
return typeof i == "symbol" ||
|
|
371
|
+
return typeof i == "symbol" || F(i) && re(i) == Ne;
|
|
372
372
|
}
|
|
373
373
|
function he(i, e) {
|
|
374
374
|
for (var t = -1, r = i == null ? 0 : i.length, o = Array(r); ++t < r; )
|
|
375
375
|
o[t] = e(i[t], t, i);
|
|
376
376
|
return o;
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var J = O ? O.prototype : void 0, Q = J ? J.toString : void 0;
|
|
379
379
|
function ce(i) {
|
|
380
380
|
if (typeof i == "string")
|
|
381
381
|
return i;
|
|
382
|
-
if (
|
|
382
|
+
if (_(i))
|
|
383
383
|
return he(i, ce) + "";
|
|
384
384
|
if (N(i))
|
|
385
|
-
return
|
|
385
|
+
return Q ? Q.call(i) : "";
|
|
386
386
|
var e = i + "";
|
|
387
387
|
return e == "0" && 1 / i == -1 / 0 ? "-0" : e;
|
|
388
388
|
}
|
|
@@ -420,8 +420,8 @@ function qe(i) {
|
|
|
420
420
|
return i;
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
var Ze =
|
|
424
|
-
return
|
|
423
|
+
var Ze = j ? function(i, e) {
|
|
424
|
+
return j(i, "toString", {
|
|
425
425
|
configurable: !0,
|
|
426
426
|
enumerable: !1,
|
|
427
427
|
value: qe(e),
|
|
@@ -438,19 +438,19 @@ function ue(i, e, t) {
|
|
|
438
438
|
return l[e] = t(n), We(i, this, l);
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function je(i, e) {
|
|
442
442
|
return ge(ue(i, e, de), i + "");
|
|
443
443
|
}
|
|
444
|
-
function
|
|
445
|
-
if (!
|
|
444
|
+
function Je(i, e, t) {
|
|
445
|
+
if (!K(t))
|
|
446
446
|
return !1;
|
|
447
447
|
var r = typeof e;
|
|
448
448
|
return (r == "number" ? ie(t) && Ee(e, t.length) : r == "string" && e in t) ? ae(t[e], i) : !1;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
return
|
|
450
|
+
function Qe(i) {
|
|
451
|
+
return je(function(e, t) {
|
|
452
452
|
var r = -1, o = t.length, a = o > 1 ? t[o - 1] : void 0, n = o > 2 ? t[2] : void 0;
|
|
453
|
-
for (a = i.length > 3 && typeof a == "function" ? (o--, a) : void 0, n &&
|
|
453
|
+
for (a = i.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); ++r < o; ) {
|
|
454
454
|
var l = t[r];
|
|
455
455
|
l && i(e, l, r, a);
|
|
456
456
|
}
|
|
@@ -459,7 +459,7 @@ function je(i) {
|
|
|
459
459
|
}
|
|
460
460
|
var et = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, tt = /^\w*$/;
|
|
461
461
|
function rt(i, e) {
|
|
462
|
-
if (
|
|
462
|
+
if (_(i))
|
|
463
463
|
return !1;
|
|
464
464
|
var t = typeof i;
|
|
465
465
|
return t == "number" || t == "symbol" || t == "boolean" || i == null || N(i) ? !0 : tt.test(i) || !et.test(i) || e != null && i in Object(e);
|
|
@@ -495,7 +495,7 @@ function ht(i) {
|
|
|
495
495
|
return i == null ? "" : ce(i);
|
|
496
496
|
}
|
|
497
497
|
function V(i, e) {
|
|
498
|
-
return
|
|
498
|
+
return _(i) ? i : rt(i, e) ? [i] : lt(ht(i));
|
|
499
499
|
}
|
|
500
500
|
function fe(i) {
|
|
501
501
|
if (typeof i == "string" || N(i))
|
|
@@ -511,7 +511,7 @@ function ct(i, e) {
|
|
|
511
511
|
}
|
|
512
512
|
var te = O ? O.isConcatSpreadable : void 0;
|
|
513
513
|
function dt(i) {
|
|
514
|
-
return
|
|
514
|
+
return _(i) || H(i) || !!(te && i && i[te]);
|
|
515
515
|
}
|
|
516
516
|
function gt(i, e, t, r, o) {
|
|
517
517
|
var a = -1, n = i.length;
|
|
@@ -530,7 +530,7 @@ function ft(i) {
|
|
|
530
530
|
}
|
|
531
531
|
var mt = "[object Object]", pt = Function.prototype, yt = Object.prototype, me = pt.toString, Ct = yt.hasOwnProperty, vt = me.call(Object);
|
|
532
532
|
function pe(i) {
|
|
533
|
-
if (!
|
|
533
|
+
if (!F(i) || re(i) != mt)
|
|
534
534
|
return !1;
|
|
535
535
|
var e = De(i);
|
|
536
536
|
if (e === null)
|
|
@@ -555,40 +555,40 @@ function Mt(i) {
|
|
|
555
555
|
return e;
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
|
-
var
|
|
559
|
-
function
|
|
558
|
+
var _t = Mt();
|
|
559
|
+
function R(i, e, t) {
|
|
560
560
|
(t !== void 0 && !ae(i[e], t) || t === void 0 && !(e in i)) && Se(i, e, t);
|
|
561
561
|
}
|
|
562
562
|
function Pt(i) {
|
|
563
|
-
return
|
|
563
|
+
return F(i) && ie(i);
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function z(i, e) {
|
|
566
566
|
if (!(e === "constructor" && typeof i[e] == "function") && e != "__proto__")
|
|
567
567
|
return i[e];
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Lt(i) {
|
|
570
570
|
return ne(i, se(i));
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
var l =
|
|
574
|
-
if (
|
|
575
|
-
|
|
572
|
+
function Tt(i, e, t, r, o, a, n) {
|
|
573
|
+
var l = z(i, t), s = z(e, t), d = n.get(s);
|
|
574
|
+
if (d) {
|
|
575
|
+
R(i, t, d);
|
|
576
576
|
return;
|
|
577
577
|
}
|
|
578
|
-
var h = a ? a(l, s, t + "", i, e, n) : void 0,
|
|
579
|
-
if (
|
|
580
|
-
var
|
|
581
|
-
h = s,
|
|
578
|
+
var h = a ? a(l, s, t + "", i, e, n) : void 0, c = h === void 0;
|
|
579
|
+
if (c) {
|
|
580
|
+
var g = _(s), u = !g && Ie(s), f = !g && !u && Oe(s);
|
|
581
|
+
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;
|
|
582
582
|
}
|
|
583
|
-
|
|
583
|
+
c && (n.set(s, h), o(h, s, r, a, n), n.delete(s)), R(i, t, h);
|
|
584
584
|
}
|
|
585
585
|
function ye(i, e, t, r, o) {
|
|
586
|
-
i !== e &&
|
|
587
|
-
if (o || (o = new He()),
|
|
588
|
-
|
|
586
|
+
i !== e && _t(e, function(a, n) {
|
|
587
|
+
if (o || (o = new He()), K(a))
|
|
588
|
+
Tt(i, e, n, t, ye, r, o);
|
|
589
589
|
else {
|
|
590
|
-
var l = r ? r(
|
|
591
|
-
l === void 0 && (l = a),
|
|
590
|
+
var l = r ? r(z(i, n), a, n + "", i, e, o) : void 0;
|
|
591
|
+
l === void 0 && (l = a), R(i, n, l);
|
|
592
592
|
}
|
|
593
593
|
}, se);
|
|
594
594
|
}
|
|
@@ -599,28 +599,45 @@ function wt(i) {
|
|
|
599
599
|
function xt(i, e) {
|
|
600
600
|
return e.length < 2 ? i : ct(i, bt(e, 0, -1));
|
|
601
601
|
}
|
|
602
|
-
var Et =
|
|
602
|
+
var Et = Qe(function(i, e, t) {
|
|
603
603
|
ye(i, e, t);
|
|
604
|
-
});
|
|
605
|
-
function
|
|
606
|
-
|
|
604
|
+
}), Gt = Object.prototype, Dt = Gt.hasOwnProperty;
|
|
605
|
+
function St(i, e) {
|
|
606
|
+
e = V(e, i);
|
|
607
|
+
var t = -1, r = e.length;
|
|
608
|
+
if (!r)
|
|
609
|
+
return !0;
|
|
610
|
+
for (var o = i == null || typeof i != "object" && typeof i != "function"; ++t < r; ) {
|
|
611
|
+
var a = e[t];
|
|
612
|
+
if (typeof a == "string") {
|
|
613
|
+
if (a === "__proto__" && !Dt.call(i, "__proto__"))
|
|
614
|
+
return !1;
|
|
615
|
+
if (a === "constructor" && t + 1 < r && typeof e[t + 1] == "string" && e[t + 1] === "prototype") {
|
|
616
|
+
if (o && t === 0)
|
|
617
|
+
continue;
|
|
618
|
+
return !1;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
var n = xt(i, e);
|
|
623
|
+
return n == null || delete n[fe(wt(e))];
|
|
607
624
|
}
|
|
608
|
-
function
|
|
625
|
+
function It(i) {
|
|
609
626
|
return pe(i) ? void 0 : i;
|
|
610
627
|
}
|
|
611
|
-
var
|
|
628
|
+
var Ot = 1, At = 2, kt = 4, Bt = ft(function(i, e) {
|
|
612
629
|
var t = {};
|
|
613
630
|
if (i == null)
|
|
614
631
|
return t;
|
|
615
632
|
var r = !1;
|
|
616
633
|
e = he(e, function(a) {
|
|
617
634
|
return a = V(a, i), r || (r = a.length > 1), a;
|
|
618
|
-
}), ne(i,
|
|
635
|
+
}), ne(i, Re(i), t), r && (t = ze(t, Ot | At | kt, It));
|
|
619
636
|
for (var o = e.length; o--; )
|
|
620
|
-
|
|
637
|
+
St(t, e[o]);
|
|
621
638
|
return t;
|
|
622
639
|
});
|
|
623
|
-
function
|
|
640
|
+
function $t(i, e) {
|
|
624
641
|
const t = e.materialType || "DynamicImgMaterial" + Date.now() + Math.floor(Math.random() * 1e3);
|
|
625
642
|
function r(a) {
|
|
626
643
|
this._definitionChanged = new i.Event(), this._color = a.color, this._colorSubscription = void 0, this.color = a.color, this.duration = a.duration, this._time = Date.now();
|
|
@@ -746,13 +763,13 @@ function Ce(i, e) {
|
|
|
746
763
|
}
|
|
747
764
|
}), new r(e);
|
|
748
765
|
}
|
|
749
|
-
function
|
|
750
|
-
const t = i.Color, r =
|
|
751
|
-
let
|
|
752
|
-
function c
|
|
753
|
-
|
|
766
|
+
function Ht(i, e) {
|
|
767
|
+
const t = i.Color, r = Object.defineProperties, o = i.Event, a = i.createPropertyDescriptor, n = i.Property, l = (c, g) => c === void 0 ? g : c, s = {};
|
|
768
|
+
let d = e.materialType || "PolylineFlow" + Date.now() + Math.floor(Math.random() * 1e3);
|
|
769
|
+
function h(c) {
|
|
770
|
+
c = l(c, s), 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 = l(c.duration, 45);
|
|
754
771
|
}
|
|
755
|
-
return
|
|
772
|
+
return r(h.prototype, {
|
|
756
773
|
isConstant: {
|
|
757
774
|
get() {
|
|
758
775
|
return !1;
|
|
@@ -763,23 +780,23 @@ function Bt(i, e) {
|
|
|
763
780
|
return this._definitionChanged;
|
|
764
781
|
}
|
|
765
782
|
}
|
|
766
|
-
}),
|
|
767
|
-
return
|
|
768
|
-
},
|
|
769
|
-
return
|
|
783
|
+
}), h.prototype.getType = function(c) {
|
|
784
|
+
return d;
|
|
785
|
+
}, h.prototype.getValue = function(c, g) {
|
|
786
|
+
return g || (g = {}), g.color = n.getValueOrClonedDefault(
|
|
770
787
|
this._color,
|
|
771
|
-
|
|
788
|
+
c,
|
|
772
789
|
i.Color.WHITE,
|
|
773
|
-
|
|
774
|
-
),
|
|
775
|
-
},
|
|
776
|
-
return this ===
|
|
777
|
-
},
|
|
778
|
-
color:
|
|
779
|
-
duration:
|
|
780
|
-
}), i.PolylineFlowMaterialProperty =
|
|
790
|
+
g.color
|
|
791
|
+
), g.duration = this._duration, g;
|
|
792
|
+
}, h.prototype.equals = function(c) {
|
|
793
|
+
return this === c || c instanceof h && n.equals(this._color, c._color);
|
|
794
|
+
}, r(h.prototype, {
|
|
795
|
+
color: a("color"),
|
|
796
|
+
duration: a("duration")
|
|
797
|
+
}), i.PolylineFlowMaterialProperty = h, i.Material._materialCache.addMaterial(d, {
|
|
781
798
|
fabric: {
|
|
782
|
-
type:
|
|
799
|
+
type: d,
|
|
783
800
|
uniforms: {
|
|
784
801
|
color: new t(1, 1, 1, 1),
|
|
785
802
|
duration: 45
|
|
@@ -807,7 +824,7 @@ function Bt(i, e) {
|
|
|
807
824
|
translucent() {
|
|
808
825
|
return !0;
|
|
809
826
|
}
|
|
810
|
-
}), new
|
|
827
|
+
}), new h(e);
|
|
811
828
|
}
|
|
812
829
|
class ve {
|
|
813
830
|
categoryMap = /* @__PURE__ */ new Map();
|
|
@@ -898,7 +915,7 @@ class ve {
|
|
|
898
915
|
return [...this.categoryMap.keys()];
|
|
899
916
|
}
|
|
900
917
|
}
|
|
901
|
-
class
|
|
918
|
+
class Rt {
|
|
902
919
|
id;
|
|
903
920
|
entities = [];
|
|
904
921
|
primitives = [];
|
|
@@ -934,7 +951,7 @@ class $t {
|
|
|
934
951
|
}), 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;
|
|
935
952
|
}
|
|
936
953
|
}
|
|
937
|
-
class
|
|
954
|
+
class zt {
|
|
938
955
|
id;
|
|
939
956
|
groupMap = /* @__PURE__ */ new Map();
|
|
940
957
|
Cesium;
|
|
@@ -945,7 +962,7 @@ class Ht {
|
|
|
945
962
|
constructor(e, t, r, o, a, n) {
|
|
946
963
|
this.id = e, this.Cesium = t, this.viewer = r, this.materialManager = o, this.aggregator = a, this.cardPool = n, this.aggregator.labelPool.eventBus.addListener(S.Click, {
|
|
947
964
|
name: "BufferedHierarchicalAggregator_maker_click",
|
|
948
|
-
fn: (s,
|
|
965
|
+
fn: (s, d) => {
|
|
949
966
|
this.cardPool.showByIds([s.data.id]);
|
|
950
967
|
}
|
|
951
968
|
}), new t.ScreenSpaceEventHandler(r.scene.canvas).setInputAction(() => {
|
|
@@ -999,8 +1016,8 @@ class Ht {
|
|
|
999
1016
|
themeKey: e.theme,
|
|
1000
1017
|
category: "polygon",
|
|
1001
1018
|
options: e
|
|
1002
|
-
}), o = Array.isArray(e.hierarchy[0]) ? e.hierarchy.flat() : e.hierarchy, a = this.Cesium.Cartesian3.fromDegreesArrayHeights(o), n = e.holes?.map((
|
|
1003
|
-
let h = Array.isArray(
|
|
1019
|
+
}), o = Array.isArray(e.hierarchy[0]) ? e.hierarchy.flat() : e.hierarchy, a = this.Cesium.Cartesian3.fromDegreesArrayHeights(o), n = e.holes?.map((d) => {
|
|
1020
|
+
let h = Array.isArray(d[0]) ? e.hierarchy.flat() : e.hole;
|
|
1004
1021
|
return this.Cesium.Cartesian3.fromDegreesArrayHeights(h.flat());
|
|
1005
1022
|
}) || [], l = new this.Cesium.PolygonHierarchy(a, n);
|
|
1006
1023
|
let s = {
|
|
@@ -1047,18 +1064,18 @@ class Ht {
|
|
|
1047
1064
|
this.removeGroup(r);
|
|
1048
1065
|
const o = [], a = e.show !== !1;
|
|
1049
1066
|
(e.polyline || []).forEach((s) => {
|
|
1050
|
-
const
|
|
1051
|
-
|
|
1067
|
+
const d = this.createPolyline(s, a);
|
|
1068
|
+
d && o.push(d);
|
|
1052
1069
|
}), (e.wall || []).forEach((s) => {
|
|
1053
|
-
const
|
|
1054
|
-
|
|
1070
|
+
const d = this.createWall(s, a);
|
|
1071
|
+
d && o.push(d);
|
|
1055
1072
|
}), (e.polygon || []).forEach((s) => {
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1073
|
+
const d = this.createPolygon(s, a);
|
|
1074
|
+
d && o.push(d);
|
|
1058
1075
|
});
|
|
1059
1076
|
const n = this.createBillboardPoints(e);
|
|
1060
1077
|
n.length && t && this.aggregator.appendPoints(n, !1), this.createCard(e);
|
|
1061
|
-
const l = new
|
|
1078
|
+
const l = new Rt({
|
|
1062
1079
|
id: r,
|
|
1063
1080
|
entities: o,
|
|
1064
1081
|
primitives: [],
|
|
@@ -1106,7 +1123,7 @@ class Ht {
|
|
|
1106
1123
|
this.groupMap.forEach((e) => e.removeAll(this.viewer)), this.groupMap.clear();
|
|
1107
1124
|
}
|
|
1108
1125
|
}
|
|
1109
|
-
class
|
|
1126
|
+
class Ft {
|
|
1110
1127
|
Cesium;
|
|
1111
1128
|
viewer;
|
|
1112
1129
|
layerMap = /* @__PURE__ */ new Map();
|
|
@@ -1119,7 +1136,7 @@ class zt {
|
|
|
1119
1136
|
addLayer(e) {
|
|
1120
1137
|
this.layerMap.has(e) || this.layerMap.set(
|
|
1121
1138
|
e,
|
|
1122
|
-
new
|
|
1139
|
+
new zt(
|
|
1123
1140
|
e,
|
|
1124
1141
|
this.Cesium,
|
|
1125
1142
|
this.viewer,
|
|
@@ -1154,7 +1171,7 @@ class zt {
|
|
|
1154
1171
|
this.layerMap.get(e)?.removeGroups(t);
|
|
1155
1172
|
}
|
|
1156
1173
|
}
|
|
1157
|
-
class
|
|
1174
|
+
class Kt {
|
|
1158
1175
|
labelId;
|
|
1159
1176
|
cardId;
|
|
1160
1177
|
opt;
|
|
@@ -1168,7 +1185,7 @@ class Rt {
|
|
|
1168
1185
|
initCore(e, t, r) {
|
|
1169
1186
|
let { Cesium: o, viewer: a, aggregatorOptions: n } = e;
|
|
1170
1187
|
t || (t = new $()), r || (r = new $());
|
|
1171
|
-
const l = new X(o, a, this.labelId, t), s = new X(o, a, this.cardId, r, !1),
|
|
1188
|
+
const l = new X(o, a, this.labelId, t), s = new X(o, a, this.cardId, r, !1), d = new Ke(o, a, {
|
|
1172
1189
|
//聚合
|
|
1173
1190
|
threshold: n?.threshold || 16,
|
|
1174
1191
|
displayLimit: n?.displayLimit || 1e3,
|
|
@@ -1182,15 +1199,15 @@ class Rt {
|
|
|
1182
1199
|
// 普通点的默认主题
|
|
1183
1200
|
...n,
|
|
1184
1201
|
labelPool: l
|
|
1185
|
-
}), h = this.MaterialManager,
|
|
1202
|
+
}), h = this.MaterialManager, c = new Ft(
|
|
1186
1203
|
//实体图层管理
|
|
1187
1204
|
o,
|
|
1188
1205
|
a,
|
|
1189
1206
|
h,
|
|
1190
|
-
|
|
1207
|
+
d,
|
|
1191
1208
|
s
|
|
1192
1209
|
);
|
|
1193
|
-
return { materialManager: h, entityLayerManager:
|
|
1210
|
+
return { materialManager: h, entityLayerManager: c, cardPool: s, labelPool: l, aggregator: d, eventBus: t, cardEventBus: r };
|
|
1194
1211
|
}
|
|
1195
1212
|
//添加标记
|
|
1196
1213
|
set(e) {
|
|
@@ -1204,14 +1221,14 @@ class Rt {
|
|
|
1204
1221
|
//添加
|
|
1205
1222
|
add(e) {
|
|
1206
1223
|
let t = [];
|
|
1207
|
-
|
|
1224
|
+
_(e) ? t = e : t.push(e), t.forEach((r) => {
|
|
1208
1225
|
this.entityList.set(r.id, r);
|
|
1209
1226
|
}), this.instance.entityLayerManager.getLayer("Layer_default") || this.instance.entityLayerManager.addLayer("Layer_default"), this.instance.entityLayerManager.addGroupsToLayer("Layer_default", t);
|
|
1210
1227
|
}
|
|
1211
1228
|
//更新标记
|
|
1212
1229
|
update(e, t = !0) {
|
|
1213
1230
|
let r = [];
|
|
1214
|
-
|
|
1231
|
+
_(e) ? r = e : r.push(e);
|
|
1215
1232
|
const o = r.map((a) => {
|
|
1216
1233
|
const n = this.entityList.get(a.id);
|
|
1217
1234
|
if (!n) return;
|
|
@@ -1234,7 +1251,7 @@ class Rt {
|
|
|
1234
1251
|
//删除标记
|
|
1235
1252
|
delete(e) {
|
|
1236
1253
|
let t = [];
|
|
1237
|
-
|
|
1254
|
+
_(e) ? t = e : t.push(e), t.forEach((r) => {
|
|
1238
1255
|
this.entityList.delete(r);
|
|
1239
1256
|
}), this.instance.entityLayerManager.removeGroups("Layer_default", t);
|
|
1240
1257
|
}
|
|
@@ -1245,14 +1262,14 @@ class Rt {
|
|
|
1245
1262
|
this.instance.aggregator.setDebugCurrentGrids(e || !1);
|
|
1246
1263
|
}
|
|
1247
1264
|
}
|
|
1248
|
-
function
|
|
1265
|
+
function Nt({
|
|
1249
1266
|
Cesium: i,
|
|
1250
1267
|
options: e,
|
|
1251
1268
|
MaterialManager: t
|
|
1252
1269
|
}) {
|
|
1253
1270
|
if (e.data?.theme) {
|
|
1254
1271
|
if (e.data?.lineType == "1") {
|
|
1255
|
-
let r =
|
|
1272
|
+
let r = Ht(i, {
|
|
1256
1273
|
color: new i.Color.fromCssColorString(e?.options?.color || "#ffffff"),
|
|
1257
1274
|
duration: 100
|
|
1258
1275
|
});
|
|
@@ -1292,7 +1309,7 @@ function Kt({
|
|
|
1292
1309
|
category: "polyline"
|
|
1293
1310
|
});
|
|
1294
1311
|
} else if (e.data?.lineType == "5") {
|
|
1295
|
-
let r =
|
|
1312
|
+
let r = $t(i, {
|
|
1296
1313
|
image: e.img,
|
|
1297
1314
|
color: new i.Color.fromCssColorString(e?.options?.color || "#ffffff"),
|
|
1298
1315
|
duration: 5e3,
|
|
@@ -1308,7 +1325,7 @@ function Kt({
|
|
|
1308
1325
|
}
|
|
1309
1326
|
}
|
|
1310
1327
|
}
|
|
1311
|
-
function
|
|
1328
|
+
function Wt({
|
|
1312
1329
|
Cesium: i,
|
|
1313
1330
|
options: e,
|
|
1314
1331
|
MaterialManager: t
|
|
@@ -1347,7 +1364,7 @@ function Ft({
|
|
|
1347
1364
|
}
|
|
1348
1365
|
}
|
|
1349
1366
|
}
|
|
1350
|
-
function
|
|
1367
|
+
function Vt({
|
|
1351
1368
|
Cesium: i,
|
|
1352
1369
|
options: e,
|
|
1353
1370
|
MaterialManager: t
|
|
@@ -1379,7 +1396,7 @@ function Nt({
|
|
|
1379
1396
|
}
|
|
1380
1397
|
}
|
|
1381
1398
|
}
|
|
1382
|
-
class
|
|
1399
|
+
class Ut extends Kt {
|
|
1383
1400
|
constructor(e) {
|
|
1384
1401
|
const {
|
|
1385
1402
|
labelId: t = "report-marker",
|
|
@@ -1390,22 +1407,22 @@ class Wt extends Rt {
|
|
|
1390
1407
|
runListener: l = () => {
|
|
1391
1408
|
},
|
|
1392
1409
|
MaterialManager: s = new ve(),
|
|
1393
|
-
aggregatorOptions:
|
|
1394
|
-
} = e, h = [...o],
|
|
1410
|
+
aggregatorOptions: d
|
|
1411
|
+
} = e, h = [...o], c = [...a], g = [...n], u = {
|
|
1395
1412
|
clusterTheme: "Tag1007",
|
|
1396
1413
|
pointTheme: "Tag1001",
|
|
1397
1414
|
centralPointMode: "firstPoint",
|
|
1398
1415
|
debugCurrentGrids: !1,
|
|
1399
|
-
...
|
|
1400
|
-
},
|
|
1416
|
+
...d || {}
|
|
1417
|
+
}, f = {
|
|
1401
1418
|
...e,
|
|
1402
1419
|
labelId: t,
|
|
1403
1420
|
cardId: r,
|
|
1404
1421
|
MaterialManager: s,
|
|
1405
|
-
aggregatorOptions:
|
|
1422
|
+
aggregatorOptions: u,
|
|
1406
1423
|
eventBus: new $()
|
|
1407
1424
|
};
|
|
1408
|
-
super(
|
|
1425
|
+
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();
|
|
1409
1426
|
}
|
|
1410
1427
|
initDefaultTagTheme() {
|
|
1411
1428
|
this.setTagTheme({
|
|
@@ -1518,21 +1535,21 @@ class Wt extends Rt {
|
|
|
1518
1535
|
const t = this.opt.Cesium, r = this.instance.materialManager || this.opt.MaterialManager;
|
|
1519
1536
|
if (e.line?.length > 0)
|
|
1520
1537
|
for (let o of e.line)
|
|
1521
|
-
|
|
1538
|
+
Nt({
|
|
1522
1539
|
options: o,
|
|
1523
1540
|
Cesium: t,
|
|
1524
1541
|
MaterialManager: r
|
|
1525
1542
|
});
|
|
1526
1543
|
if (e.polygon?.length > 0)
|
|
1527
1544
|
for (let o of e.polygon)
|
|
1528
|
-
|
|
1545
|
+
Wt({
|
|
1529
1546
|
options: o,
|
|
1530
1547
|
Cesium: t,
|
|
1531
1548
|
MaterialManager: r
|
|
1532
1549
|
});
|
|
1533
1550
|
if (e.wall?.length > 0)
|
|
1534
1551
|
for (let o of e.wall)
|
|
1535
|
-
|
|
1552
|
+
Vt({
|
|
1536
1553
|
options: o,
|
|
1537
1554
|
Cesium: t,
|
|
1538
1555
|
MaterialManager: r
|
|
@@ -1625,7 +1642,7 @@ class Wt extends Rt {
|
|
|
1625
1642
|
t.registerTheme(e.data.theme, {
|
|
1626
1643
|
createElement(r, o) {
|
|
1627
1644
|
let a = o.data?.billboard?.[0];
|
|
1628
|
-
const n =
|
|
1645
|
+
const n = Bt(a, ["position", "options"]);
|
|
1629
1646
|
let l, s = {
|
|
1630
1647
|
...n,
|
|
1631
1648
|
text: a?.options?.text,
|
|
@@ -1676,7 +1693,7 @@ class Wt extends Rt {
|
|
|
1676
1693
|
let n = this.opt.Cesium, l = { x: 0, y: 0 };
|
|
1677
1694
|
try {
|
|
1678
1695
|
if (a.data?.billboard?.[0]?.position?.length > 2) {
|
|
1679
|
-
let s = a.data?.billboard[0]?.position,
|
|
1696
|
+
let s = a.data?.billboard[0]?.position, d = n.Cartesian3.fromDegrees(s[0], s[1], s[3] || 0), h = this.instance.labelPool.toWindowCoordinates(d);
|
|
1680
1697
|
l.x = h.x, l.y = h.y;
|
|
1681
1698
|
}
|
|
1682
1699
|
} catch (s) {
|
|
@@ -1690,7 +1707,7 @@ class Wt extends Rt {
|
|
|
1690
1707
|
let n = this.opt.Cesium, l = { x: 0, y: 0 };
|
|
1691
1708
|
try {
|
|
1692
1709
|
if (a.data?.billboard?.[0]?.position?.length > 2) {
|
|
1693
|
-
let s = a.data?.billboard[0]?.position,
|
|
1710
|
+
let s = a.data?.billboard[0]?.position, d = n.Cartesian3.fromDegrees(s[0], s[1], s[3] || 0), h = this.instance.labelPool.toWindowCoordinates(d);
|
|
1694
1711
|
l.x = h.x, l.y = h.y;
|
|
1695
1712
|
}
|
|
1696
1713
|
} catch (s) {
|
|
@@ -1714,68 +1731,68 @@ class Wt extends Rt {
|
|
|
1714
1731
|
});
|
|
1715
1732
|
}
|
|
1716
1733
|
}
|
|
1717
|
-
const
|
|
1734
|
+
const Yt = /* @__PURE__ */ Me({
|
|
1718
1735
|
__name: "MarkerManage",
|
|
1719
|
-
props:
|
|
1736
|
+
props: Fe,
|
|
1720
1737
|
emits: ["register", "load", "marker-event"],
|
|
1721
1738
|
setup(i, { expose: e, emit: t }) {
|
|
1722
|
-
const r = i, o = t, a =
|
|
1739
|
+
const r = i, o = t, a = _e("leitingMethods");
|
|
1723
1740
|
let n = null;
|
|
1724
1741
|
const l = (h = {}) => {
|
|
1725
1742
|
if (n) return n;
|
|
1726
|
-
const
|
|
1743
|
+
const c = {
|
|
1727
1744
|
...r,
|
|
1728
1745
|
...h,
|
|
1729
1746
|
Cesium: h.Cesium || r.Cesium,
|
|
1730
1747
|
viewer: h.viewer || r.viewer,
|
|
1731
|
-
runListener: (
|
|
1732
|
-
o("marker-event", { key:
|
|
1748
|
+
runListener: (g, u, ...f) => {
|
|
1749
|
+
o("marker-event", { key: g, data: u, args: f });
|
|
1733
1750
|
}
|
|
1734
1751
|
};
|
|
1735
|
-
return !
|
|
1752
|
+
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);
|
|
1736
1753
|
}, s = {
|
|
1737
1754
|
init: l,
|
|
1738
1755
|
set: (h) => n?.set(h),
|
|
1739
1756
|
add: (h) => n?.add(h),
|
|
1740
|
-
update: (h,
|
|
1757
|
+
update: (h, c) => n?.update(h, c),
|
|
1741
1758
|
getById: (h) => n?.getById(h),
|
|
1742
1759
|
getOptions: () => n?.getOptions(),
|
|
1743
1760
|
delete: (h) => n?.delete(h),
|
|
1744
|
-
setMarkerAggregationEnabled: (h,
|
|
1761
|
+
setMarkerAggregationEnabled: (h, c) => n?.setMarkerAggregationEnabled(h, c),
|
|
1745
1762
|
setDebugCurrentGridsEnabled: (h) => n?.setDebugCurrentGridsEnabled(h),
|
|
1746
1763
|
initThemes: (h) => n?.initThemes(h),
|
|
1747
1764
|
setTagTheme: (h) => n?.setTagTheme(h),
|
|
1748
1765
|
setMaterial: (h) => n?.setMaterial(h)
|
|
1749
1766
|
};
|
|
1750
1767
|
e(s), o("register", s);
|
|
1751
|
-
function
|
|
1768
|
+
function d() {
|
|
1752
1769
|
if (n) return n;
|
|
1753
|
-
const h = we(a),
|
|
1754
|
-
|
|
1770
|
+
const h = we(a), c = h?.getCesium?.(), g = h?.getViewer?.();
|
|
1771
|
+
c && g ? l({ Cesium: c, viewer: g, methods: h }) : r.Cesium && r.viewer && l({ methods: h });
|
|
1755
1772
|
}
|
|
1756
1773
|
return Pe(() => {
|
|
1757
|
-
|
|
1774
|
+
d();
|
|
1758
1775
|
}), Y(
|
|
1759
1776
|
() => [r.Cesium, r.viewer],
|
|
1760
|
-
([h,
|
|
1761
|
-
h &&
|
|
1777
|
+
([h, c]) => {
|
|
1778
|
+
h && c && !n && d();
|
|
1762
1779
|
}
|
|
1763
1780
|
), Y(
|
|
1764
1781
|
() => a?.value,
|
|
1765
|
-
(h,
|
|
1766
|
-
|
|
1782
|
+
(h, c) => {
|
|
1783
|
+
d();
|
|
1767
1784
|
},
|
|
1768
1785
|
{ deep: !1 }
|
|
1769
|
-
),
|
|
1770
|
-
}), (h,
|
|
1786
|
+
), Le(() => {
|
|
1787
|
+
}), (h, c) => Te(h.$slots, "default");
|
|
1771
1788
|
}
|
|
1772
|
-
}),
|
|
1789
|
+
}), tr = be(Yt);
|
|
1773
1790
|
export {
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1791
|
+
tr as CxMarkerManage,
|
|
1792
|
+
Ut as MarkerManage,
|
|
1793
|
+
Kt as MarkerManagerCore,
|
|
1777
1794
|
I as ReportListenerKey,
|
|
1778
|
-
|
|
1779
|
-
|
|
1795
|
+
tr as default,
|
|
1796
|
+
Fe as markerManageProps
|
|
1780
1797
|
};
|
|
1781
1798
|
//# sourceMappingURL=marker-manage.js.map
|