GitHubPixels Website
  • Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • @systemic-games/pixels-edit-animation
  • Serializable
  • toAnimation

Function toAnimation

  • toAnimation<T>(type, data, getAnimation, getPattern, getGradient, allowMissingDependency?): EditAnimation
  • Type Parameters

    • T extends keyof Serializable.AnimationSetData

    Parameters

    • type: T
    • data: Readonly<Serializable.AnimationSetData[T][number]>
    • getAnimation: ((uuid: string) => undefined | EditAnimation)
        • (uuid): undefined | EditAnimation
        • Parameters

          • uuid: string

          Returns undefined | EditAnimation

    • getPattern: ((uuid: string) => undefined | EditPattern)
        • (uuid): undefined | EditPattern
        • Parameters

          • uuid: string

          Returns undefined | EditPattern

    • getGradient: ((uuid: string) => undefined | EditRgbGradient)
        • (uuid): undefined | EditRgbGradient
        • Parameters

          • uuid: string

          Returns undefined | EditRgbGradient

    • allowMissingDependency: boolean = false

    Returns EditAnimation

    • Defined in pixels-edit-animation/src/serializable/convert.ts:223

Settings

Member Visibility
GitHubPixels Website
Documentation
  • Loading...

Generated using TypeDoc