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
readonlyangle: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
readonlycorners: readonlyCorner[]
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
readonlyheight:number
Defined in: model/free-shape.ts:14
Height drawn, a finite number ≥ 0 (an integer when typed, Q15, Q27).
width
readonlywidth:number
Defined in: model/free-shape.ts:16
Width drawn, a finite number ≥ 0 (an integer when typed, Q15, Q27).
x
readonlyx: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
readonlyy:number
Defined in: model/free-shape.ts:20
Ordinate of the top-left of its box before it turns, in the SVG (ADR-0035).