Skip to content

Commit 5345850

Browse files
committed
chore: typo
1 parent 3da5c7d commit 5345850

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/av-cliper/src/sprite/base-sprite.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)