2.2.3 • Published 7 months ago
@types/circle-to-polygon v2.2.3
Installation
npm install --save @types/circle-to-polygon
Summary
This package contains type definitions for circle-to-polygon (https://github.com/gabzim/circle-to-polygon).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/circle-to-polygon.
index.d.ts
// Type definitions for circle-to-polygon 2.2
// Project: https://github.com/gabzim/circle-to-polygon
// Definitions by: Jan Zak <https://github.com/zakjan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as GeoJSON from 'geojson';
interface PolygonConfig {
earthRadius?: number;
numberOfEdges?: number;
bearing?: number;
rightHandRule?: boolean;
}
declare function circleToPolygon(
center: GeoJSON.Position,
radius: number,
numberOfSegments?: number | PolygonConfig,
): GeoJSON.Polygon;
export = circleToPolygon;
Additional Details
- Last updated: Mon, 19 Jul 2021 12:01:23 GMT
- Dependencies: @types/geojson
- Global values: none
Credits
These definitions were written by Jan Zak.