vue-openlayers-plugin 1.0.87 → 1.0.88

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.
@@ -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-b5b0a094.mjs";
2
+ import { l as layerEventBus } from "./index-30ef3c66.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-b5b0a094.mjs";
2
+ import { T as TooltipHelper } from "./index-30ef3c66.mjs";
3
3
  import "ol";
4
4
  const _hoisted_1 = { class: "coordinate-content" };
5
5
  const _hoisted_2 = { class: "format-selection" };
@@ -1,4 +1,4 @@
1
- import { a1 as _sfc_main } from "./index-b5b0a094.mjs";
1
+ import { a1 as _sfc_main } from "./index-30ef3c66.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { e as _sfc_main } from "./index-b5b0a094.mjs";
1
+ import { h as _sfc_main } from "./index-30ef3c66.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { h as _sfc_main } from "./index-b5b0a094.mjs";
1
+ import { e as _sfc_main } from "./index-30ef3c66.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
@@ -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-b5b0a094.mjs";
2
+ import { f as formatMeasurementResult, g as getUnitByType, d as _export_sfc } from "./index-30ef3c66.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-b5b0a094.mjs";
3
- import { E as ElMessageBox } from "./index-5bc5966e.mjs";
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-30ef3c66.mjs";
3
+ import { E as ElMessageBox } from "./index-365a4c9c.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-b5b0a094.mjs";
3
- import { E as ElMessageBox } from "./index-5bc5966e.mjs";
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-30ef3c66.mjs";
3
+ import { E as ElMessageBox } from "./index-365a4c9c.mjs";
4
4
  import "ol";
5
5
  const _hoisted_1 = { class: "bookmarks-content" };
6
6
  const _hoisted_2 = { class: "toolbar" };
