Mask

Hierarchy

  • Mask

Index

Properties

isInverted

isInverted: boolean = false

mode

name

name: string = ""

opacity

opacity: any

points

points: any

Methods

fromJSON

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

  • Convert the Lottie JSON object to class instance.

    Parameters

    • json: Record<string, any>

      JSON object

    Returns Mask

    Mask instance

toJSON

  • toJSON(): Record<string, any>

  • Convert the class instance to Lottie JSON object.

    Called by Javascript when serializing object with JSON.stringify()

    Returns Record<string, any>

    JSON object

Last updated