tg-map-vue3 3.9.7 → 3.9.9
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/CHANGELOG.md +3 -0
- package/dist/src/components/TgMap.vue.d.ts +505 -38
- package/dist/src/components/TgMapWidget.vue.d.ts +4 -4
- package/dist/src/components/controls/TgCustomControl.vue.d.ts +6 -6
- package/dist/src/components/controls/TgMapTypeControl.vue.d.ts +13 -13
- package/dist/src/components/controls/TgScaleControl.vue.d.ts +9 -9
- package/dist/src/components/controls/TgStreetViewControl.vue.d.ts +7 -7
- package/dist/src/components/controls/TgZoomControl.vue.d.ts +7 -7
- package/dist/src/components/extra/TgHeatmap.vue.d.ts +5 -5
- package/dist/src/components/extra/TgMarkerClusterer.vue.d.ts +7 -7
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/layers/TgTrafficLayer.vue.d.ts +1 -1
- package/dist/src/components/map-hooks.d.ts +1 -1
- package/dist/src/components/map-mixin.d.ts +1 -1
- package/dist/src/components/overlays/TgCircle.vue.d.ts +18 -18
- package/dist/src/components/overlays/TgElementOverlay.vue.d.ts +9 -9
- package/dist/src/components/overlays/TgInfoBox.vue.d.ts +19 -45
- package/dist/src/components/overlays/TgInfoWindow.vue.d.ts +24 -40
- package/dist/src/components/overlays/TgLabel.vue.d.ts +7 -7
- package/dist/src/components/overlays/TgMarker.vue.d.ts +65 -193
- package/dist/src/components/overlays/TgPolygon.vue.d.ts +45 -70
- package/dist/src/components/overlays/TgPolyline.vue.d.ts +15 -15
- package/dist/src/components/overlays/TgRectangle.vue.d.ts +45 -70
- package/dist/src/map/map/overlay/icon.d.ts +13 -13
- package/dist/src/utils/mapped-types.d.ts +2 -2
- package/dist/src/utils/maps-utils/index.d.ts +2 -0
- package/dist/src/utils/maps-utils/math-util.d.ts +59 -0
- package/dist/src/utils/maps-utils/poly-util.d.ts +103 -0
- package/dist/src/utils/maps-utils/spherical-util.d.ts +67 -0
- package/dist/src/utils/spherical-utils.d.ts +8 -1
- package/dist/tg-map.cjs +7 -7
- package/dist/tg-map.cjs.map +1 -1
- package/dist/tg-map.js +2628 -2303
- package/dist/tg-map.js.map +1 -1
- package/package.json +31 -33
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { ControlPosition } from '../../map/map/controls/control';
|
|
2
2
|
import { type MapTypeControl, MapTypeControlType } from '../../map/map/controls/map-type.control';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
position: {
|
|
5
|
-
type: import("vue").PropType<import("
|
|
5
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof ControlPosition>>;
|
|
6
6
|
default: ControlPosition;
|
|
7
7
|
};
|
|
8
8
|
type: {
|
|
9
|
-
type: import("vue").PropType<import("
|
|
9
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof MapTypeControlType>>;
|
|
10
10
|
};
|
|
11
11
|
mapTypes: {
|
|
12
|
-
type: import("vue").PropType<import("
|
|
12
|
+
type: import("vue").PropType<import("../index.ts").MapType[]>;
|
|
13
13
|
};
|
|
14
|
-
}
|
|
14
|
+
}>, {
|
|
15
15
|
control: MapTypeControl;
|
|
16
|
-
},
|
|
16
|
+
}, {}, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
17
17
|
recreate(): void;
|
|
18
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
18
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
19
|
position: {
|
|
20
|
-
type: import("vue").PropType<import("
|
|
20
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof ControlPosition>>;
|
|
21
21
|
default: ControlPosition;
|
|
22
22
|
};
|
|
23
23
|
type: {
|
|
24
|
-
type: import("vue").PropType<import("
|
|
24
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof MapTypeControlType>>;
|
|
25
25
|
};
|
|
26
26
|
mapTypes: {
|
|
27
|
-
type: import("vue").PropType<import("
|
|
27
|
+
type: import("vue").PropType<import("../index.ts").MapType[]>;
|
|
28
28
|
};
|
|
29
|
-
}
|
|
30
|
-
position: import("
|
|
31
|
-
}, {}>;
|
|
29
|
+
}>> & Readonly<{}>, {
|
|
30
|
+
position: import("../index.ts").StringEnumValue<typeof ControlPosition>;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
32
32
|
export default _default;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { ControlPosition } from '../../map/map/controls/control';
|
|
2
2
|
import type { ScaleControl } from '../../map/map/controls/scale.control';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
position: {
|
|
5
|
-
type: import("vue").PropType<import("
|
|
5
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof ControlPosition>>;
|
|
6
6
|
default: ControlPosition;
|
|
7
7
|
};
|
|
8
|
-
}
|
|
8
|
+
}>, {
|
|
9
9
|
control: ScaleControl;
|
|
10
|
-
},
|
|
10
|
+
}, {}, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
11
11
|
recreate(): void;
|
|
12
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
12
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
position: {
|
|
14
|
-
type: import("vue").PropType<import("
|
|
14
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof ControlPosition>>;
|
|
15
15
|
default: ControlPosition;
|
|
16
16
|
};
|
|
17
|
-
}
|
|
18
|
-
position: import("
|
|
19
|
-
}, {}>;
|
|
17
|
+
}>> & Readonly<{}>, {
|
|
18
|
+
position: import("../index.ts").StringEnumValue<typeof ControlPosition>;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
20
|
export default _default;
|
|
@@ -3,17 +3,17 @@ import { createEmptyVNode } from '../../utils/vue-utils';
|
|
|
3
3
|
/**
|
|
4
4
|
* 街景控件, 当前只有google支持
|
|
5
5
|
* */
|
|
6
|
-
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
7
|
position: {
|
|
8
|
-
type: import("vue").PropType<import("
|
|
8
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof ControlPosition>>;
|
|
9
9
|
default: ControlPosition;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>, typeof createEmptyVNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
position: {
|
|
13
|
-
type: import("vue").PropType<import("
|
|
13
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof ControlPosition>>;
|
|
14
14
|
default: ControlPosition;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
17
|
-
position: import("
|
|
18
|
-
}, {}>;
|
|
16
|
+
}>> & Readonly<{}>, {
|
|
17
|
+
position: import("../index.ts").StringEnumValue<typeof ControlPosition>;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
19
|
export default _default;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ControlPosition } from '../../map/map/controls/control';
|
|
2
2
|
import { createEmptyVNode } from '../../utils/vue-utils';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
position: {
|
|
5
|
-
type: import("vue").PropType<import("
|
|
5
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof ControlPosition>>;
|
|
6
6
|
default: ControlPosition;
|
|
7
7
|
};
|
|
8
|
-
}
|
|
8
|
+
}>, typeof createEmptyVNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
position: {
|
|
10
|
-
type: import("vue").PropType<import("
|
|
10
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof ControlPosition>>;
|
|
11
11
|
default: ControlPosition;
|
|
12
12
|
};
|
|
13
|
-
}
|
|
14
|
-
position: import("
|
|
15
|
-
}, {}>;
|
|
13
|
+
}>> & Readonly<{}>, {
|
|
14
|
+
position: import("../index.ts").StringEnumValue<typeof ControlPosition>;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
16
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createEmptyVNode } from '../../utils/vue-utils';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
maxIntensity: {
|
|
4
4
|
type: import("vue").PropType<number>;
|
|
5
5
|
};
|
|
@@ -13,10 +13,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
type: import("vue").PropType<number>;
|
|
14
14
|
};
|
|
15
15
|
data: {
|
|
16
|
-
type: import("vue").PropType<import("
|
|
16
|
+
type: import("vue").PropType<import("../index.ts").HeatmapData>;
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
|
-
}
|
|
19
|
+
}>, typeof createEmptyVNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
20
|
maxIntensity: {
|
|
21
21
|
type: import("vue").PropType<number>;
|
|
22
22
|
};
|
|
@@ -30,8 +30,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
type: import("vue").PropType<number>;
|
|
31
31
|
};
|
|
32
32
|
data: {
|
|
33
|
-
type: import("vue").PropType<import("
|
|
33
|
+
type: import("vue").PropType<import("../index.ts").HeatmapData>;
|
|
34
34
|
required: true;
|
|
35
35
|
};
|
|
36
|
-
}
|
|
36
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
37
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { MarkerClusterer } from '../../map/map/extra/marker-clusterer';
|
|
2
2
|
import type { MarkerOverlay } from '../../map/map/overlay/marker';
|
|
3
|
-
declare const TgMarkerClusterer: import("vue").DefineComponent<{
|
|
3
|
+
declare const TgMarkerClusterer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
gridSize: {
|
|
5
5
|
type: import("vue").PropType<number>;
|
|
6
6
|
};
|
|
@@ -14,7 +14,7 @@ declare const TgMarkerClusterer: import("vue").DefineComponent<{
|
|
|
14
14
|
type: import("vue").PropType<boolean>;
|
|
15
15
|
};
|
|
16
16
|
styles: {
|
|
17
|
-
type: import("vue").PropType<import("
|
|
17
|
+
type: import("vue").PropType<import("../index.ts").ClusterIconStyle[]>;
|
|
18
18
|
};
|
|
19
19
|
stylesIndexCalculator: {
|
|
20
20
|
type: import("vue").PropType<(markersLength: number, stylesLength: number) => number>;
|
|
@@ -22,17 +22,17 @@ declare const TgMarkerClusterer: import("vue").DefineComponent<{
|
|
|
22
22
|
zIndex: {
|
|
23
23
|
type: import("vue").PropType<number>;
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}>, {
|
|
26
26
|
clusterer: MarkerClusterer;
|
|
27
27
|
markers: MarkerOverlay[];
|
|
28
|
-
},
|
|
28
|
+
}, {}, {}, {
|
|
29
29
|
/** TgMarker有可能在该组件未初始化之前调用, 需要通过该方法判断 */
|
|
30
30
|
isInitiated(): boolean;
|
|
31
31
|
onAddMarker(marker: MarkerOverlay): void;
|
|
32
32
|
onRemoveMarker(marker: MarkerOverlay): void;
|
|
33
33
|
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
34
34
|
recreate(): void;
|
|
35
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
35
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
36
|
gridSize: {
|
|
37
37
|
type: import("vue").PropType<number>;
|
|
38
38
|
};
|
|
@@ -46,7 +46,7 @@ declare const TgMarkerClusterer: import("vue").DefineComponent<{
|
|
|
46
46
|
type: import("vue").PropType<boolean>;
|
|
47
47
|
};
|
|
48
48
|
styles: {
|
|
49
|
-
type: import("vue").PropType<import("
|
|
49
|
+
type: import("vue").PropType<import("../index.ts").ClusterIconStyle[]>;
|
|
50
50
|
};
|
|
51
51
|
stylesIndexCalculator: {
|
|
52
52
|
type: import("vue").PropType<(markersLength: number, stylesLength: number) => number>;
|
|
@@ -54,7 +54,7 @@ declare const TgMarkerClusterer: import("vue").DefineComponent<{
|
|
|
54
54
|
zIndex: {
|
|
55
55
|
type: import("vue").PropType<number>;
|
|
56
56
|
};
|
|
57
|
-
}
|
|
57
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
58
58
|
/** TgMarkerClusterer作为构造器, 创建的Vue实例类型 */
|
|
59
59
|
type TgMarkerClusterer = InstanceType<typeof TgMarkerClusterer>;
|
|
60
60
|
export default TgMarkerClusterer;
|
|
@@ -38,6 +38,7 @@ export * from '../map/map/overlay/rectangle';
|
|
|
38
38
|
export * from '../map/types';
|
|
39
39
|
export * from '../utils/arrays';
|
|
40
40
|
export * from '../utils/mapped-types';
|
|
41
|
+
export * from '../utils/maps-utils';
|
|
41
42
|
export { Objects } from '../utils/objects';
|
|
42
43
|
export * from '../utils/spherical-utils';
|
|
43
44
|
export * from '../utils/strings';
|
|
@@ -3,5 +3,5 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
3
3
|
layer: TrafficLayer;
|
|
4
4
|
}, {}, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
5
5
|
recreate(): void;
|
|
6
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
6
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
7
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { type Ref } from 'vue';
|
|
|
2
2
|
import { type AbstractMap } from '.';
|
|
3
3
|
/** 作为Vue3下, `MapMixin`的替代 */
|
|
4
4
|
export declare function useTgMapInner(): {
|
|
5
|
-
mapRef: Ref<AbstractMap | undefined>;
|
|
5
|
+
mapRef: Ref<AbstractMap | undefined, AbstractMap | undefined>;
|
|
6
6
|
/** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
|
|
7
7
|
readonly map: AbstractMap;
|
|
8
8
|
/** 地图元素创建回调 */
|
|
@@ -17,5 +17,5 @@ declare module 'vue' {
|
|
|
17
17
|
/** @deprecated 使用{@link useTgMapInner}替代 */
|
|
18
18
|
declare const MapMixin: import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
19
19
|
recreate(): void;
|
|
20
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
20
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
21
|
export default MapMixin;
|
|
@@ -5,7 +5,7 @@ type TgCircleEmits = {
|
|
|
5
5
|
'update:center': LatLng;
|
|
6
6
|
'update:radius': number;
|
|
7
7
|
};
|
|
8
|
-
declare const _default: import("vue").DefineComponent<{
|
|
8
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
9
|
center: {
|
|
10
10
|
type: import("vue").PropType<LatLng>;
|
|
11
11
|
required: true;
|
|
@@ -38,9 +38,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
38
|
fillOpacity: {
|
|
39
39
|
type: import("vue").PropType<number>;
|
|
40
40
|
};
|
|
41
|
-
'onUpdate:center': import("vue").Prop<import("
|
|
42
|
-
'onUpdate:radius': import("vue").Prop<import("
|
|
43
|
-
}
|
|
41
|
+
'onUpdate:center': import("vue").Prop<import("../index.ts").EventCallback<LatLng>>;
|
|
42
|
+
'onUpdate:radius': import("vue").Prop<import("../index.ts").EventCallback<number>>;
|
|
43
|
+
}>, {
|
|
44
44
|
attrs: import("vue").ComputedRef<{
|
|
45
45
|
binds: Record<string, unknown>;
|
|
46
46
|
listeners: Record<string, unknown>;
|
|
@@ -49,9 +49,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
overlay: CircleOverlay;
|
|
50
50
|
emittedRadius: number | undefined;
|
|
51
51
|
emittedCenter: LatLng | undefined;
|
|
52
|
-
},
|
|
52
|
+
}, {}, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
53
53
|
recreate(): void;
|
|
54
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
54
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, EventEmits<CircleEventMap & TgCircleEmits>, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
55
|
center: {
|
|
56
56
|
type: import("vue").PropType<LatLng>;
|
|
57
57
|
required: true;
|
|
@@ -84,18 +84,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
fillOpacity: {
|
|
85
85
|
type: import("vue").PropType<number>;
|
|
86
86
|
};
|
|
87
|
-
'onUpdate:center': import("vue").Prop<import("
|
|
88
|
-
'onUpdate:radius': import("vue").Prop<import("
|
|
89
|
-
}>> & {
|
|
90
|
-
onClick?: ((event: import("
|
|
91
|
-
onDblclick?: ((event: import("
|
|
92
|
-
onMousedown?: ((event: import("
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
'onUpdate:center': import("vue").Prop<import("../index.ts").EventCallback<LatLng>>;
|
|
88
|
+
'onUpdate:radius': import("vue").Prop<import("../index.ts").EventCallback<number>>;
|
|
89
|
+
}>> & Readonly<{
|
|
90
|
+
onClick?: ((event: import("../index.ts").Tg.Event) => any) | undefined;
|
|
91
|
+
onDblclick?: ((event: import("../index.ts").Tg.Event) => any) | undefined;
|
|
92
|
+
onMousedown?: ((event: import("../index.ts").Tg.MouseEvent) => any) | undefined;
|
|
93
|
+
onMouseup?: ((event: import("../index.ts").Tg.MouseEvent) => any) | undefined;
|
|
94
|
+
onMouseout?: ((event: import("../index.ts").Tg.MouseEvent) => any) | undefined;
|
|
95
|
+
onMouseover?: ((event: import("../index.ts").Tg.MouseEvent) => any) | undefined;
|
|
96
|
+
"onRadius-changed"?: ((event: import("../index.ts").Tg.Event) => any) | undefined;
|
|
97
|
+
"onCenter-changed"?: ((event: import("../index.ts").Tg.Event) => any) | undefined;
|
|
96
98
|
"onUpdate:center"?: ((event: LatLng) => any) | undefined;
|
|
97
|
-
"onCenter-changed"?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
98
99
|
"onUpdate:radius"?: ((event: number) => any) | undefined;
|
|
99
|
-
|
|
100
|
-
}, {}, {}>;
|
|
100
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
101
|
export default _default;
|
|
@@ -10,32 +10,32 @@ declare class SimpleElementOverlay extends ElementOverlay {
|
|
|
10
10
|
protected onDraw(projection: OverlayProjection): void;
|
|
11
11
|
setPosition(position: LatLng): void;
|
|
12
12
|
}
|
|
13
|
-
declare const TgElementOverlay: import("vue").DefineComponent<{
|
|
13
|
+
declare const TgElementOverlay: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
14
|
mapPane: {
|
|
15
|
-
type: import("vue").PropType<import("
|
|
15
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof MapPane>>;
|
|
16
16
|
default: MapPane;
|
|
17
17
|
};
|
|
18
18
|
position: {
|
|
19
19
|
type: import("vue").PropType<LatLng>;
|
|
20
20
|
required: true;
|
|
21
21
|
};
|
|
22
|
-
}
|
|
22
|
+
}>, {
|
|
23
23
|
overlay: SimpleElementOverlay;
|
|
24
|
-
},
|
|
24
|
+
}, {}, {}, {
|
|
25
25
|
content(): HTMLElement;
|
|
26
26
|
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
27
27
|
recreate(): void;
|
|
28
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
28
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
mapPane: {
|
|
30
|
-
type: import("vue").PropType<import("
|
|
30
|
+
type: import("vue").PropType<import("../index.ts").StringEnumValue<typeof MapPane>>;
|
|
31
31
|
default: MapPane;
|
|
32
32
|
};
|
|
33
33
|
position: {
|
|
34
34
|
type: import("vue").PropType<LatLng>;
|
|
35
35
|
required: true;
|
|
36
36
|
};
|
|
37
|
-
}
|
|
38
|
-
mapPane: import("
|
|
39
|
-
}, {}>;
|
|
37
|
+
}>> & Readonly<{}>, {
|
|
38
|
+
mapPane: import("../index.ts").StringEnumValue<typeof MapPane>;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
40
|
type TgElementOverlay = InstanceType<typeof TgElementOverlay>;
|
|
41
41
|
export default TgElementOverlay;
|
|
@@ -7,26 +7,13 @@ type TgInfoBoxEmits = {
|
|
|
7
7
|
'update:show': boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const TgInfoBox: import("vue").DefineComponent<{
|
|
10
|
-
show:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
offset: {
|
|
18
|
-
type: import("vue").PropType<any>;
|
|
19
|
-
};
|
|
20
|
-
maxWidth: {
|
|
21
|
-
type: import("vue").PropType<number>;
|
|
22
|
-
};
|
|
23
|
-
borderClass: {
|
|
24
|
-
type: import("vue").PropType<string>;
|
|
25
|
-
};
|
|
26
|
-
zIndex: {
|
|
27
|
-
type: import("vue").PropType<number>;
|
|
28
|
-
};
|
|
29
|
-
'onUpdate:show': import("vue").Prop<import("..").EventCallback<boolean>>;
|
|
10
|
+
show: boolean;
|
|
11
|
+
maxWidth?: number | undefined;
|
|
12
|
+
zIndex?: number | undefined;
|
|
13
|
+
position?: LatLng | undefined;
|
|
14
|
+
offset?: any;
|
|
15
|
+
'onUpdate:show'?: (import("..").EventCallback<boolean> & ((event: boolean) => any)) | undefined;
|
|
16
|
+
borderClass?: string | undefined;
|
|
30
17
|
}, {
|
|
31
18
|
attrs: import("vue").ComputedRef<{
|
|
32
19
|
binds: Record<string, unknown>;
|
|
@@ -34,7 +21,7 @@ declare const TgInfoBox: import("vue").DefineComponent<{
|
|
|
34
21
|
listenerProps: Record<string, unknown>;
|
|
35
22
|
}>;
|
|
36
23
|
overlay: InfoBoxOverlay;
|
|
37
|
-
},
|
|
24
|
+
}, {}, {}, {
|
|
38
25
|
getOptions(): InfoBoxOptions;
|
|
39
26
|
content(): HTMLElement;
|
|
40
27
|
$marker(): TgMarkerPublicInstance | undefined;
|
|
@@ -42,29 +29,16 @@ declare const TgInfoBox: import("vue").DefineComponent<{
|
|
|
42
29
|
close(): void;
|
|
43
30
|
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
44
31
|
recreate(): void;
|
|
45
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
46
|
-
show:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
type: import("vue").PropType<any>;
|
|
55
|
-
};
|
|
56
|
-
maxWidth: {
|
|
57
|
-
type: import("vue").PropType<number>;
|
|
58
|
-
};
|
|
59
|
-
borderClass: {
|
|
60
|
-
type: import("vue").PropType<string>;
|
|
61
|
-
};
|
|
62
|
-
zIndex: {
|
|
63
|
-
type: import("vue").PropType<number>;
|
|
64
|
-
};
|
|
65
|
-
'onUpdate:show': import("vue").Prop<import("..").EventCallback<boolean>>;
|
|
66
|
-
}>> & {
|
|
32
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, EventEmits<TgInfoBoxEmits>, string, import("vue").PublicProps, Readonly<{
|
|
33
|
+
show: boolean;
|
|
34
|
+
maxWidth?: number | undefined;
|
|
35
|
+
zIndex?: number | undefined;
|
|
36
|
+
position?: LatLng | undefined;
|
|
37
|
+
offset?: any;
|
|
38
|
+
'onUpdate:show'?: (import("..").EventCallback<boolean> & ((event: boolean) => any)) | undefined;
|
|
39
|
+
borderClass?: string | undefined;
|
|
40
|
+
}> & Readonly<{
|
|
67
41
|
"onUpdate:show"?: ((event: boolean) => any) | undefined;
|
|
68
|
-
}, {}, {}>;
|
|
69
|
-
type TgInfoBox = InstanceType<typeof TgInfoBox>;
|
|
42
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
43
|
+
type TgInfoBox = Omit<InstanceType<typeof TgInfoBox>, '$options'>;
|
|
70
44
|
export default TgInfoBox;
|
|
@@ -6,23 +6,15 @@ type TgInfoWindowEmits = {
|
|
|
6
6
|
'update:show': boolean;
|
|
7
7
|
};
|
|
8
8
|
declare const TgInfoWindow: import("vue").DefineComponent<{
|
|
9
|
-
show:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
offset: {
|
|
20
|
-
type: import("vue").PropType<any>;
|
|
21
|
-
};
|
|
22
|
-
disableAutoPan: {
|
|
23
|
-
type: import("vue").PropType<boolean>;
|
|
24
|
-
};
|
|
25
|
-
'onUpdate:show': import("vue").Prop<import("..").EventCallback<boolean>>;
|
|
9
|
+
show: boolean;
|
|
10
|
+
maxWidth?: number | undefined;
|
|
11
|
+
disableAutoPan?: boolean | undefined;
|
|
12
|
+
position?: LatLng | undefined;
|
|
13
|
+
offset?: any;
|
|
14
|
+
'onUpdate:show'?: (import("..").EventCallback<boolean> & ((event: boolean) => any)) | undefined;
|
|
15
|
+
onCloseclick?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
16
|
+
onOpen?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
17
|
+
onClose?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
26
18
|
}, {
|
|
27
19
|
attrs: import("vue").ComputedRef<{
|
|
28
20
|
binds: Record<string, unknown>;
|
|
@@ -30,35 +22,27 @@ declare const TgInfoWindow: import("vue").DefineComponent<{
|
|
|
30
22
|
listenerProps: Record<string, unknown>;
|
|
31
23
|
}>;
|
|
32
24
|
overlay: InfoWindowOverlay;
|
|
33
|
-
},
|
|
25
|
+
}, {}, {}, {
|
|
34
26
|
content(): HTMLElement;
|
|
35
27
|
$marker(): TgMarkerPublicInstance | undefined;
|
|
36
28
|
getOptions(): InfoWindowOptions;
|
|
37
29
|
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
38
30
|
recreate(): void;
|
|
39
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
40
|
-
show:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
47
|
-
maxWidth: {
|
|
48
|
-
type: import("vue").PropType<number>;
|
|
49
|
-
};
|
|
50
|
-
offset: {
|
|
51
|
-
type: import("vue").PropType<any>;
|
|
52
|
-
};
|
|
53
|
-
disableAutoPan: {
|
|
54
|
-
type: import("vue").PropType<boolean>;
|
|
55
|
-
};
|
|
56
|
-
'onUpdate:show': import("vue").Prop<import("..").EventCallback<boolean>>;
|
|
57
|
-
}>> & {
|
|
58
|
-
"onUpdate:show"?: ((event: boolean) => any) | undefined;
|
|
31
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, EventEmits<InfoWindowEventMap & TgInfoWindowEmits>, string, import("vue").PublicProps, Readonly<{
|
|
32
|
+
show: boolean;
|
|
33
|
+
maxWidth?: number | undefined;
|
|
34
|
+
disableAutoPan?: boolean | undefined;
|
|
35
|
+
position?: LatLng | undefined;
|
|
36
|
+
offset?: any;
|
|
37
|
+
'onUpdate:show'?: (import("..").EventCallback<boolean> & ((event: boolean) => any)) | undefined;
|
|
59
38
|
onCloseclick?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
60
39
|
onOpen?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
61
40
|
onClose?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
62
|
-
}
|
|
63
|
-
|
|
41
|
+
}> & Readonly<{
|
|
42
|
+
onCloseclick?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
43
|
+
onOpen?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
44
|
+
onClose?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
45
|
+
"onUpdate:show"?: ((event: boolean) => any) | undefined;
|
|
46
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
type TgInfoWindow = Omit<InstanceType<typeof TgInfoWindow>, '$options'>;
|
|
64
48
|
export default TgInfoWindow;
|
|
@@ -4,7 +4,7 @@ import type { LabelEventMap, LabelOptions, LabelOverlay } from '../../map/map/ov
|
|
|
4
4
|
import type { Marker } from '../../map/map/overlay/marker';
|
|
5
5
|
import { type EventEmits } from '../../utils/vue-utils';
|
|
6
6
|
import { type TgMarkerPublicInstance } from './TgMarker.vue';
|
|
7
|
-
declare const TgLabel: import("vue").DefineComponent<{
|
|
7
|
+
declare const TgLabel: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
position: {
|
|
9
9
|
type: import("vue").PropType<LatLng>;
|
|
10
10
|
};
|
|
@@ -17,21 +17,21 @@ declare const TgLabel: import("vue").DefineComponent<{
|
|
|
17
17
|
mapPane: {
|
|
18
18
|
type: import("vue").PropType<import("..").StringEnumValue<typeof MapPane>>;
|
|
19
19
|
};
|
|
20
|
-
}
|
|
20
|
+
}>, {
|
|
21
21
|
attrs: import("vue").ComputedRef<{
|
|
22
22
|
binds: Record<string, unknown>;
|
|
23
23
|
listeners: Record<string, unknown>;
|
|
24
24
|
listenerProps: Record<string, unknown>;
|
|
25
25
|
}>;
|
|
26
26
|
overlay: LabelOverlay;
|
|
27
|
-
},
|
|
27
|
+
}, {}, {}, {
|
|
28
28
|
content(): HTMLElement;
|
|
29
29
|
marker(): Marker | undefined;
|
|
30
30
|
$marker(): TgMarkerPublicInstance | undefined;
|
|
31
31
|
getOptions(): LabelOptions;
|
|
32
32
|
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
33
33
|
recreate(): void;
|
|
34
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").
|
|
34
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, import("vue").ComponentOptionsMixin, EventEmits<LabelEventMap>, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
35
|
position: {
|
|
36
36
|
type: import("vue").PropType<LatLng>;
|
|
37
37
|
};
|
|
@@ -44,8 +44,8 @@ declare const TgLabel: import("vue").DefineComponent<{
|
|
|
44
44
|
mapPane: {
|
|
45
45
|
type: import("vue").PropType<import("..").StringEnumValue<typeof MapPane>>;
|
|
46
46
|
};
|
|
47
|
-
}>> & {
|
|
47
|
+
}>> & Readonly<{
|
|
48
48
|
onClick?: ((event: import("..").Tg.Event) => any) | undefined;
|
|
49
|
-
}, {}, {}>;
|
|
50
|
-
type TgLabel = InstanceType<typeof TgLabel>;
|
|
49
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
50
|
+
type TgLabel = Omit<InstanceType<typeof TgLabel>, '$options'>;
|
|
51
51
|
export default TgLabel;
|