vue-openlayers-plugin 1.0.85 → 1.0.87
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/lib/{BasemapPanel-3f78db9f.mjs → BasemapPanel-6d2a04e9.mjs} +1 -1
- package/lib/{CoordinateLocationDialog-d265fbae.mjs → CoordinateLocationDialog-de357c83.mjs} +1 -1
- package/lib/{FilterPanel-136dc7d8.mjs → FilterPanel-d40a133c.mjs} +1 -1
- package/lib/{MapPrintDialog-6ed0e095.mjs → LayerPanel-de7c698a.mjs} +1 -1
- package/lib/{LayerPanel-58997ef0.mjs → MapPrintDialog-74d86245.mjs} +1 -1
- package/lib/{MeasurementDialog-b86c21c6.mjs → MeasurementDialog-d29c4928.mjs} +1 -1
- package/lib/{MyMarkersDialog-fbbd0aeb.mjs → MyMarkersDialog-b4318073.mjs} +2 -2
- package/lib/{ViewBookmarksDialog-94010687.mjs → ViewBookmarksDialog-cdf56611.mjs} +2 -2
- package/lib/{index-14efa785.mjs → index-5bc5966e.mjs} +1 -1
- package/lib/{index-5a13e877.mjs → index-b5b0a094.mjs} +123 -107
- package/lib/{index-5b1583d0.mjs → index-dfd59202.mjs} +1 -1
- package/lib/{index.es-0c397170.mjs → index.es-1fe2c0bd.mjs} +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +106 -90
- package/lib/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, watch, onMounted, onUnmounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString } from "vue";
|
|
2
|
-
import { l as layerEventBus } from "./index-
|
|
2
|
+
import { l as layerEventBus } from "./index-b5b0a094.mjs";
|
|
3
3
|
import "ol";
|
|
4
4
|
const _hoisted_1 = { class: "basemap-content" };
|
|
5
5
|
const _hoisted_2 = { class: "basemap-grid" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, reactive, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { T as TooltipHelper } from "./index-
|
|
2
|
+
import { T as TooltipHelper } from "./index-b5b0a094.mjs";
|
|
3
3
|
import "ol";
|
|
4
4
|
const _hoisted_1 = { class: "coordinate-content" };
|
|
5
5
|
const _hoisted_2 = { class: "format-selection" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass } from "vue";
|
|
2
|
-
import { f as formatMeasurementResult, g as getUnitByType, d as _export_sfc } from "./index-
|
|
2
|
+
import { f as formatMeasurementResult, g as getUnitByType, d as _export_sfc } from "./index-b5b0a094.mjs";
|
|
3
3
|
import "ol";
|
|
4
4
|
const getIconPath = (name) => {
|
|
5
5
|
return `/icons/${name}.svg`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, inject, computed, ref, reactive, onUnmounted, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, unref, normalizeClass, createTextVNode, toDisplayString, renderList, createBlock, withModifiers } from "vue";
|
|
2
|
-
import { i as plus_default, j as folder_opened_default, k as download_default, m as delete_default, s as search_default, n as location_filled_default, o as edit_default, M as MarkerDrawingAdapter, t as toLonLat } from "./index-
|
|
3
|
-
import { E as ElMessageBox } from "./index-
|
|
2
|
+
import { i as plus_default, j as folder_opened_default, k as download_default, m as delete_default, s as search_default, n as location_filled_default, o as edit_default, M as MarkerDrawingAdapter, t as toLonLat } from "./index-b5b0a094.mjs";
|
|
3
|
+
import { E as ElMessageBox } from "./index-5bc5966e.mjs";
|
|
4
4
|
import "ol";
|
|
5
5
|
const _hoisted_1 = { class: "markers-content" };
|
|
6
6
|
const _hoisted_2 = { class: "toolbar" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, reactive, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createElementBlock, Fragment, renderList, withModifiers, toDisplayString, createCommentVNode } from "vue";
|
|
2
|
-
import { i as plus_default, j as folder_opened_default, k as download_default, m as delete_default, s as search_default, q as camera_default, v as view_default, o as edit_default, u as location_default, z as zoom_in_default } from "./index-
|
|
3
|
-
import { E as ElMessageBox } from "./index-
|
|
2
|
+
import { i as plus_default, j as folder_opened_default, k as download_default, m as delete_default, s as search_default, q as camera_default, v as view_default, o as edit_default, u as location_default, z as zoom_in_default } from "./index-b5b0a094.mjs";
|
|
3
|
+
import { E as ElMessageBox } from "./index-5bc5966e.mjs";
|
|
4
4
|
import "ol";
|
|
5
5
|
const _hoisted_1 = { class: "bookmarks-content" };
|
|
6
6
|
const _hoisted_2 = { class: "toolbar" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nextTick, defineComponent, computed, ref, reactive, markRaw, watch, onMounted, onBeforeUnmount, toRefs, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createVNode, createElementVNode, normalizeClass, normalizeStyle, withModifiers, createElementBlock, resolveDynamicComponent, createCommentVNode, toDisplayString, withKeys, renderSlot, vShow, createTextVNode, isVNode, render } from "vue";
|
|
2
|
-
import { w as componentSizes, x as obtainAllFocusableElements, y as getEventCode, E as EVENT_CODE, A as ElButton, B as ElFocusTrap, C as ElInput, D as ElOverlay, F as ElIcon, G as TypeComponents, H as useGlobalComponentSettings, I as loading_default, J as TypeComponentsMap, K as useId, L as useDraggable, N as isFunction, O as isString, P as useLockscreen, Q as _export_sfc, S as useSameTarget, U as isClient, V as hasOwn, W as isObject, X as isUndefined, Y as isElement, Z as debugWarn } from "./index-
|
|
2
|
+
import { w as componentSizes, x as obtainAllFocusableElements, y as getEventCode, E as EVENT_CODE, A as ElButton, B as ElFocusTrap, C as ElInput, D as ElOverlay, F as ElIcon, G as TypeComponents, H as useGlobalComponentSettings, I as loading_default, J as TypeComponentsMap, K as useId, L as useDraggable, N as isFunction, O as isString, P as useLockscreen, Q as _export_sfc, S as useSameTarget, U as isClient, V as hasOwn, W as isObject, X as isUndefined, Y as isElement, Z as debugWarn } from "./index-b5b0a094.mjs";
|
|
3
3
|
const isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
|
|
4
4
|
const FOCUSABLE_CHILDREN = "_trap-focus-children";
|
|
5
5
|
const FOCUS_STACK = [];
|
|
@@ -110862,14 +110862,14 @@ function e$4(A5) {
|
|
|
110862
110862
|
var g2 = y$7(A5), I2 = g2[0], C3 = g2[1];
|
|
110863
110863
|
return I2 || C3 ? (C3 && (C3 = C3.substr(0, C3.length - 1)), I2 + C3) : ".";
|
|
110864
110864
|
}
|
|
110865
|
-
function N$
|
|
110865
|
+
function N$3(A5, g2) {
|
|
110866
110866
|
var I2 = y$7(A5)[2];
|
|
110867
110867
|
return g2 && I2.substr(-1 * g2.length) === g2 && (I2 = I2.substr(0, I2.length - g2.length)), I2;
|
|
110868
110868
|
}
|
|
110869
110869
|
function r$2(A5) {
|
|
110870
110870
|
return y$7(A5)[3];
|
|
110871
110871
|
}
|
|
110872
|
-
var Y$
|
|
110872
|
+
var Y$3 = { extname: r$2, basename: N$3, dirname: e$4, sep: "/", delimiter: ":", relative: h$3, join: K$2, isAbsolute: t$2, normalize: n$3, resolve: M$3 };
|
|
110873
110873
|
function H$2(A5, g2) {
|
|
110874
110874
|
if (A5.filter)
|
|
110875
110875
|
return A5.filter(g2);
|
|
@@ -110882,7 +110882,7 @@ var R$4 = "b" === "ab".substr(-1) ? function(A5, g2, I2) {
|
|
|
110882
110882
|
} : function(A5, g2, I2) {
|
|
110883
110883
|
return g2 < 0 && (g2 = A5.length + g2), A5.substr(g2, I2);
|
|
110884
110884
|
};
|
|
110885
|
-
var w$2 = E$4(Object.freeze({ __proto__: null, resolve: M$3, normalize: n$3, isAbsolute: t$2, join: K$2, relative: h$3, sep: "/", delimiter: ":", dirname: e$4, basename: N$
|
|
110885
|
+
var w$2 = E$4(Object.freeze({ __proto__: null, resolve: M$3, normalize: n$3, isAbsolute: t$2, join: K$2, relative: h$3, sep: "/", delimiter: ":", dirname: e$4, basename: N$3, extname: r$2, default: Y$3 }));
|
|
110886
110886
|
!function(A5, g2) {
|
|
110887
110887
|
var I2 = function(g3) {
|
|
110888
110888
|
g3 = void 0 !== g3 ? g3 : {};
|
|
@@ -297432,9 +297432,9 @@ var j$1 = function(e8) {
|
|
|
297432
297432
|
var x$3 = function(e8) {
|
|
297433
297433
|
return this.__data__.has(e8);
|
|
297434
297434
|
};
|
|
297435
|
-
var N$
|
|
297435
|
+
var N$2 = "object" == typeof s$2 && s$2 && s$2.Object === Object && s$2;
|
|
297436
297436
|
var O$2 = "object" == typeof self && self && self.Object === Object && self;
|
|
297437
|
-
var k$1 = N$
|
|
297437
|
+
var k$1 = N$2 || O$2 || Function("return this")();
|
|
297438
297438
|
var I$1 = k$1.Symbol;
|
|
297439
297439
|
var S$1 = Object.prototype;
|
|
297440
297440
|
var M$2 = S$1.hasOwnProperty;
|
|
@@ -297490,9 +297490,9 @@ var H$1 = function(e8) {
|
|
|
297490
297490
|
};
|
|
297491
297491
|
var W$1 = /^\[object .+?Constructor\]$/;
|
|
297492
297492
|
var q$1 = Function.prototype;
|
|
297493
|
-
var Y$
|
|
297493
|
+
var Y$2 = Object.prototype;
|
|
297494
297494
|
var J$1 = q$1.toString;
|
|
297495
|
-
var X$1 = Y$
|
|
297495
|
+
var X$1 = Y$2.hasOwnProperty;
|
|
297496
297496
|
var K$1 = RegExp("^" + J$1.call(X$1).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
297497
297497
|
var Q$1 = function(e8) {
|
|
297498
297498
|
return !(!D$2(e8) || V$2(e8)) && (z$2(e8) ? K$1 : W$1).test(H$1(e8));
|
|
@@ -297506,7 +297506,7 @@ var ee$1 = function(e8, n2) {
|
|
|
297506
297506
|
};
|
|
297507
297507
|
var ne$1 = ee$1(k$1, "Map");
|
|
297508
297508
|
var te$1 = ee$1(Object, "create");
|
|
297509
|
-
var re$
|
|
297509
|
+
var re$1 = function() {
|
|
297510
297510
|
this.__data__ = te$1 ? te$1(null) : {}, this.size = 0;
|
|
297511
297511
|
};
|
|
297512
297512
|
var oe$1 = function(e8) {
|
|
@@ -297514,7 +297514,7 @@ var oe$1 = function(e8) {
|
|
|
297514
297514
|
return this.size -= n2 ? 1 : 0, n2;
|
|
297515
297515
|
};
|
|
297516
297516
|
var ie$1 = Object.prototype.hasOwnProperty;
|
|
297517
|
-
var ae$
|
|
297517
|
+
var ae$1 = function(e8) {
|
|
297518
297518
|
var n2 = this.__data__;
|
|
297519
297519
|
if (te$1) {
|
|
297520
297520
|
var t3 = n2[e8];
|
|
@@ -297538,7 +297538,7 @@ function de$2(e8) {
|
|
|
297538
297538
|
this.set(r2[0], r2[1]);
|
|
297539
297539
|
}
|
|
297540
297540
|
}
|
|
297541
|
-
de$2.prototype.clear = re$
|
|
297541
|
+
de$2.prototype.clear = re$1, de$2.prototype.delete = oe$1, de$2.prototype.get = ae$1, de$2.prototype.has = ce$2, de$2.prototype.set = se$1;
|
|
297542
297542
|
var fe$2 = de$2;
|
|
297543
297543
|
var he$2 = function() {
|
|
297544
297544
|
this.size = 0, this.__data__ = { hash: new fe$2(), map: new (ne$1 || w$1)(), string: new fe$2() };
|
|
@@ -297547,22 +297547,22 @@ var le$1 = function(e8) {
|
|
|
297547
297547
|
var n2 = typeof e8;
|
|
297548
297548
|
return "string" == n2 || "number" == n2 || "symbol" == n2 || "boolean" == n2 ? "__proto__" !== e8 : null === e8;
|
|
297549
297549
|
};
|
|
297550
|
-
var ve$
|
|
297550
|
+
var ve$2 = function(e8, n2) {
|
|
297551
297551
|
var t3 = e8.__data__;
|
|
297552
297552
|
return le$1(n2) ? t3["string" == typeof n2 ? "string" : "hash"] : t3.map;
|
|
297553
297553
|
};
|
|
297554
297554
|
var pe$2 = function(e8) {
|
|
297555
|
-
var n2 = ve$
|
|
297555
|
+
var n2 = ve$2(this, e8).delete(e8);
|
|
297556
297556
|
return this.size -= n2 ? 1 : 0, n2;
|
|
297557
297557
|
};
|
|
297558
|
-
var ge$
|
|
297559
|
-
return ve$
|
|
297558
|
+
var ge$2 = function(e8) {
|
|
297559
|
+
return ve$2(this, e8).get(e8);
|
|
297560
297560
|
};
|
|
297561
297561
|
var ye$1 = function(e8) {
|
|
297562
|
-
return ve$
|
|
297562
|
+
return ve$2(this, e8).has(e8);
|
|
297563
297563
|
};
|
|
297564
297564
|
var be$1 = function(e8, n2) {
|
|
297565
|
-
var t3 = ve$
|
|
297565
|
+
var t3 = ve$2(this, e8), r2 = t3.size;
|
|
297566
297566
|
return t3.set(e8, n2), this.size += t3.size == r2 ? 0 : 1, this;
|
|
297567
297567
|
};
|
|
297568
297568
|
function me$2(e8) {
|
|
@@ -297572,7 +297572,7 @@ function me$2(e8) {
|
|
|
297572
297572
|
this.set(r2[0], r2[1]);
|
|
297573
297573
|
}
|
|
297574
297574
|
}
|
|
297575
|
-
me$2.prototype.clear = he$2, me$2.prototype.delete = pe$2, me$2.prototype.get = ge$
|
|
297575
|
+
me$2.prototype.clear = he$2, me$2.prototype.delete = pe$2, me$2.prototype.get = ge$2, me$2.prototype.has = ye$1, me$2.prototype.set = be$1;
|
|
297576
297576
|
var we$1 = me$2;
|
|
297577
297577
|
var Ee = function(e8, n2) {
|
|
297578
297578
|
var t3 = this.__data__;
|
|
@@ -297665,7 +297665,7 @@ var He = function(e8) {
|
|
|
297665
297665
|
};
|
|
297666
297666
|
};
|
|
297667
297667
|
var We = d$1(function(e8, n2) {
|
|
297668
|
-
var t3 = n2 && !n2.nodeType && n2, r2 = t3 && e8 && !e8.nodeType && e8, o2 = r2 && r2.exports === t3 && N$
|
|
297668
|
+
var t3 = n2 && !n2.nodeType && n2, r2 = t3 && e8 && !e8.nodeType && e8, o2 = r2 && r2.exports === t3 && N$2.process, i = function() {
|
|
297669
297669
|
try {
|
|
297670
297670
|
var e9 = r2 && r2.require && r2.require("util").types;
|
|
297671
297671
|
return e9 || o2 && o2.binding && o2.binding("util");
|
|
@@ -371918,7 +371918,7 @@ var f$2 = function(t3) {
|
|
|
371918
371918
|
} else if ((3 === this.curArgs.length || 4 === this.curArgs.length) && "0" !== this.curNumber && "1" !== this.curNumber)
|
|
371919
371919
|
throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + a3 + '"');
|
|
371920
371920
|
}
|
|
371921
|
-
this.curArgs.push(u2), this.curArgs.length === N$
|
|
371921
|
+
this.curArgs.push(u2), this.curArgs.length === N$1[this.curCommandType] && (_$1.HORIZ_LINE_TO === this.curCommandType ? i({ type: _$1.HORIZ_LINE_TO, relative: this.curCommandRelative, x: u2 }) : _$1.VERT_LINE_TO === this.curCommandType ? i({ type: _$1.VERT_LINE_TO, relative: this.curCommandRelative, y: u2 }) : this.curCommandType === _$1.MOVE_TO || this.curCommandType === _$1.LINE_TO || this.curCommandType === _$1.SMOOTH_QUAD_TO ? (i({ type: this.curCommandType, relative: this.curCommandRelative, x: this.curArgs[0], y: this.curArgs[1] }), _$1.MOVE_TO === this.curCommandType && (this.curCommandType = _$1.LINE_TO)) : this.curCommandType === _$1.CURVE_TO ? i({ type: _$1.CURVE_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x2: this.curArgs[2], y2: this.curArgs[3], x: this.curArgs[4], y: this.curArgs[5] }) : this.curCommandType === _$1.SMOOTH_CURVE_TO ? i({ type: _$1.SMOOTH_CURVE_TO, relative: this.curCommandRelative, x2: this.curArgs[0], y2: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === _$1.QUAD_TO ? i({ type: _$1.QUAD_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === _$1.ARC && i({ type: _$1.ARC, relative: this.curCommandRelative, rX: this.curArgs[0], rY: this.curArgs[1], xRot: this.curArgs[2], lArcFlag: this.curArgs[3], sweepFlag: this.curArgs[4], x: this.curArgs[5], y: this.curArgs[6] })), this.curNumber = "", this.curNumberHasExpDigits = false, this.curNumberHasExp = false, this.curNumberHasDecimal = false, this.canParseCommandOrComma = true;
|
|
371922
371922
|
}
|
|
371923
371923
|
if (!T$2(n2))
|
|
371924
371924
|
if ("," === n2 && this.canParseCommandOrComma)
|
|
@@ -372002,7 +372002,7 @@ var _$1 = function(t3) {
|
|
|
372002
372002
|
return r2.parse(t4, e8), r2.finish(e8), e8;
|
|
372003
372003
|
}, i.CLOSE_PATH = 1, i.MOVE_TO = 2, i.HORIZ_LINE_TO = 4, i.VERT_LINE_TO = 8, i.LINE_TO = 16, i.CURVE_TO = 32, i.SMOOTH_CURVE_TO = 64, i.QUAD_TO = 128, i.SMOOTH_QUAD_TO = 256, i.ARC = 512, i.LINE_COMMANDS = i.LINE_TO | i.HORIZ_LINE_TO | i.VERT_LINE_TO, i.DRAWING_COMMANDS = i.HORIZ_LINE_TO | i.VERT_LINE_TO | i.LINE_TO | i.CURVE_TO | i.SMOOTH_CURVE_TO | i.QUAD_TO | i.SMOOTH_QUAD_TO | i.ARC, i;
|
|
372004
372004
|
}(l$1);
|
|
372005
|
-
var N$
|
|
372005
|
+
var N$1 = ((O$1 = {})[_$1.MOVE_TO] = 2, O$1[_$1.LINE_TO] = 2, O$1[_$1.HORIZ_LINE_TO] = 1, O$1[_$1.VERT_LINE_TO] = 1, O$1[_$1.CLOSE_PATH] = 0, O$1[_$1.QUAD_TO] = 4, O$1[_$1.SMOOTH_QUAD_TO] = 2, O$1[_$1.CURVE_TO] = 6, O$1[_$1.SMOOTH_CURVE_TO] = 4, O$1[_$1.ARC] = 7, O$1);
|
|
372006
372006
|
function _typeof(obj) {
|
|
372007
372007
|
"@babel/helpers - typeof";
|
|
372008
372008
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
@@ -468745,16 +468745,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
468745
468745
|
}
|
|
468746
468746
|
});
|
|
468747
468747
|
const defaultComponents = {
|
|
468748
|
-
"measurement": () => import("./MeasurementDialog-
|
|
468749
|
-
"basemap": () => import("./BasemapPanel-
|
|
468750
|
-
"print": () => import("./MapPrintDialog-
|
|
468751
|
-
"layer-panel": () => import("./LayerPanel-
|
|
468752
|
-
"coordinate": () => import("./CoordinateLocationDialog-
|
|
468748
|
+
"measurement": () => import("./MeasurementDialog-d29c4928.mjs"),
|
|
468749
|
+
"basemap": () => import("./BasemapPanel-6d2a04e9.mjs"),
|
|
468750
|
+
"print": () => import("./MapPrintDialog-74d86245.mjs"),
|
|
468751
|
+
"layer-panel": () => import("./LayerPanel-de7c698a.mjs"),
|
|
468752
|
+
"coordinate": () => import("./CoordinateLocationDialog-de357c83.mjs"),
|
|
468753
468753
|
"region-navigation": () => import("./RegionNavigationDialog-0808549f.mjs"),
|
|
468754
|
-
"my-markers": () => import("./MyMarkersDialog-
|
|
468755
|
-
"view-bookmarks": () => import("./ViewBookmarksDialog-
|
|
468756
|
-
"map-drawing": () => import("./index-
|
|
468757
|
-
"filter-panel": () => import("./FilterPanel-
|
|
468754
|
+
"my-markers": () => import("./MyMarkersDialog-b4318073.mjs"),
|
|
468755
|
+
"view-bookmarks": () => import("./ViewBookmarksDialog-cdf56611.mjs"),
|
|
468756
|
+
"map-drawing": () => import("./index-dfd59202.mjs"),
|
|
468757
|
+
"filter-panel": () => import("./FilterPanel-d40a133c.mjs")
|
|
468758
468758
|
};
|
|
468759
468759
|
const _DialogRegistry = class _DialogRegistry {
|
|
468760
468760
|
constructor() {
|
|
@@ -472963,11 +472963,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
472963
472963
|
}
|
|
472964
472964
|
});
|
|
472965
472965
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
472966
|
-
var
|
|
472966
|
+
var ce$1 = /* @__PURE__ */ defineComponent({
|
|
472967
472967
|
name: "Close",
|
|
472968
472968
|
__name: "close",
|
|
472969
|
-
setup(
|
|
472970
|
-
return (
|
|
472969
|
+
setup(r2) {
|
|
472970
|
+
return (S2, c2) => (openBlock(), createElementBlock("svg", {
|
|
472971
472971
|
xmlns: "http://www.w3.org/2000/svg",
|
|
472972
472972
|
viewBox: "0 0 1024 1024"
|
|
472973
472973
|
}, [
|
|
@@ -472978,12 +472978,12 @@ var ae$1 = /* @__PURE__ */ defineComponent({
|
|
|
472978
472978
|
]));
|
|
472979
472979
|
}
|
|
472980
472980
|
});
|
|
472981
|
-
var
|
|
472982
|
-
var
|
|
472981
|
+
var de$1 = ce$1;
|
|
472982
|
+
var ue$1 = /* @__PURE__ */ defineComponent({
|
|
472983
472983
|
name: "FullScreen",
|
|
472984
472984
|
__name: "full-screen",
|
|
472985
|
-
setup(
|
|
472986
|
-
return (
|
|
472985
|
+
setup(r2) {
|
|
472986
|
+
return (S2, c2) => (openBlock(), createElementBlock("svg", {
|
|
472987
472987
|
xmlns: "http://www.w3.org/2000/svg",
|
|
472988
472988
|
viewBox: "0 0 1024 1024"
|
|
472989
472989
|
}, [
|
|
@@ -472994,11 +472994,11 @@ var ce$1 = /* @__PURE__ */ defineComponent({
|
|
|
472994
472994
|
]));
|
|
472995
472995
|
}
|
|
472996
472996
|
});
|
|
472997
|
-
var
|
|
472998
|
-
const
|
|
472999
|
-
const
|
|
473000
|
-
const
|
|
473001
|
-
const
|
|
472997
|
+
var fe$1 = ue$1;
|
|
472998
|
+
const he$1 = { class: "custom-dialog-header" };
|
|
472999
|
+
const me$1 = ["id"];
|
|
473000
|
+
const pe$1 = { class: "custom-dialog-actions" };
|
|
473001
|
+
const ge$1 = {
|
|
473002
473002
|
key: 1,
|
|
473003
473003
|
class: "icon",
|
|
473004
473004
|
viewBox: "0 0 1025 1024",
|
|
@@ -473007,8 +473007,8 @@ const me$1 = {
|
|
|
473007
473007
|
width: "1em",
|
|
473008
473008
|
height: "1em"
|
|
473009
473009
|
};
|
|
473010
|
-
const
|
|
473011
|
-
const
|
|
473010
|
+
const ve$1 = ["onClick"];
|
|
473011
|
+
const Y$1 = /* @__PURE__ */ defineComponent({
|
|
473012
473012
|
__name: "EPlusResizeDialog",
|
|
473013
473013
|
props: {
|
|
473014
473014
|
resizable: { type: Boolean, default: true },
|
|
@@ -473019,11 +473019,11 @@ const N$1 = /* @__PURE__ */ defineComponent({
|
|
|
473019
473019
|
modalPenetrable: { type: Boolean, default: true },
|
|
473020
473020
|
closeOnClickModal: { type: Boolean, default: false }
|
|
473021
473021
|
},
|
|
473022
|
-
setup(
|
|
473023
|
-
const
|
|
473022
|
+
setup(r2, { expose: S2 }) {
|
|
473023
|
+
const c2 = r2, j2 = computed(() => c2.showFullscreen !== false), i = ref(), V2 = useAttrs$1(), U2 = useSlots(), d2 = ref(false), g2 = computed(() => {
|
|
473024
473024
|
const l2 = V2.modal;
|
|
473025
|
-
return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !
|
|
473026
|
-
}),
|
|
473025
|
+
return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !c2.modalPenetrable;
|
|
473026
|
+
}), a3 = {
|
|
473027
473027
|
width: "",
|
|
473028
473028
|
height: "",
|
|
473029
473029
|
left: "",
|
|
@@ -473031,33 +473031,33 @@ const N$1 = /* @__PURE__ */ defineComponent({
|
|
|
473031
473031
|
transform: "",
|
|
473032
473032
|
marginTop: "",
|
|
473033
473033
|
marginBottom: ""
|
|
473034
|
-
},
|
|
473035
|
-
|
|
473036
|
-
e8 && (e8.style.width =
|
|
473037
|
-
})) : (e8 && (
|
|
473034
|
+
}, $2 = () => {
|
|
473035
|
+
d2.value ? (d2.value = false, nextTick(() => {
|
|
473036
|
+
e8 && (e8.style.width = a3.width, e8.style.height = a3.height, e8.style.left = a3.left, e8.style.top = a3.top, e8.style.transform = a3.transform, e8.style.marginTop = a3.marginTop, e8.style.marginBottom = a3.marginBottom);
|
|
473037
|
+
})) : (e8 && (a3.width = e8.style.width, a3.height = e8.style.height, a3.left = e8.style.left, a3.top = e8.style.top, a3.transform = e8.style.transform, a3.marginTop = e8.style.marginTop, a3.marginBottom = e8.style.marginBottom, e8.style.width = "", e8.style.height = "", e8.style.transform = "", e8.style.left = "", e8.style.top = "", e8.style.marginTop = "", e8.style.marginBottom = ""), d2.value = true), nextTick(() => {
|
|
473038
473038
|
M5();
|
|
473039
473039
|
});
|
|
473040
473040
|
};
|
|
473041
|
-
|
|
473042
|
-
dialogRef:
|
|
473043
|
-
toggleFullscreen:
|
|
473044
|
-
isFullscreen:
|
|
473041
|
+
S2({
|
|
473042
|
+
dialogRef: i,
|
|
473043
|
+
toggleFullscreen: $2,
|
|
473044
|
+
isFullscreen: d2
|
|
473045
473045
|
});
|
|
473046
|
-
let
|
|
473047
|
-
const
|
|
473046
|
+
let R2 = 0, H4 = 0, B3 = 0, C3 = 0, v5 = 0, y2 = 0, u2 = "", e8 = null;
|
|
473047
|
+
const G2 = ["n", "e", "s", "w", "ne", "nw", "se", "sw"], M5 = () => {
|
|
473048
473048
|
var s2;
|
|
473049
|
-
if (
|
|
473049
|
+
if (c2.resizable === false || d2.value) {
|
|
473050
473050
|
e8 && e8.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "none");
|
|
473051
473051
|
return;
|
|
473052
473052
|
}
|
|
473053
|
-
if (e8 && e8.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "block"), !
|
|
473053
|
+
if (e8 && e8.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "block"), !i.value)
|
|
473054
473054
|
return;
|
|
473055
|
-
const l2 = ((s2 =
|
|
473056
|
-
!l2 || (e8 = l2.querySelector(".el-dialog") || l2, (!e8 || !e8.classList.contains("el-dialog")) && (l2.classList.contains("el-dialog") ? e8 = l2 : e8 = document.querySelector(".el-dialog")), !e8) || (getComputedStyle(e8).position === "static" && (e8.style.position = "relative"), e8.querySelector(".resize-handle")) ||
|
|
473055
|
+
const l2 = ((s2 = i.value.dialogContentRef) == null ? void 0 : s2.$el) || i.value.$el;
|
|
473056
|
+
!l2 || (e8 = l2.querySelector(".el-dialog") || l2, (!e8 || !e8.classList.contains("el-dialog")) && (l2.classList.contains("el-dialog") ? e8 = l2 : e8 = document.querySelector(".el-dialog")), !e8) || (getComputedStyle(e8).position === "static" && (e8.style.position = "relative"), e8.querySelector(".resize-handle")) || G2.forEach((t3) => {
|
|
473057
473057
|
const n2 = document.createElement("div");
|
|
473058
|
-
n2.className = `resize-handle resize-handle-${t3}`, n2.dataset.dir = t3, Object.assign(n2.style,
|
|
473058
|
+
n2.className = `resize-handle resize-handle-${t3}`, n2.dataset.dir = t3, Object.assign(n2.style, J2(t3)), n2.addEventListener("mousedown", (f2) => K2(f2, t3)), e8.appendChild(n2);
|
|
473059
473059
|
});
|
|
473060
|
-
},
|
|
473060
|
+
}, J2 = (l2) => {
|
|
473061
473061
|
const o2 = "10px", s2 = "-5px", t3 = {
|
|
473062
473062
|
position: "absolute",
|
|
473063
473063
|
zIndex: "100",
|
|
@@ -473066,72 +473066,88 @@ const N$1 = /* @__PURE__ */ defineComponent({
|
|
|
473066
473066
|
cursor: `${l2}-resize`
|
|
473067
473067
|
};
|
|
473068
473068
|
return l2.includes("n") && (t3.top = s2), l2.includes("s") && (t3.bottom = s2), l2.includes("w") && (t3.left = s2), l2.includes("e") && (t3.right = s2), l2 === "ne" && (t3.top = s2, t3.right = s2, t3.width = o2, t3.height = o2, t3.cursor = "ne-resize"), l2 === "nw" && (t3.top = s2, t3.left = s2, t3.width = o2, t3.height = o2, t3.cursor = "nw-resize"), l2 === "se" && (t3.bottom = s2, t3.right = s2, t3.width = o2, t3.height = o2, t3.cursor = "se-resize"), l2 === "sw" && (t3.bottom = s2, t3.left = s2, t3.width = o2, t3.height = o2, t3.cursor = "sw-resize"), t3;
|
|
473069
|
-
},
|
|
473069
|
+
}, K2 = (l2, o2) => {
|
|
473070
473070
|
if (l2.preventDefault(), l2.stopPropagation(), !e8)
|
|
473071
473071
|
return;
|
|
473072
|
-
u2 = o2,
|
|
473072
|
+
u2 = o2, R2 = l2.clientX, H4 = l2.clientY;
|
|
473073
473073
|
const s2 = window.getComputedStyle(e8);
|
|
473074
|
-
|
|
473074
|
+
B3 = parseInt(s2.width), C3 = parseInt(s2.height), v5 = parseInt(s2.left) || 0, y2 = parseInt(s2.top) || 0;
|
|
473075
473075
|
const t3 = e8.getBoundingClientRect();
|
|
473076
473076
|
if (s2.position !== "absolute" && s2.position !== "fixed") {
|
|
473077
|
-
const n2 = e8.offsetParent,
|
|
473078
|
-
e8.style.position = "absolute", e8.style.margin = "0", e8.style.left = `${
|
|
473077
|
+
const n2 = e8.offsetParent, f2 = n2 ? n2.getBoundingClientRect() : { left: 0, top: 0 }, w2 = t3.left - f2.left, _2 = t3.top - f2.top;
|
|
473078
|
+
e8.style.position = "absolute", e8.style.margin = "0", e8.style.left = `${w2}px`, e8.style.top = `${_2}px`, v5 = w2, y2 = _2;
|
|
473079
473079
|
} else
|
|
473080
|
-
|
|
473081
|
-
document.addEventListener("mousemove", P6), document.addEventListener("mouseup",
|
|
473080
|
+
v5 = parseInt(s2.left), y2 = parseInt(s2.top);
|
|
473081
|
+
document.addEventListener("mousemove", P6), document.addEventListener("mouseup", T2);
|
|
473082
473082
|
}, P6 = (l2) => {
|
|
473083
473083
|
if (!e8)
|
|
473084
473084
|
return;
|
|
473085
|
-
const o2 = l2.clientX -
|
|
473086
|
-
let t3 =
|
|
473087
|
-
const
|
|
473088
|
-
if (u2.includes("e") && (t3 = Math.max(
|
|
473089
|
-
const
|
|
473090
|
-
|
|
473085
|
+
const o2 = l2.clientX - R2, s2 = l2.clientY - H4;
|
|
473086
|
+
let t3 = B3, n2 = C3, f2 = v5, w2 = y2;
|
|
473087
|
+
const _2 = c2.minWidth || 200, I2 = c2.minHeight || 150;
|
|
473088
|
+
if (u2.includes("e") && (t3 = Math.max(_2, B3 + o2)), u2.includes("s") && (n2 = Math.max(I2, C3 + s2)), u2.includes("w")) {
|
|
473089
|
+
const z2 = B3 - o2;
|
|
473090
|
+
z2 >= _2 && (t3 = z2, f2 = v5 + o2);
|
|
473091
473091
|
}
|
|
473092
473092
|
if (u2.includes("n")) {
|
|
473093
|
-
const
|
|
473094
|
-
|
|
473093
|
+
const z2 = C3 - s2;
|
|
473094
|
+
z2 >= I2 && (n2 = z2, w2 = y2 + s2);
|
|
473095
473095
|
}
|
|
473096
|
-
e8.style.width = `${t3}px`, e8.style.height = `${n2}px`, (u2.includes("w") || u2.includes("n")) && (e8.style.left = `${
|
|
473097
|
-
},
|
|
473098
|
-
document.removeEventListener("mousemove", P6), document.removeEventListener("mouseup",
|
|
473096
|
+
e8.style.width = `${t3}px`, e8.style.height = `${n2}px`, (u2.includes("w") || u2.includes("n")) && (e8.style.left = `${f2}px`, e8.style.top = `${w2}px`);
|
|
473097
|
+
}, T2 = () => {
|
|
473098
|
+
document.removeEventListener("mousemove", P6), document.removeEventListener("mouseup", T2);
|
|
473099
473099
|
};
|
|
473100
|
-
|
|
473100
|
+
watch(() => V2.modelValue, (l2) => {
|
|
473101
473101
|
l2 && nextTick(() => {
|
|
473102
|
-
M5();
|
|
473102
|
+
M5(), D2();
|
|
473103
|
+
});
|
|
473104
|
+
}), watch(() => g2.value, () => {
|
|
473105
|
+
nextTick(() => {
|
|
473106
|
+
D2();
|
|
473103
473107
|
});
|
|
473104
|
-
})
|
|
473108
|
+
});
|
|
473109
|
+
const D2 = () => {
|
|
473110
|
+
var s2;
|
|
473111
|
+
if (!i.value)
|
|
473112
|
+
return;
|
|
473113
|
+
const l2 = ((s2 = i.value.dialogContentRef) == null ? void 0 : s2.$el) || i.value.$el;
|
|
473114
|
+
if (!l2)
|
|
473115
|
+
return;
|
|
473116
|
+
let o2 = l2.closest(".el-overlay");
|
|
473117
|
+
o2 || (o2 = l2.closest(".el-overlay-dialog")), o2 && (g2.value ? o2.classList.remove("e-plus-modal-hidden-overlay") : o2.classList.add("e-plus-modal-hidden-overlay"));
|
|
473118
|
+
};
|
|
473119
|
+
return (l2, o2) => (openBlock(), createBlock(unref(ElDialog), mergeProps({
|
|
473105
473120
|
ref_key: "dialogRef",
|
|
473106
|
-
ref:
|
|
473107
|
-
class: "e-plus-resize-dialog"
|
|
473121
|
+
ref: i,
|
|
473122
|
+
class: ["e-plus-resize-dialog", { "is-modal-hidden": !g2.value }]
|
|
473108
473123
|
}, l2.$attrs, {
|
|
473109
|
-
modal:
|
|
473110
|
-
"close-on-click-modal":
|
|
473111
|
-
draggable:
|
|
473112
|
-
fullscreen:
|
|
473124
|
+
modal: g2.value,
|
|
473125
|
+
"close-on-click-modal": r2.closeOnClickModal,
|
|
473126
|
+
draggable: r2.draggable,
|
|
473127
|
+
fullscreen: d2.value,
|
|
473113
473128
|
"show-close": false
|
|
473114
473129
|
}), createSlots({
|
|
473115
473130
|
header: withCtx(({ close: s2, titleId: t3, titleClass: n2 }) => [
|
|
473116
|
-
createElementVNode("div",
|
|
473131
|
+
createElementVNode("div", he$1, [
|
|
473132
|
+
createTextVNode(toDisplayString(g2.value) + " ", 1),
|
|
473117
473133
|
createElementVNode("span", {
|
|
473118
473134
|
id: t3,
|
|
473119
473135
|
class: normalizeClass(n2)
|
|
473120
|
-
}, toDisplayString(l2.$attrs.title), 11,
|
|
473121
|
-
createElementVNode("div",
|
|
473122
|
-
|
|
473136
|
+
}, toDisplayString(l2.$attrs.title), 11, me$1),
|
|
473137
|
+
createElementVNode("div", pe$1, [
|
|
473138
|
+
j2.value ? (openBlock(), createElementBlock("div", {
|
|
473123
473139
|
key: 0,
|
|
473124
473140
|
class: "custom-header-btn",
|
|
473125
|
-
onClick:
|
|
473141
|
+
onClick: $2
|
|
473126
473142
|
}, [
|
|
473127
473143
|
createVNode$1(unref(ElIcon), { size: "18" }, {
|
|
473128
473144
|
default: withCtx(() => [
|
|
473129
|
-
|
|
473145
|
+
d2.value ? (openBlock(), createElementBlock("svg", ge$1, [...o2[0] || (o2[0] = [
|
|
473130
473146
|
createElementVNode("path", {
|
|
473131
473147
|
d: "M222.392033 1024V801.607967H0v-60.262562h282.654595v282.654595z m521.502942 0V741.345405H1025.622454v60.262562H804.041648v222.392033z m-743.431417-741.693074v-60.262562h222.392033V0.463558h60.262562v281.843368z m743.431417 0V0.463558h60.262562v221.580806H1025.622454v60.262562z",
|
|
473132
473148
|
fill: "currentColor"
|
|
473133
473149
|
}, null, -1)
|
|
473134
|
-
])])) : (openBlock(), createBlock(unref(
|
|
473150
|
+
])])) : (openBlock(), createBlock(unref(fe$1), { key: 0 }))
|
|
473135
473151
|
]),
|
|
473136
473152
|
_: 1
|
|
473137
473153
|
})
|
|
@@ -473143,27 +473159,27 @@ const N$1 = /* @__PURE__ */ defineComponent({
|
|
|
473143
473159
|
}, [
|
|
473144
473160
|
createVNode$1(unref(ElIcon), { size: "20" }, {
|
|
473145
473161
|
default: withCtx(() => [
|
|
473146
|
-
createVNode$1(unref(
|
|
473162
|
+
createVNode$1(unref(de$1))
|
|
473147
473163
|
]),
|
|
473148
473164
|
_: 1
|
|
473149
473165
|
})
|
|
473150
|
-
], 8,
|
|
473166
|
+
], 8, ve$1)) : createCommentVNode("", true)
|
|
473151
473167
|
])
|
|
473152
473168
|
])
|
|
473153
473169
|
]),
|
|
473154
473170
|
_: 2
|
|
473155
473171
|
}, [
|
|
473156
|
-
renderList(unref(
|
|
473172
|
+
renderList(unref(U2), (s2, t3) => ({
|
|
473157
473173
|
name: t3,
|
|
473158
473174
|
fn: withCtx((n2) => [
|
|
473159
473175
|
renderSlot(l2.$slots, t3, normalizeProps(guardReactiveProps(n2 || {})))
|
|
473160
473176
|
])
|
|
473161
473177
|
}))
|
|
473162
|
-
]), 1040, ["modal", "close-on-click-modal", "draggable", "fullscreen"]));
|
|
473178
|
+
]), 1040, ["class", "modal", "close-on-click-modal", "draggable", "fullscreen"]));
|
|
473163
473179
|
}
|
|
473164
473180
|
});
|
|
473165
|
-
|
|
473166
|
-
|
|
473181
|
+
Y$1.install = (r2) => {
|
|
473182
|
+
r2.component("EPlusResizeDialog", Y$1);
|
|
473167
473183
|
};
|
|
473168
473184
|
const _hoisted_1$6 = { class: "flex-1 overflow-y-auto p-4" };
|
|
473169
473185
|
const _hoisted_2$5 = { class: "pb-2 flex items-center justify-between" };
|
|
@@ -473940,7 +473956,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
473940
473956
|
const _component_el_tree = resolveComponent("el-tree");
|
|
473941
473957
|
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
473942
473958
|
const _component_el_tabs = resolveComponent("el-tabs");
|
|
473943
|
-
return openBlock(), createBlock(unref(
|
|
473959
|
+
return openBlock(), createBlock(unref(Y$1), mergeProps({
|
|
473944
473960
|
modelValue: visible.value,
|
|
473945
473961
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event)
|
|
473946
473962
|
}, dialogProps2.value, { onClose: handleClose }), createSlots({
|
|
@@ -488774,7 +488790,7 @@ function(t3) {
|
|
|
488774
488790
|
*/
|
|
488775
488791
|
function(t3) {
|
|
488776
488792
|
function e8() {
|
|
488777
|
-
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-
|
|
488793
|
+
return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-1fe2c0bd.mjs")).catch(function(t4) {
|
|
488778
488794
|
return Promise.reject(new Error("Could not load canvg: " + t4));
|
|
488779
488795
|
}).then(function(t4) {
|
|
488780
488796
|
return t4.default ? t4.default : t4;
|
|
@@ -497658,7 +497674,7 @@ const install = (app) => {
|
|
|
497658
497674
|
app.component("OlBaseLayerSwitcher", OlBaseLayerSwitcher);
|
|
497659
497675
|
app.component("CustomOpenlayer", _sfc_main$2);
|
|
497660
497676
|
app.component("CustomDialog", _sfc_main);
|
|
497661
|
-
app.component("EPlusDialog",
|
|
497677
|
+
app.component("EPlusDialog", Y$1);
|
|
497662
497678
|
app.component("SvgIcon", _sfc_main$1);
|
|
497663
497679
|
};
|
|
497664
497680
|
const index = {
|
|
@@ -497666,7 +497682,7 @@ const index = {
|
|
|
497666
497682
|
OlMap: _sfc_main$2,
|
|
497667
497683
|
CustomOpenlayer: _sfc_main$2,
|
|
497668
497684
|
CustomDialog: _sfc_main,
|
|
497669
|
-
EPlusDialog:
|
|
497685
|
+
EPlusDialog: Y$1,
|
|
497670
497686
|
SvgIcon: _sfc_main$1
|
|
497671
497687
|
};
|
|
497672
497688
|
const version = "1.0.0";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject, computed, ref, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, unref, createTextVNode, createCommentVNode, createBlock } from "vue";
|
|
2
|
-
import { d as _export_sfc, $ as DrawingManager, a0 as close_default } from "./index-
|
|
2
|
+
import { d as _export_sfc, $ as DrawingManager, a0 as close_default } from "./index-b5b0a094.mjs";
|
|
3
3
|
import "ol";
|
|
4
4
|
const icons = {
|
|
5
5
|
pointMarker: "/icons/point.png",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, R as RGBColor, r as requestAnimationFrame, _ as _asyncToGenerator, a as _, p as processCanvasRGBA, b as _defineProperty } from "./index-
|
|
1
|
+
import { c as commonjsGlobal, R as RGBColor, r as requestAnimationFrame, _ as _asyncToGenerator, a as _, p as processCanvasRGBA, b as _defineProperty } from "./index-b5b0a094.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ol";
|
|
4
4
|
var check = function(it) {
|
package/lib/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aw, ak, aa, a2, an, $, aT, as, av, aY, aX, aD, aE, aP, aQ, ah, aF, aG, aW, aU, aj, ai, aR, aS, aN, aO, aL, aM, aJ, aK, a9, a5, a4, a8, a2 as a22, a3, a6, a7, ax, ay, aB, aC, aH, aI, aZ, ab, az, aA, af, au, al, ao, ar, ad, f, ag, at, ap, g, am, aV, ac, aq, l, ae } from "./index-
|
|
1
|
+
import { aw, ak, aa, a2, an, $, aT, as, av, aY, aX, aD, aE, aP, aQ, ah, aF, aG, aW, aU, aj, ai, aR, aS, aN, aO, aL, aM, aJ, aK, a9, a5, a4, a8, a2 as a22, a3, a6, a7, ax, ay, aB, aC, aH, aI, aZ, ab, az, aA, af, au, al, ao, ar, ad, f, ag, at, ap, g, am, aV, ac, aq, l, ae } from "./index-b5b0a094.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "ol";
|
|
4
4
|
export {
|
package/lib/index.umd.js
CHANGED
|
@@ -112121,14 +112121,14 @@ For more detail, please visit: ${ref}
|
|
|
112121
112121
|
var g2 = y$7(A5), I2 = g2[0], C3 = g2[1];
|
|
112122
112122
|
return I2 || C3 ? (C3 && (C3 = C3.substr(0, C3.length - 1)), I2 + C3) : ".";
|
|
112123
112123
|
}
|
|
112124
|
-
function N$
|
|
112124
|
+
function N$3(A5, g2) {
|
|
112125
112125
|
var I2 = y$7(A5)[2];
|
|
112126
112126
|
return g2 && I2.substr(-1 * g2.length) === g2 && (I2 = I2.substr(0, I2.length - g2.length)), I2;
|
|
112127
112127
|
}
|
|
112128
112128
|
function r$2(A5) {
|
|
112129
112129
|
return y$7(A5)[3];
|
|
112130
112130
|
}
|
|
112131
|
-
var Y$
|
|
112131
|
+
var Y$3 = { extname: r$2, basename: N$3, dirname: e$4, sep: "/", delimiter: ":", relative: h$3, join: K$2, isAbsolute: t$2, normalize: n$3, resolve: M$3 };
|
|
112132
112132
|
function H$2(A5, g2) {
|
|
112133
112133
|
if (A5.filter)
|
|
112134
112134
|
return A5.filter(g2);
|
|
@@ -112140,7 +112140,7 @@ For more detail, please visit: ${ref}
|
|
|
112140
112140
|
return A5.substr(g2, I2);
|
|
112141
112141
|
} : function(A5, g2, I2) {
|
|
112142
112142
|
return g2 < 0 && (g2 = A5.length + g2), A5.substr(g2, I2);
|
|
112143
|
-
}, w$2 = E$4(Object.freeze({ __proto__: null, resolve: M$3, normalize: n$3, isAbsolute: t$2, join: K$2, relative: h$3, sep: "/", delimiter: ":", dirname: e$4, basename: N$
|
|
112143
|
+
}, w$2 = E$4(Object.freeze({ __proto__: null, resolve: M$3, normalize: n$3, isAbsolute: t$2, join: K$2, relative: h$3, sep: "/", delimiter: ":", dirname: e$4, basename: N$3, extname: r$2, default: Y$3 }));
|
|
112144
112144
|
!function(A5, g2) {
|
|
112145
112145
|
var I2 = function(g3) {
|
|
112146
112146
|
g3 = void 0 !== g3 ? g3 : {};
|
|
@@ -298646,7 +298646,7 @@ ${publicKeyStr}
|
|
|
298646
298646
|
};
|
|
298647
298647
|
var x$3 = function(e3) {
|
|
298648
298648
|
return this.__data__.has(e3);
|
|
298649
|
-
}, N$
|
|
298649
|
+
}, N$2 = "object" == typeof s$2 && s$2 && s$2.Object === Object && s$2, O$2 = "object" == typeof self && self && self.Object === Object && self, k$1 = N$2 || O$2 || Function("return this")(), I$1 = k$1.Symbol, S$1 = Object.prototype, M$2 = S$1.hasOwnProperty, C$1 = S$1.toString, G$1 = I$1 ? I$1.toStringTag : void 0;
|
|
298650
298650
|
var B$3 = function(e3) {
|
|
298651
298651
|
var n2 = M$2.call(e3, G$1), t2 = e3[G$1];
|
|
298652
298652
|
try {
|
|
@@ -298688,7 +298688,7 @@ ${publicKeyStr}
|
|
|
298688
298688
|
}
|
|
298689
298689
|
}
|
|
298690
298690
|
return "";
|
|
298691
|
-
}, W$1 = /^\[object .+?Constructor\]$/, q$1 = Function.prototype, Y$
|
|
298691
|
+
}, W$1 = /^\[object .+?Constructor\]$/, q$1 = Function.prototype, Y$2 = Object.prototype, J$1 = q$1.toString, X$1 = Y$2.hasOwnProperty, K$1 = RegExp("^" + J$1.call(X$1).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
298692
298692
|
var Q$1 = function(e3) {
|
|
298693
298693
|
return !(!D$2(e3) || V$2(e3)) && (z$2(e3) ? K$1 : W$1).test(H$1(e3));
|
|
298694
298694
|
};
|
|
@@ -298699,14 +298699,14 @@ ${publicKeyStr}
|
|
|
298699
298699
|
var t2 = Z$2(e3, n2);
|
|
298700
298700
|
return Q$1(t2) ? t2 : void 0;
|
|
298701
298701
|
}, ne$1 = ee$1(k$1, "Map"), te$1 = ee$1(Object, "create");
|
|
298702
|
-
var re$
|
|
298702
|
+
var re$1 = function() {
|
|
298703
298703
|
this.__data__ = te$1 ? te$1(null) : {}, this.size = 0;
|
|
298704
298704
|
};
|
|
298705
298705
|
var oe$1 = function(e3) {
|
|
298706
298706
|
var n2 = this.has(e3) && delete this.__data__[e3];
|
|
298707
298707
|
return this.size -= n2 ? 1 : 0, n2;
|
|
298708
298708
|
}, ie$1 = Object.prototype.hasOwnProperty;
|
|
298709
|
-
var ae$
|
|
298709
|
+
var ae$1 = function(e3) {
|
|
298710
298710
|
var n2 = this.__data__;
|
|
298711
298711
|
if (te$1) {
|
|
298712
298712
|
var t2 = n2[e3];
|
|
@@ -298729,7 +298729,7 @@ ${publicKeyStr}
|
|
|
298729
298729
|
this.set(r2[0], r2[1]);
|
|
298730
298730
|
}
|
|
298731
298731
|
}
|
|
298732
|
-
de$2.prototype.clear = re$
|
|
298732
|
+
de$2.prototype.clear = re$1, de$2.prototype.delete = oe$1, de$2.prototype.get = ae$1, de$2.prototype.has = ce$2, de$2.prototype.set = se$1;
|
|
298733
298733
|
var fe$2 = de$2;
|
|
298734
298734
|
var he$2 = function() {
|
|
298735
298735
|
this.size = 0, this.__data__ = { hash: new fe$2(), map: new (ne$1 || w$1)(), string: new fe$2() };
|
|
@@ -298738,22 +298738,22 @@ ${publicKeyStr}
|
|
|
298738
298738
|
var n2 = typeof e3;
|
|
298739
298739
|
return "string" == n2 || "number" == n2 || "symbol" == n2 || "boolean" == n2 ? "__proto__" !== e3 : null === e3;
|
|
298740
298740
|
};
|
|
298741
|
-
var ve$
|
|
298741
|
+
var ve$2 = function(e3, n2) {
|
|
298742
298742
|
var t2 = e3.__data__;
|
|
298743
298743
|
return le$1(n2) ? t2["string" == typeof n2 ? "string" : "hash"] : t2.map;
|
|
298744
298744
|
};
|
|
298745
298745
|
var pe$2 = function(e3) {
|
|
298746
|
-
var n2 = ve$
|
|
298746
|
+
var n2 = ve$2(this, e3).delete(e3);
|
|
298747
298747
|
return this.size -= n2 ? 1 : 0, n2;
|
|
298748
298748
|
};
|
|
298749
|
-
var ge$
|
|
298750
|
-
return ve$
|
|
298749
|
+
var ge$2 = function(e3) {
|
|
298750
|
+
return ve$2(this, e3).get(e3);
|
|
298751
298751
|
};
|
|
298752
298752
|
var ye$1 = function(e3) {
|
|
298753
|
-
return ve$
|
|
298753
|
+
return ve$2(this, e3).has(e3);
|
|
298754
298754
|
};
|
|
298755
298755
|
var be$1 = function(e3, n2) {
|
|
298756
|
-
var t2 = ve$
|
|
298756
|
+
var t2 = ve$2(this, e3), r2 = t2.size;
|
|
298757
298757
|
return t2.set(e3, n2), this.size += t2.size == r2 ? 0 : 1, this;
|
|
298758
298758
|
};
|
|
298759
298759
|
function me$2(e3) {
|
|
@@ -298763,7 +298763,7 @@ ${publicKeyStr}
|
|
|
298763
298763
|
this.set(r2[0], r2[1]);
|
|
298764
298764
|
}
|
|
298765
298765
|
}
|
|
298766
|
-
me$2.prototype.clear = he$2, me$2.prototype.delete = pe$2, me$2.prototype.get = ge$
|
|
298766
|
+
me$2.prototype.clear = he$2, me$2.prototype.delete = pe$2, me$2.prototype.get = ge$2, me$2.prototype.has = ye$1, me$2.prototype.set = be$1;
|
|
298767
298767
|
var we$1 = me$2;
|
|
298768
298768
|
var Ee = function(e3, n2) {
|
|
298769
298769
|
var t2 = this.__data__;
|
|
@@ -298845,7 +298845,7 @@ ${publicKeyStr}
|
|
|
298845
298845
|
return e3(n2);
|
|
298846
298846
|
};
|
|
298847
298847
|
}, We = d$1(function(e3, n2) {
|
|
298848
|
-
var t2 = n2 && !n2.nodeType && n2, r2 = t2 && e3 && !e3.nodeType && e3, o2 = r2 && r2.exports === t2 && N$
|
|
298848
|
+
var t2 = n2 && !n2.nodeType && n2, r2 = t2 && e3 && !e3.nodeType && e3, o2 = r2 && r2.exports === t2 && N$2.process, i2 = function() {
|
|
298849
298849
|
try {
|
|
298850
298850
|
var e4 = r2 && r2.require && r2.require("util").types;
|
|
298851
298851
|
return e4 || o2 && o2.binding && o2.binding("util");
|
|
@@ -372927,7 +372927,7 @@ ${indentData}`);
|
|
|
372927
372927
|
} else if ((3 === this.curArgs.length || 4 === this.curArgs.length) && "0" !== this.curNumber && "1" !== this.curNumber)
|
|
372928
372928
|
throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + a3 + '"');
|
|
372929
372929
|
}
|
|
372930
|
-
this.curArgs.push(u2), this.curArgs.length === N$
|
|
372930
|
+
this.curArgs.push(u2), this.curArgs.length === N$1[this.curCommandType] && (_$1.HORIZ_LINE_TO === this.curCommandType ? i2({ type: _$1.HORIZ_LINE_TO, relative: this.curCommandRelative, x: u2 }) : _$1.VERT_LINE_TO === this.curCommandType ? i2({ type: _$1.VERT_LINE_TO, relative: this.curCommandRelative, y: u2 }) : this.curCommandType === _$1.MOVE_TO || this.curCommandType === _$1.LINE_TO || this.curCommandType === _$1.SMOOTH_QUAD_TO ? (i2({ type: this.curCommandType, relative: this.curCommandRelative, x: this.curArgs[0], y: this.curArgs[1] }), _$1.MOVE_TO === this.curCommandType && (this.curCommandType = _$1.LINE_TO)) : this.curCommandType === _$1.CURVE_TO ? i2({ type: _$1.CURVE_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x2: this.curArgs[2], y2: this.curArgs[3], x: this.curArgs[4], y: this.curArgs[5] }) : this.curCommandType === _$1.SMOOTH_CURVE_TO ? i2({ type: _$1.SMOOTH_CURVE_TO, relative: this.curCommandRelative, x2: this.curArgs[0], y2: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === _$1.QUAD_TO ? i2({ type: _$1.QUAD_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === _$1.ARC && i2({ type: _$1.ARC, relative: this.curCommandRelative, rX: this.curArgs[0], rY: this.curArgs[1], xRot: this.curArgs[2], lArcFlag: this.curArgs[3], sweepFlag: this.curArgs[4], x: this.curArgs[5], y: this.curArgs[6] })), this.curNumber = "", this.curNumberHasExpDigits = false, this.curNumberHasExp = false, this.curNumberHasDecimal = false, this.canParseCommandOrComma = true;
|
|
372931
372931
|
}
|
|
372932
372932
|
if (!T$2(n2))
|
|
372933
372933
|
if ("," === n2 && this.canParseCommandOrComma)
|
|
@@ -373009,7 +373009,7 @@ ${indentData}`);
|
|
|
373009
373009
|
var r2 = new f$2(), e3 = [];
|
|
373010
373010
|
return r2.parse(t3, e3), r2.finish(e3), e3;
|
|
373011
373011
|
}, i2.CLOSE_PATH = 1, i2.MOVE_TO = 2, i2.HORIZ_LINE_TO = 4, i2.VERT_LINE_TO = 8, i2.LINE_TO = 16, i2.CURVE_TO = 32, i2.SMOOTH_CURVE_TO = 64, i2.QUAD_TO = 128, i2.SMOOTH_QUAD_TO = 256, i2.ARC = 512, i2.LINE_COMMANDS = i2.LINE_TO | i2.HORIZ_LINE_TO | i2.VERT_LINE_TO, i2.DRAWING_COMMANDS = i2.HORIZ_LINE_TO | i2.VERT_LINE_TO | i2.LINE_TO | i2.CURVE_TO | i2.SMOOTH_CURVE_TO | i2.QUAD_TO | i2.SMOOTH_QUAD_TO | i2.ARC, i2;
|
|
373012
|
-
}(l$1), N$
|
|
373012
|
+
}(l$1), N$1 = ((O$1 = {})[_$1.MOVE_TO] = 2, O$1[_$1.LINE_TO] = 2, O$1[_$1.HORIZ_LINE_TO] = 1, O$1[_$1.VERT_LINE_TO] = 1, O$1[_$1.CLOSE_PATH] = 0, O$1[_$1.QUAD_TO] = 4, O$1[_$1.SMOOTH_QUAD_TO] = 2, O$1[_$1.CURVE_TO] = 6, O$1[_$1.SMOOTH_CURVE_TO] = 4, O$1[_$1.ARC] = 7, O$1);
|
|
373013
373013
|
function _typeof$1(obj) {
|
|
373014
373014
|
"@babel/helpers - typeof";
|
|
373015
373015
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
@@ -474507,11 +474507,11 @@ ${this.attributes_.map(
|
|
|
474507
474507
|
});
|
|
474508
474508
|
const LayerTreeNode_vue_vue_type_style_index_0_lang = "";
|
|
474509
474509
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
474510
|
-
var
|
|
474510
|
+
var ce$1 = /* @__PURE__ */ vue.defineComponent({
|
|
474511
474511
|
name: "Close",
|
|
474512
474512
|
__name: "close",
|
|
474513
|
-
setup(
|
|
474514
|
-
return (
|
|
474513
|
+
setup(r2) {
|
|
474514
|
+
return (S2, c2) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
474515
474515
|
xmlns: "http://www.w3.org/2000/svg",
|
|
474516
474516
|
viewBox: "0 0 1024 1024"
|
|
474517
474517
|
}, [
|
|
@@ -474521,11 +474521,11 @@ ${this.attributes_.map(
|
|
|
474521
474521
|
})
|
|
474522
474522
|
]));
|
|
474523
474523
|
}
|
|
474524
|
-
}),
|
|
474524
|
+
}), de$1 = ce$1, ue$1 = /* @__PURE__ */ vue.defineComponent({
|
|
474525
474525
|
name: "FullScreen",
|
|
474526
474526
|
__name: "full-screen",
|
|
474527
|
-
setup(
|
|
474528
|
-
return (
|
|
474527
|
+
setup(r2) {
|
|
474528
|
+
return (S2, c2) => (vue.openBlock(), vue.createElementBlock("svg", {
|
|
474529
474529
|
xmlns: "http://www.w3.org/2000/svg",
|
|
474530
474530
|
viewBox: "0 0 1024 1024"
|
|
474531
474531
|
}, [
|
|
@@ -474535,8 +474535,8 @@ ${this.attributes_.map(
|
|
|
474535
474535
|
})
|
|
474536
474536
|
]));
|
|
474537
474537
|
}
|
|
474538
|
-
}),
|
|
474539
|
-
const
|
|
474538
|
+
}), fe$1 = ue$1;
|
|
474539
|
+
const he$1 = { class: "custom-dialog-header" }, me$1 = ["id"], pe$1 = { class: "custom-dialog-actions" }, ge$1 = {
|
|
474540
474540
|
key: 1,
|
|
474541
474541
|
class: "icon",
|
|
474542
474542
|
viewBox: "0 0 1025 1024",
|
|
@@ -474544,7 +474544,7 @@ ${this.attributes_.map(
|
|
|
474544
474544
|
xmlns: "http://www.w3.org/2000/svg",
|
|
474545
474545
|
width: "1em",
|
|
474546
474546
|
height: "1em"
|
|
474547
|
-
},
|
|
474547
|
+
}, ve$1 = ["onClick"], Y$1 = /* @__PURE__ */ vue.defineComponent({
|
|
474548
474548
|
__name: "EPlusResizeDialog",
|
|
474549
474549
|
props: {
|
|
474550
474550
|
resizable: { type: Boolean, default: true },
|
|
@@ -474555,11 +474555,11 @@ ${this.attributes_.map(
|
|
|
474555
474555
|
modalPenetrable: { type: Boolean, default: true },
|
|
474556
474556
|
closeOnClickModal: { type: Boolean, default: false }
|
|
474557
474557
|
},
|
|
474558
|
-
setup(
|
|
474559
|
-
const
|
|
474558
|
+
setup(r2, { expose: S2 }) {
|
|
474559
|
+
const c2 = r2, j2 = vue.computed(() => c2.showFullscreen !== false), i2 = vue.ref(), V2 = vue.useAttrs(), U2 = vue.useSlots(), d2 = vue.ref(false), g2 = vue.computed(() => {
|
|
474560
474560
|
const l2 = V2.modal;
|
|
474561
|
-
return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !
|
|
474562
|
-
}),
|
|
474561
|
+
return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !c2.modalPenetrable;
|
|
474562
|
+
}), a3 = {
|
|
474563
474563
|
width: "",
|
|
474564
474564
|
height: "",
|
|
474565
474565
|
left: "",
|
|
@@ -474567,33 +474567,33 @@ ${this.attributes_.map(
|
|
|
474567
474567
|
transform: "",
|
|
474568
474568
|
marginTop: "",
|
|
474569
474569
|
marginBottom: ""
|
|
474570
|
-
},
|
|
474571
|
-
|
|
474572
|
-
e3 && (e3.style.width =
|
|
474573
|
-
})) : (e3 && (
|
|
474570
|
+
}, $2 = () => {
|
|
474571
|
+
d2.value ? (d2.value = false, vue.nextTick(() => {
|
|
474572
|
+
e3 && (e3.style.width = a3.width, e3.style.height = a3.height, e3.style.left = a3.left, e3.style.top = a3.top, e3.style.transform = a3.transform, e3.style.marginTop = a3.marginTop, e3.style.marginBottom = a3.marginBottom);
|
|
474573
|
+
})) : (e3 && (a3.width = e3.style.width, a3.height = e3.style.height, a3.left = e3.style.left, a3.top = e3.style.top, a3.transform = e3.style.transform, a3.marginTop = e3.style.marginTop, a3.marginBottom = e3.style.marginBottom, e3.style.width = "", e3.style.height = "", e3.style.transform = "", e3.style.left = "", e3.style.top = "", e3.style.marginTop = "", e3.style.marginBottom = ""), d2.value = true), vue.nextTick(() => {
|
|
474574
474574
|
M5();
|
|
474575
474575
|
});
|
|
474576
474576
|
};
|
|
474577
|
-
|
|
474578
|
-
dialogRef:
|
|
474579
|
-
toggleFullscreen:
|
|
474580
|
-
isFullscreen:
|
|
474577
|
+
S2({
|
|
474578
|
+
dialogRef: i2,
|
|
474579
|
+
toggleFullscreen: $2,
|
|
474580
|
+
isFullscreen: d2
|
|
474581
474581
|
});
|
|
474582
|
-
let
|
|
474583
|
-
const
|
|
474582
|
+
let R2 = 0, H4 = 0, B3 = 0, C3 = 0, v5 = 0, y2 = 0, u2 = "", e3 = null;
|
|
474583
|
+
const G2 = ["n", "e", "s", "w", "ne", "nw", "se", "sw"], M5 = () => {
|
|
474584
474584
|
var s2;
|
|
474585
|
-
if (
|
|
474585
|
+
if (c2.resizable === false || d2.value) {
|
|
474586
474586
|
e3 && e3.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "none");
|
|
474587
474587
|
return;
|
|
474588
474588
|
}
|
|
474589
|
-
if (e3 && e3.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "block"), !
|
|
474589
|
+
if (e3 && e3.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "block"), !i2.value)
|
|
474590
474590
|
return;
|
|
474591
|
-
const l2 = ((s2 =
|
|
474592
|
-
!l2 || (e3 = l2.querySelector(".el-dialog") || l2, (!e3 || !e3.classList.contains("el-dialog")) && (l2.classList.contains("el-dialog") ? e3 = l2 : e3 = document.querySelector(".el-dialog")), !e3) || (getComputedStyle(e3).position === "static" && (e3.style.position = "relative"), e3.querySelector(".resize-handle")) ||
|
|
474591
|
+
const l2 = ((s2 = i2.value.dialogContentRef) == null ? void 0 : s2.$el) || i2.value.$el;
|
|
474592
|
+
!l2 || (e3 = l2.querySelector(".el-dialog") || l2, (!e3 || !e3.classList.contains("el-dialog")) && (l2.classList.contains("el-dialog") ? e3 = l2 : e3 = document.querySelector(".el-dialog")), !e3) || (getComputedStyle(e3).position === "static" && (e3.style.position = "relative"), e3.querySelector(".resize-handle")) || G2.forEach((t2) => {
|
|
474593
474593
|
const n2 = document.createElement("div");
|
|
474594
|
-
n2.className = `resize-handle resize-handle-${t2}`, n2.dataset.dir = t2, Object.assign(n2.style,
|
|
474594
|
+
n2.className = `resize-handle resize-handle-${t2}`, n2.dataset.dir = t2, Object.assign(n2.style, J2(t2)), n2.addEventListener("mousedown", (f2) => K2(f2, t2)), e3.appendChild(n2);
|
|
474595
474595
|
});
|
|
474596
|
-
},
|
|
474596
|
+
}, J2 = (l2) => {
|
|
474597
474597
|
const o2 = "10px", s2 = "-5px", t2 = {
|
|
474598
474598
|
position: "absolute",
|
|
474599
474599
|
zIndex: "100",
|
|
@@ -474602,72 +474602,88 @@ ${this.attributes_.map(
|
|
|
474602
474602
|
cursor: `${l2}-resize`
|
|
474603
474603
|
};
|
|
474604
474604
|
return l2.includes("n") && (t2.top = s2), l2.includes("s") && (t2.bottom = s2), l2.includes("w") && (t2.left = s2), l2.includes("e") && (t2.right = s2), l2 === "ne" && (t2.top = s2, t2.right = s2, t2.width = o2, t2.height = o2, t2.cursor = "ne-resize"), l2 === "nw" && (t2.top = s2, t2.left = s2, t2.width = o2, t2.height = o2, t2.cursor = "nw-resize"), l2 === "se" && (t2.bottom = s2, t2.right = s2, t2.width = o2, t2.height = o2, t2.cursor = "se-resize"), l2 === "sw" && (t2.bottom = s2, t2.left = s2, t2.width = o2, t2.height = o2, t2.cursor = "sw-resize"), t2;
|
|
474605
|
-
},
|
|
474605
|
+
}, K2 = (l2, o2) => {
|
|
474606
474606
|
if (l2.preventDefault(), l2.stopPropagation(), !e3)
|
|
474607
474607
|
return;
|
|
474608
|
-
u2 = o2,
|
|
474608
|
+
u2 = o2, R2 = l2.clientX, H4 = l2.clientY;
|
|
474609
474609
|
const s2 = window.getComputedStyle(e3);
|
|
474610
|
-
|
|
474610
|
+
B3 = parseInt(s2.width), C3 = parseInt(s2.height), v5 = parseInt(s2.left) || 0, y2 = parseInt(s2.top) || 0;
|
|
474611
474611
|
const t2 = e3.getBoundingClientRect();
|
|
474612
474612
|
if (s2.position !== "absolute" && s2.position !== "fixed") {
|
|
474613
|
-
const n2 = e3.offsetParent,
|
|
474614
|
-
e3.style.position = "absolute", e3.style.margin = "0", e3.style.left = `${
|
|
474613
|
+
const n2 = e3.offsetParent, f2 = n2 ? n2.getBoundingClientRect() : { left: 0, top: 0 }, w2 = t2.left - f2.left, _2 = t2.top - f2.top;
|
|
474614
|
+
e3.style.position = "absolute", e3.style.margin = "0", e3.style.left = `${w2}px`, e3.style.top = `${_2}px`, v5 = w2, y2 = _2;
|
|
474615
474615
|
} else
|
|
474616
|
-
|
|
474617
|
-
document.addEventListener("mousemove", P6), document.addEventListener("mouseup",
|
|
474616
|
+
v5 = parseInt(s2.left), y2 = parseInt(s2.top);
|
|
474617
|
+
document.addEventListener("mousemove", P6), document.addEventListener("mouseup", T2);
|
|
474618
474618
|
}, P6 = (l2) => {
|
|
474619
474619
|
if (!e3)
|
|
474620
474620
|
return;
|
|
474621
|
-
const o2 = l2.clientX -
|
|
474622
|
-
let t2 =
|
|
474623
|
-
const
|
|
474624
|
-
if (u2.includes("e") && (t2 = Math.max(
|
|
474625
|
-
const
|
|
474626
|
-
|
|
474621
|
+
const o2 = l2.clientX - R2, s2 = l2.clientY - H4;
|
|
474622
|
+
let t2 = B3, n2 = C3, f2 = v5, w2 = y2;
|
|
474623
|
+
const _2 = c2.minWidth || 200, I2 = c2.minHeight || 150;
|
|
474624
|
+
if (u2.includes("e") && (t2 = Math.max(_2, B3 + o2)), u2.includes("s") && (n2 = Math.max(I2, C3 + s2)), u2.includes("w")) {
|
|
474625
|
+
const z2 = B3 - o2;
|
|
474626
|
+
z2 >= _2 && (t2 = z2, f2 = v5 + o2);
|
|
474627
474627
|
}
|
|
474628
474628
|
if (u2.includes("n")) {
|
|
474629
|
-
const
|
|
474630
|
-
|
|
474629
|
+
const z2 = C3 - s2;
|
|
474630
|
+
z2 >= I2 && (n2 = z2, w2 = y2 + s2);
|
|
474631
474631
|
}
|
|
474632
|
-
e3.style.width = `${t2}px`, e3.style.height = `${n2}px`, (u2.includes("w") || u2.includes("n")) && (e3.style.left = `${
|
|
474633
|
-
},
|
|
474634
|
-
document.removeEventListener("mousemove", P6), document.removeEventListener("mouseup",
|
|
474632
|
+
e3.style.width = `${t2}px`, e3.style.height = `${n2}px`, (u2.includes("w") || u2.includes("n")) && (e3.style.left = `${f2}px`, e3.style.top = `${w2}px`);
|
|
474633
|
+
}, T2 = () => {
|
|
474634
|
+
document.removeEventListener("mousemove", P6), document.removeEventListener("mouseup", T2);
|
|
474635
474635
|
};
|
|
474636
|
-
|
|
474636
|
+
vue.watch(() => V2.modelValue, (l2) => {
|
|
474637
474637
|
l2 && vue.nextTick(() => {
|
|
474638
|
-
M5();
|
|
474638
|
+
M5(), D2();
|
|
474639
|
+
});
|
|
474640
|
+
}), vue.watch(() => g2.value, () => {
|
|
474641
|
+
vue.nextTick(() => {
|
|
474642
|
+
D2();
|
|
474639
474643
|
});
|
|
474640
|
-
})
|
|
474644
|
+
});
|
|
474645
|
+
const D2 = () => {
|
|
474646
|
+
var s2;
|
|
474647
|
+
if (!i2.value)
|
|
474648
|
+
return;
|
|
474649
|
+
const l2 = ((s2 = i2.value.dialogContentRef) == null ? void 0 : s2.$el) || i2.value.$el;
|
|
474650
|
+
if (!l2)
|
|
474651
|
+
return;
|
|
474652
|
+
let o2 = l2.closest(".el-overlay");
|
|
474653
|
+
o2 || (o2 = l2.closest(".el-overlay-dialog")), o2 && (g2.value ? o2.classList.remove("e-plus-modal-hidden-overlay") : o2.classList.add("e-plus-modal-hidden-overlay"));
|
|
474654
|
+
};
|
|
474655
|
+
return (l2, o2) => (vue.openBlock(), vue.createBlock(vue.unref(ElDialog), vue.mergeProps({
|
|
474641
474656
|
ref_key: "dialogRef",
|
|
474642
|
-
ref:
|
|
474643
|
-
class: "e-plus-resize-dialog"
|
|
474657
|
+
ref: i2,
|
|
474658
|
+
class: ["e-plus-resize-dialog", { "is-modal-hidden": !g2.value }]
|
|
474644
474659
|
}, l2.$attrs, {
|
|
474645
|
-
modal:
|
|
474646
|
-
"close-on-click-modal":
|
|
474647
|
-
draggable:
|
|
474648
|
-
fullscreen:
|
|
474660
|
+
modal: g2.value,
|
|
474661
|
+
"close-on-click-modal": r2.closeOnClickModal,
|
|
474662
|
+
draggable: r2.draggable,
|
|
474663
|
+
fullscreen: d2.value,
|
|
474649
474664
|
"show-close": false
|
|
474650
474665
|
}), vue.createSlots({
|
|
474651
474666
|
header: vue.withCtx(({ close: s2, titleId: t2, titleClass: n2 }) => [
|
|
474652
|
-
vue.createElementVNode("div",
|
|
474667
|
+
vue.createElementVNode("div", he$1, [
|
|
474668
|
+
vue.createTextVNode(vue.toDisplayString(g2.value) + " ", 1),
|
|
474653
474669
|
vue.createElementVNode("span", {
|
|
474654
474670
|
id: t2,
|
|
474655
474671
|
class: vue.normalizeClass(n2)
|
|
474656
|
-
}, vue.toDisplayString(l2.$attrs.title), 11,
|
|
474657
|
-
vue.createElementVNode("div",
|
|
474658
|
-
|
|
474672
|
+
}, vue.toDisplayString(l2.$attrs.title), 11, me$1),
|
|
474673
|
+
vue.createElementVNode("div", pe$1, [
|
|
474674
|
+
j2.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
474659
474675
|
key: 0,
|
|
474660
474676
|
class: "custom-header-btn",
|
|
474661
|
-
onClick:
|
|
474677
|
+
onClick: $2
|
|
474662
474678
|
}, [
|
|
474663
474679
|
vue.createVNode(vue.unref(ElIcon), { size: "18" }, {
|
|
474664
474680
|
default: vue.withCtx(() => [
|
|
474665
|
-
|
|
474681
|
+
d2.value ? (vue.openBlock(), vue.createElementBlock("svg", ge$1, [...o2[0] || (o2[0] = [
|
|
474666
474682
|
vue.createElementVNode("path", {
|
|
474667
474683
|
d: "M222.392033 1024V801.607967H0v-60.262562h282.654595v282.654595z m521.502942 0V741.345405H1025.622454v60.262562H804.041648v222.392033z m-743.431417-741.693074v-60.262562h222.392033V0.463558h60.262562v281.843368z m743.431417 0V0.463558h60.262562v221.580806H1025.622454v60.262562z",
|
|
474668
474684
|
fill: "currentColor"
|
|
474669
474685
|
}, null, -1)
|
|
474670
|
-
])])) : (vue.openBlock(), vue.createBlock(vue.unref(
|
|
474686
|
+
])])) : (vue.openBlock(), vue.createBlock(vue.unref(fe$1), { key: 0 }))
|
|
474671
474687
|
]),
|
|
474672
474688
|
_: 1
|
|
474673
474689
|
})
|
|
@@ -474679,27 +474695,27 @@ ${this.attributes_.map(
|
|
|
474679
474695
|
}, [
|
|
474680
474696
|
vue.createVNode(vue.unref(ElIcon), { size: "20" }, {
|
|
474681
474697
|
default: vue.withCtx(() => [
|
|
474682
|
-
vue.createVNode(vue.unref(
|
|
474698
|
+
vue.createVNode(vue.unref(de$1))
|
|
474683
474699
|
]),
|
|
474684
474700
|
_: 1
|
|
474685
474701
|
})
|
|
474686
|
-
], 8,
|
|
474702
|
+
], 8, ve$1)) : vue.createCommentVNode("", true)
|
|
474687
474703
|
])
|
|
474688
474704
|
])
|
|
474689
474705
|
]),
|
|
474690
474706
|
_: 2
|
|
474691
474707
|
}, [
|
|
474692
|
-
vue.renderList(vue.unref(
|
|
474708
|
+
vue.renderList(vue.unref(U2), (s2, t2) => ({
|
|
474693
474709
|
name: t2,
|
|
474694
474710
|
fn: vue.withCtx((n2) => [
|
|
474695
474711
|
vue.renderSlot(l2.$slots, t2, vue.normalizeProps(vue.guardReactiveProps(n2 || {})))
|
|
474696
474712
|
])
|
|
474697
474713
|
}))
|
|
474698
|
-
]), 1040, ["modal", "close-on-click-modal", "draggable", "fullscreen"]));
|
|
474714
|
+
]), 1040, ["class", "modal", "close-on-click-modal", "draggable", "fullscreen"]));
|
|
474699
474715
|
}
|
|
474700
474716
|
});
|
|
474701
|
-
|
|
474702
|
-
|
|
474717
|
+
Y$1.install = (r2) => {
|
|
474718
|
+
r2.component("EPlusResizeDialog", Y$1);
|
|
474703
474719
|
};
|
|
474704
474720
|
const style = "";
|
|
474705
474721
|
const _hoisted_1$f = { class: "flex-1 overflow-y-auto p-4" };
|
|
@@ -475477,7 +475493,7 @@ ${this.attributes_.map(
|
|
|
475477
475493
|
const _component_el_tree = vue.resolveComponent("el-tree");
|
|
475478
475494
|
const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
|
|
475479
475495
|
const _component_el_tabs = vue.resolveComponent("el-tabs");
|
|
475480
|
-
return vue.openBlock(), vue.createBlock(vue.unref(
|
|
475496
|
+
return vue.openBlock(), vue.createBlock(vue.unref(Y$1), vue.mergeProps({
|
|
475481
475497
|
modelValue: visible.value,
|
|
475482
475498
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event)
|
|
475483
475499
|
}, dialogProps2.value, { onClose: handleClose }), vue.createSlots({
|
|
@@ -499144,7 +499160,7 @@ ${this.attributes_.map(
|
|
|
499144
499160
|
app.component("OlBaseLayerSwitcher", OlBaseLayerSwitcher);
|
|
499145
499161
|
app.component("CustomOpenlayer", _sfc_main$b);
|
|
499146
499162
|
app.component("CustomDialog", _sfc_main$9);
|
|
499147
|
-
app.component("EPlusDialog",
|
|
499163
|
+
app.component("EPlusDialog", Y$1);
|
|
499148
499164
|
app.component("SvgIcon", _sfc_main$a);
|
|
499149
499165
|
};
|
|
499150
499166
|
const index$3 = {
|
|
@@ -499152,7 +499168,7 @@ ${this.attributes_.map(
|
|
|
499152
499168
|
OlMap: _sfc_main$b,
|
|
499153
499169
|
CustomOpenlayer: _sfc_main$b,
|
|
499154
499170
|
CustomDialog: _sfc_main$9,
|
|
499155
|
-
EPlusDialog:
|
|
499171
|
+
EPlusDialog: Y$1,
|
|
499156
499172
|
SvgIcon: _sfc_main$a
|
|
499157
499173
|
};
|
|
499158
499174
|
const version$1 = "1.0.0";
|
package/lib/style.css
CHANGED
|
@@ -1130,7 +1130,7 @@ label {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
|
-
.resize-handle{-webkit-user-select:none;user-select:none}.custom-dialog-actions{display:flex;align-items:center}.custom-dialog-header{display:flex;justify-content:space-between;align-items:center;width:100%}.custom-dialog-actions .custom-header-btn{position:static;margin-left:10px;font-size:16px;width:20px;height:20px;line-height:1;border:none;background:transparent;cursor:pointer;padding:0;color:var(--el-color-info)}.custom-dialog-actions .custom-header-btn:hover{color:var(--el-color-primary)}.custom-dialog-actions .custom-header-btn svg{width:100%;height:100%;vertical-align:middle}.e-plus-resize-dialog{display:flex;flex-direction:column;max-height:85vh;overflow:hidden;margin-bottom:0}.e-plus-resize-dialog.is-fullscreen{max-height:100vh;height:100vh!important;margin:0!important}.e-plus-resize-dialog .el-dialog__header,.e-plus-resize-dialog .el-dialog__footer{flex-shrink:0}.e-plus-resize-dialog .el-dialog__body{flex:1;overflow:auto;min-height:0}
|
|
1133
|
+
.el-modal-dialog{pointer-events:none}.resize-handle{-webkit-user-select:none;user-select:none}.custom-dialog-actions{display:flex;align-items:center}.custom-dialog-header{display:flex;justify-content:space-between;align-items:center;width:100%}.custom-dialog-actions .custom-header-btn{position:static;margin-left:10px;font-size:16px;width:20px;height:20px;line-height:1;border:none;background:transparent;cursor:pointer;padding:0;color:var(--el-color-info)}.custom-dialog-actions .custom-header-btn:hover{color:var(--el-color-primary)}.custom-dialog-actions .custom-header-btn svg{width:100%;height:100%;vertical-align:middle}.e-plus-resize-dialog{display:flex;flex-direction:column;max-height:85vh;overflow:hidden;margin-bottom:0}.e-plus-resize-dialog.is-fullscreen{max-height:100vh;height:100vh!important;margin:0!important}.e-plus-resize-dialog .el-dialog__header,.e-plus-resize-dialog .el-dialog__footer{flex-shrink:0}.e-plus-resize-dialog .el-dialog__body{flex:1;overflow:auto;min-height:0}.e-plus-modal-hidden-overlay,.e-plus-modal-hidden-overlay .el-overlay-dialog{pointer-events:none!important}.e-plus-resize-dialog.is-modal-hidden{pointer-events:auto!important}
|
|
1134
1134
|
|
|
1135
1135
|
.layer-dialog {
|
|
1136
1136
|
/* 全局样式面板样式 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-openlayers-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.87",
|
|
4
4
|
"description": "A Vue 3 plugin for OpenLayers with custom components and utilities",
|
|
5
5
|
"main": "lib/index.umd.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@element-plus/icons-vue": "^2.3.2",
|
|
51
51
|
"@supermapgis/iclient-ol": "^12.0.0-r",
|
|
52
|
-
"e-plus-dialog-vue3": "^1.0.
|
|
52
|
+
"e-plus-dialog-vue3": "^1.0.15",
|
|
53
53
|
"element-plus": "^2.11.1",
|
|
54
54
|
"ol": "^10.6.1",
|
|
55
55
|
"proj4": "^2.9.2",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
74
74
|
"@vue/eslint-config-typescript": "^11.0.3",
|
|
75
75
|
"@vue/tsconfig": "^0.4.0",
|
|
76
|
-
"e-plus-dialog-vue3": "^1.0.
|
|
76
|
+
"e-plus-dialog-vue3": "^1.0.15",
|
|
77
77
|
"element-plus": "^2.13.0",
|
|
78
78
|
"eslint": "^8.45.0",
|
|
79
79
|
"eslint-plugin-vue": "^9.17.0",
|