File

projects/dvk/src/lib/dynamic-animations/animation-transitions/animation-transitions.model.ts

Description

A mapping of state strings to AnimationStyleMetadata created with the style function.

Indexable

[state: string]: AnimationStyleMetadata
import { AnimationMetadata, AnimationStyleMetadata } from "@angular/animations";

/**
 * A map of states and AnimationMetadata. 
 * The top level keys are the strings representing the states
 * a transition starts from.  The inner keys are the strings 
 * representing the state being transitioned to.  Each fromState 
 * can have an animation defined for any number of toStates 
 * to play when that particular transition occurs.
 * 
 */
export interface AnimationTransitionsMap {
  [fromState: string]: {
    [toState: string]: AnimationMetadata | AnimationMetadata[];
  }
} 

/**
 * A mapping of state strings to AnimationStyleMetadata
 * created with the style function. 
 */
export interface AnimationStylesMap {
  [state: string]: AnimationStyleMetadata; 
}

results matching ""

    No results matching ""