修复tween中start报错
This commit is contained in:
+7
@@ -2271,6 +2271,13 @@ declare class TimeUtils {
|
|||||||
*/
|
*/
|
||||||
static timeToMillisecond(time: string, partition?: string): string;
|
static timeToMillisecond(time: string, partition?: string): string;
|
||||||
}
|
}
|
||||||
|
declare module es {
|
||||||
|
/**
|
||||||
|
* 用于记录所有组件的属性值
|
||||||
|
*/
|
||||||
|
class TypeBit {
|
||||||
|
}
|
||||||
|
}
|
||||||
declare module es {
|
declare module es {
|
||||||
/**
|
/**
|
||||||
* 开辟一个新线程
|
* 开辟一个新线程
|
||||||
|
|||||||
Vendored
+7
@@ -2271,6 +2271,13 @@ declare class TimeUtils {
|
|||||||
*/
|
*/
|
||||||
static timeToMillisecond(time: string, partition?: string): string;
|
static timeToMillisecond(time: string, partition?: string): string;
|
||||||
}
|
}
|
||||||
|
declare module es {
|
||||||
|
/**
|
||||||
|
* 用于记录所有组件的属性值
|
||||||
|
*/
|
||||||
|
class TypeBit {
|
||||||
|
}
|
||||||
|
}
|
||||||
declare module es {
|
declare module es {
|
||||||
/**
|
/**
|
||||||
* 开辟一个新线程
|
* 开辟一个新线程
|
||||||
|
|||||||
+13
-1
@@ -5945,6 +5945,18 @@ var TimeUtils = /** @class */ (function () {
|
|||||||
return TimeUtils;
|
return TimeUtils;
|
||||||
}());
|
}());
|
||||||
var es;
|
var es;
|
||||||
|
(function (es) {
|
||||||
|
/**
|
||||||
|
* 用于记录所有组件的属性值
|
||||||
|
*/
|
||||||
|
var TypeBit = /** @class */ (function () {
|
||||||
|
function TypeBit() {
|
||||||
|
}
|
||||||
|
return TypeBit;
|
||||||
|
}());
|
||||||
|
es.TypeBit = TypeBit;
|
||||||
|
})(es || (es = {}));
|
||||||
|
var es;
|
||||||
(function (es) {
|
(function (es) {
|
||||||
/**
|
/**
|
||||||
* 开辟一个新线程
|
* 开辟一个新线程
|
||||||
@@ -11261,7 +11273,7 @@ var es;
|
|||||||
};
|
};
|
||||||
Tween.prototype.start = function () {
|
Tween.prototype.start = function () {
|
||||||
if (!this._isFromValueOverridden)
|
if (!this._isFromValueOverridden)
|
||||||
this._fromValue = this._target.getTargetObject();
|
this._fromValue = this._target.getTweenedValue();
|
||||||
if (this._tweenState == TweenState.complete) {
|
if (this._tweenState == TweenState.complete) {
|
||||||
this._tweenState = TweenState.running;
|
this._tweenState = TweenState.running;
|
||||||
es.TweenManager.addTween(this);
|
es.TweenManager.addTween(this);
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -180,7 +180,7 @@ module es {
|
|||||||
|
|
||||||
public start() {
|
public start() {
|
||||||
if (!this._isFromValueOverridden)
|
if (!this._isFromValueOverridden)
|
||||||
this._fromValue = this._target.getTargetObject();
|
this._fromValue = this._target.getTweenedValue();
|
||||||
|
|
||||||
if (this._tweenState == TweenState.complete) {
|
if (this._tweenState == TweenState.complete) {
|
||||||
this._tweenState = TweenState.running;
|
this._tweenState = TweenState.running;
|
||||||
|
|||||||
Reference in New Issue
Block a user