updated leaflet-curve definition (#37795)

This commit is contained in:
AndreaCimini
2019-08-26 17:41:41 +02:00
committed by Sheetal Nandi
parent b167c4b6a9
commit eb7e43955d

View File

@@ -1,14 +1,33 @@
// Type definitions for leaflet-curve 0.1
// Project: https://github.com/onikiienko/Leaflet.curve
// Definitions by: Onikiienko <https://github.com/onikiienko>
// Andrea <https://github.com/AndreaCimini>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// TypeScript Version: 3.0
import * as L from 'leaflet';
declare module 'leaflet' {
/**
* Drawing Bezier curves and other complex shapes.
*/
function curve(path: any[], options?: PathOptions): Path;
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;
}