@@ -9,7 +9,6 @@ const ANDROID_WAVE_KEYPATHS = [
99] ;
1010
1111export class DemoViewModel extends Observable {
12-
1312 public animationIndex : number = 0 ;
1413 public animations : string [ ] = [
1514 'Mobilo/B.json' ,
@@ -95,15 +94,17 @@ export class DemoViewModel extends Observable {
9594
9695 public setTheme = value => ( ) => {
9796 const color = new Color ( value ) ;
98- ANDROID_WAVE_KEYPATHS . forEach ( ( keyPath ) => {
97+ ANDROID_WAVE_KEYPATHS . forEach ( keyPath => {
9998 this . _lottieViewTwo . setColorValueDelegateForKeyPath ( color , [ ...keyPath ] ) ;
10099 } ) ;
101100 } ;
102101
103102 public setSecondLottieRandomOpacity ( ) {
104103 const opacity = getRandomWithPrecision ( 2 ) ;
105- ANDROID_WAVE_KEYPATHS . forEach ( ( keyPath ) => {
106- this . _lottieViewTwo . setOpacityValueDelegateForKeyPath ( opacity , [ ...keyPath ] ) ;
104+ ANDROID_WAVE_KEYPATHS . forEach ( keyPath => {
105+ this . _lottieViewTwo . setOpacityValueDelegateForKeyPath ( opacity , [
106+ ...keyPath
107+ ] ) ;
107108 } ) ;
108109 }
109110
@@ -120,7 +121,9 @@ export class DemoViewModel extends Observable {
120121
121122 public setFourthLottieToLoadedState ( ) {
122123 this . _lottieViewFour . completionBlock = ( animationFinished : boolean ) => {
123- console . log ( `lottieViewFour completionBlock animationFinished: ${ animationFinished } ` ) ;
124+ console . log (
125+ `lottieViewFour completionBlock animationFinished: ${ animationFinished } `
126+ ) ;
124127
125128 this . _lottieViewFour . playAnimationFromProgressToProgress ( 0.5 , 0.85 ) ;
126129 this . _lottieViewFour . completionBlock = null ;
@@ -129,7 +132,6 @@ export class DemoViewModel extends Observable {
129132 // Trigger the completion block by disabling looping and allowing the final loop to lapse.
130133 this . _lottieViewFour . loop = false ;
131134 }
132-
133135}
134136
135137function getRandomWithPrecision ( precision ?: number ) : number {
0 commit comments