Interface RegularShape

interface RegularShape {
    angle: number;
    displacement: number[];
    fill: Fill;
    points: number;
    radius: number;
    radius1: number;
    radius2: number;
    rotateWithView: boolean;
    rotation: number;
    stroke: Stroke;
}

Properties

angle: number

Shape's angle in radians. A value of 0 will have one of the shape's point facing up.

displacement: number[]

Displacement of the shape

fill: Fill

Fill style.

points: number

Number of points for stars and regular polygons. In case of a polygon, the number of points is the number of sides.

radius: number

Radius of a regular polygon.

radius1: number

Outer radius of a star.

radius2: number

Inner radius of a star.

rotateWithView: boolean

Whether to rotate the shape with the view.

rotation: number

Rotation in radians (positive rotation clockwise).

stroke: Stroke

Stroke style.