Skip to main content

ScaleAnimation

declare class ScaleAnimation {}

ScaleAnimation

Instance Method

constructor

declare class ScaleAnimation {
constructor(fromX: number, toX: number, fromY: number, toY: number)
}
  • Description

    Constructor to use when building a ScaleAnimation from code

constructor

declare class ScaleAnimation {
constructor(fromX: number, toX: number, fromY: number, toY: number, pivotX: number, pivotY: number)
}
  • Description

    Constructor to use when building a ScaleAnimation from code

constructor

declare class ScaleAnimation {
constructor(fromX: number, toX: number, fromY: number, toY: number, pivotXType: number, pivotXValue: number, pivotYTType: number, pivotYValue: number)
}
  • Description

    Constructor to use when building a ScaleAnimation from code

applyTransformation

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

    Helper for getTransformation.

initialize

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

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