Skip to content

editor / freeShapeAroundCorners

Function: freeShapeAroundCorners() ​

freeShapeAroundCorners(corners, angle): FreeShape

Defined in: model/free-shape-around-corners.ts:18

Free shape fitted around straight corners, placed in the SVG but not turned: those corners, and the box around their points as its position, width and height, so that at 0° it draws them where they are (ADR-0033, ADR-0035). On a turned shape the new box has another center: the edits then place it so that the shape does not move (freeShapeKeptInPlace).

Parameters ​

corners ​

readonly Corner[]

straight points, placed in the SVG, and their radii, in contour order

angle ​

number

angle kept, from 0 to 359 (ADR-0035)

Returns ​

FreeShape

the free shape of those corners, at scale 1

Kind ​

domain

See ​

DERIV-free-shape-stretch