mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
chore(android): fix circular reexports (#7399)
This commit is contained in:

committed by
Manol Donev

parent
7c3141b6a5
commit
2723744091
@ -14,7 +14,6 @@ import { isEnabled as traceEnabled, write as traceWrite, categories as traceCate
|
||||
import { PercentLength } from "../styling/style-properties";
|
||||
|
||||
export { Color, traceEnabled, traceWrite, traceCategories, traceType };
|
||||
export { AnimationPromise } from ".";
|
||||
|
||||
export module Properties {
|
||||
export const opacity = "opacity";
|
||||
@ -90,7 +89,7 @@ export abstract class AnimationBase implements AnimationBaseDefinition {
|
||||
protected _rejectAlreadyPlaying(): AnimationPromiseDefinition {
|
||||
const reason = "Animation is already playing.";
|
||||
traceWrite(reason, traceCategories.Animation, traceType.warn);
|
||||
|
||||
|
||||
return <AnimationPromiseDefinition>new Promise<void>((resolve, reject) => {
|
||||
reject(reason);
|
||||
});
|
||||
|
@ -1,8 +1,8 @@
|
||||
// Definitions.
|
||||
import { AnimationDefinition } from ".";
|
||||
import { AnimationDefinition, AnimationPromise } from ".";
|
||||
import { View } from "../core/view";
|
||||
|
||||
import { AnimationBase, Properties, PropertyAnimation, CubicBezierAnimationCurve, AnimationPromise, Color, traceWrite, traceEnabled, traceCategories, traceType } from "./animation-common";
|
||||
import { AnimationBase, Properties, PropertyAnimation, CubicBezierAnimationCurve, Color, traceWrite, traceEnabled, traceCategories, traceType } from "./animation-common";
|
||||
import {
|
||||
opacityProperty, backgroundColorProperty, rotateProperty,
|
||||
translateXProperty, translateYProperty, scaleXProperty, scaleYProperty,
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { AnimationDefinition } from ".";
|
||||
import { AnimationDefinition, AnimationPromise } from ".";
|
||||
import { View } from "../core/view";
|
||||
|
||||
import { AnimationBase, Properties, PropertyAnimation, CubicBezierAnimationCurve, AnimationPromise, traceWrite, traceEnabled, traceCategories, traceType } from "./animation-common";
|
||||
import { AnimationBase, Properties, PropertyAnimation, CubicBezierAnimationCurve, traceWrite, traceEnabled, traceCategories, traceType } from "./animation-common";
|
||||
import {
|
||||
opacityProperty, backgroundColorProperty, rotateProperty,
|
||||
translateXProperty, translateYProperty, scaleXProperty, scaleYProperty,
|
||||
@ -318,7 +318,7 @@ export class Animation extends AnimationBase {
|
||||
}
|
||||
break;
|
||||
case Properties.translate:
|
||||
animation._originalValue = {x: animation.target.translateX, y: animation.target.translateY};
|
||||
animation._originalValue = { x: animation.target.translateX, y: animation.target.translateY };
|
||||
animation._propertyResetCallback = (value, valueSource) => {
|
||||
animation.target.style[setLocal ? translateXProperty.name : translateXProperty.keyframe] = value.x;
|
||||
animation.target.style[setLocal ? translateYProperty.name : translateYProperty.keyframe] = value.y;
|
||||
@ -334,7 +334,7 @@ export class Animation extends AnimationBase {
|
||||
if (toValue.y === 0) {
|
||||
toValue.y = 0.001;
|
||||
}
|
||||
animation._originalValue = {x: animation.target.scaleX, y: animation.target.scaleY};
|
||||
animation._originalValue = { x: animation.target.scaleX, y: animation.target.scaleY };
|
||||
animation._propertyResetCallback = (value, valueSource) => {
|
||||
animation.target.style[setLocal ? scaleXProperty.name : scaleXProperty.keyframe] = value.x;
|
||||
animation.target.style[setLocal ? scaleYProperty.name : scaleYProperty.keyframe] = value.y;
|
||||
|
Reference in New Issue
Block a user