UNPKG

leaflet-styleeditor-minified

Version:

Edit the style of features drawn within Leaflet.

34 lines (33 loc) 1.24 kB
import { FormElement } from '.'; /** * FormElement used for styling the icon */ export declare class IconElement extends FormElement { styleOption: string; private selectOptionWrapperClasses; private selectOptionClasses; private selectBoxImage; private selectOptions; /** create the icon selectBoxes */ createContent(): void; /** show the correct icon in the correct color if the icon or color changed */ style(): void; /** if lost focus hide potentially open SelectOption */ lostFocus(): void; /** create image container that hides/shows the iconSelectBox */ private createSelectInputImage; /** create appropriate image for color and icon */ private styleSelectInputImage; /** create the selectBox with the icons in the correct color */ private createColorSelect; /** show/hide iconSelectBox */ private toggleSelectInput; /** called when user selects a marker */ private selectMarker; /** helper function to return attribute value of target */ private getValue; /** return correct selectBox depending on which color is currently chosen */ private getCurrentColorElement; /** hide open SelectOption */ private hideSelectOptions; }