Skip to content

editor / rectangleAsFreeShape

Function: rectangleAsFreeShape() ​

rectangleAsFreeShape(rectangle): FreeShape

Defined in: model/rectangle-as-free-shape.ts:23

Free shape made by the rectangle tool: the unit square, top-left first, clockwise (Q11), each corner with its radius, stretched to the rectangle's width and height (ADR-0032, ADR-0033).

Parameters ​

rectangle ​

Rectangle

width, height and the radius of each corner

Returns ​

FreeShape

the free shape drawing that rectangle

Kind ​

domain

See ​

DERIV-free-shape-stretch