修复tween中start报错

This commit is contained in:
yhh
2021-08-03 00:09:43 +08:00
parent fd82486bbc
commit 2a026726db
5 changed files with 29 additions and 3 deletions
+7
View File
@@ -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 {
/** /**
* 开辟一个新线程 * 开辟一个新线程
+7
View File
@@ -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
View File
@@ -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);
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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;