mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
673 B
TypeScript
18 lines
673 B
TypeScript
// Type definitions for polylabel 1.0
|
|
// Project: https://github.com/mapbox/polylabel
|
|
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/**
|
|
* 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[];
|
|
declare namespace polylabel {}
|
|
export default polylabel;
|