editor / rectangleCorners
Function: rectangleCorners()
rectangleCorners(
rectangle): readonlyCorner[]
Defined in: model/rectangle-corners.ts:16
Straight corners of a rectangle: those of the free shape the rectangle tool makes (ADR-0032), each vertex with its requested radius (ADR-0029); its angle is not applied (turnedCorners).
Parameters
rectangle
width, height and the radius of each corner
Returns
readonly Corner[]
four corners, clockwise from the top-left vertex (Q11)
Kind
domain
See
docs/domain/shapes.md#_2-corner-radius