ym-giswidget-2d 1.0.26 → 1.0.27
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.
|
@@ -12,6 +12,7 @@ type __VLS_Props = {
|
|
|
12
12
|
cancePolygonStyle?: IStyle;
|
|
13
13
|
selectLayers?: IMapService[];
|
|
14
14
|
showLoading?: boolean;
|
|
15
|
+
selectType?: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
|
|
15
16
|
};
|
|
16
17
|
declare function setSelectLayers(layers: IMapService[]): void;
|
|
17
18
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
@@ -140,5 +141,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
140
141
|
}[] | undefined;
|
|
141
142
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
142
143
|
showLoading: boolean;
|
|
144
|
+
selectType: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
|
|
143
145
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
144
146
|
export default _default;
|
|
@@ -15,7 +15,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
polygonStyle: {},
|
|
16
16
|
cancePolygonStyle: {},
|
|
17
17
|
selectLayers: {},
|
|
18
|
-
showLoading: { type: Boolean, default: true }
|
|
18
|
+
showLoading: { type: Boolean, default: true },
|
|
19
|
+
selectType: { default: "point" }
|
|
19
20
|
},
|
|
20
21
|
setup(__props, { expose: __expose }) {
|
|
21
22
|
const props = __props;
|
|
@@ -31,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
features: []
|
|
32
33
|
});
|
|
33
34
|
onMounted(() => {
|
|
34
|
-
reactiveData.selectTool = new Select(
|
|
35
|
+
reactiveData.selectTool = new Select(props.selectType, {
|
|
35
36
|
pointStyle: props.pointStyle,
|
|
36
37
|
cancePointStyle: props.cancePointStyle,
|
|
37
38
|
lineStyle: props.lineStyle,
|
|
@@ -8,6 +8,7 @@ export declare const Select: import('../../utils').WithInstall<import('vue').Def
|
|
|
8
8
|
cancePolygonStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
9
9
|
selectLayers?: import('ym-gis-2d/entity').IMapService[];
|
|
10
10
|
showLoading?: boolean;
|
|
11
|
+
selectType?: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
|
|
11
12
|
}, {
|
|
12
13
|
setSelectLayers: (layers: import('ym-gis-2d/entity').IMapService[]) => void;
|
|
13
14
|
features: {
|
|
@@ -142,7 +143,9 @@ export declare const Select: import('../../utils').WithInstall<import('vue').Def
|
|
|
142
143
|
cancePolygonStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
143
144
|
selectLayers?: import('ym-gis-2d/entity').IMapService[];
|
|
144
145
|
showLoading?: boolean;
|
|
146
|
+
selectType?: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
|
|
145
147
|
}> & Readonly<{}>, {
|
|
146
148
|
showLoading: boolean;
|
|
149
|
+
selectType: "point" | "pointermove" | "polyline" | "polygon" | "rectangle" | "circle";
|
|
147
150
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
|
|
148
151
|
export default Select;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ym-giswidget-2d",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
"element-plus": "^2.9.0",
|
|
11
11
|
"jszip": "^3.10.1",
|
|
12
12
|
"ol": "^9.2.4",
|
|
13
|
-
"ym-gis-2d": "1.0.
|
|
13
|
+
"ym-gis-2d": "1.0.6"
|
|
14
14
|
}
|
|
15
15
|
}
|