mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
updated leaflet-curve definition (#37795)
This commit is contained in:
committed by
Sheetal Nandi
parent
b167c4b6a9
commit
eb7e43955d
29
types/leaflet-curve/index.d.ts
vendored
29
types/leaflet-curve/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user