Commit 36e2ca2a authored by 邱旭's avatar 邱旭

更新,3D模型骨骼使用纹理贴图的形式传数据,提升骨骼数量上限

parent 76d01296
declare namespace Tween{export class Ease {
/**
* @version
* @platform Web,Native
*/
constructor();
/**
* get.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static get(amount: number): (t: number) => number;
/**
* get pow in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get pow in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static getPowIn(pow: number): (t: number) => number;
/**
* get pow out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get pow out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static getPowOut(pow: number): (t: number) => number;
/**
* get pow in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get pow in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static getPowInOut(pow: number): (t: number) => number;
/**
* quad in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* quad in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static quadIn: (t: number) => number;
/**
* quad out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* quad out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static quadOut: (t: number) => number;
/**
* quad in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* quad in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static quadInOut: (t: number) => number;
/**
* cubic in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* cubic in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static cubicIn: (t: number) => number;
/**
* cubic out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* cubic out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static cubicOut: (t: number) => number;
/**
* cubic in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* cubic in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static cubicInOut: (t: number) => number;
/**
* quart in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* quart in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static quartIn: (t: number) => number;
/**
* quart out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* quart out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static quartOut: (t: number) => number;
/**
* quart in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* quart in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static quartInOut: (t: number) => number;
/**
* quint in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* quint in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static quintIn: (t: number) => number;
/**
* quint out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* quint out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static quintOut: (t: number) => number;
/**
* quint in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* quint in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static quintInOut: (t: number) => number;
/**
* sine in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* sine in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static sineIn(t: number): number;
/**
* sine out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* sine out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static sineOut(t: number): number;
/**
* sine in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* sine in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static sineInOut(t: number): number;
/**
* get back in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get back in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static getBackIn(amount: number): (t: number) => number;
/**
* back in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* back in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static backIn: (t: number) => number;
/**
* get back out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get back out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static getBackOut(amount: number): (t: any) => number;
/**
* back out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* back out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static backOut: (t: any) => number;
/**
* get back in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get back in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static getBackInOut(amount: number): (t: number) => number;
/**
* back in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* back in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static backInOut: (t: number) => number;
/**
* circ in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* circ in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static circIn(t: number): number;
/**
* circ out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* circ out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static circOut(t: number): number;
/**
* circ in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* circ in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static circInOut(t: number): number;
/**
* bounce in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* bounce in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static bounceIn(t: number): number;
/**
* bounce out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* bounce out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static bounceOut(t: number): number;
/**
* bounce in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* bounce in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static bounceInOut(t: number): number;
/**
* get elastic in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get elastic in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static getElasticIn(amplitude: number, period: number): (t: number) => number;
/**
* elastic in.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* elastic in。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static elasticIn: (t: number) => number;
/**
* get elastic out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get elastic out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static getElasticOut(amplitude: number, period: number): (t: number) => number;
/**
* elastic out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* elastic out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static elasticOut: (t: number) => number;
/**
* get elastic in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* get elastic in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static getElasticInOut(amplitude: number, period: number): (t: number) => number;
/**
* elastic in out.See example.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* elastic in out。请查看示例
* @version
* @platform Web,Native
* @language zh_CN
*/
static elasticInOut: (t: number) => number;
}
export class Tween {
/**
* 不做特殊处理
* @constant {number} Tween.NONE
* @private
*/
private static NONE;
/**
* 循环
* @constant {number} Tween.LOOP
* @private
*/
private static LOOP;
/**
* 倒序
* @constant {number} Tween.REVERSE
* @private
*/
private static REVERSE;
/**
* @private
*/
private static _tweens;
/**
* @private
*/
private static IGNORE;
/**
* @private
*/
private static _plugins;
/**
* @private
*/
private static _inited;
/**
* @private
*/
private _target;
/**
* @private
*/
private _useTicks;
/**
* @private
*/
private ignoreGlobalPause;
/**
* @private
*/
private loop;
/**
* @private
*/
private pluginData;
/**
* @private
*/
private _curQueueProps;
/**
* @private
*/
private _initQueueProps;
/**
* @private
*/
private _steps;
/**
* @private
*/
private paused;
/**
* @private
*/
private duration;
/**
* @private
*/
private _prevPos;
/**
* @private
*/
private position;
/**
* @private
*/
private _prevPosition;
/**
* @private
*/
private _stepPosition;
/**
* @private
*/
private passive;
/**
* Activate an object and add a Tween animation to the object
* @param target {any} The object to be activated
* @param props {any} Parameters, support loop onChange onChangeObj
* @param pluginData {any} Write realized
* @param override {boolean} Whether to remove the object before adding a tween, the default value false
* Not recommended, you can use Tween.removeTweens(target) instead.
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 激活一个对象,对其添加 Tween 动画
* @param target {any} 要激活 Tween 的对象
* @param props {any} 参数,支持loop(循环播放) onChange(变化函数) onChangeObj(变化函数作用域)
* @param pluginData {any} 暂未实现
* @param override {boolean} 是否移除对象之前添加的tween,默认值false。
* 不建议使用,可使用 Tween.removeTweens(target) 代替。
* @version
* @platform Web,Native
* @language zh_CN
*/
static get(target: any, props?: {
loop?: boolean;
onChange?: Function;
onChangeObj?: any;
}, pluginData?: any, override?: boolean): Tween;
/**
* Delete all Tween animations from an object
* @param target The object whose Tween to be deleted
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 删除一个对象上的全部 Tween 动画
* @param target 需要移除 Tween 的对象
* @version
* @platform Web,Native
* @language zh_CN
*/
static removeTweens(target: any): void;
/**
* 移除tween
* @param tween get返回的Tween实例
*/
static removeTweenSelf(tween: Tween): void;
/**
* Pause all Tween animations of a certain object
* @param target The object whose Tween to be paused
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 暂停某个对象的所有 Tween
* @param target 要暂停 Tween 的对象
* @version
* @platform Web,Native
* @language zh_CN
*/
static pauseTweens(target: any): void;
/**
* Resume playing all easing of a certain object
* @param target The object whose Tween to be resumed
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 继续播放某个对象的所有缓动
* @param target 要继续播放 Tween 的对象
* @version
* @platform Web,Native
* @language zh_CN
*/
static resumeTweens(target: any): void;
/**
* @private
*
* @param delta
* @param paused
*/
private static tick;
/**
* flush方法,为了能加入总循环
* 默认是锁步的
* @param delta
* @param paused ,暂时不用,全局禁止
*/
static flush(): void;
private static _lastTime;
/**
* @private
*
* @param tween
* @param value
*/
private static _register;
/**
* Delete all Tween
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 删除所有 Tween
* @version
* @platform Web,Native
* @language zh_CN
*/
static removeAllTweens(): void;
/**
* 创建一个 Tween 对象
* @private
* @version
* @platform Web,Native
*/
constructor(target: any, props: any, pluginData: any);
onChange: Function;
/**
* @private
*
* @param target
* @param props
* @param pluginData
*/
private initialize;
/**
* @private
*
* @param value
* @param actionsMode
* @returns
*/
setPosition(value: number, actionsMode?: number): boolean;
/**
* @private
*
* @param startPos
* @param endPos
* @param includeStart
*/
private _runAction;
/**
* @private
*
* @param step
* @param ratio
*/
private _updateTargetProps;
/**
* Whether setting is paused
* @param value {boolean} Whether to pause
* @returns Tween object itself
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 设置是否暂停
* @param value {boolean} 是否暂停
* @returns Tween对象本身
* @version
* @platform Web,Native
* @language zh_CN
*/
setPaused(value: boolean): Tween;
/**
* @private
*
* @param props
* @returns
*/
private _cloneProps;
/**
* @private
*
* @param o
* @returns
*/
private _addStep;
/**
* @private
*
* @param o
* @returns
*/
private _appendQueueProps;
/**
* @private
*
* @param o
* @returns
*/
private _addAction;
/**
* @private
*
* @param props
* @param o
*/
private _set;
/**
* Wait the specified milliseconds before the execution of the next animation
* @param duration {number} Waiting time, in milliseconds
* @param passive {boolean} Whether properties are updated during the waiting time
* @returns Tween object itself
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 等待指定毫秒后执行下一个动画
* @param duration {number} 要等待的时间,以毫秒为单位
* @param passive {boolean} 等待期间属性是否会更新
* @returns Tween对象本身
* @version
* @platform Web,Native
* @language zh_CN
*/
wait(duration: number, passive?: boolean): Tween;
/**
* Modify the property of the specified object to a specified value
* @param props {Object} Property set of an object
* @param duration {number} Duration
* @param ease {Ease} Easing algorithm
* @returns {Tween} Tween object itself
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 将指定对象的属性修改为指定值
* @param props {Object} 对象的属性集合
* @param duration {number} 持续时间
* @param ease {Ease} 缓动算法
* @returns {Tween} Tween对象本身
* @version
* @platform Web,Native
* @language zh_CN
*/
to(props: any, duration?: number, ease?: Function): Tween;
/**
* by
* @param props
* @param duration
* @param ease
*/
by(props: any, duration?: number, ease?: Function): Tween;
/**
* Execute callback function
* @param callback {Function} Callback method
* @param thisObj {any} this action scope of the callback method
* @param params {any[]} Parameter of the callback method
* @returns {Tween} Tween object itself
* @version
* @platform Web,Native
* @example
* <pre>
* Tween.get(display).call(function (a:number, b:string) {
* console.log("a: " + a); // the first parameter passed 233
* console.log("b: " + b); // the second parameter passed “hello”
* }, this, [233, "hello"]);
* </pre>
* @language en_US
*/
/**
* 执行回调函数
* @param callback {Function} 回调方法
* @param thisObj {any} 回调方法this作用域
* @param params {any[]} 回调方法参数
* @returns {Tween} Tween对象本身
* @version
* @platform Web,Native
* @example
* <pre>
* Tween.get(display).call(function (a:number, b:string) {
* console.log("a: " + a); //对应传入的第一个参数 233
* console.log("b: " + b); //对应传入的第二个参数 “hello”
* }, this, [233, "hello"]);
* </pre>
* @language zh_CN
*/
call(callback: Function, thisObj?: any, params?: any[]): Tween;
/**
* Now modify the properties of the specified object to the specified value
* @param props {Object} Property set of an object
* @param target The object whose Tween to be resumed
* @returns {Tween} Tween object itself
* @version
* @platform Web,Native
*/
/**
* 立即将指定对象的属性修改为指定值
* @param props {Object} 对象的属性集合
* @param target 要继续播放 Tween 的对象
* @returns {Tween} Tween对象本身
* @version
* @platform Web,Native
*/
set(props: any, target?: any): Tween;
/**
* Execute
* @param tween {Tween} The Tween object to be operated. Default: this
* @returns {Tween} Tween object itself
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 执行
* @param tween {Tween} 需要操作的 Tween 对象,默认this
* @returns {Tween} Tween对象本身
* @version
* @platform Web,Native
* @language zh_CN
*/
play(tween?: Tween): Tween;
/**
* Pause
* @param tween {Tween} The Tween object to be operated. Default: this
* @returns {Tween} Tween object itself
* @version
* @platform Web,Native
* @language en_US
*/
/**
* 暂停
* @param tween {Tween} 需要操作的 Tween 对象,默认this
* @returns {Tween} Tween对象本身
* @version
* @platform Web,Native
* @language zh_CN
*/
pause(tween?: Tween): Tween;
/**
* @method Tween#tick
* @param delta {number}
* @private
* @version
* @platform Web,Native
*/
$tick(delta: number): void;
}}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Tween=e():t.Tween=e()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(1),e);var o=n(2);Object.defineProperty(e,"Tween",{enumerable:!0,get:function(){return o.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ease=void 0;var i=function(){function t(){}return t.get=function(t){return t<-1&&(t=-1),t>1&&(t=1),function(e){return 0==t?e:t<0?e*(e*-t+1+t):e*((2-e)*t+(1-t))}},t.getPowIn=function(t){return function(e){return Math.pow(e,t)}},t.getPowOut=function(t){return function(e){return 1-Math.pow(1-e,t)}},t.getPowInOut=function(t){return function(e){return(e*=2)<1?.5*Math.pow(e,t):1-.5*Math.abs(Math.pow(2-e,t))}},t.sineIn=function(t){return 1-Math.cos(t*Math.PI/2)},t.sineOut=function(t){return Math.sin(t*Math.PI/2)},t.sineInOut=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getBackIn=function(t){return function(e){return e*e*((t+1)*e-t)}},t.getBackOut=function(t){return function(e){return--e*e*((t+1)*e+t)+1}},t.getBackInOut=function(t){return t*=1.525,function(e){return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},t.circIn=function(t){return-(Math.sqrt(1-t*t)-1)},t.circOut=function(t){return Math.sqrt(1- --t*t)},t.circInOut=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},t.bounceIn=function(e){return 1-t.bounceOut(1-e)},t.bounceOut=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},t.bounceInOut=function(e){return e<.5?.5*t.bounceIn(2*e):.5*t.bounceOut(2*e-1)+.5},t.getElasticIn=function(t,e){var n=2*Math.PI;return function(i){if(0==i||1==i)return i;var r=e/n*Math.asin(1/t);return-t*Math.pow(2,10*(i-=1))*Math.sin((i-r)*n/e)}},t.getElasticOut=function(t,e){var n=2*Math.PI;return function(i){if(0==i||1==i)return i;var r=e/n*Math.asin(1/t);return t*Math.pow(2,-10*i)*Math.sin((i-r)*n/e)+1}},t.getElasticInOut=function(t,e){var n=2*Math.PI;return function(i){var r=e/n*Math.asin(1/t);return(i*=2)<1?t*Math.pow(2,10*(i-=1))*Math.sin((i-r)*n/e)*-.5:t*Math.pow(2,-10*(i-=1))*Math.sin((i-r)*n/e)*.5+1}},t.quadIn=t.getPowIn(2),t.quadOut=t.getPowOut(2),t.quadInOut=t.getPowInOut(2),t.cubicIn=t.getPowIn(3),t.cubicOut=t.getPowOut(3),t.cubicInOut=t.getPowInOut(3),t.quartIn=t.getPowIn(4),t.quartOut=t.getPowOut(4),t.quartInOut=t.getPowInOut(4),t.quintIn=t.getPowIn(5),t.quintOut=t.getPowOut(5),t.quintInOut=t.getPowInOut(5),t.backIn=t.getBackIn(1.7),t.backOut=t.getBackOut(1.7),t.backInOut=t.getBackInOut(1.7),t.elasticIn=t.getElasticIn(1,.3),t.elasticOut=t.getElasticOut(1,.3),t.elasticInOut=t.getElasticInOut(1,.3*1.5),t}();e.Ease=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,n){this._target=null,this._useTicks=!1,this.ignoreGlobalPause=!1,this.loop=!1,this.pluginData=null,this._steps=null,this.paused=!1,this.duration=0,this._prevPos=-1,this.position=null,this._prevPosition=0,this._stepPosition=0,this.passive=!1,this.initialize(t,e,n)}return t.get=function(e,n,i,r){return void 0===i&&(i=null),void 0===r&&(r=!1),r&&t.removeTweens(e),new t(e,n,i)},t.removeTweens=function(e){if(e.tween_count){for(var n=t._tweens,i=n.length-1;i>=0;i--)n[i]._target==e&&(n[i].paused=!0,n.splice(i,1));e.tween_count=0}},t.removeTweenSelf=function(e){if(e&&e._target&&e._target.tween_count){e.paused=!0;var n=t._tweens,i=n.indexOf(e);i>-1&&n.splice(i,1),e._target.tween_count--}},t.pauseTweens=function(e){if(e.tween_count)for(var n=t._tweens,i=n.length-1;i>=0;i--)n[i]._target==e&&(n[i].paused=!0)},t.resumeTweens=function(e){if(e.tween_count)for(var n=t._tweens,i=n.length-1;i>=0;i--)n[i]._target==e&&(n[i].paused=!1)},t.tick=function(e,n){void 0===n&&(n=!1);var i=e-t._lastTime;t._lastTime=e;for(var r=t._tweens.concat(),o=r.length-1;o>=0;o--){var u=r[o];n&&!u.ignoreGlobalPause||u.paused||u.$tick(u._useTicks?1:i)}return!1},t.flush=function(){var e=Date.now(),n=t._lastTime?e-t._lastTime:16.67;t._lastTime=e;for(var i=t._tweens.concat(),r=i.length-1;r>=0;r--){var o=i[r];o.paused||o.$tick(o._useTicks?1:n)}},t._register=function(e,n){var i=e._target,r=t._tweens;if(n)i&&(i.tween_count=i.tween_count>0?i.tween_count+1:1),r.push(e),t._inited||(t._inited=!0);else{i&&i.tween_count--;for(var o=r.length;o--;)if(r[o]==e)return void r.splice(o,1)}},t.removeAllTweens=function(){for(var e=t._tweens,n=0,i=e.length;n<i;n++){var r=e[n];r.paused=!0,r._target.tween_count=0}e.length=0},t.prototype.initialize=function(e,n,i){this._target=e,n&&(this._useTicks=n.useTicks,this.ignoreGlobalPause=n.ignoreGlobalPause,this.loop=n.loop,n.onChange?this.onChange=n.onChange.bind(n.onChangeObj):this.onChange=null,n.override&&t.removeTweens(e)),this.pluginData=i||{},this._curQueueProps={},this._initQueueProps={},this._steps=[],n&&n.paused?this.paused=!0:t._register(this,!0),n&&null!=n.position&&this.setPosition(n.position,t.NONE)},t.prototype.setPosition=function(t,e){void 0===e&&(e=1),t<0&&(t=0);var n=t,i=!1;if(n>=this.duration)if(this.loop){var r=n%this.duration;n=n>0&&0===r?this.duration:r}else n=this.duration,i=!0;if(n==this._prevPos)return i;i&&this.setPaused(!0);var o=this._prevPos;if(this.position=this._prevPos=n,this._prevPosition=t,this._target&&this._steps.length>0){for(var u=this._steps.length,s=-1,a=0;a<u&&!("step"==this._steps[a].type&&(s=a,this._steps[a].t<=n&&this._steps[a].t+this._steps[a].d>=n));a++);for(a=0;a<u;a++)if("action"==this._steps[a].type)0!=e&&(this._useTicks?this._runAction(this._steps[a],n,n):1==e&&n<o?(o!=this.duration&&this._runAction(this._steps[a],o,this.duration),this._runAction(this._steps[a],0,n,!0)):this._runAction(this._steps[a],o,n));else if("step"==this._steps[a].type&&s==a){var p=this._steps[s];this._updateTargetProps(p,Math.min((this._stepPosition=n-p.t)/p.d,1))}}return this.onChange&&this.onChange(),i},t.prototype._runAction=function(t,e,n,i){void 0===i&&(i=!1);var r=e,o=n;e>n&&(r=n,o=e);var u=t.t;(u==o||u>r&&u<o||i&&u==e)&&t.f.apply(t.o,t.p)},t.prototype._updateTargetProps=function(e,n){var i,r,o,u,s,a;if(e||1!=n){if(this.passive=!!e.v,this.passive)return;e.e&&(n=e.e(n,0,1,1)),i=e.p0,r=e.p1}else this.passive=!1,i=r=this._curQueueProps;for(var p in this._initQueueProps){null==(u=i[p])&&(i[p]=u=this._initQueueProps[p]),null==(s=r[p])&&(r[p]=s=u),o=u==s||0==n||1==n||"number"!=typeof u?1==n?s:u:u+(s-u)*n;var c=!1;if(a=t._plugins[p])for(var h=0,f=a.length;h<f;h++){var _=a[h].tween(this,p,o,i,r,n,!!e&&i==r,!e);_==t.IGNORE?c=!0:o=_}c||(this._target[p]=o)}},t.prototype.setPaused=function(e){return this.paused==e||(this.paused=e,t._register(this,!e)),this},t.prototype._cloneProps=function(t){var e={};for(var n in t)e[n]=t[n];return e},t.prototype._addStep=function(t){return t.d>0&&(t.type="step",this._steps.push(t),t.t=this.duration,this.duration+=t.d),this},t.prototype._appendQueueProps=function(e){var n,i,r,o,u;for(var s in e)if(void 0===this._initQueueProps[s]){if(i=this._target[s],n=t._plugins[s])for(r=0,o=n.length;r<o;r++)i=n[r].init(this,s,i);this._initQueueProps[s]=this._curQueueProps[s]=void 0===i?null:i}else i=this._curQueueProps[s];for(var s in e){if(i=this._curQueueProps[s],n=t._plugins[s])for(u=u||{},r=0,o=n.length;r<o;r++)n[r].step&&n[r].step(this,s,i,e[s],u);this._curQueueProps[s]=e[s]}return u&&this._appendQueueProps(u),this._curQueueProps},t.prototype._addAction=function(t){return t.t=this.duration,t.type="action",this._steps.push(t),this},t.prototype._set=function(t,e){for(var n in t)e[n]=t[n]},t.prototype.wait=function(t,e){if(null==t||t<=0)return this;var n=this._cloneProps(this._curQueueProps);return this._addStep({d:t,p0:n,p1:n,v:e})},t.prototype.to=function(t,e,n){return void 0===n&&(n=void 0),(isNaN(e)||e<0)&&(e=0),this._addStep({d:e||0,p0:this._cloneProps(this._curQueueProps),e:n,p1:this._cloneProps(this._appendQueueProps(t))}),this.set(t)},t.prototype.by=function(t,e,n){for(var i in void 0===e&&(e=0),void 0===n&&(n=void 0),t)t[i]+=this._curQueueProps[i]||this._target[i];return this.to(t,e,n)},t.prototype.call=function(t,e,n){return void 0===e&&(e=void 0),void 0===n&&(n=void 0),this._addAction({f:t,p:n||[],o:e||this._target})},t.prototype.set=function(t,e){return void 0===e&&(e=null),this._appendQueueProps(t),this._addAction({f:this._set,o:this,p:[t,e||this._target]})},t.prototype.play=function(t){return t||(t=this),this.call(t.setPaused,t,[!1])},t.prototype.pause=function(t){return t||(t=this),this.call(t.setPaused,t,[!0])},t.prototype.$tick=function(t){this.paused||this.setPosition(this._prevPosition+t)},t.NONE=0,t.LOOP=1,t.REVERSE=2,t._tweens=[],t.IGNORE={},t._plugins={},t._inited=!1,t._lastTime=0,t}();e.default=i}])}));
//# sourceMappingURL=tween.min.js.map
\ No newline at end of file
{"version":3,"sources":["webpack://Tween/webpack/universalModuleDefinition","webpack://Tween/webpack/bootstrap","webpack://Tween/./src/tween/index.ts","webpack://Tween/./src/tween/Ease.ts","webpack://Tween/./src/tween/Tween.ts"],"names":["root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","default","amount","getPowIn","pow","Math","getPowOut","getPowInOut","abs","sineIn","cos","PI","sineOut","sin","sineInOut","getBackIn","getBackOut","getBackInOut","circIn","sqrt","circOut","circInOut","bounceIn","Ease","bounceOut","bounceInOut","getElasticIn","amplitude","period","pi2","asin","getElasticOut","getElasticInOut","quadIn","quadOut","quadInOut","cubicIn","cubicOut","cubicInOut","quartIn","quartOut","quartInOut","quintIn","quintOut","quintInOut","backIn","backOut","backInOut","elasticIn","elasticOut","elasticInOut","target","props","pluginData","_target","_useTicks","ignoreGlobalPause","loop","_steps","paused","duration","_prevPos","position","_prevPosition","_stepPosition","passive","this","initialize","override","Tween","removeTweens","tween_count","tweens","_tweens","length","splice","removeTweenSelf","tween","index","indexOf","pauseTweens","resumeTweens","tick","timeStamp","delta","_lastTime","concat","$tick","flush","Date","now","_register","push","_inited","removeAllTweens","useTicks","onChange","onChangeObj","_curQueueProps","_initQueueProps","setPosition","NONE","actionsMode","end","newTime","setPaused","prevPos","stepIndex","type","_runAction","step","_updateTargetProps","min","action","startPos","endPos","includeStart","sPos","ePos","pos","f","apply","ratio","p0","p1","v","v0","v1","arr","e","ignore","_plugins","v2","IGNORE","_cloneProps","_addStep","_appendQueueProps","oldValue","injectProps","undefined","init","_addAction","_set","wait","to","ease","isNaN","set","by","k","callback","thisObj","params","play","pause","LOOP","REVERSE"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAe,MAAID,IAEnBD,EAAY,MAAIC,IARlB,CASGK,QAAQ,WACX,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUP,QAGnC,IAAIC,EAASI,EAAiBE,GAAY,CACzCC,EAAGD,EACHE,GAAG,EACHT,QAAS,IAUV,OANAU,EAAQH,GAAUI,KAAKV,EAAOD,QAASC,EAAQA,EAAOD,QAASM,GAG/DL,EAAOQ,GAAI,EAGJR,EAAOD,QA0Df,OArDAM,EAAoBM,EAAIF,EAGxBJ,EAAoBO,EAAIR,EAGxBC,E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AkBe,KAAKZ,YAmB/E,YAAAmG,KAAP,SAAY5E,GAIR,OAHKA,IACDA,EAAQX,MAELA,KAAK9F,KAAKyG,EAAM4B,UAAW5B,EAAO,EAAC,KAmBvC,YAAA6E,MAAP,SAAa7E,GAIT,OAHKA,IACDA,EAAQX,MAELA,KAAK9F,KAAKyG,EAAM4B,UAAW5B,EAAO,EAAC,KAUvC,YAAAU,MAAP,SAAaH,GACLlB,KAAKP,QAITO,KAAKkC,YAAYlC,KAAKH,cAAgBqB,IA50B3B,EAAAiB,KAAO,EAMP,EAAAsD,KAAO,EAMP,EAAAC,QAAU,EAKV,EAAAnF,QAAmB,GAInB,EAAA4D,OAAS,GAIT,EAAAF,SAAW,GAIX,EAAAtC,SAAU,EAqOV,EAAAR,UAAoB,EA4kBvC,EAp1BA,G,UAAqBhB","file":"build/tween.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Tween\"] = factory();\n\telse\n\t\troot[\"Tween\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","\n\nexport * from \"./Ease\"\n\nexport { default as Tween } from \"./Tween\";","\n\nexport class Ease {\n /**\n * @version \n * @platform Web,Native\n */\n constructor() {\n }\n\n /**\n * get.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static get(amount: number) {\n if (amount < -1) {\n amount = -1;\n }\n if (amount > 1) {\n amount = 1;\n }\n return function (t: number) {\n if (amount == 0) {\n return t;\n }\n if (amount < 0) {\n return t * (t * -amount + 1 + amount);\n }\n return t * ((2 - t) * amount + (1 - amount));\n }\n }\n\n /**\n * get pow in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get pow in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static getPowIn(pow: number) {\n return function (t: number) {\n return Math.pow(t, pow);\n }\n }\n\n /**\n * get pow out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get pow out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static getPowOut(pow: number) {\n return function (t: number) {\n return 1 - Math.pow(1 - t, pow);\n }\n }\n\n /**\n * get pow in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get pow in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static getPowInOut(pow: number) {\n return function (t: number) {\n if ((t *= 2) < 1) return 0.5 * Math.pow(t, pow);\n return 1 - 0.5 * Math.abs(Math.pow(2 - t, pow));\n }\n }\n\n /**\n * quad in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * quad in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static quadIn = Ease.getPowIn(2);\n /**\n * quad out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * quad out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static quadOut = Ease.getPowOut(2);\n /**\n * quad in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * quad in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static quadInOut = Ease.getPowInOut(2);\n /**\n * cubic in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * cubic in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static cubicIn = Ease.getPowIn(3);\n /**\n * cubic out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * cubic out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static cubicOut = Ease.getPowOut(3);\n /**\n * cubic in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * cubic in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static cubicInOut = Ease.getPowInOut(3);\n /**\n * quart in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * quart in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static quartIn = Ease.getPowIn(4);\n /**\n * quart out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * quart out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static quartOut = Ease.getPowOut(4);\n /**\n * quart in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * quart in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static quartInOut = Ease.getPowInOut(4);\n /**\n * quint in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * quint in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static quintIn = Ease.getPowIn(5);\n /**\n * quint out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * quint out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static quintOut = Ease.getPowOut(5);\n /**\n * quint in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * quint in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static quintInOut = Ease.getPowInOut(5);\n\n /**\n * sine in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * sine in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static sineIn(t: number) {\n return 1 - Math.cos(t * Math.PI / 2);\n }\n\n /**\n * sine out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * sine out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static sineOut(t: number) {\n return Math.sin(t * Math.PI / 2);\n }\n\n /**\n * sine in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * sine in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static sineInOut(t: number) {\n return -0.5 * (Math.cos(Math.PI * t) - 1)\n }\n\n /**\n * get back in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get back in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static getBackIn(amount: number) {\n return function (t: number) {\n return t * t * ((amount + 1) * t - amount);\n }\n }\n\n /**\n * back in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * back in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static backIn = Ease.getBackIn(1.7);\n\n /**\n * get back out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get back out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static getBackOut(amount: number) {\n return function (t) {\n return (--t * t * ((amount + 1) * t + amount) + 1);\n }\n }\n\n /**\n * back out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * back out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static backOut = Ease.getBackOut(1.7);\n\n /**\n * get back in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get back in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static getBackInOut(amount: number) {\n amount *= 1.525;\n return function (t: number) {\n if ((t *= 2) < 1) return 0.5 * (t * t * ((amount + 1) * t - amount));\n return 0.5 * ((t -= 2) * t * ((amount + 1) * t + amount) + 2);\n }\n }\n\n /**\n * back in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * back in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static backInOut = Ease.getBackInOut(1.7);\n\n /**\n * circ in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * circ in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static circIn(t: number) {\n return -(Math.sqrt(1 - t * t) - 1);\n }\n\n /**\n * circ out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * circ out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static circOut(t: number) {\n return Math.sqrt(1 - (--t) * t);\n }\n\n /**\n * circ in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * circ in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static circInOut(t: number) {\n if ((t *= 2) < 1) {\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n }\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n }\n\n /**\n * bounce in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * bounce in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static bounceIn(t: number) {\n return 1 - Ease.bounceOut(1 - t);\n }\n\n /**\n * bounce out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * bounce out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static bounceOut(t: number) {\n if (t < 1 / 2.75) {\n return (7.5625 * t * t);\n } else if (t < 2 / 2.75) {\n return (7.5625 * (t -= 1.5 / 2.75) * t + 0.75);\n } else if (t < 2.5 / 2.75) {\n return (7.5625 * (t -= 2.25 / 2.75) * t + 0.9375);\n } else {\n return (7.5625 * (t -= 2.625 / 2.75) * t + 0.984375);\n }\n }\n\n /**\n * bounce in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * bounce in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static bounceInOut(t: number) {\n if (t < 0.5) return Ease.bounceIn(t * 2) * .5;\n return Ease.bounceOut(t * 2 - 1) * 0.5 + 0.5;\n }\n\n /**\n * get elastic in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get elastic in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static getElasticIn(amplitude: number, period: number) {\n let pi2 = Math.PI * 2;\n return function (t: number) {\n if (t == 0 || t == 1) return t;\n let s = period / pi2 * Math.asin(1 / amplitude);\n return -(amplitude * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * pi2 / period));\n }\n }\n\n /**\n * elastic in.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * elastic in。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static elasticIn = Ease.getElasticIn(1, 0.3);\n\n /**\n * get elastic out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get elastic out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static getElasticOut(amplitude: number, period: number) {\n let pi2 = Math.PI * 2;\n return function (t: number) {\n if (t == 0 || t == 1) return t;\n let s = period / pi2 * Math.asin(1 / amplitude);\n return (amplitude * Math.pow(2, -10 * t) * Math.sin((t - s) * pi2 / period) + 1);\n }\n }\n\n /**\n * elastic out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * elastic out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static elasticOut = Ease.getElasticOut(1, 0.3);\n\n /**\n * get elastic in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * get elastic in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static getElasticInOut(amplitude: number, period: number) {\n let pi2 = Math.PI * 2;\n return function (t: number) {\n let s = period / pi2 * Math.asin(1 / amplitude);\n if ((t *= 2) < 1) return -0.5 * (amplitude * Math.pow(2, 10 * (t -= 1)) * Math.sin((t - s) * pi2 / period));\n return amplitude * Math.pow(2, -10 * (t -= 1)) * Math.sin((t - s) * pi2 / period) * 0.5 + 1;\n }\n }\n\n /**\n * elastic in out.See example.\n * @version \n * @platform Web,Native\n * @language en_US\n */\n /**\n * elastic in out。请查看示例\n * @version \n * @platform Web,Native\n * @language zh_CN\n */\n public static elasticInOut = Ease.getElasticInOut(1, 0.3 * 1.5);\n}\n","\n// import EventDispatcher from \"../core/EventDispatcher\"\n/**\n * 只用到一个onChange监听\n * //做了锁步时间,尽量用这个\n */\nexport default class Tween /*extends EventDispatcher*/ {\n /**\n * 不做特殊处理\n * @constant {number} Tween.NONE\n * @private\n */\n private static NONE = 0;\n /**\n * 循环\n * @constant {number} Tween.LOOP\n * @private\n */\n private static LOOP = 1;\n /**\n * 倒序\n * @constant {number} Tween.REVERSE\n * @private\n */\n private static REVERSE = 2;\n\n /**\n * @private\n */\n private static _tweens: Tween[] = [];\n /**\n * @private\n */\n private static IGNORE = {};\n /**\n * @private\n */\n private static _plugins = {};\n /**\n * @private\n */\n private static _inited = false;\n\n /**\n * @private\n */\n private _target: any = null;\n /**\n * @private\n */\n private _useTicks: boolean = false;\n /**\n * @private\n */\n private ignoreGlobalPause: boolean = false;\n /**\n * @private\n */\n private loop: boolean = false;\n /**\n * @private\n */\n private pluginData = null;\n /**\n * @private\n */\n private _curQueueProps;\n /**\n * @private\n */\n private _initQueueProps;\n /**\n * @private\n */\n private _steps: any[] = null;\n /**\n * @private\n */\n private paused: boolean = false;\n /**\n * @private\n */\n private duration: number = 0;\n /**\n * @private\n */\n private _prevPos: number = -1;\n /**\n * @private\n */\n private position: number = null;\n /**\n * @private\n */\n private _prevPosition: number = 0;\n /**\n * @private\n */\n private _stepPosition: number = 0;\n /**\n * @private\n */\n private passive: boolean = false;\n\n /**\n * Activate an object and add a Tween animation to the object\n * @param target {any} The object to be activated\n * @param props {any} Parameters, support loop onChange onChangeObj\n * @param pluginData {any} Write realized\n * @param override {boolean} Whether to remove the object before adding a tween, the default value false\n * Not recommended, you can use Tween.removeTweens(target) instead.\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 激活一个对象,对其添加 Tween 动画\n * @param target {any} 要激活 Tween 的对象\n * @param props {any} 参数,支持loop(循环播放) onChange(变化函数) onChangeObj(变化函数作用域)\n * @param pluginData {any} 暂未实现\n * @param override {boolean} 是否移除对象之前添加的tween,默认值false。\n * 不建议使用,可使用 Tween.removeTweens(target) 代替。\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public static get(target: any, props?: { loop?: boolean, onChange?: Function, onChangeObj?: any }, pluginData: any = null, override: boolean = false): Tween {\n if (override) {\n Tween.removeTweens(target);\n }\n return new Tween(target, props, pluginData);\n }\n\n /**\n * Delete all Tween animations from an object\n * @param target The object whose Tween to be deleted\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 删除一个对象上的全部 Tween 动画\n * @param target 需要移除 Tween 的对象\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public static removeTweens(target: any): void {\n if (!target.tween_count) {\n return;\n }\n let tweens: Tween[] = Tween._tweens;\n for (let i = tweens.length - 1; i >= 0; i--) {\n if (tweens[i]._target == target) {\n tweens[i].paused = true;\n tweens.splice(i, 1);\n }\n }\n target.tween_count = 0;\n }\n\n /**\n * 移除tween\n * @param tween get返回的Tween实例\n */\n public static removeTweenSelf(tween: Tween): void {\n if (!tween || !tween._target || !tween._target.tween_count) return;\n tween.paused = true;\n let tweens: Tween[] = Tween._tweens;\n let index = tweens.indexOf(tween);\n if (index > -1) tweens.splice(index, 1);\n tween._target.tween_count--;\n }\n\n /**\n * Pause all Tween animations of a certain object\n * @param target The object whose Tween to be paused\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 暂停某个对象的所有 Tween\n * @param target 要暂停 Tween 的对象\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public static pauseTweens(target: any): void {\n\n if (!target.tween_count) {\n return;\n }\n let tweens: Tween[] = Tween._tweens;\n for (let i = tweens.length - 1; i >= 0; i--) {\n if (tweens[i]._target == target) {\n tweens[i].paused = true;\n }\n }\n }\n\n /**\n * Resume playing all easing of a certain object\n * @param target The object whose Tween to be resumed\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 继续播放某个对象的所有缓动\n * @param target 要继续播放 Tween 的对象\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public static resumeTweens(target: any): void {\n if (!target.tween_count) {\n return;\n }\n let tweens: Tween[] = Tween._tweens;\n for (let i = tweens.length - 1; i >= 0; i--) {\n if (tweens[i]._target == target) {\n tweens[i].paused = false;\n }\n }\n }\n\n /**\n * @private\n *\n * @param delta\n * @param paused\n */\n private static tick(timeStamp: number, paused = false): boolean {\n let delta = timeStamp - Tween._lastTime;\n Tween._lastTime = timeStamp;\n let tweens: Tween[] = Tween._tweens.concat();\n\n for (let i = tweens.length - 1; i >= 0; i--) {\n\n let tween: Tween = tweens[i];\n if ((paused && !tween.ignoreGlobalPause) || tween.paused) {\n continue;\n }\n tween.$tick(tween._useTicks ? 1 : delta);\n }\n\n\n return false;\n }\n /**\n * flush方法,为了能加入总循环\n * 默认是锁步的\n * @param delta\n * @param paused ,暂时不用,全局禁止\n */\n public static flush(/*paused = false*/): void {\n let timeStamp = Date.now()\n let delta = Tween._lastTime ? (timeStamp - Tween._lastTime) : 16.67;;\n Tween._lastTime = timeStamp;\n let tweens: Tween[] = Tween._tweens.concat();\n for (let i = tweens.length - 1; i >= 0; i--) {\n let tween: Tween = tweens[i];\n if (/*(paused && !tween.ignoreGlobalPause) ||*/ tween.paused) {\n continue;\n }\n tween.$tick(tween._useTicks ? 1 : delta);\n }\n }\n\n private static _lastTime: number = 0;\n /**\n * @private\n *\n * @param tween\n * @param value\n */\n private static _register(tween: Tween, value: boolean): void {\n let target: any = tween._target;\n let tweens: Tween[] = Tween._tweens;\n if (value) {\n if (target) {\n target.tween_count = target.tween_count > 0 ? target.tween_count + 1 : 1;\n }\n tweens.push(tween);\n if (!Tween._inited) {\n // Tween._lastTime = Date.now();\n //开始加入循环暂时从简,最后实际使用,最好加入Stage总循环中\n // let aaa = () => {\n // Tween.tick(Date.now())\n // requestAnimationFrame(aaa)\n // }\n //必须做延时\n // setTimeout(aaa, 16.7)\n // aaa();\n // ticker.$startTick(Tween.tick, null);\n Tween._inited = true;\n }\n } else {\n if (target) {\n target.tween_count--;\n }\n let i = tweens.length;\n\n while (i--) {\n if (tweens[i] == tween) {\n tweens.splice(i, 1);\n return;\n }\n }\n }\n }\n\n /**\n * Delete all Tween\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 删除所有 Tween\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public static removeAllTweens(): void {\n let tweens: Tween[] = Tween._tweens;\n for (let i = 0, l = tweens.length; i < l; i++) {\n let tween: Tween = tweens[i];\n tween.paused = true;\n tween._target.tween_count = 0;\n }\n tweens.length = 0;\n }\n\n /**\n * 创建一个 Tween 对象\n * @private\n * @version\n * @platform Web,Native\n */\n constructor(target: any, props: any, pluginData: any) {\n // super();\n this.initialize(target, props, pluginData);\n }\n onChange: Function\n /**\n * @private\n *\n * @param target\n * @param props\n * @param pluginData\n */\n private initialize(target: any, props: any, pluginData: any): void {\n this._target = target;\n if (props) {\n this._useTicks = props.useTicks;\n this.ignoreGlobalPause = props.ignoreGlobalPause;\n this.loop = props.loop;\n if (props.onChange) {\n this.onChange = props.onChange.bind(props.onChangeObj)\n } else {\n this.onChange = null\n }\n // && this.addEventListener(\"change\", props.onChange.bind(props.onChangeObj));\n if (props.override) {\n Tween.removeTweens(target);\n }\n }\n\n this.pluginData = pluginData || {};\n this._curQueueProps = {};\n this._initQueueProps = {};\n this._steps = [];\n if (props && props.paused) {\n this.paused = true;\n }\n else {\n Tween._register(this, true);\n }\n if (props && props.position != null) {\n this.setPosition(props.position, Tween.NONE);\n }\n }\n\n /**\n * @private\n *\n * @param value\n * @param actionsMode\n * @returns\n */\n public setPosition(value: number, actionsMode: number = 1): boolean {\n if (value < 0) {\n value = 0;\n }\n //正常化位置\n let t: number = value;\n let end: boolean = false;\n if (t >= this.duration) {\n if (this.loop) {\n var newTime = t % this.duration;\n if (t > 0 && newTime === 0) {\n t = this.duration;\n } else {\n t = newTime;\n }\n }\n else {\n t = this.duration;\n end = true;\n }\n }\n if (t == this._prevPos) {\n return end;\n }\n\n if (end) {\n this.setPaused(true);\n }\n\n let prevPos = this._prevPos;\n this.position = this._prevPos = t;\n this._prevPosition = value;\n\n if (this._target) {\n if (this._steps.length > 0) {\n // 找到新的tween\n let l = this._steps.length;\n let stepIndex = -1;\n for (let i = 0; i < l; i++) {\n if (this._steps[i].type == \"step\") {\n stepIndex = i;\n if (this._steps[i].t <= t && this._steps[i].t + this._steps[i].d >= t) {\n break;\n }\n }\n }\n for (let i = 0; i < l; i++) {\n if (this._steps[i].type == \"action\") {\n //执行actions\n if (actionsMode != 0) {\n if (this._useTicks) {\n this._runAction(this._steps[i], t, t);\n }\n else if (actionsMode == 1 && t < prevPos) {\n if (prevPos != this.duration) {\n this._runAction(this._steps[i], prevPos, this.duration);\n }\n this._runAction(this._steps[i], 0, t, true);\n }\n else {\n this._runAction(this._steps[i], prevPos, t);\n }\n }\n }\n else if (this._steps[i].type == \"step\") {\n if (stepIndex == i) {\n let step = this._steps[stepIndex];\n this._updateTargetProps(step, Math.min((this._stepPosition = t - step.t) / step.d, 1));\n }\n }\n }\n }\n }\n this.onChange && this.onChange()\n // this.dispatchEvent(\"change\");\n return end;\n }\n\n /**\n * @private\n *\n * @param startPos\n * @param endPos\n * @param includeStart\n */\n private _runAction(action: any, startPos: number, endPos: number, includeStart: boolean = false) {\n let sPos: number = startPos;\n let ePos: number = endPos;\n if (startPos > endPos) {\n //把所有的倒置\n sPos = endPos;\n ePos = startPos;\n }\n let pos = action.t;\n if (pos == ePos || (pos > sPos && pos < ePos) || (includeStart && pos == startPos)) {\n action.f.apply(action.o, action.p);\n }\n }\n\n /**\n * @private\n *\n * @param step\n * @param ratio\n */\n private _updateTargetProps(step: any, ratio: number) {\n let p0, p1, v, v0, v1, arr;\n if (!step && ratio == 1) {\n this.passive = false;\n p0 = p1 = this._curQueueProps;\n } else {\n this.passive = !!step.v;\n //不更新props.\n if (this.passive) {\n return;\n }\n //使用ease\n if (step.e) {\n ratio = step.e(ratio, 0, 1, 1);\n }\n p0 = step.p0;\n p1 = step.p1;\n }\n\n for (let n in this._initQueueProps) {\n if ((v0 = p0[n]) == null) {\n p0[n] = v0 = this._initQueueProps[n];\n }\n if ((v1 = p1[n]) == null) {\n p1[n] = v1 = v0;\n }\n if (v0 == v1 || ratio == 0 || ratio == 1 || (typeof (v0) != \"number\")) {\n v = ratio == 1 ? v1 : v0;\n } else {\n v = v0 + (v1 - v0) * ratio;\n }\n\n let ignore = false;\n if (arr = Tween._plugins[n]) {\n for (let i = 0, l = arr.length; i < l; i++) {\n let v2 = arr[i].tween(this, n, v, p0, p1, ratio, !!step && p0 == p1, !step);\n if (v2 == Tween.IGNORE) {\n ignore = true;\n }\n else {\n v = v2;\n }\n }\n }\n if (!ignore) {\n this._target[n] = v;\n }\n }\n\n }\n\n /**\n * Whether setting is paused\n * @param value {boolean} Whether to pause\n * @returns Tween object itself\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 设置是否暂停\n * @param value {boolean} 是否暂停\n * @returns Tween对象本身\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public setPaused(value: boolean): Tween {\n if (this.paused == value) {\n return this;\n }\n this.paused = value;\n Tween._register(this, !value);\n return this;\n }\n\n /**\n * @private\n *\n * @param props\n * @returns\n */\n private _cloneProps(props: any): any {\n let o = {};\n for (let n in props) {\n o[n] = props[n];\n }\n return o;\n }\n\n /**\n * @private\n *\n * @param o\n * @returns\n */\n private _addStep(o): Tween {\n if (o.d > 0) {\n o.type = \"step\";\n this._steps.push(o);\n o.t = this.duration;\n this.duration += o.d;\n }\n return this;\n }\n\n /**\n * @private\n *\n * @param o\n * @returns\n */\n private _appendQueueProps(o): any {\n let arr, oldValue, i, l, injectProps;\n for (let n in o) {\n if (this._initQueueProps[n] === undefined) {\n oldValue = this._target[n];\n //设置plugins\n if (arr = Tween._plugins[n]) {\n for (i = 0, l = arr.length; i < l; i++) {\n oldValue = arr[i].init(this, n, oldValue);\n }\n }\n this._initQueueProps[n] = this._curQueueProps[n] = (oldValue === undefined) ? null : oldValue;\n } else {\n oldValue = this._curQueueProps[n];\n }\n }\n\n for (let n in o) {\n oldValue = this._curQueueProps[n];\n if (arr = Tween._plugins[n]) {\n injectProps = injectProps || {};\n for (i = 0, l = arr.length; i < l; i++) {\n if (arr[i].step) {\n arr[i].step(this, n, oldValue, o[n], injectProps);\n }\n }\n }\n this._curQueueProps[n] = o[n];\n }\n if (injectProps) {\n this._appendQueueProps(injectProps);\n }\n return this._curQueueProps;\n }\n\n /**\n * @private\n *\n * @param o\n * @returns\n */\n private _addAction(o): Tween {\n o.t = this.duration;\n o.type = \"action\";\n this._steps.push(o);\n return this;\n }\n\n /**\n * @private\n *\n * @param props\n * @param o\n */\n private _set(props: any, o): void {\n for (let n in props) {\n o[n] = props[n];\n }\n }\n\n /**\n * Wait the specified milliseconds before the execution of the next animation\n * @param duration {number} Waiting time, in milliseconds\n * @param passive {boolean} Whether properties are updated during the waiting time\n * @returns Tween object itself\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 等待指定毫秒后执行下一个动画\n * @param duration {number} 要等待的时间,以毫秒为单位\n * @param passive {boolean} 等待期间属性是否会更新\n * @returns Tween对象本身\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public wait(duration: number, passive?: boolean): Tween {\n if (duration == null || duration <= 0) {\n return this;\n }\n let o = this._cloneProps(this._curQueueProps);\n return this._addStep({ d: duration, p0: o, p1: o, v: passive });\n }\n\n /**\n * Modify the property of the specified object to a specified value\n * @param props {Object} Property set of an object\n * @param duration {number} Duration\n * @param ease {Ease} Easing algorithm\n * @returns {Tween} Tween object itself\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 将指定对象的属性修改为指定值\n * @param props {Object} 对象的属性集合\n * @param duration {number} 持续时间\n * @param ease {Ease} 缓动算法\n * @returns {Tween} Tween对象本身\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public to(props: any, duration?: number, ease: Function = undefined) {\n if (isNaN(duration) || duration < 0) {\n duration = 0;\n }\n this._addStep({ d: duration || 0, p0: this._cloneProps(this._curQueueProps), e: ease, p1: this._cloneProps(this._appendQueueProps(props)) });\n //加入一步set,防止游戏极其卡顿时候,to后面的call取到的属性值不对\n return this.set(props);\n }\n\n /**\n * by\n * @param props\n * @param duration\n * @param ease\n */\n public by(props: any, duration: number = 0, ease: Function = undefined) {\n for (let k in props) {\n props[k] += this._curQueueProps[k] || this._target[k];\n }\n return this.to(props, duration, ease);\n }\n\n /**\n * Execute callback function\n * @param callback {Function} Callback method\n * @param thisObj {any} this action scope of the callback method\n * @param params {any[]} Parameter of the callback method\n * @returns {Tween} Tween object itself\n * @version\n * @platform Web,Native\n * @example\n * <pre>\n * Tween.get(display).call(function (a:number, b:string) {\n * console.log(\"a: \" + a); // the first parameter passed 233\n * console.log(\"b: \" + b); // the second parameter passed “hello”\n * }, this, [233, \"hello\"]);\n * </pre>\n * @language en_US\n */\n /**\n * 执行回调函数\n * @param callback {Function} 回调方法\n * @param thisObj {any} 回调方法this作用域\n * @param params {any[]} 回调方法参数\n * @returns {Tween} Tween对象本身\n * @version\n * @platform Web,Native\n * @example\n * <pre>\n * Tween.get(display).call(function (a:number, b:string) {\n * console.log(\"a: \" + a); //对应传入的第一个参数 233\n * console.log(\"b: \" + b); //对应传入的第二个参数 “hello”\n * }, this, [233, \"hello\"]);\n * </pre>\n * @language zh_CN\n */\n public call(callback: Function, thisObj: any = undefined, params: any[] = undefined): Tween {\n return this._addAction({ f: callback, p: params ? params : [], o: thisObj ? thisObj : this._target });\n }\n\n /**\n * Now modify the properties of the specified object to the specified value\n * @param props {Object} Property set of an object\n * @param target The object whose Tween to be resumed\n * @returns {Tween} Tween object itself\n * @version\n * @platform Web,Native\n */\n /**\n * 立即将指定对象的属性修改为指定值\n * @param props {Object} 对象的属性集合\n * @param target 要继续播放 Tween 的对象\n * @returns {Tween} Tween对象本身\n * @version\n * @platform Web,Native\n */\n public set(props: any, target = null): Tween {\n //更新当前数据,保证缓动流畅性\n this._appendQueueProps(props);\n // console.log(this._target.x)\n return this._addAction({ f: this._set, o: this, p: [props, target ? target : this._target] });\n }\n\n /**\n * Execute\n * @param tween {Tween} The Tween object to be operated. Default: this\n * @returns {Tween} Tween object itself\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 执行\n * @param tween {Tween} 需要操作的 Tween 对象,默认this\n * @returns {Tween} Tween对象本身\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public play(tween?: Tween): Tween {\n if (!tween) {\n tween = this;\n }\n return this.call(tween.setPaused, tween, [false]);\n }\n\n /**\n * Pause\n * @param tween {Tween} The Tween object to be operated. Default: this\n * @returns {Tween} Tween object itself\n * @version\n * @platform Web,Native\n * @language en_US\n */\n /**\n * 暂停\n * @param tween {Tween} 需要操作的 Tween 对象,默认this\n * @returns {Tween} Tween对象本身\n * @version\n * @platform Web,Native\n * @language zh_CN\n */\n public pause(tween?: Tween): Tween {\n if (!tween) {\n tween = this;\n }\n return this.call(tween.setPaused, tween, [true]);\n }\n\n /**\n * @method Tween#tick\n * @param delta {number}\n * @private\n * @version\n * @platform Web,Native\n */\n public $tick(delta: number): void {\n if (this.paused) {\n return;\n }\n\n this.setPosition(this._prevPosition + delta);\n }\n}\n\n"],"sourceRoot":""}
\ No newline at end of file
小招喵换装.png
size: 1024,1024
format: RGBA8888
filter: Linear,Linear
repeat: none
erdy
rotate: false
xy: 579, 740
size: 98, 97
orig: 98, 99
offset: 0, 2
index: -1
erdz
rotate: false
xy: 679, 740
size: 98, 97
orig: 98, 99
offset: 0, 2
index: -1
huziy
rotate: true
xy: 950, 987
size: 34, 37
orig: 34, 37
offset: 0, 0
index: -1
huziz
rotate: false
xy: 130, 960
size: 37, 37
orig: 37, 37
offset: 0, 0
index: -1
kuzd
rotate: false
xy: 2, 882
size: 155, 76
orig: 155, 76
offset: 0, 0
index: -1
kuziaa
rotate: false
xy: 322, 768
size: 157, 93
orig: 158, 93
offset: 0, 0
index: -1
kuzibb
rotate: false
xy: 163, 787
size: 157, 88
orig: 157, 88
offset: 0, 0
index: -1
kuzicc
rotate: false
xy: 2, 787
size: 159, 88
orig: 159, 88
offset: 0, 0
index: -1
kuzie
rotate: false
xy: 619, 839
size: 158, 86
orig: 158, 86
offset: 0, 0
index: -1
maof
rotate: false
xy: 478, 946
size: 57, 44
orig: 57, 44
offset: 0, 0
index: -1
moj
rotate: false
xy: 159, 877
size: 225, 68
orig: 225, 68
offset: 0, 0
index: -1
saihxiao
rotate: false
xy: 27, 999
size: 196, 22
orig: 196, 22
offset: 0, 0
index: -1
shangyiaa
rotate: false
xy: 157, 644
size: 154, 141
orig: 154, 141
offset: 0, 0
index: -1
shentibb
rotate: false
xy: 779, 681
size: 160, 116
orig: 161, 116
offset: 1, 0
index: -1
shiwu
rotate: false
xy: 221, 948
size: 46, 42
orig: 46, 42
offset: 0, 0
index: -1
shou
rotate: false
xy: 386, 863
size: 131, 81
orig: 131, 112
offset: 0, 30
index: -1
stcc
rotate: false
xy: 313, 619
size: 152, 147
orig: 152, 147
offset: 0, 0
index: -1
std
rotate: false
xy: 2, 669
size: 153, 116
orig: 153, 116
offset: 0, 0
index: -1
ste
rotate: false
xy: 467, 605
size: 196, 133
orig: 196, 133
offset: 0, 0
index: -1
tou
rotate: false
xy: 665, 462
size: 259, 217
orig: 259, 217
offset: 0, 0
index: -1
xiaoy
rotate: false
xy: 2, 963
size: 62, 34
orig: 68, 40
offset: 3, 3
index: -1
xiaoz
rotate: false
xy: 66, 963
size: 62, 34
orig: 68, 40
offset: 3, 3
index: -1
xieybb
rotate: false
xy: 225, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
xieyd
rotate: false
xy: 298, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
xieye
rotate: false
xy: 370, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
xiezbb
rotate: false
xy: 442, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
xiezd
rotate: false
xy: 515, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
xieze
rotate: false
xy: 587, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
xiezizaa
rotate: false
xy: 660, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
xiezyaa
rotate: false
xy: 732, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
yanjdy
rotate: false
xy: 537, 932
size: 63, 58
orig: 69, 64
offset: 3, 3
index: -1
yanjdz
rotate: false
xy: 602, 932
size: 63, 58
orig: 69, 64
offset: 3, 3
index: -1
yanjy
rotate: true
xy: 2, 1010
size: 11, 23
orig: 17, 29
offset: 3, 3
index: -1
yingzi
rotate: false
xy: 269, 947
size: 207, 43
orig: 215, 53
offset: 4, 5
index: -1
youxiec
rotate: false
xy: 805, 992
size: 71, 29
orig: 77, 35
offset: 3, 3
index: -1
zsaa
rotate: true
xy: 481, 750
size: 93, 96
orig: 93, 96
offset: 0, 0
index: -1
zssc
rotate: true
xy: 779, 834
size: 86, 99
orig: 86, 99
offset: 0, 0
index: -1
zssd
rotate: false
xy: 936, 887
size: 85, 98
orig: 85, 98
offset: 0, 0
index: -1
zsse
rotate: true
xy: 519, 845
size: 85, 98
orig: 85, 98
offset: 0, 0
index: -1
zuexiec
rotate: false
xy: 878, 992
size: 70, 29
orig: 76, 35
offset: 3, 3
index: -1
zuichi
rotate: false
xy: 667, 927
size: 113, 63
orig: 113, 63
offset: 0, 0
index: -1
zuidai
rotate: false
xy: 169, 959
size: 50, 38
orig: 56, 44
offset: 3, 3
index: -1
zuixiao
rotate: false
xy: 782, 922
size: 152, 68
orig: 158, 74
offset: 3, 3
index: -1
zuossbb
rotate: true
xy: 880, 799
size: 86, 99
orig: 86, 99
offset: 0, 0
index: -1
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment