Function: roundCorners()
ts
function roundCorners(poly, radius): RoundedCorner[];Fit a circular arc of radius into every corner of poly. radius may instead give each corner its own (0 keeps that corner sharp).
Each corner's radius is reduced where needed so an arc never uses more than half of either adjacent edge, so short edges and sharp corners stay valid and neighboring arcs never overlap.
Parameters
| Parameter | Type |
|---|---|
poly | Polygon |
radius | number | readonly number[] |