UNPKG

vue-tianditu2

Version:
137 lines (136 loc) 3.62 kB
import { PropType } from 'vue'; import { DefineEmits, DefineProps, LngLat, Point } from '../../../utils/types'; export declare const NATIVE_PROPS: { /** 文本标注的内容 */ text: { type: StringConstructor; default: string; }; /** 文本标注的位置偏移值 */ offset: { type: PropType<Point>; default: () => number[]; }; /** 文本标注的地理位置 */ position: { type: PropType<LngLat>; default: () => number[]; }; }; export declare const EXTRA_PROPS: { /** 设置文本的提示内容 */ title: { type: StringConstructor; }; /** 设置z-index */ zIndex: { type: NumberConstructor; }; /** 设置文本的文本内容字体大小 */ fontSize: { type: NumberConstructor; }; /** 设置文本的文本的字体颜色 */ fontColor: { type: StringConstructor; }; /** 设置文本的背景色 */ backgroundColor: { type: StringConstructor; }; /** 设置文本的边框线宽 */ borderLine: { type: NumberConstructor; }; /** 设置文本的边框颜色 */ borderColor: { type: StringConstructor; }; /** 设置文本的透明度 */ opacity: { type: NumberConstructor; }; /** 是否可见 */ visible: { type: BooleanConstructor; default: boolean; }; /** 自定义属性 */ extData: { type: PropType<any>; }; }; export declare const NATIVE_EVENTS: T.LabelEvents; export declare const EXTRA_EVENTS: { init: (e: T.Label) => boolean; }; export declare const PROPS: { /** 设置文本的提示内容 */ title: { type: StringConstructor; }; /** 设置z-index */ zIndex: { type: NumberConstructor; }; /** 设置文本的文本内容字体大小 */ fontSize: { type: NumberConstructor; }; /** 设置文本的文本的字体颜色 */ fontColor: { type: StringConstructor; }; /** 设置文本的背景色 */ backgroundColor: { type: StringConstructor; }; /** 设置文本的边框线宽 */ borderLine: { type: NumberConstructor; }; /** 设置文本的边框颜色 */ borderColor: { type: StringConstructor; }; /** 设置文本的透明度 */ opacity: { type: NumberConstructor; }; /** 是否可见 */ visible: { type: BooleanConstructor; default: boolean; }; /** 自定义属性 */ extData: { type: PropType<any>; }; /** 文本标注的内容 */ text: { type: StringConstructor; default: string; }; /** 文本标注的位置偏移值 */ offset: { type: PropType<Point>; default: () => number[]; }; /** 文本标注的地理位置 */ position: { type: PropType<LngLat>; default: () => number[]; }; }; export declare const EVENTS: { init: (e: T.Label) => boolean; click(e: T.OverlayEvent<T.Label, T.LngLat, undefined>): void; dblclick(e: T.OverlayEvent<T.Label, T.LngLat, undefined>): void; mousedown(e: T.OverlayEvent<T.Label, T.LngLat, undefined>): void; mouseup(e: T.OverlayEvent<T.Label, T.LngLat, undefined>): void; mouseout(e: T.OverlayEvent<T.Label, T.LngLat, undefined>): void; mouseover(e: T.OverlayEvent<T.Label, T.LngLat, undefined>): void; remove(e: T.OverlayEvent<T.Label, T.LngLat, undefined>): void; }; export type Props = DefineProps<typeof PROPS>; export type Emit = DefineEmits<typeof EVENTS>;