Gathering detailed insights and metrics for @types/d3-polygon
Gathering detailed insights and metrics for @types/d3-polygon
Gathering detailed insights and metrics for @types/d3-polygon
Gathering detailed insights and metrics for @types/d3-polygon
The repository for high quality TypeScript type definitions.
npm install @types/d3-polygon
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,033 Stars
89,737 Commits
30,434 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 14, 2025
Latest Version
3.0.2
Package Id
@types/d3-polygon@3.0.2
Unpacked Size
6.34 kB
Size
2.10 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
npm install --save @types/d3-polygon
This package contains type definitions for d3-polygon (https://github.com/d3/d3-polygon/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-polygon.
1// Last module patch version validated against: 3.0.1 2 3/** 4 * Returns the signed area of the specified polygon. If the vertices of the polygon are in counterclockwise order 5 * (assuming a coordinate system where the origin <0,0> is in the top-left corner), the returned area is positive; 6 * otherwise it is negative, or zero. 7 * 8 * @param polygon Array of coordinates <x0, y0>, <x1, y1> and so on. 9 */ 10export function polygonArea(polygon: Array<[number, number]>): number; 11 12/** 13 * Returns the centroid of the specified polygon. 14 * 15 * @param polygon Array of coordinates <x0, y0>, <x1, y1> and so on. 16 */ 17export function polygonCentroid(polygon: Array<[number, number]>): [number, number]; 18 19/** 20 * Returns the convex hull of the specified points using Andrew’s monotone chain algorithm. 21 * The returned hull is represented as an array containing a subset of the input points arranged in 22 * counterclockwise order. Returns null if points has fewer than three elements. 23 * 24 * @param points Array of coordinates <x0, y0>, <x1, y1> and so on. 25 */ 26export function polygonHull(points: Array<[number, number]>): Array<[number, number]> | null; 27 28/** 29 * Returns true if and only if the specified point is inside the specified polygon. 30 * 31 * @param polygon Array of coordinates <x0, y0>, <x1, y1> and so on. 32 * @param point Coordinates of point <x, y>. 33 */ 34export function polygonContains(polygon: Array<[number, number]>, point: [number, number]): boolean; 35 36/** 37 * Returns the length of the perimeter of the specified polygon. 38 * 39 * @param polygon Array of coordinates <x0, y0>, <x1, y1> and so on. 40 */ 41export function polygonLength(polygon: Array<[number, number]>): number; 42
These definitions were written by Tom Wanzek, Alex Ford, Boris Yankov, and Nathan Bierema.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More