tg-map-vue3 3.1.5 → 3.1.6
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/dist/src/components/controls/TgZoomControl.vue.d.ts +2 -6
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/map-hooks.d.ts +14 -0
- package/dist/src/components/map-mixin.d.ts +1 -0
- package/dist/src/utils/hooks.d.ts +2 -0
- package/dist/tg-map.js +526 -503
- 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
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createEmptyVNode } from '../../utils/vue-utils';
|
|
2
2
|
import { ControlPosition } from '../../map/map/controls/control';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
position: {
|
|
5
5
|
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>>;
|
|
6
6
|
default: ControlPosition;
|
|
7
7
|
};
|
|
8
|
-
}, {
|
|
9
|
-
control: ZoomControl;
|
|
10
|
-
}, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
11
|
-
recreate(): void;
|
|
12
|
-
}, 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<{
|
|
8
|
+
}, typeof createEmptyVNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
9
|
position: {
|
|
14
10
|
type: import("vue").PropType<import("../../utils/mapped-types").StringEnumValue<typeof ControlPosition>>;
|
|
15
11
|
default: ControlPosition;
|
|
@@ -7,6 +7,7 @@ declare const TgMapPlugin: {
|
|
|
7
7
|
install(app: App, config?: PartialTgMapConfig): void;
|
|
8
8
|
};
|
|
9
9
|
export default TgMapPlugin;
|
|
10
|
+
export * from './map-hooks';
|
|
10
11
|
export { default as TgMap } from './TgMap.vue';
|
|
11
12
|
export { default as TgMapWidget } from './TgMapWidget.vue';
|
|
12
13
|
export { default as TgCustomControl } from './controls/TgCustomControl.vue';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { type AbstractMap } from '.';
|
|
3
|
+
/** 作为Vue3下, `MapMixin`的替代 */
|
|
4
|
+
export declare function useTgMap(): {
|
|
5
|
+
mapRef: Ref<AbstractMap | undefined>;
|
|
6
|
+
/** 读取map对象, 只要放在<tg-map>里面的组件(除#overlay插槽外)都能够立即读取到map对象 */
|
|
7
|
+
readonly map: AbstractMap;
|
|
8
|
+
/** 地图元素创建回调 */
|
|
9
|
+
onCreate(hook: VoidFunction): void;
|
|
10
|
+
/** 地图元素销毁回调 */
|
|
11
|
+
onDestroy(hook: VoidFunction): void;
|
|
12
|
+
/** 重新创建地图元素 */
|
|
13
|
+
recreate(): void;
|
|
14
|
+
};
|
|
@@ -14,6 +14,7 @@ declare module 'vue' {
|
|
|
14
14
|
[MIXIN_HOOK_DESTROY]?(): void;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
/** @deprecated 使用{@link useTgMap}替代 */
|
|
17
18
|
declare const MapMixin: import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
18
19
|
recreate(): void;
|
|
19
20
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|