tg-map-vue3 3.0.2 → 3.0.4

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.
Files changed (34) hide show
  1. package/dist/src/components/TgMap.vue.d.ts +142 -33
  2. package/dist/src/components/TgMapWidget.vue.d.ts +3 -5
  3. package/dist/src/components/controls/TgCustomControl.vue.d.ts +14 -11
  4. package/dist/src/components/controls/TgMapTypeControl.vue.d.ts +29 -11
  5. package/dist/src/components/controls/TgScaleControl.vue.d.ts +17 -9
  6. package/dist/src/components/controls/TgZoomControl.vue.d.ts +17 -9
  7. package/dist/src/components/extra/TgMarkerClusterer.vue.d.ts +51 -39
  8. package/dist/src/components/index.d.ts +1 -1
  9. package/dist/src/components/layers/TgTrafficLayer.vue.d.ts +4 -6
  10. package/dist/src/components/map-mixin.d.ts +2 -4
  11. package/dist/src/components/overlays/TgCircle.vue.d.ts +76 -19
  12. package/dist/src/components/overlays/TgElementOverlay.vue.d.ts +25 -14
  13. package/dist/src/components/overlays/TgInfoBox.vue.d.ts +52 -20
  14. package/dist/src/components/overlays/TgInfoWindow.vue.d.ts +46 -19
  15. package/dist/src/components/overlays/TgLabel.vue.d.ts +32 -13
  16. package/dist/src/components/overlays/TgMarker.vue.d.ts +176 -50
  17. package/dist/src/components/overlays/TgPolygon.vue.d.ts +69 -18
  18. package/dist/src/components/overlays/TgPolyline.vue.d.ts +57 -16
  19. package/dist/src/map/event.d.ts +1 -2
  20. package/dist/src/map/map/baidu-map.d.ts +2 -2
  21. package/dist/src/map/map/map-options.d.ts +2 -1
  22. package/dist/src/map/map/map-type.d.ts +1 -0
  23. package/dist/src/map/map/overlay/baidu-info-box.d.ts +1 -0
  24. package/dist/src/map/map/overlay/element-overlay.d.ts +1 -0
  25. package/dist/src/utils/formatter.d.ts +1 -1
  26. package/dist/src/utils/lifecycle-log.d.ts +1 -1
  27. package/dist/src/utils/mapped-types.d.ts +3 -3
  28. package/dist/src/utils/vue-utils.d.ts +71 -19
  29. package/dist/style.css +1 -1
  30. package/dist/tg-map.js +1117 -1091
  31. package/dist/tg-map.js.map +1 -1
  32. package/dist/tg-map.umd.cjs +4 -4
  33. package/dist/tg-map.umd.cjs.map +1 -1
  34. package/package.json +7 -6
@@ -1,8 +1,5 @@
1
- /// <reference path="../map-mixin.d.ts" />
2
- /// <reference types="@/global" />
3
- import { type Props } from '../../utils/vue-utils';
4
1
  import { LatLng } from '../../map/lat-lng';
5
- import { type ElementOverlayOptions, ElementOverlay, type OverlayProjection } from '../../map/map/overlay/element-overlay';
2
+ import { type ElementOverlayOptions, MapPane, ElementOverlay, type OverlayProjection } from '../../map/map/overlay/element-overlay';
6
3
  import type { AbstractMap } from '../../map/map/map';
7
4
  /** ElementOverlay的简单实现 */
