RectangleShape

A 4-sided flat shape with straight sides where all interior angles are right angles (90°) also opposite sides are parallel and of equal length. This represents a conventional rectangle as created by After Effects

Hierarchy

Constructors

constructor

Properties

Optional classNames

classNames: undefined | string

Optional direction

direction: undefined | number

Direction how the shape is drawn

Mapped field: d

Optional id

id: undefined | string

isHidden

isHidden: boolean = false

Optional itemIndex

itemIndex: undefined | number

Optional matchName

matchName: undefined | string

Optional name

name: undefined | string

parent

parent: any

position

position: Property = new Property(this, PropertyType.POSITION)

Position of the rectangle

roundness

roundness: Property = new Property(this, PropertyType.ROUNDNESS)

Corner roundness of the rectangle.

Optional shapeIndex

shapeIndex: undefined | number

size

size: Property = new Property(this, PropertyType.SIZE)

Size of the rectangle.

Readonly type

type: RECTANGLE = ShapeType.RECTANGLE

Mapped field: ty

Mapped field value : rv

Methods

fromJSON

toJSON

  • toJSON(): Record<string, any>

  • Returns Record<string, any>

    JSON object

Last updated