import Class from '../../core/Class'; import Point from '../../geo/Point'; import Coordinate from '../../geo/Coordinate'; import { Geometry } from '../'; import EditHandle from '../../renderer/edit/EditHandle'; import { GeometryEditOptionsType } from '../ext/Geometry.Edit'; export declare function fixHandlePointCoordinates(geometry: Geometry, vertex: Coordinate, dragContainerPoint: Point, dragOnAxis?: string): Coordinate; declare const GeometryEditor_base: { new (...args: any[]): { _eventMap?: Record; _eventParent?: any; _eventTarget?: any; on(eventsOn: string | import("../../core/Eventable").EventRecords, handler: import("../../core/Eventable").HandlerFn, context?: any): any; addEventListener(...args: any[]): any; once(eventTypes: string | import("../../core/Eventable").EventRecords, handler: import("../../core/Eventable").HandlerFn, context?: any): any; off(eventsOff: string | import("../../core/Eventable").EventRecords, handler: import("../../core/Eventable").HandlerFn, context?: any): any; removeEventListener(...args: any[]): any; listens(eventType: string, handler?: import("../../core/Eventable").HandlerFn, context?: any): number; getListeningEvents(): string[]; copyEventListeners(target: any): any; fire(eventType: string, param?: import("../../core/Eventable").BaseEventParamsType): any; _wrapOnceHandler(evtType: string, handler: import("../../core/Eventable").HandlerFn, context?: any): (...args: any[]) => void; _switch(to: string, eventRecords: import("../../core/Eventable").EventRecords, context?: any): any; _clearListeners(eventType: string): void; _clearAllListeners(): void; _setEventParent(parent: any): any; _setEventTarget(target: any): any; /** * 编辑器是否在编辑 * @english * Whether the editor is editing * @return {Boolean} */ _fire(eventType: string, param: import("../../core/Eventable").BaseEventParamsType): any; }; } & typeof Class; /** * 内部使用的几何图形编辑器 * @english * Geometry editor used internally for geometry editing. * @category geometry * @protected * @extends Class * @mixes Eventable */ declare class GeometryEditor extends GeometryEditor_base { editing: boolean; options: GeometryEditOptionsType; /** * @param {Geometry} geometry geometry to edit * @param {Object} [opts=null] options * @param {Object} [opts.symbol=null] symbol of being edited. */ constructor(geometry: any, opts: GeometryEditOptionsType); /** * 获取地图对象 * @english * Get map * @return {Map} map */ getMap(): any; /** * 准备编辑 * @english * Prepare to edit */ prepare(): void; /** * 开始编辑 * @english * Start to edit */ start(): void; /** * 停止编辑 * @english * Stop editing */ stop(): void; /** * 编辑器是否在编辑 * @english * Whether the editor is editing * @return {Boolean} */ isEditing(): boolean; _shadowDragEvent(e: any): void; createHandle(containerPoint: any, opts: any): EditHandle; /** * 创建标记编辑器 * @english * Create marker editor * @private */ createMarkerEditor(): void; /** * 创建圆形编辑器 * @english * Create circle editor * @private */ createCircleEditor(): void; /** * 创建椭圆或者矩形编辑器 * @english * editor of ellipse or rectangle * @private */ createEllipseOrRectEditor(): void; /** * 创建多边形编辑器 * @english * Editor for polygon * @private */ createPolygonEditor(): void; cancel(): GeometryEditor; /** * 获取视图历史记录中的上一个地图视图 * @english * Get previous map view in view history * @return {Object} map view */ undo(): any; /** * 获取视图历史记录中的下一个地图视图 * @english * Get next view in view history * @return {Object} map view */ redo(): any; _isRedoEdit(): boolean; _isundoEdit(): boolean; } export default GeometryEditor; //# sourceMappingURL=GeometryEditor.d.ts.map