Skip to content

editor / RegularPolygon

Type Alias: RegularPolygon ​

RegularPolygon = object

Defined in: model/regular-polygon.ts:4

Regular polygon of the model: integers, an anchor, an angle and a position (ADR-0035); its vertices are derived (ADR-0003).

Properties ​

anchor ​

readonly anchor: Anchor

Defined in: model/regular-polygon.ts:8

Place in its box: one alignment per axis; mid on both is F02's placement, the one editors start with (F07).


angle ​

readonly angle: number

Defined in: model/regular-polygon.ts:6

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


corners ​

readonly corners: number

Defined in: model/regular-polygon.ts:10

Number of corners n, integer from 3 to 12 (Q19).


height ​

readonly height: number

Defined in: model/regular-polygon.ts:12

Height of the box it fits in, integer ≥ 0.


radii ​

readonly radii: readonly number[]

Defined in: model/regular-polygon.ts:18

Requested corner radius of each vertex, n of them in contour order (Q11); integers ≥ 0, the effective ones derived (Q8, ADR-0029).


stretched ​

readonly stretched: boolean

Defined in: model/regular-polygon.ts:24

Whether it is stretched to touch the four sides of its box, its sides as even as its corners allow (rule C, F06, ADR-0037); false is the regular polygon of F02, placed by its anchor.


width ​

readonly width: number

Defined in: model/regular-polygon.ts:26

Width of the box it fits in, integer ≥ 0.


x ​

readonly x: number

Defined in: model/regular-polygon.ts:28

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


y ​

readonly y: number

Defined in: model/regular-polygon.ts:30

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