Function: roundedPolygon()
ts
function roundedPolygon(
poly,
radius,
maxStep?
): Polygon;poly with its corners rounded, as a plain polygon: each arc is approximated by straight segments of at most maxStep radians (default 10°). Useful where curves aren't available, such as CSS clip-path: polygon().
Parameters
| Parameter | Type |
|---|---|
poly | Polygon |
radius | number | readonly number[] |
maxStep | number |