tg-map-vue3 3.0.1 → 3.0.3
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/README.md +15 -31
- package/dist/src/components/TgMap.vue.d.ts +2 -2
- package/dist/src/components/TgMapWidget.vue.d.ts +2 -2
- package/dist/src/components/controls/TgCustomControl.vue.d.ts +3 -3
- package/dist/src/components/controls/TgMapTypeControl.vue.d.ts +4 -4
- package/dist/src/components/controls/TgScaleControl.vue.d.ts +3 -3
- package/dist/src/components/controls/TgZoomControl.vue.d.ts +3 -3
- package/dist/src/components/extra/TgMarkerClusterer.vue.d.ts +6 -6
- package/dist/src/components/index.d.ts +18 -4
- package/dist/src/components/layers/TgTrafficLayer.vue.d.ts +3 -3
- package/dist/src/components/map-mixin.d.ts +2 -2
- package/dist/src/components/overlays/TgCircle.vue.d.ts +5 -5
- package/dist/src/components/overlays/TgElementOverlay.vue.d.ts +3 -3
- package/dist/src/components/overlays/TgInfoBox.vue.d.ts +5 -5
- package/dist/src/components/overlays/TgInfoWindow.vue.d.ts +5 -5
- package/dist/src/components/overlays/TgLabel.vue.d.ts +4 -4
- package/dist/src/components/overlays/TgMarker.vue.d.ts +12 -12
- package/dist/src/components/overlays/TgPolygon.vue.d.ts +5 -5
- package/dist/src/components/overlays/TgPolyline.vue.d.ts +4 -4
- package/dist/src/map/event.d.ts +1 -1
- package/dist/src/map/map/overlay/overlay.d.ts +1 -1
- package/dist/src/utils/lifecycle-log.d.ts +1 -1
- package/dist/src/utils/mapped-types.d.ts +2 -2
- package/dist/src/utils/vue-utils.d.ts +2 -2
- package/dist/tg-map.js +14 -0
- package/dist/tg-map.js.map +1 -1
- package/dist/tg-map.umd.cjs +4 -4
- package/dist/tg-map.umd.cjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# tg-map-vue3
|
|
2
2
|
|
|
3
|
-
封装 百度地图, Google地图, Here地图 的
|
|
3
|
+
封装 百度地图, Google地图, Here地图(未完成) 的Vue3组件库
|
|
4
4
|
|
|
5
5
|
## 使用
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
@transcodegroup:registry=https://npm.pkg.github.com
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
2. 用户文件根目录的`~/.npmrc`中添加如下内容, 其中`TOKEN`在[这里](https://github.com/settings/tokens/new)创建, 记得勾选`package`相关权限:
|
|
14
|
-
|
|
15
|
-
```config
|
|
16
|
-
//npm.pkg.github.com/:_authToken=TOKEN
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
3. 安装/更新
|
|
20
|
-
|
|
21
|
-
```sh
|
|
22
|
-
npm install @transcodegroup/tg-map
|
|
23
|
-
```
|
|
7
|
+
```sh
|
|
8
|
+
pnpm install tg-map-vue3
|
|
9
|
+
```
|
|
24
10
|
|
|
25
11
|
## 发布
|
|
26
12
|
|
|
@@ -36,13 +22,13 @@ git clone https://github.com/TranscodeGroup/tg-map.git
|
|
|
36
22
|
# 进入本地仓库目录
|
|
37
23
|
cd tg-map
|
|
38
24
|
# 安装依赖
|
|
39
|
-
|
|
25
|
+
pnpm install
|
|
40
26
|
# 往npm中注册@@transcodegroup\tg-map
|
|
41
|
-
|
|
27
|
+
pnpm link
|
|
42
28
|
# 进入需要依赖@transcodegroup\tg-map的仓库目录($REPO_MAIN_PATH替换成你自己的路径)
|
|
43
29
|
cd $REPO_MAIN_PATH
|
|
44
30
|
# 链接之前注册的@tg/map到该仓库
|
|
45
|
-
|
|
31
|
+
pnpm link @transcodegroup\tg-map
|
|
46
32
|
```
|
|
47
33
|
|
|
48
34
|
### 修改一些第三方库的package.json
|
|
@@ -66,8 +52,8 @@ TypeScript/VSCode默认只会读取package.json中的main字段, 而webpack默
|
|
|
66
52
|
|
|
67
53
|
```jsonc
|
|
68
54
|
{
|
|
69
|
-
//
|
|
70
|
-
"
|
|
55
|
+
// 统一使用项目中的TS版本
|
|
56
|
+
"typescript.tsdk": "node_modules/typescript/lib",
|
|
71
57
|
}
|
|
72
58
|
```
|
|
73
59
|
|
|
@@ -75,33 +61,31 @@ TypeScript/VSCode默认只会读取package.json中的main字段, 而webpack默
|
|
|
75
61
|
|
|
76
62
|
```sh
|
|
77
63
|
# 修改代码后要重新构建
|
|
78
|
-
|
|
79
|
-
# 或者使用watch模式, 自动重新构建
|
|
80
|
-
npm run build:lib:watch
|
|
64
|
+
pnpm run build
|
|
81
65
|
```
|
|
82
66
|
|
|
83
67
|
## 其他
|
|
84
68
|
|
|
85
69
|
```sh
|
|
86
|
-
|
|
70
|
+
pnpm install
|
|
87
71
|
```
|
|
88
72
|
|
|
89
73
|
### Compile and Hot-Reload for Development
|
|
90
74
|
|
|
91
75
|
```sh
|
|
92
|
-
|
|
76
|
+
pnpm run dev
|
|
93
77
|
```
|
|
94
78
|
|
|
95
79
|
### Type-Check, Compile and Minify for Production
|
|
96
80
|
|
|
97
81
|
```sh
|
|
98
|
-
|
|
82
|
+
pnpm run build
|
|
99
83
|
```
|
|
100
84
|
|
|
101
85
|
### Lint with [ESLint](https://eslint.org/)
|
|
102
86
|
|
|
103
87
|
```sh
|
|
104
|
-
|
|
88
|
+
pnpm run lint
|
|
105
89
|
```
|
|
106
90
|
|
|
107
91
|
### Customize configuration
|
|
@@ -6,7 +6,7 @@ import { TgMapType } from '../map/map-factory';
|
|
|
6
6
|
import { LatLng } from '../map/lat-lng';
|
|
7
7
|
import { MapOptions } from '../map/map/map-options';
|
|
8
8
|
import { MapType } from '../map/map/map-type';
|
|
9
|
-
declare const _sfc_main: import(
|
|
9
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<Omit<MapOptions, "buildInMapTypeId"> & {
|
|
10
10
|
type: TgMapType;
|
|
11
11
|
currentCenter?: LatLng | undefined;
|
|
12
12
|
lastCenter?: LatLng | undefined;
|
|
@@ -20,7 +20,7 @@ declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<Omit<MapO
|
|
|
20
20
|
isDestroyed: boolean;
|
|
21
21
|
}, {
|
|
22
22
|
propsJson(): string;
|
|
23
|
-
}, {}, import(
|
|
23
|
+
}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Props<Omit<MapOptions, "buildInMapTypeId"> & {
|
|
24
24
|
type: TgMapType;
|
|
25
25
|
currentCenter?: LatLng | undefined;
|
|
26
26
|
lastCenter?: LatLng | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="@/global" />
|
|
3
3
|
import { dimen } from '../utils/formatter';
|
|
4
4
|
/** TgMap上的Widget, 只是对绝对布局进行简单的封装 */
|
|
5
|
-
declare const _sfc_main: import(
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
6
6
|
left: {
|
|
7
7
|
type: (NumberConstructor | StringConstructor)[];
|
|
8
8
|
default: null;
|
|
@@ -23,7 +23,7 @@ declare const _sfc_main: import('./@vue/compat').DefineComponent<{
|
|
|
23
23
|
topValue(): string | number;
|
|
24
24
|
}, {
|
|
25
25
|
dimen: typeof dimen;
|
|
26
|
-
}, import(
|
|
26
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
27
|
left: {
|
|
28
28
|
type: (NumberConstructor | StringConstructor)[];
|
|
29
29
|
default: null;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/// <reference types="@/global" />
|
|
3
3
|
import { type Props } from '../../utils/vue-utils';
|
|
4
4
|
import { ControlPosition, CustomControl } from '../../map/map/controls/control';
|
|
5
|
-
declare const _sfc_main: import(
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<{
|
|
6
6
|
position: ControlPosition;
|
|
7
7
|
}>, {
|
|
8
8
|
control: CustomControl;
|
|
9
|
-
}, unknown, {}, {}, import(
|
|
9
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
10
10
|
recreate(): void;
|
|
11
|
-
}, import(
|
|
11
|
+
}, 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<Props<{
|
|
12
12
|
position: ControlPosition;
|
|
13
13
|
}>>>, {
|
|
14
14
|
position: any;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/// <reference types="@/global" />
|
|
3
3
|
import { type MapTypeControlOptions, type MapTypeControl } from '../../map/map/controls/map-type.control';
|
|
4
4
|
import { type Props } from '../../utils/vue-utils';
|
|
5
|
-
declare const _sfc_main: import(
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<MapTypeControlOptions>, {
|
|
6
6
|
control: MapTypeControl;
|
|
7
|
-
}, unknown, {}, {}, import(
|
|
7
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
8
|
recreate(): void;
|
|
9
|
-
}, import(
|
|
9
|
+
}, 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<Props<MapTypeControlOptions>>>, {
|
|
10
10
|
type?: any;
|
|
11
|
-
position?: any;
|
|
12
11
|
mapTypes?: any;
|
|
12
|
+
position?: any;
|
|
13
13
|
}>;
|
|
14
14
|
export default _sfc_main;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/// <reference types="@/global" />
|
|
3
3
|
import { type Props } from '../../utils/vue-utils';
|
|
4
4
|
import type { ScaleControlOptions, ScaleControl } from '../../map/map/controls/scale.control';
|
|
5
|
-
declare const _sfc_main: import(
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<ScaleControlOptions>, {
|
|
6
6
|
control: ScaleControl;
|
|
7
|
-
}, unknown, {}, {}, import(
|
|
7
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
8
|
recreate(): void;
|
|
9
|
-
}, import(
|
|
9
|
+
}, 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<Props<ScaleControlOptions>>>, {
|
|
10
10
|
position?: any;
|
|
11
11
|
}>;
|
|
12
12
|
export default _sfc_main;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/// <reference types="@/global" />
|
|
3
3
|
import type { ZoomControlOptions, ZoomControl } from '../../map/map/controls/zoom.control';
|
|
4
4
|
import { type Props } from '../../utils/vue-utils';
|
|
5
|
-
declare const _sfc_main: import(
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<ZoomControlOptions>, {
|
|
6
6
|
control: ZoomControl;
|
|
7
|
-
}, unknown, {}, {}, import(
|
|
7
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
8
|
recreate(): void;
|
|
9
|
-
}, import(
|
|
9
|
+
}, 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<Props<ZoomControlOptions>>>, {
|
|
10
10
|
position?: any;
|
|
11
11
|
}>;
|
|
12
12
|
export default _sfc_main;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { MarkerClusterer, MarkerClustererOptions } from '../../map/map/extra/marker-clusterer';
|
|
4
4
|
import { type Props } from '../../utils/vue-utils';
|
|
5
5
|
import type { MarkerOverlay } from '../../map/map/overlay/marker';
|
|
6
|
-
declare const TgMarkerClusterer: import(
|
|
6
|
+
declare const TgMarkerClusterer: import("vue").DefineComponent<Props<Omit<MarkerClustererOptions, "markers">>, {
|
|
7
7
|
clusterer: MarkerClusterer;
|
|
8
8
|
}, unknown, {}, {
|
|
9
9
|
getOptions(): MarkerClustererOptions;
|
|
@@ -12,9 +12,9 @@ declare const TgMarkerClusterer: import('./@vue/compat').DefineComponent<Props<O
|
|
|
12
12
|
markers(): MarkerOverlay[];
|
|
13
13
|
onAddMarker(marker: MarkerOverlay): void;
|
|
14
14
|
onRemoveMarker(marker: MarkerOverlay): void;
|
|
15
|
-
}, import(
|
|
15
|
+
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
16
16
|
recreate(): void;
|
|
17
|
-
}, import(
|
|
17
|
+
}, 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<Props<Omit<MarkerClustererOptions, "markers">>>>, {
|
|
18
18
|
maxZoom?: any;
|
|
19
19
|
zIndex?: any;
|
|
20
20
|
gridSize?: any;
|
|
@@ -23,7 +23,7 @@ declare const TgMarkerClusterer: import('./@vue/compat').DefineComponent<Props<O
|
|
|
23
23
|
styles?: any;
|
|
24
24
|
stylesIndexCalculator?: any;
|
|
25
25
|
}>;
|
|
26
|
-
declare const _sfc_main: import(
|
|
26
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<Omit<MarkerClustererOptions, "markers">>, {
|
|
27
27
|
clusterer: MarkerClusterer;
|
|
28
28
|
}, unknown, {}, {
|
|
29
29
|
getOptions(): MarkerClustererOptions;
|
|
@@ -32,9 +32,9 @@ declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<Omit<Mark
|
|
|
32
32
|
markers(): MarkerOverlay[];
|
|
33
33
|
onAddMarker(marker: MarkerOverlay): void;
|
|
34
34
|
onRemoveMarker(marker: MarkerOverlay): void;
|
|
35
|
-
}, import(
|
|
35
|
+
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
36
36
|
recreate(): void;
|
|
37
|
-
}, import(
|
|
37
|
+
}, 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<Props<Omit<MarkerClustererOptions, "markers">>>>, {
|
|
38
38
|
maxZoom?: any;
|
|
39
39
|
zIndex?: any;
|
|
40
40
|
gridSize?: any;
|
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
/// <reference types="@/map/dts" />
|
|
2
|
-
import type { App } from '
|
|
2
|
+
import type { App } from 'vue';
|
|
3
3
|
import { type PartialTgMapConfig, setTgMapConfig, type TgMapConfig, getTgMapConfig } from '../map/map-config';
|
|
4
4
|
import MapMixin, { MIXIN_HOOK_DESTROY, MIXIN_HOOK_CREATE, MIXIN_MAP_NAME } from './map-mixin';
|
|
5
5
|
import LifecycleLogPlugin, { type LifecycleLogOptions } from '../utils/lifecycle-log';
|
|
6
|
-
import TgMap from './TgMap.vue';
|
|
7
|
-
import TgInfoBox from './overlays/TgInfoBox.vue';
|
|
8
6
|
declare const TgMapPlugin: {
|
|
9
7
|
install(app: App, config?: PartialTgMapConfig): void;
|
|
10
8
|
};
|
|
11
9
|
export default TgMapPlugin;
|
|
10
|
+
export { default as TgMap } from './TgMap.vue';
|
|
11
|
+
export { default as TgMapWidget } from './TgMapWidget.vue';
|
|
12
|
+
export { default as TgCustomControl } from './controls/TgCustomControl.vue';
|
|
13
|
+
export { default as TgMapTypeControl } from './controls/TgMapTypeControl.vue';
|
|
14
|
+
export { default as TgScaleControl } from './controls/TgScaleControl.vue';
|
|
15
|
+
export { default as TgZoomControl } from './controls/TgZoomControl.vue';
|
|
16
|
+
export { default as TgMarkerClusterer } from './extra/TgMarkerClusterer.vue';
|
|
17
|
+
export { default as TgTrafficLayer } from './layers/TgTrafficLayer.vue';
|
|
18
|
+
export { default as TgCircle } from './overlays/TgCircle.vue';
|
|
19
|
+
export { default as TgElementOverlay } from './overlays/TgElementOverlay.vue';
|
|
20
|
+
export { default as TgInfoBox } from './overlays/TgInfoBox.vue';
|
|
21
|
+
export { default as TgInfoWindow } from './overlays/TgInfoWindow.vue';
|
|
22
|
+
export { default as TgLabel } from './overlays/TgLabel.vue';
|
|
23
|
+
export { default as TgMarker } from './overlays/TgMarker.vue';
|
|
24
|
+
export { default as TgPolygon } from './overlays/TgPolygon.vue';
|
|
25
|
+
export { default as TgPolyline } from './overlays/TgPolyline.vue';
|
|
12
26
|
export * from '../map/lat-lng';
|
|
13
27
|
export * from '../map/map/map';
|
|
14
28
|
export * from '../map/map-factory';
|
|
@@ -33,4 +47,4 @@ export { Objects } from '../utils/objects';
|
|
|
33
47
|
export * from '../utils/arrays';
|
|
34
48
|
export * from '../utils/strings';
|
|
35
49
|
export * from '../utils/values';
|
|
36
|
-
export {
|
|
50
|
+
export { TgMapConfig, PartialTgMapConfig, getTgMapConfig, setTgMapConfig, LifecycleLogPlugin, LifecycleLogOptions, MapMixin, MIXIN_HOOK_CREATE, MIXIN_HOOK_DESTROY, MIXIN_MAP_NAME, };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference path="../map-mixin.d.ts" />
|
|
2
2
|
/// <reference types="@/global" />
|
|
3
3
|
import { TrafficLayer } from '../../map/map/map-type';
|
|
4
|
-
declare const _sfc_main: import(
|
|
4
|
+
declare const _sfc_main: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
5
5
|
[x: string]: unknown;
|
|
6
6
|
}>>, {
|
|
7
7
|
layer: TrafficLayer;
|
|
8
|
-
}, unknown, {}, {}, import(
|
|
8
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
9
9
|
recreate(): void;
|
|
10
|
-
}, import(
|
|
10
|
+
}, 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 string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
11
11
|
[x: string]: unknown;
|
|
12
12
|
}>>>>, {
|
|
13
13
|
[x: number]: string;
|
|
@@ -16,7 +16,7 @@ declare module 'vue' {
|
|
|
16
16
|
[MIXIN_HOOK_DESTROY]?(): void;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
declare const MapMixin: import(
|
|
19
|
+
declare const MapMixin: import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
20
20
|
recreate(): void;
|
|
21
|
-
}, import(
|
|
21
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
22
22
|
export default MapMixin;
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
/// <reference types="@/global" />
|
|
3
3
|
import { type Props } from '../../utils/vue-utils';
|
|
4
4
|
import type { CircleOptions, CircleOverlay } from '../../map/map/overlay/circle';
|
|
5
|
-
declare const _sfc_main: import(
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<CircleOptions>, {
|
|
6
6
|
overlay: CircleOverlay;
|
|
7
|
-
}, unknown, {}, {}, import(
|
|
7
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
8
|
recreate(): void;
|
|
9
|
-
}, import(
|
|
9
|
+
}, 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<Props<CircleOptions>>>, {
|
|
10
10
|
center: any;
|
|
11
|
-
clickable?: any;
|
|
12
|
-
visible?: any;
|
|
13
11
|
fillColor?: any;
|
|
14
12
|
fillOpacity?: any;
|
|
13
|
+
clickable?: any;
|
|
15
14
|
editable?: any;
|
|
16
15
|
strokeColor?: any;
|
|
17
16
|
strokeOpacity?: any;
|
|
18
17
|
strokeWeight?: any;
|
|
18
|
+
visible?: any;
|
|
19
19
|
radius: any;
|
|
20
20
|
}>;
|
|
21
21
|
export default _sfc_main;
|
|
@@ -13,15 +13,15 @@ declare class SimpleElementOverlay extends ElementOverlay {
|
|
|
13
13
|
protected onDraw(projection: OverlayProjection): void;
|
|
14
14
|
setPosition(position: LatLng): void;
|
|
15
15
|
}
|
|
16
|
-
declare const _sfc_main: import(
|
|
16
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<ElementOverlayOptions & {
|
|
17
17
|
position: LatLng;
|
|
18
18
|
}>, {
|
|
19
19
|
overlay: SimpleElementOverlay;
|
|
20
20
|
}, unknown, {}, {
|
|
21
21
|
content(): HTMLElement;
|
|
22
|
-
}, import(
|
|
22
|
+
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
23
23
|
recreate(): void;
|
|
24
|
-
}, import(
|
|
24
|
+
}, 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<Props<ElementOverlayOptions & {
|
|
25
25
|
position: LatLng;
|
|
26
26
|
}>>>, {
|
|
27
27
|
position: any;
|
|
@@ -4,7 +4,7 @@ import { type Props } from '../../utils/vue-utils';
|
|
|
4
4
|
import { type TgMarkerInstanceType } from './TgMarker.vue';
|
|
5
5
|
import type { InfoBoxOverlay, InfoBoxOptions } from '../../map/map/overlay/info-box';
|
|
6
6
|
import type { MarkerOverlay } from '../../map/map/overlay/marker';
|
|
7
|
-
declare const _sfc_main: import(
|
|
7
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<Omit<InfoBoxOptions, "content"> & {
|
|
8
8
|
show: boolean;
|
|
9
9
|
}>, {
|
|
10
10
|
overlay: InfoBoxOverlay;
|
|
@@ -14,16 +14,16 @@ declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<Omit<Info
|
|
|
14
14
|
$marker(): TgMarkerInstanceType | undefined;
|
|
15
15
|
open(marker?: MarkerOverlay): void;
|
|
16
16
|
close(): void;
|
|
17
|
-
}, import(
|
|
17
|
+
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
18
18
|
recreate(): void;
|
|
19
|
-
}, import(
|
|
19
|
+
}, 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<Props<Omit<InfoBoxOptions, "content"> & {
|
|
20
20
|
show: boolean;
|
|
21
21
|
}>>>, {
|
|
22
|
+
maxWidth?: any;
|
|
23
|
+
zIndex?: any;
|
|
22
24
|
show: any;
|
|
23
25
|
position?: any;
|
|
24
26
|
offset?: any;
|
|
25
|
-
zIndex?: any;
|
|
26
|
-
maxWidth?: any;
|
|
27
27
|
borderClass?: any;
|
|
28
28
|
}>;
|
|
29
29
|
export default _sfc_main;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { type Props } from '../../utils/vue-utils';
|
|
4
4
|
import type { InfoWindowOverlay, InfoWindowOptions } from '../../map/map/overlay/info-window';
|
|
5
5
|
import { type TgMarkerInstanceType } from './TgMarker.vue';
|
|
6
|
-
declare const _sfc_main: import(
|
|
6
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<Omit<InfoWindowOptions, "content"> & {
|
|
7
7
|
show: boolean;
|
|
8
8
|
}>, {
|
|
9
9
|
overlay: InfoWindowOverlay;
|
|
@@ -11,15 +11,15 @@ declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<Omit<Info
|
|
|
11
11
|
content(): HTMLElement;
|
|
12
12
|
$marker(): TgMarkerInstanceType | undefined;
|
|
13
13
|
getOptions(): InfoWindowOptions;
|
|
14
|
-
}, import(
|
|
14
|
+
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
15
15
|
recreate(): void;
|
|
16
|
-
}, import(
|
|
16
|
+
}, 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<Props<Omit<InfoWindowOptions, "content"> & {
|
|
17
17
|
show: boolean;
|
|
18
18
|
}>>>, {
|
|
19
|
+
maxWidth?: any;
|
|
20
|
+
disableAutoPan?: any;
|
|
19
21
|
show: any;
|
|
20
22
|
position?: any;
|
|
21
23
|
offset?: any;
|
|
22
|
-
maxWidth?: any;
|
|
23
|
-
disableAutoPan?: any;
|
|
24
24
|
}>;
|
|
25
25
|
export default _sfc_main;
|
|
@@ -4,18 +4,18 @@ import { type Props } from '../../utils/vue-utils';
|
|
|
4
4
|
import type { LabelOptions, LabelOverlay } from '../../map/map/overlay/label';
|
|
5
5
|
import { type TgMarkerInstanceType } from './TgMarker.vue';
|
|
6
6
|
import type { Marker } from '../../map/map/overlay/marker';
|
|
7
|
-
declare const _sfc_main: import(
|
|
7
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<Omit<LabelOptions, "content">>, {
|
|
8
8
|
overlay: LabelOverlay;
|
|
9
9
|
}, unknown, {}, {
|
|
10
10
|
content(): HTMLElement;
|
|
11
11
|
marker(): Marker | undefined;
|
|
12
12
|
$marker(): TgMarkerInstanceType | undefined;
|
|
13
13
|
getOptions(): LabelOptions;
|
|
14
|
-
}, import(
|
|
14
|
+
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
15
15
|
recreate(): void;
|
|
16
|
-
}, import(
|
|
16
|
+
}, 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<Props<Omit<LabelOptions, "content">>>>, {
|
|
17
|
+
zIndex?: any;
|
|
17
18
|
position?: any;
|
|
18
19
|
offset?: any;
|
|
19
|
-
zIndex?: any;
|
|
20
20
|
}>;
|
|
21
21
|
export default _sfc_main;
|
|
@@ -12,7 +12,7 @@ type TgInfo = {
|
|
|
12
12
|
show?: boolean;
|
|
13
13
|
overlay: Info;
|
|
14
14
|
};
|
|
15
|
-
declare const TgMarker: import(
|
|
15
|
+
declare const TgMarker: import("vue").DefineComponent<Props<MarkerOptions>, {
|
|
16
16
|
marker: MarkerOverlay;
|
|
17
17
|
}, unknown, {}, {
|
|
18
18
|
$clusterer(): TgMarkerClustererInstanceType | undefined;
|
|
@@ -21,20 +21,20 @@ declare const TgMarker: import('./@vue/compat').DefineComponent<Props<MarkerOpti
|
|
|
21
21
|
onAddInfo(info: TgInfo): void;
|
|
22
22
|
onRemoveInfo(info: TgInfo): void;
|
|
23
23
|
onInfoShowChanged(info: TgInfo, isShow: boolean): void;
|
|
24
|
-
}, import(
|
|
24
|
+
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
25
25
|
recreate(): void;
|
|
26
|
-
}, import(
|
|
27
|
-
position: any;
|
|
26
|
+
}, 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<Props<MarkerOptions>>>, {
|
|
28
27
|
zIndex?: any;
|
|
28
|
+
clickable?: any;
|
|
29
|
+
visible?: any;
|
|
30
|
+
position: any;
|
|
29
31
|
title?: any;
|
|
30
32
|
icon?: any;
|
|
31
|
-
clickable?: any;
|
|
32
33
|
draggable?: any;
|
|
33
34
|
crossOnDrag?: any;
|
|
34
35
|
cursor?: any;
|
|
35
|
-
visible?: any;
|
|
36
36
|
}>;
|
|
37
|
-
declare const _sfc_main: import(
|
|
37
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<MarkerOptions>, {
|
|
38
38
|
marker: MarkerOverlay;
|
|
39
39
|
}, unknown, {}, {
|
|
40
40
|
$clusterer(): TgMarkerClustererInstanceType | undefined;
|
|
@@ -43,18 +43,18 @@ declare const _sfc_main: import('./@vue/compat').DefineComponent<Props<MarkerOpt
|
|
|
43
43
|
onAddInfo(info: TgInfo): void;
|
|
44
44
|
onRemoveInfo(info: TgInfo): void;
|
|
45
45
|
onInfoShowChanged(info: TgInfo, isShow: boolean): void;
|
|
46
|
-
}, import(
|
|
46
|
+
}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
47
47
|
recreate(): void;
|
|
48
|
-
}, import(
|
|
49
|
-
position: any;
|
|
48
|
+
}, 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<Props<MarkerOptions>>>, {
|
|
50
49
|
zIndex?: any;
|
|
50
|
+
clickable?: any;
|
|
51
|
+
visible?: any;
|
|
52
|
+
position: any;
|
|
51
53
|
title?: any;
|
|
52
54
|
icon?: any;
|
|
53
|
-
clickable?: any;
|
|
54
55
|
draggable?: any;
|
|
55
56
|
crossOnDrag?: any;
|
|
56
57
|
cursor?: any;
|
|
57
|
-
visible?: any;
|
|
58
58
|
}>;
|
|
59
59
|
export type TgMarkerInstanceType = InstanceType<typeof TgMarker>;
|
|
60
60
|
export default _sfc_main;
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
/// <reference types="@/global" />
|
|
3
3
|
import type { PolygonOptions, PolygonOverlay } from '../../map/map/overlay/polygon';
|
|
4
4
|
import { type Props } from '../../utils/vue-utils';
|
|
5
|
-
declare const _sfc_main: import(
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<PolygonOptions>, {
|
|
6
6
|
polygon: PolygonOverlay;
|
|
7
|
-
}, unknown, {}, {}, import(
|
|
7
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
8
|
recreate(): void;
|
|
9
|
-
}, import(
|
|
10
|
-
clickable?: any;
|
|
11
|
-
visible?: any;
|
|
9
|
+
}, 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<Props<PolygonOptions>>>, {
|
|
12
10
|
fillColor?: any;
|
|
13
11
|
fillOpacity?: any;
|
|
12
|
+
clickable?: any;
|
|
14
13
|
editable?: any;
|
|
15
14
|
strokeColor?: any;
|
|
16
15
|
strokeOpacity?: any;
|
|
17
16
|
strokeWeight?: any;
|
|
17
|
+
visible?: any;
|
|
18
18
|
paths: any;
|
|
19
19
|
}>;
|
|
20
20
|
export default _sfc_main;
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
/// <reference types="@/global" />
|
|
3
3
|
import { type Props } from '../../utils/vue-utils';
|
|
4
4
|
import type { PolylineOptions, PolylineOverlay } from '../../map/map/overlay/polyline';
|
|
5
|
-
declare const _sfc_main: import(
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<Props<PolylineOptions>, {
|
|
6
6
|
polyline: PolylineOverlay;
|
|
7
|
-
}, unknown, {}, {}, import(
|
|
7
|
+
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
8
8
|
recreate(): void;
|
|
9
|
-
}, import(
|
|
9
|
+
}, 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<Props<PolylineOptions>>>, {
|
|
10
10
|
clickable?: any;
|
|
11
|
-
visible?: any;
|
|
12
11
|
editable?: any;
|
|
13
12
|
strokeColor?: any;
|
|
14
13
|
strokeOpacity?: any;
|
|
15
14
|
strokeWeight?: any;
|
|
15
|
+
visible?: any;
|
|
16
16
|
path: any;
|
|
17
17
|
}>;
|
|
18
18
|
export default _sfc_main;
|
package/dist/src/map/event.d.ts
CHANGED