File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/av-cliper/src/sprite Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,12 +213,12 @@ export function linearTimeFn(
213213) : Partial < TAnimateProps > {
214214 const offsetTime = time - opts . delay ;
215215 const t = offsetTime % opts . duration ;
216- const process =
216+ const progress =
217217 offsetTime / opts . duration >= opts . iterCount || offsetTime === opts . duration
218218 ? 1
219219 : t / opts . duration ;
220220
221- const idx = kf . findIndex ( ( it ) => it [ 0 ] >= process ) ;
221+ const idx = kf . findIndex ( ( it ) => it [ 0 ] >= progress ) ;
222222 if ( idx === - 1 ) return { } ;
223223
224224 const startState = kf [ idx - 1 ] ;
@@ -230,7 +230,7 @@ export function linearTimeFn(
230230 const rs : Partial < TAnimateProps > = { } ;
231231 // 介于两个Frame状态间的进度
232232 const stateProcess =
233- ( process - startState [ 0 ] ) / ( nextState [ 0 ] - startState [ 0 ] ) ;
233+ ( progress - startState [ 0 ] ) / ( nextState [ 0 ] - startState [ 0 ] ) ;
234234 for ( const prop in nextFrame ) {
235235 const p = prop as keyof TAnimateProps ;
236236 if ( startFrame [ p ] == null ) continue ;
You can’t perform that action at this time.
0 commit comments