UNPKG

leaflet-polydraw

Version:

Advanced polygon drawing and editing plugin for Leaflet with drag-and-drop, smart merging, and comprehensive editing tools

24 lines 932 B
export declare class GeometryUtils { /** * Calculate angle between three points */ static calculateAngle(p1: L.LatLngLiteral, p2: L.LatLngLiteral, p3: L.LatLngLiteral): number; /** * Calculate distance from point to line between two other points */ static calculateDistanceFromLine(p1: L.LatLngLiteral, point: L.LatLngLiteral, p2: L.LatLngLiteral): number; /** * Calculate centroid of polygon * @deprecated Use PolygonUtil.getCenter() instead for consistency */ static calculateCentroid(latlngs: L.LatLngLiteral[]): L.LatLngLiteral; /** * Calculate distance between two points */ static calculateDistance(p1: L.LatLngLiteral, p2: L.LatLngLiteral): number; /** * Apply offset to polygon coordinates */ static offsetPolygonCoordinates(latLngs: any, offsetLat: number, offsetLng: number): any; } //# sourceMappingURL=geometry-utils.d.ts.map