@@ -67,12 +67,15 @@ export class LottieView extends LottieViewBase {
6767 }
6868
6969 if ( this . autoPlay ) {
70- this . playAnimation ( ) . then ( finished => {
71- // ignore
72- // TODO: could add debug mode which would log that it finished
73- } , err => {
74- // ignore (however note todo above)
75- } ) ;
70+ this . playAnimation ( ) . then (
71+ finished => {
72+ // ignore
73+ // TODO: could add debug mode which would log that it finished
74+ } ,
75+ err => {
76+ // ignore (however note todo above)
77+ }
78+ ) ;
7679 }
7780 }
7881
@@ -94,12 +97,15 @@ export class LottieView extends LottieViewBase {
9497 this . contentModeDefault ( ) ;
9598
9699 if ( ! this . isAnimating ( ) ) {
97- this . playAnimation ( ) . then ( finished => {
98- // ignore
99- // TODO: could add debug mode which would log that it finished
100- } , err => {
101- // ignore (however note todo above)
102- } ) ;
100+ this . playAnimation ( ) . then (
101+ finished => {
102+ // ignore
103+ // TODO: could add debug mode which would log that it finished
104+ } ,
105+ err => {
106+ // ignore (however note todo above)
107+ }
108+ ) ;
103109 }
104110 } else {
105111 if ( this . isAnimating ( ) ) {
@@ -121,9 +127,13 @@ export class LottieView extends LottieViewBase {
121127
122128 if ( value && value . length ) {
123129 value . forEach ( dynamicValue => {
124- const callBack = LOTColorValueCallback . withCGColor ( new Color ( dynamicValue . value ) . ios . CGColor ) ;
130+ const callBack = LOTColorValueCallback . withCGColor (
131+ new Color ( dynamicValue . value ) . ios . CGColor
132+ ) ;
125133 dynamicValue . keyPath . push ( 'Color' ) ;
126- const keyPath = LOTKeypath . keypathWithString ( dynamicValue . keyPath . join ( '.' ) ) ;
134+ const keyPath = LOTKeypath . keypathWithString (
135+ dynamicValue . keyPath . join ( '.' )
136+ ) ;
127137 this . _animationView . setValueDelegateForKeypath ( callBack , keyPath ) ;
128138 } ) ;
129139 }
@@ -141,8 +151,10 @@ export class LottieView extends LottieViewBase {
141151 const measuredHeight = layout . getMeasureSpecSize ( heightMeasureSpec ) ;
142152
143153 const scale = screen . mainScreen . scale ;
144- const width = typeof this . width === 'number' ? this . width : measuredWidth / scale ;
145- const height = typeof this . height === 'number' ? this . height : measuredHeight / scale ;
154+ const width =
155+ typeof this . width === 'number' ? this . width : measuredWidth / scale ;
156+ const height =
157+ typeof this . height === 'number' ? this . height : measuredHeight / scale ;
146158 this . setMeasuredDimension ( measuredWidth , measuredHeight ) ;
147159 if ( this . _animationView ) {
148160 const newFrame = CGRectMake ( 0 , 0 , width , height ) ;
0 commit comments