Rectangle

Represents a rectangle shape.

Rectangle interface

Represents a rectangle shape.

Signature:

interface Rectangle extends ShapeMixin, PathDataMixin

Extends: ShapeMixin, PathDataMixin

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: October 8, 2026 at 10:45 AMEdit this page