Skip to content

editor / FreeShape

Type Alias: FreeShape ​

FreeShape = object

Defined in: model/free-shape.ts:8

Free shape of the model (ADR-0032, ADR-0033): its corners — each a point in the shape's own box and its requested radius — stretched to its width and height when drawn (DERIV-free-shape-stretch).

Properties ​

angle ​

readonly angle: number

Defined in: model/free-shape.ts:10

Angle in degrees, an integer from 0 to 359, clockwise on screen, about the center of its box (ADR-0035).


corners ​

readonly corners: readonly Corner[]

Defined in: model/free-shape.ts:12

Corners as stored, in contour order (Q11): finite points spanning a box of positive size, radii integers ≥ 0.


height ​

readonly height: number

Defined in: model/free-shape.ts:14

Height drawn, a finite number ≥ 0 (an integer when typed, Q15, Q27).


width ​

readonly width: number

Defined in: model/free-shape.ts:16

Width drawn, a finite number ≥ 0 (an integer when typed, Q15, Q27).


x ​

readonly x: number

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

Abscissa of the top-left of its box before it turns, in the SVG; the stored points' top-left is only the reference of the stretch (ADR-0035).


y ​

readonly y: number

Defined in: model/free-shape.ts:20

Ordinate of the top-left of its box before it turns, in the SVG (ADR-0035).