ym-giswidget-2d 1.0.45 → 1.0.47
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/area-measurement/AreaMeasurement.vue.d.ts +150 -0
- package/components/area-measurement/AreaMeasurement.vue.js +170 -0
- package/components/area-measurement/AreaMeasurement.vue2.js +4 -0
- package/components/area-measurement/index.d.ts +150 -0
- package/components/area-measurement/index.js +7 -0
- package/components/distance-measurement/DistanceMeasurement.vue.js +9 -0
- package/components/export/Export.vue.d.ts +1 -1
- package/components/export/Export.vue.js +1 -1
- package/components/export/Export.vue2.js +1 -1
- package/components/export/index.css +1 -1
- package/components/export/index.d.ts +1 -1
- package/components/horizontally-top-toolbar/HorizontallyTopToolbar.vue2.js +1 -1
- package/components/identify/Identify.vue.d.ts +140 -1
- package/components/identify/Identify.vue.js +10 -2
- package/components/identify/index.d.ts +160 -11
- package/components/map-view/MapView.vue.d.ts +4 -4
- package/components/map-view/MapView.vue.js +2 -2
- package/components/map-view/index.d.ts +4 -4
- package/components/mouse-position/MousePositon.vue.d.ts +1 -0
- package/components/mouse-position/MousePositon.vue.js +1 -1
- package/components/mouse-position/MousePositon.vue2.js +4 -2
- package/components/mouse-position/index.css +5 -5
- package/components/mouse-position/index.d.ts +1 -0
- package/components/multi-screen/MultiScreen.vue.d.ts +2 -2
- package/components/multi-screen/index.d.ts +2 -2
- package/components/popup/Popup.vue.d.ts +288 -1
- package/components/popup/Popup.vue.js +1 -1
- package/components/popup/Popup.vue2.js +7 -3
- package/components/popup/index.css +10 -10
- package/components/popup/index.d.ts +288 -138
- package/components/scale-line/ScaleLine.vue.d.ts +10 -0
- package/components/scale-line/ScaleLine.vue.js +1 -1
- package/components/scale-line/ScaleLine.vue2.js +7 -7
- package/components/scale-line/index.css +5 -5
- package/components/scale-line/index.d.ts +15 -0
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +2 -2
|
@@ -1,57 +1,128 @@
|
|
|
1
|
-
export declare const Popup: import('../../utils').WithInstall<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
export declare const Popup: import('../../utils').WithInstall<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
3
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
4
|
+
features: import('ym-gis-2d/entity/Feature').default[];
|
|
5
|
+
postion: import('ol/coordinate').Coordinate;
|
|
6
|
+
}> & Readonly<{
|
|
7
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
close: (...args: any[]) => void;
|
|
10
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
11
|
+
popupDom: ({
|
|
12
|
+
$: import('vue').ComponentInternalInstance;
|
|
13
|
+
$data: {};
|
|
14
|
+
$props: {
|
|
15
|
+
readonly title?: string | undefined;
|
|
16
|
+
readonly width?: number | undefined;
|
|
17
|
+
readonly height?: number | undefined;
|
|
18
|
+
readonly minWidth?: number | undefined;
|
|
19
|
+
readonly minHeight?: number | undefined;
|
|
20
|
+
readonly resizable?: boolean | undefined;
|
|
21
|
+
readonly showClose?: boolean | undefined;
|
|
22
|
+
readonly showMinimize?: boolean | undefined;
|
|
23
|
+
readonly showMaximize?: boolean | undefined;
|
|
24
|
+
readonly showDock?: boolean | undefined;
|
|
25
|
+
readonly drag?: boolean | undefined;
|
|
26
|
+
readonly showOk?: boolean | undefined;
|
|
27
|
+
readonly showCancel?: boolean | undefined;
|
|
28
|
+
readonly okText?: string | undefined;
|
|
29
|
+
readonly cancelText?: string | undefined;
|
|
30
|
+
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
readonly onResize?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
readonly onMove?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
readonly onOk?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
35
|
+
$attrs: {
|
|
36
|
+
[x: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
$refs: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} & {
|
|
41
|
+
panelRef: HTMLDivElement;
|
|
42
|
+
};
|
|
43
|
+
$slots: Readonly<{
|
|
44
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
47
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
48
|
+
$host: Element | null;
|
|
49
|
+
$emit: ((event: "close", ...args: any[]) => void) & ((event: "resize", ...args: any[]) => void) & ((event: "move", ...args: any[]) => void) & ((event: "ok", ...args: any[]) => void);
|
|
50
|
+
$el: HTMLDivElement;
|
|
51
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
52
|
+
title?: string;
|
|
53
|
+
width?: number;
|
|
54
|
+
height?: number;
|
|
55
|
+
minWidth?: number;
|
|
56
|
+
minHeight?: number;
|
|
57
|
+
resizable?: boolean;
|
|
58
|
+
showClose?: boolean;
|
|
59
|
+
showMinimize?: boolean;
|
|
60
|
+
showMaximize?: boolean;
|
|
61
|
+
showDock?: boolean;
|
|
62
|
+
drag?: boolean;
|
|
63
|
+
showOk?: boolean;
|
|
64
|
+
showCancel?: boolean;
|
|
65
|
+
okText?: string;
|
|
66
|
+
cancelText?: string;
|
|
67
|
+
}> & Readonly<{
|
|
68
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
onResize?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
onMove?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onOk?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
73
|
+
close: (...args: any[]) => void;
|
|
74
|
+
resize: (...args: any[]) => void;
|
|
75
|
+
move: (...args: any[]) => void;
|
|
76
|
+
ok: (...args: any[]) => void;
|
|
77
|
+
}, string, {
|
|
78
|
+
title: string;
|
|
79
|
+
showClose: boolean;
|
|
80
|
+
drag: boolean;
|
|
81
|
+
minWidth: number;
|
|
82
|
+
minHeight: number;
|
|
83
|
+
resizable: boolean;
|
|
84
|
+
showMinimize: boolean;
|
|
85
|
+
showMaximize: boolean;
|
|
86
|
+
showDock: boolean;
|
|
87
|
+
showOk: boolean;
|
|
88
|
+
showCancel: boolean;
|
|
89
|
+
okText: string;
|
|
90
|
+
cancelText: string;
|
|
91
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
92
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
93
|
+
created?: (() => void) | (() => void)[];
|
|
94
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
95
|
+
mounted?: (() => void) | (() => void)[];
|
|
96
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
97
|
+
updated?: (() => void) | (() => void)[];
|
|
98
|
+
activated?: (() => void) | (() => void)[];
|
|
99
|
+
deactivated?: (() => void) | (() => void)[];
|
|
100
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
101
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
102
|
+
destroyed?: (() => void) | (() => void)[];
|
|
103
|
+
unmounted?: (() => void) | (() => void)[];
|
|
104
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
105
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
106
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
107
|
+
};
|
|
108
|
+
$forceUpdate: () => void;
|
|
109
|
+
$nextTick: typeof import('vue').nextTick;
|
|
110
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
111
|
+
} & Readonly<{
|
|
112
|
+
title: string;
|
|
113
|
+
showClose: boolean;
|
|
114
|
+
drag: boolean;
|
|
115
|
+
minWidth: number;
|
|
116
|
+
minHeight: number;
|
|
117
|
+
resizable: boolean;
|
|
118
|
+
showMinimize: boolean;
|
|
119
|
+
showMaximize: boolean;
|
|
120
|
+
showDock: boolean;
|
|
121
|
+
showOk: boolean;
|
|
122
|
+
showCancel: boolean;
|
|
123
|
+
okText: string;
|
|
124
|
+
cancelText: string;
|
|
125
|
+
}> & Omit<Readonly<{
|
|
55
126
|
title?: string;
|
|
56
127
|
width?: number;
|
|
57
128
|
height?: number;
|
|
@@ -72,90 +143,169 @@ export declare const Popup: import('../../utils').WithInstall<import('vue').Defi
|
|
|
72
143
|
onResize?: ((...args: any[]) => any) | undefined;
|
|
73
144
|
onMove?: ((...args: any[]) => any) | undefined;
|
|
74
145
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
75
|
-
}>,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
98
|
-
mounted?: (() => void) | (() => void)[];
|
|
99
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
100
|
-
updated?: (() => void) | (() => void)[];
|
|
101
|
-
activated?: (() => void) | (() => void)[];
|
|
102
|
-
deactivated?: (() => void) | (() => void)[];
|
|
103
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
104
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
105
|
-
destroyed?: (() => void) | (() => void)[];
|
|
106
|
-
unmounted?: (() => void) | (() => void)[];
|
|
107
|
-
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
108
|
-
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
109
|
-
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
110
|
-
};
|
|
111
|
-
$forceUpdate: () => void;
|
|
112
|
-
$nextTick: typeof import('vue').nextTick;
|
|
113
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
114
|
-
} & Readonly<{
|
|
115
|
-
title: string;
|
|
116
|
-
showClose: boolean;
|
|
117
|
-
drag: boolean;
|
|
118
|
-
minWidth: number;
|
|
119
|
-
minHeight: number;
|
|
120
|
-
resizable: boolean;
|
|
121
|
-
showMinimize: boolean;
|
|
122
|
-
showMaximize: boolean;
|
|
123
|
-
showDock: boolean;
|
|
124
|
-
showOk: boolean;
|
|
125
|
-
showCancel: boolean;
|
|
126
|
-
okText: string;
|
|
127
|
-
cancelText: string;
|
|
128
|
-
}> & Omit<Readonly<{
|
|
129
|
-
title?: string;
|
|
130
|
-
width?: number;
|
|
131
|
-
height?: number;
|
|
132
|
-
minWidth?: number;
|
|
133
|
-
minHeight?: number;
|
|
134
|
-
resizable?: boolean;
|
|
135
|
-
showClose?: boolean;
|
|
136
|
-
showMinimize?: boolean;
|
|
137
|
-
showMaximize?: boolean;
|
|
138
|
-
showDock?: boolean;
|
|
139
|
-
drag?: boolean;
|
|
140
|
-
showOk?: boolean;
|
|
141
|
-
showCancel?: boolean;
|
|
142
|
-
okText?: string;
|
|
143
|
-
cancelText?: string;
|
|
146
|
+
}>, "title" | "showClose" | "drag" | "minWidth" | "minHeight" | "resizable" | "showMinimize" | "showMaximize" | "showDock" | "showOk" | "showCancel" | "okText" | "cancelText"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
147
|
+
$slots: {
|
|
148
|
+
header?(_: {}): any;
|
|
149
|
+
default?(_: {}): any;
|
|
150
|
+
footer?(_: {}): any;
|
|
151
|
+
};
|
|
152
|
+
} & {
|
|
153
|
+
$props: {
|
|
154
|
+
onClick?: (...args: any[]) => void;
|
|
155
|
+
};
|
|
156
|
+
}) | null;
|
|
157
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
158
|
+
P: {};
|
|
159
|
+
B: {};
|
|
160
|
+
D: {};
|
|
161
|
+
C: {};
|
|
162
|
+
M: {};
|
|
163
|
+
Defaults: {};
|
|
164
|
+
}, Readonly<{
|
|
165
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
166
|
+
features: import('ym-gis-2d/entity/Feature').default[];
|
|
167
|
+
postion: import('ol/coordinate').Coordinate;
|
|
144
168
|
}> & Readonly<{
|
|
145
169
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
170
|
+
}>, {}, {}, {}, {}, {}>;
|
|
171
|
+
__isFragment?: never;
|
|
172
|
+
__isTeleport?: never;
|
|
173
|
+
__isSuspense?: never;
|
|
174
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
175
|
+
map: import('ym-gis-2d/mapView/Map').default;
|
|
176
|
+
features: import('ym-gis-2d/entity/Feature').default[];
|
|
177
|
+
postion: import('ol/coordinate').Coordinate;
|
|
178
|
+
}> & Readonly<{
|
|
179
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
180
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
181
|
+
close: (...args: any[]) => void;
|
|
182
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
183
|
+
$slots: {
|
|
184
|
+
footer?(_: {
|
|
185
|
+
feature: {
|
|
186
|
+
isSelected?: boolean | undefined;
|
|
187
|
+
fromType?: "draw" | "import" | "cut" | "copy" | "union" | "identify" | undefined;
|
|
188
|
+
layerId?: string | undefined;
|
|
189
|
+
tag?: string | undefined;
|
|
190
|
+
tempLayer?: {
|
|
191
|
+
getRenderBuffer: () => number | undefined;
|
|
192
|
+
getRenderOrder: () => (arg0: import('ol').default, arg1: import('ol').default) => number | null | undefined;
|
|
193
|
+
getStyle: () => import('ol/style/Style').StyleLike | import('ol/style/flat').FlatStyleLike | null | undefined;
|
|
194
|
+
getStyleFunction: () => import('ol/style/Style').StyleFunction | undefined;
|
|
195
|
+
getUpdateWhileAnimating: () => boolean;
|
|
196
|
+
getUpdateWhileInteracting: () => boolean;
|
|
197
|
+
setRenderOrder: (renderOrder: import('ol/render').OrderFunction | null | undefined) => void;
|
|
198
|
+
setStyle: (style?: import('ol/style/Style').StyleLike | import('ol/style/flat').FlatStyleLike | null | undefined) => void;
|
|
199
|
+
on: import('ol/layer/Layer').LayerOnSignature<import('ol/events').EventsKey>;
|
|
200
|
+
once: import('ol/layer/Layer').LayerOnSignature<import('ol/events').EventsKey>;
|
|
201
|
+
un: import('ol/layer/Layer').LayerOnSignature<void>;
|
|
202
|
+
render: (frameState: import('ol/Map').FrameState | null, target: HTMLElement) => HTMLElement | null;
|
|
203
|
+
getSource: () => import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>> | null;
|
|
204
|
+
getRenderSource: () => import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>> | null;
|
|
205
|
+
getFeatures: (pixel: import('ol/pixel').Pixel) => Promise<Array<import('ol/Feature').FeatureLike>>;
|
|
206
|
+
getData: (pixel: import('ol/pixel').Pixel) => Uint8ClampedArray | Uint8Array | Float32Array | DataView | null;
|
|
207
|
+
isVisible: (view?: import('ol').View | import('ol/View').ViewStateLayerStateExtent | undefined) => boolean;
|
|
208
|
+
getAttributions: (view?: import('ol').View | import('ol/View').ViewStateLayerStateExtent | undefined) => Array<string>;
|
|
209
|
+
unrender: () => void;
|
|
210
|
+
getDeclutter: () => string;
|
|
211
|
+
renderDeclutter: (frameState: import('ol/Map').FrameState, layerState: import('ol/layer/Layer').State) => void;
|
|
212
|
+
renderDeferred: (frameState: import('ol/Map').FrameState) => void;
|
|
213
|
+
setMapInternal: (map: import('ol').default | null) => void;
|
|
214
|
+
getMapInternal: () => import('ol').default | null;
|
|
215
|
+
setMap: (map: import('ol').default | null) => void;
|
|
216
|
+
setSource: (source: import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>> | null) => void;
|
|
217
|
+
getRenderer: () => import('ol/renderer/canvas/VectorLayer').default | null;
|
|
218
|
+
hasRenderer: () => boolean;
|
|
219
|
+
getBackground: () => import('ol/layer/Base').BackgroundColor | false;
|
|
220
|
+
getClassName: () => string;
|
|
221
|
+
getLayerState: (managed?: boolean | undefined) => import('ol/layer/Layer').State;
|
|
222
|
+
getLayersArray: (array?: import('ol/layer').default<import('ol/source').default, import('ol/renderer/Layer').default<any>>[] | undefined) => Array<import('ol/layer').default>;
|
|
223
|
+
getLayerStatesArray: (states?: import('ol/layer/Layer').State[] | undefined) => Array<import('ol/layer/Layer').State>;
|
|
224
|
+
getExtent: () => import('ol/extent').Extent | undefined;
|
|
225
|
+
getMaxResolution: () => number;
|
|
226
|
+
getMinResolution: () => number;
|
|
227
|
+
getMinZoom: () => number;
|
|
228
|
+
getMaxZoom: () => number;
|
|
229
|
+
getOpacity: () => number;
|
|
230
|
+
getSourceState: () => import('ol/source/Source').State;
|
|
231
|
+
getVisible: () => boolean;
|
|
232
|
+
getZIndex: () => number | undefined;
|
|
233
|
+
setBackground: (background?: import('ol/layer/Base').BackgroundColor | undefined) => void;
|
|
234
|
+
setExtent: (extent: import('ol/extent').Extent | undefined) => void;
|
|
235
|
+
setMaxResolution: (maxResolution: number) => void;
|
|
236
|
+
setMinResolution: (minResolution: number) => void;
|
|
237
|
+
setMaxZoom: (maxZoom: number) => void;
|
|
238
|
+
setMinZoom: (minZoom: number) => void;
|
|
239
|
+
setOpacity: (opacity: number) => void;
|
|
240
|
+
setVisible: (visible: boolean) => void;
|
|
241
|
+
setZIndex: (zindex: number) => void;
|
|
242
|
+
get: (key: string) => any;
|
|
243
|
+
getKeys: () => Array<string>;
|
|
244
|
+
getProperties: () => {
|
|
245
|
+
[x: string]: any;
|
|
246
|
+
};
|
|
247
|
+
getPropertiesInternal: () => {
|
|
248
|
+
[x: string]: any;
|
|
249
|
+
} | null;
|
|
250
|
+
hasProperties: () => boolean;
|
|
251
|
+
notify: (key: string, oldValue: any) => void;
|
|
252
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
253
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
254
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
255
|
+
setProperties: (values: {
|
|
256
|
+
[x: string]: any;
|
|
257
|
+
}, silent?: boolean | undefined) => void;
|
|
258
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
259
|
+
changed: () => void;
|
|
260
|
+
getRevision: () => number;
|
|
261
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
262
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
263
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
264
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
265
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
266
|
+
dispose: () => void;
|
|
267
|
+
} | undefined;
|
|
268
|
+
on: import('ol/Feature').FeatureOnSignature<import('ol/events').EventsKey>;
|
|
269
|
+
once: import('ol/Feature').FeatureOnSignature<import('ol/events').EventsKey>;
|
|
270
|
+
un: import('ol/Feature').FeatureOnSignature<void>;
|
|
271
|
+
clone: () => import('ol').Feature<import('ol/geom').Geometry>;
|
|
272
|
+
getGeometry: () => import('ol/geom').Geometry | undefined;
|
|
273
|
+
getId: () => number | string | undefined;
|
|
274
|
+
getGeometryName: () => string;
|
|
275
|
+
getStyle: () => import('ol/style/Style').StyleLike | undefined;
|
|
276
|
+
getStyleFunction: () => import('ol/style/Style').StyleFunction | undefined;
|
|
277
|
+
setGeometry: (geometry: import('ol/geom').Geometry | undefined) => void;
|
|
278
|
+
setStyle: (style?: import('ol/style/Style').StyleLike | undefined) => void;
|
|
279
|
+
setId: (id: number | string | undefined) => void;
|
|
280
|
+
setGeometryName: (name: string) => void;
|
|
281
|
+
get: (key: string) => any;
|
|
282
|
+
getKeys: () => Array<string>;
|
|
283
|
+
getProperties: () => {
|
|
284
|
+
[x: string]: any;
|
|
285
|
+
};
|
|
286
|
+
getPropertiesInternal: () => {
|
|
287
|
+
[x: string]: any;
|
|
288
|
+
} | null;
|
|
289
|
+
hasProperties: () => boolean;
|
|
290
|
+
notify: (key: string, oldValue: any) => void;
|
|
291
|
+
addChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
292
|
+
removeChangeListener: (key: string, listener: import('ol/events').Listener) => void;
|
|
293
|
+
set: (key: string, value: any, silent?: boolean | undefined) => void;
|
|
294
|
+
setProperties: (values: {
|
|
295
|
+
[x: string]: any;
|
|
296
|
+
}, silent?: boolean | undefined) => void;
|
|
297
|
+
unset: (key: string, silent?: boolean | undefined) => void;
|
|
298
|
+
changed: () => void;
|
|
299
|
+
getRevision: () => number;
|
|
300
|
+
addEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
301
|
+
dispatchEvent: (event: import('ol/events/Event').default | string) => boolean | undefined;
|
|
302
|
+
getListeners: (type: string) => Array<import('ol/events').Listener> | undefined;
|
|
303
|
+
hasListener: (type?: string | undefined) => boolean;
|
|
304
|
+
removeEventListener: (type: string, listener: import('ol/events').Listener) => void;
|
|
305
|
+
dispose: () => void;
|
|
306
|
+
} | undefined;
|
|
307
|
+
layerName: string | undefined;
|
|
308
|
+
}): any;
|
|
309
|
+
};
|
|
310
|
+
})>;
|
|
161
311
|
export default Popup;
|
|
@@ -2,9 +2,19 @@ import { default as OLMap } from 'ym-gis-2d/mapView/Map';
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
map: OLMap;
|
|
4
4
|
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
5
|
+
bar?: boolean;
|
|
6
|
+
text?: boolean;
|
|
7
|
+
minWidth?: number;
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
units?: "metric" | "imperial";
|
|
5
10
|
};
|
|
6
11
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
text: boolean;
|
|
13
|
+
minWidth: number;
|
|
7
14
|
position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
15
|
+
bar: boolean;
|
|
16
|
+
maxWidth: number;
|
|
17
|
+
units: "metric" | "imperial";
|
|
8
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
19
|
scaleLineRef: HTMLDivElement;
|
|
10
20
|
}, HTMLDivElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./ScaleLine.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const _ScaleLine = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const _ScaleLine = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3678a288"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ScaleLine as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, onUnmounted, createElementBlock, openBlock, normalizeClass } from "vue";
|
|
2
|
-
import MousePositionControl from "ym-gis-2d/controls/MousePositionControl";
|
|
3
2
|
import ScaleLine from "ol/control/ScaleLine";
|
|
4
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
4
|
__name: "ScaleLine",
|
|
6
5
|
props: {
|
|
7
6
|
map: {},
|
|
8
|
-
position: { default: "bottom-left" }
|
|
7
|
+
position: { default: "bottom-left" },
|
|
8
|
+
bar: { type: Boolean, default: false },
|
|
9
|
+
text: { type: Boolean, default: false },
|
|
10
|
+
minWidth: { default: 64 },
|
|
11
|
+
maxWidth: { default: void 0 },
|
|
12
|
+
units: { default: "metric" }
|
|
9
13
|
},
|
|
10
14
|
setup(__props) {
|
|
11
15
|
const props = __props;
|
|
@@ -23,11 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
27
|
}
|
|
24
28
|
});
|
|
25
29
|
onMounted(() => {
|
|
26
|
-
new
|
|
27
|
-
target: scaleLineRef.value,
|
|
28
|
-
className: ""
|
|
29
|
-
});
|
|
30
|
-
const scaleLine = new ScaleLine({ target: scaleLineRef.value });
|
|
30
|
+
const scaleLine = new ScaleLine({ target: scaleLineRef.value, bar: props.bar, text: props.text, minWidth: props.minWidth, maxWidth: props.maxWidth, units: props.units });
|
|
31
31
|
props.map.controlManager.addControl("scale-line", scaleLine);
|
|
32
32
|
});
|
|
33
33
|
onUnmounted(() => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.mouse-position[data-v-
|
|
1
|
+
.mouse-position[data-v-3678a288] {
|
|
2
2
|
position: absolute;
|
|
3
3
|
}
|
|
4
|
-
.bottom-left[data-v-
|
|
4
|
+
.bottom-left[data-v-3678a288] {
|
|
5
5
|
bottom: 10px;
|
|
6
6
|
left: 10px;
|
|
7
7
|
}
|
|
8
|
-
.bottom-right[data-v-
|
|
8
|
+
.bottom-right[data-v-3678a288] {
|
|
9
9
|
bottom: 10px;
|
|
10
10
|
right: 10px;
|
|
11
11
|
}
|
|
12
|
-
.top-left[data-v-
|
|
12
|
+
.top-left[data-v-3678a288] {
|
|
13
13
|
top: 10px;
|
|
14
14
|
left: 10px;
|
|
15
15
|
}
|
|
16
|
-
.top-right[data-v-
|
|
16
|
+
.top-right[data-v-3678a288] {
|
|
17
17
|
top: 10px;
|
|
18
18
|
right: 10px;
|
|
19
19
|
}
|
|
@@ -1,11 +1,26 @@
|
|
|
1
1
|
export declare const ScaleLine: import('../../utils').WithInstall<import('vue').DefineComponent<{
|
|
2
2
|
map: import('ym-gis-2d/mapView/Map').default;
|
|
3
3
|
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
4
|
+
bar?: boolean;
|
|
5
|
+
text?: boolean;
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
units?: "metric" | "imperial";
|
|
4
9
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
5
10
|
map: import('ym-gis-2d/mapView/Map').default;
|
|
6
11
|
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
12
|
+
bar?: boolean;
|
|
13
|
+
text?: boolean;
|
|
14
|
+
minWidth?: number;
|
|
15
|
+
maxWidth?: number;
|
|
16
|
+
units?: "metric" | "imperial";
|
|
7
17
|
}> & Readonly<{}>, {
|
|
18
|
+
text: boolean;
|
|
19
|
+
minWidth: number;
|
|
8
20
|
position: "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
21
|
+
bar: boolean;
|
|
22
|
+
maxWidth: number;
|
|
23
|
+
units: "metric" | "imperial";
|
|
9
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
25
|
scaleLineRef: HTMLDivElement;
|
|
11
26
|
}, HTMLDivElement>>;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -14,7 +14,9 @@ import { ScaleLine } from "./components/scale-line/index.js";
|
|
|
14
14
|
import { MapView } from "./components/map-view/index.js";
|
|
15
15
|
import { Legend } from "./components/legend/index.js";
|
|
16
16
|
import { LayerSwitcher } from "./components/layer-switcher/index.js";
|
|
17
|
+
import { AreaMeasurement } from "./components/area-measurement/index.js";
|
|
17
18
|
export {
|
|
19
|
+
AreaMeasurement,
|
|
18
20
|
Clear,
|
|
19
21
|
Draw,
|
|
20
22
|
Export,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ym-giswidget-2d",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
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.26"
|
|
14
14
|
}
|
|
15
15
|
}
|