Property

Represents animated properties of layers and shapes.

Hierarchy

  • Property

Constructors

constructor

  • parent : instance the property belongs to.

  • type : Property type.

Properties

Optional expression

expression: undefined | string

index

index: number = 0

isAnimated

isAnimated: boolean = false

Optional maxColors

maxColors: undefined | number

Protected parent

parent: any

Readonly type

values

Methods

getParent

  • returns the parent shape of the given property

fromJSON

  • fromJSON(json: Record<string, any>): Property

  • Parameters

    • json: Record<string, any>

    Returns Property

    ShapeLayer instance

toJSON

  • toJSON(): Record<string, any>

  • Returns Record<string, any>

    JSON object

Last updated