Skip to main content

TranslateAnimation

declare class TranslateAnimation {}

TranslateAnimation

Instance Method

constructor

declare class TranslateAnimation {
constructor(fromXDelta: number, toXDelta: number, fromYDelta: number, toYDelta: number)
}
  • Description

    Constructor to use when building a TranslateAnimation from code

constructor

declare class TranslateAnimation {
constructor(fromXType: number, fromXValue: number, toXType: number, toXValue: number, fromYType: number, fromYValue: number, toYType: number, toYValue: number)
}
  • Description

    Constructor to use when building a TranslateAnimation from code

applyTransformation

declare class TranslateAnimation {
applyTransformation(interpolatedTime: number, t:Transformation): void
}
  • Description

    Helper for getTransformation.

willChangeBounds

declare class TranslateAnimation {
initialize(width, height, parentWidth, parentHeight): void
}
  • Description

    Initialize this animation with the dimensions of the object being animated as well as the objects parents.