ym-giswidget-2d 1.0.10 → 1.0.12

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,4 +1,3 @@
1
- import "./index.css";
2
1
  import { withInstall } from "../../utils/wthInstall.js";
3
2
  import _sfc_main from "./Clear.vue.js";
4
3
  const Clear = withInstall(_sfc_main);
@@ -1,4 +1,3 @@
1
- import "./index.css";
2
1
  import { withInstall } from "../../utils/wthInstall.js";
3
2
  import _sfc_main from "./Draw.vue.js";
4
3
  const Draw = withInstall(_sfc_main);
@@ -9,9 +9,9 @@ import { defineComponent, reactive, ref, onMounted, onUnmounted, withDirectives,
9
9
  import DraggablePanel from "../../panel/DraggablePanel.vue.js";
10
10
  import FeatureManager from "ym-giscomm-2d/feature/FeatureManager";
11
11
  import { toKml } from "ym-giscomm-2d/conver/kml";
12
- import GeoJSON from "../../node_modules/.pnpm/ol@9.2.4/node_modules/ol/format/GeoJSON.js";
12
+ import GeoJSON from "ol/format/GeoJSON";
13
13
  import { downloadBlob } from "ym-giscomm-2d/utils/UrlUtil";
14
- import JSZip from "../../node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js";
14
+ import JSZip from "jszip";
15
15
  import { exportFeatures } from "../../http/SpaceFile.js";
16
16
  import { ElLoading, ElMessage } from "element-plus";
17
17
  import { base64ToBlob } from "ym-giscomm-2d/utils/StringUtil";
@@ -1,4 +1,3 @@
1
- import "./index.css";
2
1
  import { withInstall } from "../../utils/wthInstall.js";
3
2
  import _sfc_main from "./Identify.vue.js";
4
3
  const Identify = withInstall(_sfc_main);
@@ -7,8 +7,8 @@ import { ElLoading, ElMessage } from "element-plus";
7
7
  import { importFile } from "../../http/SpaceFile.js";
8
8
  import { getEsriSpatialReference } from "ym-giscomm-2d/utils/EsriUtil";
9
9
  import Feature from "ym-giscomm-2d/entity/Feature";
10
- import WKT from "../../node_modules/.pnpm/ol@9.2.4/node_modules/ol/format/WKT.js";
11
- import GeoJSON from "../../node_modules/.pnpm/ol@9.2.4/node_modules/ol/format/GeoJSON.js";
10
+ import WKT from "ol/format/WKT";
11
+ import GeoJSON from "ol/format/GeoJSON";
12
12
  import { getSelectPointStyle, getSelectLineStyle, getSelectPolygonStyle } from "ym-giscomm-2d/style/StyleManager";
13
13
  import { union } from "ym-giscomm-2d/utils/GeometryUtil";
14
14
  import { toGeoJSON } from "ym-giscomm-2d/conver/kml";
@@ -1,4 +1,3 @@
1
- import "./index.css";
2
1
  import { withInstall } from "../../utils/wthInstall.js";
3
2
  import _sfc_main from "./Import.vue.js";
4
3
  const Import = withInstall(_sfc_main);
@@ -7,7 +7,7 @@ import "element-plus/es/components/select/style/css";
7
7
  import "element-plus/es/components/option/style/css";
8
8
  import { defineComponent, reactive, ref, watch, onMounted, onUnmounted, withDirectives, createBlock, openBlock, withCtx, createElementVNode, createVNode, unref, toDisplayString, createElementBlock, Fragment, renderList, vShow } from "vue";
9
9
  import DraggablePanel from "../../panel/DraggablePanel.vue.js";
10
- import Overlay from "../../node_modules/.pnpm/ol@9.2.4/node_modules/ol/Overlay.js";
10
+ import Overlay from "ol/Overlay";
11
11
  import { getLayerFields } from "../../http/LayerField.js";
12
12
  import { ElMessage } from "element-plus";
13
13
  import FeatureManager from "ym-giscomm-2d/feature/FeatureManager";
@@ -1,4 +1,5 @@
1
1
  import "./index.css";
2
+ import "./index2.css";
2
3
  import { withInstall } from "../../utils/wthInstall.js";
3
4
  import _Popup from "./Popup.vue.js";
4
5
  const Popup = withInstall(_Popup);
@@ -1,4 +1,3 @@
1
- import "./index.css";
2
1
  import { withInstall } from "../../utils/wthInstall.js";
3
2
  import _sfc_main from "./Select.vue.js";
4
3
  const Select = withInstall(_sfc_main);
@@ -1,4 +1,3 @@
1
- import "./index.css";
2
1
  import { withInstall } from "../../utils/wthInstall.js";
3
2
  import _sfc_main from "./SwipeLayer.vue.js";
4
3
  const SwipeLayer = withInstall(_sfc_main);
package/http/Axios.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { ElMessage } from "element-plus";
2
- import "../node_modules/.pnpm/axios@1.8.3/node_modules/axios/index.js";
3
- import axios from "../node_modules/.pnpm/axios@1.8.3/node_modules/axios/lib/axios.js";
2
+ import axios from "axios";
4
3
  let http = axios.create();
5
4
  http.interceptors.response.use((res) => {
6
5
  if (res.status !== 200) {
package/http/SpaceFile.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { postFormData } from "./Axios.js";
2
2
  import Config from "../config/Config.js";
3
- import WKT from "../node_modules/.pnpm/ol@9.2.4/node_modules/ol/format/WKT.js";
3
+ import WKT from "ol/format/WKT";
4
4
  async function importFile(file, fileWkid, toWkid) {
5
5
  if (!Config.GisServiceUrl) {
6
6
  return [];
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "ym-giswidget-2d",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "dependencies": {
8
+ "@element-plus/icons-vue": "^2.3.1",
8
9
  "axios": "^1.7.2",
10
+ "element-plus": "^2.9.0",
9
11
  "jszip": "^3.10.1",
10
12
  "ol": "^9.2.4",
11
- "@element-plus/icons-vue": "^2.3.1",
12
- "element-plus": "^2.9.0",
13
13
  "ym-giscomm-2d": "1.0.9"
14
14
  }
15
15
  }
@@ -1,6 +0,0 @@
1
- function commonjsRequire(path) {
2
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
3
- }
4
- export {
5
- commonjsRequire
6
- };
@@ -1,8 +0,0 @@
1
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
2
- function getDefaultExportFromCjs(x) {
3
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4
- }
5
- export {
6
- commonjsGlobal,
7
- getDefaultExportFromCjs
8
- };
@@ -1,4 +0,0 @@
1
- var jszip_min = { exports: {} };
2
- export {
3
- jszip_min as __module
4
- };