editor / Rectangle
Type Alias: Rectangle
Rectangle =
object
Defined in: model/rectangle.ts:2
Parameters of the rectangle tool, typed at creation: integer width, height and corner radii, ≥ 0 (ADR-0003, Q15), angle and position; it makes a free shape, which is what is edited afterwards (ADR-0032, ADR-0035).
Properties
angle
readonlyangle:number
Defined in: model/rectangle.ts:4
Angle in degrees, an integer from 0 to 359, clockwise on screen, about the center of its box (ADR-0035).
height
readonlyheight:number
Defined in: model/rectangle.ts:6
Vertical size, integer ≥ 0.
radii
readonlyradii: readonlynumber[]
Defined in: model/rectangle.ts:12
Requested corner radius of each vertex, in contour order: top left, top right, bottom right, bottom left (Q11); integers ≥ 0, the effective ones derived (Q8, ADR-0029).
width
readonlywidth:number
Defined in: model/rectangle.ts:14
Horizontal size, integer ≥ 0.
x
readonlyx:number
Defined in: model/rectangle.ts:16
Abscissa of the top-left of its box before it turns, in the SVG, an integer (ADR-0035).
y
readonlyy:number
Defined in: model/rectangle.ts:18
Ordinate of the top-left of its box before it turns, in the SVG, an integer (ADR-0035).