8
5
  declare class SimpleElementOverlay extends ElementOverlay {
@@ -13,18 +10,32 @@ declare class SimpleElementOverlay extends ElementOverlay {
13
10
  protected onDraw(projection: OverlayProjection): void;
14
11
  setPosition(position: LatLng): void;
15
12
  }
16
- declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<ElementOverlayOptions & {
17
- position: LatLng;
18
- }>, {
13
+ declare const TgElementOverlay: import("vue").DefineComponent<{
14
+ mapPane: {
15
+ type: import("vue").PropType<MapPane>;
16
+ default: MapPane;
17
+ };
18
+ position: {
19
+ type: import("vue").PropType<LatLng>;
20
+ required: true;
21
+ };
22
+ }, {
19
23
  overlay: SimpleElementOverlay;
20
24
  }, unknown, {}, {
21
25
  content(): HTMLElement;
22
- }, import('./@vue/compat').DefineComponent<{}, {}, {}, {}, {
26
+ }, import("vue").DefineComponent<{}, {}, {}, {}, {
23
27
  recreate(): void;
24
- }, import('./@vue/compat').ComponentOptionsMixin, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<{}>>, {}>, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<Props<ElementOverlayOptions & {
25
- position: LatLng;
26
- }>>>, {
27
- position: any;
28
- mapPane: any;
28
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ mapPane: {
30
+ type: import("vue").PropType<MapPane>;
31
+ default: MapPane;
32
+ };
33
+ position: {
34
+ type: import("vue").PropType<LatLng>;
35
+ required: true;
36
+ };
37
+ }>>, {
38
+ mapPane: MapPane;
29
39
  }>;
30
- export default _sfc_main;
40
+ type TgElementOverlay = InstanceType<typeof TgElementOverlay>;
41
+ export default TgElementOverlay;
@@ -1,29 +1,61 @@
1
- /// <reference path="../map-mixin.d.ts" />
2
- /// <reference types="@/global" />
3
- import { type Props } from '../../utils/vue-utils';
4
- import { type TgMarkerInstanceType } from './TgMarker.vue';
1
+ import { LatLng } from '../../map/lat-lng';
2
+ import { type TgMarkerPublicInstance } from './TgMarker.vue';
5
3
  import type { InfoBoxOverlay, InfoBoxOptions } from '../../map/map/overlay/info-box';
6
4
  import type { MarkerOverlay } from '../../map/map/overlay/marker';
7
- declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<Omit<InfoBoxOptions, "content"> & {
8
- show: boolean;
9
- }>, {
5
+ declare const TgInfoBox: import("vue").DefineComponent<{
6
+ show: {
7
+ type: import("vue").PropType<boolean>;
8
+ required: true;
9
+ };
10
+ position: {
11
+ type: import("vue").PropType<LatLng>;
12
+ };
13
+ offset: {
14
+ type: import("vue").PropType<any>;
15
+ };
16
+ maxWidth: {
17
+ type: import("vue").PropType<number>;
18
+ };
19
+ borderClass: {
20
+ type: import("vue").PropType<string>;
21
+ };
22
+ zIndex: {
23
+ type: import("vue").PropType<number>;
24
+ };
25
+ }, {
26
+ attrs: {
27
+ binds: Record<string, unknown>;
28
+ listeners: Record<string, unknown>;
29
+ };
10
30
  overlay: InfoBoxOverlay;
11
31
  }, unknown, {}, {
12
32
  getOptions(): InfoBoxOptions;
13
33
  content(): HTMLElement;
14
- $marker(): TgMarkerInstanceType | undefined;
34
+ $marker(): TgMarkerPublicInstance | undefined;
15
35
  open(marker?: MarkerOverlay): void;
16
36
  close(): void;
17
- }, import('./@vue/compat').DefineComponent<{}, {}, {}, {}, {
37
+ }, import("vue").DefineComponent<{}, {}, {}, {}, {
18
38
  recreate(): void;
19
- }, import('./@vue/compat').ComponentOptionsMixin, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<{}>>, {}>, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<Props<Omit<InfoBoxOptions, "content"> & {
20
- show: boolean;
21
- }>>>, {
22
- maxWidth?: any;
23
- zIndex?: any;
24
- show: any;
25
- position?: any;
26
- offset?: any;
27
- borderClass?: any;
28
- }>;
29
- export default _sfc_main;
39
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
40
+ show: {
41
+ type: import("vue").PropType<boolean>;
42
+ required: true;
43
+ };
44
+ position: {
45
+ type: import("vue").PropType<LatLng>;
46
+ };
47
+ offset: {
48
+ type: import("vue").PropType<any>;
49
+ };
50
+ maxWidth: {
51
+ type: import("vue").PropType<number>;
52
+ };
53
+ borderClass: {
54
+ type: import("vue").PropType<string>;
55
+ };
56
+ zIndex: {
57
+ type: import("vue").PropType<number>;
58
+ };
59
+ }>>, {}>;
60
+ type TgInfoBox = InstanceType<typeof TgInfoBox>;
61
+ export default TgInfoBox;
@@ -1,25 +1,52 @@
1
- /// <reference path="../map-mixin.d.ts" />
2
- /// <reference types="@/global" />
3
- import { type Props } from '../../utils/vue-utils';
1
+ import { LatLng } from '../../map/lat-lng';
4
2
  import type { InfoWindowOverlay, InfoWindowOptions } from '../../map/map/overlay/info-window';
5
- import { type TgMarkerInstanceType } from './TgMarker.vue';
6
- declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<Omit<InfoWindowOptions, "content"> & {
7
- show: boolean;
8
- }>, {
3
+ import { type TgMarkerPublicInstance } from './TgMarker.vue';
4
+ declare const TgInfoWindow: import("vue").DefineComponent<{
5
+ show: {
6
+ type: import("vue").PropType<boolean>;
7
+ required: true;
8
+ };
9
+ position: {
10
+ type: import("vue").PropType<LatLng>;
11
+ };
12
+ maxWidth: {
13
+ type: import("vue").PropType<number>;
14
+ };
15
+ offset: {
16
+ type: import("vue").PropType<any>;
17
+ };
18
+ disableAutoPan: {
19
+ type: import("vue").PropType<boolean>;
20
+ };
21
+ }, {
22
+ attrs: {
23
+ binds: Record<string, unknown>;
24
+ listeners: Record<string, unknown>;
25
+ };
9
26
  overlay: InfoWindowOverlay;
10
27
  }, unknown, {}, {
11
28
  content(): HTMLElement;
12
- $marker(): TgMarkerInstanceType | undefined;
29
+ $marker(): TgMarkerPublicInstance | undefined;
13
30
  getOptions(): InfoWindowOptions;
14
- }, import('./@vue/compat').DefineComponent<{}, {}, {}, {}, {
31
+ }, import("vue").DefineComponent<{}, {}, {}, {}, {
15
32
  recreate(): void;
16
- }, import('./@vue/compat').ComponentOptionsMixin, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<{}>>, {}>, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<Props<Omit<InfoWindowOptions, "content"> & {
17
- show: boolean;
18
- }>>>, {
19
- maxWidth?: any;
20
- disableAutoPan?: any;
21
- show: any;
22
- position?: any;
23
- offset?: any;
24
- }>;
25
- export default _sfc_main;
33
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
34
+ show: {
35
+ type: import("vue").PropType<boolean>;
36
+ required: true;
37
+ };
38
+ position: {
39
+ type: import("vue").PropType<LatLng>;
40
+ };
41
+ maxWidth: {
42
+ type: import("vue").PropType<number>;
43
+ };
44
+ offset: {
45
+ type: import("vue").PropType<any>;
46
+ };
47
+ disableAutoPan: {
48
+ type: import("vue").PropType<boolean>;
49
+ };
50
+ }>>, {}>;
51
+ type TgInfoWindow = InstanceType<typeof TgInfoWindow>;
52
+ export default TgInfoWindow;
@@ -1,21 +1,40 @@
1
- /// <reference path="../map-mixin.d.ts" />
2
- /// <reference types="@/global" />
3
- import { type Props } from '../../utils/vue-utils';
1
+ import { LatLng } from '../../map/lat-lng';
4
2
  import type { LabelOptions, LabelOverlay } from '../../map/map/overlay/label';
5
- import { type TgMarkerInstanceType } from './TgMarker.vue';
3
+ import { type TgMarkerPublicInstance } from './TgMarker.vue';
6
4
  import type { Marker } from '../../map/map/overlay/marker';
7
- declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<Omit<LabelOptions, "content">>, {
5
+ declare const TgLabel: import("vue").DefineComponent<{
6
+ position: {
7
+ type: import("vue").PropType<LatLng>;
8
+ };
9
+ offset: {
10
+ type: import("vue").PropType<any>;
11
+ };
12
+ zIndex: {
13
+ type: import("vue").PropType<number>;
14
+ };
15
+ }, {
16
+ attrs: {
17
+ binds: Record<string, unknown>;
18
+ listeners: Record<string, unknown>;
19
+ };
8
20
  overlay: LabelOverlay;
9
21
  }, unknown, {}, {
10
22
  content(): HTMLElement;
11
23
  marker(): Marker | undefined;
12
- $marker(): TgMarkerInstanceType | undefined;
24
+ $marker(): TgMarkerPublicInstance | undefined;
13
25
  getOptions(): LabelOptions;
14
- }, import('./@vue/compat').DefineComponent<{}, {}, {}, {}, {
26
+ }, import("vue").DefineComponent<{}, {}, {}, {}, {
15
27
  recreate(): void;
16
- }, import('./@vue/compat').ComponentOptionsMixin, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<{}>>, {}>, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<Props<Omit<LabelOptions, "content">>>>, {
17
- zIndex?: any;
18
- position?: any;
19
- offset?: any;
20
- }>;
21
- export default _sfc_main;
28
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ position: {
30
+ type: import("vue").PropType<LatLng>;
31
+ };
32
+ offset: {
33
+ type: import("vue").PropType<any>;
34
+ };
35
+ zIndex: {
36
+ type: import("vue").PropType<number>;
37
+ };
38
+ }>>, {}>;
39
+ type TgLabel = InstanceType<typeof TgLabel>;
40
+ export default TgLabel;
@@ -1,60 +1,186 @@
1
- /// <reference path="../map-mixin.d.ts" />
2
- /// <reference types="@/global" />
3
- import { type MarkerOverlay, type MarkerOptions, type Marker } from '../../map/map/overlay/marker';
4
- import { type Props } from '../../utils/vue-utils';
5
- import { type TgMarkerClustererInstanceType } from '../extra/TgMarkerClusterer.vue';
6
- import type { LabelOverlay } from '../../map/map/overlay/label';
7
- type Info = {
8
- open(anchor?: Marker): void;
9
- close(): void;
10
- };
11
- type TgInfo = {
12
- show?: boolean;
13
- overlay: Info;
14
- };
15
- declare const TgMarker: import('./@vue/compat').DefineComponent<Props<MarkerOptions>, {
1
+ import { LatLng } from '../../map/lat-lng';
2
+ import { type MarkerOverlay } from '../../map/map/overlay/marker';
3
+ import TgMarkerClusterer from '../extra/TgMarkerClusterer.vue';
4
+ import type TgLabel from './TgLabel.vue';
5
+ import type TgInfoWindow from './TgInfoWindow.vue';
6
+ import type TgInfoBox from './TgInfoBox.vue';
7
+ declare const TgMarker: import("vue").DefineComponent<{
8
+ position: {
9
+ type: import("vue").PropType<LatLng>;
10
+ required: true;
11
+ };
12
+ title: {
13
+ type: import("vue").PropType<string>;
14
+ };
15
+ icon: {
16
+ type: import("vue").PropType<any>;
17
+ };
18
+ clickable: {
19
+ type: import("vue").PropType<boolean>;
20
+ };
21
+ draggable: {
22
+ type: import("vue").PropType<boolean>;
23
+ };
24
+ crossOnDrag: {
25
+ type: import("vue").PropType<boolean>;
26
+ };
27
+ cursor: {
28
+ type: import("vue").PropType<string>;
29
+ };
30
+ zIndex: {
31
+ type: import("vue").PropType<number>;
32
+ };
33
+ visible: {
34
+ type: import("vue").PropType<boolean>;
35
+ };
36
+ }, {
37
+ attrs: {
38
+ binds: Record<string, unknown>;
39
+ listeners: Record<string, unknown>;
40
+ };
16
41
  marker: MarkerOverlay;
42
+ label: ({
43
+ $: import("vue").ComponentInternalInstance;
44
+ $data: {};
45
+ $props: Partial<{} & {}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & Readonly<import("vue").ExtractPropTypes<{
46
+ position: {
47
+ type: import("vue").PropType<LatLng>;
48
+ };
49
+ offset: {
50
+ type: import("vue").PropType<any>;
51
+ };
52
+ zIndex: {
53
+ type: import("vue").PropType<number>;
54
+ };
55
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
56
+ $attrs: {
57
+ [x: string]: unknown;
58
+ };
59
+ $refs: {
60
+ [x: string]: unknown;
61
+ };
62
+ $slots: Readonly<{
63
+ [name: string]: import("vue").Slot | undefined;
64
+ }>;
65
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
66
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
67
+ $emit: (event: string, ...args: any[]) => void;
68
+ $el: any;
69
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
70
+ position: {
71
+ type: import("vue").PropType<LatLng>;
72
+ };
73
+ offset: {
74
+ type: import("vue").PropType<any>;
75
+ };
76
+ zIndex: {
77
+ type: import("vue").PropType<number>;
78
+ };
79
+ }>>, {
80
+ attrs: {
81
+ binds: Record<string, unknown>;
82
+ listeners: Record<string, unknown>;
83
+ };
84
+ overlay: import("../../map/map/overlay/label").LabelOverlay;
85
+ }, unknown, {}, {
86
+ content(): HTMLElement;
87
+ marker(): import("../../map/map/overlay/marker").Marker | undefined;
88
+ $marker(): TgMarkerPublicInstance | undefined;
89
+ getOptions(): import("../../map/map/overlay/label").LabelOptions;
90
+ }, import("vue").DefineComponent<{}, {}, {}, {}, {
91
+ recreate(): void;
92
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
93
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
94
+ created?: ((() => void) | (() => void)[]) | undefined;
95
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
96
+ mounted?: ((() => void) | (() => void)[]) | undefined;
97
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
98
+ updated?: ((() => void) | (() => void)[]) | undefined;
99
+ activated?: ((() => void) | (() => void)[]) | undefined;
100
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
101
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
102
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
103
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
104
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
105
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
106
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
107
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
108
+ };
109
+ $forceUpdate: () => void;
110
+ $nextTick: typeof import("vue").nextTick;
111
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
112
+ } & Readonly<import("vue").ExtractPropTypes<{}>> & Readonly<import("vue").ExtractPropTypes<{
113
+ position: {
114
+ type: import("vue").PropType<LatLng>;
115
+ };
116
+ offset: {
117
+ type: import("vue").PropType<any>;
118
+ };
119
+ zIndex: {
120
+ type: import("vue").PropType<number>;
121
+ };
122
+ }>> & import("vue").ShallowUnwrapRef<{
123
+ attrs: {
124
+ binds: Record<string, unknown>;
125
+ listeners: Record<string, unknown>;
126
+ };
127
+ overlay: import("../../map/map/overlay/label").LabelOverlay;
128
+ }> & {} & {
129
+ recreate(): void;
130
+ } & {
131
+ content(): HTMLElement;
132
+ marker(): import("../../map/map/overlay/marker").Marker | undefined;
133
+ $marker(): TgMarkerPublicInstance | undefined;
134
+ getOptions(): import("../../map/map/overlay/label").LabelOptions;
135
+ } & import("vue").ComponentCustomProperties & {}) | undefined;
136
+ info: TgInfo | undefined;
17
137
  }, unknown, {}, {
18
- $clusterer(): TgMarkerClustererInstanceType | undefined;
19
- onAddLabel(label: LabelOverlay): void;
20
- onRemoveLabel(_label: LabelOverlay): void;
138
+ $clusterer(): TgMarkerClusterer | undefined;
139
+ onAddLabel(label: TgLabel): void;
140
+ onRemoveLabel(_label: TgLabel): void;
21
141
  onAddInfo(info: TgInfo): void;
22
142
  onRemoveInfo(info: TgInfo): void;
23
143
  onInfoShowChanged(info: TgInfo, isShow: boolean): void;
24
- }, import('./@vue/compat').DefineComponent<{}, {}, {}, {}, {
144
+ }, import("vue").DefineComponent<{}, {}, {}, {}, {
25
145
  recreate(): void;
26
- }, import('./@vue/compat').ComponentOptionsMixin, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<{}>>, {}>, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<Props<MarkerOptions>>>, {
27
- zIndex?: any;
28
- clickable?: any;
29
- visible?: any;
30
- position: any;
31
- title?: any;
32
- icon?: any;
33
- draggable?: any;
34
- crossOnDrag?: any;
35
- cursor?: any;
36
- }>;
37
- declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<MarkerOptions>, {
146
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
147
+ position: {
148
+ type: import("vue").PropType<LatLng>;
149
+ required: true;
150
+ };
151
+ title: {
152
+ type: import("vue").PropType<string>;
153
+ };
154
+ icon: {
155
+ type: import("vue").PropType<any>;
156
+ };
157
+ clickable: {
158
+ type: import("vue").PropType<boolean>;
159
+ };
160
+ draggable: {
161
+ type: import("vue").PropType<boolean>;
162
+ };
163
+ crossOnDrag: {
164
+ type: import("vue").PropType<boolean>;
165
+ };
166
+ cursor: {
167
+ type: import("vue").PropType<string>;
168
+ };
169
+ zIndex: {
170
+ type: import("vue").PropType<number>;
171
+ };
172
+ visible: {
173
+ type: import("vue").PropType<boolean>;
174
+ };
175
+ }>>, {}>;
176
+ type TgMarker = InstanceType<typeof TgMarker>;
177
+ export default TgMarker;
178
+ export type TgInfo = TgInfoWindow | TgInfoBox;
179
+ export type TgMarkerPublicInstance = {
38
180
  marker: MarkerOverlay;
39
- }, unknown, {}, {
40
- $clusterer(): TgMarkerClustererInstanceType | undefined;
41
- onAddLabel(label: LabelOverlay): void;
42
- onRemoveLabel(_label: LabelOverlay): void;
43
181
  onAddInfo(info: TgInfo): void;
44
182
  onRemoveInfo(info: TgInfo): void;
45
183
  onInfoShowChanged(info: TgInfo, isShow: boolean): void;
46
- }, import('./@vue/compat').DefineComponent<{}, {}, {}, {}, {
47
- recreate(): void;
48
- }, import('./@vue/compat').ComponentOptionsMixin, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<{}>>, {}>, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<Props<MarkerOptions>>>, {
49
- zIndex?: any;
50
- clickable?: any;
51
- visible?: any;
52
- position: any;
53
- title?: any;
54
- icon?: any;
55
- draggable?: any;
56
- crossOnDrag?: any;
57
- cursor?: any;
58
- }>;
59
- export type TgMarkerInstanceType = InstanceType<typeof TgMarker>;
60
- export default _sfc_main;
184
+ onAddLabel(label: TgLabel): void;
185
+ onRemoveLabel(label: TgLabel): void;
186
+ };
@@ -1,20 +1,71 @@
1
- /// <reference path="../map-mixin.d.ts" />
2
- /// <reference types="@/global" />
3
- import type { PolygonOptions, PolygonOverlay } from '../../map/map/overlay/polygon';
4
- import { type Props } from '../../utils/vue-utils';
5
- declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<PolygonOptions>, {
1
+ import { type PropType } from 'vue';
2
+ import type { PolygonOverlay } from '../../map/map/overlay/polygon';
3
+ import type { LatLng } from '../../map/lat-lng';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ paths: {
6
+ type: PropType<LatLng[][]>;
7
+ required: true;
8
+ };
9
+ clickable: {
10
+ type: PropType<boolean>;
11
+ };
12
+ editable: {
13
+ type: PropType<boolean>;
14
+ };
15
+ strokeColor: {
16
+ type: PropType<string>;
17
+ };
18
+ strokeOpacity: {
19
+ type: PropType<number>;
20
+ };
21
+ strokeWeight: {
22
+ type: PropType<number>;
23
+ };
24
+ visible: {
25
+ type: PropType<boolean>;
26
+ };
27
+ fillColor: {
28
+ type: PropType<string>;
29
+ };
30
+ fillOpacity: {
31
+ type: PropType<number>;
32
+ };
33
+ }, {
34
+ attrs: {
35
+ binds: Record<string, unknown>;
36
+ listeners: Record<string, unknown>;
37
+ };
6
38
  polygon: PolygonOverlay;
7
- }, unknown, {}, {}, import('./@vue/compat').DefineComponent<{}, {}, {}, {}, {
39
+ }, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
8
40
  recreate(): void;
9
- }, import('./@vue/compat').ComponentOptionsMixin, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<{}>>, {}>, import('./@vue/compat').ComponentOptionsMixin, {}, string, import('./@vue/compat').VNodeProps & import('./@vue/compat').AllowedComponentProps & import('./@vue/compat').ComponentCustomProps, Readonly<import('./@vue/compat').ExtractPropTypes<Props<PolygonOptions>>>, {
10
- fillColor?: any;
11
- fillOpacity?: any;
12
- clickable?: any;
13
- editable?: any;
14
- strokeColor?: any;
15
- strokeOpacity?: any;
16
- strokeWeight?: any;
17
- visible?: any;
18
- paths: any;
19
- }>;
20
- export default _sfc_main;
41
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
+ paths: {
43
+ type: PropType<LatLng[][]>;
44
+ required: true;
45
+ };
46
+ clickable: {
47
+ type: PropType<boolean>;
48
+ };
49
+ editable: {
50
+ type: PropType<boolean>;
51
+ };
52
+ strokeColor: {
53
+ type: PropType<string>;
54
+ };
55
+ strokeOpacity: {
56
+ type: PropType<number>;
57
+ };
58
+ strokeWeight: {
59
+ type: PropType<number>;
60
+ };
61
+ visible: {
62
+ type: PropType<boolean>;
63
+ };
64
+ fillColor: {
65
+ type: PropType<string>;
66
+ };
67
+ fillOpacity: {
68
+ type: PropType<number>;
69
+ };
70
+ }>>, {}>;
71
+ export default _default;