import { Scene } from '@antv/l7'; import { Feature, Polygon } from '@turf/turf'; import { DragPolygonMode, IDragPolygonModeOptions } from '../mode'; import { DeepPartial, ILineFeature, ILineProperties, IPointFeature, IPolygonFeature, ISceneMouseEvent } from '../typings'; export type IRectDrawerOptions = IDragPolygonModeOptions>; export declare class RectDrawer extends DragPolygonMode { constructor(scene: Scene, options: DeepPartial); getDefaultOptions(options: DeepPartial): IRectDrawerOptions; setData(data: Feature[]): void; handleCreatePolygonLine(startNode: IPointFeature, endNode: IPointFeature, properties?: Partial): ILineFeature; syncPolygonNodes(polygon: IPolygonFeature, nodes: IPointFeature[]): IPolygonFeature; onLineDragging(e: ISceneMouseEvent): ILineFeature | undefined; }