vue-tianditu2
Version:
86 lines (85 loc) • 2.57 kB
TypeScript
import { PropType } from 'vue';
import { MarkToolOptions, PaintBrushToolOptions, ToolEvents, ToolInstances } from '../types';
import { DefineEmits, DefineProps } from '../../utils/types';
export declare const NATIVE_PROPS: {
/** 标点的配置项 */
markTool: {
type: PropType<MarkToolOptions>;
default: () => {};
};
/** 多边形的配置项 */
polygonTool: {
type: PropType<T.PolygonToolOptions>;
default: () => {};
};
/** 折线的配置项 */
polylineTool: {
type: PropType<T.PolylineToolOptions>;
default: () => {};
};
/** 矩形的配置项 */
rectangleTool: {
type: PropType<T.RectangleToolOptions>;
default: () => {};
};
/** 圆形的配置项 */
circleTool: {
type: PropType<T.CircleToolOptions>;
default: () => {};
};
/** 画笔的配置项 */
paintBrushTool: {
type: PropType<PaintBrushToolOptions>;
default: () => {};
};
};
export declare const OTHER_PROPS: {};
export declare const NATIVE_EVENTS: ToolEvents;
export declare const OTHER_EVENTS: {
init: (e: ToolInstances) => boolean;
};
export declare const PROPS: {
/** 标点的配置项 */
markTool: {
type: PropType<MarkToolOptions>;
default: () => {};
};
/** 多边形的配置项 */
polygonTool: {
type: PropType<T.PolygonToolOptions>;
default: () => {};
};
/** 折线的配置项 */
polylineTool: {
type: PropType<T.PolylineToolOptions>;
default: () => {};
};
/** 矩形的配置项 */
rectangleTool: {
type: PropType<T.RectangleToolOptions>;
default: () => {};
};
/** 圆形的配置项 */
circleTool: {
type: PropType<T.CircleToolOptions>;
default: () => {};
};
/** 画笔的配置项 */
paintBrushTool: {
type: PropType<PaintBrushToolOptions>;
default: () => {};
};
};
export declare const EVENTS: {
init: (e: ToolInstances) => boolean;
"mark-mouseup": T.MarkToolEvents["mouseup"];
"polygon-draw": T.PolygonToolEvents["draw"];
"polygon-addpoint": T.PolygonToolEvents["addpoint"];
"polyline-draw": T.PolylineToolEvents["draw"];
"polyline-addpoint": T.PolylineToolEvents["addpoint"];
"rectangle-draw": T.RectangleToolEvents["draw"];
"circle-draw": T.CircleToolEvents["draw"];
"circle-drawend": T.CircleToolEvents["drawend"];
};
export type Props = DefineProps<typeof PROPS>;
export type Emit = DefineEmits<typeof EVENTS>;