/// /// import MapboxGlDraw from '@mapbox/mapbox-gl-draw'; import { StyleTemplate } from './type'; export { StyleTemplate }; export default class MapboxDrawer { _map: mapboxgl.Map; _draw: MapboxGlDraw; _option?: any; currentSelectId: string | null; selectCbFn: Function; drawTypes: { [prop: string]: any; }; measure_result_type: string; private _Measure; private _baseDraw; private _drawCircle; private _drawEllipse; private _drawCurve; private _drawRectangle; private _drawSector; private _drawCloseCurve; private _drawDoublearrow; private _drawTailsquadarrow; private _drawText; private _drawFreeLine; private _drawStraightArrow; constructor(map: mapboxgl.Map, option?: {}); init(): void; switchDrawTool(tool?: string, option?: {}): Promise; trash(): void; deleteAll(): void; getAll(): import("geojson").FeatureCollection; private defaultStyle; /** * * @param {string} type */ private getStyleTemplate; setDefaultStyle(type: string, styles: { [props: string]: number | string; }): void; setDefaultMeasureTextStyle({ textSize, textOffset, textColor, textHaloBlur, textHaloWidth, textHaloColor }: { textSize: number; textOffset: number[]; textColor: string; textHaloBlur: number; textHaloWidth: number; textHaloColor: string; }): void; selectStyleCB(cb: Function): void; private selectCb; deleteStyleCB(cb: any): void; changeStyle(name: string, value: string | number): void; delete(ids: string | string[]): void; getSelectedIds(): string[]; selectCB(cb: (f: any) => void): void; updateCB(cb: (f: any) => void): void; deleteCB(cb: (f: any) => void): void; } //# sourceMappingURL=index.d.ts.map