Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • P = any

  • S = any

Hierarchy

  • PluginStateAnimation

Index

Properties

display: { description?: string; name: string }

Type declaration

  • Optional Readonly description?: string
  • Readonly name: string
isExportable?: boolean
name: string
stateSerialization?: { fromJSON: any; toJSON: any }

The state must be serializable to JSON. If JSON.stringify is not enough, custom converted to an object that works with JSON.stringify can be provided.

Type declaration

  • fromJSON:function
    • fromJSON(data: any): S
    • Parameters

      • data: any

      Returns S

  • toJSON:function
    • toJSON(state: S): any
    • Parameters

      • state: S

      Returns any

Methods

  • Parameters

    Returns CanApply

  • Parameters

    Returns Duration

  • Parameters

    Returns S

  • setup(params: P, state: S, ctx: PluginContext): void | Promise<void> | Promise<S>
  • Parameters

    Returns void | Promise<void> | Promise<S>

  • teardown(params: P, state: S, ctx: PluginContext): void | Promise<void>
  • Parameters

    Returns void | Promise<void>

Generated using TypeDoc