@zhangdali1996/lr-map-viewer 0.0.24 → 0.0.25
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 +847 -1186
- 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.24",
|
|
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,139 @@ 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,
|
|
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 = {
|
|
59970
|
+
key: 4,
|
|
60323
59971
|
class: "lr3d-monitor-panel__item-actions"
|
|
60324
|
-
},
|
|
59972
|
+
}, KV = ["onClick"], qV = ["disabled", "onClick"], JV = { class: "lr3d-monitor-panel__footer" }, YV = { class: "lr3d-monitor-panel__count" }, XV = {
|
|
60325
59973
|
key: 0,
|
|
60326
59974
|
class: "lr3d-monitor-panel__pagination"
|
|
60327
|
-
},
|
|
59975
|
+
}, ZV = ["disabled"], QV = { class: "lr3d-monitor-panel__page-info" }, $V = ["disabled"], eH = {
|
|
60328
59976
|
key: 4,
|
|
60329
59977
|
class: "lr3d-debug-panel"
|
|
60330
|
-
},
|
|
59978
|
+
}, tH = { class: "lr3d-debug-panel__group" }, nH = { class: "lr3d-debug-panel__actions" }, rH = { class: "lr3d-debug-panel__group lr3d-debug-panel__group--background" }, iH = {
|
|
60331
59979
|
class: "lr3d-debug-panel__color-control",
|
|
60332
59980
|
for: "lr3d-scene-background-color"
|
|
60333
|
-
},
|
|
59981
|
+
}, aH = { class: "lr3d-debug-panel__group" }, oH = { class: "lr3d-debug-panel__actions" }, sH = ["disabled"], cH = ["disabled"], lH = ["disabled"], uH = ["disabled"], dH = ["disabled"], fH = ["disabled"], pH = ["disabled"], mH = { class: "lr3d-debug-panel__group lr3d-debug-panel__group--tool" }, hH = { class: "lr3d-debug-panel__tool" }, gH = { class: "lr3d-debug-panel__log" }, _H = {
|
|
60334
59982
|
key: 5,
|
|
60335
59983
|
class: "lr3d-viewer__placeholder"
|
|
60336
|
-
},
|
|
59984
|
+
}, vH = {
|
|
60337
59985
|
key: 6,
|
|
60338
59986
|
class: "lr3d-viewer__placeholder lr3d-viewer__placeholder--error"
|
|
60339
|
-
},
|
|
59987
|
+
}, yH = 36e3, bH = 3600, xH = 1200, SH = 100, CH = 1e4, wH = 900, TH = "井口", EH = 900, DH = .01, OH = 500, kH = 100, AH = 2e3, jH = 50, MH = "monitor-range-selection", NH = "monitor-range-selection-marker", PH = "window[\"lr3dapp\"].editor.manager.modules.waterSimulation", FH = "window[\"lr3dapp\"].editor.manager.modules.exitPath", IH = 1, LH = "monitor-point-placement-preview", RH = 10, zH = 10, BH = "安全监测", VH = "水文检测", HH = "束管监测点", UH = "人员定位", WH = /* @__PURE__ */ zM({
|
|
60340
59988
|
__name: "Lr3dViewer",
|
|
60341
59989
|
props: {
|
|
60342
59990
|
config: {
|
|
@@ -60361,7 +60009,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60361
60009
|
EXIT_PATH: "exitPath",
|
|
60362
60010
|
VIEW: "view",
|
|
60363
60011
|
REGION: "region"
|
|
60364
|
-
}), u = e, d =
|
|
60012
|
+
}), 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
60013
|
key: "",
|
|
60366
60014
|
timestamp: 0
|
|
60367
60015
|
}), ce = k({
|
|
@@ -60393,7 +60041,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60393
60041
|
loading: !1,
|
|
60394
60042
|
loaded: !1
|
|
60395
60043
|
}
|
|
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(
|
|
60044
|
+
}), 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(OH), Oe = k(null), ke = k(null), Ae = k(null), je = k(null), Me = k(null), Ne = k({
|
|
60397
60045
|
status: "idle",
|
|
60398
60046
|
targetItem: null,
|
|
60399
60047
|
candidatePosition: null,
|
|
@@ -60438,7 +60086,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60438
60086
|
}), ie(() => ve.value, () => {
|
|
60439
60087
|
H.value = 1;
|
|
60440
60088
|
}), ie(() => u.mineId, (e, t) => {
|
|
60441
|
-
e === t && Te.value.length || (W.value = "",
|
|
60089
|
+
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
60090
|
}, { immediate: !0 }), ie(() => h.value, (e) => {
|
|
60443
60091
|
if (e === "ready") {
|
|
60444
60092
|
Dn();
|
|
@@ -60461,22 +60109,22 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60461
60109
|
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
60110
|
return i === a ? e.typeLabel.localeCompare(t.typeLabel, "zh-CN") : i - a;
|
|
60463
60111
|
}), t;
|
|
60464
|
-
}), We = r(() => K.value.length > 0 || de.value.length > 0), Ge = r(() =>
|
|
60112
|
+
}), We = r(() => K.value.length > 0 || de.value.length > 0), Ge = r(() => qz.map((e) => ({
|
|
60465
60113
|
type: e,
|
|
60466
60114
|
label: e,
|
|
60467
|
-
count:
|
|
60468
|
-
}))), Ke = r(() =>
|
|
60115
|
+
count: Ot.value.filter((t) => t.type === e).length
|
|
60116
|
+
}))), Ke = r(() => Ot.value.filter((e) => e.type === ve.value)), qe = r(() => {
|
|
60469
60117
|
if (ve.value !== "安全监测") return Ke.value;
|
|
60470
|
-
let e = (H.value - 1) *
|
|
60118
|
+
let e = (H.value - 1) * zH, t = e + zH;
|
|
60471
60119
|
return Ke.value.slice(e, t);
|
|
60472
|
-
}), Je = r(() => ve.value === "安全监测" ? Math.max(1, Math.ceil(Ke.value.length /
|
|
60120
|
+
}), Je = r(() => ve.value === "安全监测" ? Math.max(1, Math.ceil(Ke.value.length / zH)) : 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
60121
|
let e = Ne.value;
|
|
60474
60122
|
return e.status === "picking" ? `正在为 ${tt.value} 布点,请在三维场景内点击巷道或工作面` : e.status === "preview" ? "已生成候选点,确认后保存坐标" : e.status === "saving" ? "正在保存布点坐标" : "";
|
|
60475
60123
|
});
|
|
60476
60124
|
function rt(e) {
|
|
60477
60125
|
if (!$e.value) return !0;
|
|
60478
60126
|
let t = Qe.value, n = ct(e);
|
|
60479
|
-
if (!t || !
|
|
60127
|
+
if (!t || !ai(n)) return !1;
|
|
60480
60128
|
let r = Number(n.x) - Number(t.x), i = Number(n.y) - Number(t.y), a = Number(n.z) - Number(t.z);
|
|
60481
60129
|
return Math.sqrt(r * r + i * i + a * a) <= De.value;
|
|
60482
60130
|
}
|
|
@@ -60492,14 +60140,14 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60492
60140
|
return t == null ? "" : String(t);
|
|
60493
60141
|
}
|
|
60494
60142
|
function ot(e) {
|
|
60495
|
-
return typeof e?.type == "string" && e.type.trim() ? e.type.trim() : e?.sensor_id !== void 0 || e?.dict_sensor_status !== void 0 || e?.dict_sensor_type !== void 0 ? "安全监测" : e?.zdnum !== void 0 || e?.zdname !== void 0 || e?.jcvl !== void 0 || e?.zd1xmc !== void 0 ?
|
|
60143
|
+
return typeof e?.type == "string" && e.type.trim() ? e.type.trim() : e?.sensor_id !== void 0 || e?.dict_sensor_status !== void 0 || e?.dict_sensor_type !== void 0 ? "安全监测" : e?.zdnum !== void 0 || e?.zdname !== void 0 || e?.jcvl !== void 0 || e?.zd1xmc !== void 0 ? VH : e?.bundle_tube_id !== void 0 || e?.tube_id !== void 0 || e?.bundletube_id !== void 0 ? HH : "监测点";
|
|
60496
60144
|
}
|
|
60497
60145
|
function st(e) {
|
|
60498
60146
|
let t = e?.name ?? e?.location ?? e?.zdname ?? e?.station_name ?? e?.v_name ?? e?.sensor_name ?? e?.point_name ?? at(e);
|
|
60499
60147
|
return (t == null ? "" : String(t).trim()) || "未命名监测点";
|
|
60500
60148
|
}
|
|
60501
60149
|
function ct(e) {
|
|
60502
|
-
if (
|
|
60150
|
+
if (ai(e?.position)) return {
|
|
60503
60151
|
x: Number(e.position.x),
|
|
60504
60152
|
y: Number(e.position.y),
|
|
60505
60153
|
z: Number(e.position.z)
|
|
@@ -60521,65 +60169,79 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60521
60169
|
return ut(e) ? "--" : String(e).trim();
|
|
60522
60170
|
}
|
|
60523
60171
|
function ft(e) {
|
|
60524
|
-
return ot(e) ===
|
|
60172
|
+
return ot(e) === BH;
|
|
60525
60173
|
}
|
|
60526
60174
|
function pt(e) {
|
|
60527
|
-
return ot(e) ===
|
|
60175
|
+
return ot(e) === VH;
|
|
60528
60176
|
}
|
|
60529
60177
|
function mt(e) {
|
|
60530
|
-
return ot(e) ===
|
|
60178
|
+
return ot(e) === HH;
|
|
60531
60179
|
}
|
|
60532
60180
|
function ht(e) {
|
|
60533
|
-
return
|
|
60181
|
+
return ot(e) === UH;
|
|
60534
60182
|
}
|
|
60535
60183
|
function gt(e) {
|
|
60536
|
-
|
|
60537
|
-
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
60184
|
+
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
60185
|
}
|
|
60539
60186
|
function _t(e) {
|
|
60540
|
-
return
|
|
60187
|
+
return ht(e) ? "" : gt(e);
|
|
60541
60188
|
}
|
|
60542
60189
|
function vt(e) {
|
|
60543
|
-
let t = dt(e?.
|
|
60190
|
+
let t = dt(e?.val), n = ut(e?.unit) ? "" : String(e.unit).trim();
|
|
60544
60191
|
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
60545
60192
|
}
|
|
60546
60193
|
function yt(e) {
|
|
60194
|
+
return [["测点值", vt(e)], ["数据更新时间", dt(e?.data_time)]];
|
|
60195
|
+
}
|
|
60196
|
+
function bt(e) {
|
|
60197
|
+
let t = e?.jcvl, n = dt(t), r = ut(e?.dw) ? "" : String(e.dw).trim();
|
|
60198
|
+
return n === "--" ? n : r ? `${n}${r}` : n;
|
|
60199
|
+
}
|
|
60200
|
+
function xt(e) {
|
|
60547
60201
|
return [
|
|
60548
|
-
["监测值",
|
|
60202
|
+
["监测值", bt(e)],
|
|
60549
60203
|
["数据时间", dt(e?.sj)],
|
|
60550
60204
|
["状态", dt(e?.state)]
|
|
60551
60205
|
];
|
|
60552
60206
|
}
|
|
60553
|
-
function
|
|
60207
|
+
function q(e) {
|
|
60554
60208
|
let t = dt(e?.val ?? e?.jcvl ?? e?.value), n = ut(e?.unit ?? e?.dw) ? "" : String(e?.unit ?? e?.dw).trim();
|
|
60555
60209
|
return t === "--" ? t : n ? `${t}${n}` : t;
|
|
60556
60210
|
}
|
|
60557
|
-
function
|
|
60211
|
+
function St(e) {
|
|
60558
60212
|
return [
|
|
60559
|
-
["监测值",
|
|
60213
|
+
["监测值", q(e)],
|
|
60560
60214
|
["数据时间", dt(e?.data_time ?? e?.sj ?? e?.time)],
|
|
60561
60215
|
["状态", dt(e?.state ?? e?.status)]
|
|
60562
60216
|
];
|
|
60563
60217
|
}
|
|
60564
|
-
function
|
|
60218
|
+
function Ct(e) {
|
|
60219
|
+
return [
|
|
60220
|
+
["部门", dt(e?.dept)],
|
|
60221
|
+
["职务", dt(e?.duty)],
|
|
60222
|
+
["数据时间", dt(e?.data_time)],
|
|
60223
|
+
["是否领导", dt(e?.is_leader)]
|
|
60224
|
+
];
|
|
60225
|
+
}
|
|
60226
|
+
function wt(e) {
|
|
60565
60227
|
return e?.data && typeof e.data == "object" && !Array.isArray(e.data) ? e.data : e && typeof e == "object" ? e : {};
|
|
60566
60228
|
}
|
|
60567
|
-
function
|
|
60229
|
+
function Tt(e) {
|
|
60568
60230
|
return {
|
|
60569
60231
|
...e,
|
|
60570
60232
|
id: at(e),
|
|
60571
60233
|
name: st(e),
|
|
60572
60234
|
type: ot(e),
|
|
60573
60235
|
position: ct(e),
|
|
60574
|
-
data:
|
|
60236
|
+
data: wt(e),
|
|
60575
60237
|
rawData: e
|
|
60576
60238
|
};
|
|
60577
60239
|
}
|
|
60578
|
-
let
|
|
60579
|
-
let t = e.sceneId, n = e.currentPosition ?? e.startPoint
|
|
60580
|
-
return t == null || !
|
|
60240
|
+
let Et = r(() => Te.value.map((e) => {
|
|
60241
|
+
let t = e.sceneId, n = e.currentPosition ?? e.startPoint;
|
|
60242
|
+
return t == null || !ai(n) ? null : {
|
|
60581
60243
|
id: String(t),
|
|
60582
|
-
type:
|
|
60244
|
+
type: UH,
|
|
60583
60245
|
name: e.name,
|
|
60584
60246
|
position: {
|
|
60585
60247
|
x: Number(n.x),
|
|
@@ -60587,25 +60249,29 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60587
60249
|
z: Number(n.z)
|
|
60588
60250
|
},
|
|
60589
60251
|
data: {
|
|
60590
|
-
|
|
60591
|
-
|
|
60592
|
-
|
|
60593
|
-
|
|
60252
|
+
部门: e.dept,
|
|
60253
|
+
职务: e.duty,
|
|
60254
|
+
数据时间: e.data_time,
|
|
60255
|
+
是否领导: e.is_leader
|
|
60594
60256
|
},
|
|
60257
|
+
rawData: e.rawData,
|
|
60595
60258
|
personSceneId: t,
|
|
60259
|
+
dept: e.dept,
|
|
60596
60260
|
duty: e.duty,
|
|
60261
|
+
data_time: e.data_time,
|
|
60262
|
+
is_leader: e.is_leader,
|
|
60597
60263
|
pointsHistory: e.pointsHistory,
|
|
60598
60264
|
currentTimeLabel: e.currentTimeLabel,
|
|
60599
60265
|
isMoving: e.isMoving,
|
|
60600
60266
|
status: e.status
|
|
60601
60267
|
};
|
|
60602
|
-
}).filter(Boolean)),
|
|
60268
|
+
}).filter(Boolean)), Dt = r(() => [...B.value.map((e) => Tt(e)), ...Et.value]), Ot = r(() => Dt.value.filter((e) => rt(e))), kt = r(() => {
|
|
60603
60269
|
let e = Ne.value;
|
|
60604
|
-
return e.status !== "preview" && e.status !== "saving" || !e.targetItem || !
|
|
60270
|
+
return e.status !== "preview" && e.status !== "saving" || !e.targetItem || !ai(e.candidatePosition) ? null : {
|
|
60605
60271
|
...e.targetItem,
|
|
60606
|
-
id:
|
|
60272
|
+
id: LH,
|
|
60607
60273
|
name: e.targetItem.name,
|
|
60608
|
-
type:
|
|
60274
|
+
type: BH,
|
|
60609
60275
|
position: {
|
|
60610
60276
|
x: Number(e.candidatePosition.x),
|
|
60611
60277
|
y: Number(e.candidatePosition.y),
|
|
@@ -60615,10 +60281,10 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60615
60281
|
rawData: e.targetItem.rawData ?? e.targetItem,
|
|
60616
60282
|
isPlacementPreview: !0
|
|
60617
60283
|
};
|
|
60618
|
-
}),
|
|
60619
|
-
let e =
|
|
60620
|
-
return e ? [...
|
|
60621
|
-
}),
|
|
60284
|
+
}), At = r(() => {
|
|
60285
|
+
let e = kt.value;
|
|
60286
|
+
return e ? [...Ot.value, e] : Ot.value;
|
|
60287
|
+
}), jt = r(() => $e.value ? Ot.value.map((e) => ({
|
|
60622
60288
|
id: e.id,
|
|
60623
60289
|
name: e.name,
|
|
60624
60290
|
type: e.type,
|
|
@@ -60626,7 +60292,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60626
60292
|
data: e.data,
|
|
60627
60293
|
positionText: rn(e.position),
|
|
60628
60294
|
isActive: _e.value === e.id
|
|
60629
|
-
})) : []),
|
|
60295
|
+
})) : []), Mt = r(() => At.value.map((e) => {
|
|
60630
60296
|
let t = Ve[e.type] ?? He;
|
|
60631
60297
|
return {
|
|
60632
60298
|
...e,
|
|
@@ -60635,7 +60301,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60635
60301
|
isActive: _e.value === e.id
|
|
60636
60302
|
};
|
|
60637
60303
|
}));
|
|
60638
|
-
ie(() => [_e.value,
|
|
60304
|
+
ie(() => [_e.value, At.value], ([e, t]) => {
|
|
60639
60305
|
e && (t.some((t) => t.id === e) || (_e.value = ""));
|
|
60640
60306
|
}, { deep: !0 }), ie(() => De.value, () => {
|
|
60641
60307
|
if (Be > 0) {
|
|
@@ -60648,31 +60314,31 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60648
60314
|
}
|
|
60649
60315
|
lr(Oe.value), $n("radius-change"), Zn();
|
|
60650
60316
|
});
|
|
60651
|
-
let
|
|
60317
|
+
let Nt = r(() => f.value?.dataSource?.type === "cloud" && f.value?.dataSource?.autoLoad === !0), Pt = r(() => {
|
|
60652
60318
|
let e = {};
|
|
60653
60319
|
return (Array.isArray(u.toolbarTools) ? u.toolbarTools : []).forEach((t) => {
|
|
60654
60320
|
let n = typeof t == "string" ? t.trim() : "";
|
|
60655
60321
|
n && (e[n] = !0);
|
|
60656
60322
|
}), e;
|
|
60657
60323
|
});
|
|
60658
|
-
function
|
|
60659
|
-
return !!
|
|
60324
|
+
function Ft(e) {
|
|
60325
|
+
return !!Pt.value[e];
|
|
60660
60326
|
}
|
|
60661
|
-
let
|
|
60327
|
+
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
60328
|
ie(() => ({
|
|
60663
|
-
debug:
|
|
60664
|
-
monitor:
|
|
60665
|
-
range:
|
|
60666
|
-
water:
|
|
60667
|
-
exitPath:
|
|
60668
|
-
view:
|
|
60669
|
-
region:
|
|
60329
|
+
debug: It.value,
|
|
60330
|
+
monitor: Lt.value,
|
|
60331
|
+
range: Rt.value,
|
|
60332
|
+
water: zt.value,
|
|
60333
|
+
exitPath: Bt.value,
|
|
60334
|
+
view: Vt.value,
|
|
60335
|
+
region: Ht.value
|
|
60670
60336
|
}), (e) => {
|
|
60671
60337
|
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
60338
|
}, { immediate: !0 });
|
|
60673
|
-
function
|
|
60339
|
+
function Ut(e, t) {
|
|
60674
60340
|
if (!e || typeof e != "object") return null;
|
|
60675
|
-
let n =
|
|
60341
|
+
let n = ri(e?.cameraPos?.x, e?.cameraPos?.y, e?.cameraPos?.z), r = ri(e?.viewCenter?.x, e?.viewCenter?.y, e?.viewCenter?.z);
|
|
60676
60342
|
return !n || !r ? null : {
|
|
60677
60343
|
...e,
|
|
60678
60344
|
key: `view-point-${t}`,
|
|
@@ -60681,110 +60347,101 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60681
60347
|
viewCenter: r
|
|
60682
60348
|
};
|
|
60683
60349
|
}
|
|
60684
|
-
let
|
|
60350
|
+
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
60351
|
function J(e) {
|
|
60686
60352
|
_.value = `${(/* @__PURE__ */ new Date()).toLocaleTimeString()} - ${e}`;
|
|
60687
60353
|
}
|
|
60688
|
-
function
|
|
60354
|
+
function Kt(e) {
|
|
60689
60355
|
let t = (/* @__PURE__ */ new Date()).toLocaleTimeString();
|
|
60690
60356
|
_.value = `${_.value}\n${t} - ${e}`;
|
|
60691
60357
|
}
|
|
60692
|
-
function
|
|
60358
|
+
function qt(e) {
|
|
60693
60359
|
oe.error(e), N.value = e, J(e);
|
|
60694
60360
|
}
|
|
60695
|
-
function
|
|
60696
|
-
if (typeof window > "u") return
|
|
60361
|
+
function Jt() {
|
|
60362
|
+
if (typeof window > "u") return qt("水蔓延控制对象获取失败:当前环境缺少 window"), null;
|
|
60697
60363
|
let e = window.lr3dapp?.editor?.manager?.modules?.waterSimulation;
|
|
60698
|
-
return e ? (console.log("水蔓延控制对象:", e), e) : (
|
|
60364
|
+
return e ? (console.log("水蔓延控制对象:", e), e) : (qt(`水蔓延控制对象获取失败:未找到 ${PH}`), null);
|
|
60699
60365
|
}
|
|
60700
|
-
function
|
|
60701
|
-
let n =
|
|
60366
|
+
function Yt(e, t) {
|
|
60367
|
+
let n = Jt();
|
|
60702
60368
|
if (!n) return !1;
|
|
60703
60369
|
let r = n[e];
|
|
60704
|
-
if (typeof r != "function") return
|
|
60370
|
+
if (typeof r != "function") return qt(`水蔓延操作失败:控制对象缺少 ${e} 方法`), !1;
|
|
60705
60371
|
try {
|
|
60706
60372
|
return r.call(n), N.value = t, J(t), !0;
|
|
60707
60373
|
} catch (e) {
|
|
60708
|
-
return
|
|
60374
|
+
return qt(`水蔓延操作失败:${nn(e)}`), !1;
|
|
60709
60375
|
}
|
|
60710
60376
|
}
|
|
60711
|
-
function
|
|
60377
|
+
function Xt(e) {
|
|
60712
60378
|
oe.error(e), N.value = e, J(e);
|
|
60713
60379
|
}
|
|
60714
|
-
function
|
|
60715
|
-
if (typeof window > "u") return
|
|
60380
|
+
function Zt() {
|
|
60381
|
+
if (typeof window > "u") return Xt("避灾线路控制对象获取失败:当前环境缺少 window"), null;
|
|
60716
60382
|
let e = window.lr3dapp?.editor?.manager?.modules?.exitPath;
|
|
60717
|
-
return e ? (console.log("避灾线路控制对象:", e), e) : (
|
|
60383
|
+
return e ? (console.log("避灾线路控制对象:", e), e) : (Xt(`避灾线路控制对象获取失败:未找到 ${FH}`), null);
|
|
60718
60384
|
}
|
|
60719
|
-
async function
|
|
60720
|
-
let r = n ??
|
|
60385
|
+
async function Qt(e, t, n = null) {
|
|
60386
|
+
let r = n ?? Zt();
|
|
60721
60387
|
if (!r) return !1;
|
|
60722
60388
|
let i = r[e];
|
|
60723
|
-
if (typeof i != "function") return
|
|
60389
|
+
if (typeof i != "function") return Xt(`避灾线路操作失败:控制对象缺少 ${e} 方法`), !1;
|
|
60724
60390
|
try {
|
|
60725
60391
|
return await i.call(r), N.value = t, J(t), !0;
|
|
60726
60392
|
} catch (e) {
|
|
60727
|
-
return
|
|
60393
|
+
return Xt(`避灾线路操作失败:${nn(e)}`), !1;
|
|
60728
60394
|
}
|
|
60729
60395
|
}
|
|
60730
|
-
function
|
|
60396
|
+
function $t() {
|
|
60731
60397
|
try {
|
|
60732
60398
|
Fn(v.value), J(`背景颜色已更新:${v.value}`);
|
|
60733
60399
|
} catch (e) {
|
|
60734
60400
|
J(`背景颜色更新失败:${nn(e)}`);
|
|
60735
60401
|
}
|
|
60736
60402
|
}
|
|
60737
|
-
function
|
|
60738
|
-
|
|
60739
|
-
|
|
60740
|
-
|
|
60741
|
-
|
|
60742
|
-
|
|
60403
|
+
function en(e) {
|
|
60404
|
+
if (typeof e?.coordinates != "string") return null;
|
|
60405
|
+
let t = e.coordinates.split(",").map((e) => e.trim());
|
|
60406
|
+
if (t.length < 3 || t.slice(0, 3).some((e) => e === "")) return null;
|
|
60407
|
+
let [n, r, i] = t.slice(0, 3).map((e) => Number(e));
|
|
60408
|
+
return !Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(i) ? null : {
|
|
60409
|
+
x: n,
|
|
60410
|
+
y: r,
|
|
60411
|
+
z: i
|
|
60743
60412
|
};
|
|
60744
60413
|
}
|
|
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() : "未设置岗位";
|
|
60414
|
+
function tn(e = []) {
|
|
60415
|
+
return Array.isArray(e) ? e.map((e) => {
|
|
60416
|
+
let t = en(e), n = typeof e?.id == "string" ? e.id.trim() : "";
|
|
60417
|
+
if (!n || !t) return null;
|
|
60418
|
+
let r = typeof e?.person_name == "string" && e.person_name.trim() ? e.person_name.trim() : "未命名人员", i = dt(e?.data_time), a = [{
|
|
60419
|
+
key: `person-position-${n}`,
|
|
60420
|
+
point: t,
|
|
60421
|
+
time: e?.data_time,
|
|
60422
|
+
timeLabel: i
|
|
60423
|
+
}];
|
|
60766
60424
|
return {
|
|
60767
|
-
key:
|
|
60768
|
-
sceneId:
|
|
60425
|
+
key: n,
|
|
60426
|
+
sceneId: n,
|
|
60769
60427
|
name: r,
|
|
60770
|
-
|
|
60771
|
-
|
|
60772
|
-
|
|
60773
|
-
|
|
60774
|
-
|
|
60428
|
+
dept: e?.dept,
|
|
60429
|
+
duty: e?.duty,
|
|
60430
|
+
data_time: e?.data_time,
|
|
60431
|
+
is_leader: e?.is_leader,
|
|
60432
|
+
rawData: e,
|
|
60433
|
+
pointsHistory: a,
|
|
60434
|
+
startPoint: { ...t },
|
|
60435
|
+
startTimeLabel: i,
|
|
60436
|
+
endTimeLabel: i,
|
|
60437
|
+
currentPosition: { ...t },
|
|
60438
|
+
currentPointIndex: 0,
|
|
60439
|
+
currentTimeLabel: i,
|
|
60440
|
+
isMoving: !1,
|
|
60441
|
+
status: "实时定位"
|
|
60775
60442
|
};
|
|
60776
60443
|
}).filter(Boolean) : [];
|
|
60777
60444
|
}
|
|
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
60445
|
function nn(e) {
|
|
60789
60446
|
return e instanceof Error ? e.message : "未知错误";
|
|
60790
60447
|
}
|
|
@@ -60795,12 +60452,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60795
60452
|
return e ? `X ${Number(e.x).toFixed(2)} / Y ${Number(e.y).toFixed(2)} / Z ${Number(e.z).toFixed(2)}` : "--";
|
|
60796
60453
|
}
|
|
60797
60454
|
function on(e) {
|
|
60798
|
-
return ft(e) ?
|
|
60455
|
+
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
60456
|
}
|
|
60800
60457
|
function sn(e) {
|
|
60801
60458
|
if (!e || typeof e != "object") return null;
|
|
60802
60459
|
let t = { ...e };
|
|
60803
|
-
return
|
|
60460
|
+
return ai(e.position) && (t.position = {
|
|
60804
60461
|
x: Number(e.position.x),
|
|
60805
60462
|
y: Number(e.position.y),
|
|
60806
60463
|
z: Number(e.position.z)
|
|
@@ -60816,7 +60473,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60816
60473
|
return Ye.value?.isPlacementPreview ? _n() : ln();
|
|
60817
60474
|
}
|
|
60818
60475
|
function dn(e, { focus: t = !1 } = {}) {
|
|
60819
|
-
return e?.id ? (_e.value = e.id, t ?
|
|
60476
|
+
return e?.id ? (_e.value = e.id, t ? hi(e.position, e.name) : !0) : !1;
|
|
60820
60477
|
}
|
|
60821
60478
|
function fn(e) {
|
|
60822
60479
|
return dn(e, { focus: !0 });
|
|
@@ -60825,7 +60482,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60825
60482
|
return dn(e, { focus: !0 });
|
|
60826
60483
|
}
|
|
60827
60484
|
function mn(e) {
|
|
60828
|
-
return
|
|
60485
|
+
return ai(ct(e));
|
|
60829
60486
|
}
|
|
60830
60487
|
function hn() {
|
|
60831
60488
|
typeof ze == "function" && ze(), ze = null;
|
|
@@ -60841,7 +60498,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60841
60498
|
}
|
|
60842
60499
|
function _n({ preserveStatus: e = !1 } = {}) {
|
|
60843
60500
|
let t = Ne.value.status;
|
|
60844
|
-
return hn(), _e.value ===
|
|
60501
|
+
return hn(), _e.value === LH && (_e.value = ""), gn(), !e && t !== "idle" && (N.value = "已取消监测点布点", J("已取消安全监测点布点")), t !== "idle";
|
|
60845
60502
|
}
|
|
60846
60503
|
function vn(e) {
|
|
60847
60504
|
let t = yr(e, "monitor-point-placement");
|
|
@@ -60852,8 +60509,8 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60852
60509
|
} : null;
|
|
60853
60510
|
}
|
|
60854
60511
|
function yn(e) {
|
|
60855
|
-
if (!
|
|
60856
|
-
let t = Ne.value, n =
|
|
60512
|
+
if (!ai(e?.point)) throw Error("拾取结果缺少有效三维坐标");
|
|
60513
|
+
let t = Ne.value, n = si(e.point);
|
|
60857
60514
|
if (!n || !t.targetItem) throw Error("布点目标或候选坐标无效");
|
|
60858
60515
|
return hn(), Ne.value = {
|
|
60859
60516
|
status: "preview",
|
|
@@ -60861,10 +60518,10 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60861
60518
|
candidatePosition: n,
|
|
60862
60519
|
selectedObjectInfo: vn(e.object),
|
|
60863
60520
|
errorMessage: ""
|
|
60864
|
-
}, _e.value =
|
|
60521
|
+
}, _e.value = LH, hi(n, t.targetItem.name), N.value = `已生成布点候选坐标:${rn(n)}`, J(`安全监测点布点候选坐标已生成:${t.targetItem.name}`), !0;
|
|
60865
60522
|
}
|
|
60866
60523
|
function bn(e) {
|
|
60867
|
-
let t =
|
|
60524
|
+
let t = Tt(e);
|
|
60868
60525
|
if (!ft(t)) return N.value = "当前仅支持安全监测点布点", J("已忽略非安全监测点布点请求"), !1;
|
|
60869
60526
|
if (!m.value) return N.value = "布点失败:未找到三维容器", J("布点失败:未找到三维容器"), !1;
|
|
60870
60527
|
Kn(), hn(), _e.value = "", Ne.value = {
|
|
@@ -60881,7 +60538,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60881
60538
|
Ne.value = {
|
|
60882
60539
|
...Ne.value,
|
|
60883
60540
|
errorMessage: "本次点击未命中有效三维对象"
|
|
60884
|
-
},
|
|
60541
|
+
}, Kt("布点点击未拾取到有效三维对象,请点击巷道或工作面表面");
|
|
60885
60542
|
return;
|
|
60886
60543
|
}
|
|
60887
60544
|
try {
|
|
@@ -60891,7 +60548,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60891
60548
|
...Ne.value,
|
|
60892
60549
|
status: "picking",
|
|
60893
60550
|
errorMessage: nn(e)
|
|
60894
|
-
},
|
|
60551
|
+
}, Kt(`布点取点失败:${nn(e)}`);
|
|
60895
60552
|
}
|
|
60896
60553
|
};
|
|
60897
60554
|
return m.value.addEventListener("click", n, !0), ze = () => {
|
|
@@ -60913,7 +60570,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60913
60570
|
}
|
|
60914
60571
|
function Sn(e, t) {
|
|
60915
60572
|
let n = at(e);
|
|
60916
|
-
if (!n || !
|
|
60573
|
+
if (!n || !ai(t)) return null;
|
|
60917
60574
|
let r = null;
|
|
60918
60575
|
return B.value = B.value.map((e) => {
|
|
60919
60576
|
if (at(e) !== n) return e;
|
|
@@ -60925,12 +60582,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60925
60582
|
z: Number(t.z)
|
|
60926
60583
|
}
|
|
60927
60584
|
};
|
|
60928
|
-
return r =
|
|
60585
|
+
return r = Tt(i), i;
|
|
60929
60586
|
}), r;
|
|
60930
60587
|
}
|
|
60931
60588
|
async function Cn() {
|
|
60932
60589
|
let e = Ne.value;
|
|
60933
|
-
if (e.status !== "preview" || !e.targetItem || !
|
|
60590
|
+
if (e.status !== "preview" || !e.targetItem || !ai(e.candidatePosition)) return !1;
|
|
60934
60591
|
Ne.value = {
|
|
60935
60592
|
...e,
|
|
60936
60593
|
status: "saving",
|
|
@@ -60950,11 +60607,11 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60950
60607
|
...e,
|
|
60951
60608
|
status: "preview",
|
|
60952
60609
|
errorMessage: nn(t)
|
|
60953
|
-
}, _e.value =
|
|
60610
|
+
}, _e.value = LH, J(`安全监测点布点保存失败:${nn(t)}`), !1;
|
|
60954
60611
|
}
|
|
60955
60612
|
}
|
|
60956
60613
|
function wn(e) {
|
|
60957
|
-
let t =
|
|
60614
|
+
let t = ci(e?.position), n = li();
|
|
60958
60615
|
if (!t || !n || !m.value) return null;
|
|
60959
60616
|
let r = m.value.getBoundingClientRect();
|
|
60960
60617
|
if (r.width <= 0 || r.height <= 0) return null;
|
|
@@ -60970,12 +60627,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
60970
60627
|
}
|
|
60971
60628
|
}
|
|
60972
60629
|
function Tn() {
|
|
60973
|
-
if (h.value !== "ready" ||
|
|
60630
|
+
if (h.value !== "ready" || At.value.length === 0) {
|
|
60974
60631
|
he.value = {};
|
|
60975
60632
|
return;
|
|
60976
60633
|
}
|
|
60977
60634
|
let e = {};
|
|
60978
|
-
|
|
60635
|
+
At.value.forEach((t) => {
|
|
60979
60636
|
let n = wn(t);
|
|
60980
60637
|
n && (e[t.id] = n);
|
|
60981
60638
|
}), he.value = e;
|
|
@@ -61010,12 +60667,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61010
60667
|
}
|
|
61011
60668
|
On();
|
|
61012
60669
|
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) <=
|
|
60670
|
+
if (o.distanceTo(n) <= DH && c.distanceTo(r) <= DH) {
|
|
61014
60671
|
jn(e, t, n, r), a?.();
|
|
61015
60672
|
return;
|
|
61016
60673
|
}
|
|
61017
60674
|
let l = o.clone(), u = c.clone(), d = kn(), f = (i) => {
|
|
61018
|
-
let s = kn(i) - d, p = Math.min(s /
|
|
60675
|
+
let s = kn(i) - d, p = Math.min(s / EH, 1), m = An(p);
|
|
61019
60676
|
if (l.copy(o).lerp(n, m), u.copy(c).lerp(r, m), jn(e, t, l, u), p >= 1) {
|
|
61020
60677
|
On(), a?.();
|
|
61021
60678
|
return;
|
|
@@ -61043,7 +60700,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61043
60700
|
return N.value = "人员定位三维模型已移除", [];
|
|
61044
60701
|
}
|
|
61045
60702
|
function Rn() {
|
|
61046
|
-
return
|
|
60703
|
+
return Qr(), !0;
|
|
61047
60704
|
}
|
|
61048
60705
|
function zn() {
|
|
61049
60706
|
return [];
|
|
@@ -61081,11 +60738,11 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61081
60738
|
return Ee.value === "picking" ? "picking" : $e.value ? "selected" : "idle";
|
|
61082
60739
|
}
|
|
61083
60740
|
function Jn() {
|
|
61084
|
-
return $e.value ?
|
|
60741
|
+
return $e.value ? jt.value.map((e) => ({
|
|
61085
60742
|
id: e.id,
|
|
61086
60743
|
name: e.name,
|
|
61087
60744
|
type: e.type,
|
|
61088
|
-
position:
|
|
60745
|
+
position: ai(e.position) ? {
|
|
61089
60746
|
x: Number(e.position.x),
|
|
61090
60747
|
y: Number(e.position.y),
|
|
61091
60748
|
z: Number(e.position.z)
|
|
@@ -61129,7 +60786,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61129
60786
|
try {
|
|
61130
60787
|
return e(Xn()), !0;
|
|
61131
60788
|
} catch (e) {
|
|
61132
|
-
return
|
|
60789
|
+
return Kt(`范围选点结果变化回调执行失败:${nn(e)}`), !1;
|
|
61133
60790
|
}
|
|
61134
60791
|
}
|
|
61135
60792
|
function Qn(e) {
|
|
@@ -61145,7 +60802,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61145
60802
|
reason: e
|
|
61146
60803
|
}), !0;
|
|
61147
60804
|
} catch (e) {
|
|
61148
|
-
return
|
|
60805
|
+
return Kt(`范围选点回调执行失败:${nn(e)}`), !1;
|
|
61149
60806
|
}
|
|
61150
60807
|
}
|
|
61151
60808
|
function er(e) {
|
|
@@ -61154,7 +60811,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61154
60811
|
}
|
|
61155
60812
|
function tr(e) {
|
|
61156
60813
|
let t = Number(e);
|
|
61157
|
-
return !Number.isFinite(t) || t <= 0 ? null : Math.min(
|
|
60814
|
+
return !Number.isFinite(t) || t <= 0 ? null : Math.min(AH, Math.max(kH, t));
|
|
61158
60815
|
}
|
|
61159
60816
|
function nr(e, { silent: t = !1 } = {}) {
|
|
61160
60817
|
let n = tr(e);
|
|
@@ -61169,21 +60826,21 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61169
60826
|
function ar(e) {
|
|
61170
60827
|
let t = e;
|
|
61171
60828
|
for (; t;) {
|
|
61172
|
-
if (t.name ===
|
|
60829
|
+
if (t.name === MH || t.name === NH || t.name === LH) return !0;
|
|
61173
60830
|
t = t.parent ?? null;
|
|
61174
60831
|
}
|
|
61175
60832
|
return !1;
|
|
61176
60833
|
}
|
|
61177
60834
|
function or(e) {
|
|
61178
60835
|
if (!m.value) return null;
|
|
61179
|
-
let t = In(), n =
|
|
60836
|
+
let t = In(), n = li();
|
|
61180
60837
|
if (!t || !n) return null;
|
|
61181
60838
|
let r = m.value.getBoundingClientRect();
|
|
61182
60839
|
if (r.width <= 0 || r.height <= 0) return null;
|
|
61183
60840
|
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
60841
|
return n.updateProjectionMatrix?.(), n.updateMatrixWorld?.(!0), t.updateMatrixWorld?.(!0), o.setFromCamera(a, n), o.intersectObjects(t.children, !0).find((e) => {
|
|
61185
60842
|
let t = e?.object;
|
|
61186
|
-
return !t?.visible || ar(t) ? !1 :
|
|
60843
|
+
return !t?.visible || ar(t) ? !1 : ai(e?.point);
|
|
61187
60844
|
}) ?? null;
|
|
61188
60845
|
}
|
|
61189
60846
|
function sr(e) {
|
|
@@ -61202,7 +60859,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61202
60859
|
if (!t) throw Error("当前三维实例未提供可挂载球体的 scene");
|
|
61203
60860
|
Wn();
|
|
61204
60861
|
let n = Pn(), r = new n.Group();
|
|
61205
|
-
r.name =
|
|
60862
|
+
r.name = MH;
|
|
61206
60863
|
let i = new n.SphereGeometry(De.value, 40, 28), a = new n.MeshBasicMaterial({
|
|
61207
60864
|
color: "#ff6c00",
|
|
61208
60865
|
transparent: !0,
|
|
@@ -61216,8 +60873,8 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61216
60873
|
if (!t) throw Error("当前三维实例未提供可挂载选点标记的 scene");
|
|
61217
60874
|
Gn();
|
|
61218
60875
|
let n = Pn(), r = new n.Group();
|
|
61219
|
-
r.name =
|
|
61220
|
-
let i = new n.SphereGeometry(
|
|
60876
|
+
r.name = NH;
|
|
60877
|
+
let i = new n.SphereGeometry(RH, 24, 20), a = new n.MeshBasicMaterial({
|
|
61221
60878
|
color: 16726832,
|
|
61222
60879
|
transparent: !0,
|
|
61223
60880
|
opacity: .98
|
|
@@ -61225,14 +60882,14 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61225
60882
|
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
60883
|
}
|
|
61227
60884
|
function dr(e, t = null, n = "pick") {
|
|
61228
|
-
if (!
|
|
60885
|
+
if (!ai(e)) throw Error("拾取结果缺少有效三维坐标");
|
|
61229
60886
|
let r = {
|
|
61230
60887
|
x: Number(e.x),
|
|
61231
60888
|
y: Number(e.y),
|
|
61232
60889
|
z: Number(e.z)
|
|
61233
60890
|
};
|
|
61234
60891
|
lr(r), ur(r), Oe.value = r, ke.value = cr(t), Ae.value = n, Ee.value = "idle", Kn();
|
|
61235
|
-
let i = an(
|
|
60892
|
+
let i = an(si(r) || r);
|
|
61236
60893
|
return N.value = `已生成 ${De.value} 米球形范围`, J(`范围选点完成,球心坐标:${i}`), $n(n === "manual" ? "set" : "picked"), Zn(), !0;
|
|
61237
60894
|
}
|
|
61238
60895
|
function fr(e = {}) {
|
|
@@ -61244,7 +60901,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61244
60901
|
if (Ee.value !== "picking") return;
|
|
61245
60902
|
let t = sr(e);
|
|
61246
60903
|
if (!t?.point) {
|
|
61247
|
-
|
|
60904
|
+
Kt("本次点击未拾取到有效三维对象,请尝试直接点击巷道表面");
|
|
61248
60905
|
return;
|
|
61249
60906
|
}
|
|
61250
60907
|
try {
|
|
@@ -61260,11 +60917,11 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61260
60917
|
function pr(e, t = {}) {
|
|
61261
60918
|
let n = t ?? {}, r = n.coordinateSpace === "relative" ? "relative" : "absolute";
|
|
61262
60919
|
if (n.radius !== void 0 && !nr(n.radius, { silent: !0 })) return N.value = "范围选点失败:范围半径无效", J("范围选点失败:范围半径无效"), !1;
|
|
61263
|
-
let i = r === "relative" ?
|
|
60920
|
+
let i = r === "relative" ? ai(e) ? {
|
|
61264
60921
|
x: Number(e.x),
|
|
61265
60922
|
y: Number(e.y),
|
|
61266
60923
|
z: Number(e.z)
|
|
61267
|
-
} : null :
|
|
60924
|
+
} : null : ci(e);
|
|
61268
60925
|
if (!i) return N.value = "范围选点失败:坐标参数无效", J("范围选点失败:坐标参数无效"), !1;
|
|
61269
60926
|
Kn();
|
|
61270
60927
|
try {
|
|
@@ -61387,7 +61044,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61387
61044
|
return _n({ preserveStatus: !0 }), _e.value = "", B.value = [], he.value = {}, !0;
|
|
61388
61045
|
}
|
|
61389
61046
|
function Dr(e) {
|
|
61390
|
-
return B.value = cn(e),
|
|
61047
|
+
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
61048
|
}
|
|
61392
61049
|
function Or() {
|
|
61393
61050
|
return { orgCode: u.mineId };
|
|
@@ -61406,41 +61063,45 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61406
61063
|
pageSize: 10
|
|
61407
61064
|
};
|
|
61408
61065
|
}
|
|
61409
|
-
function jr(
|
|
61410
|
-
return
|
|
61066
|
+
function jr() {
|
|
61067
|
+
return { orgCode: u.mineId };
|
|
61411
61068
|
}
|
|
61412
61069
|
function Mr(e) {
|
|
61070
|
+
return e?.status === "fulfilled" && Array.isArray(e.value) ? e.value : [];
|
|
61071
|
+
}
|
|
61072
|
+
function Y(e) {
|
|
61413
61073
|
return e.filter((e) => e?.status === "rejected").map((e) => nn(e.reason));
|
|
61414
61074
|
}
|
|
61415
|
-
async function
|
|
61075
|
+
async function Nr() {
|
|
61416
61076
|
let e = await Promise.allSettled([
|
|
61417
61077
|
d.querySafetyMonitorPointList(Or()),
|
|
61418
61078
|
d.queryHydrologyMonitorDataList(kr()),
|
|
61419
|
-
d.queryBundleTubeSensorList(Ar())
|
|
61420
|
-
|
|
61421
|
-
|
|
61422
|
-
|
|
61423
|
-
|
|
61079
|
+
d.queryBundleTubeSensorList(Ar()),
|
|
61080
|
+
d.queryPersonPositionList(jr())
|
|
61081
|
+
]), [t, n, r, i] = e, a = Y(e);
|
|
61082
|
+
if (a.length === e.length) throw Error(a.join(";"));
|
|
61083
|
+
a.length && J(`部分监测点数据查询失败:${a.join(";")}`);
|
|
61084
|
+
let o = Mr(r).map((e, t) => {
|
|
61424
61085
|
let n = e?.id ?? e?.sensor_id ?? e?.station_id ?? e?.zdnum;
|
|
61425
61086
|
return {
|
|
61426
61087
|
...e,
|
|
61427
61088
|
id: n == null || String(n).trim() === "" ? `bundle-tube-${t + 1}` : `bundle-tube-${String(n).trim()}`,
|
|
61428
|
-
type:
|
|
61089
|
+
type: HH
|
|
61429
61090
|
};
|
|
61430
61091
|
});
|
|
61431
|
-
return cn([
|
|
61432
|
-
...
|
|
61433
|
-
...
|
|
61434
|
-
...
|
|
61092
|
+
return Te.value = tn(Mr(i)), cn([
|
|
61093
|
+
...Mr(t),
|
|
61094
|
+
...Mr(n),
|
|
61095
|
+
...o
|
|
61435
61096
|
]);
|
|
61436
61097
|
}
|
|
61437
|
-
async function
|
|
61098
|
+
async function Pr({ forceReload: e = !1 } = {}) {
|
|
61438
61099
|
if (pe.value === "loading") return null;
|
|
61439
61100
|
if (pe.value === "ready" && !e) return cn(B.value);
|
|
61440
61101
|
let t = Le + 1;
|
|
61441
61102
|
Le = t, pe.value = "loading", me.value = "";
|
|
61442
61103
|
try {
|
|
61443
|
-
let e = await
|
|
61104
|
+
let e = await Nr();
|
|
61444
61105
|
if (Le !== t) return null;
|
|
61445
61106
|
let n = Dr(e);
|
|
61446
61107
|
return J(`监测点数据已初始化并显示:${n.length} 个`), cn(n);
|
|
@@ -61448,78 +61109,78 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61448
61109
|
return Le === t ? (Er(), pe.value = "error", me.value = nn(e), J(`监测点数据初始化失败:${me.value}`), null) : null;
|
|
61449
61110
|
}
|
|
61450
61111
|
}
|
|
61451
|
-
async function
|
|
61112
|
+
async function Fr() {
|
|
61452
61113
|
if (pe.value === "loading") return null;
|
|
61453
61114
|
try {
|
|
61454
|
-
let e = await
|
|
61115
|
+
let e = await Nr();
|
|
61455
61116
|
return J(`监测点数据查询完成:${e.length} 个`), e;
|
|
61456
61117
|
} catch (e) {
|
|
61457
61118
|
return J(`监测点数据查询失败:${nn(e)}`), null;
|
|
61458
61119
|
}
|
|
61459
61120
|
}
|
|
61460
|
-
async function
|
|
61461
|
-
return pe.value === "loading" ? null : (Er(), pe.value = "idle", me.value = "",
|
|
61121
|
+
async function X() {
|
|
61122
|
+
return pe.value === "loading" ? null : (Er(), pe.value = "idle", me.value = "", Pr({ forceReload: !0 }));
|
|
61462
61123
|
}
|
|
61463
|
-
function
|
|
61124
|
+
function Ir() {
|
|
61464
61125
|
return Te.value[0] ?? null;
|
|
61465
61126
|
}
|
|
61466
|
-
function
|
|
61127
|
+
function Lr(e) {
|
|
61467
61128
|
return Te.value.find((t) => t.sceneId === e) ?? null;
|
|
61468
61129
|
}
|
|
61469
|
-
function
|
|
61470
|
-
if (e == null || e === "") return
|
|
61471
|
-
if (typeof e == "number" && Number.isFinite(e)) return
|
|
61130
|
+
function Rr(e) {
|
|
61131
|
+
if (e == null || e === "") return Ir();
|
|
61132
|
+
if (typeof e == "number" && Number.isFinite(e)) return Lr(e);
|
|
61472
61133
|
if (typeof e == "string") {
|
|
61473
61134
|
let t = Nn(e);
|
|
61474
|
-
if (!t) return
|
|
61135
|
+
if (!t) return Ir();
|
|
61475
61136
|
let n = Number(e);
|
|
61476
61137
|
if (Number.isFinite(n)) {
|
|
61477
|
-
let e =
|
|
61138
|
+
let e = Lr(n);
|
|
61478
61139
|
if (e) return e;
|
|
61479
61140
|
}
|
|
61480
61141
|
return Te.value.find((e) => Nn(e.key) === t || Nn(e.name) === t) ?? null;
|
|
61481
61142
|
}
|
|
61482
61143
|
if (typeof e == "object") {
|
|
61483
61144
|
if (Number.isFinite(Number(e.sceneId))) {
|
|
61484
|
-
let t =
|
|
61145
|
+
let t = Lr(Number(e.sceneId));
|
|
61485
61146
|
if (t) return t;
|
|
61486
61147
|
}
|
|
61487
|
-
if (typeof e.key == "string" || typeof e.name == "string") return
|
|
61148
|
+
if (typeof e.key == "string" || typeof e.name == "string") return Rr(e.key ?? e.name);
|
|
61488
61149
|
}
|
|
61489
61150
|
return null;
|
|
61490
61151
|
}
|
|
61491
|
-
function
|
|
61152
|
+
function zr(e) {
|
|
61492
61153
|
e && (e.currentPosition = { ...e.startPoint }, e.currentPointIndex = 0, e.currentTimeLabel = e.startTimeLabel, e.isMoving = !1, e.status = e.pointsHistory.length > 1 ? "待命" : "无轨迹可播放");
|
|
61493
61154
|
}
|
|
61494
|
-
function
|
|
61155
|
+
function Br() {
|
|
61495
61156
|
Te.value.forEach((e) => {
|
|
61496
|
-
|
|
61157
|
+
zr(e);
|
|
61497
61158
|
});
|
|
61498
61159
|
}
|
|
61499
|
-
function
|
|
61500
|
-
let e =
|
|
61160
|
+
function Vr() {
|
|
61161
|
+
let e = Ir();
|
|
61501
61162
|
if (!e?.currentPosition) {
|
|
61502
61163
|
A.value = null, M.value = !1;
|
|
61503
61164
|
return;
|
|
61504
61165
|
}
|
|
61505
61166
|
A.value = { ...e.currentPosition }, M.value = e.isMoving === !0;
|
|
61506
61167
|
}
|
|
61507
|
-
function
|
|
61168
|
+
function Hr(e) {
|
|
61508
61169
|
let t = G.get(e);
|
|
61509
61170
|
t !== void 0 && (window.clearTimeout(t), G.delete(e));
|
|
61510
61171
|
let n = Ie.get(e);
|
|
61511
61172
|
n !== void 0 && (window.clearTimeout(n), Ie.delete(e));
|
|
61512
61173
|
}
|
|
61513
|
-
function
|
|
61174
|
+
function Ur() {
|
|
61514
61175
|
let e = new Set([...G.keys(), ...Ie.keys()]);
|
|
61515
61176
|
Array.from(e).forEach((e) => {
|
|
61516
|
-
|
|
61177
|
+
Hr(e);
|
|
61517
61178
|
});
|
|
61518
61179
|
}
|
|
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),
|
|
61180
|
+
function Wr(e, t, n = {}) {
|
|
61181
|
+
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
61182
|
}
|
|
61522
|
-
function
|
|
61183
|
+
function Gr(e) {
|
|
61523
61184
|
let t = e?.pointsHistory?.length - 1;
|
|
61524
61185
|
if (!Number.isFinite(t) || t <= 0) return [];
|
|
61525
61186
|
let n = [];
|
|
@@ -61528,14 +61189,14 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61528
61189
|
n.push(Math.max(r - i, 0));
|
|
61529
61190
|
}
|
|
61530
61191
|
let r = n.reduce((e, t) => e + t, 0);
|
|
61531
|
-
if (r <= 0) return n.map(() =>
|
|
61532
|
-
let i = Math.min(Math.max(t *
|
|
61192
|
+
if (r <= 0) return n.map(() => bH);
|
|
61193
|
+
let i = Math.min(Math.max(t * bH, 6e3), yH);
|
|
61533
61194
|
return n.map((e) => {
|
|
61534
61195
|
let t = Math.round(e / r * i);
|
|
61535
|
-
return Math.min(
|
|
61196
|
+
return Math.min(CH, Math.max(xH, t));
|
|
61536
61197
|
});
|
|
61537
61198
|
}
|
|
61538
|
-
function
|
|
61199
|
+
function Kr(e, t, n) {
|
|
61539
61200
|
let r = Math.min(1, Math.max(0, Number(n) || 0));
|
|
61540
61201
|
return {
|
|
61541
61202
|
x: Number(e.x) + (Number(t.x) - Number(e.x)) * r,
|
|
@@ -61543,31 +61204,31 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61543
61204
|
z: Number(e.z) + (Number(t.z) - Number(e.z)) * r
|
|
61544
61205
|
};
|
|
61545
61206
|
}
|
|
61546
|
-
function
|
|
61547
|
-
let t =
|
|
61548
|
-
t && (t.isMoving = !1, t.status = `移动完成:${t.currentTimeLabel}`,
|
|
61207
|
+
function qr(e) {
|
|
61208
|
+
let t = Lr(e);
|
|
61209
|
+
t && (t.isMoving = !1, t.status = `移动完成:${t.currentTimeLabel}`, Vr());
|
|
61549
61210
|
}
|
|
61550
|
-
function
|
|
61551
|
-
let r =
|
|
61211
|
+
function Jr(e, t, n) {
|
|
61212
|
+
let r = Lr(e);
|
|
61552
61213
|
if (!r) return;
|
|
61553
61214
|
if (t >= r.pointsHistory.length - 1) {
|
|
61554
61215
|
let t = window.setTimeout(() => {
|
|
61555
|
-
Ie.delete(e),
|
|
61556
|
-
},
|
|
61216
|
+
Ie.delete(e), qr(e);
|
|
61217
|
+
}, wH);
|
|
61557
61218
|
Ie.set(e, t);
|
|
61558
61219
|
return;
|
|
61559
61220
|
}
|
|
61560
|
-
let i = r.pointsHistory[t], a = r.pointsHistory[t + 1], o = n[t] ??
|
|
61561
|
-
let r =
|
|
61221
|
+
let i = r.pointsHistory[t], a = r.pointsHistory[t + 1], o = n[t] ?? bH, s = typeof performance < "u" ? performance.now() : Date.now(), c = () => {
|
|
61222
|
+
let r = Lr(e);
|
|
61562
61223
|
if (!r) return;
|
|
61563
61224
|
let l = typeof performance < "u" ? performance.now() : Date.now(), u = Math.min(1, Math.max(0, (l - s) / o));
|
|
61564
|
-
if (
|
|
61225
|
+
if (Wr(r, Kr(i.point, a.point, u), {
|
|
61565
61226
|
pointIndex: u >= 1 ? t + 1 : t,
|
|
61566
61227
|
timeLabel: u >= 1 ? a.timeLabel : i.timeLabel,
|
|
61567
61228
|
isMoving: !0,
|
|
61568
61229
|
status: `轨迹播放中:${t + 2}/${r.pointsHistory.length}`
|
|
61569
61230
|
}), u >= 1) {
|
|
61570
|
-
G.delete(e),
|
|
61231
|
+
G.delete(e), Jr(e, t + 1, n);
|
|
61571
61232
|
return;
|
|
61572
61233
|
}
|
|
61573
61234
|
let d = window.setTimeout(c, 16);
|
|
@@ -61575,45 +61236,45 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61575
61236
|
};
|
|
61576
61237
|
c();
|
|
61577
61238
|
}
|
|
61578
|
-
function
|
|
61579
|
-
let t =
|
|
61580
|
-
return t ? t.pointsHistory.length < 2 ? (t.status = "无轨迹可播放", !1) : (
|
|
61239
|
+
function Yr(e) {
|
|
61240
|
+
let t = Lr(e);
|
|
61241
|
+
return t ? t.pointsHistory.length < 2 ? (t.status = "无轨迹可播放", !1) : (Hr(e), zr(t), Wr(t, t.startPoint, {
|
|
61581
61242
|
pointIndex: 0,
|
|
61582
61243
|
timeLabel: t.startTimeLabel,
|
|
61583
61244
|
isMoving: !0,
|
|
61584
61245
|
status: `轨迹播放开始:${t.startTimeLabel}`
|
|
61585
|
-
}),
|
|
61246
|
+
}), Kt(`人员轨迹播放开始:${t.name},轨迹点 ${t.pointsHistory.length} 个`), Jr(e, 0, Gr(t)), !0) : !1;
|
|
61586
61247
|
}
|
|
61587
|
-
function
|
|
61588
|
-
let n =
|
|
61589
|
-
return n ? (
|
|
61248
|
+
function Xr(e, t = "已停止移动") {
|
|
61249
|
+
let n = Lr(e);
|
|
61250
|
+
return n ? (Hr(e), n.isMoving = !1, n.status = t, Vr(), !0) : !1;
|
|
61590
61251
|
}
|
|
61591
|
-
function
|
|
61592
|
-
let t =
|
|
61593
|
-
return t ?
|
|
61594
|
-
}
|
|
61595
|
-
function Zr() {
|
|
61596
|
-
Hr(), zr(), M.value = !1, A.value = null;
|
|
61252
|
+
function Zr(e) {
|
|
61253
|
+
let t = Rr(e);
|
|
61254
|
+
return t ? Yr(t.sceneId) : !1;
|
|
61597
61255
|
}
|
|
61598
61256
|
function Qr() {
|
|
61599
|
-
|
|
61257
|
+
Ur(), Br(), M.value = !1, A.value = null;
|
|
61600
61258
|
}
|
|
61601
61259
|
function $r() {
|
|
61602
|
-
|
|
61260
|
+
return Zr(Ir()?.sceneId);
|
|
61261
|
+
}
|
|
61262
|
+
function ei() {
|
|
61263
|
+
let e = Ir();
|
|
61603
61264
|
if (e) {
|
|
61604
|
-
let t =
|
|
61265
|
+
let t = Xr(e.sceneId, "轨迹播放已停止");
|
|
61605
61266
|
return N.value = t ? "人员轨迹播放已停止" : "停止轨迹播放失败", t;
|
|
61606
61267
|
}
|
|
61607
61268
|
return M.value = !1, N.value = "没有可用人员轨迹数据", !1;
|
|
61608
61269
|
}
|
|
61609
|
-
function
|
|
61610
|
-
return M.value ? (
|
|
61270
|
+
function ti(e) {
|
|
61271
|
+
return M.value ? (ei(), !0) : $r(e);
|
|
61611
61272
|
}
|
|
61612
|
-
function
|
|
61613
|
-
let e =
|
|
61614
|
-
return e ? (
|
|
61273
|
+
function ni() {
|
|
61274
|
+
let e = Ir();
|
|
61275
|
+
return e ? (Hr(e.sceneId), zr(e), Vr(), N.value = `人员监测点已初始化:${e.name}`, !0) : (N.value = "没有可用人员轨迹数据", !1);
|
|
61615
61276
|
}
|
|
61616
|
-
function
|
|
61277
|
+
function ri(e, t, n) {
|
|
61617
61278
|
let r = Number(e), i = Number(t), a = Number(n);
|
|
61618
61279
|
return !Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a) ? null : {
|
|
61619
61280
|
x: r,
|
|
@@ -61621,13 +61282,13 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61621
61282
|
z: a
|
|
61622
61283
|
};
|
|
61623
61284
|
}
|
|
61624
|
-
function
|
|
61285
|
+
function ii(e) {
|
|
61625
61286
|
return Number.isFinite(Number(e));
|
|
61626
61287
|
}
|
|
61627
|
-
function
|
|
61628
|
-
return e &&
|
|
61288
|
+
function ai(e) {
|
|
61289
|
+
return e && ii(e.x) && ii(e.y) && ii(e.z);
|
|
61629
61290
|
}
|
|
61630
|
-
function
|
|
61291
|
+
function oi() {
|
|
61631
61292
|
let e = nj()?.basePoint ?? {
|
|
61632
61293
|
x: 0,
|
|
61633
61294
|
y: 0,
|
|
@@ -61639,29 +61300,29 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61639
61300
|
z: Number(e.z ?? 0)
|
|
61640
61301
|
};
|
|
61641
61302
|
}
|
|
61642
|
-
function
|
|
61643
|
-
if (!
|
|
61644
|
-
let t =
|
|
61303
|
+
function si(e) {
|
|
61304
|
+
if (!ai(e)) return null;
|
|
61305
|
+
let t = oi();
|
|
61645
61306
|
return {
|
|
61646
61307
|
x: Number(e.x) + t.x,
|
|
61647
61308
|
y: Number(e.y) + t.y,
|
|
61648
61309
|
z: Number(e.z) + t.z
|
|
61649
61310
|
};
|
|
61650
61311
|
}
|
|
61651
|
-
function
|
|
61652
|
-
if (!
|
|
61653
|
-
let t =
|
|
61312
|
+
function ci(e) {
|
|
61313
|
+
if (!ai(e)) return null;
|
|
61314
|
+
let t = oi();
|
|
61654
61315
|
return {
|
|
61655
61316
|
x: Number(e.x) - t.x,
|
|
61656
61317
|
y: Number(e.y) - t.y,
|
|
61657
61318
|
z: Number(e.z) - t.z
|
|
61658
61319
|
};
|
|
61659
61320
|
}
|
|
61660
|
-
function
|
|
61321
|
+
function li() {
|
|
61661
61322
|
let e = nj(), t = rj();
|
|
61662
61323
|
return t?.camera ?? t?.viewportCamera ?? e?.camera ?? null;
|
|
61663
61324
|
}
|
|
61664
|
-
function
|
|
61325
|
+
function ui() {
|
|
61665
61326
|
let e = nj(), t = rj(), n = ij();
|
|
61666
61327
|
return [
|
|
61667
61328
|
t?.controls,
|
|
@@ -61676,8 +61337,8 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61676
61337
|
e?.orbitControls
|
|
61677
61338
|
].find((e) => e && typeof e == "object") ?? null;
|
|
61678
61339
|
}
|
|
61679
|
-
function
|
|
61680
|
-
return
|
|
61340
|
+
function di() {
|
|
61341
|
+
return Wt.value.map((e) => ({
|
|
61681
61342
|
key: e.key,
|
|
61682
61343
|
name: e.name,
|
|
61683
61344
|
cameraPos: {
|
|
@@ -61692,12 +61353,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61692
61353
|
}
|
|
61693
61354
|
}));
|
|
61694
61355
|
}
|
|
61695
|
-
function
|
|
61356
|
+
function fi() {
|
|
61696
61357
|
try {
|
|
61697
|
-
let e =
|
|
61358
|
+
let e = li(), t = ui();
|
|
61698
61359
|
if (!e?.position || !t?.center) throw Error("当前 SDK 未提供可读取的 camera.position 或 controls.center");
|
|
61699
61360
|
let n = {
|
|
61700
|
-
name:
|
|
61361
|
+
name: Gt.value === "未切换" ? "当前视角" : Gt.value,
|
|
61701
61362
|
cameraPos: {
|
|
61702
61363
|
x: Number(e.position.x),
|
|
61703
61364
|
y: Number(e.position.y),
|
|
@@ -61714,12 +61375,12 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61714
61375
|
return J(`读取当前视口视角失败:${nn(e)}`), null;
|
|
61715
61376
|
}
|
|
61716
61377
|
}
|
|
61717
|
-
function
|
|
61378
|
+
function pi(e) {
|
|
61718
61379
|
let t = typeof e?.name == "string" && e.name.trim() ? e.name.trim() : "当前视角";
|
|
61719
61380
|
try {
|
|
61720
61381
|
let n = rj();
|
|
61721
|
-
|
|
61722
|
-
let r =
|
|
61382
|
+
li();
|
|
61383
|
+
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
61384
|
if (!a || !o) throw Error("视角参数缺少有效的 cameraPos 或 viewCenter");
|
|
61724
61385
|
if (!n?.camera?.position || !r?.center && !r?.target) throw Error("当前 SDK 未提供可恢复视角的 camera.position 或 controls.center/target");
|
|
61725
61386
|
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 +61390,17 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61729
61390
|
return N.value = `${t}恢复失败:${nn(e)}`, J(`${t}恢复失败:${nn(e)}`), !1;
|
|
61730
61391
|
}
|
|
61731
61392
|
}
|
|
61732
|
-
function
|
|
61393
|
+
function mi(e) {
|
|
61733
61394
|
if (typeof e == "string" && e.trim()) {
|
|
61734
61395
|
let t = Nn(e);
|
|
61735
|
-
return
|
|
61396
|
+
return Wt.value.find((e) => Nn(e.key) === t || Nn(e.name) === t) ?? null;
|
|
61736
61397
|
}
|
|
61737
61398
|
if (e && typeof e == "object") {
|
|
61738
61399
|
if (typeof e.key == "string" || typeof e.id == "string" || typeof e.name == "string") {
|
|
61739
|
-
let t =
|
|
61400
|
+
let t = mi(e.key ?? e.id ?? e.name);
|
|
61740
61401
|
if (t) return t;
|
|
61741
61402
|
}
|
|
61742
|
-
let t =
|
|
61403
|
+
let t = Ut(e, Wt.value.length);
|
|
61743
61404
|
if (t) return {
|
|
61744
61405
|
...t,
|
|
61745
61406
|
isCustom: !0
|
|
@@ -61747,18 +61408,18 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61747
61408
|
}
|
|
61748
61409
|
return null;
|
|
61749
61410
|
}
|
|
61750
|
-
function
|
|
61411
|
+
function hi(e, t) {
|
|
61751
61412
|
try {
|
|
61752
61413
|
let n = Pn(), r = nj(), i = rj(), a = r?.basePoint ?? {
|
|
61753
61414
|
x: 0,
|
|
61754
61415
|
y: 0,
|
|
61755
61416
|
z: 0
|
|
61756
61417
|
}, 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
|
-
|
|
61418
|
+
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
61419
|
let s = i?.signals?.boxFocused?.dispatch;
|
|
61759
61420
|
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 = `聚焦接口已调用:距离 ${
|
|
61421
|
+
let r = new n.Box3(), a = new n.Vector3(SH, SH, SH);
|
|
61422
|
+
return r.setFromCenterAndSize(o.clone(), a), s.call(i.signals.boxFocused, r), N.value = `聚焦接口已调用:距离 ${SH}`, J(`已拉近聚焦到${t}:${Number(e.x).toFixed(2)}, ${Number(e.y).toFixed(2)}, ${Number(e.z).toFixed(2)},距离 ${SH}`), !0;
|
|
61762
61423
|
}
|
|
61763
61424
|
if (typeof i?.focusPoint != "function") throw Error("editor.focusPoint 与 editor.signals.boxFocused 均不存在");
|
|
61764
61425
|
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 +61427,89 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61766
61427
|
return N.value = `聚焦失败:${nn(e)}`, J(`聚焦${t}失败:${nn(e)}`), !1;
|
|
61767
61428
|
}
|
|
61768
61429
|
}
|
|
61769
|
-
function
|
|
61430
|
+
function gi() {
|
|
61770
61431
|
N.value = `点击聚焦按钮:${(/* @__PURE__ */ new Date()).toLocaleTimeString()}`;
|
|
61771
|
-
let e =
|
|
61772
|
-
return A.value ?
|
|
61432
|
+
let e = Ir()?.name || "演示人员";
|
|
61433
|
+
return A.value ? hi(A.value, e) : (N.value = `${e}尚未初始化,无法聚焦`, J(`${e}尚未初始化,无法聚焦`), !1);
|
|
61773
61434
|
}
|
|
61774
|
-
function
|
|
61435
|
+
function _i(e, t, n) {
|
|
61775
61436
|
N.value = `点击移动视角:${(/* @__PURE__ */ new Date()).toLocaleTimeString()}`;
|
|
61776
|
-
let r =
|
|
61777
|
-
return r ?
|
|
61437
|
+
let r = ri(e, t, n);
|
|
61438
|
+
return r ? hi(r, "目标点") : (N.value = "移动视角失败:坐标参数无效", J("移动视角失败:坐标参数无效"), !1);
|
|
61778
61439
|
}
|
|
61779
|
-
function
|
|
61440
|
+
function vi(e) {
|
|
61780
61441
|
console.log("focusMonitorPoint", e);
|
|
61781
61442
|
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);
|
|
61443
|
+
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;
|
|
61444
|
+
let n = Tt(t), r = ot(n), i = at(n), a = ct(n);
|
|
61445
|
+
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
61446
|
}
|
|
61790
|
-
function yi() {
|
|
61791
|
-
|
|
61447
|
+
function yi(e) {
|
|
61448
|
+
let t = mi(e);
|
|
61449
|
+
return !t || !pi(t) ? !1 : (W.value = t.isCustom ? "" : t.key, !0);
|
|
61792
61450
|
}
|
|
61793
61451
|
function bi() {
|
|
61794
|
-
|
|
61795
|
-
if (!e) return Ut("区域要素与巷道加载完成,未配置默认视角,保留当前视图"), !1;
|
|
61796
|
-
let t = vi(e);
|
|
61797
|
-
return t && Ut(`已应用默认视角:${e.name}`), t;
|
|
61452
|
+
return Wt.value.length === 0 ? null : Wt.value.find((e) => e.name === TH) ?? Wt.value[0];
|
|
61798
61453
|
}
|
|
61799
61454
|
function xi() {
|
|
61800
|
-
|
|
61455
|
+
let e = bi();
|
|
61456
|
+
if (!e) return Kt("区域要素与巷道加载完成,未配置默认视角,保留当前视图"), !1;
|
|
61457
|
+
let t = yi(e);
|
|
61458
|
+
return t && Kt(`已应用默认视角:${e.name}`), t;
|
|
61801
61459
|
}
|
|
61802
61460
|
function Si() {
|
|
61803
|
-
return
|
|
61461
|
+
return !Vt.value || Wt.value.length === 0 ? !1 : (be.value = !be.value, N.value = be.value ? "视角面板已显示" : "视角面板已隐藏", J(N.value), !0);
|
|
61804
61462
|
}
|
|
61805
61463
|
function Ci() {
|
|
61806
|
-
return
|
|
61464
|
+
return Lt.value ? (U.value = !U.value, N.value = U.value ? "监测点面板已显示" : "监测点面板已隐藏", J(N.value), !0) : !1;
|
|
61807
61465
|
}
|
|
61808
61466
|
function wi() {
|
|
61809
|
-
return
|
|
61467
|
+
return It.value ? (ye.value = !ye.value, N.value = ye.value ? "调试面板已显示" : "调试面板已隐藏", J(N.value), !0) : !1;
|
|
61810
61468
|
}
|
|
61811
61469
|
function Ti() {
|
|
61812
|
-
|
|
61813
|
-
let e = !Se.value;
|
|
61814
|
-
return e && !Gt() ? !1 : (Se.value = e, N.value = Se.value ? "水蔓延控制面板已显示" : "水蔓延控制面板已隐藏", J(N.value), !0);
|
|
61470
|
+
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
61471
|
}
|
|
61816
61472
|
function Ei() {
|
|
61817
|
-
|
|
61473
|
+
if (!zt.value) return !1;
|
|
61474
|
+
let e = !Se.value;
|
|
61475
|
+
return e && !Jt() ? !1 : (Se.value = e, N.value = Se.value ? "水蔓延控制面板已显示" : "水蔓延控制面板已隐藏", J(N.value), !0);
|
|
61818
61476
|
}
|
|
61819
61477
|
function Di() {
|
|
61820
|
-
return
|
|
61478
|
+
return zt.value ? Se.value ? !0 : Ei() : !1;
|
|
61821
61479
|
}
|
|
61822
61480
|
function Oi() {
|
|
61823
|
-
return
|
|
61481
|
+
return zt.value ? Se.value ? Ei() : !0 : !1;
|
|
61824
61482
|
}
|
|
61825
61483
|
function ki() {
|
|
61826
|
-
return
|
|
61484
|
+
return Yt("startSelect", "已进入水蔓延选点流程");
|
|
61827
61485
|
}
|
|
61828
61486
|
function Ai() {
|
|
61829
|
-
return
|
|
61487
|
+
return ki();
|
|
61830
61488
|
}
|
|
61831
61489
|
function ji() {
|
|
61832
|
-
return
|
|
61490
|
+
return Yt("endSelect", "已结束水蔓延选点流程");
|
|
61833
61491
|
}
|
|
61834
61492
|
function Mi() {
|
|
61835
|
-
return
|
|
61493
|
+
return ji();
|
|
61836
61494
|
}
|
|
61837
61495
|
function Ni() {
|
|
61838
|
-
return
|
|
61496
|
+
return Yt("start", "已开始水蔓延演示");
|
|
61839
61497
|
}
|
|
61840
61498
|
function Pi() {
|
|
61841
|
-
|
|
61842
|
-
return e && (Se.value = !1), e;
|
|
61499
|
+
return Ni();
|
|
61843
61500
|
}
|
|
61844
61501
|
function Fi() {
|
|
61845
|
-
|
|
61502
|
+
let e = Yt("clear", "已取消水蔓延演示并清除效果");
|
|
61503
|
+
return e && (Se.value = !1), e;
|
|
61846
61504
|
}
|
|
61847
61505
|
function Ii() {
|
|
61848
|
-
|
|
61506
|
+
return Fi();
|
|
61507
|
+
}
|
|
61508
|
+
function Z() {
|
|
61509
|
+
if (!Bt.value) return !1;
|
|
61849
61510
|
let e = !Ce.value;
|
|
61850
61511
|
if (e) {
|
|
61851
|
-
let e =
|
|
61512
|
+
let e = Zt();
|
|
61852
61513
|
if (!e) return !1;
|
|
61853
61514
|
try {
|
|
61854
61515
|
e.clear?.();
|
|
@@ -61858,36 +61519,36 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61858
61519
|
}
|
|
61859
61520
|
return Ce.value = e, N.value = Ce.value ? "避灾线路控制面板已显示" : "避灾线路控制面板已隐藏", J(N.value), !0;
|
|
61860
61521
|
}
|
|
61861
|
-
function Z() {
|
|
61862
|
-
return Yt("startSelectRoute", "已进入避灾线路途经点拾取流程");
|
|
61863
|
-
}
|
|
61864
61522
|
function Li() {
|
|
61865
|
-
return
|
|
61523
|
+
return Qt("startSelectRoute", "已进入避灾线路途经点拾取流程");
|
|
61866
61524
|
}
|
|
61867
61525
|
function Ri() {
|
|
61868
|
-
return
|
|
61526
|
+
return Qt("startSelectObstacle", "已进入避灾线路障碍路段拾取流程");
|
|
61527
|
+
}
|
|
61528
|
+
function zi() {
|
|
61529
|
+
return Qt("endSelect", "已结束避灾线路拾取流程");
|
|
61869
61530
|
}
|
|
61870
|
-
async function
|
|
61531
|
+
async function Bi() {
|
|
61871
61532
|
if (we.value) return !1;
|
|
61872
61533
|
we.value = !0, N.value = "正在生成避灾线路", J(N.value);
|
|
61873
61534
|
try {
|
|
61874
|
-
let e =
|
|
61875
|
-
return e ? (console.log("避灾线路 selectObjsRoute:", e.selectObjsRoute), await
|
|
61535
|
+
let e = Zt();
|
|
61536
|
+
return e ? (console.log("避灾线路 selectObjsRoute:", e.selectObjsRoute), await Qt("compute", "避灾线路已生成", e)) : !1;
|
|
61876
61537
|
} finally {
|
|
61877
61538
|
we.value = !1;
|
|
61878
61539
|
}
|
|
61879
61540
|
}
|
|
61880
|
-
function Bi() {
|
|
61881
|
-
return Yt("pause", "已暂停避灾线路");
|
|
61882
|
-
}
|
|
61883
61541
|
function Vi() {
|
|
61884
|
-
return
|
|
61542
|
+
return Qt("pause", "已暂停避灾线路");
|
|
61543
|
+
}
|
|
61544
|
+
function Hi() {
|
|
61545
|
+
return Qt("resume", "已继续避灾线路");
|
|
61885
61546
|
}
|
|
61886
|
-
async function
|
|
61887
|
-
let e = await
|
|
61547
|
+
async function Ui() {
|
|
61548
|
+
let e = await Qt("clear", "已清除避灾线路");
|
|
61888
61549
|
return e && (we.value = !1), e;
|
|
61889
61550
|
}
|
|
61890
|
-
function
|
|
61551
|
+
function Wi(e) {
|
|
61891
61552
|
if (!Array.isArray(e) || e.length === 0) return;
|
|
61892
61553
|
let t = rj()?.manager?.modules?.lanemodulen;
|
|
61893
61554
|
if (!t || typeof t.toggleLaneMaterial != "function") throw Error("当前三维实例缺少巷道材质切换接口");
|
|
@@ -61895,13 +61556,13 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61895
61556
|
t.toggleLaneMaterial(e, "glass");
|
|
61896
61557
|
}), (Array.isArray(t.typeGroup?.children) ? t.typeGroup.children : []).forEach((e) => {
|
|
61897
61558
|
(Array.isArray(e?.children) ? e.children : []).forEach((e, t) => {
|
|
61898
|
-
|
|
61559
|
+
e.children[1] && (e.children[1].visible = !1), (Array.isArray(e?.material) ? e.material : [e?.material]).forEach((e, t) => {
|
|
61899
61560
|
e && (e.transparent = !0, e.opacity = t == 1 ? 1 : .5, e.needsUpdate = !0);
|
|
61900
61561
|
});
|
|
61901
61562
|
});
|
|
61902
61563
|
}), sj();
|
|
61903
61564
|
}
|
|
61904
|
-
function
|
|
61565
|
+
function Gi(e, t) {
|
|
61905
61566
|
let n = (rj()?.manager?.modules?.regionmodule)?.getLayerGroup?.(e.layerName);
|
|
61906
61567
|
if (!n) return !1;
|
|
61907
61568
|
let r = new Set(Cr(e)), i = !1;
|
|
@@ -61911,21 +61572,21 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61911
61572
|
gr(e).some((e) => r.has(e)) && (e.visible = t, i = !0);
|
|
61912
61573
|
}), i;
|
|
61913
61574
|
}
|
|
61914
|
-
function
|
|
61575
|
+
function Ki(e, t) {
|
|
61915
61576
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
61916
61577
|
let n = { ...ue.value }, r = 0;
|
|
61917
61578
|
return e.forEach((e) => {
|
|
61918
|
-
|
|
61579
|
+
Gi(e, t) && (n[e.key] = t, r += 1);
|
|
61919
61580
|
}), ue.value = n, T.value = t, sj(), r;
|
|
61920
61581
|
}
|
|
61921
|
-
function
|
|
61582
|
+
function qi(e, t) {
|
|
61922
61583
|
let n = t?.target, r = n?.checked === !0, i = ue.value[e.key] !== !1;
|
|
61923
61584
|
ue.value = {
|
|
61924
61585
|
...ue.value,
|
|
61925
61586
|
[e.key]: r
|
|
61926
61587
|
};
|
|
61927
61588
|
try {
|
|
61928
|
-
if (!
|
|
61589
|
+
if (!Gi(e, r)) throw Error(`未找到区域对象: ${e.displayName}`);
|
|
61929
61590
|
sj(), T.value = Ue.value.some((e) => ue.value[e.key] !== !1), J(`${e.typeLabel || "区域"}显隐已更新:${e.displayName} -> ${r ? "显示" : "隐藏"}`);
|
|
61930
61591
|
} catch (t) {
|
|
61931
61592
|
ue.value = {
|
|
@@ -61934,7 +61595,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61934
61595
|
}, n && (n.checked = i), J(`区域要素显隐更新失败:${nn(t)}`);
|
|
61935
61596
|
}
|
|
61936
61597
|
}
|
|
61937
|
-
function
|
|
61598
|
+
function Ji(e, t) {
|
|
61938
61599
|
let n = (rj()?.manager?.modules?.lanemodulen)?.getLayerGroup?.(e.layerName);
|
|
61939
61600
|
if (!n) return !1;
|
|
61940
61601
|
t && (n.visible = !0);
|
|
@@ -61947,14 +61608,14 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61947
61608
|
gr(e).some((e) => r.has(e)) && (e.visible = t, i = !0);
|
|
61948
61609
|
}), i ||= (n.visible = t, !0), i;
|
|
61949
61610
|
}
|
|
61950
|
-
function
|
|
61611
|
+
function Yi(e, t) {
|
|
61951
61612
|
let n = t?.target, r = n?.checked === !0, i = fe.value[e.key] !== !1;
|
|
61952
61613
|
fe.value = {
|
|
61953
61614
|
...fe.value,
|
|
61954
61615
|
[e.key]: r
|
|
61955
61616
|
};
|
|
61956
61617
|
try {
|
|
61957
|
-
if (!
|
|
61618
|
+
if (!Ji(e, r)) throw Error(`未找到巷道对象: ${e.displayName}`);
|
|
61958
61619
|
sj(), O.value = de.value.some((e) => fe.value[e.key] !== !1), J(`巷道显隐已更新:${e.displayName} -> ${r ? "显示" : "隐藏"}`);
|
|
61959
61620
|
} catch (t) {
|
|
61960
61621
|
fe.value = {
|
|
@@ -61963,7 +61624,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61963
61624
|
}, n && (n.checked = i), J(`巷道显隐更新失败:${nn(t)}`);
|
|
61964
61625
|
}
|
|
61965
61626
|
}
|
|
61966
|
-
function
|
|
61627
|
+
function Xi(e, t) {
|
|
61967
61628
|
if (!Array.isArray(e) || e.length === 0) return 0;
|
|
61968
61629
|
let n = rj()?.manager?.modules?.lanemodulen, r = [...new Set(e.map((e) => typeof e?.layerName == "string" ? e.layerName.trim() : "").filter(Boolean))], i = 0;
|
|
61969
61630
|
r.forEach((e) => {
|
|
@@ -61977,24 +61638,24 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
61977
61638
|
a[e.key] = t;
|
|
61978
61639
|
}), fe.value = a, O.value = t, sj(), i;
|
|
61979
61640
|
}
|
|
61980
|
-
function
|
|
61641
|
+
function Zi() {
|
|
61981
61642
|
if (de.value.length === 0) {
|
|
61982
61643
|
N.value = "当前没有可切换的巷道";
|
|
61983
61644
|
return;
|
|
61984
61645
|
}
|
|
61985
|
-
let e = !O.value, t =
|
|
61646
|
+
let e = !O.value, t = Xi(de.value, e);
|
|
61986
61647
|
N.value = e ? `已显示 ${t} 条巷道` : `已隐藏 ${t} 条巷道`, J(e ? `已批量显示巷道:${t} 条` : `已批量隐藏巷道:${t} 条`);
|
|
61987
61648
|
}
|
|
61988
|
-
function
|
|
61649
|
+
function Qi() {
|
|
61989
61650
|
if (Ue.value.length === 0) {
|
|
61990
61651
|
N.value = "当前没有可切换的区域";
|
|
61991
61652
|
return;
|
|
61992
61653
|
}
|
|
61993
|
-
let e = !T.value, t =
|
|
61654
|
+
let e = !T.value, t = Ki(Ue.value, e);
|
|
61994
61655
|
N.value = e ? `已显示 ${t} 个区域` : `已隐藏 ${t} 个区域,当前仅保留巷道显示`, J(e ? `已批量显示区域:${t} 个` : `已批量隐藏区域:${t} 个,保留巷道显示`);
|
|
61995
61656
|
}
|
|
61996
|
-
async function
|
|
61997
|
-
let t =
|
|
61657
|
+
async function $i(e) {
|
|
61658
|
+
let t = Fz[e] ?? e, n = ce.value[e];
|
|
61998
61659
|
if (!n) throw Error(`未找到手动加载类型: ${e}`);
|
|
61999
61660
|
if (n.loading) {
|
|
62000
61661
|
J(`${t}正在加载,已忽略重复请求`);
|
|
@@ -62006,25 +61667,25 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62006
61667
|
}
|
|
62007
61668
|
n.loading = !0, J(`开始手动加载:${t}`);
|
|
62008
61669
|
try {
|
|
62009
|
-
let t = await
|
|
61670
|
+
let t = await Kz(e);
|
|
62010
61671
|
n.loaded = t.loaded, J(t.summary);
|
|
62011
61672
|
} finally {
|
|
62012
61673
|
n.loading = !1;
|
|
62013
61674
|
}
|
|
62014
61675
|
}
|
|
62015
|
-
async function
|
|
61676
|
+
async function ea({ trigger: e = "manual", forceReload: t = !1 } = {}) {
|
|
62016
61677
|
if (y.value) return J("数据源正在加载,已忽略重复请求"), null;
|
|
62017
61678
|
if (b.value && !t) return J("区域要素与巷道已加载,跳过重复请求"), null;
|
|
62018
61679
|
let n = e === "auto" ? "自动" : "手动";
|
|
62019
61680
|
y.value = !0, J(`${n}加载开始:区域要素与巷道`);
|
|
62020
61681
|
try {
|
|
62021
|
-
let e = await
|
|
62022
|
-
return b.value = !0, wr(e.regionItems), Tr(e.laneItems),
|
|
61682
|
+
let e = await Gz();
|
|
61683
|
+
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
61684
|
} finally {
|
|
62024
61685
|
y.value = !1;
|
|
62025
61686
|
}
|
|
62026
61687
|
}
|
|
62027
|
-
async function
|
|
61688
|
+
async function ta(e) {
|
|
62028
61689
|
try {
|
|
62029
61690
|
if (e === "resize") {
|
|
62030
61691
|
aj(), J("已触发场景 resize");
|
|
@@ -62056,47 +61717,47 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62056
61717
|
return;
|
|
62057
61718
|
}
|
|
62058
61719
|
if (e === "datasource") {
|
|
62059
|
-
await
|
|
61720
|
+
await ea({ trigger: "manual" });
|
|
62060
61721
|
return;
|
|
62061
61722
|
}
|
|
62062
61723
|
if (e === "regionAssist") {
|
|
62063
|
-
await
|
|
61724
|
+
await $i("regionAssist");
|
|
62064
61725
|
return;
|
|
62065
61726
|
}
|
|
62066
61727
|
if (e === "coalResvers") {
|
|
62067
|
-
await
|
|
61728
|
+
await $i("coalResvers");
|
|
62068
61729
|
return;
|
|
62069
61730
|
}
|
|
62070
61731
|
if (e === "boundary") {
|
|
62071
|
-
await
|
|
61732
|
+
await $i("boundary");
|
|
62072
61733
|
return;
|
|
62073
61734
|
}
|
|
62074
61735
|
if (e === "geology") {
|
|
62075
|
-
await
|
|
61736
|
+
await $i("geology");
|
|
62076
61737
|
return;
|
|
62077
61738
|
}
|
|
62078
61739
|
if (e === "pointSymbol") {
|
|
62079
|
-
await
|
|
61740
|
+
await $i("pointSymbol");
|
|
62080
61741
|
return;
|
|
62081
61742
|
}
|
|
62082
61743
|
if (e === "coal") {
|
|
62083
|
-
await
|
|
61744
|
+
await $i("coal");
|
|
62084
61745
|
return;
|
|
62085
61746
|
}
|
|
62086
61747
|
if (e === "geofault") {
|
|
62087
|
-
await
|
|
61748
|
+
await $i("geofault");
|
|
62088
61749
|
return;
|
|
62089
61750
|
}
|
|
62090
61751
|
} catch (e) {
|
|
62091
61752
|
J(`调试失败: ${nn(e)}`);
|
|
62092
61753
|
}
|
|
62093
61754
|
}
|
|
62094
|
-
function
|
|
61755
|
+
function na() {
|
|
62095
61756
|
if (typeof window > "u") return;
|
|
62096
61757
|
let e = window.lr3dppp?.editor, t = window.lr3dapp?.editor;
|
|
62097
|
-
e?.controls && (e.controls.zoomSpeed =
|
|
61758
|
+
e?.controls && (e.controls.zoomSpeed = IH), t?.config?.setKey?.("control/zoomSpeed", IH), console.log("window.lr3dppp.editor.controls.zoomSpeed:", e?.controls?.zoomSpeed), console.log("window.lr3dapp.editor.config control/zoomSpeed:", IH);
|
|
62098
61759
|
}
|
|
62099
|
-
async function
|
|
61760
|
+
async function ra() {
|
|
62100
61761
|
if (!m.value) {
|
|
62101
61762
|
h.value = "error", J(`场景初始化失败:未找到场景容器 ${p.value}`);
|
|
62102
61763
|
return;
|
|
@@ -62105,8 +61766,8 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62105
61766
|
try {
|
|
62106
61767
|
h.value = "initializing", J("SDK 脚本加载完成,开始创建 EditorApp 实例");
|
|
62107
61768
|
let { globalName: e } = await ej(m.value);
|
|
62108
|
-
if (Fn(), xr(),
|
|
62109
|
-
await
|
|
61769
|
+
if (Fn(), xr(), na(), h.value = "ready", J(`场景初始化成功,检测到全局对象:${e}`), Pr(), Nt.value) try {
|
|
61770
|
+
await ea({ trigger: "auto" });
|
|
62110
61771
|
} catch (e) {
|
|
62111
61772
|
J(`场景初始化成功,自动加载失败:${nn(e)}`);
|
|
62112
61773
|
}
|
|
@@ -62116,35 +61777,35 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62116
61777
|
}
|
|
62117
61778
|
}
|
|
62118
61779
|
return w(() => {
|
|
62119
|
-
|
|
61780
|
+
ra();
|
|
62120
61781
|
}), 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 }),
|
|
61782
|
+
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
61783
|
}), n({
|
|
62123
|
-
initMonitorPoints:
|
|
62124
|
-
queryMonitorPointList:
|
|
62125
|
-
reloadMonitorPoints:
|
|
62126
|
-
getViewPointList:
|
|
62127
|
-
switchToViewPoint:
|
|
62128
|
-
getCurrentViewInfo:
|
|
62129
|
-
applyViewInfo:
|
|
62130
|
-
initializeDemoPerson:
|
|
61784
|
+
initMonitorPoints: Pr,
|
|
61785
|
+
queryMonitorPointList: Fr,
|
|
61786
|
+
reloadMonitorPoints: X,
|
|
61787
|
+
getViewPointList: di,
|
|
61788
|
+
switchToViewPoint: yi,
|
|
61789
|
+
getCurrentViewInfo: fi,
|
|
61790
|
+
applyViewInfo: pi,
|
|
61791
|
+
initializeDemoPerson: ni,
|
|
62131
61792
|
initThreePersons: Ln,
|
|
62132
61793
|
clearThreePersons: Rn,
|
|
62133
61794
|
getThreePersonList: zn,
|
|
62134
61795
|
moveThreePersonTo: Bn,
|
|
62135
61796
|
stopThreePerson: Vn,
|
|
62136
61797
|
stopAllThreePersons: Hn,
|
|
62137
|
-
startDemoPersonMotion:
|
|
62138
|
-
stopDemoPersonMotion:
|
|
62139
|
-
toggleDemoPersonMotion:
|
|
62140
|
-
focusDemoPerson:
|
|
62141
|
-
showWaterSimulationPanel:
|
|
62142
|
-
hideWaterSimulationPanel:
|
|
62143
|
-
toggleWaterSimulationPanel:
|
|
62144
|
-
startWaterSimulationSelect:
|
|
62145
|
-
endWaterSimulationSelect:
|
|
62146
|
-
startWaterSimulation:
|
|
62147
|
-
clearWaterSimulation:
|
|
61798
|
+
startDemoPersonMotion: $r,
|
|
61799
|
+
stopDemoPersonMotion: ei,
|
|
61800
|
+
toggleDemoPersonMotion: ti,
|
|
61801
|
+
focusDemoPerson: gi,
|
|
61802
|
+
showWaterSimulationPanel: Di,
|
|
61803
|
+
hideWaterSimulationPanel: Oi,
|
|
61804
|
+
toggleWaterSimulationPanel: Ei,
|
|
61805
|
+
startWaterSimulationSelect: Ai,
|
|
61806
|
+
endWaterSimulationSelect: Mi,
|
|
61807
|
+
startWaterSimulation: Pi,
|
|
61808
|
+
clearWaterSimulation: Ii,
|
|
62148
61809
|
startRangeSelection: fr,
|
|
62149
61810
|
cancelRangeSelection: ir,
|
|
62150
61811
|
setRangeSelection: pr,
|
|
@@ -62154,30 +61815,30 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62154
61815
|
getRangeSelectionResult: Yn,
|
|
62155
61816
|
registerRangeSelectionChange: er,
|
|
62156
61817
|
registerRangeSelectionResultChange: Qn,
|
|
62157
|
-
focusMonitorPoint:
|
|
62158
|
-
movePerson:
|
|
62159
|
-
moveView:
|
|
61818
|
+
focusMonitorPoint: vi,
|
|
61819
|
+
movePerson: Zr,
|
|
61820
|
+
moveView: _i,
|
|
62160
61821
|
registerModelInfoQuery: Sr
|
|
62161
|
-
}), (e, n) => (D(), o("section",
|
|
61822
|
+
}), (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
61823
|
s("div", {
|
|
62163
61824
|
id: p.value,
|
|
62164
61825
|
ref_key: "viewerHost",
|
|
62165
61826
|
ref: m,
|
|
62166
61827
|
class: "lr3d-viewer__host"
|
|
62167
|
-
}, null, 8,
|
|
61828
|
+
}, null, 8, tB),
|
|
62168
61829
|
Ne.value.status === "idle" ? a("", !0) : (D(), o("div", {
|
|
62169
61830
|
key: 0,
|
|
62170
61831
|
class: x(["lr3d-placement-tip", { "lr3d-placement-tip--error": Ne.value.errorMessage }])
|
|
62171
|
-
}, [s("div",
|
|
61832
|
+
}, [s("div", nB, [
|
|
62172
61833
|
s("strong", null, P(tt.value), 1),
|
|
62173
61834
|
s("span", null, P(nt.value), 1),
|
|
62174
|
-
Ne.value.errorMessage ? (D(), o("em",
|
|
61835
|
+
Ne.value.errorMessage ? (D(), o("em", rB, P(Ne.value.errorMessage), 1)) : a("", !0)
|
|
62175
61836
|
]), s("button", {
|
|
62176
61837
|
type: "button",
|
|
62177
61838
|
class: "lr3d-placement-tip__cancel",
|
|
62178
61839
|
onClick: _n
|
|
62179
61840
|
}, " 取消 ")], 2)),
|
|
62180
|
-
h.value === "ready" &&
|
|
61841
|
+
h.value === "ready" && Mt.value.length > 0 ? (D(), o("div", iB, [(D(!0), o(t, null, j(Mt.value, (e) => (D(), o("div", {
|
|
62181
61842
|
key: `monitor-point-${e.id}`,
|
|
62182
61843
|
class: x(["lr3d-monitor-overlay__point", [e.iconMeta.modifierClass, { "lr3d-monitor-overlay__point--active": e.isActive }]]),
|
|
62183
61844
|
style: S(e.screenStyle ?? { display: "none" }),
|
|
@@ -62187,7 +61848,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62187
61848
|
s("span", {
|
|
62188
61849
|
class: "lr3d-monitor-overlay__badge",
|
|
62189
61850
|
"aria-label": e.type
|
|
62190
|
-
}, [e.iconMeta.iconType === "safe" ? (D(), o("svg",
|
|
61851
|
+
}, [e.iconMeta.iconType === "safe" ? (D(), o("svg", sB, [...n[20] ||= [s("path", {
|
|
62191
61852
|
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
61853
|
fill: "none",
|
|
62193
61854
|
stroke: "currentColor",
|
|
@@ -62200,7 +61861,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62200
61861
|
"stroke-linecap": "round",
|
|
62201
61862
|
"stroke-linejoin": "round",
|
|
62202
61863
|
"stroke-width": "1.8"
|
|
62203
|
-
}, null, -1)]])) : e.iconMeta.iconType === "person" ? (D(), o("svg",
|
|
61864
|
+
}, null, -1)]])) : e.iconMeta.iconType === "person" ? (D(), o("svg", cB, [...n[21] ||= [
|
|
62204
61865
|
s("circle", {
|
|
62205
61866
|
cx: "12",
|
|
62206
61867
|
cy: "8",
|
|
@@ -62221,7 +61882,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62221
61882
|
"stroke-linejoin": "round",
|
|
62222
61883
|
"stroke-width": "1.6"
|
|
62223
61884
|
}, null, -1)
|
|
62224
|
-
]])) : e.iconMeta.iconType === "water" ? (D(), o("svg",
|
|
61885
|
+
]])) : e.iconMeta.iconType === "water" ? (D(), o("svg", lB, [...n[22] ||= [
|
|
62225
61886
|
s("path", {
|
|
62226
61887
|
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
61888
|
fill: "none",
|
|
@@ -62243,7 +61904,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62243
61904
|
"stroke-linecap": "round",
|
|
62244
61905
|
"stroke-width": "1.8"
|
|
62245
61906
|
}, null, -1)
|
|
62246
|
-
]])) : e.iconMeta.iconType === "pipe" ? (D(), o("svg",
|
|
61907
|
+
]])) : e.iconMeta.iconType === "pipe" ? (D(), o("svg", uB, [...n[23] ||= [
|
|
62247
61908
|
s("path", {
|
|
62248
61909
|
d: "M6 7.25H18",
|
|
62249
61910
|
fill: "none",
|
|
@@ -62272,11 +61933,11 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62272
61933
|
"stroke-linejoin": "round",
|
|
62273
61934
|
"stroke-width": "1.8"
|
|
62274
61935
|
}, null, -1)
|
|
62275
|
-
]])) : (D(), o("svg",
|
|
61936
|
+
]])) : (D(), o("svg", dB, [...n[24] ||= [c("<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" data-v-44b3de87></circle><path d=\"M12 4V7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-44b3de87></path><path d=\"M12 17V20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-44b3de87></path><path d=\"M4 12H7\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-44b3de87></path><path d=\"M17 12H20\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.8\" data-v-44b3de87></path>", 5)]]))], 8, oB),
|
|
62276
61937
|
e.isActive && Ye.value ? (D(), i(oN, {
|
|
62277
61938
|
key: 0,
|
|
62278
61939
|
title: Ye.value.name,
|
|
62279
|
-
"type-label":
|
|
61940
|
+
"type-label": _t(Ye.value),
|
|
62280
61941
|
"position-text": rn(Ye.value.position),
|
|
62281
61942
|
"position-label": Ye.value.isPlacementPreview ? "候选位置" : "空间位置",
|
|
62282
61943
|
"position-meta": Ye.value.isPlacementPreview ? "待保存坐标" : "三维坐标",
|
|
@@ -62300,78 +61961,78 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62300
61961
|
"confirm-disabled",
|
|
62301
61962
|
"confirm-loading"
|
|
62302
61963
|
])) : a("", !0)
|
|
62303
|
-
], 14,
|
|
62304
|
-
h.value === "ready" ? (D(), o("div",
|
|
62305
|
-
s("nav",
|
|
62306
|
-
|
|
61964
|
+
], 14, aB))), 128))])) : a("", !0),
|
|
61965
|
+
h.value === "ready" ? (D(), o("div", fB, [
|
|
61966
|
+
s("nav", pB, [
|
|
61967
|
+
It.value ? (D(), o("button", {
|
|
62307
61968
|
key: 0,
|
|
62308
61969
|
type: "button",
|
|
62309
61970
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": ye.value }]),
|
|
62310
61971
|
"aria-pressed": ye.value ? "true" : "false",
|
|
62311
|
-
onClick:
|
|
62312
|
-
}, " 调试 ", 10,
|
|
62313
|
-
|
|
61972
|
+
onClick: wi
|
|
61973
|
+
}, " 调试 ", 10, mB)) : a("", !0),
|
|
61974
|
+
Lt.value ? (D(), o("button", {
|
|
62314
61975
|
key: 1,
|
|
62315
61976
|
type: "button",
|
|
62316
61977
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": U.value }]),
|
|
62317
61978
|
"aria-pressed": U.value ? "true" : "false",
|
|
62318
|
-
onClick:
|
|
62319
|
-
}, " 监测点 ", 10,
|
|
62320
|
-
|
|
61979
|
+
onClick: Ci
|
|
61980
|
+
}, " 监测点 ", 10, hB)) : a("", !0),
|
|
61981
|
+
Rt.value ? (D(), o("button", {
|
|
62321
61982
|
key: 2,
|
|
62322
61983
|
type: "button",
|
|
62323
61984
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": xe.value }]),
|
|
62324
61985
|
"aria-pressed": xe.value ? "true" : "false",
|
|
62325
|
-
onClick:
|
|
62326
|
-
}, " 范围选点 ", 10,
|
|
62327
|
-
|
|
61986
|
+
onClick: Ti
|
|
61987
|
+
}, " 范围选点 ", 10, gB)) : a("", !0),
|
|
61988
|
+
zt.value ? (D(), o("button", {
|
|
62328
61989
|
key: 3,
|
|
62329
61990
|
type: "button",
|
|
62330
61991
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": Se.value }]),
|
|
62331
61992
|
"aria-pressed": Se.value ? "true" : "false",
|
|
62332
|
-
onClick:
|
|
62333
|
-
}, " 水蔓延 ", 10,
|
|
62334
|
-
|
|
61993
|
+
onClick: Ei
|
|
61994
|
+
}, " 水蔓延 ", 10, _B)) : a("", !0),
|
|
61995
|
+
Bt.value ? (D(), o("button", {
|
|
62335
61996
|
key: 4,
|
|
62336
61997
|
type: "button",
|
|
62337
61998
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": Ce.value }]),
|
|
62338
61999
|
"aria-pressed": Ce.value ? "true" : "false",
|
|
62339
|
-
onClick:
|
|
62340
|
-
}, " 避灾线路 ", 10,
|
|
62341
|
-
|
|
62000
|
+
onClick: Z
|
|
62001
|
+
}, " 避灾线路 ", 10, vB)) : a("", !0),
|
|
62002
|
+
Vt.value && Wt.value.length > 0 ? (D(), o("button", {
|
|
62342
62003
|
key: 5,
|
|
62343
62004
|
type: "button",
|
|
62344
62005
|
class: x(["lr3d-toolbar__button", { "lr3d-toolbar__button--active": be.value }]),
|
|
62345
62006
|
"aria-pressed": be.value ? "true" : "false",
|
|
62346
|
-
onClick:
|
|
62347
|
-
}, " 视角 ", 10,
|
|
62007
|
+
onClick: Si
|
|
62008
|
+
}, " 视角 ", 10, yB)) : a("", !0)
|
|
62348
62009
|
]),
|
|
62349
|
-
|
|
62350
|
-
s("div",
|
|
62351
|
-
s("p",
|
|
62352
|
-
s("p",
|
|
62353
|
-
s("div",
|
|
62354
|
-
s("div",
|
|
62010
|
+
Rt.value && xe.value ? (D(), o("aside", bB, [
|
|
62011
|
+
s("div", xB, [n[26] ||= s("h3", { class: "lr3d-range-panel__title" }, "范围选点", -1), s("span", SB, "半径 " + P(De.value) + " 米", 1)]),
|
|
62012
|
+
s("p", CB, P(et.value), 1),
|
|
62013
|
+
s("p", wB, " 球心坐标:" + P(an(Qe.value ?? Oe.value)), 1),
|
|
62014
|
+
s("div", TB, [
|
|
62015
|
+
s("div", EB, [n[27] ||= s("label", {
|
|
62355
62016
|
class: "lr3d-range-panel__slider-label",
|
|
62356
62017
|
for: "lr3d-range-radius"
|
|
62357
|
-
}, " 范围半径 ", -1), s("strong",
|
|
62018
|
+
}, " 范围半径 ", -1), s("strong", DB, P(De.value) + " 米", 1)]),
|
|
62358
62019
|
ae(s("input", {
|
|
62359
62020
|
id: "lr3d-range-radius",
|
|
62360
62021
|
"onUpdate:modelValue": n[0] ||= (e) => De.value = e,
|
|
62361
62022
|
class: "lr3d-range-panel__slider-input",
|
|
62362
62023
|
type: "range",
|
|
62363
|
-
min:
|
|
62364
|
-
max:
|
|
62365
|
-
step:
|
|
62024
|
+
min: kH,
|
|
62025
|
+
max: AH,
|
|
62026
|
+
step: jH
|
|
62366
62027
|
}, null, 512), [[
|
|
62367
62028
|
re,
|
|
62368
62029
|
De.value,
|
|
62369
62030
|
void 0,
|
|
62370
62031
|
{ number: !0 }
|
|
62371
62032
|
]]),
|
|
62372
|
-
s("div", { class: "lr3d-range-panel__slider-scale" }, [s("span", null, P(
|
|
62033
|
+
s("div", { class: "lr3d-range-panel__slider-scale" }, [s("span", null, P(kH) + " 米"), s("span", null, P(AH) + " 米")])
|
|
62373
62034
|
]),
|
|
62374
|
-
s("div",
|
|
62035
|
+
s("div", OB, [s("button", {
|
|
62375
62036
|
type: "button",
|
|
62376
62037
|
class: "lr3d-range-panel__button",
|
|
62377
62038
|
onClick: fr
|
|
@@ -62380,142 +62041,142 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62380
62041
|
class: "lr3d-range-panel__button lr3d-range-panel__button--secondary",
|
|
62381
62042
|
disabled: !$e.value && Ee.value !== "picking",
|
|
62382
62043
|
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
|
-
|
|
62044
|
+
}, " 清除范围 ", 8, kB)]),
|
|
62045
|
+
s("div", AB, [s("section", jB, [
|
|
62046
|
+
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)]),
|
|
62047
|
+
s("p", PB, P(ke.value?.name || ($e.value ? "未识别巷道名称" : "完成选点后显示")), 1),
|
|
62048
|
+
s("p", FB, P(ke.value?.layerName || ($e.value ? "未识别图层信息" : "当前尚未设置范围球心")), 1)
|
|
62049
|
+
]), s("section", IB, [
|
|
62050
|
+
s("div", LB, [n[29] ||= s("span", { class: "lr3d-range-panel__section-title" }, "范围测点", -1), s("span", RB, P(jt.value.length) + " 个 ", 1)]),
|
|
62051
|
+
s("p", zB, P($e.value ? `当前球形范围内显示 ${jt.value.length} 个测点` : "完成选点后显示范围内测点信息"), 1),
|
|
62052
|
+
jt.value.length > 0 ? (D(), o("div", BB, [(D(!0), o(t, null, j(jt.value, (e) => (D(), o("article", {
|
|
62392
62053
|
key: e.id,
|
|
62393
62054
|
class: x(["lr3d-range-panel__monitor-item lr3d-range-panel__monitor-item--clickable", { "lr3d-range-panel__monitor-item--active": e.isActive }]),
|
|
62394
62055
|
onClick: (t) => pn(e)
|
|
62395
|
-
}, [s("div",
|
|
62056
|
+
}, [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
62057
|
])])
|
|
62397
62058
|
])) : a("", !0),
|
|
62398
|
-
|
|
62059
|
+
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
62060
|
s("button", {
|
|
62400
62061
|
type: "button",
|
|
62401
62062
|
class: "lr3d-water-panel__button",
|
|
62402
|
-
onClick:
|
|
62063
|
+
onClick: ki
|
|
62403
62064
|
}, " 开始选点 "),
|
|
62404
62065
|
s("button", {
|
|
62405
62066
|
type: "button",
|
|
62406
62067
|
class: "lr3d-water-panel__button",
|
|
62407
|
-
onClick:
|
|
62068
|
+
onClick: ji
|
|
62408
62069
|
}, " 结束选点 "),
|
|
62409
62070
|
s("button", {
|
|
62410
62071
|
type: "button",
|
|
62411
62072
|
class: "lr3d-water-panel__button",
|
|
62412
|
-
onClick:
|
|
62073
|
+
onClick: Ni
|
|
62413
62074
|
}, " 开始 "),
|
|
62414
62075
|
s("button", {
|
|
62415
62076
|
type: "button",
|
|
62416
62077
|
class: "lr3d-water-panel__button lr3d-water-panel__button--secondary",
|
|
62417
|
-
onClick:
|
|
62078
|
+
onClick: Fi
|
|
62418
62079
|
}, " 取消 ")
|
|
62419
62080
|
])])) : a("", !0),
|
|
62420
|
-
|
|
62081
|
+
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
62082
|
s("button", {
|
|
62422
62083
|
type: "button",
|
|
62423
62084
|
class: "lr3d-water-panel__button",
|
|
62424
|
-
onClick:
|
|
62085
|
+
onClick: Li
|
|
62425
62086
|
}, " 拾取途经点 "),
|
|
62426
62087
|
s("button", {
|
|
62427
62088
|
type: "button",
|
|
62428
62089
|
class: "lr3d-water-panel__button",
|
|
62429
|
-
onClick:
|
|
62090
|
+
onClick: Ri
|
|
62430
62091
|
}, " 拾取障碍 "),
|
|
62431
62092
|
s("button", {
|
|
62432
62093
|
type: "button",
|
|
62433
62094
|
class: "lr3d-water-panel__button",
|
|
62434
|
-
onClick:
|
|
62095
|
+
onClick: zi
|
|
62435
62096
|
}, " 结束拾取 "),
|
|
62436
62097
|
s("button", {
|
|
62437
62098
|
type: "button",
|
|
62438
62099
|
class: "lr3d-water-panel__button",
|
|
62439
62100
|
disabled: we.value,
|
|
62440
|
-
onClick:
|
|
62441
|
-
}, P(we.value ? "生成中" : "生成线路"), 9,
|
|
62101
|
+
onClick: Bi
|
|
62102
|
+
}, P(we.value ? "生成中" : "生成线路"), 9, XB),
|
|
62442
62103
|
s("button", {
|
|
62443
62104
|
type: "button",
|
|
62444
62105
|
class: "lr3d-water-panel__button",
|
|
62445
|
-
onClick:
|
|
62106
|
+
onClick: Vi
|
|
62446
62107
|
}, " 暂停 "),
|
|
62447
62108
|
s("button", {
|
|
62448
62109
|
type: "button",
|
|
62449
62110
|
class: "lr3d-water-panel__button",
|
|
62450
|
-
onClick:
|
|
62111
|
+
onClick: Hi
|
|
62451
62112
|
}, " 继续 "),
|
|
62452
62113
|
s("button", {
|
|
62453
62114
|
type: "button",
|
|
62454
62115
|
class: "lr3d-water-panel__button lr3d-water-panel__button--secondary",
|
|
62455
|
-
onClick:
|
|
62116
|
+
onClick: Ui
|
|
62456
62117
|
}, " 清除 ")
|
|
62457
62118
|
])])) : a("", !0),
|
|
62458
|
-
|
|
62459
|
-
s("div",
|
|
62460
|
-
s("div",
|
|
62119
|
+
Vt.value && Wt.value.length > 0 && be.value ? (D(), o("aside", ZB, [
|
|
62120
|
+
s("div", QB, [n[32] ||= s("h3", { class: "lr3d-viewpoint-panel__title" }, "视角控制", -1), s("span", $B, P(Wt.value.length) + " 个固定视角", 1)]),
|
|
62121
|
+
s("div", eV, [(D(!0), o(t, null, j(Wt.value, (e) => (D(), o("button", {
|
|
62461
62122
|
key: e.key,
|
|
62462
62123
|
type: "button",
|
|
62463
62124
|
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",
|
|
62125
|
+
onClick: (t) => yi(e)
|
|
62126
|
+
}, P(e.name), 11, tV))), 128))]),
|
|
62127
|
+
s("p", nV, "当前视角:" + P(Gt.value), 1)
|
|
62467
62128
|
])) : a("", !0)
|
|
62468
62129
|
])) : a("", !0),
|
|
62469
|
-
h.value === "ready" && (
|
|
62130
|
+
h.value === "ready" && (Ht.value || Lt.value) ? (D(), o("div", rV, [Ht.value && h.value === "ready" ? (D(), o("aside", {
|
|
62470
62131
|
key: 0,
|
|
62471
62132
|
class: x(["lr3d-workface-panel", { "lr3d-workface-panel--expanded": C.value }])
|
|
62472
|
-
}, [s("div",
|
|
62133
|
+
}, [s("div", iV, [n[33] ||= s("h3", { class: "lr3d-workface-panel__title" }, "图层控制", -1), s("button", {
|
|
62473
62134
|
type: "button",
|
|
62474
62135
|
class: "lr3d-workface-panel__toggle",
|
|
62475
62136
|
onClick: n[1] ||= (e) => C.value = !C.value
|
|
62476
|
-
}, P(C.value ? "收起" : "展开"), 1)]), C.value ? (D(), o("div",
|
|
62477
|
-
s("p",
|
|
62478
|
-
s("div",
|
|
62137
|
+
}, P(C.value ? "收起" : "展开"), 1)]), C.value ? (D(), o("div", aV, [
|
|
62138
|
+
s("p", oV, " 当前区域要素数量:" + P(Ue.value.length) + ",巷道数量:" + P(de.value.length), 1),
|
|
62139
|
+
s("div", sV, [s("button", {
|
|
62479
62140
|
type: "button",
|
|
62480
62141
|
class: "lr3d-workface-panel__action lr3d-workface-panel__action--secondary",
|
|
62481
|
-
onClick:
|
|
62142
|
+
onClick: Qi
|
|
62482
62143
|
}, P(T.value ? "隐藏区域" : "显示区域"), 1), s("button", {
|
|
62483
62144
|
type: "button",
|
|
62484
62145
|
class: "lr3d-workface-panel__action lr3d-workface-panel__action--secondary",
|
|
62485
|
-
onClick:
|
|
62146
|
+
onClick: Zi
|
|
62486
62147
|
}, P(O.value ? "隐藏巷道" : "显示巷道"), 1)]),
|
|
62487
|
-
s("p",
|
|
62488
|
-
We.value ? (D(), o("div",
|
|
62148
|
+
s("p", cV, P(N.value), 1),
|
|
62149
|
+
We.value ? (D(), o("div", uV, [(D(!0), o(t, null, j(K.value, (e) => (D(), o("section", {
|
|
62489
62150
|
key: e.featureType,
|
|
62490
62151
|
class: "lr3d-workface-panel__group"
|
|
62491
|
-
}, [s("h4",
|
|
62152
|
+
}, [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
62153
|
key: e.key,
|
|
62493
62154
|
class: "lr3d-workface-panel__item"
|
|
62494
|
-
}, [s("label",
|
|
62155
|
+
}, [s("label", pV, [s("input", {
|
|
62495
62156
|
type: "checkbox",
|
|
62496
62157
|
checked: ue.value[e.key] !== !1,
|
|
62497
|
-
onChange: (t) =>
|
|
62498
|
-
}, null, 40,
|
|
62158
|
+
onChange: (t) => qi(e, t)
|
|
62159
|
+
}, 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
62160
|
key: e.key,
|
|
62500
62161
|
class: "lr3d-workface-panel__item"
|
|
62501
|
-
}, [s("label",
|
|
62162
|
+
}, [s("label", vV, [s("input", {
|
|
62502
62163
|
type: "checkbox",
|
|
62503
62164
|
checked: fe.value[e.key] !== !1,
|
|
62504
|
-
onChange: (t) =>
|
|
62505
|
-
}, null, 40,
|
|
62506
|
-
])) : a("", !0)], 2)) : a("", !0),
|
|
62507
|
-
s("div",
|
|
62165
|
+
onChange: (t) => Yi(e, t)
|
|
62166
|
+
}, null, 40, yV), s("span", null, P(e.displayName), 1)])]))), 128))])])) : a("", !0)])) : (D(), o("div", lV, " 暂无可控制的区域要素或巷道 "))
|
|
62167
|
+
])) : a("", !0)], 2)) : a("", !0), Lt.value && U.value ? (D(), o("aside", bV, [
|
|
62168
|
+
s("div", xV, [(D(!0), o(t, null, j(Ge.value, (e) => (D(), o("button", {
|
|
62508
62169
|
key: e.type,
|
|
62509
62170
|
type: "button",
|
|
62510
62171
|
class: x(["lr3d-monitor-panel__tab", { "lr3d-monitor-panel__tab--active": ve.value === e.type }]),
|
|
62511
62172
|
onClick: (t) => ve.value = e.type
|
|
62512
|
-
}, P(e.label), 11,
|
|
62513
|
-
s("div",
|
|
62173
|
+
}, P(e.label), 11, SV))), 128))]),
|
|
62174
|
+
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
62175
|
key: e.id,
|
|
62515
62176
|
class: "lr3d-monitor-panel__item lr3d-monitor-panel__item--clickable",
|
|
62516
62177
|
onClick: (t) => pn(e)
|
|
62517
62178
|
}, [
|
|
62518
|
-
s("div",
|
|
62179
|
+
s("div", kV, [s("strong", null, P(e.name), 1), ft(e) ? (D(), o("button", {
|
|
62519
62180
|
key: 0,
|
|
62520
62181
|
type: "button",
|
|
62521
62182
|
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 +62197,115 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62536
62197
|
cy: "9",
|
|
62537
62198
|
r: "2.1",
|
|
62538
62199
|
fill: "currentColor"
|
|
62539
|
-
})], -1)]], 10,
|
|
62540
|
-
|
|
62541
|
-
ft(e) ? (D(), o("div",
|
|
62200
|
+
})], -1)]], 10, AV)) : a("", !0)]),
|
|
62201
|
+
ht(e) ? a("", !0) : (D(), o("p", jV, P(gt(e)), 1)),
|
|
62202
|
+
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
62203
|
key: `${e.id}-${t}`,
|
|
62543
62204
|
class: "lr3d-monitor-panel__item-chip"
|
|
62544
62205
|
}, P(t) + ":" + P(n), 1))), 128))])),
|
|
62545
|
-
e
|
|
62206
|
+
ht(e) ? (D(), o("div", GV, [s("button", {
|
|
62546
62207
|
type: "button",
|
|
62547
62208
|
class: "lr3d-monitor-panel__item-action",
|
|
62548
|
-
onClick: I((t) =>
|
|
62549
|
-
}, " 聚焦 ", 8,
|
|
62209
|
+
onClick: I((t) => vi(e), ["stop"])
|
|
62210
|
+
}, " 聚焦 ", 8, KV), s("button", {
|
|
62550
62211
|
type: "button",
|
|
62551
62212
|
class: "lr3d-monitor-panel__item-action",
|
|
62552
62213
|
disabled: (e.pointsHistory?.length ?? 0) < 2,
|
|
62553
|
-
onClick: I((t) =>
|
|
62554
|
-
}, P(e.isMoving ? "重新播放" : "轨迹播放"), 9,
|
|
62555
|
-
], 8,
|
|
62556
|
-
s("div",
|
|
62214
|
+
onClick: I((t) => Zr(e.personSceneId), ["stop"])
|
|
62215
|
+
}, P(e.isMoving ? "重新播放" : "轨迹播放"), 9, qV)])) : a("", !0)
|
|
62216
|
+
], 8, OV))), 128))]))]),
|
|
62217
|
+
s("div", JV, [s("span", YV, " 共 " + P(Ke.value.length) + " 个测点 ", 1), ve.value === "安全监测" && Je.value > 1 ? (D(), o("div", XV, [
|
|
62557
62218
|
s("button", {
|
|
62558
62219
|
type: "button",
|
|
62559
62220
|
class: "lr3d-monitor-panel__page-btn",
|
|
62560
62221
|
disabled: H.value <= 1,
|
|
62561
62222
|
onClick: n[2] ||= (e) => --H.value
|
|
62562
|
-
}, " 上一页 ", 8,
|
|
62563
|
-
s("span",
|
|
62223
|
+
}, " 上一页 ", 8, ZV),
|
|
62224
|
+
s("span", QV, P(H.value) + " / " + P(Je.value), 1),
|
|
62564
62225
|
s("button", {
|
|
62565
62226
|
type: "button",
|
|
62566
62227
|
class: "lr3d-monitor-panel__page-btn",
|
|
62567
62228
|
disabled: H.value >= Je.value,
|
|
62568
62229
|
onClick: n[3] ||= (e) => H.value += 1
|
|
62569
|
-
}, " 下一页 ", 8,
|
|
62230
|
+
}, " 下一页 ", 8, $V)
|
|
62570
62231
|
])) : a("", !0)])
|
|
62571
62232
|
])) : a("", !0)])) : a("", !0),
|
|
62572
|
-
|
|
62573
|
-
s("div",
|
|
62233
|
+
It.value && ye.value ? (D(), o("section", eH, [
|
|
62234
|
+
s("div", tH, [n[40] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "基础调试面板"), s("p", null, "用于验证基础 API 是否可调用")], -1), s("div", nH, [
|
|
62574
62235
|
s("button", {
|
|
62575
62236
|
type: "button",
|
|
62576
|
-
onClick: n[4] ||= (e) =>
|
|
62237
|
+
onClick: n[4] ||= (e) => ta("resize")
|
|
62577
62238
|
}, "Resize 场景"),
|
|
62578
62239
|
s("button", {
|
|
62579
62240
|
type: "button",
|
|
62580
|
-
onClick: n[5] ||= (e) =>
|
|
62241
|
+
onClick: n[5] ||= (e) => ta("refresh")
|
|
62581
62242
|
}, "测试刷新(sceneGraphChanged)"),
|
|
62582
62243
|
s("button", {
|
|
62583
62244
|
type: "button",
|
|
62584
|
-
onClick: n[6] ||= (e) =>
|
|
62245
|
+
onClick: n[6] ||= (e) => ta("editor")
|
|
62585
62246
|
}, "检查 editor"),
|
|
62586
62247
|
s("button", {
|
|
62587
62248
|
type: "button",
|
|
62588
|
-
onClick: n[7] ||= (e) =>
|
|
62249
|
+
onClick: n[7] ||= (e) => ta("interfaces")
|
|
62589
62250
|
}, "检查 interfaces"),
|
|
62590
62251
|
s("button", {
|
|
62591
62252
|
type: "button",
|
|
62592
|
-
onClick: n[8] ||= (e) =>
|
|
62253
|
+
onClick: n[8] ||= (e) => ta("sdkViewState")
|
|
62593
62254
|
}, "打印 SDK 视口参数"),
|
|
62594
62255
|
s("button", {
|
|
62595
62256
|
type: "button",
|
|
62596
|
-
onClick: n[9] ||= (e) =>
|
|
62257
|
+
onClick: n[9] ||= (e) => ta("datasource")
|
|
62597
62258
|
}, "手动重试加载区域+巷道")
|
|
62598
62259
|
])]),
|
|
62599
|
-
s("div",
|
|
62600
|
-
n[
|
|
62260
|
+
s("div", rH, [n[42] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "场景背景"), s("p", null, "测试场景背景颜色实时切换")], -1), s("label", iH, [
|
|
62261
|
+
n[41] ||= s("span", null, "背景颜色", -1),
|
|
62601
62262
|
ae(s("input", {
|
|
62602
62263
|
id: "lr3d-scene-background-color",
|
|
62603
62264
|
"onUpdate:modelValue": n[10] ||= (e) => v.value = e,
|
|
62604
62265
|
type: "color",
|
|
62605
|
-
onInput:
|
|
62266
|
+
onInput: $t
|
|
62606
62267
|
}, null, 544), [[re, v.value]]),
|
|
62607
62268
|
s("strong", null, P(v.value), 1)
|
|
62608
62269
|
])]),
|
|
62609
|
-
s("div",
|
|
62270
|
+
s("div", aH, [n[43] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "手动加载其他类型"), s("p", null, "默认不自动加载,按按钮逐项触发")], -1), s("div", oH, [
|
|
62610
62271
|
s("button", {
|
|
62611
62272
|
type: "button",
|
|
62612
62273
|
disabled: ce.value.regionAssist.loading,
|
|
62613
|
-
onClick: n[11] ||= (e) =>
|
|
62614
|
-
}, " 加载掘进辅助 ", 8,
|
|
62274
|
+
onClick: n[11] ||= (e) => ta("regionAssist")
|
|
62275
|
+
}, " 加载掘进辅助 ", 8, sH),
|
|
62615
62276
|
s("button", {
|
|
62616
62277
|
type: "button",
|
|
62617
62278
|
disabled: ce.value.coalResvers.loading,
|
|
62618
|
-
onClick: n[12] ||= (e) =>
|
|
62619
|
-
}, " 加载储量块段 ", 8,
|
|
62279
|
+
onClick: n[12] ||= (e) => ta("coalResvers")
|
|
62280
|
+
}, " 加载储量块段 ", 8, cH),
|
|
62620
62281
|
s("button", {
|
|
62621
62282
|
type: "button",
|
|
62622
62283
|
disabled: ce.value.boundary.loading,
|
|
62623
|
-
onClick: n[13] ||= (e) =>
|
|
62624
|
-
}, " 加载矿井边界 ", 8,
|
|
62284
|
+
onClick: n[13] ||= (e) => ta("boundary")
|
|
62285
|
+
}, " 加载矿井边界 ", 8, lH),
|
|
62625
62286
|
s("button", {
|
|
62626
62287
|
type: "button",
|
|
62627
62288
|
disabled: ce.value.geology.loading,
|
|
62628
|
-
onClick: n[14] ||= (e) =>
|
|
62629
|
-
}, " 加载地质体 ", 8,
|
|
62289
|
+
onClick: n[14] ||= (e) => ta("geology")
|
|
62290
|
+
}, " 加载地质体 ", 8, uH),
|
|
62630
62291
|
s("button", {
|
|
62631
62292
|
type: "button",
|
|
62632
62293
|
disabled: ce.value.pointSymbol.loading,
|
|
62633
|
-
onClick: n[15] ||= (e) =>
|
|
62634
|
-
}, " 加载点符号 ", 8,
|
|
62294
|
+
onClick: n[15] ||= (e) => ta("pointSymbol")
|
|
62295
|
+
}, " 加载点符号 ", 8, dH),
|
|
62635
62296
|
s("button", {
|
|
62636
62297
|
type: "button",
|
|
62637
62298
|
disabled: ce.value.coal.loading,
|
|
62638
|
-
onClick: n[16] ||= (e) =>
|
|
62639
|
-
}, " 加载煤层 ", 8,
|
|
62299
|
+
onClick: n[16] ||= (e) => ta("coal")
|
|
62300
|
+
}, " 加载煤层 ", 8, fH),
|
|
62640
62301
|
s("button", {
|
|
62641
62302
|
type: "button",
|
|
62642
62303
|
disabled: ce.value.geofault.loading,
|
|
62643
|
-
onClick: n[17] ||= (e) =>
|
|
62644
|
-
}, " 加载断层 ", 8,
|
|
62304
|
+
onClick: n[17] ||= (e) => ta("geofault")
|
|
62305
|
+
}, " 加载断层 ", 8, pH)
|
|
62645
62306
|
])]),
|
|
62646
|
-
s("div",
|
|
62647
|
-
n[
|
|
62307
|
+
s("div", mH, [n[45] ||= s("div", { class: "lr3d-debug-panel__header" }, [s("h2", null, "工具命令"), s("p", null, "快速调用 SDK 内置 activeTool")], -1), s("div", hH, [
|
|
62308
|
+
n[44] ||= s("label", { for: "lr3d-tool-input" }, "activeTool 名称", -1),
|
|
62648
62309
|
ae(s("input", {
|
|
62649
62310
|
id: "lr3d-tool-input",
|
|
62650
62311
|
"onUpdate:modelValue": n[18] ||= (e) => g.value = e,
|
|
@@ -62653,16 +62314,16 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62653
62314
|
}, null, 512), [[re, g.value]]),
|
|
62654
62315
|
s("button", {
|
|
62655
62316
|
type: "button",
|
|
62656
|
-
onClick: n[19] ||= (e) =>
|
|
62317
|
+
onClick: n[19] ||= (e) => ta("tool")
|
|
62657
62318
|
}, "执行 activeTool")
|
|
62658
62319
|
])]),
|
|
62659
|
-
s("pre",
|
|
62320
|
+
s("pre", gH, P(_.value), 1)
|
|
62660
62321
|
])) : a("", !0),
|
|
62661
|
-
h.value === "idle" || h.value === "loading" ? (D(), o("div",
|
|
62662
|
-
h.value === "error" ? (D(), o("div",
|
|
62322
|
+
h.value === "idle" || h.value === "loading" ? (D(), o("div", _H, [...n[46] ||= [s("p", null, "正在准备三维场景", -1), s("small", null, "SDK 脚本加载完成后会在当前容器内创建最小场景实例", -1)]])) : a("", !0),
|
|
62323
|
+
h.value === "error" ? (D(), o("div", vH, [...n[47] ||= [s("p", null, "最小初始化未完成", -1), s("small", null, "请根据状态信息检查 SDK 依赖或资源路径", -1)]])) : a("", !0)
|
|
62663
62324
|
])], 2)]));
|
|
62664
62325
|
}
|
|
62665
|
-
}, [["__scopeId", "data-v-
|
|
62326
|
+
}, [["__scopeId", "data-v-44b3de87"]]), GH = { class: "lr-map-viewer" }, KH = { class: "lr-map-viewer__stack" }, qH = "LrMapViewer", JH = /* @__PURE__ */ zM({
|
|
62666
62327
|
__name: "LrMapViewer",
|
|
62667
62328
|
props: {
|
|
62668
62329
|
mode: {
|
|
@@ -62973,7 +62634,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
62973
62634
|
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
62635
|
}, { immediate: !0 }), w(() => {
|
|
62975
62636
|
console.log("[lr-map-viewer] component initialized", {
|
|
62976
|
-
componentName:
|
|
62637
|
+
componentName: qH,
|
|
62977
62638
|
version: he.version
|
|
62978
62639
|
});
|
|
62979
62640
|
}), C(() => {
|
|
@@ -63024,10 +62685,10 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
63024
62685
|
movePerson: We,
|
|
63025
62686
|
moveView: V,
|
|
63026
62687
|
registerModelInfoQuery: Ge
|
|
63027
|
-
}), (t, n) => (D(), o("section",
|
|
62688
|
+
}), (t, n) => (D(), o("section", GH, [s("div", KH, [j.value ? (D(), o("div", {
|
|
63028
62689
|
key: 0,
|
|
63029
62690
|
class: x(["lr-map-viewer__layer", oe("2d")])
|
|
63030
|
-
}, [R("2d") && y.value === "ready" ? (D(), i(
|
|
62691
|
+
}, [R("2d") && y.value === "ready" ? (D(), i(Pz, {
|
|
63031
62692
|
key: 0,
|
|
63032
62693
|
config: g.value,
|
|
63033
62694
|
"mine-id": h.value
|
|
@@ -63037,7 +62698,7 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
63037
62698
|
}, [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
62699
|
key: 1,
|
|
63039
62700
|
class: x(["lr-map-viewer__layer", oe("3d")])
|
|
63040
|
-
}, [R("3d") && T.value === "ready" ? (D(), i(
|
|
62701
|
+
}, [R("3d") && T.value === "ready" ? (D(), i(WH, {
|
|
63041
62702
|
key: 0,
|
|
63042
62703
|
ref_key: "lr3dViewerRef",
|
|
63043
62704
|
ref: d,
|
|
@@ -63053,10 +62714,10 @@ var nB = { class: "lr3d-viewer" }, rB = { class: "lr3d-viewer__canvas" }, iB = [
|
|
|
63053
62714
|
class: x(["lr-map-viewer__placeholder", { "lr-map-viewer__placeholder--error": T.value === "error" }])
|
|
63054
62715
|
}, [s("p", null, P(ne("3d")), 1), s("small", null, P(F("3d")), 1)], 2)) : a("", !0)], 2)) : a("", !0)])]));
|
|
63055
62716
|
}
|
|
63056
|
-
}, [["__scopeId", "data-v-1c7d36da"]]),
|
|
63057
|
-
function
|
|
63058
|
-
!e || typeof e.component != "function" || e.component(
|
|
62717
|
+
}, [["__scopeId", "data-v-1c7d36da"]]), YH = "LrMapViewer";
|
|
62718
|
+
function XH(e) {
|
|
62719
|
+
!e || typeof e.component != "function" || e.component(YH, JH);
|
|
63059
62720
|
}
|
|
63060
|
-
var
|
|
62721
|
+
var ZH = { install: XH };
|
|
63061
62722
|
//#endregion
|
|
63062
|
-
export {
|
|
62723
|
+
export { Pz as Lr2dViewer, WH as Lr3dViewer, JH as LrMapViewer, oN as LrMonitorPointPopupPanel, sM as canSwitchMapMode, oT as createLr2dAdapter, ej as createLr3dInstance, ZH 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, XH 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 };
|