npm.io
0.1.6 • Published 1 year ago

@types/leaflet-curve

Licence
MIT
Version
0.1.6
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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: Wed, 03 Sep 2025 0847 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by Onikiienko, and Andrea.