@@ -25,7 +25,7 @@ export default class TimeLine {
2525 // 是否重新刷新动画队列
2626 // this._refreshAnimationList = false;
2727 // 统一设置初始状态
28- this . _initGeometryStatus = false
28+ this . _initGeometryStatus = false ;
2929 }
3030
3131 /**
@@ -94,8 +94,8 @@ export default class TimeLine {
9494 // 修改动画状态
9595 this . animationAction ( ( t ) => t . play ( ) ) ( ) ;
9696 // 动画对象默认从rate=0处开始
97- if ( this . _initGeometryStatus ) {
98- this . _initGeometryStatus = false
97+ if ( this . _initGeometryStatus ) {
98+ this . _initGeometryStatus = false ;
9999 this . animationAction ( ( t ) => t . resetGeometryStatus ( ) ) ( ) ;
100100 }
101101 // 强制刷新
@@ -107,7 +107,6 @@ export default class TimeLine {
107107 that . raf = requestAnimationFrame ( step ) ;
108108 }
109109 function step ( t ) {
110-
111110 // 重新刷新动画队列
112111 // if (that._refreshAnimationList) {
113112 // activeInstances = that._animationArr.concat([]);
@@ -206,14 +205,8 @@ export default class TimeLine {
206205 * @param {* } item
207206 * @return {* }
208207 */
209- addAnimationObject ( plotObjects , item ) {
210- if ( ! plotObjects || plotObjects . length === 0 ) return ;
211- const animationOptions = Object . assign ( { } , item )
212- const keyString = plotObjects . map ( ( s ) => {
213- return s . getElement ( ) . getFeatureId ( )
214- } ) . toString ( )
215- animationOptions . featureIds = keyString
216- const addAnimation = this . createAnimationObject ( animationOptions ) ;
208+ addAnimationObject ( item ) {
209+ const addAnimation = this . createAnimationObject ( item ) ;
217210 this . _animationArr . push ( addAnimation ) ;
218211 return addAnimation ;
219212 }
@@ -256,7 +249,7 @@ export default class TimeLine {
256249 * @return {* }
257250 */
258251 seek ( time ) {
259- this . pause ( )
252+ this . pause ( ) ;
260253 this . animationAction ( ( s ) => {
261254 s . seek ( time ) ;
262255 } ) ( ) ;
@@ -326,7 +319,7 @@ export default class TimeLine {
326319 * @return {* }
327320 */
328321 restore ( ) {
329- this . _initGeometryStatus = true
322+ this . _initGeometryStatus = true ;
330323 this . reversed ( false ) ;
331324 this . setSpeed ( 1 ) ;
332325 this . animationAction ( ( t ) => t . restore ( ) ) ( ) ;
0 commit comments