@types/d3
polygonCentroid
Function polygonCentroid
polygon
Centroid
(
polygon
)
:
[
number
,
number
]
Returns the centroid of the specified polygon.
Parameters
polygon
:
[
number
,
number
]
[]
Array of coordinates <x0, y0>, <x1, y1> and so on.
Returns
[
number
,
number
]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Preparing search index...
The search index is not available
@types/d3 - v7.4.3
Classes
Adder
Delaunay
FormatSpecifier
InternMap
InternSet
Voronoi
ZoomTransform
Functions
active
arc
area
areaRadial
ascending
autoType
axisBottom
axisLeft
axisRight
axisTop
bin
bisect
Loading...
Returns the centroid of the specified polygon.