import { Control, IControlOption, PositionType, Scene } from '@antv/l7'; import './css/draw.less'; import { DrawFeature } from './modes'; import { IDrawFeatureOption } from './modes/draw_feature'; export interface IControls { [key: string]: boolean | IDrawFeatureOption; } export interface IDrawControlOption extends IControlOption { pickBuffer: number; controls: IControls; layout: 'horizontal' | 'vertical'; style: any; } export declare class DrawControl extends Control { private draw; private currentDraw; private scene; constructor(scene: Scene, options: Partial); getDefault(): { position: PositionType; controls: { point: boolean; line: boolean; polygon: boolean; rect: boolean; circle: boolean; delete: boolean; }; name: string; }; onAdd(): HTMLElement; onRemove(): void; getDraw(type: string): DrawFeature | null; getAllData(): { [key: string]: any; }; removeAllData(): void; private addControls; private addControlEvent; private createButton; private onButtonClick; private onDeleteMode; private onModeChange; }