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.
- package/components/clear/index.js +0 -1
- package/components/draw/index.js +0 -1
- package/components/export/Export.vue2.js +2 -2
- package/components/identify/index.js +0 -1
- package/components/import/Import.vue.js +2 -2
- package/components/import/index.js +0 -1
- package/components/popup/Popup.vue2.js +1 -1
- package/components/popup/index.js +1 -0
- package/components/select/index.js +0 -1
- package/components/swipe-layer/index.js +0 -1
- package/http/Axios.js +1 -2
- package/http/SpaceFile.js +1 -1
- package/package.json +3 -3
- package/_virtual/_commonjs-dynamic-modules.js +0 -6
- package/_virtual/_commonjsHelpers.js +0 -8
- package/_virtual/jszip.min.js +0 -4
package/components/draw/index.js
CHANGED
|
@@ -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 "
|
|
12
|
+
import GeoJSON from "ol/format/GeoJSON";
|
|
13
13
|
import { downloadBlob } from "ym-giscomm-2d/utils/UrlUtil";
|
|
14
|
-
import JSZip from "
|
|
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";
|
|
@@ -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 "
|
|
11
|
-
import GeoJSON from "
|
|
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";
|
|
@@ -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 "
|
|
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";
|
package/http/Axios.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ElMessage } from "element-plus";
|
|
2
|
-
import "
|
|
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 "
|
|
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.
|
|
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
|
-
};
|
package/_virtual/jszip.min.js
DELETED