ym-giswidget-2d 1.0.23 → 1.0.25
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/map-view/MapView.vue.d.ts +3 -1
- package/components/map-view/index.d.ts +3 -1
- package/components/multi-screen/MultiScreen.vue.d.ts +3 -1
- package/components/multi-screen/index.d.ts +3 -1
- package/components/select/Select.vue.d.ts +9 -7
- package/components/select/Select.vue.js +18 -16
- package/components/select/index.d.ts +14 -12
- package/package.json +2 -2
|
@@ -62,6 +62,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
62
62
|
checked?: boolean | undefined;
|
|
63
63
|
programId?: string | undefined;
|
|
64
64
|
relatedId?: string | undefined;
|
|
65
|
+
minScale?: number | undefined;
|
|
66
|
+
maxScale?: number | undefined;
|
|
65
67
|
} | undefined;
|
|
66
68
|
interactionManager: {
|
|
67
69
|
map: {
|
|
@@ -344,7 +346,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
344
346
|
sortTemLayer: () => void;
|
|
345
347
|
getExtent: () => import('ol/extent').Extent;
|
|
346
348
|
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
347
|
-
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean,
|
|
349
|
+
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
|
|
348
350
|
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
349
351
|
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
350
352
|
un: import('ol/Map').MapEventHandler<void>;
|
|
@@ -61,6 +61,8 @@ export declare const MapView: import('../../utils').WithInstall<import('vue').De
|
|
|
61
61
|
checked?: boolean | undefined;
|
|
62
62
|
programId?: string | undefined;
|
|
63
63
|
relatedId?: string | undefined;
|
|
64
|
+
minScale?: number | undefined;
|
|
65
|
+
maxScale?: number | undefined;
|
|
64
66
|
} | undefined;
|
|
65
67
|
interactionManager: {
|
|
66
68
|
map: {
|
|
@@ -343,7 +345,7 @@ export declare const MapView: import('../../utils').WithInstall<import('vue').De
|
|
|
343
345
|
sortTemLayer: () => void;
|
|
344
346
|
getExtent: () => import('ol/extent').Extent;
|
|
345
347
|
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
346
|
-
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean,
|
|
348
|
+
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
|
|
347
349
|
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
348
350
|
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
349
351
|
un: import('ol/Map').MapEventHandler<void>;
|
|
@@ -68,6 +68,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
68
68
|
checked?: boolean | undefined;
|
|
69
69
|
programId?: string | undefined;
|
|
70
70
|
relatedId?: string | undefined;
|
|
71
|
+
minScale?: number | undefined;
|
|
72
|
+
maxScale?: number | undefined;
|
|
71
73
|
} | undefined;
|
|
72
74
|
interactionManager: {
|
|
73
75
|
map: {
|
|
@@ -350,7 +352,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
350
352
|
sortTemLayer: () => void;
|
|
351
353
|
getExtent: () => import('ol/extent').Extent;
|
|
352
354
|
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
353
|
-
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean,
|
|
355
|
+
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
|
|
354
356
|
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
355
357
|
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
356
358
|
un: import('ol/Map').MapEventHandler<void>;
|
|
@@ -64,6 +64,8 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
|
|
|
64
64
|
checked?: boolean | undefined;
|
|
65
65
|
programId?: string | undefined;
|
|
66
66
|
relatedId?: string | undefined;
|
|
67
|
+
minScale?: number | undefined;
|
|
68
|
+
maxScale?: number | undefined;
|
|
67
69
|
} | undefined;
|
|
68
70
|
interactionManager: {
|
|
69
71
|
map: {
|
|
@@ -346,7 +348,7 @@ export declare const MultiScreen: import('../../utils').WithInstall<import('vue'
|
|
|
346
348
|
sortTemLayer: () => void;
|
|
347
349
|
getExtent: () => import('ol/extent').Extent;
|
|
348
350
|
addWKT: (wkt: string, wkid: number, tag?: string, location?: boolean, fillColor?: string, strokeColor?: string, strokeWidth?: number) => void;
|
|
349
|
-
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean,
|
|
351
|
+
addWKTs: (wkts: string[], wkid: number, tag?: string, location?: boolean, style?: import('ym-gis-2d/entity/IStyle').default) => void;
|
|
350
352
|
on: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
351
353
|
once: import('ol/Map').MapEventHandler<import('ol/events').EventsKey>;
|
|
352
354
|
un: import('ol/Map').MapEventHandler<void>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { default as OLMap } from 'ym-gis-2d/mapView/Map';
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as IStyle } from 'ym-gis-2d/entity/IStyle';
|
|
3
|
+
import { IMapService } from 'ym-gis-2d/entity';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
map: OLMap;
|
|
5
|
-
pointStyle?:
|
|
6
|
-
cancePointStyle?:
|
|
7
|
-
lineStyle?:
|
|
8
|
-
canceLineStyle?:
|
|
9
|
-
polygonStyle?:
|
|
10
|
-
cancePolygonStyle?:
|
|
6
|
+
pointStyle?: IStyle;
|
|
7
|
+
cancePointStyle?: IStyle;
|
|
8
|
+
lineStyle?: IStyle;
|
|
9
|
+
canceLineStyle?: IStyle;
|
|
10
|
+
polygonStyle?: IStyle;
|
|
11
|
+
cancePolygonStyle?: IStyle;
|
|
12
|
+
selectLayers?: IMapService[];
|
|
11
13
|
};
|
|
12
14
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
15
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import Select from "ym-gis-2d/interaction/Select";
|
|
|
3
3
|
import { ElLoading } from "element-plus";
|
|
4
4
|
import FeatureManager from "ym-gis-2d/feature/FeatureManager";
|
|
5
5
|
import { intersects } from "ym-gis-2d/utils/GeometryUtil";
|
|
6
|
-
import { getSelectPointStyle, getSelectCancePointStyle, getSelectLineStyle, getSelectCancelLineStyle, getSelectPolygonStyle, getSelectCancelPolygonStyle } from "ym-gis-2d/style/StyleManager";
|
|
6
|
+
import { getStyle, getSelectPointStyle, getSelectCancePointStyle, getSelectLineStyle, getSelectCancelLineStyle, getSelectPolygonStyle, getSelectCancelPolygonStyle } from "ym-gis-2d/style/StyleManager";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "Select",
|
|
9
9
|
props: {
|
|
@@ -13,27 +13,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
lineStyle: {},
|
|
14
14
|
canceLineStyle: {},
|
|
15
15
|
polygonStyle: {},
|
|
16
|
-
cancePolygonStyle: {}
|
|
16
|
+
cancePolygonStyle: {},
|
|
17
|
+
selectLayers: {}
|
|
17
18
|
},
|
|
18
19
|
setup(__props) {
|
|
19
20
|
const props = __props;
|
|
20
|
-
const pointStyle = props.pointStyle
|
|
21
|
-
const cancePointStyle = props.cancePointStyle
|
|
22
|
-
const lineStyle = props.lineStyle
|
|
23
|
-
const canceLineStyle = props.canceLineStyle
|
|
24
|
-
const polygonStyle = props.polygonStyle
|
|
25
|
-
const cancePolygonStyle = props.cancePolygonStyle
|
|
21
|
+
const pointStyle = props.pointStyle ? getStyle(props.pointStyle) : getSelectPointStyle();
|
|
22
|
+
const cancePointStyle = props.cancePointStyle ? getStyle(props.cancePointStyle) : getSelectCancePointStyle();
|
|
23
|
+
const lineStyle = props.lineStyle ? getStyle(props.lineStyle) : getSelectLineStyle();
|
|
24
|
+
const canceLineStyle = props.canceLineStyle ? getStyle(props.canceLineStyle) : getSelectCancelLineStyle();
|
|
25
|
+
const polygonStyle = props.polygonStyle ? getStyle(props.polygonStyle) : getSelectPolygonStyle();
|
|
26
|
+
const cancePolygonStyle = props.cancePolygonStyle ? getStyle(props.cancePolygonStyle) : getSelectCancelPolygonStyle();
|
|
26
27
|
const tempType = ["copy", "cut", "draw", "import", "union"];
|
|
27
28
|
let holdCtrl = false;
|
|
28
29
|
onMounted(() => {
|
|
29
|
-
const select = new Select("
|
|
30
|
-
pointStyle,
|
|
31
|
-
cancePointStyle,
|
|
32
|
-
lineStyle,
|
|
33
|
-
canceLineStyle,
|
|
34
|
-
polygonStyle,
|
|
35
|
-
cancePolygonStyle,
|
|
36
|
-
addTempLayer: false
|
|
30
|
+
const select = new Select("pointermove", {
|
|
31
|
+
pointStyle: props.pointStyle,
|
|
32
|
+
cancePointStyle: props.cancePointStyle,
|
|
33
|
+
lineStyle: props.lineStyle,
|
|
34
|
+
canceLineStyle: props.canceLineStyle,
|
|
35
|
+
polygonStyle: props.polygonStyle,
|
|
36
|
+
cancePolygonStyle: props.cancePolygonStyle,
|
|
37
|
+
addTempLayer: false,
|
|
38
|
+
selectLayers: props.selectLayers
|
|
37
39
|
});
|
|
38
40
|
props.map.interactionManager.addInteraction("select", select);
|
|
39
41
|
let loadingInstance;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
export declare const Select: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
2
|
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
|
-
pointStyle?: import('
|
|
4
|
-
cancePointStyle?: import('
|
|
5
|
-
lineStyle?: import('
|
|
6
|
-
canceLineStyle?: import('
|
|
7
|
-
polygonStyle?: import('
|
|
8
|
-
cancePolygonStyle?: import('
|
|
3
|
+
pointStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
4
|
+
cancePointStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
5
|
+
lineStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
6
|
+
canceLineStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
7
|
+
polygonStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
8
|
+
cancePolygonStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
9
|
+
selectLayers?: import('ym-gis-2d/entity').IMapService[];
|
|
9
10
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
10
11
|
map: import('ym-gis-2d/mapView/Map').default;
|
|
11
|
-
pointStyle?: import('
|
|
12
|
-
cancePointStyle?: import('
|
|
13
|
-
lineStyle?: import('
|
|
14
|
-
canceLineStyle?: import('
|
|
15
|
-
polygonStyle?: import('
|
|
16
|
-
cancePolygonStyle?: import('
|
|
12
|
+
pointStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
13
|
+
cancePointStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
14
|
+
lineStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
15
|
+
canceLineStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
16
|
+
polygonStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
17
|
+
cancePolygonStyle?: import('ym-gis-2d/entity/IStyle').default;
|
|
18
|
+
selectLayers?: import('ym-gis-2d/entity').IMapService[];
|
|
17
19
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>>;
|
|
18
20
|
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.25",
|
|
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.4"
|
|
14
14
|
}
|
|
15
15
|
}
|