2.2.3 • Published 7 months ago

@types/circle-to-polygon v2.2.3

Weekly downloads
1,145
License
MIT
Repository
github
Last release
7 months ago

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.

2.2.1

9 months ago

2.2.3

7 months ago

2.2.2

7 months ago

2.2.0

3 years ago

2.0.0

4 years ago