UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

31 lines (30 loc) 1.27 kB
import { Animation as AnimationBaseDefinition } from '.'; import { AnimationDefinition, AnimationPromise as AnimationPromiseDefinition, PropertyAnimation } from './animation-interfaces'; export * from './animation-interfaces'; export declare namespace Properties { const opacity = "opacity"; const backgroundColor = "backgroundColor"; const translate = "translate"; const rotate = "rotate"; const scale = "scale"; const height = "height"; const width = "width"; } export declare abstract class AnimationBase implements AnimationBaseDefinition { _propertyAnimations: Array<PropertyAnimation>; _playSequentially: boolean; private _isPlaying; private _resolve; private _reject; constructor(animationDefinitions: Array<AnimationDefinition>, playSequentially?: boolean); abstract _resolveAnimationCurve(curve: any): any; protected _rejectAlreadyPlaying(): AnimationPromiseDefinition; play(): AnimationPromiseDefinition; private fixupAnimationPromise; cancel(): void; get isPlaying(): boolean; _resolveAnimationFinishedPromise(): void; _rejectAnimationFinishedPromise(): void; private static _createPropertyAnimations; static _getAnimationInfo(animation: PropertyAnimation): string; }