import { IControlOption } from '@antv/l7'; import { DeepPartial, IBaseModeOptions } from '../typings'; import { ICircleDrawerOptions, ILineDrawerOptions, IPointDrawerOptions, IPolygonDrawerOptions, IRectDrawerOptions } from '../drawer'; export type DrawType = 'point' | 'line' | 'polygon' | 'rect' | 'circle'; export type BtnType = DrawType | 'clear'; export type DrawBtnConfig = Record & { order?: number; }) | { button?: HTMLElement; order?: number; }>; export interface IDrawControlProps extends IControlOption { drawConfig: DrawBtnConfig; commonDrawOptions?: DeepPartial; defaultActiveType?: DrawType; className?: string; buttonClassName?: string; activeButtonClassName?: string; style?: string; }