Installation
npm install --save @types/leaflet-curve
Summary
This package contains type definitions for leaflet-curve (https://github.com/onikiienko/Leaflet.curve).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-curve.
index.d.ts
import * as L from "leaflet";
declare module "leaflet" {
class Curve extends Path {
/*
* Return path
*/
getPath(): Array<string | Array<[]>>;
/*
* Set path
*/
setPath(): Curve;
/*
* Get bounds
*/
getBounds(): LatLngBounds;
/*
* Get center
*/
getCenter(): LatLng;
}
/*
* Drawing Bezier curves and other complex shapes.
*/
function curve(path: any[], options?: PathOptions): Curve;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/leaflet
Credits
These definitions were written by Onikiienko, and Andrea.