diff --git a/types/leaflet-polylinedecorator/index.d.ts b/types/leaflet-polylinedecorator/index.d.ts index b66fbc58cc..2ad9e3e9fa 100644 --- a/types/leaflet-polylinedecorator/index.d.ts +++ b/types/leaflet-polylinedecorator/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for leaflet-polylinedecorator 1.1 +// Type definitions for leaflet-polylinedecorator 1.6 // Project: https://github.com/bbecquet/Leaflet.PolylineDecorator#readme // Definitions by: Viktor Soucek // Michael Faisst +// BePo65 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -16,6 +17,8 @@ declare module 'leaflet' { class Dash { constructor(options?: DashOptions); + initialize(options?: DashOptions): void; + buildSymbol(dirPoint: Point, latLngs: LatLng[], map: Map, index: number, total: number): Polyline; } function dash(options?: DashOptions): Dash; @@ -29,6 +32,8 @@ declare module 'leaflet' { class ArrowHead { constructor(options?: ArrowHeadOptions); + initialize(options?: ArrowHeadOptions): void; + buildSymbol(dirPoint: Point, latLngs: LatLng[], map: Map, index: number, total: number): Polygon | Polyline; } function arrowHead(options?: ArrowHeadOptions): ArrowHead; @@ -40,11 +45,16 @@ declare module 'leaflet' { class Marker { constructor(options?: MarkerOptions); + initialize(options?: MarkerOptions): void; + buildSymbol(dirPoint: Point, latLngs: LatLng[], map: Map, index: number, total: number): Marker; } function marker(options?: MarkerOptions): Marker; } + function isCoord(c: any): boolean; + function isCoordArray(c: any): boolean; + interface Pattern { offset?: number | string; endOffset?: number | string; @@ -58,6 +68,13 @@ declare module 'leaflet' { class PolylineDecorator extends FeatureGroup { constructor(paths: Polyline | Polygon | LatLngExpression[] | Polyline[] | Polygon[] | LatLngExpression[][], options?: PolylineDecoratorOptions); + initialize(paths: Polyline | Polygon | LatLngExpression[] | Polyline[] | Polygon[] | LatLngExpression[][], options?: PolylineDecoratorOptions): void; + setPatterns(patterns: Pattern[]): void; + setPaths(paths: Polyline | Polygon | LatLngExpression[] | Polyline[] | Polygon[] | LatLngExpression[][]): void; + onAdd(map: Map): this; + onRemove(map: Map): this; + getBounds(): LatLngBounds; + redraw(): void; } function polylineDecorator(paths: Polyline | Polyline[], options?: PolylineDecoratorOptions): PolylineDecorator;