leaflet-polydraw
Version:
Advanced Leaflet plugin for freehand polygon drawing, with smart merging and powerful editing tools. Compatible with both Leaflet v1.x and v2.x.
27 lines • 1.08 kB
TypeScript
/**
* Factory for creating popup UI structures.
* Provides reusable methods for building popup DOM elements.
*/
export declare class PopupFactory {
/**
* Creates a menu button element.
* @param id Unique identifier for the button.
* @param title Tooltip text.
* @param cssClasses Additional CSS classes to apply.
* @returns HTMLDivElement representing the menu button.
*/
static createMenuButton(id: string, title: string, cssClasses: string[]): HTMLDivElement;
/**
* Builds a menu popup container structure.
* @param buttons Array of button elements to include.
* @returns HTMLDivElement containing the complete menu structure.
*/
static buildMenuPopup(buttons: HTMLDivElement[]): HTMLDivElement;
/**
* Builds an info popup container structure.
* @param content HTML element to display inside the popup.
* @returns HTMLDivElement containing the complete info popup structure.
*/
static buildInfoPopup(content: HTMLElement): HTMLDivElement;
}
//# sourceMappingURL=popup-factory.d.ts.map