Layer

Hierarchy

Constructors

constructor

  • newLayer(parent: any): Layer

  • Parameters

    • parent: any

    Returns Layer

Properties

anchor

anchor: Property = new Property(this, PropertyType.ANCHOR)

autoOrient

autoOrient: boolean = false

blendMode

blendMode: BlendMode = BlendMode.NORMAL

classNames

classNames: string[] = []

effects

effects: any

height

height: number = 0

id

id: string = ""

inPoint

inPoint: number = 0

Optional index

index: undefined | number

is3D

is3D: boolean = false

name

name: string = ""

opacity

opacity: Property = new Property(this, PropertyType.OPACITY)

Optional orientation

outPoint

outPoint: number = 0

Protected parent

parent: any

position

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

Optional rotation

Optional rotationX

Optional rotationY

Optional rotationZ

scale

scale: Property = new Property(this, PropertyType.SCALE)

startTime

startTime: number = 0

timeStretch

timeStretch: number = 1

Readonly Abstract type

width

width: number = 0

Accessors

colors

  • get colors(): string[]

  • Returns string[]

    Array of colors.

totalFrames

  • get totalFrames(): number

  • Returns number

    Number of frames.

Methods

Abstract fromJSON

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

  • Parameters

    • json: Record<string, any>

    Returns Layer

Abstract toJSON

  • toJSON(key?: undefined | string): Record<string, any> | undefined

  • Parameters

    • Optional key: undefined | string

    Returns Record<string, any> | undefined

Last updated