mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -12,6 +12,7 @@ import { Device, screen } from '../../platform';
|
||||
import lazy from '../../utils/lazy';
|
||||
|
||||
export * from './animation-common';
|
||||
export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation';
|
||||
|
||||
let argbEvaluator: android.animation.ArgbEvaluator;
|
||||
function ensureArgbEvaluator() {
|
||||
|
||||
2
nativescript-core/ui/animation/index.d.ts
vendored
2
nativescript-core/ui/animation/index.d.ts
vendored
@@ -2,6 +2,8 @@
|
||||
import { Color } from '../../color';
|
||||
import { PercentLength } from '../styling/style-properties';
|
||||
|
||||
export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation';
|
||||
|
||||
/**
|
||||
* Defines animation options for the View.animate method.
|
||||
*/
|
||||
|
||||
@@ -12,6 +12,7 @@ import { ios as iosNativeHelper } from '../../utils/native-helper';
|
||||
import { screen } from '../../platform';
|
||||
|
||||
export * from './animation-common';
|
||||
export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation';
|
||||
|
||||
let _transform = '_transform';
|
||||
let _skip = '_skip';
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// Definitions.
|
||||
import { Keyframes as KeyframesDefinition, UnparsedKeyframe as UnparsedKeyframeDefinition, KeyframeDeclaration as KeyframeDeclarationDefinition, KeyframeInfo as KeyframeInfoDefinition, KeyframeAnimationInfo as KeyframeAnimationInfoDefinition, KeyframeAnimation as KeyframeAnimationDefinition } from './keyframe-animation';
|
||||
|
||||
import { View } from '../core/view';
|
||||
import { Color } from '../../color';
|
||||
|
||||
@@ -13,28 +10,28 @@ import { unsetValue } from '../core/properties';
|
||||
import { Animation } from '.';
|
||||
import { backgroundColorProperty, scaleXProperty, scaleYProperty, translateXProperty, translateYProperty, rotateProperty, opacityProperty, rotateXProperty, rotateYProperty, widthProperty, heightProperty, PercentLength } from '../styling/style-properties';
|
||||
|
||||
export class Keyframes implements KeyframesDefinition {
|
||||
export class Keyframes {
|
||||
name: string;
|
||||
keyframes: Array<UnparsedKeyframe>;
|
||||
}
|
||||
|
||||
export class UnparsedKeyframe implements UnparsedKeyframeDefinition {
|
||||
export class UnparsedKeyframe {
|
||||
values: Array<any>;
|
||||
declarations: Array<KeyframeDeclaration>;
|
||||
}
|
||||
|
||||
export class KeyframeDeclaration implements KeyframeDeclarationDefinition {
|
||||
export class KeyframeDeclaration {
|
||||
public property: string;
|
||||
public value: any;
|
||||
}
|
||||
|
||||
export class KeyframeInfo implements KeyframeInfoDefinition {
|
||||
export class KeyframeInfo {
|
||||
public duration: number;
|
||||
public declarations: Array<KeyframeDeclaration>;
|
||||
public curve?: any = AnimationCurve.ease;
|
||||
}
|
||||
|
||||
export class KeyframeAnimationInfo implements KeyframeAnimationInfoDefinition {
|
||||
export class KeyframeAnimationInfo {
|
||||
public keyframes: Array<KeyframeInfo>;
|
||||
public name?: string = '';
|
||||
public duration?: number = 0.3;
|
||||
@@ -59,7 +56,7 @@ interface Keyframe {
|
||||
forceLayer?: boolean;
|
||||
}
|
||||
|
||||
export class KeyframeAnimation implements KeyframeAnimationDefinition {
|
||||
export class KeyframeAnimation {
|
||||
public animations: Array<Keyframe>;
|
||||
public delay: number = 0;
|
||||
public iterations: number = 1;
|
||||
|
||||
Reference in New Issue
Block a user