ImageAsset

Image assets imported in to the Lottie as per After Effects. This class extends the Asset class.

Hierarchy

Constructors

constructor

Properties

Optional data

data: undefined | string

height

height: number

Optional id

id: undefined | string

parent

parent: any

Optional path

path: undefined | string

width

width: number

Methods

fromJSON

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

  • Parameters

    • json: Record<string, any>

    Returns ImageAsset

    ImageAsset instance

toJSON

  • toJSON(): Record<string, any>

  • Returns Record<string, any>

    JSON object

Last updated