@types/polylabel
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Installation

npm install --save @types/polylabel

Summary

This package contains type definitions for polylabel (https://github.com/mapbox/polylabel).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/polylabel.

index.d.ts

/**
 * Polylabel returns the pole of inaccessibility coordinate in [x, y] format.
 *
 * @param polygon - Given polygon coordinates in GeoJSON-like format
 * @param precision - Precision (1.0 by default)
 * @param debug - Debugging for Console
 * @example
 * var p = polylabel(polygon, 1.0);
 */
declare function polylabel(polygon: number[][][], precision?: number, debug?: boolean): number[] & { distance: number };
declare namespace polylabel {}
export default polylabel;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Denis Carriere.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/polylabel

Weekly Downloads

98,006

Version

1.1.3

License

MIT

Unpacked Size

3.5 kB

Total Files

5

Last publish

Collaborators

  • types