Rectangle

Represents a rectangle shape.

Rectangle interface

Represents a rectangle shape.

Signature:

interface Rectangle extends ShapeMixin

Extends: ShapeMixin

Properties

Property

Modifiers

Type

Description

position

readonly

Animatable<Vector>

Position of the rectangle

roundness

readonly

Animatable<number>

Corner roundness (0 = sharp corners)

size

readonly

Animatable<Size>

Size of the rectangle

type

readonly

"RECTANGLE"

Shape type

Last updated: August 5, 2026 at 11:47 AMEdit this page