Skip to content

Function: arcBounds() ​

ts
function arcBounds(s): [number, number, number, number];

Experimental

Tight bounding box [minX, minY, maxX, maxY] (px, relative to the center, y-up) of the unpadded annular sector — a superset of the padded / rounded wedge. Includes the four corners and every axis extreme of the outer arc that falls inside the span.

Parameters ​

ParameterType
sArcShape

Returns ​

[number, number, number, number]

Released under the MIT License.