UNPKG

leaflet-styleeditor-minified

Version:

Edit the style of features drawn within Leaflet.

38 lines (37 loc) 1.41 kB
/** * Helper functions used throuhgout the project */ import { StyleEditorImpl } from "./StyleEditorImpl"; export declare class UtilOptions { defaultColor: any; styleEditorEventPrefix: string; } export declare class Util { map: L.Map; options: UtilOptions; styleEditor: StyleEditorImpl; constructor(styleEditor: StyleEditorImpl); fireEvent(eventName: string, element?: any): void; /** fire an event if Leaflet.StyleEditor changed something */ fireChangeEvent(element: any): void; /** hide the given element */ hideElement(element: HTMLElement): void; /** convert rgb to hex of a color * @param {string} rgb - rgb representation of the color * @param {boolean} noHash - define if return value should not include hash */ rgbToHex(rgb: string, noHash?: Boolean): any; /** get current style of current element */ getStyle(option: any): any; /** set new style to current element */ setStyle(currentElement: any, option: any, value: any): void; /** show hidden element */ showElement(element: any): void; /** helper function to convert color to hex */ private componentToHex; /** get the markers for a specific color **/ getMarkersForColor(color: any): string[]; /** get default marker for specific color **/ getDefaultMarkerForColor(color: any): any; canCurrentLayersBeFilled(): Boolean; }