mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: fix tslint errors
This commit is contained in:
@@ -270,7 +270,7 @@ export abstract class AnimationBase implements AnimationBaseDefinition {
|
||||
}
|
||||
|
||||
if (propertyAnimations.length === 0) {
|
||||
throw new Error('No known animation properties specified');
|
||||
throw new Error("No known animation properties specified");
|
||||
}
|
||||
|
||||
return propertyAnimations;
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
import { layout } from "../../utils/utils";
|
||||
import { device } from "../../platform";
|
||||
import lazy from "../../utils/lazy";
|
||||
import * as platform from '../../platform';
|
||||
import * as platform from "../../platform";
|
||||
export * from "./animation-common";
|
||||
|
||||
interface AnimationDefinitionInternal extends AnimationDefinition {
|
||||
@@ -456,7 +456,7 @@ export class Animation extends AnimationBase {
|
||||
case Properties.width:
|
||||
case Properties.height: {
|
||||
|
||||
const isVertical: boolean = propertyAnimation.property === 'height';
|
||||
const isVertical: boolean = propertyAnimation.property === "height";
|
||||
const extentProperty = isVertical ? heightProperty : widthProperty;
|
||||
|
||||
extentProperty._initDefaultNativeValue(style);
|
||||
|
||||
2
tns-core-modules/ui/animation/animation.d.ts
vendored
2
tns-core-modules/ui/animation/animation.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
*/ /** */
|
||||
|
||||
import { View, Color } from "../core/view";
|
||||
import {PercentLength} from '../styling/style-properties';
|
||||
import { PercentLength } from "../styling/style-properties";
|
||||
|
||||
/**
|
||||
* Defines animation options for the View.animate method.
|
||||
|
||||
@@ -362,7 +362,7 @@ export class Animation extends AnimationBase {
|
||||
case Properties.width:
|
||||
case Properties.height:
|
||||
const direction: string = animation.property;
|
||||
const isHeight: boolean = direction === 'height';
|
||||
const isHeight: boolean = direction === "height";
|
||||
propertyNameToAnimate = "bounds";
|
||||
if (!parent) {
|
||||
throw new Error(`cannot animate ${direction} on root view`);
|
||||
|
||||
Reference in New Issue
Block a user