@@ -110869,7 +110869,7 @@ function N$3(A5, g2) {
110869
110869
  function r$2(A5) {
110870
110870
  return y$7(A5)[3];
110871
110871
  }
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 };
110872
+ var Y$2 = { 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$3, extname: r$2, default: Y$3 }));
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$2 }));
110886
110886
  !function(A5, g2) {
110887
110887
  var I2 = function(g3) {
110888
110888
  g3 = void 0 !== g3 ? g3 : {};
@@ -297490,10 +297490,10 @@ var H$1 = function(e8) {
297490
297490
  };
297491
297491
  var W$1 = /^\[object .+?Constructor\]$/;
297492
297492
  var q$1 = Function.prototype;
297493
- var Y$2 = Object.prototype;
297493
+ var Y$1 = Object.prototype;
297494
297494
  var J$1 = q$1.toString;
297495
- var X$1 = Y$2.hasOwnProperty;
297496
- var K$1 = RegExp("^" + J$1.call(X$1).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
297495
+ var X$2 = Y$1.hasOwnProperty;
297496
+ var K$1 = RegExp("^" + J$1.call(X$2).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));
297499
297499
  };
@@ -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$1 = function() {
297509
+ var re$2 = function() {
297510
297510
  this.__data__ = te$1 ? te$1(null) : {}, this.size = 0;
297511
297511
  };
297512
297512
  var oe$1 = function(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$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;
297541
+ de$2.prototype.clear = re$2, 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$2 = function(e8, n2) {
297550
+ var ve$1 = 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$2(this, e8).delete(e8);
297555
+ var n2 = ve$1(this, e8).delete(e8);
297556
297556
  return this.size -= n2 ? 1 : 0, n2;
297557
297557
  };
297558
297558
  var ge$2 = function(e8) {
297559
- return ve$2(this, e8).get(e8);
297559
+ return ve$1(this, e8).get(e8);
297560
297560
  };
297561
297561
  var ye$1 = function(e8) {
297562
- return ve$2(this, e8).has(e8);
297562
+ return ve$1(this, e8).has(e8);
297563
297563
  };
297564
297564
  var be$1 = function(e8, n2) {
297565
- var t3 = ve$2(this, e8), r2 = t3.size;
297565
+ var t3 = ve$1(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) {
@@ -468745,16 +468745,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
468745
468745
  }
468746
468746
  });
468747
468747
  const defaultComponents = {
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"),
468748
+ "measurement": () => import("./MeasurementDialog-48a220c5.mjs"),
468749
+ "basemap": () => import("./BasemapPanel-ca055f97.mjs"),
468750
+ "print": () => import("./MapPrintDialog-cde4a9cc.mjs"),
468751
+ "layer-panel": () => import("./LayerPanel-467aaf4a.mjs"),
468752
+ "coordinate": () => import("./CoordinateLocationDialog-bcb93549.mjs"),
468753
468753
  "region-navigation": () => import("./RegionNavigationDialog-0808549f.mjs"),
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")
468754
+ "my-markers": () => import("./MyMarkersDialog-6cd29bfa.mjs"),
468755
+ "view-bookmarks": () => import("./ViewBookmarksDialog-2e388ac1.mjs"),
468756
+ "map-drawing": () => import("./index-9a7511e2.mjs"),
468757
+ "filter-panel": () => import("./FilterPanel-5493db0e.mjs")
468758
468758
  };
468759
468759
  const _DialogRegistry = class _DialogRegistry {
468760
468760
  constructor() {
@@ -472963,7 +472963,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
472963
472963
  }
472964
472964
  });
472965
472965
  /*! Element Plus Icons Vue v2.3.2 */
472966
- var ce$1 = /* @__PURE__ */ defineComponent({
472966
+ var re$1 = /* @__PURE__ */ defineComponent({
472967
472967
  name: "Close",
472968
472968
  __name: "close",
472969
472969
  setup(r2) {
@@ -472978,8 +472978,8 @@ var ce$1 = /* @__PURE__ */ defineComponent({
472978
472978
  ]));
472979
472979
  }
472980
472980
  });
472981
- var de$1 = ce$1;
472982
- var ue$1 = /* @__PURE__ */ defineComponent({
472981
+ var ce$1 = re$1;
472982
+ var de$1 = /* @__PURE__ */ defineComponent({
472983
472983
  name: "FullScreen",
472984
472984
  __name: "full-screen",
472985
472985
  setup(r2) {
@@ -472994,11 +472994,11 @@ var ue$1 = /* @__PURE__ */ defineComponent({
472994
472994
  ]));
472995
472995
  }
472996
472996
  });
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 = {
472997
+ var ue$1 = de$1;
472998
+ const fe$1 = { class: "custom-dialog-header" };
472999
+ const he$1 = ["id"];
473000
+ const me$1 = { class: "custom-dialog-actions" };
473001
+ const pe$1 = {
473002
473002
  key: 1,
473003
473003
  class: "icon",
473004
473004
  viewBox: "0 0 1025 1024",
@@ -473007,8 +473007,8 @@ const ge$1 = {
473007
473007
  width: "1em",
473008
473008
  height: "1em"
473009
473009
  };
473010
- const ve$1 = ["onClick"];
473011
- const Y$1 = /* @__PURE__ */ defineComponent({
473010
+ const ge$1 = ["onClick"];
473011
+ const X$1 = /* @__PURE__ */ defineComponent({
473012
473012
  __name: "EPlusResizeDialog",
473013
473013
  props: {
473014
473014
  resizable: { type: Boolean, default: true },
@@ -473020,8 +473020,8 @@ const Y$1 = /* @__PURE__ */ defineComponent({
473020
473020
  closeOnClickModal: { type: Boolean, default: false }
473021
473021
  },
473022
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
- const l2 = V2.modal;
473023
+ const c2 = r2, Y2 = computed(() => c2.showFullscreen !== false), i = ref(), $2 = useAttrs$1(), j2 = useSlots(), d2 = ref(false), x2 = computed(() => {
473024
+ const l2 = $2.modal;
473025
473025
  return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !c2.modalPenetrable;
473026
473026
  }), a3 = {
473027
473027
  width: "",
@@ -473031,7 +473031,7 @@ const Y$1 = /* @__PURE__ */ defineComponent({
473031
473031
  transform: "",
473032
473032
  marginTop: "",
473033
473033
  marginBottom: ""
473034
- }, $2 = () => {
473034
+ }, V2 = () => {
473035
473035
  d2.value ? (d2.value = false, nextTick(() => {
473036
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
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(() => {
@@ -473040,11 +473040,11 @@ const Y$1 = /* @__PURE__ */ defineComponent({
473040
473040
  };
473041
473041
  S2({
473042
473042
  dialogRef: i,
473043
- toggleFullscreen: $2,
473043
+ toggleFullscreen: V2,
473044
473044
  isFullscreen: d2
473045
473045
  });
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 = () => {
473046
+ let R2 = 0, H4 = 0, B3 = 0, C3 = 0, g2 = 0, v5 = 0, u2 = "", e8 = null;
473047
+ const U2 = ["n", "e", "s", "w", "ne", "nw", "se", "sw"], M5 = () => {
473048
473048
  var s2;
473049
473049
  if (c2.resizable === false || d2.value) {
473050
473050
  e8 && e8.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "none");
@@ -473053,11 +473053,11 @@ const Y$1 = /* @__PURE__ */ defineComponent({
473053
473053
  if (e8 && e8.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "block"), !i.value)
473054
473054
  return;
473055
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) => {
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")) || U2.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, J2(t3)), n2.addEventListener("mousedown", (f2) => K2(f2, t3)), e8.appendChild(n2);
473058
+ n2.className = `resize-handle resize-handle-${t3}`, n2.dataset.dir = t3, Object.assign(n2.style, G2(t3)), n2.addEventListener("mousedown", (f2) => J2(f2, t3)), e8.appendChild(n2);
473059
473059
  });
473060
- }, J2 = (l2) => {
473060
+ }, G2 = (l2) => {
473061
473061
  const o2 = "10px", s2 = "-5px", t3 = {
473062
473062
  position: "absolute",
473063
473063
  zIndex: "100",
@@ -473066,42 +473066,42 @@ const Y$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
- }, K2 = (l2, o2) => {
473069
+ }, J2 = (l2, o2) => {
473070
473070
  if (l2.preventDefault(), l2.stopPropagation(), !e8)
473071
473071
  return;
473072
473072
  u2 = o2, R2 = l2.clientX, H4 = l2.clientY;
473073
473073
  const s2 = window.getComputedStyle(e8);
473074
- B3 = parseInt(s2.width), C3 = parseInt(s2.height), v5 = parseInt(s2.left) || 0, y2 = parseInt(s2.top) || 0;
473074
+ B3 = parseInt(s2.width), C3 = parseInt(s2.height), g2 = parseInt(s2.left) || 0, v5 = parseInt(s2.top) || 0;
473075
473075
  const t3 = e8.getBoundingClientRect();
473076
473076
  if (s2.position !== "absolute" && s2.position !== "fixed") {
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;
473077
+ const n2 = e8.offsetParent, f2 = n2 ? n2.getBoundingClientRect() : { left: 0, top: 0 }, y2 = t3.left - f2.left, w2 = t3.top - f2.top;
473078
+ e8.style.position = "absolute", e8.style.margin = "0", e8.style.left = `${y2}px`, e8.style.top = `${w2}px`, g2 = y2, v5 = w2;
473079
473079
  } else
473080
- v5 = parseInt(s2.left), y2 = parseInt(s2.top);
473080
+ g2 = parseInt(s2.left), v5 = parseInt(s2.top);
473081
473081
  document.addEventListener("mousemove", P6), document.addEventListener("mouseup", T2);
473082
473082
  }, P6 = (l2) => {
473083
473083
  if (!e8)
473084
473084
  return;
473085
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);
473086
+ let t3 = B3, n2 = C3, f2 = g2, y2 = v5;
473087
+ const w2 = c2.minWidth || 200, I2 = c2.minHeight || 150;
473088
+ if (u2.includes("e") && (t3 = Math.max(w2, B3 + o2)), u2.includes("s") && (n2 = Math.max(I2, C3 + s2)), u2.includes("w")) {
473089
+ const _2 = B3 - o2;
473090
+ _2 >= w2 && (t3 = _2, f2 = g2 + o2);
473091
473091
  }
473092
473092
  if (u2.includes("n")) {
473093
- const z2 = C3 - s2;
473094
- z2 >= I2 && (n2 = z2, w2 = y2 + s2);
473093
+ const _2 = C3 - s2;
473094
+ _2 >= I2 && (n2 = _2, y2 = v5 + s2);
473095
473095
  }
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`);
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 = `${y2}px`);
473097
473097
  }, T2 = () => {
473098
473098
  document.removeEventListener("mousemove", P6), document.removeEventListener("mouseup", T2);
473099
473099
  };
473100
- watch(() => V2.modelValue, (l2) => {
473100
+ watch(() => $2.modelValue, (l2) => {
473101
473101
  l2 && nextTick(() => {
473102
473102
  M5(), D2();
473103
473103
  });
473104
- }), watch(() => g2.value, () => {
473104
+ }), watch(() => x2.value, () => {
473105
473105
  nextTick(() => {
473106
473106
  D2();
473107
473107
  });
@@ -473114,40 +473114,39 @@ const Y$1 = /* @__PURE__ */ defineComponent({
473114
473114
  if (!l2)
473115
473115
  return;
473116
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"));
473117
+ o2 || (o2 = l2.closest(".el-overlay-dialog")), o2 && (x2.value ? o2.classList.remove("e-plus-modal-hidden-overlay") : o2.classList.add("e-plus-modal-hidden-overlay"));
473118
473118
  };
473119
473119
  return (l2, o2) => (openBlock(), createBlock(unref(ElDialog), mergeProps({
473120
473120
  ref_key: "dialogRef",
473121
473121
  ref: i,
473122
- class: ["e-plus-resize-dialog", { "is-modal-hidden": !g2.value }]
473122
+ class: ["e-plus-resize-dialog", { "is-modal-hidden": !x2.value }]
473123
473123
  }, l2.$attrs, {
473124
- modal: g2.value,
473124
+ modal: x2.value,
473125
473125
  "close-on-click-modal": r2.closeOnClickModal,
473126
473126
  draggable: r2.draggable,
473127
473127
  fullscreen: d2.value,
473128
473128
  "show-close": false
473129
473129
  }), createSlots({
473130
473130
  header: withCtx(({ close: s2, titleId: t3, titleClass: n2 }) => [
473131
- createElementVNode("div", he$1, [
473132
- createTextVNode(toDisplayString(g2.value) + " ", 1),
473131
+ createElementVNode("div", fe$1, [
473133
473132
  createElementVNode("span", {
473134
473133
  id: t3,
473135
473134
  class: normalizeClass(n2)
473136
- }, toDisplayString(l2.$attrs.title), 11, me$1),
473137
- createElementVNode("div", pe$1, [
473138
- j2.value ? (openBlock(), createElementBlock("div", {
473135
+ }, toDisplayString(l2.$attrs.title), 11, he$1),
473136
+ createElementVNode("div", me$1, [
473137
+ Y2.value ? (openBlock(), createElementBlock("div", {
473139
473138
  key: 0,
473140
473139
  class: "custom-header-btn",
473141
- onClick: $2
473140
+ onClick: V2
473142
473141
  }, [
473143
473142
  createVNode$1(unref(ElIcon), { size: "18" }, {
473144
473143
  default: withCtx(() => [
473145
- d2.value ? (openBlock(), createElementBlock("svg", ge$1, [...o2[0] || (o2[0] = [
473144
+ d2.value ? (openBlock(), createElementBlock("svg", pe$1, [...o2[0] || (o2[0] = [
473146
473145
  createElementVNode("path", {
473147
473146
  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",
473148
473147
  fill: "currentColor"
473149
473148
  }, null, -1)
473150
- ])])) : (openBlock(), createBlock(unref(fe$1), { key: 0 }))
473149
+ ])])) : (openBlock(), createBlock(unref(ue$1), { key: 0 }))
473151
473150
  ]),
473152
473151
  _: 1
473153
473152
  })
@@ -473159,17 +473158,17 @@ const Y$1 = /* @__PURE__ */ defineComponent({
473159
473158
  }, [
473160
473159
  createVNode$1(unref(ElIcon), { size: "20" }, {
473161
473160
  default: withCtx(() => [
473162
- createVNode$1(unref(de$1))
473161
+ createVNode$1(unref(ce$1))
473163
473162
  ]),
473164
473163
  _: 1
473165
473164
  })
473166
- ], 8, ve$1)) : createCommentVNode("", true)
473165
+ ], 8, ge$1)) : createCommentVNode("", true)
473167
473166
  ])
473168
473167
  ])
473169
473168
  ]),
473170
473169
  _: 2
473171
473170
  }, [
473172
- renderList(unref(U2), (s2, t3) => ({
473171
+ renderList(unref(j2), (s2, t3) => ({
473173
473172
  name: t3,
473174
473173
  fn: withCtx((n2) => [
473175
473174
  renderSlot(l2.$slots, t3, normalizeProps(guardReactiveProps(n2 || {})))
@@ -473178,8 +473177,8 @@ const Y$1 = /* @__PURE__ */ defineComponent({
473178
473177
  ]), 1040, ["class", "modal", "close-on-click-modal", "draggable", "fullscreen"]));
473179
473178
  }
473180
473179
  });
473181
- Y$1.install = (r2) => {
473182
- r2.component("EPlusResizeDialog", Y$1);
473180
+ X$1.install = (r2) => {
473181
+ r2.component("EPlusResizeDialog", X$1);
473183
473182
  };
473184
473183
  const _hoisted_1$6 = { class: "flex-1 overflow-y-auto p-4" };
473185
473184
  const _hoisted_2$5 = { class: "pb-2 flex items-center justify-between" };
@@ -473956,7 +473955,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
473956
473955
  const _component_el_tree = resolveComponent("el-tree");
473957
473956
  const _component_el_tab_pane = resolveComponent("el-tab-pane");
473958
473957
  const _component_el_tabs = resolveComponent("el-tabs");
473959
- return openBlock(), createBlock(unref(Y$1), mergeProps({
473958
+ return openBlock(), createBlock(unref(X$1), mergeProps({
473960
473959
  modelValue: visible.value,
473961
473960
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event)
473962
473961
  }, dialogProps2.value, { onClose: handleClose }), createSlots({
@@ -488790,7 +488789,7 @@ function(t3) {
488790
488789
  */
488791
488790
  function(t3) {
488792
488791
  function e8() {
488793
- return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-1fe2c0bd.mjs")).catch(function(t4) {
488792
+ return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-051b071d.mjs")).catch(function(t4) {
488794
488793
  return Promise.reject(new Error("Could not load canvg: " + t4));
488795
488794
  }).then(function(t4) {
488796
488795
  return t4.default ? t4.default : t4;
@@ -497674,7 +497673,7 @@ const install = (app) => {
497674
497673
  app.component("OlBaseLayerSwitcher", OlBaseLayerSwitcher);
497675
497674
  app.component("CustomOpenlayer", _sfc_main$2);
497676
497675
  app.component("CustomDialog", _sfc_main);
497677
- app.component("EPlusDialog", Y$1);
497676
+ app.component("EPlusDialog", X$1);
497678
497677
  app.component("SvgIcon", _sfc_main$1);
497679
497678
  };
497680
497679
  const index = {
@@ -497682,7 +497681,7 @@ const index = {
497682
497681
  OlMap: _sfc_main$2,
497683
497682
  CustomOpenlayer: _sfc_main$2,
497684
497683
  CustomDialog: _sfc_main,
497685
- EPlusDialog: Y$1,
497684
+ EPlusDialog: X$1,
497686
497685
  SvgIcon: _sfc_main$1
497687
497686
  };
497688
497687
  const version = "1.0.0";
@@ -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-b5b0a094.mjs";
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-30ef3c66.mjs";
3
3
  const isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
4
4
  const FOCUSABLE_CHILDREN = "_trap-focus-children";
5
5
  const FOCUS_STACK = [];
@@ -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-b5b0a094.mjs";
2
+ import { d as _export_sfc, $ as DrawingManager, a0 as close_default } from "./index-30ef3c66.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-b5b0a094.mjs";
1
+ import { c as commonjsGlobal, R as RGBColor, r as requestAnimationFrame, _ as _asyncToGenerator, a as _, p as processCanvasRGBA, b as _defineProperty } from "./index-30ef3c66.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-b5b0a094.mjs";
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-30ef3c66.mjs";
2
2
  import "vue";
3
3
  import "ol";
4
4
  export {
package/lib/index.umd.js CHANGED
@@ -112128,7 +112128,7 @@ For more detail, please visit: ${ref}
112128
112128
  function r$2(A5) {
112129
112129
  return y$7(A5)[3];
112130
112130
  }
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 };
112131
+ var Y$2 = { 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$3, extname: r$2, default: Y$3 }));
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$2 }));
112144
112144
  !function(A5, g2) {
112145
112145
  var I2 = function(g3) {
112146
112146
  g3 = void 0 !== g3 ? g3 : {};
@@ -298688,7 +298688,7 @@ ${publicKeyStr}
298688
298688
  }
298689
298689
  }
298690
298690
  return "";
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.*?") + "$");
298691
+ }, W$1 = /^\[object .+?Constructor\]$/, q$1 = Function.prototype, Y$1 = Object.prototype, J$1 = q$1.toString, X$2 = Y$1.hasOwnProperty, K$1 = RegExp("^" + J$1.call(X$2).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,7 +298699,7 @@ ${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$1 = function() {
298702
+ var re$2 = function() {
298703
298703
  this.__data__ = te$1 ? te$1(null) : {}, this.size = 0;
298704
298704
  };
298705
298705
  var oe$1 = function(e3) {
@@ -298729,7 +298729,7 @@ ${publicKeyStr}
298729
298729
  this.set(r2[0], r2[1]);
298730
298730
  }
298731
298731
  }
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;
298732
+ de$2.prototype.clear = re$2, 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$2 = function(e3, n2) {
298741
+ var ve$1 = 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$2(this, e3).delete(e3);
298746
+ var n2 = ve$1(this, e3).delete(e3);
298747
298747
  return this.size -= n2 ? 1 : 0, n2;
298748
298748
  };
298749
298749
  var ge$2 = function(e3) {
298750
- return ve$2(this, e3).get(e3);
298750
+ return ve$1(this, e3).get(e3);
298751
298751
  };
298752
298752
  var ye$1 = function(e3) {
298753
- return ve$2(this, e3).has(e3);
298753
+ return ve$1(this, e3).has(e3);
298754
298754
  };
298755
298755
  var be$1 = function(e3, n2) {
298756
- var t2 = ve$2(this, e3), r2 = t2.size;
298756
+ var t2 = ve$1(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) {
@@ -474507,7 +474507,7 @@ ${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 ce$1 = /* @__PURE__ */ vue.defineComponent({
474510
+ var re$1 = /* @__PURE__ */ vue.defineComponent({
474511
474511
  name: "Close",
474512
474512
  __name: "close",
474513
474513
  setup(r2) {
@@ -474521,7 +474521,7 @@ ${this.attributes_.map(
474521
474521
  })
474522
474522
  ]));
474523
474523
  }
474524
- }), de$1 = ce$1, ue$1 = /* @__PURE__ */ vue.defineComponent({
474524
+ }), ce$1 = re$1, de$1 = /* @__PURE__ */ vue.defineComponent({
474525
474525
  name: "FullScreen",
474526
474526
  __name: "full-screen",
474527
474527
  setup(r2) {
@@ -474535,8 +474535,8 @@ ${this.attributes_.map(
474535
474535
  })
474536
474536
  ]));
474537
474537
  }
474538
- }), fe$1 = ue$1;
474539
- const he$1 = { class: "custom-dialog-header" }, me$1 = ["id"], pe$1 = { class: "custom-dialog-actions" }, ge$1 = {
474538
+ }), ue$1 = de$1;
474539
+ const fe$1 = { class: "custom-dialog-header" }, he$1 = ["id"], me$1 = { class: "custom-dialog-actions" }, pe$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
- }, ve$1 = ["onClick"], Y$1 = /* @__PURE__ */ vue.defineComponent({
474547
+ }, ge$1 = ["onClick"], X$1 = /* @__PURE__ */ vue.defineComponent({
474548
474548
  __name: "EPlusResizeDialog",
474549
474549
  props: {
474550
474550
  resizable: { type: Boolean, default: true },
@@ -474556,8 +474556,8 @@ ${this.attributes_.map(
474556
474556
  closeOnClickModal: { type: Boolean, default: false }
474557
474557
  },
474558
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
- const l2 = V2.modal;
474559
+ const c2 = r2, Y2 = vue.computed(() => c2.showFullscreen !== false), i2 = vue.ref(), $2 = vue.useAttrs(), j2 = vue.useSlots(), d2 = vue.ref(false), x2 = vue.computed(() => {
474560
+ const l2 = $2.modal;
474561
474561
  return l2 !== void 0 ? l2 === "" ? true : l2 === "false" ? false : l2 === "true" ? true : !!l2 : !c2.modalPenetrable;
474562
474562
  }), a3 = {
474563
474563
  width: "",
@@ -474567,7 +474567,7 @@ ${this.attributes_.map(
474567
474567
  transform: "",
474568
474568
  marginTop: "",
474569
474569
  marginBottom: ""
474570
- }, $2 = () => {
474570
+ }, V2 = () => {
474571
474571
  d2.value ? (d2.value = false, vue.nextTick(() => {
474572
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
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(() => {
@@ -474576,11 +474576,11 @@ ${this.attributes_.map(
474576
474576
  };
474577
474577
  S2({
474578
474578
  dialogRef: i2,
474579
- toggleFullscreen: $2,
474579
+ toggleFullscreen: V2,
474580
474580
  isFullscreen: d2
474581
474581
  });
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 = () => {
474582
+ let R2 = 0, H4 = 0, B3 = 0, C3 = 0, g2 = 0, v5 = 0, u2 = "", e3 = null;
474583
+ const U2 = ["n", "e", "s", "w", "ne", "nw", "se", "sw"], M5 = () => {
474584
474584
  var s2;
474585
474585
  if (c2.resizable === false || d2.value) {
474586
474586
  e3 && e3.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "none");
@@ -474589,11 +474589,11 @@ ${this.attributes_.map(
474589
474589
  if (e3 && e3.querySelectorAll(".resize-handle").forEach((n2) => n2.style.display = "block"), !i2.value)
474590
474590
  return;
474591
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) => {
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")) || U2.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, J2(t2)), n2.addEventListener("mousedown", (f2) => K2(f2, t2)), e3.appendChild(n2);
474594
+ n2.className = `resize-handle resize-handle-${t2}`, n2.dataset.dir = t2, Object.assign(n2.style, G2(t2)), n2.addEventListener("mousedown", (f2) => J2(f2, t2)), e3.appendChild(n2);
474595
474595
  });
474596
- }, J2 = (l2) => {
474596
+ }, G2 = (l2) => {
474597
474597
  const o2 = "10px", s2 = "-5px", t2 = {
474598
474598
  position: "absolute",
474599
474599
  zIndex: "100",
@@ -474602,42 +474602,42 @@ ${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
- }, K2 = (l2, o2) => {
474605
+ }, J2 = (l2, o2) => {
474606
474606
  if (l2.preventDefault(), l2.stopPropagation(), !e3)
474607
474607
  return;
474608
474608
  u2 = o2, R2 = l2.clientX, H4 = l2.clientY;
474609
474609
  const s2 = window.getComputedStyle(e3);
474610
- B3 = parseInt(s2.width), C3 = parseInt(s2.height), v5 = parseInt(s2.left) || 0, y2 = parseInt(s2.top) || 0;
474610
+ B3 = parseInt(s2.width), C3 = parseInt(s2.height), g2 = parseInt(s2.left) || 0, v5 = parseInt(s2.top) || 0;
474611
474611
  const t2 = e3.getBoundingClientRect();
474612
474612
  if (s2.position !== "absolute" && s2.position !== "fixed") {
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;
474613
+ const n2 = e3.offsetParent, f2 = n2 ? n2.getBoundingClientRect() : { left: 0, top: 0 }, y2 = t2.left - f2.left, w2 = t2.top - f2.top;
474614
+ e3.style.position = "absolute", e3.style.margin = "0", e3.style.left = `${y2}px`, e3.style.top = `${w2}px`, g2 = y2, v5 = w2;
474615
474615
  } else
474616
- v5 = parseInt(s2.left), y2 = parseInt(s2.top);
474616
+ g2 = parseInt(s2.left), v5 = parseInt(s2.top);
474617
474617
  document.addEventListener("mousemove", P6), document.addEventListener("mouseup", T2);
474618
474618
  }, P6 = (l2) => {
474619
474619
  if (!e3)
474620
474620
  return;
474621
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);
474622
+ let t2 = B3, n2 = C3, f2 = g2, y2 = v5;
474623
+ const w2 = c2.minWidth || 200, I2 = c2.minHeight || 150;
474624
+ if (u2.includes("e") && (t2 = Math.max(w2, B3 + o2)), u2.includes("s") && (n2 = Math.max(I2, C3 + s2)), u2.includes("w")) {
474625
+ const _2 = B3 - o2;
474626
+ _2 >= w2 && (t2 = _2, f2 = g2 + o2);
474627
474627
  }
474628
474628
  if (u2.includes("n")) {
474629
- const z2 = C3 - s2;
474630
- z2 >= I2 && (n2 = z2, w2 = y2 + s2);
474629
+ const _2 = C3 - s2;
474630
+ _2 >= I2 && (n2 = _2, y2 = v5 + s2);
474631
474631
  }
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`);
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 = `${y2}px`);
474633
474633
  }, T2 = () => {
474634
474634
  document.removeEventListener("mousemove", P6), document.removeEventListener("mouseup", T2);
474635
474635
  };
474636
- vue.watch(() => V2.modelValue, (l2) => {
474636
+ vue.watch(() => $2.modelValue, (l2) => {
474637
474637
  l2 && vue.nextTick(() => {
474638
474638
  M5(), D2();
474639
474639
  });
474640
- }), vue.watch(() => g2.value, () => {
474640
+ }), vue.watch(() => x2.value, () => {
474641
474641
  vue.nextTick(() => {
474642
474642
  D2();
474643
474643
  });
@@ -474650,40 +474650,39 @@ ${this.attributes_.map(
474650
474650
  if (!l2)
474651
474651
  return;
474652
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"));
474653
+ o2 || (o2 = l2.closest(".el-overlay-dialog")), o2 && (x2.value ? o2.classList.remove("e-plus-modal-hidden-overlay") : o2.classList.add("e-plus-modal-hidden-overlay"));
474654
474654
  };
474655
474655
  return (l2, o2) => (vue.openBlock(), vue.createBlock(vue.unref(ElDialog), vue.mergeProps({
474656
474656
  ref_key: "dialogRef",
474657
474657
  ref: i2,
474658
- class: ["e-plus-resize-dialog", { "is-modal-hidden": !g2.value }]
474658
+ class: ["e-plus-resize-dialog", { "is-modal-hidden": !x2.value }]
474659
474659
  }, l2.$attrs, {
474660
- modal: g2.value,
474660
+ modal: x2.value,
474661
474661
  "close-on-click-modal": r2.closeOnClickModal,
474662
474662
  draggable: r2.draggable,
474663
474663
  fullscreen: d2.value,
474664
474664
  "show-close": false
474665
474665
  }), vue.createSlots({
474666
474666
  header: vue.withCtx(({ close: s2, titleId: t2, titleClass: n2 }) => [
474667
- vue.createElementVNode("div", he$1, [
474668
- vue.createTextVNode(vue.toDisplayString(g2.value) + " ", 1),
474667
+ vue.createElementVNode("div", fe$1, [
474669
474668
  vue.createElementVNode("span", {
474670
474669
  id: t2,
474671
474670
  class: vue.normalizeClass(n2)
474672
- }, vue.toDisplayString(l2.$attrs.title), 11, me$1),
474673
- vue.createElementVNode("div", pe$1, [
474674
- j2.value ? (vue.openBlock(), vue.createElementBlock("div", {
474671
+ }, vue.toDisplayString(l2.$attrs.title), 11, he$1),
474672
+ vue.createElementVNode("div", me$1, [
474673
+ Y2.value ? (vue.openBlock(), vue.createElementBlock("div", {
474675
474674
  key: 0,
474676
474675
  class: "custom-header-btn",
474677
- onClick: $2
474676
+ onClick: V2
474678
474677
  }, [
474679
474678
  vue.createVNode(vue.unref(ElIcon), { size: "18" }, {
474680
474679
  default: vue.withCtx(() => [
474681
- d2.value ? (vue.openBlock(), vue.createElementBlock("svg", ge$1, [...o2[0] || (o2[0] = [
474680
+ d2.value ? (vue.openBlock(), vue.createElementBlock("svg", pe$1, [...o2[0] || (o2[0] = [
474682
474681
  vue.createElementVNode("path", {
474683
474682
  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",
474684
474683
  fill: "currentColor"
474685
474684
  }, null, -1)
474686
- ])])) : (vue.openBlock(), vue.createBlock(vue.unref(fe$1), { key: 0 }))
474685
+ ])])) : (vue.openBlock(), vue.createBlock(vue.unref(ue$1), { key: 0 }))
474687
474686
  ]),
474688
474687
  _: 1
474689
474688
  })
@@ -474695,17 +474694,17 @@ ${this.attributes_.map(
474695
474694
  }, [
474696
474695
  vue.createVNode(vue.unref(ElIcon), { size: "20" }, {
474697
474696
  default: vue.withCtx(() => [
474698
- vue.createVNode(vue.unref(de$1))
474697
+ vue.createVNode(vue.unref(ce$1))
474699
474698
  ]),
474700
474699
  _: 1
474701
474700
  })
474702
- ], 8, ve$1)) : vue.createCommentVNode("", true)
474701
+ ], 8, ge$1)) : vue.createCommentVNode("", true)
474703
474702
  ])
474704
474703
  ])
474705
474704
  ]),
474706
474705
  _: 2
474707
474706
  }, [
474708
- vue.renderList(vue.unref(U2), (s2, t2) => ({
474707
+ vue.renderList(vue.unref(j2), (s2, t2) => ({
474709
474708
  name: t2,
474710
474709
  fn: vue.withCtx((n2) => [
474711
474710
  vue.renderSlot(l2.$slots, t2, vue.normalizeProps(vue.guardReactiveProps(n2 || {})))
@@ -474714,8 +474713,8 @@ ${this.attributes_.map(
474714
474713
  ]), 1040, ["class", "modal", "close-on-click-modal", "draggable", "fullscreen"]));
474715
474714
  }
474716
474715
  });
474717
- Y$1.install = (r2) => {
474718
- r2.component("EPlusResizeDialog", Y$1);
474716
+ X$1.install = (r2) => {
474717
+ r2.component("EPlusResizeDialog", X$1);
474719
474718
  };
474720
474719
  const style = "";
474721
474720
  const _hoisted_1$f = { class: "flex-1 overflow-y-auto p-4" };
@@ -475493,7 +475492,7 @@ ${this.attributes_.map(
475493
475492
  const _component_el_tree = vue.resolveComponent("el-tree");
475494
475493
  const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
475495
475494
  const _component_el_tabs = vue.resolveComponent("el-tabs");
475496
- return vue.openBlock(), vue.createBlock(vue.unref(Y$1), vue.mergeProps({
475495
+ return vue.openBlock(), vue.createBlock(vue.unref(X$1), vue.mergeProps({
475497
475496
  modelValue: visible.value,
475498
475497
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => visible.value = $event)
475499
475498
  }, dialogProps2.value, { onClose: handleClose }), vue.createSlots({
@@ -499160,7 +499159,7 @@ ${this.attributes_.map(
499160
499159
  app.component("OlBaseLayerSwitcher", OlBaseLayerSwitcher);
499161
499160
  app.component("CustomOpenlayer", _sfc_main$b);
499162
499161
  app.component("CustomDialog", _sfc_main$9);
499163
- app.component("EPlusDialog", Y$1);
499162
+ app.component("EPlusDialog", X$1);
499164
499163
  app.component("SvgIcon", _sfc_main$a);
499165
499164
  };
499166
499165
  const index$3 = {
@@ -499168,7 +499167,7 @@ ${this.attributes_.map(
499168
499167
  OlMap: _sfc_main$b,
499169
499168
  CustomOpenlayer: _sfc_main$b,
499170
499169
  CustomDialog: _sfc_main$9,
499171
- EPlusDialog: Y$1,
499170
+ EPlusDialog: X$1,
499172
499171
  SvgIcon: _sfc_main$a
499173
499172
  };
499174
499173
  const version$1 = "1.0.0";
package/lib/style.css CHANGED
@@ -448,7 +448,6 @@
448
448
  }
449
449
  .search-input {
450
450
  width: 100%;
451
- padding: 8px 12px;
452
451
  border: 1px solid #d9d9d9;
453
452
  border-radius: 4px;
454
453
  font-size: 14px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-openlayers-plugin",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
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,8 +49,8 @@
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.15",
53
- "element-plus": "^2.11.1",
52
+ "e-plus-dialog-vue3": "^1.0.17",
53
+ "element-plus": "^2.13.0",
54
54
  "ol": "^10.6.1",
55
55
  "proj4": "^2.9.2",
56
56
  "vue": "^3.3.0"
@@ -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.15",
76
+ "e-plus-dialog-vue3": "^1.0.17",
77
77
  "element-plus": "^2.13.0",
78
78
  "eslint": "^8.45.0",
79
79
  "eslint-plugin-vue": "^9.17.0",