@zhangdali1996/lr-map-viewer 0.0.24 → 0.0.26
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/dist/lr-map-viewer.css +1 -1
- package/dist/lr-map-viewer.js +837 -1189
- package/package.json +1 -1
package/dist/lr-map-viewer.js
CHANGED
|
@@ -21,7 +21,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
21
21
|
}) : n, e)), he = {
|
|
22
22
|
name: "@zhangdali1996/lr-map-viewer",
|
|
23
23
|
private: !1,
|
|
24
|
-
version: "0.0.
|
|
24
|
+
version: "0.0.25",
|
|
25
25
|
type: "module",
|
|
26
26
|
files: ["dist"],
|
|
27
27
|
main: "./dist/lr-map-viewer.js",
|
|
@@ -890,9 +890,9 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
890
890
|
}
|
|
891
891
|
var At, jt, Mt;
|
|
892
892
|
if ("onselectstart" in document) At = function() {
|
|
893
|
-
|
|
893
|
+
Ut(window, "selectstart", Qt);
|
|
894
894
|
}, jt = function() {
|
|
895
|
-
|
|
895
|
+
Gt(window, "selectstart", Qt);
|
|
896
896
|
};
|
|
897
897
|
else {
|
|
898
898
|
var Nt = Et([
|
|
@@ -912,18 +912,18 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
914
|
function Pt() {
|
|
915
|
-
|
|
915
|
+
Ut(window, "dragstart", Qt);
|
|
916
916
|
}
|
|
917
917
|
function Ft() {
|
|
918
|
-
|
|
918
|
+
Gt(window, "dragstart", Qt);
|
|
919
919
|
}
|
|
920
920
|
var It, Lt;
|
|
921
921
|
function Rt(e) {
|
|
922
922
|
for (; e.tabIndex === -1;) e = e.parentNode;
|
|
923
|
-
e.style && (zt(), It = e, Lt = e.style.outlineStyle, e.style.outlineStyle = "none",
|
|
923
|
+
e.style && (zt(), It = e, Lt = e.style.outlineStyle, e.style.outlineStyle = "none", Ut(window, "keydown", zt));
|
|
924
924
|
}
|
|
925
925
|
function zt() {
|
|
926
|
-
It && (It.style.outlineStyle = Lt, It = void 0, Lt = void 0,
|
|
926
|
+
It && (It.style.outlineStyle = Lt, It = void 0, Lt = void 0, Gt(window, "keydown", zt));
|
|
927
927
|
}
|
|
928
928
|
function Bt(e) {
|
|
929
929
|
do
|
|
@@ -974,7 +974,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
974
974
|
getSizedParentNode: Bt,
|
|
975
975
|
getScale: Vt
|
|
976
976
|
};
|
|
977
|
-
function
|
|
977
|
+
function Ut(e, t, n, r) {
|
|
978
978
|
if (t && typeof t == "object") for (var i in t) qt(e, i, t[i], n);
|
|
979
979
|
else {
|
|
980
980
|
t = f(t);
|
|
@@ -982,18 +982,18 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
982
982
|
}
|
|
983
983
|
return this;
|
|
984
984
|
}
|
|
985
|
-
var
|
|
986
|
-
function
|
|
987
|
-
if (arguments.length === 1)
|
|
985
|
+
var Wt = "_leaflet_events";
|
|
986
|
+
function Gt(e, t, n, r) {
|
|
987
|
+
if (arguments.length === 1) J(e), delete e[Wt];
|
|
988
988
|
else if (t && typeof t == "object") for (var i in t) Jt(e, i, t[i], n);
|
|
989
|
-
else if (t = f(t), arguments.length === 2)
|
|
989
|
+
else if (t = f(t), arguments.length === 2) J(e, function(e) {
|
|
990
990
|
return v(t, e) !== -1;
|
|
991
991
|
});
|
|
992
992
|
else for (var a = 0, o = t.length; a < o; a++) Jt(e, t[a], n, r);
|
|
993
993
|
return this;
|
|
994
994
|
}
|
|
995
|
-
function
|
|
996
|
-
for (var n in e[
|
|
995
|
+
function J(e, t) {
|
|
996
|
+
for (var n in e[Wt]) {
|
|
997
997
|
var r = n.split(/\d/)[0];
|
|
998
998
|
(!t || t(r)) && Jt(e, r, null, null, n);
|
|
999
999
|
}
|
|
@@ -1005,19 +1005,19 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1005
1005
|
};
|
|
1006
1006
|
function qt(e, t, n, r) {
|
|
1007
1007
|
var i = t + o(n) + (r ? "_" + o(r) : "");
|
|
1008
|
-
if (e[
|
|
1008
|
+
if (e[Wt] && e[Wt][i]) return this;
|
|
1009
1009
|
var a = function(t) {
|
|
1010
1010
|
return n.call(r || e, t || window.event);
|
|
1011
1011
|
}, s = a;
|
|
1012
1012
|
!K.touchNative && K.pointer && t.indexOf("touch") === 0 ? a = Qe(e, t, a) : K.touch && t === "dblclick" ? a = ct(e, a) : "addEventListener" in e ? t === "touchstart" || t === "touchmove" || t === "wheel" || t === "mousewheel" ? e.addEventListener(Kt[t] || t, a, K.passiveEvents ? { passive: !1 } : !1) : t === "mouseenter" || t === "mouseleave" ? (a = function(t) {
|
|
1013
1013
|
t ||= window.event, an(e, t) && s(t);
|
|
1014
|
-
}, e.addEventListener(Kt[t], a, !1)) : e.addEventListener(t, s, !1) : e.attachEvent("on" + t, a), e[
|
|
1014
|
+
}, e.addEventListener(Kt[t], a, !1)) : e.addEventListener(t, s, !1) : e.attachEvent("on" + t, a), e[Wt] = e[Wt] || {}, e[Wt][i] = a;
|
|
1015
1015
|
}
|
|
1016
1016
|
function Jt(e, t, n, r, i) {
|
|
1017
1017
|
i ||= t + o(n) + (r ? "_" + o(r) : "");
|
|
1018
|
-
var a = e[
|
|
1018
|
+
var a = e[Wt] && e[Wt][i];
|
|
1019
1019
|
if (!a) return this;
|
|
1020
|
-
!K.touchNative && K.pointer && t.indexOf("touch") === 0 ? $e(e, t, a) : K.touch && t === "dblclick" ? lt(e, a) : "removeEventListener" in e ? e.removeEventListener(Kt[t] || t, a, !1) : e.detachEvent("on" + t, a), e[
|
|
1020
|
+
!K.touchNative && K.pointer && t.indexOf("touch") === 0 ? $e(e, t, a) : K.touch && t === "dblclick" ? lt(e, a) : "removeEventListener" in e ? e.removeEventListener(Kt[t] || t, a, !1) : e.detachEvent("on" + t, a), e[Wt][i] = null;
|
|
1021
1021
|
}
|
|
1022
1022
|
function Yt(e) {
|
|
1023
1023
|
return e.stopPropagation ? e.stopPropagation() : e.originalEvent ? e.originalEvent._stopped = !0 : e.cancelBubble = !0, this;
|
|
@@ -1026,7 +1026,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1026
1026
|
return qt(e, "wheel", Yt), this;
|
|
1027
1027
|
}
|
|
1028
1028
|
function Zt(e) {
|
|
1029
|
-
return
|
|
1029
|
+
return Ut(e, "mousedown touchstart dblclick contextmenu", Yt), e._leaflet_disable_click = !0, this;
|
|
1030
1030
|
}
|
|
1031
1031
|
function Qt(e) {
|
|
1032
1032
|
return e.preventDefault ? e.preventDefault() : e.returnValue = !1, this;
|
|
@@ -1060,8 +1060,8 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1060
1060
|
}
|
|
1061
1061
|
var on = {
|
|
1062
1062
|
__proto__: null,
|
|
1063
|
-
on:
|
|
1064
|
-
off:
|
|
1063
|
+
on: Ut,
|
|
1064
|
+
off: Gt,
|
|
1065
1065
|
stopPropagation: Yt,
|
|
1066
1066
|
disableScrollPropagation: Xt,
|
|
1067
1067
|
disableClickPropagation: Zt,
|
|
@@ -1071,8 +1071,8 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1071
1071
|
getMousePosition: tn,
|
|
1072
1072
|
getWheelDelta: rn,
|
|
1073
1073
|
isExternalTarget: an,
|
|
1074
|
-
addListener:
|
|
1075
|
-
removeListener:
|
|
1074
|
+
addListener: Ut,
|
|
1075
|
+
removeListener: Gt
|
|
1076
1076
|
}, sn = j.extend({
|
|
1077
1077
|
run: function(e, t, n, r) {
|
|
1078
1078
|
this.stop(), this._el = e, this._inProgress = !0, this._duration = n || .25, this._easeOutPower = 1 / Math.max(r || .5, .2), this._startPos = kt(e), this._offset = t.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
|
|
@@ -1117,7 +1117,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1117
1117
|
trackResize: !0
|
|
1118
1118
|
},
|
|
1119
1119
|
initialize: function(e, t) {
|
|
1120
|
-
t = p(this, t), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(e), this._initLayout(), this._onResize = i(this._onResize, this), this._initEvents(), t.maxBounds && this.setMaxBounds(t.maxBounds), t.zoom !== void 0 && (this._zoom = this._limitZoom(t.zoom)), t.center && t.zoom !== void 0 && this.setView(ie(t.center), t.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = dt && K.any3d && !K.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(),
|
|
1120
|
+
t = p(this, t), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(e), this._initLayout(), this._onResize = i(this._onResize, this), this._initEvents(), t.maxBounds && this.setMaxBounds(t.maxBounds), t.zoom !== void 0 && (this._zoom = this._limitZoom(t.zoom)), t.center && t.zoom !== void 0 && this.setView(ie(t.center), t.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = dt && K.any3d && !K.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), Ut(this._proxy, ft, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
1121
1121
|
},
|
|
1122
1122
|
setView: function(e, t, r) {
|
|
1123
1123
|
return t = t === void 0 ? this._zoom : this._limitZoom(t), e = this._limitCenter(ie(e), t, this.options.maxBounds), r ||= {}, this._stop(), this._loaded && !r.reset && r !== !0 && (r.animate !== void 0 && (r.zoom = n({ animate: r.animate }, r.zoom), r.pan = n({
|
|
@@ -1418,7 +1418,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1418
1418
|
var t = this._container = pt(e);
|
|
1419
1419
|
if (!t) throw Error("Map container not found.");
|
|
1420
1420
|
if (t._leaflet_id) throw Error("Map container is already initialized.");
|
|
1421
|
-
|
|
1421
|
+
Ut(t, "scroll", this._onScroll, this), this._containerId = o(t);
|
|
1422
1422
|
},
|
|
1423
1423
|
_initLayout: function() {
|
|
1424
1424
|
var e = this._container;
|
|
@@ -1465,7 +1465,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1465
1465
|
},
|
|
1466
1466
|
_initEvents: function(e) {
|
|
1467
1467
|
this._targets = {}, this._targets[o(this._container)] = this;
|
|
1468
|
-
var t = e ?
|
|
1468
|
+
var t = e ? Gt : Ut;
|
|
1469
1469
|
t(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && t(window, "resize", this._onResize, this), K.any3d && this.options.transform3DLimit && (e ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
|
|
1470
1470
|
},
|
|
1471
1471
|
_onResize: function() {
|
|
@@ -1745,12 +1745,12 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1745
1745
|
var e = "leaflet-control-layers", t = this._container = ht("div", e), n = this.options.collapsed;
|
|
1746
1746
|
t.setAttribute("aria-haspopup", !0), Zt(t), Xt(t);
|
|
1747
1747
|
var r = this._section = ht("section", e + "-list");
|
|
1748
|
-
n && (this._map.on("click", this.collapse, this),
|
|
1748
|
+
n && (this._map.on("click", this.collapse, this), Ut(t, {
|
|
1749
1749
|
mouseenter: this._expandSafely,
|
|
1750
1750
|
mouseleave: this.collapse
|
|
1751
1751
|
}, this));
|
|
1752
1752
|
var i = this._layersLink = ht("a", e + "-toggle", t);
|
|
1753
|
-
i.href = "#", i.title = "Layers", i.setAttribute("role", "button"),
|
|
1753
|
+
i.href = "#", i.title = "Layers", i.setAttribute("role", "button"), Ut(i, {
|
|
1754
1754
|
keydown: function(e) {
|
|
1755
1755
|
e.keyCode === 13 && this._expandSafely();
|
|
1756
1756
|
},
|
|
@@ -1789,7 +1789,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1789
1789
|
},
|
|
1790
1790
|
_addItem: function(e) {
|
|
1791
1791
|
var t = document.createElement("label"), n = this._map.hasLayer(e.layer), r;
|
|
1792
|
-
e.overlay ? (r = document.createElement("input"), r.type = "checkbox", r.className = "leaflet-control-layers-selector", r.defaultChecked = n) : r = this._createRadioElement("leaflet-base-layers_" + o(this), n), this._layerControlInputs.push(r), r.layerId = o(e.layer),
|
|
1792
|
+
e.overlay ? (r = document.createElement("input"), r.type = "checkbox", r.className = "leaflet-control-layers-selector", r.defaultChecked = n) : r = this._createRadioElement("leaflet-base-layers_" + o(this), n), this._layerControlInputs.push(r), r.layerId = o(e.layer), Ut(r, "click", this._onInputClick, this);
|
|
1793
1793
|
var i = document.createElement("span");
|
|
1794
1794
|
i.innerHTML = " " + e.name;
|
|
1795
1795
|
var a = document.createElement("span");
|
|
@@ -1813,10 +1813,10 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1813
1813
|
},
|
|
1814
1814
|
_expandSafely: function() {
|
|
1815
1815
|
var e = this._section;
|
|
1816
|
-
this._preventClick = !0,
|
|
1816
|
+
this._preventClick = !0, Ut(e, "click", Qt), this.expand();
|
|
1817
1817
|
var t = this;
|
|
1818
1818
|
setTimeout(function() {
|
|
1819
|
-
|
|
1819
|
+
Gt(e, "click", Qt), t._preventClick = !1;
|
|
1820
1820
|
});
|
|
1821
1821
|
}
|
|
1822
1822
|
}), pn = function(e, t, n) {
|
|
@@ -1850,7 +1850,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1850
1850
|
},
|
|
1851
1851
|
_createButton: function(e, t, n, r, i) {
|
|
1852
1852
|
var a = ht("a", n, r);
|
|
1853
|
-
return a.innerHTML = e, a.href = "#", a.title = t, a.setAttribute("role", "button"), a.setAttribute("aria-label", t), Zt(a),
|
|
1853
|
+
return a.innerHTML = e, a.href = "#", a.title = t, a.setAttribute("role", "button"), a.setAttribute("aria-label", t), Zt(a), Ut(a, "click", $t), Ut(a, "click", i, this), Ut(a, "click", this._refocusOnMap, this), a;
|
|
1854
1854
|
},
|
|
1855
1855
|
_updateDisabled: function() {
|
|
1856
1856
|
var e = this._map, t = "leaflet-disabled";
|
|
@@ -1969,10 +1969,10 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1969
1969
|
p(this, r), this._element = e, this._dragStartTarget = t || e, this._preventOutline = n;
|
|
1970
1970
|
},
|
|
1971
1971
|
enable: function() {
|
|
1972
|
-
this._enabled ||= (
|
|
1972
|
+
this._enabled ||= (Ut(this._dragStartTarget, xn, this._onDown, this), !0);
|
|
1973
1973
|
},
|
|
1974
1974
|
disable: function() {
|
|
1975
|
-
this._enabled && (Sn._dragging === this && this.finishDrag(!0),
|
|
1975
|
+
this._enabled && (Sn._dragging === this && this.finishDrag(!0), Gt(this._dragStartTarget, xn, this._onDown, this), this._enabled = !1, this._moved = !1);
|
|
1976
1976
|
},
|
|
1977
1977
|
_onDown: function(e) {
|
|
1978
1978
|
if (this._enabled && (this._moved = !1, !bt(this._element, "leaflet-zoom-anim"))) {
|
|
@@ -1985,7 +1985,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
1985
1985
|
var t = e.touches ? e.touches[0] : e, n = Bt(this._element);
|
|
1986
1986
|
this._startPoint = new M(t.clientX, t.clientY), this._startPos = kt(this._element), this._parentScale = Vt(n);
|
|
1987
1987
|
var r = e.type === "mousedown";
|
|
1988
|
-
|
|
1988
|
+
Ut(document, r ? "mousemove" : "touchmove", this._onMove, this), Ut(document, r ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
1991
|
},
|
|
@@ -2007,7 +2007,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
2007
2007
|
this._enabled && this.finishDrag();
|
|
2008
2008
|
},
|
|
2009
2009
|
finishDrag: function(e) {
|
|
2010
|
-
q(document.body, "leaflet-dragging"), this._lastTarget &&= (q(this._lastTarget, "leaflet-drag-target"), null),
|
|
2010
|
+
q(document.body, "leaflet-dragging"), this._lastTarget &&= (q(this._lastTarget, "leaflet-drag-target"), null), Gt(document, "mousemove touchmove", this._onMove, this), Gt(document, "mouseup touchend touchcancel", this._onUp, this), Ft(), jt();
|
|
2011
2011
|
var t = this._moved && this._moving;
|
|
2012
2012
|
this._moving = !1, Sn._dragging = !1, t && this.fire("dragend", {
|
|
2013
2013
|
noInertia: e,
|
|
@@ -2533,7 +2533,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
2533
2533
|
n !== this._icon && (this._icon && this._removeIcon(), r = !0, e.title && (n.title = e.title), n.tagName === "IMG" && (n.alt = e.alt || "")), xt(n, t), e.keyboard && (n.tabIndex = "0", n.setAttribute("role", "button")), this._icon = n, e.riseOnHover && this.on({
|
|
2534
2534
|
mouseover: this._bringToFront,
|
|
2535
2535
|
mouseout: this._resetZIndex
|
|
2536
|
-
}), this.options.autoPanOnFocus &&
|
|
2536
|
+
}), this.options.autoPanOnFocus && Ut(n, "focus", this._panOnFocus, this);
|
|
2537
2537
|
var i = e.icon.createShadow(this._shadow), a = !1;
|
|
2538
2538
|
i !== this._shadow && (this._removeShadow(), a = !0), i && (xt(i, t), i.alt = ""), this._shadow = i, e.opacity < 1 && this._updateOpacity(), r && this.getPane().appendChild(this._icon), this._initInteraction(), i && a && this.getPane(e.shadowPane).appendChild(this._shadow);
|
|
2539
2539
|
},
|
|
@@ -2541,7 +2541,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
2541
2541
|
this.options.riseOnHover && this.off({
|
|
2542
2542
|
mouseover: this._bringToFront,
|
|
2543
2543
|
mouseout: this._resetZIndex
|
|
2544
|
-
}), this.options.autoPanOnFocus &&
|
|
2544
|
+
}), this.options.autoPanOnFocus && Gt(this._icon, "focus", this._panOnFocus, this), gt(this._icon), this.removeInteractiveTarget(this._icon), this._icon = null;
|
|
2545
2545
|
},
|
|
2546
2546
|
_removeShadow: function() {
|
|
2547
2547
|
this._shadow && gt(this._shadow), this._shadow = null;
|
|
@@ -3257,9 +3257,9 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
3257
3257
|
},
|
|
3258
3258
|
_initLayout: function() {
|
|
3259
3259
|
var e = "leaflet-popup", t = this._container = ht("div", e + " " + (this.options.className || "") + " leaflet-zoom-animated"), n = this._wrapper = ht("div", e + "-content-wrapper", t);
|
|
3260
|
-
if (this._contentNode = ht("div", e + "-content", n), Zt(t), Xt(this._contentNode),
|
|
3260
|
+
if (this._contentNode = ht("div", e + "-content", n), Zt(t), Xt(this._contentNode), Ut(t, "contextmenu", Yt), this._tipContainer = ht("div", e + "-tip-container", t), this._tip = ht("div", e + "-tip", this._tipContainer), this.options.closeButton) {
|
|
3261
3261
|
var r = this._closeButton = ht("a", e + "-close-button", t);
|
|
3262
|
-
r.setAttribute("role", "button"), r.setAttribute("aria-label", "Close popup"), r.href = "#close", r.innerHTML = "<span aria-hidden=\"true\">×</span>",
|
|
3262
|
+
r.setAttribute("role", "button"), r.setAttribute("aria-label", "Close popup"), r.href = "#close", r.innerHTML = "<span aria-hidden=\"true\">×</span>", Ut(r, "click", function(e) {
|
|
3263
3263
|
Qt(e), this.close();
|
|
3264
3264
|
}, this);
|
|
3265
3265
|
}
|
|
@@ -3446,9 +3446,9 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
3446
3446
|
},
|
|
3447
3447
|
_addFocusListenersOnLayer: function(e) {
|
|
3448
3448
|
var t = typeof e.getElement == "function" && e.getElement();
|
|
3449
|
-
t && (
|
|
3449
|
+
t && (Ut(t, "focus", function() {
|
|
3450
3450
|
this._tooltip._source = e, this.openTooltip();
|
|
3451
|
-
}, this),
|
|
3451
|
+
}, this), Ut(t, "blur", this.closeTooltip, this));
|
|
3452
3452
|
},
|
|
3453
3453
|
_setAriaDescribedByOnLayer: function(e) {
|
|
3454
3454
|
var t = typeof e.getElement == "function" && e.getElement();
|
|
@@ -3817,7 +3817,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
3817
3817
|
},
|
|
3818
3818
|
createTile: function(e, t) {
|
|
3819
3819
|
var n = document.createElement("img");
|
|
3820
|
-
return
|
|
3820
|
+
return Ut(n, "load", i(this._tileOnLoad, this, t, n)), Ut(n, "error", i(this._tileOnError, this, t, n)), (this.options.crossOrigin || this.options.crossOrigin === "") && (n.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), typeof this.options.referrerPolicy == "string" && (n.referrerPolicy = this.options.referrerPolicy), n.alt = "", n.src = this.getTileUrl(e), n;
|
|
3821
3821
|
},
|
|
3822
3822
|
getTileUrl: function(e) {
|
|
3823
3823
|
var t = {
|
|
@@ -3979,10 +3979,10 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
3979
3979
|
},
|
|
3980
3980
|
_initContainer: function() {
|
|
3981
3981
|
var e = this._container = document.createElement("canvas");
|
|
3982
|
-
|
|
3982
|
+
Ut(e, "mousemove", this._onMouseMove, this), Ut(e, "click dblclick mousedown mouseup contextmenu", this._onClick, this), Ut(e, "mouseout", this._handleMouseOut, this), e._leaflet_disable_events = !0, this._ctx = e.getContext("2d");
|
|
3983
3983
|
},
|
|
3984
3984
|
_destroyContainer: function() {
|
|
3985
|
-
E(this._redrawRequest), delete this._ctx, gt(this._container),
|
|
3985
|
+
E(this._redrawRequest), delete this._ctx, gt(this._container), Gt(this._container), delete this._container;
|
|
3986
3986
|
},
|
|
3987
3987
|
_updatePaths: function() {
|
|
3988
3988
|
if (!this._postponeUpdatePaths) {
|
|
@@ -4181,7 +4181,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4181
4181
|
this._container = Yr("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = Yr("g"), this._container.appendChild(this._rootGroup);
|
|
4182
4182
|
},
|
|
4183
4183
|
_destroyContainer: function() {
|
|
4184
|
-
gt(this._container),
|
|
4184
|
+
gt(this._container), Gt(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
4185
4185
|
},
|
|
4186
4186
|
_update: function() {
|
|
4187
4187
|
if (!(this._map._animatingZoom && this._bounds)) {
|
|
@@ -4272,10 +4272,10 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4272
4272
|
this._map = e, this._container = e._container, this._pane = e._panes.overlayPane, this._resetStateTimeout = 0, e.on("unload", this._destroy, this);
|
|
4273
4273
|
},
|
|
4274
4274
|
addHooks: function() {
|
|
4275
|
-
|
|
4275
|
+
Ut(this._container, "mousedown", this._onMouseDown, this);
|
|
4276
4276
|
},
|
|
4277
4277
|
removeHooks: function() {
|
|
4278
|
-
|
|
4278
|
+
Gt(this._container, "mousedown", this._onMouseDown, this);
|
|
4279
4279
|
},
|
|
4280
4280
|
moved: function() {
|
|
4281
4281
|
return this._moved;
|
|
@@ -4291,7 +4291,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4291
4291
|
},
|
|
4292
4292
|
_onMouseDown: function(e) {
|
|
4293
4293
|
if (!e.shiftKey || e.which !== 1 && e.button !== 1) return !1;
|
|
4294
|
-
this._clearDeferredResetState(), this._resetState(), At(), Pt(), this._startPoint = this._map.mouseEventToContainerPoint(e),
|
|
4294
|
+
this._clearDeferredResetState(), this._resetState(), At(), Pt(), this._startPoint = this._map.mouseEventToContainerPoint(e), Ut(document, {
|
|
4295
4295
|
contextmenu: $t,
|
|
4296
4296
|
mousemove: this._onMouseMove,
|
|
4297
4297
|
mouseup: this._onMouseUp,
|
|
@@ -4304,7 +4304,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4304
4304
|
Ot(this._box, t.min), this._box.style.width = n.x + "px", this._box.style.height = n.y + "px";
|
|
4305
4305
|
},
|
|
4306
4306
|
_finish: function() {
|
|
4307
|
-
this._moved && (gt(this._box), q(this._container, "leaflet-crosshair")), jt(), Ft(),
|
|
4307
|
+
this._moved && (gt(this._box), q(this._container, "leaflet-crosshair")), jt(), Ft(), Gt(document, {
|
|
4308
4308
|
contextmenu: $t,
|
|
4309
4309
|
mousemove: this._onMouseMove,
|
|
4310
4310
|
mouseup: this._onMouseUp,
|
|
@@ -4445,7 +4445,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4445
4445
|
},
|
|
4446
4446
|
addHooks: function() {
|
|
4447
4447
|
var e = this._map._container;
|
|
4448
|
-
e.tabIndex <= 0 && (e.tabIndex = "0"),
|
|
4448
|
+
e.tabIndex <= 0 && (e.tabIndex = "0"), Ut(e, {
|
|
4449
4449
|
focus: this._onFocus,
|
|
4450
4450
|
blur: this._onBlur,
|
|
4451
4451
|
mousedown: this._onMouseDown
|
|
@@ -4455,7 +4455,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4455
4455
|
}, this);
|
|
4456
4456
|
},
|
|
4457
4457
|
removeHooks: function() {
|
|
4458
|
-
this._removeHooks(),
|
|
4458
|
+
this._removeHooks(), Gt(this._map._container, {
|
|
4459
4459
|
focus: this._onFocus,
|
|
4460
4460
|
blur: this._onBlur,
|
|
4461
4461
|
mousedown: this._onMouseDown
|
|
@@ -4489,10 +4489,10 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4489
4489
|
for (r = 0, i = n.zoomOut.length; r < i; r++) t[n.zoomOut[r]] = -e;
|
|
4490
4490
|
},
|
|
4491
4491
|
_addHooks: function() {
|
|
4492
|
-
|
|
4492
|
+
Ut(document, "keydown", this._onKeyDown, this);
|
|
4493
4493
|
},
|
|
4494
4494
|
_removeHooks: function() {
|
|
4495
|
-
|
|
4495
|
+
Gt(document, "keydown", this._onKeyDown, this);
|
|
4496
4496
|
},
|
|
4497
4497
|
_onKeyDown: function(e) {
|
|
4498
4498
|
if (!(e.altKey || e.ctrlKey || e.metaKey)) {
|
|
@@ -4516,10 +4516,10 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4516
4516
|
});
|
|
4517
4517
|
var ii = yn.extend({
|
|
4518
4518
|
addHooks: function() {
|
|
4519
|
-
|
|
4519
|
+
Ut(this._map._container, "wheel", this._onWheelScroll, this), this._delta = 0;
|
|
4520
4520
|
},
|
|
4521
4521
|
removeHooks: function() {
|
|
4522
|
-
|
|
4522
|
+
Gt(this._map._container, "wheel", this._onWheelScroll, this);
|
|
4523
4523
|
},
|
|
4524
4524
|
_onWheelScroll: function(e) {
|
|
4525
4525
|
var t = rn(e), n = this._map.options.wheelDebounceTime;
|
|
@@ -4542,24 +4542,24 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4542
4542
|
});
|
|
4543
4543
|
var oi = yn.extend({
|
|
4544
4544
|
addHooks: function() {
|
|
4545
|
-
|
|
4545
|
+
Ut(this._map._container, "touchstart", this._onDown, this);
|
|
4546
4546
|
},
|
|
4547
4547
|
removeHooks: function() {
|
|
4548
|
-
|
|
4548
|
+
Gt(this._map._container, "touchstart", this._onDown, this);
|
|
4549
4549
|
},
|
|
4550
4550
|
_onDown: function(e) {
|
|
4551
4551
|
if (clearTimeout(this._holdTimeout), e.touches.length === 1) {
|
|
4552
4552
|
var t = e.touches[0];
|
|
4553
4553
|
this._startPos = this._newPos = new M(t.clientX, t.clientY), this._holdTimeout = setTimeout(i(function() {
|
|
4554
|
-
this._cancel(), this._isTapValid() && (
|
|
4555
|
-
}, this), ai),
|
|
4554
|
+
this._cancel(), this._isTapValid() && (Ut(document, "touchend", Qt), Ut(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", t));
|
|
4555
|
+
}, this), ai), Ut(document, "touchend touchcancel contextmenu", this._cancel, this), Ut(document, "touchmove", this._onMove, this);
|
|
4556
4556
|
}
|
|
4557
4557
|
},
|
|
4558
4558
|
_cancelClickPrevent: function e() {
|
|
4559
|
-
|
|
4559
|
+
Gt(document, "touchend", Qt), Gt(document, "touchend touchcancel", e);
|
|
4560
4560
|
},
|
|
4561
4561
|
_cancel: function() {
|
|
4562
|
-
clearTimeout(this._holdTimeout),
|
|
4562
|
+
clearTimeout(this._holdTimeout), Gt(document, "touchend touchcancel contextmenu", this._cancel, this), Gt(document, "touchmove", this._onMove, this);
|
|
4563
4563
|
},
|
|
4564
4564
|
_onMove: function(e) {
|
|
4565
4565
|
var t = e.touches[0];
|
|
@@ -4587,16 +4587,16 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4587
4587
|
});
|
|
4588
4588
|
var si = yn.extend({
|
|
4589
4589
|
addHooks: function() {
|
|
4590
|
-
xt(this._map._container, "leaflet-touch-zoom"),
|
|
4590
|
+
xt(this._map._container, "leaflet-touch-zoom"), Ut(this._map._container, "touchstart", this._onTouchStart, this);
|
|
4591
4591
|
},
|
|
4592
4592
|
removeHooks: function() {
|
|
4593
|
-
q(this._map._container, "leaflet-touch-zoom"),
|
|
4593
|
+
q(this._map._container, "leaflet-touch-zoom"), Gt(this._map._container, "touchstart", this._onTouchStart, this);
|
|
4594
4594
|
},
|
|
4595
4595
|
_onTouchStart: function(e) {
|
|
4596
4596
|
var t = this._map;
|
|
4597
4597
|
if (!(!e.touches || e.touches.length !== 2 || t._animatingZoom || this._zooming)) {
|
|
4598
4598
|
var n = t.mouseEventToContainerPoint(e.touches[0]), r = t.mouseEventToContainerPoint(e.touches[1]);
|
|
4599
|
-
this._centerPoint = t.getSize()._divideBy(2), this._startLatLng = t.containerPointToLatLng(this._centerPoint), t.options.touchZoom !== "center" && (this._pinchStartLatLng = t.containerPointToLatLng(n.add(r)._divideBy(2))), this._startDist = n.distanceTo(r), this._startZoom = t.getZoom(), this._moved = !1, this._zooming = !0, t._stop(),
|
|
4599
|
+
this._centerPoint = t.getSize()._divideBy(2), this._startLatLng = t.containerPointToLatLng(this._centerPoint), t.options.touchZoom !== "center" && (this._pinchStartLatLng = t.containerPointToLatLng(n.add(r)._divideBy(2))), this._startDist = n.distanceTo(r), this._startZoom = t.getZoom(), this._moved = !1, this._zooming = !0, t._stop(), Ut(document, "touchmove", this._onTouchMove, this), Ut(document, "touchend touchcancel", this._onTouchEnd, this), Qt(e);
|
|
4600
4600
|
}
|
|
4601
4601
|
},
|
|
4602
4602
|
_onTouchMove: function(e) {
|
|
@@ -4622,7 +4622,7 @@ var z = Object.create, se = Object.defineProperty, ce = Object.getOwnPropertyDes
|
|
|
4622
4622
|
this._zooming = !1;
|
|
4623
4623
|
return;
|
|
4624
4624
|
}
|
|
4625
|
-
this._zooming = !1, E(this._animRequest),
|
|
4625
|
+
this._zooming = !1, E(this._animRequest), Gt(document, "touchmove", this._onTouchMove, this), Gt(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
4626
4626
|
}
|
|
4627
4627
|
});
|
|
4628
4628
|
cn.addInitHook("addHandler", "touchZoom", si), cn.BoxZoom = ei, cn.DoubleClickZoom = ti, cn.Drag = ni, cn.Keyboard = ri, cn.ScrollWheelZoom = ii, cn.TapHold = oi, cn.TouchZoom = si, e.Bounds = ee, e.Browser = K, e.CRS = ae, e.Canvas = Gr, e.Circle = lr, e.CircleMarker = sr, e.Class = O, e.Control = un, e.DivIcon = Ir, e.DivOverlay = Y, e.DomEvent = on, e.DomUtil = Ht, e.Draggable = Sn, e.Evented = j, e.FeatureGroup = Qn, e.GeoJSON = hr, e.GridLayer = Rr, e.Handler = yn, e.Icon = er, e.ImageOverlay = Dr, e.LatLng = re, e.LatLngBounds = ne, e.Layer = Yn, e.LayerGroup = Xn, e.LineUtil = Hn, e.Map = cn, e.Marker = ir, e.Mixin = bn, e.Path = or, e.Point = M, e.PolyUtil = En, e.Polygon = pr, e.Polyline = dr, e.Popup = Nr, e.PosAnimation = sn, e.Projection = Gn, e.Rectangle = Qr, e.Renderer = Wr, e.SVG = Xr, e.SVGOverlay = jr, e.TileLayer = Br, e.Tooltip = Fr, e.Transformation = z, e.Util = D, e.VideoOverlay = kr, e.bind = i, e.bounds = te, e.canvas = Kr, e.circle = ur, e.circleMarker = cr, e.control = dn, e.divIcon = Lr, e.extend = n, e.featureGroup = $n, e.geoJSON = Tr, e.geoJson = Er, e.gridLayer = zr, e.icon = tr, e.imageOverlay = Or, e.latLng = ie, e.latLngBounds = F, e.layerGroup = Zn, e.map = ln, e.marker = ar, e.point = P, e.polygon = mr, e.polyline = fr, e.popup = Pr, e.rectangle = $r, e.setOptions = p, e.stamp = o, e.svg = Zr, e.svgOverlay = Mr, e.tileLayer = Vr, e.tooltip = X, e.transformation = se, e.version = t, e.videoOverlay = Ar;
|
|
@@ -5068,26 +5068,26 @@ var Pt = class {
|
|
|
5068
5068
|
"ReactNative",
|
|
5069
5069
|
"NativeScript",
|
|
5070
5070
|
"NS"
|
|
5071
|
-
].indexOf(zt.product) < 0), Vt = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ht = Rt && window.location.href || "http://localhost",
|
|
5071
|
+
].indexOf(zt.product) < 0), Vt = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ht = Rt && window.location.href || "http://localhost", Ut = {
|
|
5072
5072
|
...Lt,
|
|
5073
5073
|
...It
|
|
5074
5074
|
};
|
|
5075
5075
|
//#endregion
|
|
5076
5076
|
//#region ../../node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
5077
|
-
function
|
|
5078
|
-
return Ot(e, new
|
|
5077
|
+
function Wt(e, t) {
|
|
5078
|
+
return Ot(e, new Ut.classes.URLSearchParams(), {
|
|
5079
5079
|
visitor: function(e, t, n, r) {
|
|
5080
|
-
return
|
|
5080
|
+
return Ut.isNode && q.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
5081
5081
|
},
|
|
5082
5082
|
...t
|
|
5083
5083
|
});
|
|
5084
5084
|
}
|
|
5085
5085
|
//#endregion
|
|
5086
5086
|
//#region ../../node_modules/axios/lib/helpers/formDataToJSON.js
|
|
5087
|
-
function
|
|
5087
|
+
function Gt(e) {
|
|
5088
5088
|
return q.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
5089
5089
|
}
|
|
5090
|
-
function
|
|
5090
|
+
function J(e) {
|
|
5091
5091
|
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
5092
5092
|
for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
|
|
5093
5093
|
return t;
|
|
@@ -5097,12 +5097,12 @@ function Kt(e) {
|
|
|
5097
5097
|
let a = e[i++];
|
|
5098
5098
|
if (a === "__proto__") return !0;
|
|
5099
5099
|
let o = Number.isFinite(+a), s = i >= e.length;
|
|
5100
|
-
return a = !a && q.isArray(r) ? r.length : a, s ? (q.hasOwnProp(r, a) ? r[a] = q.isArray(r[a]) ? r[a].concat(n) : [r[a], n] : r[a] = n, !o) : ((!r[a] || !q.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && q.isArray(r[a]) && (r[a] =
|
|
5100
|
+
return a = !a && q.isArray(r) ? r.length : a, s ? (q.hasOwnProp(r, a) ? r[a] = q.isArray(r[a]) ? r[a].concat(n) : [r[a], n] : r[a] = n, !o) : ((!r[a] || !q.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && q.isArray(r[a]) && (r[a] = J(r[a])), !o);
|
|
5101
5101
|
}
|
|
5102
5102
|
if (q.isFormData(e) && q.isFunction(e.entries)) {
|
|
5103
5103
|
let n = {};
|
|
5104
5104
|
return q.forEachEntry(e, (e, r) => {
|
|
5105
|
-
t(
|
|
5105
|
+
t(Gt(e), r, n, 0);
|
|
5106
5106
|
}), n;
|
|
5107
5107
|
}
|
|
5108
5108
|
return null;
|
|
@@ -5134,7 +5134,7 @@ var Yt = {
|
|
|
5134
5134
|
let a;
|
|
5135
5135
|
if (i) {
|
|
5136
5136
|
let t = qt(this, "formSerializer");
|
|
5137
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1) return
|
|
5137
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1) return Wt(e, t).toString();
|
|
5138
5138
|
if ((a = q.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
5139
5139
|
let n = qt(this, "env"), r = n && n.FormData;
|
|
5140
5140
|
return Ot(a ? { "files[]": e } : e, r && new r(), t);
|
|
@@ -5161,8 +5161,8 @@ var Yt = {
|
|
|
5161
5161
|
maxContentLength: -1,
|
|
5162
5162
|
maxBodyLength: -1,
|
|
5163
5163
|
env: {
|
|
5164
|
-
FormData:
|
|
5165
|
-
Blob:
|
|
5164
|
+
FormData: Ut.classes.FormData,
|
|
5165
|
+
Blob: Ut.classes.Blob
|
|
5166
5166
|
},
|
|
5167
5167
|
validateStatus: function(e) {
|
|
5168
5168
|
return e >= 200 && e < 300;
|
|
@@ -5475,7 +5475,7 @@ var vn = (e, t, n = 3) => {
|
|
|
5475
5475
|
total: e,
|
|
5476
5476
|
loaded: r
|
|
5477
5477
|
}), t[1]];
|
|
5478
|
-
}, bn = (e) => (...t) => q.asap(() => e(...t)), xn =
|
|
5478
|
+
}, bn = (e) => (...t) => q.asap(() => e(...t)), xn = Ut.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, Ut.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(Ut.origin), Ut.navigator && /(msie|trident)/i.test(Ut.navigator.userAgent)) : () => !0, Sn = Ut.hasStandardBrowserEnv ? {
|
|
5479
5479
|
write(e, t, n, r, i, a, o) {
|
|
5480
5480
|
if (typeof document > "u") return;
|
|
5481
5481
|
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
@@ -5581,7 +5581,7 @@ function Dn(e, t) {
|
|
|
5581
5581
|
var On = (e) => {
|
|
5582
5582
|
let t = Dn({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
|
|
5583
5583
|
if (t.headers = o = un.from(o), t.url = Nt(Tn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), q.isFormData(n)) {
|
|
5584
|
-
if (
|
|
5584
|
+
if (Ut.hasStandardBrowserEnv || Ut.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
|
|
5585
5585
|
else if (q.isFunction(n.getHeaders)) {
|
|
5586
5586
|
let e = n.getHeaders(), t = ["content-type", "content-length"];
|
|
5587
5587
|
Object.entries(e).forEach(([e, n]) => {
|
|
@@ -5589,7 +5589,7 @@ var On = (e) => {
|
|
|
5589
5589
|
});
|
|
5590
5590
|
}
|
|
5591
5591
|
}
|
|
5592
|
-
if (
|
|
5592
|
+
if (Ut.hasStandardBrowserEnv && (q.isFunction(r) && (r = r(t)), r === !0 || r == null && xn(t.url))) {
|
|
5593
5593
|
let e = i && a && Sn.read(a);
|
|
5594
5594
|
e && o.set(i, e);
|
|
5595
5595
|
}
|
|
@@ -5634,7 +5634,7 @@ var On = (e) => {
|
|
|
5634
5634
|
h &&= (n(!t || t.type ? new pn(null, e, h) : t), h.abort(), null);
|
|
5635
5635
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
5636
5636
|
let _ = hn(r.url);
|
|
5637
|
-
if (_ &&
|
|
5637
|
+
if (_ && Ut.protocols.indexOf(_) === -1) {
|
|
5638
5638
|
n(new St("Unsupported protocol " + _ + ":", St.ERR_BAD_REQUEST, e));
|
|
5639
5639
|
return;
|
|
5640
5640
|
}
|
|
@@ -5721,7 +5721,7 @@ var On = (e) => {
|
|
|
5721
5721
|
let { fetch: t, Request: n, Response: r } = e, i = t ? In(t) : typeof fetch == "function", a = In(n), o = In(r);
|
|
5722
5722
|
if (!i) return !1;
|
|
5723
5723
|
let s = i && In(Rn), c = i && (typeof zn == "function" ? ((e) => (t) => e.encode(t))(new zn()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && Bn(() => {
|
|
5724
|
-
let e = !1, t = new n(
|
|
5724
|
+
let e = !1, t = new n(Ut.origin, {
|
|
5725
5725
|
body: new Rn(),
|
|
5726
5726
|
method: "POST",
|
|
5727
5727
|
get duplex() {
|
|
@@ -5746,7 +5746,7 @@ var On = (e) => {
|
|
|
5746
5746
|
let f = async (e) => {
|
|
5747
5747
|
if (e == null) return 0;
|
|
5748
5748
|
if (q.isBlob(e)) return e.size;
|
|
5749
|
-
if (q.isSpecCompliantForm(e)) return (await new n(
|
|
5749
|
+
if (q.isSpecCompliantForm(e)) return (await new n(Ut.origin, {
|
|
5750
5750
|
method: "POST",
|
|
5751
5751
|
body: e
|
|
5752
5752
|
}).arrayBuffer()).byteLength;
|
|
@@ -9695,13 +9695,13 @@ function xr() {
|
|
|
9695
9695
|
if (n) return S.event.trigger(e, t, n, !0);
|
|
9696
9696
|
}
|
|
9697
9697
|
});
|
|
9698
|
-
var Ht = /\[\]$/,
|
|
9699
|
-
function
|
|
9698
|
+
var Ht = /\[\]$/, Ut = /\r?\n/g, Wt = /^(?:submit|button|image|reset|file)$/i, Gt = /^(?:input|select|textarea|keygen)/i;
|
|
9699
|
+
function J(e, t, n, r) {
|
|
9700
9700
|
var i;
|
|
9701
9701
|
if (Array.isArray(t)) S.each(t, function(t, i) {
|
|
9702
|
-
n || Ht.test(e) ? r(e, i) :
|
|
9702
|
+
n || Ht.test(e) ? r(e, i) : J(e + "[" + (typeof i == "object" && i ? t : "") + "]", i, n, r);
|
|
9703
9703
|
});
|
|
9704
|
-
else if (!n && y(t) === "object") for (i in t)
|
|
9704
|
+
else if (!n && y(t) === "object") for (i in t) J(e + "[" + i + "]", t[i], n, r);
|
|
9705
9705
|
else r(e, t);
|
|
9706
9706
|
}
|
|
9707
9707
|
S.param = function(e, t) {
|
|
@@ -9713,7 +9713,7 @@ function xr() {
|
|
|
9713
9713
|
if (Array.isArray(e) || e.jquery && !S.isPlainObject(e)) S.each(e, function() {
|
|
9714
9714
|
i(this.name, this.value);
|
|
9715
9715
|
});
|
|
9716
|
-
else for (n in e)
|
|
9716
|
+
else for (n in e) J(n, e[n], t, i);
|
|
9717
9717
|
return r.join("&");
|
|
9718
9718
|
}, S.fn.extend({
|
|
9719
9719
|
serialize: function() {
|
|
@@ -9725,17 +9725,17 @@ function xr() {
|
|
|
9725
9725
|
return e ? S.makeArray(e) : this;
|
|
9726
9726
|
}).filter(function() {
|
|
9727
9727
|
var e = this.type;
|
|
9728
|
-
return this.name && !S(this).is(":disabled") &&
|
|
9728
|
+
return this.name && !S(this).is(":disabled") && Gt.test(this.nodeName) && !Wt.test(e) && (this.checked || !Ne.test(e));
|
|
9729
9729
|
}).map(function(e, t) {
|
|
9730
9730
|
var n = S(this).val();
|
|
9731
9731
|
return n == null ? null : Array.isArray(n) ? S.map(n, function(e) {
|
|
9732
9732
|
return {
|
|
9733
9733
|
name: t.name,
|
|
9734
|
-
value: e.replace(
|
|
9734
|
+
value: e.replace(Ut, "\r\n")
|
|
9735
9735
|
};
|
|
9736
9736
|
}) : {
|
|
9737
9737
|
name: t.name,
|
|
9738
|
-
value: n.replace(
|
|
9738
|
+
value: n.replace(Ut, "\r\n")
|
|
9739
9739
|
};
|
|
9740
9740
|
}).get();
|
|
9741
9741
|
}
|
|
@@ -17404,7 +17404,7 @@ function xu() {
|
|
|
17404
17404
|
__fire(e, t, n, r, i = {}) {
|
|
17405
17405
|
n = (0, Vt.default)(n, i, { source: r }), L.PM.Utils._fireEvent(e, t, n);
|
|
17406
17406
|
}
|
|
17407
|
-
},
|
|
17407
|
+
}, Ut = () => ({
|
|
17408
17408
|
_lastEvents: {
|
|
17409
17409
|
keydown: void 0,
|
|
17410
17410
|
keyup: void 0,
|
|
@@ -17453,16 +17453,16 @@ function xu() {
|
|
|
17453
17453
|
getPressedKey() {
|
|
17454
17454
|
return this._lastEvents.current?.event.key;
|
|
17455
17455
|
}
|
|
17456
|
-
}),
|
|
17457
|
-
function
|
|
17456
|
+
}), Wt = c(gt());
|
|
17457
|
+
function Gt(e) {
|
|
17458
17458
|
let t = L.PM.activeLang;
|
|
17459
|
-
return (0,
|
|
17459
|
+
return (0, Wt.default)(It[t], e) || (0, Wt.default)(It.en, e) || e;
|
|
17460
17460
|
}
|
|
17461
|
-
function
|
|
17461
|
+
function J(e) {
|
|
17462
17462
|
for (let t = 0; t < e.length; t += 1) {
|
|
17463
17463
|
let n = e[t];
|
|
17464
17464
|
if (Array.isArray(n)) {
|
|
17465
|
-
if (
|
|
17465
|
+
if (J(n)) return !0;
|
|
17466
17466
|
} else if (n != null && n !== "") return !0;
|
|
17467
17467
|
}
|
|
17468
17468
|
return !1;
|
|
@@ -17557,7 +17557,7 @@ function xu() {
|
|
|
17557
17557
|
Ht
|
|
17558
17558
|
],
|
|
17559
17559
|
initialize(e) {
|
|
17560
|
-
this.map = e, this.Draw = new L.PM.Draw(e), this.Toolbar = new L.PM.Toolbar(e), this.Keyboard =
|
|
17560
|
+
this.map = e, this.Draw = new L.PM.Draw(e), this.Toolbar = new L.PM.Toolbar(e), this.Keyboard = Ut(), this.globalOptions = {
|
|
17561
17561
|
snappable: !0,
|
|
17562
17562
|
layerGroup: void 0,
|
|
17563
17563
|
snappingOrder: [
|
|
@@ -17768,29 +17768,29 @@ function xu() {
|
|
|
17768
17768
|
r.setAttribute("role", "button"), r.setAttribute("tabindex", "0"), r.href = "#";
|
|
17769
17769
|
let i = L.DomUtil.create("div", `leaflet-pm-actions-container ${t}`, n), a = e.actions, o = {
|
|
17770
17770
|
cancel: {
|
|
17771
|
-
text:
|
|
17772
|
-
title:
|
|
17771
|
+
text: Gt("actions.cancel"),
|
|
17772
|
+
title: Gt("actions.cancel"),
|
|
17773
17773
|
onClick() {
|
|
17774
17774
|
this._triggerClick();
|
|
17775
17775
|
}
|
|
17776
17776
|
},
|
|
17777
17777
|
finishMode: {
|
|
17778
|
-
text:
|
|
17779
|
-
title:
|
|
17778
|
+
text: Gt("actions.finish"),
|
|
17779
|
+
title: Gt("actions.finish"),
|
|
17780
17780
|
onClick() {
|
|
17781
17781
|
this._triggerClick();
|
|
17782
17782
|
}
|
|
17783
17783
|
},
|
|
17784
17784
|
removeLastVertex: {
|
|
17785
|
-
text:
|
|
17786
|
-
title:
|
|
17785
|
+
text: Gt("actions.removeLastVertex"),
|
|
17786
|
+
title: Gt("actions.removeLastVertex"),
|
|
17787
17787
|
onClick() {
|
|
17788
17788
|
this._map.pm.Draw[e.jsClass]._removeLastVertex();
|
|
17789
17789
|
}
|
|
17790
17790
|
},
|
|
17791
17791
|
finish: {
|
|
17792
|
-
text:
|
|
17793
|
-
title:
|
|
17792
|
+
text: Gt("actions.finish"),
|
|
17793
|
+
title: Gt("actions.finish"),
|
|
17794
17794
|
onClick(t) {
|
|
17795
17795
|
this._map.pm.Draw[e.jsClass]._finishShape(t);
|
|
17796
17796
|
}
|
|
@@ -17941,7 +17941,7 @@ function xu() {
|
|
|
17941
17941
|
_defineButtons() {
|
|
17942
17942
|
let e = {
|
|
17943
17943
|
className: "control-icon leaflet-pm-icon-marker",
|
|
17944
|
-
title:
|
|
17944
|
+
title: Gt("buttonTitles.drawMarkerButton"),
|
|
17945
17945
|
jsClass: "Marker",
|
|
17946
17946
|
onClick: () => {},
|
|
17947
17947
|
afterClick: (e, t) => {
|
|
@@ -17953,7 +17953,7 @@ function xu() {
|
|
|
17953
17953
|
position: this.options.position,
|
|
17954
17954
|
actions: ["cancel"]
|
|
17955
17955
|
}, t = {
|
|
17956
|
-
title:
|
|
17956
|
+
title: Gt("buttonTitles.drawPolyButton"),
|
|
17957
17957
|
className: "control-icon leaflet-pm-icon-polygon",
|
|
17958
17958
|
jsClass: "Polygon",
|
|
17959
17959
|
onClick: () => {},
|
|
@@ -17971,7 +17971,7 @@ function xu() {
|
|
|
17971
17971
|
]
|
|
17972
17972
|
}, n = {
|
|
17973
17973
|
className: "control-icon leaflet-pm-icon-polyline",
|
|
17974
|
-
title:
|
|
17974
|
+
title: Gt("buttonTitles.drawLineButton"),
|
|
17975
17975
|
jsClass: "Line",
|
|
17976
17976
|
onClick: () => {},
|
|
17977
17977
|
afterClick: (e, t) => {
|
|
@@ -17987,7 +17987,7 @@ function xu() {
|
|
|
17987
17987
|
"cancel"
|
|
17988
17988
|
]
|
|
17989
17989
|
}, r = {
|
|
17990
|
-
title:
|
|
17990
|
+
title: Gt("buttonTitles.drawCircleButton"),
|
|
17991
17991
|
className: "control-icon leaflet-pm-icon-circle",
|
|
17992
17992
|
jsClass: "Circle",
|
|
17993
17993
|
onClick: () => {},
|
|
@@ -18000,7 +18000,7 @@ function xu() {
|
|
|
18000
18000
|
position: this.options.position,
|
|
18001
18001
|
actions: ["cancel"]
|
|
18002
18002
|
}, i = {
|
|
18003
|
-
title:
|
|
18003
|
+
title: Gt("buttonTitles.drawCircleMarkerButton"),
|
|
18004
18004
|
className: "control-icon leaflet-pm-icon-circle-marker",
|
|
18005
18005
|
jsClass: "CircleMarker",
|
|
18006
18006
|
onClick: () => {},
|
|
@@ -18013,7 +18013,7 @@ function xu() {
|
|
|
18013
18013
|
position: this.options.position,
|
|
18014
18014
|
actions: ["cancel"]
|
|
18015
18015
|
}, a = {
|
|
18016
|
-
title:
|
|
18016
|
+
title: Gt("buttonTitles.drawRectButton"),
|
|
18017
18017
|
className: "control-icon leaflet-pm-icon-rectangle",
|
|
18018
18018
|
jsClass: "Rectangle",
|
|
18019
18019
|
onClick: () => {},
|
|
@@ -18026,7 +18026,7 @@ function xu() {
|
|
|
18026
18026
|
position: this.options.position,
|
|
18027
18027
|
actions: ["cancel"]
|
|
18028
18028
|
}, o = {
|
|
18029
|
-
title:
|
|
18029
|
+
title: Gt("buttonTitles.editButton"),
|
|
18030
18030
|
className: "control-icon leaflet-pm-icon-edit",
|
|
18031
18031
|
onClick: () => {},
|
|
18032
18032
|
afterClick: () => {
|
|
@@ -18039,7 +18039,7 @@ function xu() {
|
|
|
18039
18039
|
tool: "edit",
|
|
18040
18040
|
actions: ["finishMode"]
|
|
18041
18041
|
}, s = {
|
|
18042
|
-
title:
|
|
18042
|
+
title: Gt("buttonTitles.dragButton"),
|
|
18043
18043
|
className: "control-icon leaflet-pm-icon-drag",
|
|
18044
18044
|
onClick: () => {},
|
|
18045
18045
|
afterClick: () => {
|
|
@@ -18052,7 +18052,7 @@ function xu() {
|
|
|
18052
18052
|
tool: "edit",
|
|
18053
18053
|
actions: ["finishMode"]
|
|
18054
18054
|
}, c = {
|
|
18055
|
-
title:
|
|
18055
|
+
title: Gt("buttonTitles.cutButton"),
|
|
18056
18056
|
className: "control-icon leaflet-pm-icon-cut",
|
|
18057
18057
|
jsClass: "Cut",
|
|
18058
18058
|
onClick: () => {},
|
|
@@ -18074,7 +18074,7 @@ function xu() {
|
|
|
18074
18074
|
"cancel"
|
|
18075
18075
|
]
|
|
18076
18076
|
}, l = {
|
|
18077
|
-
title:
|
|
18077
|
+
title: Gt("buttonTitles.deleteButton"),
|
|
18078
18078
|
className: "control-icon leaflet-pm-icon-delete",
|
|
18079
18079
|
onClick: () => {},
|
|
18080
18080
|
afterClick: () => {
|
|
@@ -18087,7 +18087,7 @@ function xu() {
|
|
|
18087
18087
|
tool: "edit",
|
|
18088
18088
|
actions: ["finishMode"]
|
|
18089
18089
|
}, u = {
|
|
18090
|
-
title:
|
|
18090
|
+
title: Gt("buttonTitles.rotateButton"),
|
|
18091
18091
|
className: "control-icon leaflet-pm-icon-rotate",
|
|
18092
18092
|
onClick: () => {},
|
|
18093
18093
|
afterClick: () => {
|
|
@@ -18101,7 +18101,7 @@ function xu() {
|
|
|
18101
18101
|
actions: ["finishMode"]
|
|
18102
18102
|
}, d = {
|
|
18103
18103
|
className: "control-icon leaflet-pm-icon-text",
|
|
18104
|
-
title:
|
|
18104
|
+
title: Gt("buttonTitles.drawTextButton"),
|
|
18105
18105
|
jsClass: "Text",
|
|
18106
18106
|
onClick: () => {},
|
|
18107
18107
|
afterClick: (e, t) => {
|
|
@@ -18310,7 +18310,7 @@ function xu() {
|
|
|
18310
18310
|
});
|
|
18311
18311
|
r._pmTempLayer = !0, t.push(r), (n instanceof L.Circle || n instanceof L.CircleMarker) && t.push(r);
|
|
18312
18312
|
}
|
|
18313
|
-
}), e = e.filter((e) => this._layer !== e), e = e.filter((e) => e._latlng || e._latlngs &&
|
|
18313
|
+
}), e = e.filter((e) => this._layer !== e), e = e.filter((e) => e._latlng || e._latlngs && J(e._latlngs)), e = e.filter((e) => !e._pmTempLayer), this._otherSnapLayers ? (this._otherSnapLayers.forEach(() => {
|
|
18314
18314
|
let e = L.polyline([], {
|
|
18315
18315
|
color: "red",
|
|
18316
18316
|
pmIgnore: !0
|
|
@@ -18573,7 +18573,7 @@ function xu() {
|
|
|
18573
18573
|
this._map = e, this._shape = "Marker", this.toolbarButtonName = "drawMarker";
|
|
18574
18574
|
},
|
|
18575
18575
|
enable(e) {
|
|
18576
|
-
L.Util.setOptions(this, e), this._enabled = !0, this._map.getContainer().classList.add("geoman-draw-cursor"), this._map.on("click", this._createMarker, this), this._map.pm.Toolbar.toggleButton(this.toolbarButtonName, !0), this._hintMarker = L.marker(this._map.getCenter(), this.options.markerStyle), this._setPane(this._hintMarker, "markerPane"), this._hintMarker._pmTempLayer = !0, this._hintMarker.addTo(this._map), this.options.tooltips && this._hintMarker.bindTooltip(
|
|
18576
|
+
L.Util.setOptions(this, e), this._enabled = !0, this._map.getContainer().classList.add("geoman-draw-cursor"), this._map.on("click", this._createMarker, this), this._map.pm.Toolbar.toggleButton(this.toolbarButtonName, !0), this._hintMarker = L.marker(this._map.getCenter(), this.options.markerStyle), this._setPane(this._hintMarker, "markerPane"), this._hintMarker._pmTempLayer = !0, this._hintMarker.addTo(this._map), this.options.tooltips && this._hintMarker.bindTooltip(Gt("tooltips.placeMarker"), {
|
|
18577
18577
|
permanent: !0,
|
|
18578
18578
|
offset: L.point(0, 10),
|
|
18579
18579
|
direction: "bottom",
|
|
@@ -18718,7 +18718,7 @@ function xu() {
|
|
|
18718
18718
|
interactive: !1,
|
|
18719
18719
|
zIndexOffset: 100,
|
|
18720
18720
|
icon: L.divIcon({ className: "marker-icon cursor-marker" })
|
|
18721
|
-
}), this._setPane(this._hintMarker, "vertexPane"), this._hintMarker._pmTempLayer = !0, this._layerGroup.addLayer(this._hintMarker), this.options.cursorMarker && L.DomUtil.addClass(this._hintMarker._icon, "visible"), this.options.tooltips && this._hintMarker.bindTooltip(
|
|
18721
|
+
}), this._setPane(this._hintMarker, "vertexPane"), this._hintMarker._pmTempLayer = !0, this._layerGroup.addLayer(this._hintMarker), this.options.cursorMarker && L.DomUtil.addClass(this._hintMarker._icon, "visible"), this.options.tooltips && this._hintMarker.bindTooltip(Gt("tooltips.firstVertex"), {
|
|
18722
18722
|
permanent: !0,
|
|
18723
18723
|
offset: L.point(0, 10),
|
|
18724
18724
|
direction: "bottom",
|
|
@@ -18806,7 +18806,7 @@ function xu() {
|
|
|
18806
18806
|
},
|
|
18807
18807
|
_setTooltipText() {
|
|
18808
18808
|
let { length: e } = this._layer.getLatLngs().flat(), t = "";
|
|
18809
|
-
t =
|
|
18809
|
+
t = Gt(e <= 1 ? "tooltips.continueLine" : "tooltips.finishLine"), this._hintMarker.setTooltipContent(t);
|
|
18810
18810
|
},
|
|
18811
18811
|
_change(e) {
|
|
18812
18812
|
this._fireChange(e, "Draw");
|
|
@@ -18830,7 +18830,7 @@ function xu() {
|
|
|
18830
18830
|
},
|
|
18831
18831
|
_setTooltipText() {
|
|
18832
18832
|
let { length: e } = this._layer.getLatLngs().flat(), t = "";
|
|
18833
|
-
t =
|
|
18833
|
+
t = Gt(e <= 2 ? "tooltips.continueLine" : "tooltips.finishPoly"), this._hintMarker.setTooltipContent(t);
|
|
18834
18834
|
},
|
|
18835
18835
|
_finishShape() {
|
|
18836
18836
|
if (!this.options.allowSelfIntersection && (this._handleSelfIntersection(!0, this._layer.getLatLngs()[0]), this._doesSelfIntersect) || this.options.requireSnapToFinish && !this._hintMarker._snapped && !this._isFirstLayer()) return;
|
|
@@ -18854,7 +18854,7 @@ function xu() {
|
|
|
18854
18854
|
}), this._setPane(this._startMarker, "vertexPane"), this._startMarker._pmTempLayer = !0, this._layerGroup.addLayer(this._startMarker), this._hintMarker = L.marker(this._map.getCenter(), {
|
|
18855
18855
|
zIndexOffset: 150,
|
|
18856
18856
|
icon: L.divIcon({ className: "marker-icon cursor-marker" })
|
|
18857
|
-
}), this._setPane(this._hintMarker, "vertexPane"), this._hintMarker._pmTempLayer = !0, this._layerGroup.addLayer(this._hintMarker), this.options.cursorMarker && L.DomUtil.addClass(this._hintMarker._icon, "visible"), this.options.tooltips && this._hintMarker.bindTooltip(
|
|
18857
|
+
}), this._setPane(this._hintMarker, "vertexPane"), this._hintMarker._pmTempLayer = !0, this._layerGroup.addLayer(this._hintMarker), this.options.cursorMarker && L.DomUtil.addClass(this._hintMarker._icon, "visible"), this.options.tooltips && this._hintMarker.bindTooltip(Gt("tooltips.firstVertex"), {
|
|
18858
18858
|
permanent: !0,
|
|
18859
18859
|
offset: L.point(0, 10),
|
|
18860
18860
|
direction: "bottom",
|
|
@@ -18886,7 +18886,7 @@ function xu() {
|
|
|
18886
18886
|
let t = this._hintMarker.getLatLng();
|
|
18887
18887
|
L.DomUtil.addClass(this._startMarker._icon, "visible"), this._startMarker.setLatLng(t), this.options.cursorMarker && this._styleMarkers && this._styleMarkers.forEach((e) => {
|
|
18888
18888
|
L.DomUtil.addClass(e._icon, "visible"), e.setLatLng(t);
|
|
18889
|
-
}), this._map.off("click", this._placeStartingMarkers, this), this._map.on("click", this._finishShape, this), this._hintMarker.setTooltipContent(
|
|
18889
|
+
}), this._map.off("click", this._placeStartingMarkers, this), this._map.on("click", this._finishShape, this), this._hintMarker.setTooltipContent(Gt("tooltips.finishRect")), this._setRectangleOrigin();
|
|
18890
18890
|
},
|
|
18891
18891
|
_setRectangleOrigin() {
|
|
18892
18892
|
let e = this._startMarker.getLatLng();
|
|
@@ -18947,7 +18947,7 @@ function xu() {
|
|
|
18947
18947
|
}), this._setPane(this._centerMarker, "vertexPane"), this._centerMarker._pmTempLayer = !0, this._hintMarker = L.marker(this._map.getCenter(), {
|
|
18948
18948
|
zIndexOffset: 110,
|
|
18949
18949
|
icon: L.divIcon({ className: "marker-icon cursor-marker" })
|
|
18950
|
-
}), this._setPane(this._hintMarker, "vertexPane"), this._hintMarker._pmTempLayer = !0, this._layerGroup.addLayer(this._hintMarker), this.options.cursorMarker && L.DomUtil.addClass(this._hintMarker._icon, "visible"), this.options.tooltips && this._hintMarker.bindTooltip(
|
|
18950
|
+
}), this._setPane(this._hintMarker, "vertexPane"), this._hintMarker._pmTempLayer = !0, this._layerGroup.addLayer(this._hintMarker), this.options.cursorMarker && L.DomUtil.addClass(this._hintMarker._icon, "visible"), this.options.tooltips && this._hintMarker.bindTooltip(Gt("tooltips.startCircle"), {
|
|
18951
18951
|
permanent: !0,
|
|
18952
18952
|
offset: L.point(0, 10),
|
|
18953
18953
|
direction: "bottom",
|
|
@@ -18956,7 +18956,7 @@ function xu() {
|
|
|
18956
18956
|
} else this._map.on("click", this._createMarker, this), this._hintMarker = new this._BaseCircleClass(this._map.getCenter(), {
|
|
18957
18957
|
radius: this._defaultRadius,
|
|
18958
18958
|
...this.options.templineStyle
|
|
18959
|
-
}), this._setPane(this._hintMarker, "layerPane"), this._hintMarker._pmTempLayer = !0, this._hintMarker.addTo(this._map), this._layer = this._hintMarker, this.options.tooltips && this._hintMarker.bindTooltip(
|
|
18959
|
+
}), this._setPane(this._hintMarker, "layerPane"), this._hintMarker._pmTempLayer = !0, this._hintMarker.addTo(this._map), this._layer = this._hintMarker, this.options.tooltips && this._hintMarker.bindTooltip(Gt("tooltips.placeCircleMarker"), {
|
|
18960
18960
|
permanent: !0,
|
|
18961
18961
|
offset: L.point(0, 10),
|
|
18962
18962
|
direction: "bottom",
|
|
@@ -18990,7 +18990,7 @@ function xu() {
|
|
|
18990
18990
|
},
|
|
18991
18991
|
_placeCircleCenter() {
|
|
18992
18992
|
let e = this._centerMarker.getLatLng();
|
|
18993
|
-
e && (this._layer.setLatLng(e), this._hintMarker.on("move", this._syncHintLine, this), this._hintMarker.on("move", this._syncCircleRadius, this), this._hintMarker.setTooltipContent(
|
|
18993
|
+
e && (this._layer.setLatLng(e), this._hintMarker.on("move", this._syncHintLine, this), this._hintMarker.on("move", this._syncCircleRadius, this), this._hintMarker.setTooltipContent(Gt("tooltips.finishCircle")), this._fireCenterPlaced(), this._fireChange(this._layer.getLatLng(), "Draw"));
|
|
18994
18994
|
},
|
|
18995
18995
|
_syncHintLine() {
|
|
18996
18996
|
let e = this._centerMarker.getLatLng(), t = this._getNewDestinationOfHintMarker();
|
|
@@ -21237,7 +21237,7 @@ function xu() {
|
|
|
21237
21237
|
interactive: !1,
|
|
21238
21238
|
zIndexOffset: 100,
|
|
21239
21239
|
icon: L.divIcon({ className: "marker-icon cursor-marker" })
|
|
21240
|
-
}), this._setPane(this._hintMarker, "vertexPane"), this._hintMarker._pmTempLayer = !0, this._hintMarker.addTo(this._map), this.options.cursorMarker && L.DomUtil.addClass(this._hintMarker._icon, "visible"), this.options.tooltips && this._hintMarker.bindTooltip(
|
|
21240
|
+
}), this._setPane(this._hintMarker, "vertexPane"), this._hintMarker._pmTempLayer = !0, this._hintMarker.addTo(this._map), this.options.cursorMarker && L.DomUtil.addClass(this._hintMarker._icon, "visible"), this.options.tooltips && this._hintMarker.bindTooltip(Gt("tooltips.placeText"), {
|
|
21241
21241
|
permanent: !0,
|
|
21242
21242
|
offset: L.point(0, 10),
|
|
21243
21243
|
direction: "bottom",
|
|
@@ -21868,7 +21868,7 @@ function xu() {
|
|
|
21868
21868
|
}
|
|
21869
21869
|
o.splice(i, 1), this._layer.setLatLngs(n), this.isPolygon() && o.length <= 2 && o.splice(0, o.length);
|
|
21870
21870
|
let l = !1;
|
|
21871
|
-
if (o.length <= 1 && (o.splice(0, o.length), a.length > 1 && r.length > 1 && (n = Kt(n)), this._layer.setLatLngs(n), this._initMarkers(), l = !0),
|
|
21871
|
+
if (o.length <= 1 && (o.splice(0, o.length), a.length > 1 && r.length > 1 && (n = Kt(n)), this._layer.setLatLngs(n), this._initMarkers(), l = !0), J(n) || this._layer.remove(), n = Kt(n), this._layer.setLatLngs(n), this._markers = Kt(this._markers), !l && (s = r.length > 1 ? (0, Ki.default)(this._markers, a) : this._markers, t._middleMarkerPrev && (this._markerGroup.removeLayer(t._middleMarkerPrev), this._removeFromCache(t._middleMarkerPrev)), t._middleMarkerNext && (this._markerGroup.removeLayer(t._middleMarkerNext), this._removeFromCache(t._middleMarkerNext)), this._markerGroup.removeLayer(t), this._removeFromCache(t), s)) {
|
|
21872
21872
|
let e, t;
|
|
21873
21873
|
if (this.isPolygon() ? (e = (i + 1) % s.length, t = (i + (s.length - 1)) % s.length) : (t = i - 1 < 0 ? void 0 : i - 1, e = i + 1 >= s.length ? void 0 : i + 1), e !== t) {
|
|
21874
21874
|
let n = s[t], r = s[e];
|
|
@@ -22498,7 +22498,7 @@ function xu() {
|
|
|
22498
22498
|
};
|
|
22499
22499
|
},
|
|
22500
22500
|
createGeodesicPolygon: Jt,
|
|
22501
|
-
getTranslation:
|
|
22501
|
+
getTranslation: Gt,
|
|
22502
22502
|
findDeepCoordIndex(e, t, n = !0) {
|
|
22503
22503
|
let r, i = (e) => (a, o) => {
|
|
22504
22504
|
let s = e.concat(o);
|
|
@@ -31941,7 +31941,7 @@ function xd() {
|
|
|
31941
31941
|
Bt.constructor_.call(this, e, t);
|
|
31942
31942
|
}
|
|
31943
31943
|
}]);
|
|
31944
|
-
})(Bt),
|
|
31944
|
+
})(Bt), Ut = (function() {
|
|
31945
31945
|
return a((function e() {
|
|
31946
31946
|
n(this, e), e.constructor_.apply(this, arguments);
|
|
31947
31947
|
}), [
|
|
@@ -32014,7 +32014,7 @@ function xd() {
|
|
|
32014
32014
|
}
|
|
32015
32015
|
}
|
|
32016
32016
|
}]);
|
|
32017
|
-
})(),
|
|
32017
|
+
})(), Wt = (function(e) {
|
|
32018
32018
|
function r() {
|
|
32019
32019
|
var e;
|
|
32020
32020
|
return n(this, r), e = t(this, r), r.constructor_.apply(e, arguments), e;
|
|
@@ -32117,13 +32117,13 @@ function xd() {
|
|
|
32117
32117
|
this._coord = e, this._edges = t, this._label = new zt(0, z.NONE);
|
|
32118
32118
|
}
|
|
32119
32119
|
}]);
|
|
32120
|
-
})(
|
|
32120
|
+
})(Ut), Gt = (function(e) {
|
|
32121
32121
|
function r() {
|
|
32122
32122
|
return n(this, r), t(this, r, arguments);
|
|
32123
32123
|
}
|
|
32124
32124
|
return l(r, e), a(r);
|
|
32125
32125
|
})(st);
|
|
32126
|
-
function
|
|
32126
|
+
function J(e) {
|
|
32127
32127
|
return e == null ? 0 : e.color;
|
|
32128
32128
|
}
|
|
32129
32129
|
function Kt(e) {
|
|
@@ -32207,7 +32207,7 @@ function xd() {
|
|
|
32207
32207
|
key: "fixAfterInsertion",
|
|
32208
32208
|
value: function(e) {
|
|
32209
32209
|
var t;
|
|
32210
|
-
for (e.color = 1; e != null && e !== this.root_ && e.parent.color === 1;) Kt(e) === Jt(Kt(Kt(e))) ?
|
|
32210
|
+
for (e.color = 1; e != null && e !== this.root_ && e.parent.color === 1;) Kt(e) === Jt(Kt(Kt(e))) ? J(t = Yt(Kt(Kt(e)))) === 1 ? (qt(Kt(e), 0), qt(t, 0), qt(Kt(Kt(e)), 1), e = Kt(Kt(e))) : (e === Yt(Kt(e)) && (e = Kt(e), this.rotateLeft(e)), qt(Kt(e), 0), qt(Kt(Kt(e)), 1), this.rotateRight(Kt(Kt(e)))) : J(t = Jt(Kt(Kt(e)))) === 1 ? (qt(Kt(e), 0), qt(t, 0), qt(Kt(Kt(e)), 1), e = Kt(Kt(e))) : (e === Jt(Kt(e)) && (e = Kt(e), this.rotateRight(e)), qt(Kt(e), 0), qt(Kt(Kt(e)), 1), this.rotateLeft(Kt(Kt(e))));
|
|
32211
32211
|
this.root_.color = 0;
|
|
32212
32212
|
}
|
|
32213
32213
|
},
|
|
@@ -32287,7 +32287,7 @@ function xd() {
|
|
|
32287
32287
|
return t;
|
|
32288
32288
|
}
|
|
32289
32289
|
}]);
|
|
32290
|
-
})(
|
|
32290
|
+
})(Gt), Zt = (function() {
|
|
32291
32291
|
return a((function e() {
|
|
32292
32292
|
n(this, e), e.constructor_.apply(this, arguments);
|
|
32293
32293
|
}), [
|
|
@@ -32304,7 +32304,7 @@ function xd() {
|
|
|
32304
32304
|
var e = arguments[0], t = this.nodeMap.get(e);
|
|
32305
32305
|
return t === null && (t = this.nodeFact.createNode(e), this.nodeMap.put(e, t)), t;
|
|
32306
32306
|
}
|
|
32307
|
-
if (arguments[0] instanceof
|
|
32307
|
+
if (arguments[0] instanceof Wt) {
|
|
32308
32308
|
var n = arguments[0], r = this.nodeMap.get(n.getCoordinate());
|
|
32309
32309
|
return r === null ? (this.nodeMap.put(n.getCoordinate(), n), n) : (r.mergeLabel(n), r);
|
|
32310
32310
|
}
|
|
@@ -32719,7 +32719,7 @@ function xd() {
|
|
|
32719
32719
|
}), [{
|
|
32720
32720
|
key: "createNode",
|
|
32721
32721
|
value: function(e) {
|
|
32722
|
-
return new
|
|
32722
|
+
return new Wt(e, null);
|
|
32723
32723
|
}
|
|
32724
32724
|
}]);
|
|
32725
32725
|
})(), nn = (function() {
|
|
@@ -32746,7 +32746,7 @@ function xd() {
|
|
|
32746
32746
|
{
|
|
32747
32747
|
key: "addNode",
|
|
32748
32748
|
value: function() {
|
|
32749
|
-
if (arguments[0] instanceof
|
|
32749
|
+
if (arguments[0] instanceof Wt) {
|
|
32750
32750
|
var e = arguments[0];
|
|
32751
32751
|
return this._nodes.addNode(e);
|
|
32752
32752
|
}
|
|
@@ -36309,7 +36309,7 @@ function xd() {
|
|
|
36309
36309
|
return l(r, e), a(r, [{
|
|
36310
36310
|
key: "createNode",
|
|
36311
36311
|
value: function(e) {
|
|
36312
|
-
return new
|
|
36312
|
+
return new Wt(e, new Jn());
|
|
36313
36313
|
}
|
|
36314
36314
|
}]);
|
|
36315
36315
|
})(tn), Xn = (function() {
|
|
@@ -37298,7 +37298,7 @@ function xd() {
|
|
|
37298
37298
|
t.setAtLeastIfValid(e.getLocation(0, B.ON), e.getLocation(1, B.ON), 1), e.isArea() && (t.setAtLeastIfValid(e.getLocation(0, B.LEFT), e.getLocation(1, B.LEFT), 2), t.setAtLeastIfValid(e.getLocation(0, B.RIGHT), e.getLocation(1, B.RIGHT), 2));
|
|
37299
37299
|
}
|
|
37300
37300
|
}]);
|
|
37301
|
-
})(
|
|
37301
|
+
})(Ut), cr = (function() {
|
|
37302
37302
|
function e() {
|
|
37303
37303
|
n(this, e), e.constructor_.apply(this, arguments);
|
|
37304
37304
|
}
|
|
@@ -54166,9 +54166,9 @@ async function Wj(e = {}) {
|
|
|
54166
54166
|
//#endregion
|
|
54167
54167
|
//#region src/config/mine-presets.js
|
|
54168
54168
|
var Gj = Object.freeze({
|
|
54169
|
-
CAOJIATAN: "
|
|
54170
|
-
YUHUA: "
|
|
54171
|
-
CHENJIASHAN: "
|
|
54169
|
+
CAOJIATAN: "610000060000010",
|
|
54170
|
+
YUHUA: "610000060000020",
|
|
54171
|
+
CHENJIASHAN: "610000060000030"
|
|
54172
54172
|
});
|
|
54173
54173
|
function Kj(e) {
|
|
54174
54174
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
@@ -54829,7 +54829,10 @@ var MM = jM("analysis", !0, function(e) {
|
|
|
54829
54829
|
let n = e.__vccOpts || e;
|
|
54830
54830
|
for (let [e, r] of t) n[e] = r;
|
|
54831
54831
|
return n;
|
|
54832
|
-
}, BM = { class: "lr3d-monitor-overlay__popup-header" }, VM = { class: "lr3d-monitor-overlay__popup-intro" }, HM = { class: "lr3d-monitor-overlay__popup-heading" }, UM = { class: "lr3d-monitor-overlay__popup-heading-text" }, WM = { class: "lr3d-monitor-overlay__popup-title" }, GM = {
|
|
54832
|
+
}, BM = { class: "lr3d-monitor-overlay__popup-header" }, VM = { class: "lr3d-monitor-overlay__popup-intro" }, HM = { class: "lr3d-monitor-overlay__popup-heading" }, UM = { class: "lr3d-monitor-overlay__popup-heading-text" }, WM = { class: "lr3d-monitor-overlay__popup-title" }, GM = {
|
|
54833
|
+
key: 0,
|
|
54834
|
+
class: "lr3d-monitor-overlay__popup-type"
|
|
54835
|
+
}, KM = { class: "lr3d-monitor-overlay__popup-position-block" }, qM = { class: "lr3d-monitor-overlay__popup-section-bar" }, JM = { class: "lr3d-monitor-overlay__popup-section-label" }, YM = { class: "lr3d-monitor-overlay__popup-section-meta" }, XM = { class: "lr3d-monitor-overlay__popup-position-strip" }, ZM = { class: "lr3d-monitor-overlay__popup-position" }, QM = { class: "lr3d-monitor-overlay__popup-data" }, $M = { class: "lr3d-monitor-overlay__popup-section-bar" }, eN = { class: "lr3d-monitor-overlay__popup-section-meta" }, tN = { class: "lr3d-monitor-overlay__popup-row-label" }, nN = { class: "lr3d-monitor-overlay__popup-row-value" }, rN = {
|
|
54833
54836
|
key: 0,
|
|
54834
54837
|
class: "lr3d-monitor-overlay__popup-actions"
|
|
54835
54838
|
}, iN = ["disabled"], aN = "--", oN = /* @__PURE__ */ zM({
|
|
@@ -54908,7 +54911,7 @@ var MM = jM("analysis", !0, function(e) {
|
|
|
54908
54911
|
s("div", BM, [s("div", VM, [r[1] ||= s("span", { class: "lr3d-monitor-overlay__popup-kicker" }, "监测点详情", -1), s("div", HM, [s("span", {
|
|
54909
54912
|
class: x(["lr3d-monitor-overlay__popup-emblem", e.iconClass]),
|
|
54910
54913
|
"aria-hidden": "true"
|
|
54911
|
-
}, null, 2), s("div", UM, [s("h4", WM, P(e.title), 1),
|
|
54914
|
+
}, null, 2), s("div", UM, [s("h4", WM, P(e.title), 1), e.typeLabel ? (D(), o("p", GM, P(e.typeLabel), 1)) : a("", !0)])])]), s("button", {
|
|
54912
54915
|
type: "button",
|
|
54913
54916
|
class: "lr3d-monitor-overlay__popup-close",
|
|
54914
54917
|
"aria-label": "关闭监测点信息窗口",
|
|
@@ -54927,7 +54930,7 @@ var MM = jM("analysis", !0, function(e) {
|
|
|
54927
54930
|
}, P(e.confirmLoading ? "提交中..." : e.confirmText), 9, iN)])) : a("", !0)
|
|
54928
54931
|
]));
|
|
54929
54932
|
}
|
|
54930
|
-
}, [["__scopeId", "data-v-
|
|
54933
|
+
}, [["__scopeId", "data-v-9deceda3"]]), sN = Object.create, cN = Object.defineProperty, lN = Object.getOwnPropertyDescriptor, uN = Object.getOwnPropertyNames, dN = Object.getPrototypeOf, fN = Object.prototype.hasOwnProperty, pN = (e, t) => function() {
|
|
54931
54934
|
return e && (t = (0, e[uN(e)[0]])(e = 0)), t;
|
|
54932
54935
|
}, mN = (e, t) => function() {
|
|
54933
54936
|
return t || (0, e[uN(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
@@ -58765,7 +58768,7 @@ function LR(e) {
|
|
|
58765
58768
|
}
|
|
58766
58769
|
//#endregion
|
|
58767
58770
|
//#region src/stores/marker.js
|
|
58768
|
-
var RR = 500, zR = "/apix/iot/gis-monitor/get-sensor-for-gis", BR = "/apix/iot/base-gis/set-location", VR = "/apix/iot/gis-hydrology/get-data", HR = 1, UR = 10, WR = "/apix/iot/gis-bundletube/get-sensor-for-gis", GR =
|
|
58771
|
+
var RR = 500, zR = "/apix/iot/gis-monitor/get-sensor-for-gis", BR = "/apix/iot/base-gis/set-location", VR = "/apix/iot/gis-hydrology/get-data", HR = 1, UR = 10, WR = "/apix/iot/gis-bundletube/get-sensor-for-gis", GR = "/apix/iot/gis-person/get-data-full-by-cardid", KR = 1, qR = 10, JR = [], YR = [{
|
|
58769
58772
|
id: "accident-point-001",
|
|
58770
58773
|
name: "事故地点",
|
|
58771
58774
|
lat: 38.6965,
|
|
@@ -58778,18 +58781,18 @@ var RR = 500, zR = "/apix/iot/gis-monitor/get-sensor-for-gis", BR = "/apix/iot/b
|
|
|
58778
58781
|
fillOpacity: .2
|
|
58779
58782
|
}
|
|
58780
58783
|
}];
|
|
58781
|
-
function
|
|
58784
|
+
function XR(e) {
|
|
58782
58785
|
return e != null && String(e).trim() !== "";
|
|
58783
58786
|
}
|
|
58784
|
-
function
|
|
58785
|
-
return Object.entries(e).reduce((e, [t, n]) => (
|
|
58787
|
+
function ZR(e = {}) {
|
|
58788
|
+
return Object.entries(e).reduce((e, [t, n]) => (XR(n) && (e[t] = n), e), {});
|
|
58786
58789
|
}
|
|
58787
|
-
function
|
|
58790
|
+
function QR(e, t = "安全监测") {
|
|
58788
58791
|
if (Array.isArray(e)) return e;
|
|
58789
58792
|
if (Array.isArray(e?.list)) return e.list;
|
|
58790
|
-
throw Error(
|
|
58793
|
+
throw Error(`${t}接口返回格式不符合预期`);
|
|
58791
58794
|
}
|
|
58792
|
-
function
|
|
58795
|
+
function $R(e, t, n = {
|
|
58793
58796
|
page: HR,
|
|
58794
58797
|
size: UR,
|
|
58795
58798
|
length: 0
|
|
@@ -58830,7 +58833,7 @@ function QR(e, t, n = {
|
|
|
58830
58833
|
}
|
|
58831
58834
|
throw Error(`${t}接口返回格式不符合预期`);
|
|
58832
58835
|
}
|
|
58833
|
-
var
|
|
58836
|
+
var ez = DR("lr-map-viewer-marker", {
|
|
58834
58837
|
state: () => ({
|
|
58835
58838
|
monitorPointMarkers: [],
|
|
58836
58839
|
accidentPointMarkers: [],
|
|
@@ -58847,20 +58850,22 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
58847
58850
|
hydrologyMonitorDataLoadError: "",
|
|
58848
58851
|
bundleTubeSensorItems: [],
|
|
58849
58852
|
bundleTubeSensorPageInfo: {
|
|
58850
|
-
pageNo:
|
|
58851
|
-
pageSize:
|
|
58853
|
+
pageNo: KR,
|
|
58854
|
+
pageSize: qR,
|
|
58852
58855
|
total: 0
|
|
58853
58856
|
},
|
|
58854
58857
|
bundleTubeSensorLoadState: "idle",
|
|
58855
|
-
bundleTubeSensorLoadError: ""
|
|
58858
|
+
bundleTubeSensorLoadError: "",
|
|
58859
|
+
personPositionItems: [],
|
|
58860
|
+
personPositionLoadState: "idle",
|
|
58861
|
+
personPositionLoadError: ""
|
|
58856
58862
|
}),
|
|
58857
58863
|
actions: {
|
|
58858
58864
|
initializeMarkerData() {
|
|
58859
|
-
this.monitorPointMarkers.length || (this.monitorPointMarkers =
|
|
58865
|
+
this.monitorPointMarkers.length || (this.monitorPointMarkers = JR), this.accidentPointMarkers.length || (this.accidentPointMarkers = YR);
|
|
58860
58866
|
},
|
|
58861
58867
|
async querySafetyMonitorPointList(e = {}) {
|
|
58862
|
-
let t =
|
|
58863
|
-
orgCode: e.orgCode,
|
|
58868
|
+
let t = ZR({
|
|
58864
58869
|
sensorStatus: e.sensorStatus,
|
|
58865
58870
|
keywords: e.keywords,
|
|
58866
58871
|
dictSensorTypes: e.dictSensorTypes,
|
|
@@ -58870,26 +58875,25 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
58870
58875
|
});
|
|
58871
58876
|
this.safetyMonitorPointLoadState = "loading", this.safetyMonitorPointLoadError = "";
|
|
58872
58877
|
try {
|
|
58873
|
-
let n =
|
|
58878
|
+
let n = QR(await TM(zR, {
|
|
58874
58879
|
params: t,
|
|
58875
58880
|
timeout: e.timeout,
|
|
58876
58881
|
headers: e.headers
|
|
58877
|
-
}));
|
|
58882
|
+
}), "安全监测");
|
|
58878
58883
|
return this.safetyMonitorPointItems = n, this.safetyMonitorPointLoadState = "ready", n;
|
|
58879
58884
|
} catch (e) {
|
|
58880
58885
|
throw this.safetyMonitorPointItems = [], this.safetyMonitorPointLoadState = "error", this.safetyMonitorPointLoadError = e instanceof Error ? e.message : String(e), e;
|
|
58881
58886
|
}
|
|
58882
58887
|
},
|
|
58883
58888
|
async queryHydrologyMonitorDataList(e = {}) {
|
|
58884
|
-
let t = Number(e.page ?? HR), n = Number(e.size ?? UR), r =
|
|
58885
|
-
orgCode: e.orgCode,
|
|
58889
|
+
let t = Number(e.page ?? HR), n = Number(e.size ?? UR), r = ZR({
|
|
58886
58890
|
page: Number.isFinite(t) && t > 0 ? t : HR,
|
|
58887
58891
|
size: Number.isFinite(n) && n > 0 ? n : UR,
|
|
58888
58892
|
noPage: !1
|
|
58889
58893
|
});
|
|
58890
58894
|
this.hydrologyMonitorDataLoadState = "loading", this.hydrologyMonitorDataLoadError = "";
|
|
58891
58895
|
try {
|
|
58892
|
-
let { items: t, pageInfo: n } =
|
|
58896
|
+
let { items: t, pageInfo: n } = $R(await EM(VR, r, {
|
|
58893
58897
|
timeout: e.timeout,
|
|
58894
58898
|
headers: e.headers
|
|
58895
58899
|
}), "水文监测数据");
|
|
@@ -58908,23 +58912,24 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
58908
58912
|
}
|
|
58909
58913
|
},
|
|
58910
58914
|
async queryBundleTubeSensorList(e = {}) {
|
|
58911
|
-
let t = Number(e.pageNo ??
|
|
58915
|
+
let t = Number(e.pageNo ?? KR), n = Number(e.pageSize ?? qR), r = Number.isFinite(t) && t > 0 ? t : KR, i = Number.isFinite(n) && n > 0 ? n : qR, a = ZR({ orgCode: e.orgCode });
|
|
58912
58916
|
this.bundleTubeSensorLoadState = "loading", this.bundleTubeSensorLoadError = "";
|
|
58913
58917
|
try {
|
|
58914
|
-
let { items: t, pageInfo: n } =
|
|
58918
|
+
let { items: t, pageInfo: n } = $R(await TM(WR, {
|
|
58919
|
+
params: a,
|
|
58915
58920
|
timeout: e.timeout,
|
|
58916
58921
|
headers: e.headers
|
|
58917
58922
|
}), "束管监测数据", {
|
|
58918
58923
|
pageNo: r,
|
|
58919
58924
|
pageSize: i,
|
|
58920
58925
|
total: 0
|
|
58921
|
-
}),
|
|
58922
|
-
return this.bundleTubeSensorItems =
|
|
58926
|
+
}), o = (r - 1) * i, s = t.slice(o, o + i);
|
|
58927
|
+
return this.bundleTubeSensorItems = s, this.bundleTubeSensorPageInfo = {
|
|
58923
58928
|
...n,
|
|
58924
58929
|
pageNo: r,
|
|
58925
58930
|
pageSize: i,
|
|
58926
58931
|
total: n.total ?? n.length ?? n.count ?? t.length
|
|
58927
|
-
}, this.bundleTubeSensorLoadState = "ready",
|
|
58932
|
+
}, this.bundleTubeSensorLoadState = "ready", s;
|
|
58928
58933
|
} catch (e) {
|
|
58929
58934
|
throw this.bundleTubeSensorItems = [], this.bundleTubeSensorPageInfo = {
|
|
58930
58935
|
pageNo: r,
|
|
@@ -58933,10 +58938,24 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
58933
58938
|
}, this.bundleTubeSensorLoadState = "error", this.bundleTubeSensorLoadError = e instanceof Error ? e.message : String(e), e;
|
|
58934
58939
|
}
|
|
58935
58940
|
},
|
|
58941
|
+
async queryPersonPositionList(e = {}) {
|
|
58942
|
+
let t = ZR({});
|
|
58943
|
+
this.personPositionLoadState = "loading", this.personPositionLoadError = "";
|
|
58944
|
+
try {
|
|
58945
|
+
let n = QR(await TM(GR, {
|
|
58946
|
+
params: t,
|
|
58947
|
+
timeout: e.timeout,
|
|
58948
|
+
headers: e.headers
|
|
58949
|
+
}), "人员定位");
|
|
58950
|
+
return this.personPositionItems = n, this.personPositionLoadState = "ready", n;
|
|
58951
|
+
} catch (e) {
|
|
58952
|
+
throw this.personPositionItems = [], this.personPositionLoadState = "error", this.personPositionLoadError = e instanceof Error ? e.message : String(e), e;
|
|
58953
|
+
}
|
|
58954
|
+
},
|
|
58936
58955
|
async saveMonitorPointCoordinate(e = {}) {
|
|
58937
58956
|
let t = e.rawData && typeof e.rawData == "object" ? e.rawData : {}, n = t.mine_id, r = t.sensor_id, i = t.location;
|
|
58938
|
-
if (!
|
|
58939
|
-
if (!
|
|
58957
|
+
if (!XR(n) || !XR(r)) throw Error("布点保存失败:缺少 mine_id 或 sensor_id");
|
|
58958
|
+
if (!XR(i)) throw Error("布点保存失败:缺少测点 location");
|
|
58940
58959
|
if (!Number.isFinite(Number(e.position?.x)) || !Number.isFinite(Number(e.position?.y)) || !Number.isFinite(Number(e.position?.z))) throw Error("布点保存失败:坐标参数无效");
|
|
58941
58960
|
return EM(BR, {
|
|
58942
58961
|
id: `${n}${r}`,
|
|
@@ -58965,39 +58984,39 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
58965
58984
|
});
|
|
58966
58985
|
}
|
|
58967
58986
|
}
|
|
58968
|
-
}),
|
|
58987
|
+
}), tz = { class: "lr2d-viewer" }, nz = {
|
|
58969
58988
|
key: 0,
|
|
58970
58989
|
class: "lr2d-viewer__error"
|
|
58971
|
-
},
|
|
58990
|
+
}, rz = {
|
|
58972
58991
|
key: 1,
|
|
58973
58992
|
class: "lr2d-viewer__placeholder"
|
|
58974
|
-
},
|
|
58993
|
+
}, iz = {
|
|
58975
58994
|
class: "lr2d-toolbar",
|
|
58976
58995
|
"aria-label": "二维工具栏"
|
|
58977
|
-
},
|
|
58996
|
+
}, az = ["aria-pressed", "disabled"], oz = ["aria-pressed"], sz = ["aria-pressed"], cz = {
|
|
58978
58997
|
key: 3,
|
|
58979
58998
|
class: "lr2d-safety-panel",
|
|
58980
58999
|
"aria-label": "安全监测列表"
|
|
58981
|
-
},
|
|
59000
|
+
}, lz = { class: "lr2d-safety-panel__header" }, uz = { class: "lr2d-safety-panel__intro" }, dz = { class: "lr2d-safety-panel__heading" }, fz = { class: "lr2d-safety-panel__meta" }, pz = ["aria-expanded"], mz = { class: "lr2d-safety-panel__filter-select-text" }, hz = {
|
|
58982
59001
|
key: 0,
|
|
58983
59002
|
class: "lr2d-safety-panel__filter-dropdown",
|
|
58984
59003
|
role: "listbox",
|
|
58985
59004
|
"aria-labelledby": "lr2d-safety-monitor-type-filter"
|
|
58986
|
-
},
|
|
59005
|
+
}, gz = ["onClick"], _z = { class: "lr2d-safety-panel__list" }, vz = ["onClick"], yz = { style: {
|
|
58987
59006
|
display: "flex",
|
|
58988
59007
|
"justify-content": "space-between",
|
|
58989
59008
|
"align-items": "center"
|
|
58990
|
-
} },
|
|
59009
|
+
} }, bz = { class: "lr2d-safety-panel__item-header" }, xz = { class: "lr2d-safety-panel__item-heading" }, Sz = { class: "lr2d-safety-panel__item-title" }, Cz = { class: "lr2d-safety-panel__data" }, wz = { class: "lr2d-safety-panel__row" }, Tz = { class: "lr2d-safety-panel__type-icon" }, Ez = { class: "lr2d-safety-panel__type-text" }, Dz = { class: "lr2d-safety-panel__row" }, Oz = { class: "lr2d-safety-panel__row-value lr2d-safety-panel__row-value--accent" }, kz = [
|
|
58991
59010
|
"disabled",
|
|
58992
59011
|
"title",
|
|
58993
59012
|
"onClick"
|
|
58994
|
-
],
|
|
59013
|
+
], Az = {
|
|
58995
59014
|
key: 0,
|
|
58996
59015
|
class: "lr2d-safety-panel__hint"
|
|
58997
|
-
},
|
|
59016
|
+
}, jz = {
|
|
58998
59017
|
key: 1,
|
|
58999
59018
|
class: "lr2d-safety-panel__hint lr2d-safety-panel__hint--warning"
|
|
59000
|
-
},
|
|
59019
|
+
}, Mz = "人员定位", Nz = "束管监测点", Pz = /* @__PURE__ */ zM({
|
|
59001
59020
|
__name: "Lr2dViewer",
|
|
59002
59021
|
props: {
|
|
59003
59022
|
config: {
|
|
@@ -59013,15 +59032,15 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59013
59032
|
window.L = ur.default;
|
|
59014
59033
|
let n = Object.freeze({
|
|
59015
59034
|
安全监测: "lr3d-monitor-overlay__point--safe",
|
|
59016
|
-
[
|
|
59035
|
+
[Mz]: "lr3d-monitor-overlay__point--person",
|
|
59017
59036
|
水文检测: "lr3d-monitor-overlay__point--water",
|
|
59018
|
-
[
|
|
59037
|
+
[Nz]: "lr3d-monitor-overlay__point--pipe"
|
|
59019
59038
|
}), c = Object.freeze({
|
|
59020
59039
|
安全监测: {
|
|
59021
59040
|
component: IM,
|
|
59022
59041
|
background: "#f97316"
|
|
59023
59042
|
},
|
|
59024
|
-
[
|
|
59043
|
+
[Mz]: {
|
|
59025
59044
|
component: LM,
|
|
59026
59045
|
background: "#2563eb"
|
|
59027
59046
|
},
|
|
@@ -59029,7 +59048,7 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59029
59048
|
component: RM,
|
|
59030
59049
|
background: "#0891b2"
|
|
59031
59050
|
},
|
|
59032
|
-
[
|
|
59051
|
+
[Nz]: {
|
|
59033
59052
|
component: MM,
|
|
59034
59053
|
background: "#8b5cf6"
|
|
59035
59054
|
}
|
|
@@ -59108,7 +59127,7 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59108
59127
|
lat: 38.634870243543205,
|
|
59109
59128
|
lng: 109.87630273707734
|
|
59110
59129
|
});
|
|
59111
|
-
let p = e, h =
|
|
59130
|
+
let p = e, h = ez(kR());
|
|
59112
59131
|
h.initializeMarkerData();
|
|
59113
59132
|
let g = k(""), _ = r(() => tT(p.config).options), v = r(() => qw(p.config)), y = r(() => h.safetyMonitorPointItems), b = r(() => h.bundleTubeSensorItems), S = r(() => h.safetyMonitorPointLoadError), T = r(() => h.bundleTubeSensorLoadError), E = k(""), O = r(() => v.value.length ? `2D 地图配置不完整,缺少:${v.value.join("、")}` : ""), N = r(() => g.value || S.value || T.value || E.value || O.value), ee = r(() => h.monitorPointMarkers), te = r(() => h.accidentPointMarkers), ne = r(() => ee.value.filter((e) => e.type !== "安全监测")), re = k(!1), ie = r(() => re.value ? "显示全部标点" : "筛选事故范围内标点"), ae = k(!1), oe = k(""), R = k(!1), z = k(null), se = [
|
|
59114
59133
|
{
|
|
@@ -59134,7 +59153,7 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59134
59153
|
], ce = k({
|
|
59135
59154
|
id: "person-001",
|
|
59136
59155
|
name: "演示人员",
|
|
59137
|
-
type:
|
|
59156
|
+
type: Mz,
|
|
59138
59157
|
lat: se[0].lat,
|
|
59139
59158
|
lng: se[0].lng,
|
|
59140
59159
|
trackLatLngs: se,
|
|
@@ -59201,7 +59220,7 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59201
59220
|
id: r == null || String(r).trim() === "" ? `bundle-tube-${t + 1}` : `bundle-tube-${String(r).trim()}`,
|
|
59202
59221
|
name: i === "--" ? `束管监测点 ${t + 1}` : i,
|
|
59203
59222
|
tooltipText: i === "--" ? `束管监测点 ${t + 1}` : i,
|
|
59204
|
-
type:
|
|
59223
|
+
type: Nz,
|
|
59205
59224
|
lat: n.lat,
|
|
59206
59225
|
lng: n.lng,
|
|
59207
59226
|
dataEntries: [
|
|
@@ -59370,8 +59389,8 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59370
59389
|
});
|
|
59371
59390
|
}
|
|
59372
59391
|
function qe(e) {
|
|
59373
|
-
let t = L.latLng(e.lat, e.lng), r = e.type ===
|
|
59374
|
-
return r.setIcon(We(e.type)), e.type ===
|
|
59392
|
+
let t = L.latLng(e.lat, e.lng), r = e.type === Mz ? L.animatedMarker({ latLngs: e.trackLatLngs || [t] }) : L.marker(t);
|
|
59393
|
+
return r.setIcon(We(e.type)), e.type === Mz && (we.value = r, Ke(r)), r.bindTooltip(e.tooltipText || e.name, {
|
|
59375
59394
|
permanent: !0,
|
|
59376
59395
|
direction: "right",
|
|
59377
59396
|
className: "nice-tooltip dark"
|
|
@@ -59484,15 +59503,15 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59484
59503
|
document.addEventListener("pointerdown", Pe), document.addEventListener("keydown", Fe);
|
|
59485
59504
|
}), C(() => {
|
|
59486
59505
|
document.removeEventListener("pointerdown", Pe), document.removeEventListener("keydown", Fe), je(), Be(), Je(), tt(), cT();
|
|
59487
|
-
}), (e, n) => (D(), o("section",
|
|
59488
|
-
N.value ? (D(), o("div",
|
|
59489
|
-
O.value ? (D(), o("div",
|
|
59506
|
+
}), (e, n) => (D(), o("section", tz, [
|
|
59507
|
+
N.value ? (D(), o("div", nz, P(N.value), 1)) : a("", !0),
|
|
59508
|
+
O.value ? (D(), o("div", rz, [...n[1] ||= [s("p", null, "2D 地图配置待补全", -1), s("small", null, "请通过 `map2dConfig.options` 传入初始化 GIS 图纸所需参数。", -1)]])) : (D(), i(F(ww), {
|
|
59490
59509
|
key: 2,
|
|
59491
59510
|
class: "lr2d-viewer__map",
|
|
59492
59511
|
options: _.value,
|
|
59493
59512
|
onInitMap: rt
|
|
59494
59513
|
}, null, 8, ["options"])),
|
|
59495
|
-
s("nav",
|
|
59514
|
+
s("nav", iz, [
|
|
59496
59515
|
s("button", {
|
|
59497
59516
|
type: "button",
|
|
59498
59517
|
class: x(["lr2d-toolbar__button", { "lr2d-toolbar__button--active": Ce.value }]),
|
|
@@ -59503,7 +59522,7 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59503
59522
|
theme: "outline",
|
|
59504
59523
|
size: 14,
|
|
59505
59524
|
fill: "#f8fafc"
|
|
59506
|
-
}), s("span", null, P(F(xe)), 1)], 10,
|
|
59525
|
+
}), s("span", null, P(F(xe)), 1)], 10, az),
|
|
59507
59526
|
s("button", {
|
|
59508
59527
|
type: "button",
|
|
59509
59528
|
class: x(["lr2d-toolbar__button", { "lr2d-toolbar__button--active": re.value }]),
|
|
@@ -59513,7 +59532,7 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59513
59532
|
theme: "outline",
|
|
59514
59533
|
size: 14,
|
|
59515
59534
|
fill: "#f8fafc"
|
|
59516
|
-
}), s("span", null, P(ie.value), 1)], 10,
|
|
59535
|
+
}), s("span", null, P(ie.value), 1)], 10, oz),
|
|
59517
59536
|
s("button", {
|
|
59518
59537
|
type: "button",
|
|
59519
59538
|
class: x(["lr2d-toolbar__button", { "lr2d-toolbar__button--active": ae.value }]),
|
|
@@ -59523,10 +59542,10 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59523
59542
|
theme: "outline",
|
|
59524
59543
|
size: 14,
|
|
59525
59544
|
fill: "#f8fafc"
|
|
59526
|
-
}), n[2] ||= s("span", null, "安全监测", -1)], 10,
|
|
59545
|
+
}), n[2] ||= s("span", null, "安全监测", -1)], 10, sz)
|
|
59527
59546
|
]),
|
|
59528
|
-
ae.value && _e.value.length ? (D(), o("aside",
|
|
59529
|
-
s("div",
|
|
59547
|
+
ae.value && _e.value.length ? (D(), o("aside", cz, [
|
|
59548
|
+
s("div", lz, [s("div", uz, [s("div", dz, [n[3] ||= s("strong", { class: "lr2d-safety-panel__title" }, "安全监测", -1), s("span", fz, P(U.value.length) + " 条", 1)])])]),
|
|
59530
59549
|
s("div", {
|
|
59531
59550
|
ref_key: "safetyMonitorFilterRef",
|
|
59532
59551
|
ref: ke,
|
|
@@ -59538,10 +59557,10 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59538
59557
|
"aria-expanded": Ae.value ? "true" : "false",
|
|
59539
59558
|
"aria-haspopup": "listbox",
|
|
59540
59559
|
onClick: Me
|
|
59541
|
-
}, [s("span",
|
|
59560
|
+
}, [s("span", mz, P(ye.value), 1), s("span", {
|
|
59542
59561
|
class: x(["lr2d-safety-panel__filter-select-arrow", { "lr2d-safety-panel__filter-select-arrow--open": Ae.value }]),
|
|
59543
59562
|
"aria-hidden": "true"
|
|
59544
|
-
}, null, 2)], 10,
|
|
59563
|
+
}, null, 2)], 10, pz), Ae.value ? (D(), o("div", hz, [s("button", {
|
|
59545
59564
|
type: "button",
|
|
59546
59565
|
class: x(["lr2d-safety-panel__filter-option", { "lr2d-safety-panel__filter-option--active": !ve.value }]),
|
|
59547
59566
|
onClick: n[0] ||= (e) => Ne("")
|
|
@@ -59550,18 +59569,18 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59550
59569
|
type: "button",
|
|
59551
59570
|
class: x(["lr2d-safety-panel__filter-option", { "lr2d-safety-panel__filter-option--active": ve.value === e }]),
|
|
59552
59571
|
onClick: (t) => Ne(e)
|
|
59553
|
-
}, P(e), 11,
|
|
59554
|
-
s("div",
|
|
59572
|
+
}, P(e), 11, gz))), 128))])) : a("", !0)], 512),
|
|
59573
|
+
s("div", _z, [(D(!0), o(t, null, j(U.value, (e) => (D(), o("article", {
|
|
59555
59574
|
key: e.id,
|
|
59556
59575
|
class: "lr2d-safety-panel__item",
|
|
59557
59576
|
onClick: (t) => Qe(e)
|
|
59558
59577
|
}, [
|
|
59559
59578
|
n[5] ||= s("div", { class: "lr2d-safety-panel__item-glow" }, null, -1),
|
|
59560
|
-
s("div",
|
|
59579
|
+
s("div", yz, [s("div", null, [s("div", bz, [s("div", xz, [s("div", Sz, P(e.location), 1)])]), s("div", Cz, [s("div", wz, [s("div", { class: x(["lr2d-safety-panel__type-badge", e.sensorTypeClass]) }, [s("span", Tz, [(D(), i(M(e.sensorTypeIcon), {
|
|
59561
59580
|
theme: "outline",
|
|
59562
59581
|
size: 14,
|
|
59563
59582
|
fill: "currentColor"
|
|
59564
|
-
}))]), s("strong",
|
|
59583
|
+
}))]), s("strong", Ez, P(e.sensorTypeValue), 1)], 2)]), s("div", Dz, [n[4] ||= s("span", { class: "lr2d-safety-panel__row-label" }, "监测值:", -1), s("strong", Oz, P(e.val), 1)])])]), s("div", null, [s("button", {
|
|
59565
59584
|
type: "button",
|
|
59566
59585
|
class: x(["lr2d-safety-panel__pin-button", { "lr2d-safety-panel__pin-button--active": oe.value === e.id }]),
|
|
59567
59586
|
disabled: !e.canSetLocation || R.value,
|
|
@@ -59571,13 +59590,13 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59571
59590
|
theme: "outline",
|
|
59572
59591
|
size: 16,
|
|
59573
59592
|
fill: "currentColor"
|
|
59574
|
-
})], 10,
|
|
59575
|
-
oe.value === e.id ? (D(), o("p",
|
|
59576
|
-
], 8,
|
|
59593
|
+
})], 10, kz)])]),
|
|
59594
|
+
oe.value === e.id ? (D(), o("p", Az, " 请在地图上点击标点位置 ")) : e.canSetLocation ? a("", !0) : (D(), o("p", jz, " 缺少 mine_id 或 sensor_id,不允许标点 "))
|
|
59595
|
+
], 8, vz))), 128))])
|
|
59577
59596
|
])) : a("", !0)
|
|
59578
59597
|
]));
|
|
59579
59598
|
}
|
|
59580
|
-
}, [["__scopeId", "data-v-d0dfe0e8"]]),
|
|
59599
|
+
}, [["__scopeId", "data-v-d0dfe0e8"]]), Fz = {
|
|
59581
59600
|
regionAssist: "掘进辅助",
|
|
59582
59601
|
coalResvers: "储量块段",
|
|
59583
59602
|
boundary: "矿井边界",
|
|
@@ -59585,7 +59604,7 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59585
59604
|
pointSymbol: "点符号",
|
|
59586
59605
|
coal: "煤层",
|
|
59587
59606
|
geofault: "断层"
|
|
59588
|
-
},
|
|
59607
|
+
}, Iz = {
|
|
59589
59608
|
regionAssist: Rj,
|
|
59590
59609
|
coalResvers: zj,
|
|
59591
59610
|
boundary: Bj,
|
|
@@ -59594,22 +59613,22 @@ var $R = DR("lr-map-viewer-marker", {
|
|
|
59594
59613
|
coal: Uj,
|
|
59595
59614
|
geofault: Wj
|
|
59596
59615
|
};
|
|
59597
|
-
function
|
|
59616
|
+
function Lz(e) {
|
|
59598
59617
|
return e == null ? "" : String(e).trim().toLowerCase();
|
|
59599
59618
|
}
|
|
59600
|
-
function
|
|
59601
|
-
let t =
|
|
59619
|
+
function Rz(e) {
|
|
59620
|
+
let t = Lz(e?.layerName), n = Lz(e?.entityId), r = Lz(e?.featureId), i = Lz(e?.displayName);
|
|
59602
59621
|
return t && r ? `layer-feature::${t}::${r}` : t && i ? `layer-name::${t}::${i}` : t && n ? `layer-entity::${t}::${n}` : "";
|
|
59603
59622
|
}
|
|
59604
|
-
function
|
|
59605
|
-
let t =
|
|
59623
|
+
function zz(e) {
|
|
59624
|
+
let t = Lz(e?.layerName), n = Lz(e?.entityId), r = Lz(e?.featureId), i = Lz(e?.displayName);
|
|
59606
59625
|
return t && r ? `lane-feature::${t}::${r}` : t && i ? `lane-name::${t}::${i}` : t && n ? `lane-entity::${t}::${n}` : "";
|
|
59607
59626
|
}
|
|
59608
|
-
function
|
|
59627
|
+
function Bz(e) {
|
|
59609
59628
|
if (!Array.isArray(e) || e.length === 0) return [];
|
|
59610
59629
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
59611
59630
|
return e.forEach((e) => {
|
|
59612
|
-
let r =
|
|
59631
|
+
let r = Rz(e);
|
|
59613
59632
|
if (!r) {
|
|
59614
59633
|
t.push(e);
|
|
59615
59634
|
return;
|
|
@@ -59617,11 +59636,11 @@ function zz(e) {
|
|
|
59617
59636
|
n.has(r) || (n.add(r), t.push(e));
|
|
59618
59637
|
}), t;
|
|
59619
59638
|
}
|
|
59620
|
-
function
|
|
59639
|
+
function Vz(e) {
|
|
59621
59640
|
if (!Array.isArray(e) || e.length === 0) return [];
|
|
59622
59641
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
59623
59642
|
return e.forEach((e) => {
|
|
59624
|
-
let r =
|
|
59643
|
+
let r = zz(e);
|
|
59625
59644
|
if (!r) {
|
|
59626
59645
|
t.push(e);
|
|
59627
59646
|
return;
|
|
@@ -59629,432 +59648,52 @@ function Bz(e) {
|
|
|
59629
59648
|
n.has(r) || (n.add(r), t.push(e));
|
|
59630
59649
|
}), t;
|
|
59631
59650
|
}
|
|
59632
|
-
function
|
|
59651
|
+
function Hz(e) {
|
|
59633
59652
|
return e?.data?.featureGroups?.length ?? 0;
|
|
59634
59653
|
}
|
|
59635
|
-
function
|
|
59654
|
+
function Uz(e) {
|
|
59636
59655
|
if (e.loadMode === "workfaceOnly") {
|
|
59637
59656
|
let t = e.regions?.featureGroupCount ?? 0, n = e.regions?.featureCount ?? 0, r = e.workface?.featureGroupCount ?? 0, i = e.workface?.featureCount ?? 0, a = e.workface?.featureTypes?.join(", ") ?? "", o = e.workface?.renderReady === !0 ? "是" : "否", s = e.lane?.enabled === !0, c = e.lane?.featureGroupCount ?? 0, l = e.lane?.featureCount ?? 0, u = e.lane?.renderReady === !0 ? "是" : "否", d = s ? `巷道 图层组 ${c},要素 ${l},渲染就绪 ${u}` : "巷道 未启用";
|
|
59638
59657
|
return `区域要素 图层组 ${t},要素 ${n};工作面 图层组 ${r},要素 ${i},要素编码 ${a || "未配置"},渲染就绪 ${o};${d}`;
|
|
59639
59658
|
}
|
|
59640
|
-
let t =
|
|
59659
|
+
let t = Hz(e.layers?.laneData), n = Hz(e.layers?.regionAssistData), r = Hz(e.layers?.regionData), i = Hz(e.layers?.coalResversData), a = Hz(e.layers?.boundaryData), o = Hz(e.layers?.geologyData), s = Hz(e.layers?.pointSymbolData), c = Array.isArray(e.layers?.coalData) ? e.layers.coalData.length : 0, l = Array.isArray(e.layers?.geofaultData) ? e.layers.geofaultData.length : 0;
|
|
59641
59660
|
return `云GIS全量加载完成:巷道组 ${t},工作面辅助组 ${n},区域组 ${r},煤量组 ${i},边界组 ${a},地质体组 ${o},点符号组 ${s},煤层 ${c}(配置煤层 ${Array.isArray(e.coalLayers) ? e.coalLayers.length : 0}),断层 ${l}(配置断层 ${Array.isArray(e.geofaultLayers) ? e.geofaultLayers.length : 0})`;
|
|
59642
59661
|
}
|
|
59643
|
-
function
|
|
59644
|
-
let n =
|
|
59662
|
+
function Wz(e, t) {
|
|
59663
|
+
let n = Fz[e] ?? e;
|
|
59645
59664
|
if (e === "coal" || e === "geofault") {
|
|
59646
59665
|
let e = t?.configuredLayerCount ?? 0, r = t?.loadedLayerCount ?? 0;
|
|
59647
59666
|
return e === 0 ? `${n}未加载:未配置图层名` : `${n}加载完成:已加载图层 ${r}/${e}`;
|
|
59648
59667
|
}
|
|
59649
59668
|
return `${n}加载完成:图层组 ${t?.featureGroupCount ?? 0},要素 ${t?.featureCount ?? 0},加载成功 ${t?.loadSuccess === !0 ? "是" : "否"}`;
|
|
59650
59669
|
}
|
|
59651
|
-
async function
|
|
59670
|
+
async function Gz(e = {}) {
|
|
59652
59671
|
let t = await Lj(e);
|
|
59653
59672
|
return {
|
|
59654
59673
|
result: t,
|
|
59655
|
-
regionItems:
|
|
59656
|
-
laneItems:
|
|
59657
|
-
summary:
|
|
59674
|
+
regionItems: Bz(t?.regions?.items ?? []),
|
|
59675
|
+
laneItems: Vz(t?.lane?.items ?? []),
|
|
59676
|
+
summary: Uz(t)
|
|
59658
59677
|
};
|
|
59659
59678
|
}
|
|
59660
|
-
async function
|
|
59661
|
-
let n =
|
|
59679
|
+
async function Kz(e, t = {}) {
|
|
59680
|
+
let n = Iz[e];
|
|
59662
59681
|
if (!n) throw Error(`未找到手动加载类型: ${e}`);
|
|
59663
59682
|
let r = await n(t);
|
|
59664
59683
|
return {
|
|
59665
59684
|
result: r,
|
|
59666
59685
|
loaded: r?.loadSuccess === !0,
|
|
59667
|
-
summary:
|
|
59686
|
+
summary: Wz(e, r)
|
|
59668
59687
|
};
|
|
59669
59688
|
}
|
|
59670
59689
|
//#endregion
|
|
59671
59690
|
//#region src/services/monitor-point.js
|
|
59672
|
-
var
|
|
59691
|
+
var qz = Object.freeze([
|
|
59673
59692
|
"安全监测",
|
|
59674
59693
|
"人员定位",
|
|
59675
59694
|
"水文检测",
|
|
59676
59695
|
"束管监测点"
|
|
59677
|
-
]),
|
|
59678
|
-
name: "张伟",
|
|
59679
|
-
duty: "技术员",
|
|
59680
|
-
pointsHistory: [
|
|
59681
|
-
{
|
|
59682
|
-
point: {
|
|
59683
|
-
x: 37400425.73866891,
|
|
59684
|
-
y: 4278789.448063761,
|
|
59685
|
-
z: 1311.15
|
|
59686
|
-
},
|
|
59687
|
-
time: "2026-04-16T02:56:56.843Z"
|
|
59688
|
-
},
|
|
59689
|
-
{
|
|
59690
|
-
point: {
|
|
59691
|
-
x: 37400518.610393725,
|
|
59692
|
-
y: 4278691.567394003,
|
|
59693
|
-
z: 1298.214
|
|
59694
|
-
},
|
|
59695
|
-
time: "2026-04-16T02:57:56.843Z"
|
|
59696
|
-
},
|
|
59697
|
-
{
|
|
59698
|
-
point: {
|
|
59699
|
-
x: 37400587.49692968,
|
|
59700
|
-
y: 4278619.090459515,
|
|
59701
|
-
z: 1288.411
|
|
59702
|
-
},
|
|
59703
|
-
time: "2026-04-16T02:58:56.843Z"
|
|
59704
|
-
},
|
|
59705
|
-
{
|
|
59706
|
-
point: {
|
|
59707
|
-
x: 37400666.61619371,
|
|
59708
|
-
y: 4278535.387528169,
|
|
59709
|
-
z: 1277.907
|
|
59710
|
-
},
|
|
59711
|
-
time: "2026-04-16T02:59:56.843Z"
|
|
59712
|
-
},
|
|
59713
|
-
{
|
|
59714
|
-
point: {
|
|
59715
|
-
x: 37400714.90523973,
|
|
59716
|
-
y: 4278484.49526935,
|
|
59717
|
-
z: 1270.872
|
|
59718
|
-
},
|
|
59719
|
-
time: "2026-04-16T03:00:56.843Z"
|
|
59720
|
-
},
|
|
59721
|
-
{
|
|
59722
|
-
point: {
|
|
59723
|
-
x: 37400770.862201795,
|
|
59724
|
-
y: 4278425.521725025,
|
|
59725
|
-
z: 1262.719
|
|
59726
|
-
},
|
|
59727
|
-
time: "2026-04-16T03:01:56.843Z"
|
|
59728
|
-
},
|
|
59729
|
-
{
|
|
59730
|
-
point: {
|
|
59731
|
-
x: 37400873.29785952,
|
|
59732
|
-
y: 4278317.563866364,
|
|
59733
|
-
z: 1248.492
|
|
59734
|
-
},
|
|
59735
|
-
time: "2026-04-16T03:02:56.843Z"
|
|
59736
|
-
},
|
|
59737
|
-
{
|
|
59738
|
-
point: {
|
|
59739
|
-
x: 37400958.011236414,
|
|
59740
|
-
y: 4278228.442893051,
|
|
59741
|
-
z: 1236.749
|
|
59742
|
-
},
|
|
59743
|
-
time: "2026-04-16T03:03:56.843Z"
|
|
59744
|
-
},
|
|
59745
|
-
{
|
|
59746
|
-
point: {
|
|
59747
|
-
x: 37401011.710164174,
|
|
59748
|
-
y: 4278171.530682152,
|
|
59749
|
-
z: 1233.536
|
|
59750
|
-
},
|
|
59751
|
-
time: "2026-04-16T03:04:56.843Z"
|
|
59752
|
-
},
|
|
59753
|
-
{
|
|
59754
|
-
point: {
|
|
59755
|
-
x: 37401235.895949855,
|
|
59756
|
-
y: 4277935.418485963,
|
|
59757
|
-
z: 1202.155
|
|
59758
|
-
},
|
|
59759
|
-
time: "2026-04-16T03:05:56.843Z"
|
|
59760
|
-
},
|
|
59761
|
-
{
|
|
59762
|
-
point: {
|
|
59763
|
-
x: 37401325.59185666,
|
|
59764
|
-
y: 4277841.205594273,
|
|
59765
|
-
z: 1189.648
|
|
59766
|
-
},
|
|
59767
|
-
time: "2026-04-16T03:06:56.843Z"
|
|
59768
|
-
},
|
|
59769
|
-
{
|
|
59770
|
-
point: {
|
|
59771
|
-
x: 37401444.02925616,
|
|
59772
|
-
y: 4277716.268897887,
|
|
59773
|
-
z: 1173.366
|
|
59774
|
-
},
|
|
59775
|
-
time: "2026-04-16T03:07:56.843Z"
|
|
59776
|
-
},
|
|
59777
|
-
{
|
|
59778
|
-
point: {
|
|
59779
|
-
x: 37401539.686097085,
|
|
59780
|
-
y: 4277615.376058109,
|
|
59781
|
-
z: 1160.117
|
|
59782
|
-
},
|
|
59783
|
-
time: "2026-04-16T03:08:56.843Z"
|
|
59784
|
-
},
|
|
59785
|
-
{
|
|
59786
|
-
point: {
|
|
59787
|
-
x: 37401550.712338835,
|
|
59788
|
-
y: 4277586.574384939,
|
|
59789
|
-
z: 1159.536
|
|
59790
|
-
},
|
|
59791
|
-
time: "2026-04-16T03:09:56.843Z"
|
|
59792
|
-
},
|
|
59793
|
-
{
|
|
59794
|
-
point: {
|
|
59795
|
-
x: 37401539.34377219,
|
|
59796
|
-
y: 4277560.912078902,
|
|
59797
|
-
z: 1159.5
|
|
59798
|
-
},
|
|
59799
|
-
time: "2026-04-16T03:10:56.843Z"
|
|
59800
|
-
},
|
|
59801
|
-
{
|
|
59802
|
-
point: {
|
|
59803
|
-
x: 37401517.374395974,
|
|
59804
|
-
y: 4277541.565319039,
|
|
59805
|
-
z: 1159.241
|
|
59806
|
-
},
|
|
59807
|
-
time: "2026-04-16T03:11:56.843Z"
|
|
59808
|
-
},
|
|
59809
|
-
{
|
|
59810
|
-
point: {
|
|
59811
|
-
x: 37401488.37258877,
|
|
59812
|
-
y: 4277535.27240621,
|
|
59813
|
-
z: 1158.974
|
|
59814
|
-
},
|
|
59815
|
-
time: "2026-04-16T03:12:56.843Z"
|
|
59816
|
-
},
|
|
59817
|
-
{
|
|
59818
|
-
point: {
|
|
59819
|
-
x: 37401466.02836067,
|
|
59820
|
-
y: 4277547.83538193,
|
|
59821
|
-
z: 1159.388
|
|
59822
|
-
},
|
|
59823
|
-
time: "2026-04-16T03:13:56.843Z"
|
|
59824
|
-
},
|
|
59825
|
-
{
|
|
59826
|
-
point: {
|
|
59827
|
-
x: 37401394.119607836,
|
|
59828
|
-
y: 4277623.746944558,
|
|
59829
|
-
z: 1149.232
|
|
59830
|
-
},
|
|
59831
|
-
time: "2026-04-16T03:14:56.843Z"
|
|
59832
|
-
},
|
|
59833
|
-
{
|
|
59834
|
-
point: {
|
|
59835
|
-
x: 37401273.762199305,
|
|
59836
|
-
y: 4277750.784843462,
|
|
59837
|
-
z: 1132.308
|
|
59838
|
-
},
|
|
59839
|
-
time: "2026-04-16T03:15:56.843Z"
|
|
59840
|
-
},
|
|
59841
|
-
{
|
|
59842
|
-
point: {
|
|
59843
|
-
x: 37401163.72536735,
|
|
59844
|
-
y: 4277865.957574887,
|
|
59845
|
-
z: 1117.193
|
|
59846
|
-
},
|
|
59847
|
-
time: "2026-04-16T03:16:56.843Z"
|
|
59848
|
-
},
|
|
59849
|
-
{
|
|
59850
|
-
point: {
|
|
59851
|
-
x: 37401132.40014015,
|
|
59852
|
-
y: 4277899.100580927,
|
|
59853
|
-
z: 1112.863
|
|
59854
|
-
},
|
|
59855
|
-
time: "2026-04-16T03:17:56.843Z"
|
|
59856
|
-
},
|
|
59857
|
-
{
|
|
59858
|
-
point: {
|
|
59859
|
-
x: 37401047.79971248,
|
|
59860
|
-
y: 4277988.610306338,
|
|
59861
|
-
z: 1101.168
|
|
59862
|
-
},
|
|
59863
|
-
time: "2026-04-16T03:18:56.843Z"
|
|
59864
|
-
},
|
|
59865
|
-
{
|
|
59866
|
-
point: {
|
|
59867
|
-
x: 37400926.11281652,
|
|
59868
|
-
y: 4278116.2203593245,
|
|
59869
|
-
z: 1083.525
|
|
59870
|
-
},
|
|
59871
|
-
time: "2026-04-16T03:19:56.843Z"
|
|
59872
|
-
},
|
|
59873
|
-
{
|
|
59874
|
-
point: {
|
|
59875
|
-
x: 37400831.96364398,
|
|
59876
|
-
y: 4278215.701263756,
|
|
59877
|
-
z: 1070.951
|
|
59878
|
-
},
|
|
59879
|
-
time: "2026-04-16T03:20:56.843Z"
|
|
59880
|
-
},
|
|
59881
|
-
{
|
|
59882
|
-
point: {
|
|
59883
|
-
x: 37400823.866960324,
|
|
59884
|
-
y: 4278235.839671416,
|
|
59885
|
-
z: 1070.908
|
|
59886
|
-
},
|
|
59887
|
-
time: "2026-04-16T03:21:56.843Z"
|
|
59888
|
-
},
|
|
59889
|
-
{
|
|
59890
|
-
point: {
|
|
59891
|
-
x: 37400829.44054724,
|
|
59892
|
-
y: 4278262.126965389,
|
|
59893
|
-
z: 1070.63
|
|
59894
|
-
},
|
|
59895
|
-
time: "2026-04-16T03:22:56.843Z"
|
|
59896
|
-
},
|
|
59897
|
-
{
|
|
59898
|
-
point: {
|
|
59899
|
-
x: 37400856.32093143,
|
|
59900
|
-
y: 4278288.010055302,
|
|
59901
|
-
z: 1070.311
|
|
59902
|
-
},
|
|
59903
|
-
time: "2026-04-16T03:23:56.843Z"
|
|
59904
|
-
},
|
|
59905
|
-
{
|
|
59906
|
-
point: {
|
|
59907
|
-
x: 37400882.72350717,
|
|
59908
|
-
y: 4278295.362165164,
|
|
59909
|
-
z: 1070.557
|
|
59910
|
-
},
|
|
59911
|
-
time: "2026-04-16T03:24:56.843Z"
|
|
59912
|
-
},
|
|
59913
|
-
{
|
|
59914
|
-
point: {
|
|
59915
|
-
x: 37400901.21149395,
|
|
59916
|
-
y: 4278288.304651204,
|
|
59917
|
-
z: 1070.557
|
|
59918
|
-
},
|
|
59919
|
-
time: "2026-04-16T03:25:56.843Z"
|
|
59920
|
-
},
|
|
59921
|
-
{
|
|
59922
|
-
point: {
|
|
59923
|
-
x: 37401079.06265393,
|
|
59924
|
-
y: 4278101.1911788285,
|
|
59925
|
-
z: 1048.3
|
|
59926
|
-
},
|
|
59927
|
-
time: "2026-04-16T03:26:56.843Z"
|
|
59928
|
-
},
|
|
59929
|
-
{
|
|
59930
|
-
point: {
|
|
59931
|
-
x: 37401175.92440543,
|
|
59932
|
-
y: 4277998.833265495,
|
|
59933
|
-
z: 1034.764
|
|
59934
|
-
},
|
|
59935
|
-
time: "2026-04-16T03:27:56.843Z"
|
|
59936
|
-
},
|
|
59937
|
-
{
|
|
59938
|
-
point: {
|
|
59939
|
-
x: 37401272.65818357,
|
|
59940
|
-
y: 4277896.911359958,
|
|
59941
|
-
z: 1021.37
|
|
59942
|
-
},
|
|
59943
|
-
time: "2026-04-16T03:28:56.843Z"
|
|
59944
|
-
},
|
|
59945
|
-
{
|
|
59946
|
-
point: {
|
|
59947
|
-
x: 37401386.01588373,
|
|
59948
|
-
y: 4277777.33143957,
|
|
59949
|
-
z: 1007.918
|
|
59950
|
-
},
|
|
59951
|
-
time: "2026-04-16T03:29:56.843Z"
|
|
59952
|
-
},
|
|
59953
|
-
{
|
|
59954
|
-
point: {
|
|
59955
|
-
x: 37401479.946832076,
|
|
59956
|
-
y: 4277678.197705142,
|
|
59957
|
-
z: 994.528
|
|
59958
|
-
},
|
|
59959
|
-
time: "2026-04-16T03:30:56.843Z"
|
|
59960
|
-
},
|
|
59961
|
-
{
|
|
59962
|
-
point: {
|
|
59963
|
-
x: 37401709.999796,
|
|
59964
|
-
y: 4277436.146068,
|
|
59965
|
-
z: 963.26
|
|
59966
|
-
},
|
|
59967
|
-
time: "2026-04-16T03:31:56.843Z"
|
|
59968
|
-
}
|
|
59969
|
-
]
|
|
59970
|
-
}], Jz = [{
|
|
59971
|
-
name: "张伟",
|
|
59972
|
-
duty: "技术员",
|
|
59973
|
-
pointsHistory: [
|
|
59974
|
-
{
|
|
59975
|
-
point: {
|
|
59976
|
-
x: 36583926.718191,
|
|
59977
|
-
y: 3909952.487685,
|
|
59978
|
-
z: 892.629
|
|
59979
|
-
},
|
|
59980
|
-
time: "2026-04-16T02:56:56.843Z"
|
|
59981
|
-
},
|
|
59982
|
-
{
|
|
59983
|
-
point: {
|
|
59984
|
-
x: 36583933.468365,
|
|
59985
|
-
y: 3909970.072556,
|
|
59986
|
-
z: 892.835
|
|
59987
|
-
},
|
|
59988
|
-
time: "2026-04-16T02:57:56.843Z"
|
|
59989
|
-
},
|
|
59990
|
-
{
|
|
59991
|
-
point: {
|
|
59992
|
-
x: 36583920.139696,
|
|
59993
|
-
y: 3909975.141494,
|
|
59994
|
-
z: 892.933
|
|
59995
|
-
},
|
|
59996
|
-
time: "2026-04-16T02:58:56.843Z"
|
|
59997
|
-
},
|
|
59998
|
-
{
|
|
59999
|
-
point: {
|
|
60000
|
-
x: 36583829.053664,
|
|
60001
|
-
y: 3910009.781817,
|
|
60002
|
-
z: 893.6
|
|
60003
|
-
},
|
|
60004
|
-
time: "2026-04-16T02:59:56.843Z"
|
|
60005
|
-
},
|
|
60006
|
-
{
|
|
60007
|
-
point: {
|
|
60008
|
-
x: 36583637.998012,
|
|
60009
|
-
y: 3910082.440922,
|
|
60010
|
-
z: 895
|
|
60011
|
-
},
|
|
60012
|
-
time: "2026-04-16T03:00:56.843Z"
|
|
60013
|
-
},
|
|
60014
|
-
{
|
|
60015
|
-
point: {
|
|
60016
|
-
x: 36583576.384393,
|
|
60017
|
-
y: 3910054.625493,
|
|
60018
|
-
z: 897.7
|
|
60019
|
-
},
|
|
60020
|
-
time: "2026-04-16T03:01:56.843Z"
|
|
60021
|
-
},
|
|
60022
|
-
{
|
|
60023
|
-
point: {
|
|
60024
|
-
x: 36583354.211012,
|
|
60025
|
-
y: 3910139.198773,
|
|
60026
|
-
z: 897.7
|
|
60027
|
-
},
|
|
60028
|
-
time: "2026-04-16T03:02:56.843Z"
|
|
60029
|
-
},
|
|
60030
|
-
{
|
|
60031
|
-
point: {
|
|
60032
|
-
x: 36583129.210464,
|
|
60033
|
-
y: 3910347.619566,
|
|
60034
|
-
z: 898.7
|
|
60035
|
-
},
|
|
60036
|
-
time: "2026-04-16T03:03:56.843Z"
|
|
60037
|
-
},
|
|
60038
|
-
{
|
|
60039
|
-
point: {
|
|
60040
|
-
x: 36582872.24075,
|
|
60041
|
-
y: 3910588.510845,
|
|
60042
|
-
z: 899.4
|
|
60043
|
-
},
|
|
60044
|
-
time: "2026-04-16T03:04:56.843Z"
|
|
60045
|
-
}
|
|
60046
|
-
]
|
|
60047
|
-
}], Yz = Object.freeze({
|
|
60048
|
-
[Gj.CAOJIATAN]: qz,
|
|
60049
|
-
[Gj.YUHUA]: Jz,
|
|
60050
|
-
[Gj.CHENJIASHAN]: qz
|
|
60051
|
-
});
|
|
60052
|
-
function Xz(e) {
|
|
60053
|
-
return Yz[typeof e == "string" ? e.trim() : ""] ?? [];
|
|
60054
|
-
}
|
|
60055
|
-
//#endregion
|
|
60056
|
-
//#region src/mock/viewPoint.js
|
|
60057
|
-
var Zz = [
|
|
59696
|
+
]), Jz = [
|
|
60058
59697
|
{
|
|
60059
59698
|
name: "井口",
|
|
60060
59699
|
cameraPos: {
|
|
@@ -60107,7 +59746,7 @@ var Zz = [
|
|
|
60107
59746
|
z: -694.2258090444168
|
|
60108
59747
|
}
|
|
60109
59748
|
}
|
|
60110
|
-
],
|
|
59749
|
+
], Yz = [
|
|
60111
59750
|
{
|
|
60112
59751
|
name: "井口",
|
|
60113
59752
|
cameraPos: {
|
|
@@ -60160,7 +59799,7 @@ var Zz = [
|
|
|
60160
59799
|
z: -519.2147891208447
|
|
60161
59800
|
}
|
|
60162
59801
|
}
|
|
60163
|
-
],
|
|
59802
|
+
], Xz = [
|
|
60164
59803
|
{
|
|
60165
59804
|
name: "井口",
|
|
60166
59805
|
cameraPos: {
|
|
@@ -60213,130 +59852,136 @@ var Zz = [
|
|
|
60213
59852
|
z: -610.9583688152068
|
|
60214
59853
|
}
|
|
60215
59854
|
}
|
|
60216
|
-
],
|
|
60217
|
-
[Gj.CAOJIATAN]:
|
|
60218
|
-
[Gj.YUHUA]:
|
|
60219
|
-
[Gj.CHENJIASHAN]:
|
|
59855
|
+
], Zz = Object.freeze({
|
|
59856
|
+
[Gj.CAOJIATAN]: Jz,
|
|
59857
|
+
[Gj.YUHUA]: Yz,
|
|
59858
|
+
[Gj.CHENJIASHAN]: Xz
|
|
60220
59859
|
});
|
|
60221
|
-
function
|
|
60222
|
-
return
|
|
59860
|
+
function Qz(e) {
|
|
59861
|
+
return Zz[typeof e == "string" ? e.trim() : ""] ?? [];
|
|
60223
59862
|
}
|
|
60224
59863
|
//#endregion
|
|
60225
59864
|
//#region src/components/Lr3dViewer.vue
|
|
60226
|
-
var
|
|
59865
|
+
var $z = { class: "lr3d-viewer" }, eB = { class: "lr3d-viewer__canvas" }, tB = ["id"], nB = { class: "lr3d-placement-tip__content" }, rB = { key: 0 }, iB = {
|
|
60227
59866
|
key: 1,
|
|
60228
59867
|
class: "lr3d-monitor-overlay"
|
|
60229
|
-
},
|
|
59868
|
+
}, aB = ["onClick"], oB = ["aria-label"], sB = {
|
|
60230
59869
|
key: 0,
|
|
60231
59870
|
class: "lr3d-monitor-overlay__icon",
|
|
60232
59871
|
viewBox: "0 0 24 24",
|
|
60233
59872
|
"aria-hidden": "true"
|
|
60234
|
-
},
|
|
59873
|
+
}, cB = {
|
|
60235
59874
|
key: 1,
|
|
60236
59875
|
class: "lr3d-monitor-overlay__icon",
|
|
60237
59876
|
viewBox: "0 0 24 24",
|
|
60238
59877
|
"aria-hidden": "true"
|
|
60239
|
-
},
|
|
59878
|
+
}, lB = {
|
|
60240
59879
|
key: 2,
|
|
60241
59880
|
class: "lr3d-monitor-overlay__icon",
|
|
60242
59881
|
viewBox: "0 0 24 24",
|
|
60243
59882
|
"aria-hidden": "true"
|
|
60244
|
-
},
|
|
59883
|
+
}, uB = {
|
|
60245
59884
|
key: 3,
|
|
60246
59885
|
class: "lr3d-monitor-overlay__icon",
|
|
60247
59886
|
viewBox: "0 0 24 24",
|
|
60248
59887
|
"aria-hidden": "true"
|
|
60249
|
-
},
|
|
59888
|
+
}, dB = {
|
|
60250
59889
|
key: 4,
|
|
60251
59890
|
class: "lr3d-monitor-overlay__icon",
|
|
60252
59891
|
viewBox: "0 0 24 24",
|
|
60253
59892
|
"aria-hidden": "true"
|
|
60254
|
-
},
|
|
59893
|
+
}, fB = {
|
|
60255
59894
|
key: 2,
|
|
60256
59895
|
class: "lr3d-panel-rail"
|
|
60257
|
-
},
|
|
59896
|
+
}, pB = {
|
|
60258
59897
|
class: "lr3d-toolbar",
|
|
60259
59898
|
"aria-label": "三维工具栏"
|
|
60260
|
-
},
|
|
59899
|
+
}, mB = ["aria-pressed"], hB = ["aria-pressed"], gB = ["aria-pressed"], _B = ["aria-pressed"], vB = ["aria-pressed"], yB = ["aria-pressed"], bB = {
|
|
60261
59900
|
key: 0,
|
|
60262
59901
|
class: "lr3d-range-panel"
|
|
60263
|
-
},
|
|
59902
|
+
}, xB = { class: "lr3d-range-panel__header" }, SB = { class: "lr3d-range-panel__meta" }, CB = { class: "lr3d-range-panel__status" }, wB = { class: "lr3d-range-panel__position" }, TB = { class: "lr3d-range-panel__slider" }, EB = { class: "lr3d-range-panel__slider-header" }, DB = { class: "lr3d-range-panel__slider-value" }, OB = { class: "lr3d-range-panel__actions" }, kB = ["disabled"], AB = { class: "lr3d-range-panel__info" }, jB = { class: "lr3d-range-panel__section" }, MB = { class: "lr3d-range-panel__section-header" }, NB = {
|
|
60264
59903
|
key: 0,
|
|
60265
59904
|
class: "lr3d-range-panel__section-meta"
|
|
60266
|
-
},
|
|
59905
|
+
}, PB = { class: "lr3d-range-panel__lane" }, FB = { class: "lr3d-range-panel__lane-meta" }, IB = { class: "lr3d-range-panel__section" }, LB = { class: "lr3d-range-panel__section-header" }, RB = { class: "lr3d-range-panel__section-meta" }, zB = { class: "lr3d-range-panel__monitor-summary" }, BB = {
|
|
60267
59906
|
key: 0,
|
|
60268
59907
|
class: "lr3d-range-panel__monitor-list"
|
|
60269
|
-
},
|
|
59908
|
+
}, VB = ["onClick"], HB = { class: "lr3d-range-panel__monitor-row" }, UB = { class: "lr3d-range-panel__monitor-name" }, WB = {
|
|
59909
|
+
key: 0,
|
|
59910
|
+
class: "lr3d-range-panel__monitor-type"
|
|
59911
|
+
}, GB = { class: "lr3d-range-panel__monitor-position" }, KB = {
|
|
60270
59912
|
key: 1,
|
|
60271
59913
|
class: "lr3d-range-panel__monitor-empty"
|
|
60272
|
-
},
|
|
59914
|
+
}, qB = {
|
|
60273
59915
|
key: 1,
|
|
60274
59916
|
class: "lr3d-water-panel lr3d-water-panel--wide"
|
|
60275
|
-
},
|
|
59917
|
+
}, JB = {
|
|
60276
59918
|
key: 2,
|
|
60277
59919
|
class: "lr3d-water-panel lr3d-water-panel--exit-path"
|
|
60278
|
-
},
|
|
59920
|
+
}, YB = { class: "lr3d-water-panel__actions lr3d-water-panel__actions--exit-path" }, XB = ["disabled"], ZB = {
|
|
60279
59921
|
key: 3,
|
|
60280
59922
|
class: "lr3d-viewpoint-panel"
|
|
60281
|
-
},
|
|
59923
|
+
}, QB = { class: "lr3d-viewpoint-panel__header" }, $B = { class: "lr3d-viewpoint-panel__meta" }, eV = { class: "lr3d-viewpoint-panel__list" }, tV = ["onClick"], nV = { class: "lr3d-viewpoint-panel__status" }, rV = {
|
|
60282
59924
|
key: 3,
|
|
60283
59925
|
class: "lr3d-left-rail"
|
|
60284
|
-
},
|
|
59926
|
+
}, iV = { class: "lr3d-workface-panel__header" }, aV = {
|
|
60285
59927
|
key: 0,
|
|
60286
59928
|
class: "lr3d-workface-panel__body"
|
|
60287
|
-
},
|
|
59929
|
+
}, oV = { class: "lr3d-workface-panel__meta" }, sV = { class: "lr3d-workface-panel__actions" }, cV = { class: "lr3d-workface-panel__status" }, lV = {
|
|
60288
59930
|
key: 0,
|
|
60289
59931
|
class: "lr3d-workface-panel__empty"
|
|
60290
|
-
},
|
|
59932
|
+
}, uV = {
|
|
60291
59933
|
key: 1,
|
|
60292
59934
|
class: "lr3d-workface-panel__groups"
|
|
60293
|
-
},
|
|
59935
|
+
}, dV = { class: "lr3d-workface-panel__group-title" }, fV = { class: "lr3d-workface-panel__list" }, pV = { class: "lr3d-workface-panel__label" }, mV = ["checked", "onChange"], hV = {
|
|
60294
59936
|
key: 0,
|
|
60295
59937
|
class: "lr3d-workface-panel__group"
|
|
60296
|
-
},
|
|
59938
|
+
}, gV = { class: "lr3d-workface-panel__group-title" }, _V = { class: "lr3d-workface-panel__list" }, vV = { class: "lr3d-workface-panel__label" }, yV = ["checked", "onChange"], bV = {
|
|
60297
59939
|
key: 1,
|
|
60298
59940
|
class: "lr3d-monitor-panel"
|
|
60299
|
-
},
|
|
59941
|
+
}, xV = { class: "lr3d-monitor-panel__tabs" }, SV = ["onClick"], CV = { class: "lr3d-monitor-panel__body" }, wV = {
|
|
60300
59942
|
key: 0,
|
|
60301
59943
|
class: "lr3d-monitor-panel__state"
|
|
60302
|
-
},
|
|
59944
|
+
}, TV = {
|
|
60303
59945
|
key: 1,
|
|
60304
59946
|
class: "lr3d-monitor-panel__state lr3d-monitor-panel__state--error"
|
|
60305
|
-
},
|
|
59947
|
+
}, EV = {
|
|
60306
59948
|
key: 2,
|
|
60307
59949
|
class: "lr3d-monitor-panel__state"
|
|
60308
|
-
},
|
|
59950
|
+
}, DV = {
|
|
60309
59951
|
key: 3,
|
|
60310
59952
|
class: "lr3d-monitor-panel__list"
|
|
60311
|
-
},
|
|
59953
|
+
}, OV = ["onClick"], kV = { class: "lr3d-monitor-panel__item-header" }, AV = [
|
|
60312
59954
|
"aria-label",
|
|
60313
59955
|
"title",
|
|
60314
59956
|
"onClick"
|
|
60315
|
-
],
|
|
59957
|
+
], jV = {
|
|
60316
59958
|
key: 0,
|
|
60317
|
-
class: "lr3d-monitor-
|
|
60318
|
-
},
|
|
59959
|
+
class: "lr3d-monitor-panel__item-type"
|
|
59960
|
+
}, MV = {
|
|
60319
59961
|
key: 1,
|
|
60320
|
-
class: "lr3d-monitor-
|
|
60321
|
-
},
|
|
59962
|
+
class: "lr3d-monitor-panel__safety-data"
|
|
59963
|
+
}, NV = { class: "lr3d-monitor-panel__safety-row" }, PV = { class: "lr3d-monitor-panel__safety-value" }, FV = { class: "lr3d-monitor-panel__safety-row" }, IV = { class: "lr3d-monitor-panel__safety-value lr3d-monitor-panel__safety-value--time" }, LV = {
|
|
60322
59964
|
key: 2,
|
|
60323
|
-
class: "lr3d-monitor-
|
|
60324
|
-
},
|
|
59965
|
+
class: "lr3d-monitor-panel__hydrology-data"
|
|
59966
|
+
}, RV = { class: "lr3d-monitor-panel__hydrology-primary" }, zV = { class: "lr3d-monitor-panel__hydrology-value" }, BV = { class: "lr3d-monitor-panel__hydrology-meta" }, VV = { class: "lr3d-monitor-panel__hydrology-meta-item" }, HV = { class: "lr3d-monitor-panel__hydrology-meta-item" }, UV = { class: "lr3d-monitor-panel__hydrology-status" }, WV = {
|
|
59967
|
+
key: 3,
|
|
59968
|
+
class: "lr3d-monitor-panel__item-data"
|
|
59969
|
+
}, GV = { class: "lr3d-monitor-panel__footer" }, KV = { class: "lr3d-monitor-panel__count" }, qV = {
|
|
60325
59970
|
key: 0,
|
|
60326
59971
|
class: "lr3d-monitor-panel__pagination"
|
|
60327
|
-
},
|
|
59972
|
+
}, JV = ["disabled"], YV = { class: "lr3d-monitor-panel__page-info" }, XV = ["disabled"], ZV = {
|
|
60328
59973
|
key: 4,
|
|
60329
59974
|
class: "lr3d-debug-panel"
|
|
60330
|
-
},
|
|
59975
|
+
}, QV = { class: "lr3d-debug-panel__group" }, $V = { class: "lr3d-debug-panel__actions" }, eH = { class: "lr3d-debug-panel__group lr3d-debug-panel__group--background" }, tH = {
|
|
60331
59976
|
class: "lr3d-debug-panel__color-control",
|
|
60332
59977
|
for: "lr3d-scene-background-color"
|
|
60333
|
-
},
|
|
59978
|
+
}, nH = { class: "lr3d-debug-panel__group" }, rH = { class: "lr3d-debug-panel__actions" }, iH = ["disabled"], aH = ["disabled"], oH = ["disabled"], sH = ["disabled"], cH = ["disabled"], lH = ["disabled"], uH = ["disabled"], dH = { class: "lr3d-debug-panel__group lr3d-debug-panel__group--tool" }, fH = { class: "lr3d-debug-panel__tool" }, pH = { class: "lr3d-debug-panel__log" }, mH = {
|
|
60334
59979
|
key: 5,
|
|
60335
59980
|
class: "lr3d-viewer__placeholder"
|
|
60336
|
-
},
|
|
59981
|
+
}, hH = {
|
|
60337
59982
|
key: 6,
|
|
60338
59983
|
class: "lr3d-viewer__placeholder lr3d-viewer__placeholder--error"
|
|
60339
|
-
},
|
|
59984
|
+
}, gH = 36e3, _H = 3600, vH = 1200, yH = 100, bH = 1e4, xH = 900, SH = "井口", CH = 900, wH = .01, TH = 500, EH = 100, DH = 2e3, OH = 50, kH = "monitor-range-selection", AH = "monitor-range-selection-marker", jH = "window[\"lr3dapp\"].editor.manager.modules.waterSimulation", MH = "window[\"lr3dapp\"].editor.manager.modules.exitPath", NH = 1, PH = "monitor-point-placement-preview", FH = 10, IH = 10, LH = "安全监测", RH = "水文检测", zH = "束管监测点", BH = "人员定位", VH = /* @__PURE__ */ zM({
|
|
60340
59985
|
__name: "Lr3dViewer",
|
|
60341
59986
|
props: {
|
|
60342
59987
|
config: {
|
|
@@ -60361,7 +60006,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60361
60006
|
EXIT_PATH: "exitPath",
|
|
60362
60007
|
VIEW: "view",
|
|
60363
60008
|
REGION: "region"
|
|
60364
|
-
}), u = e, d =
|
|
60009
|
+
}), u = e, d = ez(kR()), f = k(IT(u.config)), p = r(() => f.value.scene.containerId), m = k(null), h = k("idle"), g = k("eval_route_gene"), _ = k("等待调试操作"), v = k("#041D4B"), y = k(!1), b = k(!1), C = k(!1), T = k(!1), O = k(!0), A = k(null), M = k(!1), N = k("等待操作"), ee = k(null), te = k(null), ne = k(null), F = k(() => {}), z = k(null), se = k({
|
|
60365
60010
|
key: "",
|
|
60366
60011
|
timestamp: 0
|
|
60367
60012
|
}), ce = k({
|
|
@@ -60393,7 +60038,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60393
60038
|
loading: !1,
|
|
60394
60039
|
loaded: !1
|
|
60395
60040
|
}
|
|
60396
|
-
}), le = k([]), ue = k({}), de = k([]), fe = k({}), B = k([]), pe = k("idle"), me = k(""), he = k({}), ge = k(0), V = k(0), _e = k(""), ve = k(
|
|
60041
|
+
}), le = k([]), ue = k({}), de = k([]), fe = k({}), B = k([]), pe = k("idle"), me = k(""), he = k({}), ge = k(0), V = k(0), _e = k(""), ve = k(qz[0] ?? ""), H = k(1), U = k(!1), ye = k(!1), be = k(!1), xe = k(!1), Se = k(!1), Ce = k(!1), we = k(!1), W = k(""), Te = k([]), Ee = k("idle"), De = k(TH), Oe = k(null), ke = k(null), Ae = k(null), je = k(null), Me = k(null), Ne = k({
|
|
60397
60042
|
status: "idle",
|
|
60398
60043
|
targetItem: null,
|
|
60399
60044
|
candidatePosition: null,
|
|
@@ -60438,7 +60083,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60438
60083
|
}), ie(() => ve.value, () => {
|
|
60439
60084
|
H.value = 1;
|
|
60440
60085
|
}), ie(() => u.mineId, (e, t) => {
|
|
60441
|
-
e === t && Te.value.length || (W.value = "",
|
|
60086
|
+
e === t && Te.value.length || (W.value = "", Qr(), Te.value = [], h.value === "ready" && (Er(), pe.value = "idle", me.value = "", Pr({ forceReload: !0 }), J(`已切换 mineId=${String(e || "").trim()} 的接口数据`)));
|
|
60442
60087
|
}, { immediate: !0 }), ie(() => h.value, (e) => {
|
|
60443
60088
|
if (e === "ready") {
|
|
60444
60089
|
Dn();
|
|
@@ -60461,22 +60106,22 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60461
60106
|
let n = Pe.indexOf(e.featureType), r = Pe.indexOf(t.featureType), i = n === -1 ? 2 ** 53 - 1 : n, a = r === -1 ? 2 ** 53 - 1 : r;
|
|
60462
60107
|
return i === a ? e.typeLabel.localeCompare(t.typeLabel, "zh-CN") : i - a;
|
|
60463
60108
|
}), t;
|
|
60464
|
-
}), We = r(() => K.value.length > 0 || de.value.length > 0), Ge = r(() =>
|
|
60109
|
+
}), We = r(() => K.value.length > 0 || de.value.length > 0), Ge = r(() => qz.map((e) => ({
|
|
60465
60110
|
type: e,
|
|
60466
60111
|
label: e,
|
|
60467
|
-
count:
|
|
60468
|
-
}))), Ke = r(() =>
|
|
60112
|
+
count: Ot.value.filter((t) => t.type === e).length
|
|
60113
|
+
}))), Ke = r(() => Ot.value.filter((e) => e.type === ve.value)), qe = r(() => {
|
|
60469
60114
|
if (ve.value !== "安全监测") return Ke.value;
|
|
60470
60115
|
let e = (H.value - 1) * IH, t = e + IH;
|
|
60471
60116
|
return Ke.value.slice(e, t);
|
|
60472
|
-
}), Je = r(() => ve.value === "安全监测" ? Math.max(1, Math.ceil(Ke.value.length / IH)) : 1), Ye = r(() =>
|
|
60117
|
+
}), Je = r(() => ve.value === "安全监测" ? Math.max(1, Math.ceil(Ke.value.length / IH)) : 1), Ye = r(() => At.value.find((e) => e.id === _e.value) ?? null), Xe = r(() => Ye.value ? Ve[Ye.value.type] ?? He : He), Ze = r(() => Ye.value ? on(Ye.value) : []), Qe = r(() => si(Oe.value)), $e = r(() => Oe.value !== null), et = r(() => Ee.value === "picking" ? "范围选点中,请在三维场景内单击巷道模型" : $e.value ? `已生成 ${De.value} 米球形范围` : "未设置范围选点"), tt = r(() => Ne.value.targetItem?.name ?? "安全监测点"), nt = r(() => {
|
|
60473
60118
|
let e = Ne.value;
|
|
60474
60119
|
return e.status === "picking" ? `正在为 ${tt.value} 布点,请在三维场景内点击巷道或工作面` : e.status === "preview" ? "已生成候选点,确认后保存坐标" : e.status === "saving" ? "正在保存布点坐标" : "";
|
|
60475
60120
|
});
|
|
60476
60121
|
function rt(e) {
|
|
60477
60122
|
if (!$e.value) return !0;
|
|
60478
60123
|
let t = Qe.value, n = ct(e);
|
|
60479
|
-
if (!t || !
|
|
60124
|
+
if (!t || !ai(n)) return !1;
|
|
60480
60125
|
let r = Number(n.x) - Number(t.x), i = Number(n.y) - Number(t.y), a = Number(n.z) - Number(t.z);
|
|
60481
60126
|
return Math.sqrt(r * r + i * i + a * a) <= De.value;
|
|
60482
60127
|
}
|
|
@@ -60499,7 +60144,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60499
60144
|
return (t == null ? "" : String(t).trim()) || "未命名监测点";
|
|
60500
60145
|
}
|
|
60501
60146
|
function ct(e) {
|
|
60502
|
-
if (
|
|
60147
|
+
if (ai(e?.position)) return {
|
|
60503
60148
|
x: Number(e.position.x),
|
|
60504
60149
|
y: Number(e.position.y),
|
|
60505
60150
|
z: Number(e.position.z)
|
|
@@ -60530,80 +60175,98 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60530
60175
|
return ot(e) === zH;
|
|
60531
60176
|
}
|
|
60532
60177
|
function ht(e) {
|
|
60533
|
-
return
|
|
60178
|
+
return ot(e) === BH;
|
|
60534
60179
|
}
|
|
60535
60180
|
function gt(e) {
|
|
60536
|
-
|
|
60537
|
-
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
60181
|
+
return ft(e) && !ut(e?.v_value_at_dict_sensor_type) ? String(e.v_value_at_dict_sensor_type).trim() : pt(e) && !ut(e?.zd1xmc) ? String(e.zd1xmc).trim() : mt(e) && !ut(e?.v_value_at_dict_sensor_type) ? String(e.v_value_at_dict_sensor_type).trim() : ot(e);
|
|
60538
60182
|
}
|
|
60539
60183
|
function _t(e) {
|
|
60540
|
-
return
|
|
60184
|
+
return ht(e) ? "" : gt(e);
|
|
60541
60185
|
}
|
|
60542
60186
|
function vt(e) {
|
|
60543
|
-
let t = dt(e?.
|
|
60187
|
+
let t = dt(e?.val), n = ut(e?.unit) ? "" : String(e.unit).trim();
|
|
60544
60188
|
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
60545
60189
|
}
|
|
60546
60190
|
function yt(e) {
|
|
60191
|
+
return [["测点值", vt(e)], ["数据更新时间", dt(e?.data_time)]];
|
|
60192
|
+
}
|
|
60193
|
+
function bt(e) {
|
|
60194
|
+
let t = e?.jcvl, n = dt(t), r = ut(e?.dw) ? "" : String(e.dw).trim();
|
|
60195
|
+
return n === "--" ? n : r ? `${n}${r}` : n;
|
|
60196
|
+
}
|
|
60197
|
+
function xt(e) {
|
|
60547
60198
|
return [
|
|
60548
|
-
["监测值",
|
|
60199
|
+
["监测值", bt(e)],
|
|
60549
60200
|
["数据时间", dt(e?.sj)],
|
|
60550
60201
|
["状态", dt(e?.state)]
|
|
60551
60202
|
];
|
|
60552
60203
|
}
|
|
60553
|
-
function
|
|
60204
|
+
function q(e) {
|
|
60554
60205
|
let t = dt(e?.val ?? e?.jcvl ?? e?.value), n = ut(e?.unit ?? e?.dw) ? "" : String(e?.unit ?? e?.dw).trim();
|
|
60555
60206
|
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
60556
60207
|
}
|
|
60557
|
-
function
|
|
60208
|
+
function St(e) {
|
|
60558
60209
|
return [
|
|
60559
|
-
["监测值",
|
|
60210
|
+
["监测值", q(e)],
|
|
60560
60211
|
["数据时间", dt(e?.data_time ?? e?.sj ?? e?.time)],
|
|
60561
60212
|
["状态", dt(e?.state ?? e?.status)]
|
|
60562
60213
|
];
|
|
60563
60214
|
}
|
|
60564
|
-
function
|
|
60215
|
+
function Ct(e) {
|
|
60216
|
+
return [
|
|
60217
|
+
["部门", dt(e?.dept)],
|
|
60218
|
+
["职务", dt(e?.duty)],
|
|
60219
|
+
["数据时间", dt(e?.data_time)],
|
|
60220
|
+
["是否领导", dt(e?.is_leader)]
|
|
60221
|
+
];
|
|
60222
|
+
}
|
|
60223
|
+
function wt(e) {
|
|
60565
60224
|
return e?.data && typeof e.data == "object" && !Array.isArray(e.data) ? e.data : e && typeof e == "object" ? e : {};
|
|
60566
60225
|
}
|
|
60567
|
-
function
|
|
60226
|
+
function Tt(e) {
|
|
60568
60227
|
return {
|
|
60569
60228
|
...e,
|
|
60570
60229
|
id: at(e),
|
|
60571
60230
|
name: st(e),
|
|
60572
60231
|
type: ot(e),
|
|
60573
60232
|
position: ct(e),
|
|
60574
|
-
data:
|
|
60233
|
+
data: wt(e),
|
|
60575
60234
|
rawData: e
|
|
60576
60235
|
};
|
|
60577
60236
|
}
|
|
60578
|
-
let
|
|
60579
|
-
let t = e.sceneId, n = e.currentPosition ?? e.startPoint
|
|
60580
|
-
return t == null
|
|
60237
|
+
let Et = r(() => Te.value.map((e) => {
|
|
60238
|
+
let t = e.sceneId, n = e.currentPosition ?? e.startPoint;
|
|
60239
|
+
return t == null ? null : {
|
|
60581
60240
|
id: String(t),
|
|
60582
|
-
type:
|
|
60241
|
+
type: BH,
|
|
60583
60242
|
name: e.name,
|
|
60584
|
-
position: {
|
|
60243
|
+
position: ai(n) ? {
|
|
60585
60244
|
x: Number(n.x),
|
|
60586
60245
|
y: Number(n.y),
|
|
60587
60246
|
z: Number(n.z)
|
|
60588
|
-
},
|
|
60247
|
+
} : null,
|
|
60589
60248
|
data: {
|
|
60590
|
-
|
|
60591
|
-
|
|
60592
|
-
|
|
60593
|
-
|
|
60249
|
+
部门: e.dept,
|
|
60250
|
+
职务: e.duty,
|
|
60251
|
+
数据时间: e.data_time,
|
|
60252
|
+
是否领导: e.is_leader
|
|
60594
60253
|
},
|
|
60254
|
+
rawData: e.rawData,
|
|
60595
60255
|
personSceneId: t,
|
|
60256
|
+
dept: e.dept,
|
|
60596
60257
|
duty: e.duty,
|
|
60258
|
+
data_time: e.data_time,
|
|
60259
|
+
is_leader: e.is_leader,
|
|
60597
60260
|
pointsHistory: e.pointsHistory,
|
|
60598
60261
|
currentTimeLabel: e.currentTimeLabel,
|
|
60599
60262
|
isMoving: e.isMoving,
|
|
60600
60263
|
status: e.status
|
|
60601
60264
|
};
|
|
60602
|
-
}).filter(Boolean)),
|
|
60265
|
+
}).filter(Boolean)), Dt = r(() => [...B.value.map((e) => Tt(e)), ...Et.value]), Ot = r(() => Dt.value.filter((e) => rt(e))), kt = r(() => {
|
|
60603
60266
|
let e = Ne.value;
|
|
60604
|
-
return e.status !== "preview" && e.status !== "saving" || !e.targetItem || !
|
|
60267
|
+
return e.status !== "preview" && e.status !== "saving" || !e.targetItem || !ai(e.candidatePosition) ? null : {
|
|
60605
60268
|
...e.targetItem,
|
|
60606
|
-
id:
|
|
60269
|
+
id: PH,
|
|
60607
60270
|
name: e.targetItem.name,
|
|
60608
60271
|
type: LH,
|
|
60609
60272
|
position: {
|
|
@@ -60615,10 +60278,10 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60615
60278
|
rawData: e.targetItem.rawData ?? e.targetItem,
|
|
60616
60279
|
isPlacementPreview: !0
|
|
60617
60280
|
};
|
|
60618
|
-
}),
|
|
60619
|
-
let e =
|
|
60620
|
-
return e ? [...
|
|
60621
|
-
}),
|
|
60281
|
+
}), At = r(() => {
|
|
60282
|
+
let e = kt.value;
|
|
60283
|
+
return e ? [...Ot.value, e] : Ot.value;
|
|
60284
|
+
}), jt = r(() => $e.value ? Ot.value.map((e) => ({
|
|
60622
60285
|
id: e.id,
|
|
60623
60286
|
name: e.name,
|
|
60624
60287
|
type: e.type,
|
|
@@ -60626,7 +60289,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60626
60289
|
data: e.data,
|
|
60627
60290
|
positionText: rn(e.position),
|
|
60628
60291
|
isActive: _e.value === e.id
|
|
60629
|
-
})) : []),
|
|
60292
|
+
})) : []), Mt = r(() => At.value.map((e) => {
|
|
60630
60293
|
let t = Ve[e.type] ?? He;
|
|
60631
60294
|
return {
|
|
60632
60295
|
...e,
|
|
@@ -60635,7 +60298,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60635
60298
|
isActive: _e.value === e.id
|
|
60636
60299
|
};
|
|
60637
60300
|
}));
|
|
60638
|
-
ie(() => [_e.value,
|
|
60301
|
+
ie(() => [_e.value, At.value], ([e, t]) => {
|
|
60639
60302
|
e && (t.some((t) => t.id === e) || (_e.value = ""));
|
|
60640
60303
|
}, { deep: !0 }), ie(() => De.value, () => {
|
|
60641
60304
|
if (Be > 0) {
|
|
@@ -60648,31 +60311,31 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60648
60311
|
}
|
|
60649
60312
|
lr(Oe.value), $n("radius-change"), Zn();
|
|
60650
60313
|
});
|
|
60651
|
-
let
|
|
60314
|
+
let Nt = r(() => f.value?.dataSource?.type === "cloud" && f.value?.dataSource?.autoLoad === !0), Pt = r(() => {
|
|
60652
60315
|
let e = {};
|
|
60653
60316
|
return (Array.isArray(u.toolbarTools) ? u.toolbarTools : []).forEach((t) => {
|
|
60654
60317
|
let n = typeof t == "string" ? t.trim() : "";
|
|
60655
60318
|
n && (e[n] = !0);
|
|
60656
60319
|
}), e;
|
|
60657
60320
|
});
|
|
60658
|
-
function
|
|
60659
|
-
return !!
|
|
60321
|
+
function Ft(e) {
|
|
60322
|
+
return !!Pt.value[e];
|
|
60660
60323
|
}
|
|
60661
|
-
let
|
|
60324
|
+
let It = r(() => Ft(l.DEBUG)), Lt = r(() => Ft(l.MONITOR)), Rt = r(() => Ft(l.RANGE)), zt = r(() => Ft(l.WATER)), Bt = r(() => Ft(l.EXIT_PATH)), Vt = r(() => Ft(l.VIEW)), Ht = r(() => Ft(l.REGION));
|
|
60662
60325
|
ie(() => ({
|
|
60663
|
-
debug:
|
|
60664
|
-
monitor:
|
|
60665
|
-
range:
|
|
60666
|
-
water:
|
|
60667
|
-
exitPath:
|
|
60668
|
-
view:
|
|
60669
|
-
region:
|
|
60326
|
+
debug: It.value,
|
|
60327
|
+
monitor: Lt.value,
|
|
60328
|
+
range: Rt.value,
|
|
60329
|
+
water: zt.value,
|
|
60330
|
+
exitPath: Bt.value,
|
|
60331
|
+
view: Vt.value,
|
|
60332
|
+
region: Ht.value
|
|
60670
60333
|
}), (e) => {
|
|
60671
60334
|
e.debug || (ye.value = !1), e.monitor || (U.value = !1), e.range || (Ee.value === "picking" && Kn(), xe.value = !1), e.water || (Se.value = !1), e.exitPath || (Ce.value = !1), e.view || (be.value = !1), e.region || (C.value = !1);
|
|
60672
60335
|
}, { immediate: !0 });
|
|
60673
|
-
function
|
|
60336
|
+
function Ut(e, t) {
|
|
60674
60337
|
if (!e || typeof e != "object") return null;
|
|
60675
|
-
let n =
|
|
60338
|
+
let n = ri(e?.cameraPos?.x, e?.cameraPos?.y, e?.cameraPos?.z), r = ri(e?.viewCenter?.x, e?.viewCenter?.y, e?.viewCenter?.z);
|
|
60676
60339
|
return !n || !r ? null : {
|
|
60677
60340
|
...e,
|
|
60678
60341
|
key: `view-point-${t}`,
|
|
@@ -60681,110 +60344,101 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60681
60344
|
viewCenter: r
|
|
60682
60345
|
};
|
|
60683
60346
|
}
|
|
60684
|
-
let
|
|
60347
|
+
let Wt = r(() => Qz(u.mineId).map((e, t) => Ut(e, t)).filter(Boolean)), Gt = r(() => W.value ? Wt.value.find((e) => e.key === W.value)?.name ?? "未切换" : "未切换");
|
|
60685
60348
|
function J(e) {
|
|
60686
60349
|
_.value = `${(/* @__PURE__ */ new Date()).toLocaleTimeString()} - ${e}`;
|
|
60687
60350
|
}
|
|
60688
|
-
function
|
|
60351
|
+
function Kt(e) {
|
|
60689
60352
|
let t = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
60690
60353
|
_.value = `${_.value}\n${t} - ${e}`;
|
|
60691
60354
|
}
|
|
60692
|
-
function
|
|
60355
|
+
function qt(e) {
|
|
60693
60356
|
oe.error(e), N.value = e, J(e);
|
|
60694
60357
|
}
|
|
60695
|
-
function
|
|
60696
|
-
if (typeof window > "u") return
|
|
60358
|
+
function Jt() {
|
|
60359
|
+
if (typeof window > "u") return qt("水蔓延控制对象获取失败:当前环境缺少 window"), null;
|
|
60697
60360
|
let e = window.lr3dapp?.editor?.manager?.modules?.waterSimulation;
|
|
60698
|
-
return e ? (console.log("水蔓延控制对象:", e), e) : (
|
|
60361
|
+
return e ? (console.log("水蔓延控制对象:", e), e) : (qt(`水蔓延控制对象获取失败:未找到 ${jH}`), null);
|
|
60699
60362
|
}
|
|
60700
|
-
function
|
|
60701
|
-
let n =
|
|
60363
|
+
function Yt(e, t) {
|
|
60364
|
+
let n = Jt();
|
|
60702
60365
|
if (!n) return !1;
|
|
60703
60366
|
let r = n[e];
|
|
60704
|
-
if (typeof r != "function") return
|
|
60367
|
+
if (typeof r != "function") return qt(`水蔓延操作失败:控制对象缺少 ${e} 方法`), !1;
|
|
60705
60368
|
try {
|
|
60706
60369
|
return r.call(n), N.value = t, J(t), !0;
|
|
60707
60370
|
} catch (e) {
|
|
60708
|
-
return
|
|
60371
|
+
return qt(`水蔓延操作失败:${nn(e)}`), !1;
|
|
60709
60372
|
}
|
|
60710
60373
|
}
|
|
60711
|
-
function
|
|
60374
|
+
function Xt(e) {
|
|
60712
60375
|
oe.error(e), N.value = e, J(e);
|
|
60713
60376
|
}
|
|
60714
|
-
function
|
|
60715
|
-
if (typeof window > "u") return
|
|
60377
|
+
function Zt() {
|
|
60378
|
+
if (typeof window > "u") return Xt("避灾线路控制对象获取失败:当前环境缺少 window"), null;
|
|
60716
60379
|
let e = window.lr3dapp?.editor?.manager?.modules?.exitPath;
|
|
60717
|
-
return e ? (console.log("避灾线路控制对象:", e), e) : (
|
|
60380
|
+
return e ? (console.log("避灾线路控制对象:", e), e) : (Xt(`避灾线路控制对象获取失败:未找到 ${MH}`), null);
|
|
60718
60381
|
}
|
|
60719
|
-
async function
|
|
60720
|
-
let r = n ??
|
|
60382
|
+
async function Qt(e, t, n = null) {
|
|
60383
|
+
let r = n ?? Zt();
|
|
60721
60384
|
if (!r) return !1;
|
|
60722
60385
|
let i = r[e];
|
|
60723
|
-
if (typeof i != "function") return
|
|
60386
|
+
if (typeof i != "function") return Xt(`避灾线路操作失败:控制对象缺少 ${e} 方法`), !1;
|
|
60724
60387
|
try {
|
|
60725
60388
|
return await i.call(r), N.value = t, J(t), !0;
|
|
60726
60389
|
} catch (e) {
|
|
60727
|
-
return
|
|
60390
|
+
return Xt(`避灾线路操作失败:${nn(e)}`), !1;
|
|
60728
60391
|
}
|
|
60729
60392
|
}
|
|
60730
|
-
function
|
|
60393
|
+
function $t() {
|
|
60731
60394
|
try {
|
|
60732
60395
|
Fn(v.value), J(`背景颜色已更新:${v.value}`);
|
|
60733
60396
|
} catch (e) {
|
|
60734
60397
|
J(`背景颜色更新失败:${nn(e)}`);
|
|
60735
60398
|
}
|
|
60736
60399
|
}
|
|
60737
|
-
function
|
|
60738
|
-
|
|
60739
|
-
|
|
60740
|
-
|
|
60741
|
-
|
|
60742
|
-
|
|
60400
|
+
function en(e) {
|
|
60401
|
+
if (typeof e?.coordinates != "string") return null;
|
|
60402
|
+
let t = e.coordinates.split(",").map((e) => e.trim());
|
|
60403
|
+
if (t.length < 2 || t.slice(0, 2).some((e) => e === "")) return null;
|
|
60404
|
+
let [n, r] = t.slice(0, 2).map((e) => Number(e)), i = t[2] === void 0 || t[2] === "" ? 0 : Number(t[2]);
|
|
60405
|
+
return !Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(i) ? null : {
|
|
60406
|
+
x: n,
|
|
60407
|
+
y: r,
|
|
60408
|
+
z: i
|
|
60743
60409
|
};
|
|
60744
60410
|
}
|
|
60745
|
-
function
|
|
60746
|
-
|
|
60747
|
-
|
|
60748
|
-
|
|
60749
|
-
|
|
60750
|
-
|
|
60751
|
-
|
|
60752
|
-
|
|
60753
|
-
|
|
60754
|
-
|
|
60755
|
-
time: e.time,
|
|
60756
|
-
timestamp: r,
|
|
60757
|
-
timeLabel: Qt(e.time)
|
|
60758
|
-
};
|
|
60759
|
-
}).filter(Boolean).sort((e, t) => e.timestamp - t.timestamp) : [];
|
|
60760
|
-
}
|
|
60761
|
-
function en(e = []) {
|
|
60762
|
-
return Array.isArray(e) ? e.map((e, t) => {
|
|
60763
|
-
let n = $t(e?.pointsHistory);
|
|
60764
|
-
if (n.length === 0) return null;
|
|
60765
|
-
let r = typeof e?.name == "string" && e.name.trim() ? e.name.trim() : `人员 ${t + 1}`, i = typeof e?.duty == "string" && e.duty.trim() ? e.duty.trim() : "未设置岗位";
|
|
60411
|
+
function tn(e = []) {
|
|
60412
|
+
return Array.isArray(e) ? e.map((e) => {
|
|
60413
|
+
let t = en(e), n = e?.id ?? e?.card_id, r = n == null ? "" : String(n).trim();
|
|
60414
|
+
if (!r) return null;
|
|
60415
|
+
let i = typeof e?.person_name == "string" && e.person_name.trim() ? e.person_name.trim() : "未命名人员", a = dt(e?.data_time), o = t ? [{
|
|
60416
|
+
key: `person-position-${r}`,
|
|
60417
|
+
point: t,
|
|
60418
|
+
time: e?.data_time,
|
|
60419
|
+
timeLabel: a
|
|
60420
|
+
}] : [];
|
|
60766
60421
|
return {
|
|
60767
|
-
key:
|
|
60768
|
-
sceneId:
|
|
60769
|
-
name:
|
|
60770
|
-
|
|
60771
|
-
|
|
60772
|
-
|
|
60773
|
-
|
|
60774
|
-
|
|
60422
|
+
key: r,
|
|
60423
|
+
sceneId: r,
|
|
60424
|
+
name: i,
|
|
60425
|
+
dept: e?.dept,
|
|
60426
|
+
duty: e?.duty,
|
|
60427
|
+
data_time: e?.data_time,
|
|
60428
|
+
is_leader: e?.is_leader,
|
|
60429
|
+
rawData: e,
|
|
60430
|
+
pointsHistory: o,
|
|
60431
|
+
startPoint: t ? { ...t } : null,
|
|
60432
|
+
startTimeLabel: a,
|
|
60433
|
+
endTimeLabel: a,
|
|
60434
|
+
currentPosition: t ? { ...t } : null,
|
|
60435
|
+
currentPointIndex: 0,
|
|
60436
|
+
currentTimeLabel: a,
|
|
60437
|
+
isMoving: !1,
|
|
60438
|
+
status: t ? "实时定位" : "暂无坐标"
|
|
60775
60439
|
};
|
|
60776
60440
|
}).filter(Boolean) : [];
|
|
60777
60441
|
}
|
|
60778
|
-
function tn(e = []) {
|
|
60779
|
-
return en(e).map((e) => ({
|
|
60780
|
-
...e,
|
|
60781
|
-
currentPosition: { ...e.startPoint },
|
|
60782
|
-
currentPointIndex: 0,
|
|
60783
|
-
currentTimeLabel: e.startTimeLabel,
|
|
60784
|
-
isMoving: !1,
|
|
60785
|
-
status: e.pointsHistory.length > 1 ? "待命" : "无轨迹可播放"
|
|
60786
|
-
}));
|
|
60787
|
-
}
|
|
60788
60442
|
function nn(e) {
|
|
60789
60443
|
return e instanceof Error ? e.message : "未知错误";
|
|
60790
60444
|
}
|
|
@@ -60795,12 +60449,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60795
60449
|
return e ? `X ${Number(e.x).toFixed(2)} / Y ${Number(e.y).toFixed(2)} / Z ${Number(e.z).toFixed(2)}` : "--";
|
|
60796
60450
|
}
|
|
60797
60451
|
function on(e) {
|
|
60798
|
-
return ft(e) ?
|
|
60452
|
+
return ft(e) ? yt(e) : pt(e) ? xt(e) : mt(e) ? St(e) : ht(e) ? Ct(e) : Object.entries(wt(e)).map(([e, t]) => [e, lt(t)]);
|
|
60799
60453
|
}
|
|
60800
60454
|
function sn(e) {
|
|
60801
60455
|
if (!e || typeof e != "object") return null;
|
|
60802
60456
|
let t = { ...e };
|
|
60803
|
-
return
|
|
60457
|
+
return ai(e.position) && (t.position = {
|
|
60804
60458
|
x: Number(e.position.x),
|
|
60805
60459
|
y: Number(e.position.y),
|
|
60806
60460
|
z: Number(e.position.z)
|
|
@@ -60816,7 +60470,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60816
60470
|
return Ye.value?.isPlacementPreview ? _n() : ln();
|
|
60817
60471
|
}
|
|
60818
60472
|
function dn(e, { focus: t = !1 } = {}) {
|
|
60819
|
-
return e?.id ? (_e.value = e.id, t ?
|
|
60473
|
+
return e?.id ? (_e.value = e.id, !t || !ai(e.position) ? !0 : hi(e.position, e.name)) : !1;
|
|
60820
60474
|
}
|
|
60821
60475
|
function fn(e) {
|
|
60822
60476
|
return dn(e, { focus: !0 });
|
|
@@ -60825,7 +60479,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60825
60479
|
return dn(e, { focus: !0 });
|
|
60826
60480
|
}
|
|
60827
60481
|
function mn(e) {
|
|
60828
|
-
return
|
|
60482
|
+
return ai(ct(e));
|
|
60829
60483
|
}
|
|
60830
60484
|
function hn() {
|
|
60831
60485
|
typeof ze == "function" && ze(), ze = null;
|
|
@@ -60841,7 +60495,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60841
60495
|
}
|
|
60842
60496
|
function _n({ preserveStatus: e = !1 } = {}) {
|
|
60843
60497
|
let t = Ne.value.status;
|
|
60844
|
-
return hn(), _e.value ===
|
|
60498
|
+
return hn(), _e.value === PH && (_e.value = ""), gn(), !e && t !== "idle" && (N.value = "已取消监测点布点", J("已取消安全监测点布点")), t !== "idle";
|
|
60845
60499
|
}
|
|
60846
60500
|
function vn(e) {
|
|
60847
60501
|
let t = yr(e, "monitor-point-placement");
|
|
@@ -60852,8 +60506,8 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60852
60506
|
} : null;
|
|
60853
60507
|
}
|
|
60854
60508
|
function yn(e) {
|
|
60855
|
-
if (!
|
|
60856
|
-
let t = Ne.value, n =
|
|
60509
|
+
if (!ai(e?.point)) throw Error("拾取结果缺少有效三维坐标");
|
|
60510
|
+
let t = Ne.value, n = si(e.point);
|
|
60857
60511
|
if (!n || !t.targetItem) throw Error("布点目标或候选坐标无效");
|
|
60858
60512
|
return hn(), Ne.value = {
|
|
60859
60513
|
status: "preview",
|
|
@@ -60861,10 +60515,10 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60861
60515
|
candidatePosition: n,
|
|
60862
60516
|
selectedObjectInfo: vn(e.object),
|
|
60863
60517
|
errorMessage: ""
|
|
60864
|
-
}, _e.value =
|
|
60518
|
+
}, _e.value = PH, hi(n, t.targetItem.name), N.value = `已生成布点候选坐标:${rn(n)}`, J(`安全监测点布点候选坐标已生成:${t.targetItem.name}`), !0;
|
|
60865
60519
|
}
|
|
60866
60520
|
function bn(e) {
|
|
60867
|
-
let t =
|
|
60521
|
+
let t = Tt(e);
|
|
60868
60522
|
if (!ft(t)) return N.value = "当前仅支持安全监测点布点", J("已忽略非安全监测点布点请求"), !1;
|
|
60869
60523
|
if (!m.value) return N.value = "布点失败:未找到三维容器", J("布点失败:未找到三维容器"), !1;
|
|
60870
60524
|
Kn(), hn(), _e.value = "", Ne.value = {
|
|
@@ -60881,7 +60535,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60881
60535
|
Ne.value = {
|
|
60882
60536
|
...Ne.value,
|
|
60883
60537
|
errorMessage: "本次点击未命中有效三维对象"
|
|
60884
|
-
},
|
|
60538
|
+
}, Kt("布点点击未拾取到有效三维对象,请点击巷道或工作面表面");
|
|
60885
60539
|
return;
|
|
60886
60540
|
}
|
|
60887
60541
|
try {
|
|
@@ -60891,7 +60545,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60891
60545
|
...Ne.value,
|
|
60892
60546
|
status: "picking",
|
|
60893
60547
|
errorMessage: nn(e)
|
|
60894
|
-
},
|
|
60548
|
+
}, Kt(`布点取点失败:${nn(e)}`);
|
|
60895
60549
|
}
|
|
60896
60550
|
};
|
|
60897
60551
|
return m.value.addEventListener("click", n, !0), ze = () => {
|
|
@@ -60913,7 +60567,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60913
60567
|
}
|
|
60914
60568
|
function Sn(e, t) {
|
|
60915
60569
|
let n = at(e);
|
|
60916
|
-
if (!n || !
|
|
60570
|
+
if (!n || !ai(t)) return null;
|
|
60917
60571
|
let r = null;
|
|
60918
60572
|
return B.value = B.value.map((e) => {
|
|
60919
60573
|
if (at(e) !== n) return e;
|
|
@@ -60925,12 +60579,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60925
60579
|
z: Number(t.z)
|
|
60926
60580
|
}
|
|
60927
60581
|
};
|
|
60928
|
-
return r =
|
|
60582
|
+
return r = Tt(i), i;
|
|
60929
60583
|
}), r;
|
|
60930
60584
|
}
|
|
60931
60585
|
async function Cn() {
|
|
60932
60586
|
let e = Ne.value;
|
|
60933
|
-
if (e.status !== "preview" || !e.targetItem || !
|
|
60587
|
+
if (e.status !== "preview" || !e.targetItem || !ai(e.candidatePosition)) return !1;
|
|
60934
60588
|
Ne.value = {
|
|
60935
60589
|
...e,
|
|
60936
60590
|
status: "saving",
|
|
@@ -60950,11 +60604,11 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60950
60604
|
...e,
|
|
60951
60605
|
status: "preview",
|
|
60952
60606
|
errorMessage: nn(t)
|
|
60953
|
-
}, _e.value =
|
|
60607
|
+
}, _e.value = PH, J(`安全监测点布点保存失败:${nn(t)}`), !1;
|
|
60954
60608
|
}
|
|
60955
60609
|
}
|
|
60956
60610
|
function wn(e) {
|
|
60957
|
-
let t =
|
|
60611
|
+
let t = ci(e?.position), n = li();
|
|
60958
60612
|
if (!t || !n || !m.value) return null;
|
|
60959
60613
|
let r = m.value.getBoundingClientRect();
|
|
60960
60614
|
if (r.width <= 0 || r.height <= 0) return null;
|
|
@@ -60970,12 +60624,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60970
60624
|
}
|
|
60971
60625
|
}
|
|
60972
60626
|
function Tn() {
|
|
60973
|
-
if (h.value !== "ready" ||
|
|
60627
|
+
if (h.value !== "ready" || At.value.length === 0) {
|
|
60974
60628
|
he.value = {};
|
|
60975
60629
|
return;
|
|
60976
60630
|
}
|
|
60977
60631
|
let e = {};
|
|
60978
|
-
|
|
60632
|
+
At.value.forEach((t) => {
|
|
60979
60633
|
let n = wn(t);
|
|
60980
60634
|
n && (e[t.id] = n);
|
|
60981
60635
|
}), he.value = e;
|
|
@@ -61010,12 +60664,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61010
60664
|
}
|
|
61011
60665
|
On();
|
|
61012
60666
|
let o = e.camera.position.clone?.() ?? new i.Vector3(Number(e.camera.position?.x ?? 0), Number(e.camera.position?.y ?? 0), Number(e.camera.position?.z ?? 0)), s = t?.center ?? t?.target, c = s?.clone?.() ?? new i.Vector3(Number(s?.x ?? 0), Number(s?.y ?? 0), Number(s?.z ?? 0));
|
|
61013
|
-
if (o.distanceTo(n) <=
|
|
60667
|
+
if (o.distanceTo(n) <= wH && c.distanceTo(r) <= wH) {
|
|
61014
60668
|
jn(e, t, n, r), a?.();
|
|
61015
60669
|
return;
|
|
61016
60670
|
}
|
|
61017
60671
|
let l = o.clone(), u = c.clone(), d = kn(), f = (i) => {
|
|
61018
|
-
let s = kn(i) - d, p = Math.min(s /
|
|
60672
|
+
let s = kn(i) - d, p = Math.min(s / CH, 1), m = An(p);
|
|
61019
60673
|
if (l.copy(o).lerp(n, m), u.copy(c).lerp(r, m), jn(e, t, l, u), p >= 1) {
|
|
61020
60674
|
On(), a?.();
|
|
61021
60675
|
return;
|
|
@@ -61043,7 +60697,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61043
60697
|
return N.value = "人员定位三维模型已移除", [];
|
|
61044
60698
|
}
|
|
61045
60699
|
function Rn() {
|
|
61046
|
-
return
|
|
60700
|
+
return Qr(), !0;
|
|
61047
60701
|
}
|
|
61048
60702
|
function zn() {
|
|
61049
60703
|
return [];
|
|
@@ -61081,11 +60735,11 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61081
60735
|
return Ee.value === "picking" ? "picking" : $e.value ? "selected" : "idle";
|
|
61082
60736
|
}
|
|
61083
60737
|
function Jn() {
|
|
61084
|
-
return $e.value ?
|
|
60738
|
+
return $e.value ? jt.value.map((e) => ({
|
|
61085
60739
|
id: e.id,
|
|
61086
60740
|
name: e.name,
|
|
61087
60741
|
type: e.type,
|
|
61088
|
-
position:
|
|
60742
|
+
position: ai(e.position) ? {
|
|
61089
60743
|
x: Number(e.position.x),
|
|
61090
60744
|
y: Number(e.position.y),
|
|
61091
60745
|
z: Number(e.position.z)
|
|
@@ -61129,7 +60783,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61129
60783
|
try {
|
|
61130
60784
|
return e(Xn()), !0;
|
|
61131
60785
|
} catch (e) {
|
|
61132
|
-
return
|
|
60786
|
+
return Kt(`范围选点结果变化回调执行失败:${nn(e)}`), !1;
|
|
61133
60787
|
}
|
|
61134
60788
|
}
|
|
61135
60789
|
function Qn(e) {
|
|
@@ -61145,7 +60799,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61145
60799
|
reason: e
|
|
61146
60800
|
}), !0;
|
|
61147
60801
|
} catch (e) {
|
|
61148
|
-
return
|
|
60802
|
+
return Kt(`范围选点回调执行失败:${nn(e)}`), !1;
|
|
61149
60803
|
}
|
|
61150
60804
|
}
|
|
61151
60805
|
function er(e) {
|
|
@@ -61154,7 +60808,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61154
60808
|
}
|
|
61155
60809
|
function tr(e) {
|
|
61156
60810
|
let t = Number(e);
|
|
61157
|
-
return !Number.isFinite(t) || t <= 0 ? null : Math.min(
|
|
60811
|
+
return !Number.isFinite(t) || t <= 0 ? null : Math.min(DH, Math.max(EH, t));
|
|
61158
60812
|
}
|
|
61159
60813
|
function nr(e, { silent: t = !1 } = {}) {
|
|
61160
60814
|
let n = tr(e);
|
|
@@ -61169,21 +60823,21 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61169
60823
|
function ar(e) {
|
|
61170
60824
|
let t = e;
|
|
61171
60825
|
for (; t;) {
|
|
61172
|
-
if (t.name ===
|
|
60826
|
+
if (t.name === kH || t.name === AH || t.name === PH) return !0;
|
|
61173
60827
|
t = t.parent ?? null;
|
|
61174
60828
|
}
|
|
61175
60829
|
return !1;
|
|
61176
60830
|
}
|
|
61177
60831
|
function or(e) {
|
|
61178
60832
|
if (!m.value) return null;
|
|
61179
|
-
let t = In(), n =
|
|
60833
|
+
let t = In(), n = li();
|
|
61180
60834
|
if (!t || !n) return null;
|
|
61181
60835
|
let r = m.value.getBoundingClientRect();
|
|
61182
60836
|
if (r.width <= 0 || r.height <= 0) return null;
|
|
61183
60837
|
let i = Pn(), a = new i.Vector2((e.clientX - r.left) / r.width * 2 - 1, -((e.clientY - r.top) / r.height) * 2 + 1), o = new i.Raycaster();
|
|
61184
60838
|
return n.updateProjectionMatrix?.(), n.updateMatrixWorld?.(!0), t.updateMatrixWorld?.(!0), o.setFromCamera(a, n), o.intersectObjects(t.children, !0).find((e) => {
|
|
61185
60839
|
let t = e?.object;
|
|
61186
|
-
return !t?.visible || ar(t) ? !1 :
|
|
60840
|
+
return !t?.visible || ar(t) ? !1 : ai(e?.point);
|
|
61187
60841
|
}) ?? null;
|
|
61188
60842
|
}
|
|
61189
60843
|
function sr(e) {
|
|
@@ -61202,7 +60856,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61202
60856
|
if (!t) throw Error("当前三维实例未提供可挂载球体的 scene");
|
|
61203
60857
|
Wn();
|
|
61204
60858
|
let n = Pn(), r = new n.Group();
|
|
61205
|
-
r.name =
|
|
60859
|
+
r.name = kH;
|
|
61206
60860
|
let i = new n.SphereGeometry(De.value, 40, 28), a = new n.MeshBasicMaterial({
|
|
61207
60861
|
color: "#ff6c00",
|
|
61208
60862
|
transparent: !0,
|
|
@@ -61216,8 +60870,8 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61216
60870
|
if (!t) throw Error("当前三维实例未提供可挂载选点标记的 scene");
|
|
61217
60871
|
Gn();
|
|
61218
60872
|
let n = Pn(), r = new n.Group();
|
|
61219
|
-
r.name =
|
|
61220
|
-
let i = new n.SphereGeometry(
|
|
60873
|
+
r.name = AH;
|
|
60874
|
+
let i = new n.SphereGeometry(FH, 24, 20), a = new n.MeshBasicMaterial({
|
|
61221
60875
|
color: 16726832,
|
|
61222
60876
|
transparent: !0,
|
|
61223
60877
|
opacity: .98
|
|
@@ -61225,14 +60879,14 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61225
60879
|
return o.position.set(Number(e.x), Number(e.y), Number(e.z)), r.add(o), t.add(r), Me.value = r, sj(), r;
|
|
61226
60880
|
}
|
|
61227
60881
|
function dr(e, t = null, n = "pick") {
|
|
61228
|
-
if (!
|
|
60882
|
+
if (!ai(e)) throw Error("拾取结果缺少有效三维坐标");
|
|
61229
60883
|
let r = {
|
|
61230
60884
|
x: Number(e.x),
|
|
61231
60885
|
y: Number(e.y),
|
|
61232
60886
|
z: Number(e.z)
|
|
61233
60887
|
};
|
|
61234
60888
|
lr(r), ur(r), Oe.value = r, ke.value = cr(t), Ae.value = n, Ee.value = "idle", Kn();
|
|
61235
|
-
let i = an(
|
|
60889
|
+
let i = an(si(r) || r);
|
|
61236
60890
|
return N.value = `已生成 ${De.value} 米球形范围`, J(`范围选点完成,球心坐标:${i}`), $n(n === "manual" ? "set" : "picked"), Zn(), !0;
|
|
61237
60891
|
}
|
|
61238
60892
|
function fr(e = {}) {
|
|
@@ -61244,7 +60898,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61244
60898
|
if (Ee.value !== "picking") return;
|
|
61245
60899
|
let t = sr(e);
|
|
61246
60900
|
if (!t?.point) {
|
|
61247
|
-
|
|
60901
|
+
Kt("本次点击未拾取到有效三维对象,请尝试直接点击巷道表面");
|
|
61248
60902
|
return;
|
|
61249
60903
|
}
|
|
61250
60904
|
try {
|
|
@@ -61260,11 +60914,11 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61260
60914
|
function pr(e, t = {}) {
|
|
61261
60915
|
let n = t ?? {}, r = n.coordinateSpace === "relative" ? "relative" : "absolute";
|
|
61262
60916
|
if (n.radius !== void 0 && !nr(n.radius, { silent: !0 })) return N.value = "范围选点失败:范围半径无效", J("范围选点失败:范围半径无效"), !1;
|
|
61263
|
-
let i = r === "relative" ?
|
|
60917
|
+
let i = r === "relative" ? ai(e) ? {
|
|
61264
60918
|
x: Number(e.x),
|
|
61265
60919
|
y: Number(e.y),
|
|
61266
60920
|
z: Number(e.z)
|
|
61267
|
-
} : null :
|
|
60921
|
+
} : null : ci(e);
|
|
61268
60922
|
if (!i) return N.value = "范围选点失败:坐标参数无效", J("范围选点失败:坐标参数无效"), !1;
|
|
61269
60923
|
Kn();
|
|
61270
60924
|
try {
|
|
@@ -61387,7 +61041,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61387
61041
|
return _n({ preserveStatus: !0 }), _e.value = "", B.value = [], he.value = {}, !0;
|
|
61388
61042
|
}
|
|
61389
61043
|
function Dr(e) {
|
|
61390
|
-
return B.value = cn(e),
|
|
61044
|
+
return B.value = cn(e), qz.includes(ve.value) || (ve.value = qz[0] ?? ""), _e.value && !Dt.value.some((e) => e.id === _e.value) && (_e.value = ""), pe.value = "ready", me.value = "", B.value;
|
|
61391
61045
|
}
|
|
61392
61046
|
function Or() {
|
|
61393
61047
|
return { orgCode: u.mineId };
|
|
@@ -61406,21 +61060,25 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61406
61060
|
pageSize: 10
|
|
61407
61061
|
};
|
|
61408
61062
|
}
|
|
61409
|
-
function jr(
|
|
61410
|
-
return
|
|
61063
|
+
function jr() {
|
|
61064
|
+
return { orgCode: u.mineId };
|
|
61411
61065
|
}
|
|
61412
61066
|
function Mr(e) {
|
|
61067
|
+
return e?.status === "fulfilled" && Array.isArray(e.value) ? e.value : [];
|
|
61068
|
+
}
|
|
61069
|
+
function Y(e) {
|
|
61413
61070
|
return e.filter((e) => e?.status === "rejected").map((e) => nn(e.reason));
|
|
61414
61071
|
}
|
|
61415
|
-
async function
|
|
61072
|
+
async function Nr() {
|
|
61416
61073
|
let e = await Promise.allSettled([
|
|
61417
61074
|
d.querySafetyMonitorPointList(Or()),
|
|
61418
61075
|
d.queryHydrologyMonitorDataList(kr()),
|
|
61419
|
-
d.queryBundleTubeSensorList(Ar())
|
|
61420
|
-
|
|
61421
|
-
|
|
61422
|
-
|
|
61423
|
-
|
|
61076
|
+
d.queryBundleTubeSensorList(Ar()),
|
|
61077
|
+
d.queryPersonPositionList(jr())
|
|
61078
|
+
]), [t, n, r, i] = e, a = Y(e);
|
|
61079
|
+
if (a.length === e.length) throw Error(a.join(";"));
|
|
61080
|
+
a.length && J(`部分监测点数据查询失败:${a.join(";")}`);
|
|
61081
|
+
let o = Mr(r).map((e, t) => {
|
|
61424
61082
|
let n = e?.id ?? e?.sensor_id ?? e?.station_id ?? e?.zdnum;
|
|
61425
61083
|
return {
|
|
61426
61084
|
...e,
|
|
@@ -61428,19 +61086,19 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61428
61086
|
type: zH
|
|
61429
61087
|
};
|
|
61430
61088
|
});
|
|
61431
|
-
return cn([
|
|
61432
|
-
...
|
|
61433
|
-
...
|
|
61434
|
-
...
|
|
61089
|
+
return Te.value = tn(Mr(i)), cn([
|
|
61090
|
+
...Mr(t),
|
|
61091
|
+
...Mr(n),
|
|
61092
|
+
...o
|
|
61435
61093
|
]);
|
|
61436
61094
|
}
|
|
61437
|
-
async function
|
|
61095
|
+
async function Pr({ forceReload: e = !1 } = {}) {
|
|
61438
61096
|
if (pe.value === "loading") return null;
|
|
61439
61097
|
if (pe.value === "ready" && !e) return cn(B.value);
|
|
61440
61098
|
let t = Le + 1;
|
|
61441
61099
|
Le = t, pe.value = "loading", me.value = "";
|
|
61442
61100
|
try {
|
|
61443
|
-
let e = await
|
|
61101
|
+
let e = await Nr();
|
|
61444
61102
|
if (Le !== t) return null;
|
|
61445
61103
|
let n = Dr(e);
|
|
61446
61104
|
return J(`监测点数据已初始化并显示:${n.length} 个`), cn(n);
|
|
@@ -61448,78 +61106,78 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61448
61106
|
return Le === t ? (Er(), pe.value = "error", me.value = nn(e), J(`监测点数据初始化失败:${me.value}`), null) : null;
|
|
61449
61107
|
}
|
|
61450
61108
|
}
|
|
61451
|
-
async function
|
|
61109
|
+
async function Fr() {
|
|
61452
61110
|
if (pe.value === "loading") return null;
|
|
61453
61111
|
try {
|
|
61454
|
-
let e = await
|
|
61112
|
+
let e = await Nr();
|
|
61455
61113
|
return J(`监测点数据查询完成:${e.length} 个`), e;
|
|
61456
61114
|
} catch (e) {
|
|
61457
61115
|
return J(`监测点数据查询失败:${nn(e)}`), null;
|
|
61458
61116
|
}
|
|
61459
61117
|
}
|
|
61460
|
-
async function
|
|
61461
|
-
return pe.value === "loading" ? null : (Er(), pe.value = "idle", me.value = "",
|
|
61118
|
+
async function X() {
|
|
61119
|
+
return pe.value === "loading" ? null : (Er(), pe.value = "idle", me.value = "", Pr({ forceReload: !0 }));
|
|
61462
61120
|
}
|
|
61463
|
-
function
|
|
61121
|
+
function Ir() {
|
|
61464
61122
|
return Te.value[0] ?? null;
|
|
61465
61123
|
}
|
|
61466
|
-
function
|
|
61124
|
+
function Lr(e) {
|
|
61467
61125
|
return Te.value.find((t) => t.sceneId === e) ?? null;
|
|
61468
61126
|
}
|
|
61469
|
-
function
|
|
61470
|
-
if (e == null || e === "") return
|
|
61471
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
61127
|
+
function Rr(e) {
|
|
61128
|
+
if (e == null || e === "") return Ir();
|
|
61129
|
+
if (typeof e == "number" && Number.isFinite(e)) return Lr(e);
|
|
61472
61130
|
if (typeof e == "string") {
|
|
61473
61131
|
let t = Nn(e);
|
|
61474
|
-
if (!t) return
|
|
61132
|
+
if (!t) return Ir();
|
|
61475
61133
|
let n = Number(e);
|
|
61476
61134
|
if (Number.isFinite(n)) {
|
|
61477
|
-
let e =
|
|
61135
|
+
let e = Lr(n);
|
|
61478
61136
|
if (e) return e;
|
|
61479
61137
|
}
|
|
61480
61138
|
return Te.value.find((e) => Nn(e.key) === t || Nn(e.name) === t) ?? null;
|
|
61481
61139
|
}
|
|
61482
61140
|
if (typeof e == "object") {
|
|
61483
61141
|
if (Number.isFinite(Number(e.sceneId))) {
|
|
61484
|
-
let t =
|
|
61142
|
+
let t = Lr(Number(e.sceneId));
|
|
61485
61143
|
if (t) return t;
|
|
61486
61144
|
}
|
|
61487
|
-
if (typeof e.key == "string" || typeof e.name == "string") return
|
|
61145
|
+
if (typeof e.key == "string" || typeof e.name == "string") return Rr(e.key ?? e.name);
|
|
61488
61146
|
}
|
|
61489
61147
|
return null;
|
|
61490
61148
|
}
|
|
61491
|
-
function
|
|
61149
|
+
function zr(e) {
|
|
61492
61150
|
e && (e.currentPosition = { ...e.startPoint }, e.currentPointIndex = 0, e.currentTimeLabel = e.startTimeLabel, e.isMoving = !1, e.status = e.pointsHistory.length > 1 ? "待命" : "无轨迹可播放");
|
|
61493
61151
|
}
|
|
61494
|
-
function
|
|
61152
|
+
function Br() {
|
|
61495
61153
|
Te.value.forEach((e) => {
|
|
61496
|
-
|
|
61154
|
+
zr(e);
|
|
61497
61155
|
});
|
|
61498
61156
|
}
|
|
61499
|
-
function
|
|
61500
|
-
let e =
|
|
61157
|
+
function Vr() {
|
|
61158
|
+
let e = Ir();
|
|
61501
61159
|
if (!e?.currentPosition) {
|
|
61502
61160
|
A.value = null, M.value = !1;
|
|
61503
61161
|
return;
|
|
61504
61162
|
}
|
|
61505
61163
|
A.value = { ...e.currentPosition }, M.value = e.isMoving === !0;
|
|
61506
61164
|
}
|
|
61507
|
-
function
|
|
61165
|
+
function Hr(e) {
|
|
61508
61166
|
let t = G.get(e);
|
|
61509
61167
|
t !== void 0 && (window.clearTimeout(t), G.delete(e));
|
|
61510
61168
|
let n = Ie.get(e);
|
|
61511
61169
|
n !== void 0 && (window.clearTimeout(n), Ie.delete(e));
|
|
61512
61170
|
}
|
|
61513
|
-
function
|
|
61171
|
+
function Ur() {
|
|
61514
61172
|
let e = new Set([...G.keys(), ...Ie.keys()]);
|
|
61515
61173
|
Array.from(e).forEach((e) => {
|
|
61516
|
-
|
|
61174
|
+
Hr(e);
|
|
61517
61175
|
});
|
|
61518
61176
|
}
|
|
61519
|
-
function
|
|
61520
|
-
return e.currentPosition = { ...t }, e.currentPointIndex = n.pointIndex ?? e.currentPointIndex, typeof n.timeLabel == "string" && n.timeLabel && (e.currentTimeLabel = n.timeLabel), typeof n.isMoving == "boolean" && (e.isMoving = n.isMoving), typeof n.status == "string" && n.status && (e.status = n.status),
|
|
61177
|
+
function Wr(e, t, n = {}) {
|
|
61178
|
+
return e.currentPosition = { ...t }, e.currentPointIndex = n.pointIndex ?? e.currentPointIndex, typeof n.timeLabel == "string" && n.timeLabel && (e.currentTimeLabel = n.timeLabel), typeof n.isMoving == "boolean" && (e.isMoving = n.isMoving), typeof n.status == "string" && n.status && (e.status = n.status), Vr(), !0;
|
|
61521
61179
|
}
|
|
61522
|
-
function
|
|
61180
|
+
function Gr(e) {
|
|
61523
61181
|
let t = e?.pointsHistory?.length - 1;
|
|
61524
61182
|
if (!Number.isFinite(t) || t <= 0) return [];
|
|
61525
61183
|
let n = [];
|
|
@@ -61528,14 +61186,14 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61528
61186
|
n.push(Math.max(r - i, 0));
|
|
61529
61187
|
}
|
|
61530
61188
|
let r = n.reduce((e, t) => e + t, 0);
|
|
61531
|
-
if (r <= 0) return n.map(() =>
|
|
61532
|
-
let i = Math.min(Math.max(t *
|
|
61189
|
+
if (r <= 0) return n.map(() => _H);
|
|
61190
|
+
let i = Math.min(Math.max(t * _H, 6e3), gH);
|
|
61533
61191
|
return n.map((e) => {
|
|
61534
61192
|
let t = Math.round(e / r * i);
|
|
61535
|
-
return Math.min(
|
|
61193
|
+
return Math.min(bH, Math.max(vH, t));
|
|
61536
61194
|
});
|
|
61537
61195
|
}
|
|
61538
|
-
function
|
|
61196
|
+
function Kr(e, t, n) {
|
|
61539
61197
|
let r = Math.min(1, Math.max(0, Number(n) || 0));
|
|
61540
61198
|
return {
|
|
61541
61199
|
x: Number(e.x) + (Number(t.x) - Number(e.x)) * r,
|
|
@@ -61543,31 +61201,31 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61543
61201
|
z: Number(e.z) + (Number(t.z) - Number(e.z)) * r
|
|
61544
61202
|
};
|
|
61545
61203
|
}
|
|
61546
|
-
function
|
|
61547
|
-
let t =
|
|
61548
|
-
t && (t.isMoving = !1, t.status = `移动完成:${t.currentTimeLabel}`,
|
|
61204
|
+
function qr(e) {
|
|
61205
|
+
let t = Lr(e);
|
|
61206
|
+
t && (t.isMoving = !1, t.status = `移动完成:${t.currentTimeLabel}`, Vr());
|
|
61549
61207
|
}
|
|
61550
|
-
function
|
|
61551
|
-
let r =
|
|
61208
|
+
function Jr(e, t, n) {
|
|
61209
|
+
let r = Lr(e);
|
|
61552
61210
|
if (!r) return;
|
|
61553
61211
|
if (t >= r.pointsHistory.length - 1) {
|
|
61554
61212
|
let t = window.setTimeout(() => {
|
|
61555
|
-
Ie.delete(e),
|
|
61556
|
-
},
|
|
61213
|
+
Ie.delete(e), qr(e);
|
|
61214
|
+
}, xH);
|
|
61557
61215
|
Ie.set(e, t);
|
|
61558
61216
|
return;
|
|
61559
61217
|
}
|
|
61560
|
-
let i = r.pointsHistory[t], a = r.pointsHistory[t + 1], o = n[t] ??
|
|
61561
|
-
let r =
|
|
61218
|
+
let i = r.pointsHistory[t], a = r.pointsHistory[t + 1], o = n[t] ?? _H, s = typeof performance < "u" ? performance.now() : Date.now(), c = () => {
|
|
61219
|
+
let r = Lr(e);
|
|
61562
61220
|
if (!r) return;
|
|
61563
61221
|
let l = typeof performance < "u" ? performance.now() : Date.now(), u = Math.min(1, Math.max(0, (l - s) / o));
|
|
61564
|
-
if (
|
|
61222
|
+
if (Wr(r, Kr(i.point, a.point, u), {
|
|
61565
61223
|
pointIndex: u >= 1 ? t + 1 : t,
|
|
61566
61224
|
timeLabel: u >= 1 ? a.timeLabel : i.timeLabel,
|
|
61567
61225
|
isMoving: !0,
|
|
61568
61226
|
status: `轨迹播放中:${t + 2}/${r.pointsHistory.length}`
|
|
61569
61227
|
}), u >= 1) {
|
|
61570
|
-
G.delete(e),
|
|
61228
|
+
G.delete(e), Jr(e, t + 1, n);
|
|
61571
61229
|
return;
|
|
61572
61230
|
}
|
|
61573
61231
|
let d = window.setTimeout(c, 16);
|
|
@@ -61575,45 +61233,45 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61575
61233
|
};
|
|
61576
61234
|
c();
|
|
61577
61235
|
}
|
|
61578
|
-
function
|
|
61579
|
-
let t =
|
|
61580
|
-
return t ? t.pointsHistory.length < 2 ? (t.status = "无轨迹可播放", !1) : (
|
|
61236
|
+
function Yr(e) {
|
|
61237
|
+
let t = Lr(e);
|
|
61238
|
+
return t ? t.pointsHistory.length < 2 ? (t.status = "无轨迹可播放", !1) : (Hr(e), zr(t), Wr(t, t.startPoint, {
|
|
61581
61239
|
pointIndex: 0,
|
|
61582
61240
|
timeLabel: t.startTimeLabel,
|
|
61583
61241
|
isMoving: !0,
|
|
61584
61242
|
status: `轨迹播放开始:${t.startTimeLabel}`
|
|
61585
|
-
}),
|
|
61243
|
+
}), Kt(`人员轨迹播放开始:${t.name},轨迹点 ${t.pointsHistory.length} 个`), Jr(e, 0, Gr(t)), !0) : !1;
|
|
61586
61244
|
}
|
|
61587
|
-
function
|
|
61588
|
-
let n =
|
|
61589
|
-
return n ? (
|
|
61245
|
+
function Xr(e, t = "已停止移动") {
|
|
61246
|
+
let n = Lr(e);
|
|
61247
|
+
return n ? (Hr(e), n.isMoving = !1, n.status = t, Vr(), !0) : !1;
|
|
61590
61248
|
}
|
|
61591
|
-
function
|
|
61592
|
-
let t =
|
|
61593
|
-
return t ?
|
|
61594
|
-
}
|
|
61595
|
-
function Zr() {
|
|
61596
|
-
Hr(), zr(), M.value = !1, A.value = null;
|
|
61249
|
+
function Zr(e) {
|
|
61250
|
+
let t = Rr(e);
|
|
61251
|
+
return t ? Yr(t.sceneId) : !1;
|
|
61597
61252
|
}
|
|
61598
61253
|
function Qr() {
|
|
61599
|
-
|
|
61254
|
+
Ur(), Br(), M.value = !1, A.value = null;
|
|
61600
61255
|
}
|
|
61601
61256
|
function $r() {
|
|
61602
|
-
|
|
61257
|
+
return Zr(Ir()?.sceneId);
|
|
61258
|
+
}
|
|
61259
|
+
function ei() {
|
|
61260
|
+
let e = Ir();
|
|
61603
61261
|
if (e) {
|
|
61604
|
-
let t =
|
|
61262
|
+
let t = Xr(e.sceneId, "轨迹播放已停止");
|
|
61605
61263
|
return N.value = t ? "人员轨迹播放已停止" : "停止轨迹播放失败", t;
|
|
61606
61264
|
}
|
|
61607
61265
|
return M.value = !1, N.value = "没有可用人员轨迹数据", !1;
|
|
61608
61266
|
}
|
|
61609
|
-
function
|
|
61610
|
-
return M.value ? (
|
|
61267
|
+
function ti(e) {
|
|
61268
|
+
return M.value ? (ei(), !0) : $r(e);
|
|
61611
61269
|
}
|
|
61612
|
-
function
|
|
61613
|
-
let e =
|
|
61614
|
-
return e ? (
|
|
61270
|
+
function ni() {
|
|
61271
|
+
let e = Ir();
|
|
61272
|
+
return e ? (Hr(e.sceneId), zr(e), Vr(), N.value = `人员监测点已初始化:${e.name}`, !0) : (N.value = "没有可用人员轨迹数据", !1);
|
|
61615
61273
|
}
|
|
61616
|
-
function
|
|
61274
|
+
function ri(e, t, n) {
|
|
61617
61275
|
let r = Number(e), i = Number(t), a = Number(n);
|
|
61618
61276
|
return !Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
61619
61277
|
x: r,
|
|
@@ -61621,13 +61279,13 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61621
61279
|
z: a
|
|
61622
61280
|
};
|
|
61623
61281
|
}
|
|
61624
|
-
function
|
|
61282
|
+
function ii(e) {
|
|
61625
61283
|
return Number.isFinite(Number(e));
|
|
61626
61284
|
}
|
|
61627
|
-
function
|
|
61628
|
-
return e &&
|
|
61285
|
+
function ai(e) {
|
|
61286
|
+
return e && ii(e.x) && ii(e.y) && ii(e.z);
|
|
61629
61287
|
}
|
|
61630
|
-
function
|
|
61288
|
+
function oi() {
|
|
61631
61289
|
let e = nj()?.basePoint ?? {
|
|
61632
61290
|
x: 0,
|
|
61633
61291
|
y: 0,
|
|
@@ -61639,29 +61297,29 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61639
61297
|
z: Number(e.z ?? 0)
|
|
61640
61298
|
};
|
|
61641
61299
|
}
|
|
61642
|
-
function
|
|
61643
|
-
if (!
|
|
61644
|
-
let t =
|
|
61300
|
+
function si(e) {
|
|
61301
|
+
if (!ai(e)) return null;
|
|
61302
|
+
let t = oi();
|
|
61645
61303
|
return {
|
|
61646
61304
|
x: Number(e.x) + t.x,
|
|
61647
61305
|
y: Number(e.y) + t.y,
|
|
61648
61306
|
z: Number(e.z) + t.z
|
|
61649
61307
|
};
|
|
61650
61308
|
}
|
|
61651
|
-
function
|
|
61652
|
-
if (!
|
|
61653
|
-
let t =
|
|
61309
|
+
function ci(e) {
|
|
61310
|
+
if (!ai(e)) return null;
|
|
61311
|
+
let t = oi();
|
|
61654
61312
|
return {
|
|
61655
61313
|
x: Number(e.x) - t.x,
|
|
61656
61314
|
y: Number(e.y) - t.y,
|
|
61657
61315
|
z: Number(e.z) - t.z
|
|
61658
61316
|
};
|
|
61659
61317
|
}
|
|
61660
|
-
function
|
|
61318
|
+
function li() {
|
|
61661
61319
|
let e = nj(), t = rj();
|
|
61662
61320
|
return t?.camera ?? t?.viewportCamera ?? e?.camera ?? null;
|
|
61663
61321
|
}
|
|
61664
|
-
function
|
|
61322
|
+
function ui() {
|
|
61665
61323
|
let e = nj(), t = rj(), n = ij();
|
|
61666
61324
|
return [
|
|
61667
61325
|
t?.controls,
|
|
@@ -61676,8 +61334,8 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61676
61334
|
e?.orbitControls
|
|
61677
61335
|
].find((e) => e && typeof e == "object") ?? null;
|
|
61678
61336
|
}
|
|
61679
|
-
function
|
|
61680
|
-
return
|
|
61337
|
+
function di() {
|
|
61338
|
+
return Wt.value.map((e) => ({
|
|
61681
61339
|
key: e.key,
|
|
61682
61340
|
name: e.name,
|
|
61683
61341
|
cameraPos: {
|
|
@@ -61692,12 +61350,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61692
61350
|
}
|
|
61693
61351
|
}));
|
|
61694
61352
|
}
|
|
61695
|
-
function
|
|
61353
|
+
function fi() {
|
|
61696
61354
|
try {
|
|
61697
|
-
let e =
|
|
61355
|
+
let e = li(), t = ui();
|
|
61698
61356
|
if (!e?.position || !t?.center) throw Error("当前 SDK 未提供可读取的 camera.position 或 controls.center");
|
|
61699
61357
|
let n = {
|
|
61700
|
-
name:
|
|
61358
|
+
name: Gt.value === "未切换" ? "当前视角" : Gt.value,
|
|
61701
61359
|
cameraPos: {
|
|
61702
61360
|
x: Number(e.position.x),
|
|
61703
61361
|
y: Number(e.position.y),
|
|
@@ -61714,12 +61372,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61714
61372
|
return J(`读取当前视口视角失败:${nn(e)}`), null;
|
|
61715
61373
|
}
|
|
61716
61374
|
}
|
|
61717
|
-
function
|
|
61375
|
+
function pi(e) {
|
|
61718
61376
|
let t = typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "当前视角";
|
|
61719
61377
|
try {
|
|
61720
61378
|
let n = rj();
|
|
61721
|
-
|
|
61722
|
-
let r =
|
|
61379
|
+
li();
|
|
61380
|
+
let r = ui(), i = Pn(), a = ri(e?.cameraPos?.x, e?.cameraPos?.y, e?.cameraPos?.z), o = ri(e?.viewCenter?.x, e?.viewCenter?.y, e?.viewCenter?.z);
|
|
61723
61381
|
if (!a || !o) throw Error("视角参数缺少有效的 cameraPos 或 viewCenter");
|
|
61724
61382
|
if (!n?.camera?.position || !r?.center && !r?.target) throw Error("当前 SDK 未提供可恢复视角的 camera.position 或 controls.center/target");
|
|
61725
61383
|
return Mn(n, r, new i.Vector3(a.x, a.y, a.z), new i.Vector3(o.x, o.y, o.z), i, () => {
|
|
@@ -61729,17 +61387,17 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61729
61387
|
return N.value = `${t}恢复失败:${nn(e)}`, J(`${t}恢复失败:${nn(e)}`), !1;
|
|
61730
61388
|
}
|
|
61731
61389
|
}
|
|
61732
|
-
function
|
|
61390
|
+
function mi(e) {
|
|
61733
61391
|
if (typeof e == "string" && e.trim()) {
|
|
61734
61392
|
let t = Nn(e);
|
|
61735
|
-
return
|
|
61393
|
+
return Wt.value.find((e) => Nn(e.key) === t || Nn(e.name) === t) ?? null;
|
|
61736
61394
|
}
|
|
61737
61395
|
if (e && typeof e == "object") {
|
|
61738
61396
|
if (typeof e.key == "string" || typeof e.id == "string" || typeof e.name == "string") {
|
|
61739
|
-
let t =
|
|
61397
|
+
let t = mi(e.key ?? e.id ?? e.name);
|
|
61740
61398
|
if (t) return t;
|
|
61741
61399
|
}
|
|
61742
|
-
let t =
|
|
61400
|
+
let t = Ut(e, Wt.value.length);
|
|
61743
61401
|
if (t) return {
|
|
61744
61402
|
...t,
|
|
61745
61403
|
isCustom: !0
|
|
@@ -61747,18 +61405,18 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61747
61405
|
}
|
|
61748
61406
|
return null;
|
|
61749
61407
|
}
|
|
61750
|
-
function
|
|
61408
|
+
function hi(e, t) {
|
|
61751
61409
|
try {
|
|
61752
61410
|
let n = Pn(), r = nj(), i = rj(), a = r?.basePoint ?? {
|
|
61753
61411
|
x: 0,
|
|
61754
61412
|
y: 0,
|
|
61755
61413
|
z: 0
|
|
61756
61414
|
}, o = new n.Vector3(Number(e.x) - Number(a.x ?? 0), Number(e.y) - Number(a.y ?? 0), Number(e.z) - Number(a.z ?? 0));
|
|
61757
|
-
|
|
61415
|
+
Kt(`准备聚焦${t}:绝对坐标(${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)}),basePoint(${Number(a.x ?? 0).toFixed(2)}, ${Number(a.y ?? 0).toFixed(2)}, ${Number(a.z ?? 0).toFixed(2)}),相对坐标(${o.x.toFixed(2)}, ${o.y.toFixed(2)}, ${o.z.toFixed(2)})`), N.value = `准备聚焦:${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)}`;
|
|
61758
61416
|
let s = i?.signals?.boxFocused?.dispatch;
|
|
61759
61417
|
if (typeof s == "function") {
|
|
61760
|
-
let r = new n.Box3(), a = new n.Vector3(
|
|
61761
|
-
return r.setFromCenterAndSize(o.clone(), a), s.call(i.signals.boxFocused, r), N.value = `聚焦接口已调用:距离 ${
|
|
61418
|
+
let r = new n.Box3(), a = new n.Vector3(yH, yH, yH);
|
|
61419
|
+
return r.setFromCenterAndSize(o.clone(), a), s.call(i.signals.boxFocused, r), N.value = `聚焦接口已调用:距离 ${yH}`, J(`已拉近聚焦到${t}:${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)},距离 ${yH}`), !0;
|
|
61762
61420
|
}
|
|
61763
61421
|
if (typeof i?.focusPoint != "function") throw Error("editor.focusPoint 与 editor.signals.boxFocused 均不存在");
|
|
61764
61422
|
return i.focusPoint(null, o), N.value = "聚焦接口已调用:使用默认聚焦", J(`已聚焦到${t}:${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)},当前环境未提供 boxFocused,已回退 focusPoint`), !0;
|
|
@@ -61766,89 +61424,89 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61766
61424
|
return N.value = `聚焦失败:${nn(e)}`, J(`聚焦${t}失败:${nn(e)}`), !1;
|
|
61767
61425
|
}
|
|
61768
61426
|
}
|
|
61769
|
-
function
|
|
61427
|
+
function gi() {
|
|
61770
61428
|
N.value = `点击聚焦按钮:${(/* @__PURE__ */ new Date()).toLocaleTimeString()}`;
|
|
61771
|
-
let e =
|
|
61772
|
-
return A.value ?
|
|
61429
|
+
let e = Ir()?.name || "演示人员";
|
|
61430
|
+
return A.value ? hi(A.value, e) : (N.value = `${e}尚未初始化,无法聚焦`, J(`${e}尚未初始化,无法聚焦`), !1);
|
|
61773
61431
|
}
|
|
61774
|
-
function
|
|
61432
|
+
function _i(e, t, n) {
|
|
61775
61433
|
N.value = `点击移动视角:${(/* @__PURE__ */ new Date()).toLocaleTimeString()}`;
|
|
61776
|
-
let r =
|
|
61777
|
-
return r ?
|
|
61434
|
+
let r = ri(e, t, n);
|
|
61435
|
+
return r ? hi(r, "目标点") : (N.value = "移动视角失败:坐标参数无效", J("移动视角失败:坐标参数无效"), !1);
|
|
61778
61436
|
}
|
|
61779
|
-
function
|
|
61437
|
+
function vi(e) {
|
|
61780
61438
|
console.log("focusMonitorPoint", e);
|
|
61781
61439
|
let t = null;
|
|
61782
|
-
if (typeof e == "string" && e.trim() ? t =
|
|
61783
|
-
let n =
|
|
61784
|
-
return r && (ve.value = r), i &&
|
|
61785
|
-
}
|
|
61786
|
-
function vi(e) {
|
|
61787
|
-
let t = pi(e);
|
|
61788
|
-
return !t || !fi(t) ? !1 : (W.value = t.isCustom ? "" : t.key, !0);
|
|
61440
|
+
if (typeof e == "string" && e.trim() ? t = Dt.value.find((t) => t.id === e.trim()) ?? null : e && typeof e == "object" && (t = typeof e.id == "string" && e.id.trim() ? Dt.value.find((t) => t.id === e.id.trim()) ?? e : e), !t) return !1;
|
|
61441
|
+
let n = Tt(t), r = ot(n), i = at(n), a = ct(n);
|
|
61442
|
+
return r && (ve.value = r), i && Dt.value.some((e) => e.id === i) ? dn(n, { focus: !0 }) : ai(a) ? hi(a, st(n)) : !1;
|
|
61789
61443
|
}
|
|
61790
|
-
function yi() {
|
|
61791
|
-
|
|
61444
|
+
function yi(e) {
|
|
61445
|
+
let t = mi(e);
|
|
61446
|
+
return !t || !pi(t) ? !1 : (W.value = t.isCustom ? "" : t.key, !0);
|
|
61792
61447
|
}
|
|
61793
61448
|
function bi() {
|
|
61794
|
-
|
|
61795
|
-
if (!e) return Ut("区域要素与巷道加载完成,未配置默认视角,保留当前视图"), !1;
|
|
61796
|
-
let t = vi(e);
|
|
61797
|
-
return t && Ut(`已应用默认视角:${e.name}`), t;
|
|
61449
|
+
return Wt.value.length === 0 ? null : Wt.value.find((e) => e.name === SH) ?? Wt.value[0];
|
|
61798
61450
|
}
|
|
61799
61451
|
function xi() {
|
|
61800
|
-
|
|
61452
|
+
let e = bi();
|
|
61453
|
+
if (!e) return Kt("区域要素与巷道加载完成,未配置默认视角,保留当前视图"), !1;
|
|
61454
|
+
let t = yi(e);
|
|
61455
|
+
return t && Kt(`已应用默认视角:${e.name}`), t;
|
|
61801
61456
|
}
|
|
61802
61457
|
function Si() {
|
|
61803
|
-
return
|
|
61458
|
+
return !Vt.value || Wt.value.length === 0 ? !1 : (be.value = !be.value, N.value = be.value ? "视角面板已显示" : "视角面板已隐藏", J(N.value), !0);
|
|
61804
61459
|
}
|
|
61805
61460
|
function Ci() {
|
|
61806
|
-
return
|
|
61461
|
+
return Lt.value ? (U.value = !U.value, N.value = U.value ? "监测点面板已显示" : "监测点面板已隐藏", J(N.value), !0) : !1;
|
|
61807
61462
|
}
|
|
61808
61463
|
function wi() {
|
|
61809
|
-
return
|
|
61464
|
+
return It.value ? (ye.value = !ye.value, N.value = ye.value ? "调试面板已显示" : "调试面板已隐藏", J(N.value), !0) : !1;
|
|
61810
61465
|
}
|
|
61811
61466
|
function Ti() {
|
|
61812
|
-
|
|
61813
|
-
let e = !Se.value;
|
|
61814
|
-
return e && !Gt() ? !1 : (Se.value = e, N.value = Se.value ? "水蔓延控制面板已显示" : "水蔓延控制面板已隐藏", J(N.value), !0);
|
|
61467
|
+
return Rt.value ? (xe.value = !xe.value, !xe.value && Ee.value === "picking" ? (Kn(), N.value = "范围选点面板已隐藏,已停止当前拾取", J("范围选点面板已隐藏,已停止当前拾取"), !0) : (N.value = xe.value ? "范围选点面板已显示" : "范围选点面板已隐藏", J(N.value), !0)) : !1;
|
|
61815
61468
|
}
|
|
61816
61469
|
function Ei() {
|
|
61817
|
-
|
|
61470
|
+
if (!zt.value) return !1;
|
|
61471
|
+
let e = !Se.value;
|
|
61472
|
+
return e && !Jt() ? !1 : (Se.value = e, N.value = Se.value ? "水蔓延控制面板已显示" : "水蔓延控制面板已隐藏", J(N.value), !0);
|
|
61818
61473
|
}
|
|
61819
61474
|
function Di() {
|
|
61820
|
-
return
|
|
61475
|
+
return zt.value ? Se.value ? !0 : Ei() : !1;
|
|
61821
61476
|
}
|
|
61822
61477
|
function Oi() {
|
|
61823
|
-
return
|
|
61478
|
+
return zt.value ? Se.value ? Ei() : !0 : !1;
|
|
61824
61479
|
}
|
|
61825
61480
|
function ki() {
|
|
61826
|
-
return
|
|
61481
|
+
return Yt("startSelect", "已进入水蔓延选点流程");
|
|
61827
61482
|
}
|
|
61828
61483
|
function Ai() {
|
|
61829
|
-
return
|
|
61484
|
+
return ki();
|
|
61830
61485
|
}
|
|
61831
61486
|
function ji() {
|
|
61832
|
-
return
|
|
61487
|
+
return Yt("endSelect", "已结束水蔓延选点流程");
|
|
61833
61488
|
}
|
|
61834
61489
|
function Mi() {
|
|
61835
|
-
return
|
|
61490
|
+
return ji();
|
|
61836
61491
|
}
|
|
61837
61492
|
function Ni() {
|
|
61838
|
-
return
|
|
61493
|
+
return Yt("start", "已开始水蔓延演示");
|
|
61839
61494
|
}
|
|
61840
61495
|
function Pi() {
|
|
61841
|
-
|
|
61842
|
-
return e && (Se.value = !1), e;
|
|
61496
|
+
return Ni();
|
|
61843
61497
|
}
|
|
61844
61498
|
function Fi() {
|
|
61845
|
-
|
|
61499
|
+
let e = Yt("clear", "已取消水蔓延演示并清除效果");
|
|
61500
|
+
return e && (Se.value = !1), e;
|
|
61846
61501
|
}
|
|
61847
61502
|
function Ii() {
|
|
61848
|
-
|
|
61503
|
+
return Fi();
|
|
61504
|
+
}
|
|
61505
|
+
function Z() {
|
|
61506
|
+
if (!Bt.value) return !1;
|
|
61849
61507
|
let e = !Ce.value;
|
|
61850
61508
|
if (e) {
|
|
61851
|
-
let e =
|
|
61509
|
+
let e = Zt();
|
|
61852
61510
|
if (!e) return !1;
|
|
61853
61511
|
try {
|
|
61854
61512
|
e.clear?.();
|
|
@@ -61858,36 +61516,36 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61858
61516
|
}
|
|
61859
61517
|
return Ce.value = e, N.value = Ce.value ? "避灾线路控制面板已显示" : "避灾线路控制面板已隐藏", J(N.value), !0;
|
|
61860
61518
|
}
|
|
61861
|
-
function Z() {
|
|
61862
|
-
return Yt("startSelectRoute", "已进入避灾线路途经点拾取流程");
|
|
61863
|
-
}
|
|
61864
61519
|
function Li() {
|
|
61865
|
-
return
|
|
61520
|
+
return Qt("startSelectRoute", "已进入避灾线路途经点拾取流程");
|
|
61866
61521
|
}
|
|
61867
61522
|
function Ri() {
|
|
61868
|
-
return
|
|
61523
|
+
return Qt("startSelectObstacle", "已进入避灾线路障碍路段拾取流程");
|
|
61524
|
+
}
|
|
61525
|
+
function zi() {
|
|
61526
|
+
return Qt("endSelect", "已结束避灾线路拾取流程");
|
|
61869
61527
|
}
|
|
61870
|
-
async function
|
|
61528
|
+
async function Bi() {
|
|
61871
61529
|
if (we.value) return !1;
|
|
61872
61530
|
we.value = !0, N.value = "正在生成避灾线路", J(N.value);
|
|
61873
61531
|
try {
|
|
61874
|
-
let e =
|
|
61875
|
-
return e ? (console.log("避灾线路 selectObjsRoute:", e.selectObjsRoute), await
|
|
61532
|
+
let e = Zt();
|
|
61533
|
+
return e ? (console.log("避灾线路 selectObjsRoute:", e.selectObjsRoute), await Qt("compute", "避灾线路已生成", e)) : !1;
|
|
61876
61534
|
} finally {
|
|
61877
61535
|
we.value = !1;
|
|
61878
61536
|
}
|
|
61879
61537
|
}
|
|
61880
|
-
function Bi() {
|
|
61881
|
-
return Yt("pause", "已暂停避灾线路");
|
|
61882
|
-
}
|
|
61883
61538
|
function Vi() {
|
|
61884
|
-
return
|
|
61539
|
+
return Qt("pause", "已暂停避灾线路");
|
|
61540
|
+
}
|
|
61541
|
+
function Hi() {
|
|
61542
|
+
return Qt("resume", "已继续避灾线路");
|
|
61885
61543
|
}
|
|
61886
|
-
async function
|
|
61887
|
-
let e = await
|
|
61544
|
+
async function Ui() {
|
|
61545
|
+
let e = await Qt("clear", "已清除避灾线路");
|
|
61888
61546
|
return e && (we.value = !1), e;
|
|
61889
61547
|
}
|
|
61890
|
-
function
|
|
61548
|
+
function Wi(e) {
|
|
61891
61549
|
if (!Array.isArray(e) || e.length === 0) return;
|
|
61892
61550
|
let t = rj()?.manager?.modules?.lanemodulen;
|
|
61893
61551
|
if (!t || typeof t.toggleLaneMaterial != "function") throw Error("当前三维实例缺少巷道材质切换接口");
|
|
@@ -61895,13 +61553,13 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61895
61553
|
t.toggleLaneMaterial(e, "glass");
|
|
61896
61554
|
}), (Array.isArray(t.typeGroup?.children) ? t.typeGroup.children : []).forEach((e) => {
|
|
61897
61555
|
(Array.isArray(e?.children) ? e.children : []).forEach((e, t) => {
|
|
61898
|
-
|
|
61556
|
+
e.children[1] && (e.children[1].visible = !1), (Array.isArray(e?.material) ? e.material : [e?.material]).forEach((e, t) => {
|
|
61899
61557
|
e && (e.transparent = !0, e.opacity = t == 1 ? 1 : .5, e.needsUpdate = !0);
|
|
61900
61558
|
});
|
|
61901
61559
|
});
|
|
61902
61560
|
}), sj();
|
|
61903
61561
|
}
|
|
61904
|
-
function
|
|
61562
|
+
function Gi(e, t) {
|
|
61905
61563
|
let n = (rj()?.manager?.modules?.regionmodule)?.getLayerGroup?.(e.layerName);
|
|
61906
61564
|
if (!n) return !1;
|
|
61907
61565
|
let r = new Set(Cr(e)), i = !1;
|
|
@@ -61911,21 +61569,21 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61911
61569
|
gr(e).some((e) => r.has(e)) && (e.visible = t, i = !0);
|
|
61912
61570
|
}), i;
|
|
61913
61571
|
}
|
|
61914
|
-
function
|
|
61572
|
+
function Ki(e, t) {
|
|
61915
61573
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
61916
61574
|
let n = { ...ue.value }, r = 0;
|
|
61917
61575
|
return e.forEach((e) => {
|
|
61918
|
-
|
|
61576
|
+
Gi(e, t) && (n[e.key] = t, r += 1);
|
|
61919
61577
|
}), ue.value = n, T.value = t, sj(), r;
|
|
61920
61578
|
}
|
|
61921
|
-
function
|
|
61579
|
+
function qi(e, t) {
|
|
61922
61580
|
let n = t?.target, r = n?.checked === !0, i = ue.value[e.key] !== !1;
|
|
61923
61581
|
ue.value = {
|
|
61924
61582
|
...ue.value,
|
|
61925
61583
|
[e.key]: r
|
|
61926
61584
|
};
|
|
61927
61585
|
try {
|
|
61928
|
-
if (!
|
|
61586
|
+
if (!Gi(e, r)) throw Error(`未找到区域对象: ${e.displayName}`);
|
|
61929
61587
|
sj(), T.value = Ue.value.some((e) => ue.value[e.key] !== !1), J(`${e.typeLabel || "区域"}显隐已更新:${e.displayName} -> ${r ? "显示" : "隐藏"}`);
|
|
61930
61588
|
} catch (t) {
|
|
61931
61589
|
ue.value = {
|
|
@@ -61934,7 +61592,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61934
61592
|
}, n && (n.checked = i), J(`区域要素显隐更新失败:${nn(t)}`);
|
|
61935
61593
|
}
|
|
61936
61594
|
}
|
|
61937
|
-
function
|
|
61595
|
+
function Ji(e, t) {
|
|
61938
61596
|
let n = (rj()?.manager?.modules?.lanemodulen)?.getLayerGroup?.(e.layerName);
|
|
61939
61597
|
if (!n) return !1;
|
|
61940
61598
|
t && (n.visible = !0);
|
|
@@ -61947,14 +61605,14 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61947
61605
|
gr(e).some((e) => r.has(e)) && (e.visible = t, i = !0);
|
|
61948
61606
|
}), i ||= (n.visible = t, !0), i;
|
|
61949
61607
|
}
|
|
61950
|
-
function
|
|
61608
|
+
function Yi(e, t) {
|
|
61951
61609
|
let n = t?.target, r = n?.checked === !0, i = fe.value[e.key] !== !1;
|
|
61952
61610
|
fe.value = {
|
|
61953
61611
|
...fe.value,
|
|
61954
61612
|
[e.key]: r
|
|
61955
61613
|
};
|
|
61956
61614
|
try {
|
|
61957
|
-
if (!
|
|
61615
|
+
if (!Ji(e, r)) throw Error(`未找到巷道对象: ${e.displayName}`);
|
|
61958
61616
|
sj(), O.value = de.value.some((e) => fe.value[e.key] !== !1), J(`巷道显隐已更新:${e.displayName} -> ${r ? "显示" : "隐藏"}`);
|
|
61959
61617
|
} catch (t) {
|
|
61960
61618
|
fe.value = {
|
|
@@ -61963,7 +61621,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61963
61621
|
}, n && (n.checked = i), J(`巷道显隐更新失败:${nn(t)}`);
|
|
61964
61622
|
}
|
|
61965
61623
|
}
|
|
61966
|
-
function
|
|
61624
|
+
function Xi(e, t) {
|
|
61967
61625
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
61968
61626
|
let n = rj()?.manager?.modules?.lanemodulen, r = [...new Set(e.map((e) => typeof e?.layerName == "string" ? e.layerName.trim() : "").filter(Boolean))], i = 0;
|
|
61969
61627
|
r.forEach((e) => {
|
|
@@ -61977,24 +61635,24 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61977
61635
|
a[e.key] = t;
|
|
61978
61636
|
}), fe.value = a, O.value = t, sj(), i;
|
|
61979
61637
|
}
|
|
61980
|
-
function
|
|
61638
|
+
function Zi() {
|
|
61981
61639
|
if (de.value.length === 0) {
|
|
61982
61640
|
N.value = "当前没有可切换的巷道";
|
|
61983
61641
|
return;
|
|
61984
61642
|
}
|
|
61985
|
-
let e = !O.value, t =
|
|
61643
|
+
let e = !O.value, t = Xi(de.value, e);
|
|
61986
61644
|
N.value = e ? `已显示 ${t} 条巷道` : `已隐藏 ${t} 条巷道`, J(e ? `已批量显示巷道:${t} 条` : `已批量隐藏巷道:${t} 条`);
|
|
61987
61645
|
}
|
|
61988
|
-
function
|
|
61646
|
+
function Qi() {
|
|
61989
61647
|
if (Ue.value.length === 0) {
|
|
61990
61648
|
N.value = "当前没有可切换的区域";
|
|
61991
61649
|
return;
|
|
61992
61650
|
}
|
|
61993
|
-
let e = !T.value, t =
|
|
61651
|
+
let e = !T.value, t = Ki(Ue.value, e);
|
|
61994
61652
|
N.value = e ? `已显示 ${t} 个区域` : `已隐藏 ${t} 个区域,当前仅保留巷道显示`, J(e ? `已批量显示区域:${t} 个` : `已批量隐藏区域:${t} 个,保留巷道显示`);
|
|
61995
61653
|
}
|
|
61996
|
-
async function
|
|
61997
|
-
let t =
|
|
61654
|
+
async function $i(e) {
|
|
61655
|
+
let t = Fz[e] ?? e, n = ce.value[e];
|
|
61998
61656
|
if (!n) throw Error(`未找到手动加载类型: ${e}`);
|
|
61999
61657
|
if (n.loading) {
|
|
62000
61658
|
J(`${t}正在加载,已忽略重复请求`);
|
|
@@ -62006,25 +61664,25 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62006
61664
|
}
|
|
62007
61665
|
n.loading = !0, J(`开始手动加载:${t}`);
|
|
62008
61666
|
try {
|
|
62009
|
-
let t = await
|
|
61667
|
+
let t = await Kz(e);
|
|
62010
61668
|
n.loaded = t.loaded, J(t.summary);
|
|
62011
61669
|
} finally {
|
|
62012
61670
|
n.loading = !1;
|
|
62013
61671
|
}
|
|
62014
61672
|
}
|
|
62015
|
-
async function
|
|
61673
|
+
async function ea({ trigger: e = "manual", forceReload: t = !1 } = {}) {
|
|
62016
61674
|
if (y.value) return J("数据源正在加载,已忽略重复请求"), null;
|
|
62017
61675
|
if (b.value && !t) return J("区域要素与巷道已加载,跳过重复请求"), null;
|
|
62018
61676
|
let n = e === "auto" ? "自动" : "手动";
|
|
62019
61677
|
y.value = !0, J(`${n}加载开始:区域要素与巷道`);
|
|
62020
61678
|
try {
|
|
62021
|
-
let e = await
|
|
62022
|
-
return b.value = !0, wr(e.regionItems), Tr(e.laneItems),
|
|
61679
|
+
let e = await Gz();
|
|
61680
|
+
return b.value = !0, wr(e.regionItems), Tr(e.laneItems), Wi(e.laneItems), Qr(), T.value = e.regionItems.length > 0, O.value = e.laneItems.length > 0, (e.regionItems.length > 0 || e.laneItems.length > 0) && xi(), J(`${n}加载完成:${e.summary}`), e.result;
|
|
62023
61681
|
} finally {
|
|
62024
61682
|
y.value = !1;
|
|
62025
61683
|
}
|
|
62026
61684
|
}
|
|
62027
|
-
async function
|
|
61685
|
+
async function ta(e) {
|
|
62028
61686
|
try {
|
|
62029
61687
|
if (e === "resize") {
|
|
62030
61688
|
aj(), J("已触发场景 resize");
|
|
@@ -62056,47 +61714,47 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62056
61714
|
return;
|
|
62057
61715
|
}
|
|
62058
61716
|
if (e === "datasource") {
|
|
62059
|
-
await
|
|
61717
|
+
await ea({ trigger: "manual" });
|
|
62060
61718
|
return;
|
|
62061
61719
|
}
|
|
62062
61720
|
if (e === "regionAssist") {
|
|
62063
|
-
await
|
|
61721
|
+
await $i("regionAssist");
|
|
62064
61722
|
return;
|
|
62065
61723
|
}
|
|
62066
61724
|
if (e === "coalResvers") {
|
|
62067
|
-
await
|
|
61725
|
+
await $i("coalResvers");
|
|
62068
61726
|
return;
|
|
62069
61727
|
}
|
|
62070
61728
|
if (e === "boundary") {
|
|
62071
|
-
await
|
|
61729
|
+
await $i("boundary");
|
|
62072
61730
|
return;
|
|
62073
61731
|
}
|
|
62074
61732
|
if (e === "geology") {
|
|
62075
|
-
await
|
|
61733
|
+
await $i("geology");
|
|
62076
61734
|
return;
|
|
62077
61735
|
}
|
|
62078
61736
|
if (e === "pointSymbol") {
|
|
62079
|
-
await
|
|
61737
|
+
await $i("pointSymbol");
|
|
62080
61738
|
return;
|
|
62081
61739
|
}
|
|
62082
61740
|
if (e === "coal") {
|
|
62083
|
-
await
|
|
61741
|
+
await $i("coal");
|
|
62084
61742
|
return;
|
|
62085
61743
|
}
|
|
62086
61744
|
if (e === "geofault") {
|
|
62087
|
-
await
|
|
61745
|
+
await $i("geofault");
|
|
62088
61746
|
return;
|
|
62089
61747
|
}
|
|
62090
61748
|
} catch (e) {
|
|
62091
61749
|
J(`调试失败: ${nn(e)}`);
|
|
62092
61750
|
}
|
|
62093
61751
|
}
|
|
62094
|
-
function
|
|
61752
|
+
function na() {
|
|
62095
61753
|
if (typeof window > "u") return;
|
|
62096
61754
|
let e = window.lr3dppp?.editor, t = window.lr3dapp?.editor;
|
|
62097
|
-
e?.controls && (e.controls.zoomSpeed =
|
|
61755
|
+
e?.controls && (e.controls.zoomSpeed = NH), t?.config?.setKey?.("control/zoomSpeed", NH), console.log("window.lr3dppp.editor.controls.zoomSpeed:", e?.controls?.zoomSpeed), console.log("window.lr3dapp.editor.config control/zoomSpeed:", NH);
|
|
62098
61756
|
}
|
|
62099
|
-
async function
|
|
61757
|
+
async function ra() {
|
|
62100
61758
|
if (!m.value) {
|
|
62101
61759
|
h.value = "error", J(`场景初始化失败:未找到场景容器 ${p.value}`);
|
|
62102
61760
|
return;
|
|
@@ -62105,8 +61763,8 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62105
61763
|
try {
|
|
62106
61764
|
h.value = "initializing", J("SDK 脚本加载完成,开始创建 EditorApp 实例");
|
|
62107
61765
|
let { globalName: e } = await ej(m.value);
|
|
62108
|
-
if (Fn(), xr(),
|
|
62109
|
-
await
|
|
61766
|
+
if (Fn(), xr(), na(), h.value = "ready", J(`场景初始化成功,检测到全局对象:${e}`), Pr(), Nt.value) try {
|
|
61767
|
+
await ea({ trigger: "auto" });
|
|
62110
61768
|
} catch (e) {
|
|
62111
61769
|
J(`场景初始化成功,自动加载失败:${nn(e)}`);
|
|
62112
61770
|
}
|
|
@@ -62116,35 +61774,35 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62116
61774
|
}
|
|
62117
61775
|
}
|
|
62118
61776
|
return w(() => {
|
|
62119
|
-
|
|
61777
|
+
ra();
|
|
62120
61778
|
}), E(() => {
|
|
62121
|
-
Le += 1, _e.value = "", B.value = [], pe.value = "idle", me.value = "", he.value = {}, En(), On(), F.value?.(), _n({ preserveStatus: !0 }), rr({ preserveStatus: !0 }),
|
|
61779
|
+
Le += 1, _e.value = "", B.value = [], pe.value = "idle", me.value = "", he.value = {}, En(), On(), F.value?.(), _n({ preserveStatus: !0 }), rr({ preserveStatus: !0 }), Qr(), wr([]), Tr([]), $A(m.value);
|
|
62122
61780
|
}), n({
|
|
62123
|
-
initMonitorPoints:
|
|
62124
|
-
queryMonitorPointList:
|
|
62125
|
-
reloadMonitorPoints:
|
|
62126
|
-
getViewPointList:
|
|
62127
|
-
switchToViewPoint:
|
|
62128
|
-
getCurrentViewInfo:
|
|
62129
|
-
applyViewInfo:
|
|
62130
|
-
initializeDemoPerson:
|
|
61781
|
+
initMonitorPoints: Pr,
|
|
61782
|
+
queryMonitorPointList: Fr,
|
|
61783
|
+
reloadMonitorPoints: X,
|
|
61784
|
+
getViewPointList: di,
|
|
61785
|
+
switchToViewPoint: yi,
|
|
61786
|
+
getCurrentViewInfo: fi,
|
|
61787
|
+
applyViewInfo: pi,
|
|
61788
|
+
initializeDemoPerson: ni,
|
|
62131
61789
|
initThreePersons: Ln,
|
|
62132
61790
|
clearThreePersons: Rn,
|
|
62133
61791
|
getThreePersonList: zn,
|
|
62134
61792
|
moveThreePersonTo: Bn,
|
|
62135
61793
|
stopThreePerson: Vn,
|
|
62136
61794
|
stopAllThreePersons: Hn,
|
|
62137
|
-
startDemoPersonMotion:
|
|
62138
|
-
stopDemoPersonMotion:
|
|
62139
|
-
toggleDemoPersonMotion:
|
|
62140
|
-
focusDemoPerson:
|
|
62141
|
-
showWaterSimulationPanel:
|
|
62142
|
-
hideWaterSimulationPanel:
|
|
62143
|
-
toggleWaterSimulationPanel:
|
|
62144
|
-
startWaterSimulationSelect:
|
|
62145
|
-
endWaterSimulationSelect:
|
|
62146
|
-
startWaterSimulation:
|
|
62147
|
-
clearWaterSimulation:
|
|
61795
|
+
startDemoPersonMotion: $r,
|
|
61796
|
+
stopDemoPersonMotion: ei,
|
|
61797
|
+
toggleDemoPersonMotion: ti,
|
|
61798
|
+
focusDemoPerson: gi,
|
|
61799
|
+
showWaterSimulationPanel: Di,
|
|
61800
|
+
hideWaterSimulationPanel: Oi,
|
|
61801
|
+
toggleWaterSimulationPanel: Ei,
|
|
61802
|
+
startWaterSimulationSelect: Ai,
|
|
61803
|
+
endWaterSimulationSelect: Mi,
|
|
61804
|
+
startWaterSimulation: Pi,
|
|
61805
|
+
clearWaterSimulation: Ii,
|
|
62148
61806
|
startRangeSelection: fr,
|
|
62149
61807
|
cancelRangeSelection: ir,
|
|
62150
61808
|
setRangeSelection: pr,
|
|
@@ -62154,30 +61812,30 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62154
61812
|
getRangeSelectionResult: Yn,
|
|
62155
61813
|
registerRangeSelectionChange: er,
|
|
62156
61814
|
registerRangeSelectionResultChange: Qn,
|
|
62157
|
-
focusMonitorPoint:
|
|
62158
|
-
movePerson:
|
|
62159
|
-
moveView:
|
|
61815
|
+
focusMonitorPoint: vi,
|
|
61816
|
+
movePerson: Zr,
|
|
61817
|
+
moveView: _i,
|
|
62160
61818
|
registerModelInfoQuery: Sr
|
|
62161
|
-
}), (e, n) => (D(), o("section",
|
|
61819
|
+
}), (e, n) => (D(), o("section", $z, [s("div", { class: x(["lr3d-viewer__stage", { "lr3d-viewer__stage--with-debug": It.value && ye.value }]) }, [s("div", eB, [
|
|
62162
61820
|
s("div", {
|
|
62163
61821
|
id: p.value,
|
|
62164
61822
|
ref_key: "viewerHost",
|
|
62165
61823
|
ref: m,
|
|
62166
61824
|
class: "lr3d-viewer__host"
|
|
62167
|
-
}, null, 8,
|
|
61825
|
+
}, null, 8, tB),
|
|
62168
61826
|
Ne.value.status === "idle" ? a("", !0) : (D(), o("div", {
|
|
62169
61827
|
key: 0,
|
|
62170
61828
|
class: x(["lr3d-placement-tip", { "lr3d-placement-tip--error": Ne.value.errorMessage }])
|
|
62171
|
-
}, [s("div",
|
|
61829
|
+
}, [s("div", nB, [
|
|
62172
61830
|
s("strong", null, P(tt.value), 1),
|
|
62173
61831
|
s("span", null, P(nt.value), 1),
|
|
62174
|
-
Ne.value.errorMessage ? (D(), o("em",
|
|
61832
|
+
Ne.value.errorMessage ? (D(), o("em", rB, P(Ne.value.errorMessage), 1)) : a("", !0)
|
|
62175
61833
|
]), s("button", {
|
|
62176
61834
|
type: "button",
|
|
62177
61835
|
class: "lr3d-placement-tip__cancel",
|
|
62178
61836
|
onClick: _n
|
|
62179
61837
|
}, " 取消 ")], 2)),
|
|
62180
|
-
h.value === "ready" &&
|
|
61838
|
+
h.value === "ready" && Mt.value.length > 0 ? (D(), o("div", iB, [(D(!0), o(t, null, j(Mt.value, (e) => (D(), o("div", {
|
|
62181
61839
|
key: `monitor-point-${e.id}`,
|
|
62182
61840
|
class: x(["lr3d-monitor-overlay__point", [e.iconMeta.modifierClass, { "lr3d-monitor-overlay__point--active": e.isActive }]]),
|
|
62183
61841
|
style: S(e.screenStyle ?? { display: "none" }),
|
|
@@ -62187,7 +61845,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62187
61845
|
s("span", {
|
|
62188
61846
|
class: "lr3d-monitor-overlay__badge",
|
|
62189
61847
|
"aria-label": e.type
|
|
62190
|
-
}, [e.iconMeta.iconType === "safe" ? (D(), o("svg",
|
|
61848
|
+
}, [e.iconMeta.iconType === "safe" ? (D(), o("svg", sB, [...n[20] ||= [s("path", {
|
|
62191
61849
|
d: "M12 3L18 5.5V10.8C18 14.7 15.5 18.25 12 20C8.5 18.25 6 14.7 6 10.8V5.5L12 3Z",
|
|
62192
61850
|
fill: "none",
|
|
62193
61851
|
stroke: "currentColor",
|
|
@@ -62200,7 +61858,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62200
61858
|
"stroke-linecap": "round",
|
|
62201
61859
|
"stroke-linejoin": "round",
|
|
62202
61860
|
"stroke-width": "1.8"
|
|
62203
|
-
}, null, -1)]])) : e.iconMeta.iconType === "person" ? (D(), o("svg",
|
|
61861
|
+
}, null, -1)]])) : e.iconMeta.iconType === "person" ? (D(), o("svg", cB, [...n[21] ||= [
|
|
62204
61862
|
s("circle", {
|
|
62205
61863
|
cx: "12",
|
|
62206
61864
|
cy: "8",
|
|
@@ -62221,7 +61879,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62221
61879
|
"stroke-linejoin": "round",
|
|
62222
61880
|
"stroke-width": "1.6"
|
|
62223
61881
|
}, null, -1)
|
|
62224
|
-
]])) : e.iconMeta.iconType === "water" ? (D(), o("svg",
|
|
61882
|
+
]])) : e.iconMeta.iconType === "water" ? (D(), o("svg", lB, [...n[22] ||= [
|
|
62225
61883
|
s("path", {
|
|
62226
61884
|
d: "M12 3.5C12 3.5 7.5 8.8 7.5 12.15C7.5 14.75 9.52 16.75 12 16.75C14.48 16.75 16.5 14.75 16.5 12.15C16.5 8.8 12 3.5 12 3.5Z",
|
|
62227
61885
|
fill: "none",
|
|
@@ -62243,7 +61901,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62243
61901
|
"stroke-linecap": "round",
|
|
62244
61902
|
"stroke-width": "1.8"
|
|
62245
61903
|
}, null, -1)
|
|
62246
|
-
]])) : e.iconMeta.iconType === "pipe" ? (D(), o("svg",
|
|
61904
|
+
]])) : e.iconMeta.iconType === "pipe" ? (D(), o("svg", uB, [...n[23] ||= [
|
|
62247
61905
|
s("path", {
|
|
62248
61906
|
d: "M6 7.25H18",
|
|
62249
61907
|
fill: "none",
|
|
@@ -62272,11 +61930,11 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62272
61930
|
"stroke-linejoin": "round",
|
|
62273
61931
|
"stroke-width": "1.8"
|
|
62274
61932
|
}, null, -1)
|
|
62275
|
-
]])) : (D(), o("svg",
|
|
61933
|
+
]])) : (D(), o("svg", dB, [...n[24] ||= [c("<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" data-v-514139a9></circle><path d=\"M12 4V7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-514139a9></path><path d=\"M12 17V20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-514139a9></path><path d=\"M4 12H7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-514139a9></path><path d=\"M17 12H20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-514139a9></path>", 5)]]))], 8, oB),
|
|
62276
61934
|
e.isActive && Ye.value ? (D(), i(oN, {
|
|
62277
61935
|
key: 0,
|
|
62278
61936
|
title: Ye.value.name,
|
|
62279
|
-
"type-label":
|
|
61937
|
+
"type-label": _t(Ye.value),
|
|
62280
61938
|
"position-text": rn(Ye.value.position),
|
|
62281
61939
|
"position-label": Ye.value.isPlacementPreview ? "候选位置" : "空间位置",
|
|
62282
61940
|
"position-meta": Ye.value.isPlacementPreview ? "待保存坐标" : "三维坐标",
|
|
@@ -62300,78 +61958,78 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62300
61958
|
"confirm-disabled",
|
|
62301
61959
|
"confirm-loading"
|
|
62302
61960
|
])) : a("", !0)
|
|
62303
|
-
], 14,
|
|
62304
|
-
h.value === "ready" ? (D(), o("div",
|
|
62305
|
-
s("nav",
|
|
62306
|
-
|
|
61961
|
+
], 14, aB))), 128))])) : a("", !0),
|
|
61962
|
+
h.value === "ready" ? (D(), o("div", fB, [
|
|
61963
|
+
s("nav", pB, [
|
|
61964
|
+
It.value ? (D(), o("button", {
|
|
62307
61965
|
key: 0,
|
|
62308
61966
|
type: "button",
|
|
62309
61967
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": ye.value }]),
|
|
62310
61968
|
"aria-pressed": ye.value ? "true" : "false",
|
|
62311
|
-
onClick:
|
|
62312
|
-
}, " 调试 ", 10,
|
|
62313
|
-
|
|
61969
|
+
onClick: wi
|
|
61970
|
+
}, " 调试 ", 10, mB)) : a("", !0),
|
|
61971
|
+
Lt.value ? (D(), o("button", {
|
|
62314
61972
|
key: 1,
|
|
62315
61973
|
type: "button",
|
|
62316
61974
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": U.value }]),
|
|
62317
61975
|
"aria-pressed": U.value ? "true" : "false",
|
|
62318
|
-
onClick:
|
|
62319
|
-
}, " 监测点 ", 10,
|
|
62320
|
-
|
|
61976
|
+
onClick: Ci
|
|
61977
|
+
}, " 监测点 ", 10, hB)) : a("", !0),
|
|
61978
|
+
Rt.value ? (D(), o("button", {
|
|
62321
61979
|
key: 2,
|
|
62322
61980
|
type: "button",
|
|
62323
61981
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": xe.value }]),
|
|
62324
61982
|
"aria-pressed": xe.value ? "true" : "false",
|
|
62325
|
-
onClick:
|
|
62326
|
-
}, " 范围选点 ", 10,
|
|
62327
|
-
|
|
61983
|
+
onClick: Ti
|
|
61984
|
+
}, " 范围选点 ", 10, gB)) : a("", !0),
|
|
61985
|
+
zt.value ? (D(), o("button", {
|
|
62328
61986
|
key: 3,
|
|
62329
61987
|
type: "button",
|
|
62330
61988
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": Se.value }]),
|
|
62331
61989
|
"aria-pressed": Se.value ? "true" : "false",
|
|
62332
|
-
onClick:
|
|
62333
|
-
}, " 水蔓延 ", 10,
|
|
62334
|
-
|
|
61990
|
+
onClick: Ei
|
|
61991
|
+
}, " 水蔓延 ", 10, _B)) : a("", !0),
|
|
61992
|
+
Bt.value ? (D(), o("button", {
|
|
62335
61993
|
key: 4,
|
|
62336
61994
|
type: "button",
|
|
62337
61995
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": Ce.value }]),
|
|
62338
61996
|
"aria-pressed": Ce.value ? "true" : "false",
|
|
62339
|
-
onClick:
|
|
62340
|
-
}, " 避灾线路 ", 10,
|
|
62341
|
-
|
|
61997
|
+
onClick: Z
|
|
61998
|
+
}, " 避灾线路 ", 10, vB)) : a("", !0),
|
|
61999
|
+
Vt.value && Wt.value.length > 0 ? (D(), o("button", {
|
|
62342
62000
|
key: 5,
|
|
62343
62001
|
type: "button",
|
|
62344
62002
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": be.value }]),
|
|
62345
62003
|
"aria-pressed": be.value ? "true" : "false",
|
|
62346
|
-
onClick:
|
|
62347
|
-
}, " 视角 ", 10,
|
|
62004
|
+
onClick: Si
|
|
62005
|
+
}, " 视角 ", 10, yB)) : a("", !0)
|
|
62348
62006
|
]),
|
|
62349
|
-
|
|
62350
|
-
s("div",
|
|
62351
|
-
s("p",
|
|
62352
|
-
s("p",
|
|
62353
|
-
s("div",
|
|
62354
|
-
s("div",
|
|
62007
|
+
Rt.value && xe.value ? (D(), o("aside", bB, [
|
|
62008
|
+
s("div", xB, [n[26] ||= s("h3", { class: "lr3d-range-panel__title" }, "范围选点", -1), s("span", SB, "半径 " + P(De.value) + " 米", 1)]),
|
|
62009
|
+
s("p", CB, P(et.value), 1),
|
|
62010
|
+
s("p", wB, " 球心坐标:" + P(an(Qe.value ?? Oe.value)), 1),
|
|
62011
|
+
s("div", TB, [
|
|
62012
|
+
s("div", EB, [n[27] ||= s("label", {
|
|
62355
62013
|
class: "lr3d-range-panel__slider-label",
|
|
62356
62014
|
for: "lr3d-range-radius"
|
|
62357
|
-
}, " 范围半径 ", -1), s("strong",
|
|
62015
|
+
}, " 范围半径 ", -1), s("strong", DB, P(De.value) + " 米", 1)]),
|
|
62358
62016
|
ae(s("input", {
|
|
62359
62017
|
id: "lr3d-range-radius",
|
|
62360
62018
|
"onUpdate:modelValue": n[0] ||= (e) => De.value = e,
|
|
62361
62019
|
class: "lr3d-range-panel__slider-input",
|
|
62362
62020
|
type: "range",
|
|
62363
|
-
min:
|
|
62364
|
-
max:
|
|
62365
|
-
step:
|
|
62021
|
+
min: EH,
|
|
62022
|
+
max: DH,
|
|
62023
|
+
step: OH
|
|
62366
62024
|
}, null, 512), [[
|
|
62367
62025
|
re,
|
|
62368
62026
|
De.value,
|
|
62369
62027
|
void 0,
|
|
62370
62028
|
{ number: !0 }
|
|
62371
62029
|
]]),
|
|
62372
|
-
s("div", { class: "lr3d-range-panel__slider-scale" }, [s("span", null, P(
|
|
62030
|
+
s("div", { class: "lr3d-range-panel__slider-scale" }, [s("span", null, P(EH) + " 米"), s("span", null, P(DH) + " 米")])
|
|
62373
62031
|
]),
|
|
62374
|
-
s("div",
|
|
62032
|
+
s("div", OB, [s("button", {
|
|
62375
62033
|
type: "button",
|
|
62376
62034
|
class: "lr3d-range-panel__button",
|
|
62377
62035
|
onClick: fr
|
|
@@ -62380,142 +62038,142 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62380
62038
|
class: "lr3d-range-panel__button lr3d-range-panel__button--secondary",
|
|
62381
62039
|
disabled: !$e.value && Ee.value !== "picking",
|
|
62382
62040
|
onClick: rr
|
|
62383
|
-
}, " 清除范围 ", 8,
|
|
62384
|
-
s("div",
|
|
62385
|
-
s("div",
|
|
62386
|
-
s("p",
|
|
62387
|
-
s("p",
|
|
62388
|
-
]), s("section",
|
|
62389
|
-
s("div",
|
|
62390
|
-
s("p",
|
|
62391
|
-
|
|
62041
|
+
}, " 清除范围 ", 8, kB)]),
|
|
62042
|
+
s("div", AB, [s("section", jB, [
|
|
62043
|
+
s("div", MB, [n[28] ||= s("span", { class: "lr3d-range-panel__section-title" }, "当前巷道", -1), ke.value?.id ? (D(), o("span", NB, " ID " + P(ke.value.id), 1)) : a("", !0)]),
|
|
62044
|
+
s("p", PB, P(ke.value?.name || ($e.value ? "未识别巷道名称" : "完成选点后显示")), 1),
|
|
62045
|
+
s("p", FB, P(ke.value?.layerName || ($e.value ? "未识别图层信息" : "当前尚未设置范围球心")), 1)
|
|
62046
|
+
]), s("section", IB, [
|
|
62047
|
+
s("div", LB, [n[29] ||= s("span", { class: "lr3d-range-panel__section-title" }, "范围测点", -1), s("span", RB, P(jt.value.length) + " 个 ", 1)]),
|
|
62048
|
+
s("p", zB, P($e.value ? `当前球形范围内显示 ${jt.value.length} 个测点` : "完成选点后显示范围内测点信息"), 1),
|
|
62049
|
+
jt.value.length > 0 ? (D(), o("div", BB, [(D(!0), o(t, null, j(jt.value, (e) => (D(), o("article", {
|
|
62392
62050
|
key: e.id,
|
|
62393
62051
|
class: x(["lr3d-range-panel__monitor-item lr3d-range-panel__monitor-item--clickable", { "lr3d-range-panel__monitor-item--active": e.isActive }]),
|
|
62394
62052
|
onClick: (t) => pn(e)
|
|
62395
|
-
}, [s("div",
|
|
62053
|
+
}, [s("div", HB, [s("span", UB, P(e.name || e.id), 1), ht(e) ? a("", !0) : (D(), o("span", WB, P(e.type || "未分类"), 1))]), s("p", GB, P(e.positionText), 1)], 10, VB))), 128))])) : (D(), o("p", KB, P($e.value ? "当前范围内暂无测点" : "尚未完成范围选点"), 1))
|
|
62396
62054
|
])])
|
|
62397
62055
|
])) : a("", !0),
|
|
62398
|
-
|
|
62056
|
+
zt.value && Se.value ? (D(), o("aside", qB, [n[30] ||= s("div", { class: "lr3d-water-panel__header" }, [s("h3", { class: "lr3d-water-panel__title" }, "水蔓延"), s("span", { class: "lr3d-water-panel__meta" }, "演示控制")], -1), s("div", { class: "lr3d-water-panel__actions lr3d-water-panel__actions--water" }, [
|
|
62399
62057
|
s("button", {
|
|
62400
62058
|
type: "button",
|
|
62401
62059
|
class: "lr3d-water-panel__button",
|
|
62402
|
-
onClick:
|
|
62060
|
+
onClick: ki
|
|
62403
62061
|
}, " 开始选点 "),
|
|
62404
62062
|
s("button", {
|
|
62405
62063
|
type: "button",
|
|
62406
62064
|
class: "lr3d-water-panel__button",
|
|
62407
|
-
onClick:
|
|
62065
|
+
onClick: ji
|
|
62408
62066
|
}, " 结束选点 "),
|
|
62409
62067
|
s("button", {
|
|
62410
62068
|
type: "button",
|
|
62411
62069
|
class: "lr3d-water-panel__button",
|
|
62412
|
-
onClick:
|
|
62070
|
+
onClick: Ni
|
|
62413
62071
|
}, " 开始 "),
|
|
62414
62072
|
s("button", {
|
|
62415
62073
|
type: "button",
|
|
62416
62074
|
class: "lr3d-water-panel__button lr3d-water-panel__button--secondary",
|
|
62417
|
-
onClick:
|
|
62075
|
+
onClick: Fi
|
|
62418
62076
|
}, " 取消 ")
|
|
62419
62077
|
])])) : a("", !0),
|
|
62420
|
-
|
|
62078
|
+
Bt.value && Ce.value ? (D(), o("aside", JB, [n[31] ||= s("div", { class: "lr3d-water-panel__header" }, [s("h3", { class: "lr3d-water-panel__title" }, "避灾线路"), s("span", { class: "lr3d-water-panel__meta" }, "演示控制")], -1), s("div", YB, [
|
|
62421
62079
|
s("button", {
|
|
62422
62080
|
type: "button",
|
|
62423
62081
|
class: "lr3d-water-panel__button",
|
|
62424
|
-
onClick:
|
|
62082
|
+
onClick: Li
|
|
62425
62083
|
}, " 拾取途经点 "),
|
|
62426
62084
|
s("button", {
|
|
62427
62085
|
type: "button",
|
|
62428
62086
|
class: "lr3d-water-panel__button",
|
|
62429
|
-
onClick:
|
|
62087
|
+
onClick: Ri
|
|
62430
62088
|
}, " 拾取障碍 "),
|
|
62431
62089
|
s("button", {
|
|
62432
62090
|
type: "button",
|
|
62433
62091
|
class: "lr3d-water-panel__button",
|
|
62434
|
-
onClick:
|
|
62092
|
+
onClick: zi
|
|
62435
62093
|
}, " 结束拾取 "),
|
|
62436
62094
|
s("button", {
|
|
62437
62095
|
type: "button",
|
|
62438
62096
|
class: "lr3d-water-panel__button",
|
|
62439
62097
|
disabled: we.value,
|
|
62440
|
-
onClick:
|
|
62441
|
-
}, P(we.value ? "生成中" : "生成线路"), 9,
|
|
62098
|
+
onClick: Bi
|
|
62099
|
+
}, P(we.value ? "生成中" : "生成线路"), 9, XB),
|
|
62442
62100
|
s("button", {
|
|
62443
62101
|
type: "button",
|
|
62444
62102
|
class: "lr3d-water-panel__button",
|
|
62445
|
-
onClick:
|
|
62103
|
+
onClick: Vi
|
|
62446
62104
|
}, " 暂停 "),
|
|
62447
62105
|
s("button", {
|
|
62448
62106
|
type: "button",
|
|
62449
62107
|
class: "lr3d-water-panel__button",
|
|
62450
|
-
onClick:
|
|
62108
|
+
onClick: Hi
|
|
62451
62109
|
}, " 继续 "),
|
|
62452
62110
|
s("button", {
|
|
62453
62111
|
type: "button",
|
|
62454
62112
|
class: "lr3d-water-panel__button lr3d-water-panel__button--secondary",
|
|
62455
|
-
onClick:
|
|
62113
|
+
onClick: Ui
|
|
62456
62114
|
}, " 清除 ")
|
|
62457
62115
|
])])) : a("", !0),
|
|
62458
|
-
|
|
62459
|
-
s("div",
|
|
62460
|
-
s("div",
|
|
62116
|
+
Vt.value && Wt.value.length > 0 && be.value ? (D(), o("aside", ZB, [
|
|
62117
|
+
s("div", QB, [n[32] ||= s("h3", { class: "lr3d-viewpoint-panel__title" }, "视角控制", -1), s("span", $B, P(Wt.value.length) + " 个固定视角", 1)]),
|
|
62118
|
+
s("div", eV, [(D(!0), o(t, null, j(Wt.value, (e) => (D(), o("button", {
|
|
62461
62119
|
key: e.key,
|
|
62462
62120
|
type: "button",
|
|
62463
62121
|
class: x(["lr3d-viewpoint-panel__button", { "lr3d-viewpoint-panel__button--active": W.value === e.key }]),
|
|
62464
|
-
onClick: (t) =>
|
|
62465
|
-
}, P(e.name), 11,
|
|
62466
|
-
s("p",
|
|
62122
|
+
onClick: (t) => yi(e)
|
|
62123
|
+
}, P(e.name), 11, tV))), 128))]),
|
|
62124
|
+
s("p", nV, "当前视角:" + P(Gt.value), 1)
|
|
62467
62125
|
])) : a("", !0)
|
|
62468
62126
|
])) : a("", !0),
|
|
62469
|
-
h.value === "ready" && (
|
|
62127
|
+
h.value === "ready" && (Ht.value || Lt.value) ? (D(), o("div", rV, [Ht.value && h.value === "ready" ? (D(), o("aside", {
|
|
62470
62128
|
key: 0,
|
|
62471
62129
|
class: x(["lr3d-workface-panel", { "lr3d-workface-panel--expanded": C.value }])
|
|
62472
|
-
}, [s("div",
|
|
62130
|
+
}, [s("div", iV, [n[33] ||= s("h3", { class: "lr3d-workface-panel__title" }, "图层控制", -1), s("button", {
|
|
62473
62131
|
type: "button",
|
|
62474
62132
|
class: "lr3d-workface-panel__toggle",
|
|
62475
62133
|
onClick: n[1] ||= (e) => C.value = !C.value
|
|
62476
|
-
}, P(C.value ? "收起" : "展开"), 1)]), C.value ? (D(), o("div",
|
|
62477
|
-
s("p",
|
|
62478
|
-
s("div",
|
|
62134
|
+
}, P(C.value ? "收起" : "展开"), 1)]), C.value ? (D(), o("div", aV, [
|
|
62135
|
+
s("p", oV, " 当前区域要素数量:" + P(Ue.value.length) + ",巷道数量:" + P(de.value.length), 1),
|
|
62136
|
+
s("div", sV, [s("button", {
|
|
62479
62137
|
type: "button",
|
|
62480
62138
|
class: "lr3d-workface-panel__action lr3d-workface-panel__action--secondary",
|
|
62481
|
-
onClick:
|
|
62139
|
+
onClick: Qi
|
|
62482
62140
|
}, P(T.value ? "隐藏区域" : "显示区域"), 1), s("button", {
|
|
62483
62141
|
type: "button",
|
|
62484
62142
|
class: "lr3d-workface-panel__action lr3d-workface-panel__action--secondary",
|
|
62485
|
-
onClick:
|
|
62143
|
+
onClick: Zi
|
|
62486
62144
|
}, P(O.value ? "隐藏巷道" : "显示巷道"), 1)]),
|
|
62487
|
-
s("p",
|
|
62488
|
-
We.value ? (D(), o("div",
|
|
62145
|
+
s("p", cV, P(N.value), 1),
|
|
62146
|
+
We.value ? (D(), o("div", uV, [(D(!0), o(t, null, j(K.value, (e) => (D(), o("section", {
|
|
62489
62147
|
key: e.featureType,
|
|
62490
62148
|
class: "lr3d-workface-panel__group"
|
|
62491
|
-
}, [s("h4",
|
|
62149
|
+
}, [s("h4", dV, P(e.typeLabel) + "(" + P(e.items.length) + ") ", 1), s("ul", fV, [(D(!0), o(t, null, j(e.items, (e) => (D(), o("li", {
|
|
62492
62150
|
key: e.key,
|
|
62493
62151
|
class: "lr3d-workface-panel__item"
|
|
62494
|
-
}, [s("label",
|
|
62152
|
+
}, [s("label", pV, [s("input", {
|
|
62495
62153
|
type: "checkbox",
|
|
62496
62154
|
checked: ue.value[e.key] !== !1,
|
|
62497
|
-
onChange: (t) =>
|
|
62498
|
-
}, null, 40,
|
|
62155
|
+
onChange: (t) => qi(e, t)
|
|
62156
|
+
}, null, 40, mV), s("span", null, P(e.displayName), 1)])]))), 128))])]))), 128)), de.value.length > 0 ? (D(), o("section", hV, [s("h4", gV, " 巷道(" + P(de.value.length) + ") ", 1), s("ul", _V, [(D(!0), o(t, null, j(de.value, (e) => (D(), o("li", {
|
|
62499
62157
|
key: e.key,
|
|
62500
62158
|
class: "lr3d-workface-panel__item"
|
|
62501
|
-
}, [s("label",
|
|
62159
|
+
}, [s("label", vV, [s("input", {
|
|
62502
62160
|
type: "checkbox",
|
|
62503
62161
|
checked: fe.value[e.key] !== !1,
|
|
62504
|
-
onChange: (t) =>
|
|
62505
|
-
}, null, 40,
|
|
62506
|
-
])) : a("", !0)], 2)) : a("", !0),
|
|
62507
|
-
s("div",
|
|
62162
|
+
onChange: (t) => Yi(e, t)
|
|
62163
|
+
}, null, 40, yV), s("span", null, P(e.displayName), 1)])]))), 128))])])) : a("", !0)])) : (D(), o("div", lV, " 暂无可控制的区域要素或巷道 "))
|
|
62164
|
+
])) : a("", !0)], 2)) : a("", !0), Lt.value && U.value ? (D(), o("aside", bV, [
|
|
62165
|
+
s("div", xV, [(D(!0), o(t, null, j(Ge.value, (e) => (D(), o("button", {
|
|
62508
62166
|
key: e.type,
|
|
62509
62167
|
type: "button",
|
|
62510
62168
|
class: x(["lr3d-monitor-panel__tab", { "lr3d-monitor-panel__tab--active": ve.value === e.type }]),
|
|
62511
62169
|
onClick: (t) => ve.value = e.type
|
|
62512
|
-
}, P(e.label), 11,
|
|
62513
|
-
s("div",
|
|
62170
|
+
}, P(e.label), 11, SV))), 128))]),
|
|
62171
|
+
s("div", CV, [pe.value === "loading" ? (D(), o("div", wV, " 正在读取监测点数据... ")) : pe.value === "error" ? (D(), o("div", TV, " 监测点数据加载失败:" + P(me.value), 1)) : qe.value.length === 0 ? (D(), o("div", EV, " 当前分类暂无监测点数据 ")) : (D(), o("ul", DV, [(D(!0), o(t, null, j(qe.value, (e) => (D(), o("li", {
|
|
62514
62172
|
key: e.id,
|
|
62515
62173
|
class: "lr3d-monitor-panel__item lr3d-monitor-panel__item--clickable",
|
|
62516
62174
|
onClick: (t) => pn(e)
|
|
62517
62175
|
}, [
|
|
62518
|
-
s("div",
|
|
62176
|
+
s("div", kV, [s("strong", null, P(e.name), 1), ft(e) ? (D(), o("button", {
|
|
62519
62177
|
key: 0,
|
|
62520
62178
|
type: "button",
|
|
62521
62179
|
class: x(["lr3d-monitor-panel__placement-button", [mn(e) ? "lr3d-monitor-panel__placement-button--placed" : "lr3d-monitor-panel__placement-button--empty", { "lr3d-monitor-panel__placement-button--active": Ne.value.targetItem?.id === e.id && Ne.value.status !== "idle" }]]),
|
|
@@ -62536,115 +62194,105 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62536
62194
|
cy: "9",
|
|
62537
62195
|
r: "2.1",
|
|
62538
62196
|
fill: "currentColor"
|
|
62539
|
-
})], -1)]], 10,
|
|
62540
|
-
|
|
62541
|
-
ft(e) ? (D(), o("div",
|
|
62197
|
+
})], -1)]], 10, AV)) : a("", !0)]),
|
|
62198
|
+
ht(e) ? a("", !0) : (D(), o("p", jV, P(gt(e)), 1)),
|
|
62199
|
+
ft(e) ? (D(), o("div", MV, [s("div", NV, [n[35] ||= s("span", { class: "lr3d-monitor-panel__safety-label" }, "测点值", -1), s("strong", PV, P(vt(e)), 1)]), s("div", FV, [n[36] ||= s("span", { class: "lr3d-monitor-panel__safety-label" }, "更新时间", -1), s("strong", IV, P(dt(e.data_time)), 1)])])) : pt(e) ? (D(), o("div", LV, [s("div", RV, [n[37] ||= s("span", { class: "lr3d-monitor-panel__hydrology-label" }, "监测值", -1), s("strong", zV, P(bt(e)), 1)]), s("div", BV, [s("div", VV, [n[38] ||= s("span", null, "数据时间", -1), s("strong", null, P(dt(e.sj)), 1)]), s("div", HV, [n[39] ||= s("span", null, "状态", -1), s("strong", UV, P(dt(e.state)), 1)])])])) : (D(), o("div", WV, [(D(!0), o(t, null, j(on(e), ([t, n]) => (D(), o("span", {
|
|
62542
62200
|
key: `${e.id}-${t}`,
|
|
62543
62201
|
class: "lr3d-monitor-panel__item-chip"
|
|
62544
|
-
}, P(t) + ":" + P(n), 1))), 128))]))
|
|
62545
|
-
|
|
62546
|
-
|
|
62547
|
-
class: "lr3d-monitor-panel__item-action",
|
|
62548
|
-
onClick: I((t) => _i(e), ["stop"])
|
|
62549
|
-
}, " 聚焦 ", 8, HV), s("button", {
|
|
62550
|
-
type: "button",
|
|
62551
|
-
class: "lr3d-monitor-panel__item-action",
|
|
62552
|
-
disabled: (e.pointsHistory?.length ?? 0) < 2,
|
|
62553
|
-
onClick: I((t) => Xr(e.personSceneId), ["stop"])
|
|
62554
|
-
}, P(e.isMoving ? "重新播放" : "轨迹播放"), 9, UV)])) : a("", !0)
|
|
62555
|
-
], 8, jV))), 128))]))]),
|
|
62556
|
-
s("div", WV, [s("span", GV, " 共 " + P(Ke.value.length) + " 个测点 ", 1), ve.value === "安全监测" && Je.value > 1 ? (D(), o("div", KV, [
|
|
62202
|
+
}, P(t) + ":" + P(n), 1))), 128))]))
|
|
62203
|
+
], 8, OV))), 128))]))]),
|
|
62204
|
+
s("div", GV, [s("span", KV, " 共 " + P(Ke.value.length) + " 个测点 ", 1), ve.value === "安全监测" && Je.value > 1 ? (D(), o("div", qV, [
|
|
62557
62205
|
s("button", {
|
|
62558
62206
|
type: "button",
|
|
62559
62207
|
class: "lr3d-monitor-panel__page-btn",
|
|
62560
62208
|
disabled: H.value <= 1,
|
|
62561
62209
|
onClick: n[2] ||= (e) => --H.value
|
|
62562
|
-
}, " 上一页 ", 8,
|
|
62563
|
-
s("span",
|
|
62210
|
+
}, " 上一页 ", 8, JV),
|
|
62211
|
+
s("span", YV, P(H.value) + " / " + P(Je.value), 1),
|
|
62564
62212
|
s("button", {
|
|
62565
62213
|
type: "button",
|
|
62566
62214
|
class: "lr3d-monitor-panel__page-btn",
|
|
62567
62215
|
disabled: H.value >= Je.value,
|
|
62568
62216
|
onClick: n[3] ||= (e) => H.value += 1
|
|
62569
|
-
}, " 下一页 ", 8,
|
|
62217
|
+
}, " 下一页 ", 8, XV)
|
|
62570
62218
|
])) : a("", !0)])
|
|
62571
62219
|
])) : a("", !0)])) : a("", !0),
|
|
62572
|
-
|
|
62573
|
-
s("div",
|
|
62220
|
+
It.value && ye.value ? (D(), o("section", ZV, [
|
|
62221
|
+
s("div", QV, [n[40] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "基础调试面板"), s("p", null, "用于验证基础 API 是否可调用")], -1), s("div", $V, [
|
|
62574
62222
|
s("button", {
|
|
62575
62223
|
type: "button",
|
|
62576
|
-
onClick: n[4] ||= (e) =>
|
|
62224
|
+
onClick: n[4] ||= (e) => ta("resize")
|
|
62577
62225
|
}, "Resize 场景"),
|
|
62578
62226
|
s("button", {
|
|
62579
62227
|
type: "button",
|
|
62580
|
-
onClick: n[5] ||= (e) =>
|
|
62228
|
+
onClick: n[5] ||= (e) => ta("refresh")
|
|
62581
62229
|
}, "测试刷新(sceneGraphChanged)"),
|
|
62582
62230
|
s("button", {
|
|
62583
62231
|
type: "button",
|
|
62584
|
-
onClick: n[6] ||= (e) =>
|
|
62232
|
+
onClick: n[6] ||= (e) => ta("editor")
|
|
62585
62233
|
}, "检查 editor"),
|
|
62586
62234
|
s("button", {
|
|
62587
62235
|
type: "button",
|
|
62588
|
-
onClick: n[7] ||= (e) =>
|
|
62236
|
+
onClick: n[7] ||= (e) => ta("interfaces")
|
|
62589
62237
|
}, "检查 interfaces"),
|
|
62590
62238
|
s("button", {
|
|
62591
62239
|
type: "button",
|
|
62592
|
-
onClick: n[8] ||= (e) =>
|
|
62240
|
+
onClick: n[8] ||= (e) => ta("sdkViewState")
|
|
62593
62241
|
}, "打印 SDK 视口参数"),
|
|
62594
62242
|
s("button", {
|
|
62595
62243
|
type: "button",
|
|
62596
|
-
onClick: n[9] ||= (e) =>
|
|
62244
|
+
onClick: n[9] ||= (e) => ta("datasource")
|
|
62597
62245
|
}, "手动重试加载区域+巷道")
|
|
62598
62246
|
])]),
|
|
62599
|
-
s("div",
|
|
62600
|
-
n[
|
|
62247
|
+
s("div", eH, [n[42] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "场景背景"), s("p", null, "测试场景背景颜色实时切换")], -1), s("label", tH, [
|
|
62248
|
+
n[41] ||= s("span", null, "背景颜色", -1),
|
|
62601
62249
|
ae(s("input", {
|
|
62602
62250
|
id: "lr3d-scene-background-color",
|
|
62603
62251
|
"onUpdate:modelValue": n[10] ||= (e) => v.value = e,
|
|
62604
62252
|
type: "color",
|
|
62605
|
-
onInput:
|
|
62253
|
+
onInput: $t
|
|
62606
62254
|
}, null, 544), [[re, v.value]]),
|
|
62607
62255
|
s("strong", null, P(v.value), 1)
|
|
62608
62256
|
])]),
|
|
62609
|
-
s("div",
|
|
62257
|
+
s("div", nH, [n[43] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "手动加载其他类型"), s("p", null, "默认不自动加载,按按钮逐项触发")], -1), s("div", rH, [
|
|
62610
62258
|
s("button", {
|
|
62611
62259
|
type: "button",
|
|
62612
62260
|
disabled: ce.value.regionAssist.loading,
|
|
62613
|
-
onClick: n[11] ||= (e) =>
|
|
62614
|
-
}, " 加载掘进辅助 ", 8,
|
|
62261
|
+
onClick: n[11] ||= (e) => ta("regionAssist")
|
|
62262
|
+
}, " 加载掘进辅助 ", 8, iH),
|
|
62615
62263
|
s("button", {
|
|
62616
62264
|
type: "button",
|
|
62617
62265
|
disabled: ce.value.coalResvers.loading,
|
|
62618
|
-
onClick: n[12] ||= (e) =>
|
|
62619
|
-
}, " 加载储量块段 ", 8,
|
|
62266
|
+
onClick: n[12] ||= (e) => ta("coalResvers")
|
|
62267
|
+
}, " 加载储量块段 ", 8, aH),
|
|
62620
62268
|
s("button", {
|
|
62621
62269
|
type: "button",
|
|
62622
62270
|
disabled: ce.value.boundary.loading,
|
|
62623
|
-
onClick: n[13] ||= (e) =>
|
|
62624
|
-
}, " 加载矿井边界 ", 8,
|
|
62271
|
+
onClick: n[13] ||= (e) => ta("boundary")
|
|
62272
|
+
}, " 加载矿井边界 ", 8, oH),
|
|
62625
62273
|
s("button", {
|
|
62626
62274
|
type: "button",
|
|
62627
62275
|
disabled: ce.value.geology.loading,
|
|
62628
|
-
onClick: n[14] ||= (e) =>
|
|
62629
|
-
}, " 加载地质体 ", 8,
|
|
62276
|
+
onClick: n[14] ||= (e) => ta("geology")
|
|
62277
|
+
}, " 加载地质体 ", 8, sH),
|
|
62630
62278
|
s("button", {
|
|
62631
62279
|
type: "button",
|
|
62632
62280
|
disabled: ce.value.pointSymbol.loading,
|
|
62633
|
-
onClick: n[15] ||= (e) =>
|
|
62634
|
-
}, " 加载点符号 ", 8,
|
|
62281
|
+
onClick: n[15] ||= (e) => ta("pointSymbol")
|
|
62282
|
+
}, " 加载点符号 ", 8, cH),
|
|
62635
62283
|
s("button", {
|
|
62636
62284
|
type: "button",
|
|
62637
62285
|
disabled: ce.value.coal.loading,
|
|
62638
|
-
onClick: n[16] ||= (e) =>
|
|
62639
|
-
}, " 加载煤层 ", 8,
|
|
62286
|
+
onClick: n[16] ||= (e) => ta("coal")
|
|
62287
|
+
}, " 加载煤层 ", 8, lH),
|
|
62640
62288
|
s("button", {
|
|
62641
62289
|
type: "button",
|
|
62642
62290
|
disabled: ce.value.geofault.loading,
|
|
62643
|
-
onClick: n[17] ||= (e) =>
|
|
62644
|
-
}, " 加载断层 ", 8,
|
|
62291
|
+
onClick: n[17] ||= (e) => ta("geofault")
|
|
62292
|
+
}, " 加载断层 ", 8, uH)
|
|
62645
62293
|
])]),
|
|
62646
|
-
s("div",
|
|
62647
|
-
n[
|
|
62294
|
+
s("div", dH, [n[45] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "工具命令"), s("p", null, "快速调用 SDK 内置 activeTool")], -1), s("div", fH, [
|
|
62295
|
+
n[44] ||= s("label", { for: "lr3d-tool-input" }, "activeTool 名称", -1),
|
|
62648
62296
|
ae(s("input", {
|
|
62649
62297
|
id: "lr3d-tool-input",
|
|
62650
62298
|
"onUpdate:modelValue": n[18] ||= (e) => g.value = e,
|
|
@@ -62653,16 +62301,16 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62653
62301
|
}, null, 512), [[re, g.value]]),
|
|
62654
62302
|
s("button", {
|
|
62655
62303
|
type: "button",
|
|
62656
|
-
onClick: n[19] ||= (e) =>
|
|
62304
|
+
onClick: n[19] ||= (e) => ta("tool")
|
|
62657
62305
|
}, "执行 activeTool")
|
|
62658
62306
|
])]),
|
|
62659
|
-
s("pre",
|
|
62307
|
+
s("pre", pH, P(_.value), 1)
|
|
62660
62308
|
])) : a("", !0),
|
|
62661
|
-
h.value === "idle" || h.value === "loading" ? (D(), o("div",
|
|
62662
|
-
h.value === "error" ? (D(), o("div",
|
|
62309
|
+
h.value === "idle" || h.value === "loading" ? (D(), o("div", mH, [...n[46] ||= [s("p", null, "正在准备三维场景", -1), s("small", null, "SDK 脚本加载完成后会在当前容器内创建最小场景实例", -1)]])) : a("", !0),
|
|
62310
|
+
h.value === "error" ? (D(), o("div", hH, [...n[47] ||= [s("p", null, "最小初始化未完成", -1), s("small", null, "请根据状态信息检查 SDK 依赖或资源路径", -1)]])) : a("", !0)
|
|
62663
62311
|
])], 2)]));
|
|
62664
62312
|
}
|
|
62665
|
-
}, [["__scopeId", "data-v-
|
|
62313
|
+
}, [["__scopeId", "data-v-514139a9"]]), HH = { class: "lr-map-viewer" }, UH = { class: "lr-map-viewer__stack" }, WH = "LrMapViewer", GH = /* @__PURE__ */ zM({
|
|
62666
62314
|
__name: "LrMapViewer",
|
|
62667
62315
|
props: {
|
|
62668
62316
|
mode: {
|
|
@@ -62973,7 +62621,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62973
62621
|
e && typeof e.registerModelInfoQuery == "function" && f.value && e.registerModelInfoQuery(f.value), e && typeof e.registerRangeSelectionChange == "function" && p.value && e.registerRangeSelectionChange(p.value), e && typeof e.registerRangeSelectionResultChange == "function" && m.value && e.registerRangeSelectionResultChange(m.value);
|
|
62974
62622
|
}, { immediate: !0 }), w(() => {
|
|
62975
62623
|
console.log("[lr-map-viewer] component initialized", {
|
|
62976
|
-
componentName:
|
|
62624
|
+
componentName: WH,
|
|
62977
62625
|
version: he.version
|
|
62978
62626
|
});
|
|
62979
62627
|
}), C(() => {
|
|
@@ -63024,10 +62672,10 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
63024
62672
|
movePerson: We,
|
|
63025
62673
|
moveView: V,
|
|
63026
62674
|
registerModelInfoQuery: Ge
|
|
63027
|
-
}), (t, n) => (D(), o("section",
|
|
62675
|
+
}), (t, n) => (D(), o("section", HH, [s("div", UH, [j.value ? (D(), o("div", {
|
|
63028
62676
|
key: 0,
|
|
63029
62677
|
class: x(["lr-map-viewer__layer", oe("2d")])
|
|
63030
|
-
}, [R("2d") && y.value === "ready" ? (D(), i(
|
|
62678
|
+
}, [R("2d") && y.value === "ready" ? (D(), i(Pz, {
|
|
63031
62679
|
key: 0,
|
|
63032
62680
|
config: g.value,
|
|
63033
62681
|
"mine-id": h.value
|
|
@@ -63037,7 +62685,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
63037
62685
|
}, [s("p", null, P(ne("2d")), 1), s("small", null, P(F("2d")), 1)], 2)) : a("", !0)], 2)) : a("", !0), M.value ? (D(), o("div", {
|
|
63038
62686
|
key: 1,
|
|
63039
62687
|
class: x(["lr-map-viewer__layer", oe("3d")])
|
|
63040
|
-
}, [R("3d") && T.value === "ready" ? (D(), i(
|
|
62688
|
+
}, [R("3d") && T.value === "ready" ? (D(), i(VH, {
|
|
63041
62689
|
key: 0,
|
|
63042
62690
|
ref_key: "lr3dViewerRef",
|
|
63043
62691
|
ref: d,
|
|
@@ -63053,10 +62701,10 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
63053
62701
|
class: x(["lr-map-viewer__placeholder", { "lr-map-viewer__placeholder--error": T.value === "error" }])
|
|
63054
62702
|
}, [s("p", null, P(ne("3d")), 1), s("small", null, P(F("3d")), 1)], 2)) : a("", !0)], 2)) : a("", !0)])]));
|
|
63055
62703
|
}
|
|
63056
|
-
}, [["__scopeId", "data-v-1c7d36da"]]),
|
|
63057
|
-
function
|
|
63058
|
-
!e || typeof e.component != "function" || e.component(
|
|
62704
|
+
}, [["__scopeId", "data-v-1c7d36da"]]), KH = "LrMapViewer";
|
|
62705
|
+
function qH(e) {
|
|
62706
|
+
!e || typeof e.component != "function" || e.component(KH, GH);
|
|
63059
62707
|
}
|
|
63060
|
-
var
|
|
62708
|
+
var JH = { install: qH };
|
|
63061
62709
|
//#endregion
|
|
63062
|
-
export {
|
|
62710
|
+
export { Pz as Lr2dViewer, VH as Lr3dViewer, GH as LrMapViewer, oN as LrMonitorPointPopupPanel, sM as canSwitchMapMode, oT as createLr2dAdapter, ej as createLr3dInstance, JH as default, cT as destroyLr2dAdapter, $A as destroyLr3dInstance, Xw as getDefaultLr2dConfig, OT as getDefaultLr3dConfig, sT as getLr2dAdapterInstance, Zw as getLr2dConfig, Qw as getLr2dMapOptions, nj as getLr3dApp, kT as getLr3dConfig, rj as getLr3dEditor, qA as getLr3dGlobal, ZA as getLr3dInstance, ij as getLr3dInterfaces, qw as getMissingLr2dOptionFields, Kw as getRequiredLr2dOptionFields, rM as getSupportedMapModes, Fz as gisManualLoadLabels, qH as install, Jw as isLr2dConfigReady, Gz as loadGisCloudDataSource, Kz as loadGisManualData, Bj as loadLr3dBoundaryData, Lj as loadLr3dCloudDataSource, Uj as loadLr3dCoalData, zj as loadLr3dCoalResversData, Wj as loadLr3dGeoFaultData, Vj as loadLr3dGeologyData, Hj as loadLr3dPointSymbolData, Rj as loadLr3dRegionAssistData, JA as loadLr3dSdk, iM as normalizeMapMode, sj as refreshLr3dSceneGraph, eT as resetLr2dConfig, FT as resetLr3dConfig, lT as resizeLr2dAdapter, aj as resizeLr3d, QA as resizeLr3dInstance, oM as resolveInitialMapMode, tT as resolveLr2dConfig, IT as resolveLr3dConfig, aM as resolveMapModes, cj as runLr3dTool, $w as setLr2dConfig, PT as setLr3dConfig };
|