/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import type { Config } from "jodit/esm/config"; import type { CreateMode, IGMElement } from "../../../interface"; type DrawableMode = 'marker' | 'polyline' | 'polygon' | 'circle'; export declare function isDrawableMode(mode: CreateMode): mode is DrawableMode; /** * Replacement for the removed `google.maps.drawing.DrawingManager` * (the Drawing Library was discontinued in Maps JS API v3.65): * draws markers, polylines, polygons and circles with plain map events. * * Click places a marker / a vertex / a circle center; for circles the * radius follows the cursor and a second click fixes it; polylines and * polygons are finished with a double click. The completed shape is * passed to `onComplete` and removed from the map — the caller * re-creates it from state, exactly as with DrawingManager overlays. */ export declare class DrawingController { private readonly map; private readonly defaultStates; private readonly onComplete; private mode; private listeners; private preview; private previewCircle; private vertices; constructor(map: google.maps.Map, defaultStates: Config['googleMaps']['map']['defaultStates'], onComplete: (overlay: IGMElement) => void); setMode(mode: CreateMode): void; destruct(): void; private bind; private unbind; private onClick; private onMove; private onDblClick; private finishCircle; private updatePolyPreview; private cancel; } export {};