leiting-bim 2.1.157 → 2.1.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/leiting-bim.es.js +1 -1
- package/package.json +1 -1
- package/plugins/cesium-core/dist/cesium-core.mjs +49 -44
- package/plugins/cesium-core/dist/cesium-core.mjs.map +1 -1
- package/plugins/cesium-core/dist/cesium-core.umd.js +6 -6
- 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/components/basic-audio.js.map +1 -1
- package/plugins/cesium-vue/dist/components/marker-manage.js +795 -512
- package/plugins/cesium-vue/dist/components/marker-manage.js.map +1 -1
- package/plugins/cesium-vue/dist/index-Kqi_S6KA.js.map +1 -1
- package/plugins/cesium-vue/package.json +1 -1
- package/plugins/theme-chalk/package.json +1 -1
- package/plugins/utils/package.json +1 -1
package/package.json
CHANGED
|
@@ -1470,12 +1470,12 @@ function Kt(a) {
|
|
|
1470
1470
|
return i && (t ? a[Ce] = e : delete a[Ce]), n;
|
|
1471
1471
|
}
|
|
1472
1472
|
var Xt = Object.prototype, Jt = Xt.toString;
|
|
1473
|
-
function
|
|
1473
|
+
function Zt(a) {
|
|
1474
1474
|
return Jt.call(a);
|
|
1475
1475
|
}
|
|
1476
|
-
var
|
|
1476
|
+
var Qt = "[object Null]", ei = "[object Undefined]", Be = ge ? ge.toStringTag : void 0;
|
|
1477
1477
|
function Ee(a) {
|
|
1478
|
-
return a == null ? a === void 0 ? ei :
|
|
1478
|
+
return a == null ? a === void 0 ? ei : Qt : Be && Be in Object(a) ? Kt(a) : Zt(a);
|
|
1479
1479
|
}
|
|
1480
1480
|
function Me(a) {
|
|
1481
1481
|
return a != null && typeof a == "object";
|
|
@@ -1603,8 +1603,8 @@ var It = Object.prototype, Si = It.hasOwnProperty, Ai = It.propertyIsEnumerable,
|
|
|
1603
1603
|
function Oi() {
|
|
1604
1604
|
return !1;
|
|
1605
1605
|
}
|
|
1606
|
-
var Tt = typeof exports == "object" && exports && !exports.nodeType && exports, Ue = Tt && typeof module == "object" && module && !module.nodeType && module, ki = Ue && Ue.exports === Tt, qe = ki ? ie.Buffer : void 0, Fi = qe ? qe.isBuffer : void 0, xt = Fi || Oi, Ri = "[object Arguments]", Hi = "[object Array]", zi = "[object Boolean]", Ni = "[object Date]", Gi = "[object Error]", Bi = "[object Function]", ji = "[object Map]", Yi = "[object Number]", Vi = "[object Object]", Wi = "[object RegExp]", Ui = "[object Set]", qi = "[object String]", Ki = "[object WeakMap]", Xi = "[object ArrayBuffer]", Ji = "[object DataView]",
|
|
1607
|
-
H[
|
|
1606
|
+
var Tt = typeof exports == "object" && exports && !exports.nodeType && exports, Ue = Tt && typeof module == "object" && module && !module.nodeType && module, ki = Ue && Ue.exports === Tt, qe = ki ? ie.Buffer : void 0, Fi = qe ? qe.isBuffer : void 0, xt = Fi || Oi, Ri = "[object Arguments]", Hi = "[object Array]", zi = "[object Boolean]", Ni = "[object Date]", Gi = "[object Error]", Bi = "[object Function]", ji = "[object Map]", Yi = "[object Number]", Vi = "[object Object]", Wi = "[object RegExp]", Ui = "[object Set]", qi = "[object String]", Ki = "[object WeakMap]", Xi = "[object ArrayBuffer]", Ji = "[object DataView]", Zi = "[object Float32Array]", Qi = "[object Float64Array]", es = "[object Int8Array]", ts = "[object Int16Array]", is = "[object Int32Array]", ss = "[object Uint8Array]", os = "[object Uint8ClampedArray]", ns = "[object Uint16Array]", rs = "[object Uint32Array]", H = {};
|
|
1607
|
+
H[Zi] = H[Qi] = H[es] = H[ts] = H[is] = H[ss] = H[os] = H[ns] = H[rs] = !0;
|
|
1608
1608
|
H[Ri] = H[Hi] = H[Xi] = H[zi] = H[Ji] = H[Ni] = H[Gi] = H[Bi] = H[ji] = H[Yi] = H[Vi] = H[Wi] = H[Ui] = H[qi] = H[Ki] = !1;
|
|
1609
1609
|
function as(a) {
|
|
1610
1610
|
return Me(a) && Et(a.length) && !!H[Ee(a)];
|
|
@@ -1813,21 +1813,21 @@ Je && Je.allocUnsafe;
|
|
|
1813
1813
|
function Js(a, t) {
|
|
1814
1814
|
return a.slice();
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1816
|
+
function Zs(a, t) {
|
|
1817
1817
|
for (var e = -1, i = a == null ? 0 : a.length, n = 0, s = []; ++e < i; ) {
|
|
1818
1818
|
var o = a[e];
|
|
1819
1819
|
t(o, e, a) && (s[n++] = o);
|
|
1820
1820
|
}
|
|
1821
1821
|
return s;
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function Qs() {
|
|
1824
1824
|
return [];
|
|
1825
1825
|
}
|
|
1826
|
-
var eo = Object.prototype, to = eo.propertyIsEnumerable,
|
|
1827
|
-
return a == null ? [] : (a = Object(a),
|
|
1826
|
+
var eo = Object.prototype, to = eo.propertyIsEnumerable, Ze = Object.getOwnPropertySymbols, io = Ze ? function(a) {
|
|
1827
|
+
return a == null ? [] : (a = Object(a), Zs(Ze(a), function(t) {
|
|
1828
1828
|
return to.call(a, t);
|
|
1829
1829
|
}));
|
|
1830
|
-
} :
|
|
1830
|
+
} : Qs;
|
|
1831
1831
|
function so(a, t, e) {
|
|
1832
1832
|
var i = t(a);
|
|
1833
1833
|
return _e(a) ? i : Bs(i, e(a));
|
|
@@ -1835,15 +1835,15 @@ function so(a, t, e) {
|
|
|
1835
1835
|
function oo(a) {
|
|
1836
1836
|
return so(a, ys, io);
|
|
1837
1837
|
}
|
|
1838
|
-
var Fe = de(ie, "DataView"), Re = de(ie, "Promise"), He = de(ie, "Set"),
|
|
1839
|
-
(Fe && re(new Fe(new ArrayBuffer(1))) != st || Le && re(new Le()) !=
|
|
1838
|
+
var Fe = de(ie, "DataView"), Re = de(ie, "Promise"), He = de(ie, "Set"), Qe = "[object Map]", no = "[object Object]", et = "[object Promise]", tt = "[object Set]", it = "[object WeakMap]", st = "[object DataView]", ro = ce(Fe), ao = ce(Le), lo = ce(Re), ho = ce(He), co = ce(ke), re = Ee;
|
|
1839
|
+
(Fe && re(new Fe(new ArrayBuffer(1))) != st || Le && re(new Le()) != Qe || Re && re(Re.resolve()) != et || He && re(new He()) != tt || ke && re(new ke()) != it) && (re = function(a) {
|
|
1840
1840
|
var t = Ee(a), e = t == no ? a.constructor : void 0, i = e ? ce(e) : "";
|
|
1841
1841
|
if (i)
|
|
1842
1842
|
switch (i) {
|
|
1843
1843
|
case ro:
|
|
1844
1844
|
return st;
|
|
1845
1845
|
case ao:
|
|
1846
|
-
return
|
|
1846
|
+
return Qe;
|
|
1847
1847
|
case lo:
|
|
1848
1848
|
return et;
|
|
1849
1849
|
case ho:
|
|
@@ -1925,8 +1925,8 @@ var at = fe && fe.isMap, jo = at ? Ne(at) : Bo, Yo = "[object Set]";
|
|
|
1925
1925
|
function Vo(a) {
|
|
1926
1926
|
return Me(a) && re(a) == Yo;
|
|
1927
1927
|
}
|
|
1928
|
-
var lt = fe && fe.isSet, Wo = lt ? Ne(lt) : Vo, At = "[object Arguments]", Uo = "[object Array]", qo = "[object Boolean]", Ko = "[object Date]", Xo = "[object Error]", $t = "[object Function]", Jo = "[object GeneratorFunction]",
|
|
1929
|
-
R[At] = R[Uo] = R[rn] = R[an] = R[qo] = R[Ko] = R[ln] = R[hn] = R[cn] = R[dn] = R[pn] = R[
|
|
1928
|
+
var lt = fe && fe.isSet, Wo = lt ? Ne(lt) : Vo, At = "[object Arguments]", Uo = "[object Array]", qo = "[object Boolean]", Ko = "[object Date]", Xo = "[object Error]", $t = "[object Function]", Jo = "[object GeneratorFunction]", Zo = "[object Map]", Qo = "[object Number]", Ot = "[object Object]", en = "[object RegExp]", tn = "[object Set]", sn = "[object String]", on = "[object Symbol]", nn = "[object WeakMap]", rn = "[object ArrayBuffer]", an = "[object DataView]", ln = "[object Float32Array]", hn = "[object Float64Array]", cn = "[object Int8Array]", dn = "[object Int16Array]", pn = "[object Int32Array]", un = "[object Uint8Array]", mn = "[object Uint8ClampedArray]", gn = "[object Uint16Array]", fn = "[object Uint32Array]", R = {};
|
|
1929
|
+
R[At] = R[Uo] = R[rn] = R[an] = R[qo] = R[Ko] = R[ln] = R[hn] = R[cn] = R[dn] = R[pn] = R[Zo] = R[Qo] = R[Ot] = R[en] = R[tn] = R[sn] = R[on] = R[un] = R[mn] = R[gn] = R[fn] = !0;
|
|
1930
1930
|
R[Xo] = R[$t] = R[nn] = !1;
|
|
1931
1931
|
function xe(a, t, e, i, n, s) {
|
|
1932
1932
|
var o;
|
|
@@ -2691,12 +2691,15 @@ class Dn {
|
|
|
2691
2691
|
category: e,
|
|
2692
2692
|
options: i
|
|
2693
2693
|
}) {
|
|
2694
|
-
var
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2694
|
+
var s;
|
|
2695
|
+
if (e = e || "default", this.CategoryGet[e])
|
|
2696
|
+
return this.CategoryGet[e]({
|
|
2697
|
+
themeKey: t,
|
|
2698
|
+
materialMap: this.categoryMap,
|
|
2699
|
+
options: i || {}
|
|
2700
|
+
});
|
|
2701
|
+
const n = (s = this.categoryMap.get(e)) == null ? void 0 : s.get(t);
|
|
2702
|
+
return typeof n == "function" && n.__materialFactory === !0 ? n(i || {}) : n;
|
|
2700
2703
|
}
|
|
2701
2704
|
/**
|
|
2702
2705
|
* 是否存在
|
|
@@ -2828,24 +2831,26 @@ class Pn {
|
|
|
2828
2831
|
});
|
|
2829
2832
|
}
|
|
2830
2833
|
createWall(t, e) {
|
|
2831
|
-
var l, c;
|
|
2832
2834
|
if (!t.positions || t.positions.length < 1) return null;
|
|
2833
2835
|
const i = this.materialManager.get({
|
|
2834
2836
|
themeKey: t.theme,
|
|
2835
2837
|
category: "wall",
|
|
2836
2838
|
options: t
|
|
2837
|
-
}), n =
|
|
2838
|
-
|
|
2839
|
+
}), n = (v, C = 0) => {
|
|
2840
|
+
const b = Number(v);
|
|
2841
|
+
return Number.isFinite(b) ? b : C;
|
|
2842
|
+
}, s = t.positions.map((v) => n(v == null ? void 0 : v[2], 0)), o = n(t.minHeight, 0), r = n(t.maxHeight, 0), l = (v) => Array.isArray(v) && v.length === t.positions.length && v.every((C) => Math.abs(n(C, 0)) < 1e-6), c = s.some((v) => Math.abs(v) > 1e-6), m = (Array.isArray(t.minimumHeights) && t.minimumHeights.length === t.positions.length && !(l(t.minimumHeights) && c) ? t.minimumHeights.map((v) => n(v, 0)) : s).map((v) => v - o), f = (Array.isArray(t.maximumHeights) && t.maximumHeights.length === t.positions.length && !(l(t.maximumHeights) && c) ? t.maximumHeights.map((v) => n(v, 0)) : s).map((v) => v + r), w = t.positions.map(
|
|
2843
|
+
(v) => this.Cesium.Cartesian3.fromDegrees(v[0], v[1], v[2] || 0)
|
|
2839
2844
|
);
|
|
2840
|
-
let
|
|
2845
|
+
let y = {
|
|
2841
2846
|
...t
|
|
2842
2847
|
};
|
|
2843
|
-
return i && (
|
|
2848
|
+
return i && (y.material = i), this.viewer.entities.add({
|
|
2844
2849
|
wall: {
|
|
2845
|
-
...
|
|
2846
|
-
positions:
|
|
2847
|
-
minimumHeights:
|
|
2848
|
-
maximumHeights:
|
|
2850
|
+
...y,
|
|
2851
|
+
positions: w,
|
|
2852
|
+
minimumHeights: m,
|
|
2853
|
+
maximumHeights: f
|
|
2849
2854
|
},
|
|
2850
2855
|
show: (t.show ?? !0) && e
|
|
2851
2856
|
});
|
|
@@ -4024,7 +4029,7 @@ class dt {
|
|
|
4024
4029
|
), ne = e.Cartesian3.normalize(
|
|
4025
4030
|
e.Cartesian3.subtract(f, v, new e.Cartesian3()),
|
|
4026
4031
|
new e.Cartesian3()
|
|
4027
|
-
),
|
|
4032
|
+
), Z = new e.Cartesian3(
|
|
4028
4033
|
v.x + K.x * V,
|
|
4029
4034
|
v.y + K.y * V,
|
|
4030
4035
|
v.z + K.z * V
|
|
@@ -4036,9 +4041,9 @@ class dt {
|
|
|
4036
4041
|
v.x + K.x * V + ne.x * V,
|
|
4037
4042
|
v.y + K.y * V + ne.y * V,
|
|
4038
4043
|
v.z + K.z * V + ne.z * V
|
|
4039
|
-
),
|
|
4044
|
+
), Q = i.entities.add({
|
|
4040
4045
|
polyline: {
|
|
4041
|
-
positions: [
|
|
4046
|
+
positions: [Z, U],
|
|
4042
4047
|
width: t.width || 3,
|
|
4043
4048
|
material: C,
|
|
4044
4049
|
depthFailMaterial: new e.PolylineDashMaterialProperty({ color: b, dashLength: 12, dashPattern: 255 })
|
|
@@ -4051,7 +4056,7 @@ class dt {
|
|
|
4051
4056
|
depthFailMaterial: new e.PolylineDashMaterialProperty({ color: b, dashLength: 12, dashPattern: 255 })
|
|
4052
4057
|
}
|
|
4053
4058
|
});
|
|
4054
|
-
this.angleMarkerEntities.push(
|
|
4059
|
+
this.angleMarkerEntities.push(Q, Ie);
|
|
4055
4060
|
}
|
|
4056
4061
|
this.previewLabelId && this.htmlLabelPool && (this.htmlLabelPool.removeByIds([this.previewLabelId]), this.previewLabelId = null);
|
|
4057
4062
|
const W = {
|
|
@@ -4159,26 +4164,26 @@ class dt {
|
|
|
4159
4164
|
}
|
|
4160
4165
|
rehydrate(t, e) {
|
|
4161
4166
|
var K, ne;
|
|
4162
|
-
const i = this.Cesium, n = this.viewer, s = t.options || {}, o = s.lineColor || s.color || i.Color.YELLOW, r = ((ne = (K = s.dashLineColor || s.lineColor || s.color || i.Color.RED).withAlpha) == null ? void 0 : ne.call(K, 0.9)) || i.Color.RED, l = s.width || 3, c = (t.positions || []).map((
|
|
4167
|
+
const i = this.Cesium, n = this.viewer, s = t.options || {}, o = s.lineColor || s.color || i.Color.YELLOW, r = ((ne = (K = s.dashLineColor || s.lineColor || s.color || i.Color.RED).withAlpha) == null ? void 0 : ne.call(K, 0.9)) || i.Color.RED, l = s.width || 3, c = (t.positions || []).map((Z) => new i.Cartesian3(Z[0], Z[1], Z[2]));
|
|
4163
4168
|
if (c.length < 2) return;
|
|
4164
4169
|
if (!this.htmlLabelPool) {
|
|
4165
|
-
const
|
|
4166
|
-
this.htmlLabelPool = e || new N(i, n,
|
|
4170
|
+
const Z = s.overlayContainerId || "html-label-container";
|
|
4171
|
+
this.htmlLabelPool = e || new N(i, n, Z), this.htmlLabelPool.registerTheme("measure-triangle", {
|
|
4167
4172
|
createElement: (k, U) => {
|
|
4168
|
-
var
|
|
4169
|
-
k.innerHTML = String(((
|
|
4173
|
+
var Q;
|
|
4174
|
+
k.innerHTML = String(((Q = U == null ? void 0 : U.data) == null ? void 0 : Q.text) || ""), k.style.background = "rgba(0,0,0,0.6)", k.style.color = "#fff", k.style.font = "14px sans-serif", k.style.padding = "4px 6px", k.style.borderRadius = "4px", k.style.whiteSpace = "pre";
|
|
4170
4175
|
},
|
|
4171
4176
|
options: { offset: { x: 0, y: -10 } }
|
|
4172
4177
|
}), this.htmlLabelPool.registerTheme("measure-triangle-seg", {
|
|
4173
4178
|
createElement: (k, U) => {
|
|
4174
|
-
var
|
|
4175
|
-
k.innerHTML = String(((
|
|
4179
|
+
var Q;
|
|
4180
|
+
k.innerHTML = String(((Q = U == null ? void 0 : U.data) == null ? void 0 : Q.text) || ""), k.style.background = "rgba(0,0,0,0.6)", k.style.color = "#fff", k.style.font = "14px sans-serif", k.style.padding = "4px 6px", k.style.borderRadius = "4px", k.style.whiteSpace = "pre";
|
|
4176
4181
|
},
|
|
4177
4182
|
options: { offset: { x: 0, y: -10 } }
|
|
4178
4183
|
}), this.htmlLabelPool.registerTheme("measure-triangle-angle", {
|
|
4179
4184
|
createElement: (k, U) => {
|
|
4180
|
-
var
|
|
4181
|
-
k.innerHTML = String(((
|
|
4185
|
+
var Q;
|
|
4186
|
+
k.innerHTML = String(((Q = U == null ? void 0 : U.data) == null ? void 0 : Q.text) || ""), k.style.background = "rgba(0,0,0,0.6)", k.style.color = "#fff", k.style.font = "14px sans-serif", k.style.padding = "4px 6px", k.style.borderRadius = "4px", k.style.whiteSpace = "pre";
|
|
4182
4187
|
},
|
|
4183
4188
|
options: { offset: { x: 0, y: -10 } }
|
|
4184
4189
|
});
|
|
@@ -4203,7 +4208,7 @@ class dt {
|
|
|
4203
4208
|
this.angleLabelIds = [oe, me], this.htmlLabelPool.add({ text: `${J.angle}:${(j * 180 / Math.PI).toFixed(2)}°` }, { id: oe, lon: i.Math.toDegrees(ee.longitude), lat: i.Math.toDegrees(ee.latitude), height: ee.height || 0, theme: "measure-triangle-angle", show: !0, style: { pointerEvents: "none", userSelect: "none", cursor: "default" } }), this.htmlLabelPool.add({ text: `${J.angle}:${(le * 180 / Math.PI).toFixed(2)}°` }, { id: me, lon: i.Math.toDegrees(Y.longitude), lat: i.Math.toDegrees(Y.latitude), height: Y.height || 0, theme: "measure-triangle-angle", show: !0, style: { pointerEvents: "none", userSelect: "none", cursor: "default" } });
|
|
4204
4209
|
const V = Math.max(0.01, Math.min(0.5, s.angleMarkerRatio ?? 0.2)), W = Math.min(E, I) * V;
|
|
4205
4210
|
if (E > 1e-3 && I > 1e-3) {
|
|
4206
|
-
const
|
|
4211
|
+
const Z = i.Cartesian3.normalize(i.Cartesian3.subtract(p, b, new i.Cartesian3()), new i.Cartesian3()), k = i.Cartesian3.normalize(i.Cartesian3.subtract(f, b, new i.Cartesian3()), new i.Cartesian3()), U = new i.Cartesian3(b.x + Z.x * W, b.y + Z.y * W, b.z + Z.z * W), Q = new i.Cartesian3(b.x + k.x * W, b.y + k.y * W, b.z + k.z * W), Ie = new i.Cartesian3(b.x + Z.x * W + k.x * W, b.y + Z.y * W + k.y * W, b.z + Z.z * W + k.z * W), kt = n.entities.add({ polyline: { positions: [U, Ie], width: l, material: o, depthFailMaterial: new i.PolylineDashMaterialProperty({ color: r, dashLength: 12, dashPattern: 255 }) } }), Ft = n.entities.add({ polyline: { positions: [Q, Ie], width: l, material: o, depthFailMaterial: new i.PolylineDashMaterialProperty({ color: r, dashLength: 12, dashPattern: 255 }) } });
|
|
4207
4212
|
this.angleMarkerEntities.push(kt, Ft);
|
|
4208
4213
|
}
|
|
4209
4214
|
}
|