ym-giswidget-2d 1.0.15 → 1.0.17
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/Clear.vue.d.ts +1 -1
- package/components/clear/Clear.vue.js +3 -1
- package/components/clear/index.d.ts +2 -2
- package/components/draw/Draw.vue.d.ts +1 -1
- package/components/draw/Draw.vue.js +1 -1
- package/components/draw/index.d.ts +2 -2
- package/components/export/Export.vue.d.ts +1 -1
- package/components/export/Export.vue.js +1 -1
- package/components/export/Export.vue2.js +4 -4
- package/components/export/index.css +1 -1
- package/components/export/index.d.ts +2 -2
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue.d.ts +1 -1
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue.js +1 -1
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue2.js +1 -1
- package/components/horizontally-top-toolbar/index.css +9 -9
- package/components/identify/Identify.vue.d.ts +1 -1
- package/components/identify/Identify.vue.js +3 -3
- package/components/identify/index.d.ts +2 -2
- package/components/import/Import.vue.d.ts +1 -1
- package/components/import/Import.vue.js +5 -5
- package/components/import/index.d.ts +2 -2
- package/components/layer-tree/LayerTree.vue.d.ts +16 -22
- package/components/layer-tree/LayerTree.vue.js +1 -1
- package/components/layer-tree/LayerTree.vue2.js +2 -2
- package/components/layer-tree/index.css +11 -11
- package/components/layer-tree/index.d.ts +4 -4
- package/components/map-view/MapView.vue.d.ts +444 -0
- package/components/map-view/MapView.vue.js +52 -0
- package/components/map-view/MapView.vue2.js +4 -0
- package/components/map-view/index.d.ts +453 -0
- package/components/map-view/index.js +7 -0
- package/components/mouse-position/MousePositon.vue.d.ts +17 -0
- package/components/mouse-position/MousePositon.vue.js +7 -0
- package/components/mouse-position/MousePositon.vue2.js +47 -0
- package/components/mouse-position/index.css +19 -0
- package/components/mouse-position/index.d.ts +17 -0
- package/components/mouse-position/index.js +8 -0
- package/components/multi-screen/MultiScreen.vue.d.ts +35 -12
- package/components/multi-screen/MultiScreen.vue.js +1 -1
- package/components/multi-screen/MultiScreen.vue2.js +41 -12
- package/components/multi-screen/index.css +3 -3
- package/components/multi-screen/index.d.ts +47 -16
- package/components/multi-screen-panel/PanelMultiScreen.vue.js +1 -1
- package/components/multi-screen-panel/PanelMultiScreen.vue2.js +5 -3
- package/components/multi-screen-panel/index.css +1 -1
- package/components/popup/Popup.vue.d.ts +2 -2
- package/components/popup/Popup.vue.js +1 -1
- package/components/popup/Popup.vue2.js +1 -1
- package/components/popup/index.css +10 -10
- package/components/popup/index.d.ts +4 -4
- package/components/scale-line/ScaleLine.vue.d.ts +11 -0
- package/components/scale-line/ScaleLine.vue.js +7 -0
- package/components/scale-line/ScaleLine.vue2.js +47 -0
- package/components/scale-line/index.css +19 -0
- package/components/scale-line/index.d.ts +12 -0
- package/components/scale-line/index.js +8 -0
- package/components/select/Select.vue.d.ts +1 -1
- package/components/select/Select.vue.js +4 -4
- package/components/select/index.d.ts +2 -2
- package/components/swipe-layer/SwipeLayer.vue.d.ts +1 -1
- package/components/swipe-layer/SwipeLayer.vue.js +1 -1
- package/components/swipe-layer/index.d.ts +2 -2
- package/components/toc-card/TocCard.vue.d.ts +2 -2
- package/components/toc-card/TocCard.vue.js +1 -1
- package/components/toc-card/index.css +1 -1
- package/components/toc-card/index.d.ts +4 -4
- package/css/index.css +14 -2
- package/http/LayerField.js +1 -1
- package/http/layerField.d.ts +1 -1
- package/index.d.ts +3 -0
- package/index.js +6 -0
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, onMounted } from "vue";
|
|
2
|
+
import FeatureManager from "ym-gis-2d/feature/FeatureManager";
|
|
2
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
4
|
__name: "Clear",
|
|
4
5
|
props: {
|
|
@@ -7,7 +8,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
7
8
|
setup(__props) {
|
|
8
9
|
const props = __props;
|
|
9
10
|
onMounted(() => {
|
|
10
|
-
props.map
|
|
11
|
+
const featureManager = new FeatureManager(props.map);
|
|
12
|
+
featureManager.clearTempFeatures();
|
|
11
13
|
});
|
|
12
14
|
return (_ctx, _cache) => {
|
|
13
15
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const Clear: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
map: import('ym-
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
3
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
-
map: import('ym-
|
|
4
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
5
5
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
|
|
6
6
|
export default Clear;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const Draw: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
map: import('ym-
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
3
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
-
map: import('ym-
|
|
4
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
5
5
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
|
|
6
6
|
export default Draw;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./Export.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _Export = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _Export = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b476454e"]]);
|
|
5
5
|
export {
|
|
6
6
|
_Export as default
|
|
7
7
|
};
|
|
@@ -7,14 +7,14 @@ import "element-plus/es/components/select/style/css";
|
|
|
7
7
|
import "element-plus/es/components/option/style/css";
|
|
8
8
|
import { defineComponent, reactive, ref, onMounted, onUnmounted, withDirectives, createBlock, openBlock, withCtx, createVNode, unref, createCommentVNode, createElementBlock, Fragment, renderList, vShow } from "vue";
|
|
9
9
|
import DraggablePanel from "../../panel/DraggablePanel.vue.js";
|
|
10
|
-
import FeatureManager from "ym-
|
|
11
|
-
import { toKml } from "ym-
|
|
10
|
+
import FeatureManager from "ym-gis-2d/feature/FeatureManager";
|
|
11
|
+
import { toKml } from "ym-gis-2d/conver/kml";
|
|
12
12
|
import GeoJSON from "ol/format/GeoJSON";
|
|
13
|
-
import { downloadBlob } from "ym-
|
|
13
|
+
import { downloadBlob } from "ym-gis-2d/utils/UrlUtil";
|
|
14
14
|
import JSZip from "jszip";
|
|
15
15
|
import { exportFeatures } from "../../http/SpaceFile.js";
|
|
16
16
|
import { ElLoading, ElMessage } from "element-plus";
|
|
17
|
-
import { base64ToBlob } from "ym-
|
|
17
|
+
import { base64ToBlob } from "ym-gis-2d/utils/StringUtil";
|
|
18
18
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
19
|
__name: "Export",
|
|
20
20
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const Export: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
map: import('ym-
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
3
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
4
|
activeInteraction: (...args: any[]) => void;
|
|
5
5
|
}, string, import('vue').PublicProps, Readonly<{
|
|
6
|
-
map: import('ym-
|
|
6
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
7
7
|
}> & Readonly<{
|
|
8
8
|
onActiveInteraction?: ((...args: any[]) => any) | undefined;
|
|
9
9
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./HorizontallyTopToolbar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _HorizontallyTopToolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _HorizontallyTopToolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d5f93128"]]);
|
|
5
5
|
export {
|
|
6
6
|
_HorizontallyTopToolbar as default
|
|
7
7
|
};
|
|
@@ -128,7 +128,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
128
|
},
|
|
129
129
|
emits: ["layerInitLoaded"],
|
|
130
130
|
setup(__props, { emit: __emit }) {
|
|
131
|
-
const modules = /* @__PURE__ */ Object.assign({ "../clear/Clear.vue": () => import("../clear/Clear.vue2.js"), "../clear/index.ts": () => import("../clear/index.js"), "../draw/Draw.vue": () => import("../draw/Draw.vue2.js"), "../draw/index.ts": () => import("../draw/index.js"), "../export/Export.vue": () => import("../export/Export.vue.js"), "../export/index.ts": () => import("../export/index.js"), "./HorizontallyTopToolbar.vue": () => import("./HorizontallyTopToolbar.vue.js"), "./index.ts": () => import("./index.js"), "../identify/Identify.vue": () => import("../identify/Identify.vue2.js"), "../identify/index.ts": () => import("../identify/index.js"), "../import/Import.vue": () => import("../import/Import.vue2.js"), "../import/index.ts": () => import("../import/index.js"), "../layer-tree/LayerTree.vue": () => import("../layer-tree/LayerTree.vue.js"), "../layer-tree/index.ts": () => import("../layer-tree/index.js"), "../multi-screen-panel/PanelMultiScreen.vue": () => import("../multi-screen-panel/PanelMultiScreen.vue.js"), "../multi-screen-panel/index.ts": () => import("../multi-screen-panel/index.js"), "../multi-screen/MultiScreen.vue": () => import("../multi-screen/MultiScreen.vue.js"), "../multi-screen/index.ts": () => import("../multi-screen/index.js"), "../popup/Popup.vue": () => import("../popup/Popup.vue.js"), "../popup/index.ts": () => import("../popup/index.js"), "../select/Select.vue": () => import("../select/Select.vue2.js"), "../select/index.ts": () => import("../select/index.js"), "../swipe-layer/SwipeLayer.vue": () => import("../swipe-layer/SwipeLayer.vue2.js"), "../swipe-layer/index.ts": () => import("../swipe-layer/index.js"), "../toc-card/TocCard.vue": () => import("../toc-card/TocCard.vue.js"), "../toc-card/index.ts": () => import("../toc-card/index.js") });
|
|
131
|
+
const modules = /* @__PURE__ */ Object.assign({ "../clear/Clear.vue": () => import("../clear/Clear.vue2.js"), "../clear/index.ts": () => import("../clear/index.js"), "../draw/Draw.vue": () => import("../draw/Draw.vue2.js"), "../draw/index.ts": () => import("../draw/index.js"), "../export/Export.vue": () => import("../export/Export.vue.js"), "../export/index.ts": () => import("../export/index.js"), "./HorizontallyTopToolbar.vue": () => import("./HorizontallyTopToolbar.vue.js"), "./index.ts": () => import("./index.js"), "../identify/Identify.vue": () => import("../identify/Identify.vue2.js"), "../identify/index.ts": () => import("../identify/index.js"), "../import/Import.vue": () => import("../import/Import.vue2.js"), "../import/index.ts": () => import("../import/index.js"), "../layer-tree/LayerTree.vue": () => import("../layer-tree/LayerTree.vue.js"), "../layer-tree/index.ts": () => import("../layer-tree/index.js"), "../map-view/MapView.vue": () => import("../map-view/MapView.vue2.js"), "../map-view/index.ts": () => import("../map-view/index.js"), "../mouse-position/MousePositon.vue": () => import("../mouse-position/MousePositon.vue.js"), "../mouse-position/index.ts": () => import("../mouse-position/index.js"), "../multi-screen-panel/PanelMultiScreen.vue": () => import("../multi-screen-panel/PanelMultiScreen.vue.js"), "../multi-screen-panel/index.ts": () => import("../multi-screen-panel/index.js"), "../multi-screen/MultiScreen.vue": () => import("../multi-screen/MultiScreen.vue.js"), "../multi-screen/index.ts": () => import("../multi-screen/index.js"), "../popup/Popup.vue": () => import("../popup/Popup.vue.js"), "../popup/index.ts": () => import("../popup/index.js"), "../scale-line/ScaleLine.vue": () => import("../scale-line/ScaleLine.vue.js"), "../scale-line/index.ts": () => import("../scale-line/index.js"), "../select/Select.vue": () => import("../select/Select.vue2.js"), "../select/index.ts": () => import("../select/index.js"), "../swipe-layer/SwipeLayer.vue": () => import("../swipe-layer/SwipeLayer.vue2.js"), "../swipe-layer/index.ts": () => import("../swipe-layer/index.js"), "../toc-card/TocCard.vue": () => import("../toc-card/TocCard.vue.js"), "../toc-card/index.ts": () => import("../toc-card/index.js") });
|
|
132
132
|
const props = __props;
|
|
133
133
|
const reactiveValue = reactive({
|
|
134
134
|
activeIds: [],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.toolbar-contain[data-v-
|
|
1
|
+
.toolbar-contain[data-v-d5f93128] {
|
|
2
2
|
position: absolute;
|
|
3
3
|
top: 44px;
|
|
4
4
|
display: flex;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
border: 1px solid var(--system-primary-border-color);
|
|
10
10
|
border-radius: 3px;
|
|
11
11
|
}
|
|
12
|
-
.toolbar-contain .toolbar-item-contain[data-v-
|
|
12
|
+
.toolbar-contain .toolbar-item-contain[data-v-d5f93128] {
|
|
13
13
|
height: 43px;
|
|
14
14
|
line-height: 43px;
|
|
15
15
|
display: flex;
|
|
@@ -18,41 +18,41 @@
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
}
|
|
21
|
-
.toolbar-contain .toolbar-item-contain .toolbar-item[data-v-
|
|
21
|
+
.toolbar-contain .toolbar-item-contain .toolbar-item[data-v-d5f93128] {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
24
|
padding: 0px 10px;
|
|
25
25
|
}
|
|
26
|
-
.toolbar-contain .toolbar-item-contain .toolbar-icon[data-v-
|
|
26
|
+
.toolbar-contain .toolbar-item-contain .toolbar-icon[data-v-d5f93128] {
|
|
27
27
|
width: 24px;
|
|
28
28
|
height: 24px;
|
|
29
29
|
margin-right: 6px;
|
|
30
30
|
}
|
|
31
|
-
.toolbar-contain .toolbar-item-contain .toolbar-children-contain[data-v-
|
|
31
|
+
.toolbar-contain .toolbar-item-contain .toolbar-children-contain[data-v-d5f93128] {
|
|
32
32
|
position: absolute;
|
|
33
33
|
top: 50px;
|
|
34
34
|
background: var(--system-primary-color);
|
|
35
35
|
border: 1px solid var(--system-primary-border-color);
|
|
36
36
|
border-radius: 3px;
|
|
37
37
|
}
|
|
38
|
-
.toolbar-contain .active[data-v-
|
|
38
|
+
.toolbar-contain .active[data-v-d5f93128] {
|
|
39
39
|
color: var(--system-primary-text-active-color);
|
|
40
40
|
}
|
|
41
|
-
.toolbar-contain .toolbar-split[data-v-
|
|
41
|
+
.toolbar-contain .toolbar-split[data-v-d5f93128] {
|
|
42
42
|
width: 2px;
|
|
43
43
|
height: 20px;
|
|
44
44
|
background: #7EA08E;
|
|
45
45
|
margin: auto;
|
|
46
46
|
opacity: 0.5;
|
|
47
47
|
}
|
|
48
|
-
.toolbar-contain .toolbar-h-split[data-v-
|
|
48
|
+
.toolbar-contain .toolbar-h-split[data-v-d5f93128] {
|
|
49
49
|
height: 2px;
|
|
50
50
|
background: #7EA08E;
|
|
51
51
|
margin: auto;
|
|
52
52
|
opacity: 0.5;
|
|
53
53
|
margin: 0px 10px;
|
|
54
54
|
}
|
|
55
|
-
.component-position[data-v-
|
|
55
|
+
.component-position[data-v-d5f93128] {
|
|
56
56
|
position: absolute;
|
|
57
57
|
right: 300px;
|
|
58
58
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, reactive, onMounted, onUnmounted, createBlock, createCommentVNode, openBlock, unref } from "vue";
|
|
2
|
-
import Select from "ym-
|
|
2
|
+
import Select from "ym-gis-2d/interaction/Select";
|
|
3
3
|
import { ElLoading } from "element-plus";
|
|
4
4
|
import { Popup } from "../popup/index.js";
|
|
5
|
-
import { getSelectPointStyle, getSelectCancePointStyle, getSelectLineStyle, getSelectCancelLineStyle, getSelectPolygonStyle, getSelectCancelPolygonStyle } from "ym-
|
|
6
|
-
import FeatureManager from "ym-
|
|
5
|
+
import { getSelectPointStyle, getSelectCancePointStyle, getSelectLineStyle, getSelectCancelLineStyle, getSelectPolygonStyle, getSelectCancelPolygonStyle } from "ym-gis-2d/style/StyleManager";
|
|
6
|
+
import FeatureManager from "ym-gis-2d/feature/FeatureManager";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "Identify",
|
|
9
9
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const Identify: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
map: import('ym-
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
3
|
pointStyle?: import('ol/style').Style;
|
|
4
4
|
cancePointStyle?: import('ol/style').Style;
|
|
5
5
|
lineStyle?: import('ol/style').Style;
|
|
@@ -7,7 +7,7 @@ export declare const Identify: import('../../utils').WithInstall<import('vue').D
|
|
|
7
7
|
polygonStyle?: import('ol/style').Style;
|
|
8
8
|
cancePolygonStyle?: import('ol/style').Style;
|
|
9
9
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
10
|
-
map: import('ym-
|
|
10
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
11
11
|
pointStyle?: import('ol/style').Style;
|
|
12
12
|
cancePointStyle?: import('ol/style').Style;
|
|
13
13
|
lineStyle?: import('ol/style').Style;
|
|
@@ -5,13 +5,13 @@ import "element-plus/es/components/button/style/css";
|
|
|
5
5
|
import { defineComponent, ref, onMounted, createElementBlock, openBlock, withDirectives, createVNode, withCtx, vShow } from "vue";
|
|
6
6
|
import { ElLoading, ElMessage } from "element-plus";
|
|
7
7
|
import { importFile } from "../../http/SpaceFile.js";
|
|
8
|
-
import { getEsriSpatialReference } from "ym-
|
|
9
|
-
import Feature from "ym-
|
|
8
|
+
import { getEsriSpatialReference } from "ym-gis-2d/utils/EsriUtil";
|
|
9
|
+
import Feature from "ym-gis-2d/entity/Feature";
|
|
10
10
|
import WKT from "ol/format/WKT";
|
|
11
11
|
import GeoJSON from "ol/format/GeoJSON";
|
|
12
|
-
import { getSelectPointStyle, getSelectLineStyle, getSelectPolygonStyle } from "ym-
|
|
13
|
-
import { union } from "ym-
|
|
14
|
-
import { toGeoJSON } from "ym-
|
|
12
|
+
import { getSelectPointStyle, getSelectLineStyle, getSelectPolygonStyle } from "ym-gis-2d/style/StyleManager";
|
|
13
|
+
import { union } from "ym-gis-2d/utils/GeometryUtil";
|
|
14
|
+
import { toGeoJSON } from "ym-gis-2d/conver/kml";
|
|
15
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
16
|
__name: "Import",
|
|
17
17
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const Import: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
map: import('ym-
|
|
2
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
3
|
pointStyle?: import('ol/style').Style;
|
|
4
4
|
lineStyle?: import('ol/style').Style;
|
|
5
5
|
polygonStyle?: import('ol/style').Style;
|
|
6
6
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
-
map: import('ym-
|
|
7
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
8
8
|
pointStyle?: import('ol/style').Style;
|
|
9
9
|
lineStyle?: import('ol/style').Style;
|
|
10
10
|
polygonStyle?: import('ol/style').Style;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IMapService } from 'ym-
|
|
2
|
-
import { default as OLMap } from 'ym-
|
|
1
|
+
import { IMapService } from 'ym-gis-2d/entity';
|
|
2
|
+
import { default as OLMap } from 'ym-gis-2d/mapView/Map';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
data: IMapService[];
|
|
5
5
|
map: OLMap;
|
|
@@ -150,15 +150,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
150
150
|
collapse: () => void;
|
|
151
151
|
shouldLoadData: () => boolean;
|
|
152
152
|
updateLeafState: () => void;
|
|
153
|
-
setChecked: (value
|
|
154
|
-
/**
|
|
155
|
-
* 拖拽成功完成时触发的事件
|
|
156
|
-
* @param draggingNode 被拖拽节点对应的 Node
|
|
157
|
-
* @param dropNode 目标节点对应的 Node
|
|
158
|
-
* @param dropType 被拖拽的节点放置在目标节点的位置:('before'、'inner' 和 'after')分别表示放置在目标节点前、插入至目标节点和放置在目标节点后
|
|
159
|
-
* @param event event 对象
|
|
160
|
-
*/
|
|
161
|
-
?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
|
|
153
|
+
setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
|
|
162
154
|
getChildren: (forceInit?: boolean) => import('element-plus').TreeNodeData | import('element-plus').TreeNodeData[];
|
|
163
155
|
updateChildren: () => void;
|
|
164
156
|
loadData: (callback: (node: import('element-plus/es/components/tree/src/model/node').default) => void, defaultProps?: import('element-plus').TreeNodeLoadedDefaultProps) => void;
|
|
@@ -367,7 +359,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
367
359
|
getCheckedKeys: (leafOnly?: boolean) => import('element-plus').TreeKey[];
|
|
368
360
|
getCurrentNode: () => import('element-plus').TreeNodeData;
|
|
369
361
|
getCurrentKey: () => any;
|
|
370
|
-
setCheckedNodes: (nodes: import('element-plus/es/components/tree/src/model/node').default[], leafOnly
|
|
362
|
+
setCheckedNodes: (nodes: import('element-plus/es/components/tree/src/model/node').default[], leafOnly
|
|
363
|
+
/**
|
|
364
|
+
* 将树数据转成数组
|
|
365
|
+
* @param nodeData
|
|
366
|
+
*/
|
|
367
|
+
?: boolean) => void;
|
|
371
368
|
setCheckedKeys: (keys: import('element-plus').TreeKey[], leafOnly?: boolean) => void;
|
|
372
369
|
setChecked: (data: import('element-plus').TreeKey | import('element-plus').TreeNodeData, checked: boolean, deep: boolean) => void;
|
|
373
370
|
getHalfCheckedNodes: () => import('element-plus').TreeNodeData[];
|
|
@@ -546,15 +543,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
546
543
|
collapse: () => void;
|
|
547
544
|
shouldLoadData: () => boolean;
|
|
548
545
|
updateLeafState: () => void;
|
|
549
|
-
setChecked: (value
|
|
550
|
-
/**
|
|
551
|
-
* 拖拽成功完成时触发的事件
|
|
552
|
-
* @param draggingNode 被拖拽节点对应的 Node
|
|
553
|
-
* @param dropNode 目标节点对应的 Node
|
|
554
|
-
* @param dropType 被拖拽的节点放置在目标节点的位置:('before'、'inner' 和 'after')分别表示放置在目标节点前、插入至目标节点和放置在目标节点后
|
|
555
|
-
* @param event event 对象
|
|
556
|
-
*/
|
|
557
|
-
?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
|
|
546
|
+
setChecked: (value?: boolean | string, deep?: boolean, recursion?: boolean, passValue?: boolean) => void;
|
|
558
547
|
getChildren: (forceInit?: boolean) => import('element-plus').TreeNodeData | import('element-plus').TreeNodeData[];
|
|
559
548
|
updateChildren: () => void;
|
|
560
549
|
loadData: (callback: (node: import('element-plus/es/components/tree/src/model/node').default) => void, defaultProps?: import('element-plus').TreeNodeLoadedDefaultProps) => void;
|
|
@@ -763,7 +752,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
763
752
|
getCheckedKeys: (leafOnly?: boolean) => import('element-plus').TreeKey[];
|
|
764
753
|
getCurrentNode: () => import('element-plus').TreeNodeData;
|
|
765
754
|
getCurrentKey: () => any;
|
|
766
|
-
setCheckedNodes: (nodes: import('element-plus/es/components/tree/src/model/node').default[], leafOnly
|
|
755
|
+
setCheckedNodes: (nodes: import('element-plus/es/components/tree/src/model/node').default[], leafOnly
|
|
756
|
+
/**
|
|
757
|
+
* 将树数据转成数组
|
|
758
|
+
* @param nodeData
|
|
759
|
+
*/
|
|
760
|
+
?: boolean) => void;
|
|
767
761
|
setCheckedKeys: (keys: import('element-plus').TreeKey[], leafOnly?: boolean) => void;
|
|
768
762
|
setChecked: (data: import('element-plus').TreeKey | import('element-plus').TreeNodeData, checked: boolean, deep: boolean) => void;
|
|
769
763
|
getHalfCheckedNodes: () => import('element-plus').TreeNodeData[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./LayerTree.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _LayerTree = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _LayerTree = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d8dd9ae4"]]);
|
|
5
5
|
export {
|
|
6
6
|
_LayerTree as default
|
|
7
7
|
};
|
|
@@ -3,8 +3,8 @@ import "element-plus/es/components/base/style/css";
|
|
|
3
3
|
import "element-plus/es/components/tooltip/style/css";
|
|
4
4
|
import { defineComponent, ref, toRaw, reactive, onMounted, computed, createElementBlock, openBlock, createVNode, unref, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString, nextTick } from "vue";
|
|
5
5
|
import { ElMessage, ElTree } from "element-plus";
|
|
6
|
-
import LayerManager from "ym-
|
|
7
|
-
import { mapServiceTreeTransform } from "ym-
|
|
6
|
+
import LayerManager from "ym-gis-2d/layers/LayerManager";
|
|
7
|
+
import { mapServiceTreeTransform } from "ym-gis-2d/utils/LayerUtil";
|
|
8
8
|
import folderImg from "../../assets/img/folder.png.js";
|
|
9
9
|
import layerImg from "../../assets/img/layer.png.js";
|
|
10
10
|
import lineImg from "../../assets/img/line_layer.png.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
.layer-btn[data-v-
|
|
2
|
+
.layer-btn[data-v-d8dd9ae4] {
|
|
3
3
|
background-color: var(--system-primary-color);
|
|
4
4
|
color: var(--system-primary-text-color);
|
|
5
5
|
font-size: var(--system-primary-text-size);
|
|
@@ -12,29 +12,29 @@
|
|
|
12
12
|
cursor: pointer;
|
|
13
13
|
border-radius: 3px;
|
|
14
14
|
}
|
|
15
|
-
.add-toc-tree[data-v-
|
|
15
|
+
.add-toc-tree[data-v-d8dd9ae4] {
|
|
16
16
|
color: var(--el-text-color-regular) !important;
|
|
17
17
|
}
|
|
18
|
-
.el-tree[data-v-
|
|
18
|
+
.el-tree[data-v-d8dd9ae4] {
|
|
19
19
|
background: unset;
|
|
20
20
|
color: var(--system-primary-text-color);
|
|
21
21
|
font-size: var(--system-primary-text-size);
|
|
22
22
|
overflow: auto;
|
|
23
23
|
max-height: 400px;
|
|
24
24
|
}
|
|
25
|
-
.el-tree[data-v-
|
|
25
|
+
.el-tree[data-v-d8dd9ae4] .el-tree-node :hover {
|
|
26
26
|
background: unset;
|
|
27
27
|
}
|
|
28
|
-
.el-tree[data-v-
|
|
28
|
+
.el-tree[data-v-d8dd9ae4] .el-tree-node :focus {
|
|
29
29
|
background: unset;
|
|
30
30
|
}
|
|
31
|
-
.el-tree[data-v-
|
|
31
|
+
.el-tree[data-v-d8dd9ae4] .el-tree-node .el-tree-node__content {
|
|
32
32
|
background: unset;
|
|
33
33
|
}
|
|
34
|
-
.el-tree .active[data-v-
|
|
34
|
+
.el-tree .active[data-v-d8dd9ae4] {
|
|
35
35
|
color: var(--system-primary-text-active-color);
|
|
36
36
|
}
|
|
37
|
-
.el-tree .layer-span[data-v-
|
|
37
|
+
.el-tree .layer-span[data-v-d8dd9ae4] .el-only-child__content {
|
|
38
38
|
display: block;
|
|
39
39
|
width: 95px;
|
|
40
40
|
word-wrap: break-word;
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
white-space: nowrap;
|
|
47
47
|
/*强制不换行*/
|
|
48
48
|
}
|
|
49
|
-
.el-tree .icontest[data-v-
|
|
49
|
+
.el-tree .icontest[data-v-d8dd9ae4] {
|
|
50
50
|
display: flex;
|
|
51
51
|
font-size: var(--system-primary-text-size);
|
|
52
52
|
}
|
|
53
|
-
.el-tree .icontest .treeIconImg[data-v-
|
|
53
|
+
.el-tree .icontest .treeIconImg[data-v-d8dd9ae4] {
|
|
54
54
|
height: 17px;
|
|
55
55
|
margin: 2px;
|
|
56
56
|
}
|
|
57
|
-
[data-v-
|
|
57
|
+
[data-v-d8dd9ae4] .el-checkbox__label {
|
|
58
58
|
margin-left: 14px;
|
|
59
59
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const LayerTree: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
|
-
data: import('ym-
|
|
3
|
-
map: import('ym-
|
|
2
|
+
data: import('ym-gis-2d/entity').IMapService[];
|
|
3
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
4
4
|
editLayerTag?: string;
|
|
5
5
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
6
|
loaded: (...args: any[]) => void;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<{
|
|
8
|
-
data: import('ym-
|
|
9
|
-
map: import('ym-
|
|
8
|
+
data: import('ym-gis-2d/entity').IMapService[];
|
|
9
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
10
10
|
editLayerTag?: string;
|
|
11
11
|
}> & Readonly<{
|
|
12
12
|
onLoaded?: ((...args: any[]) => any) | undefined;
|