Files
NapCatQQ/.pnpm-store/v3/files/bb/963a1e45c0ff64711c9aa184377b6b5b75b8bbe1361d698596d5e1a15ae6add01c3565e7f0cc3bb465ecfa5609e953dfa6f3150e598a7dec83900d07760016
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

13 lines
374 B
Plaintext

import { progress } from 'motion-utils';
import { mixNumber } from '../../../utils/mix/number.mjs';
function fillOffset(offset, remaining) {
const min = offset[offset.length - 1];
for (let i = 1; i <= remaining; i++) {
const offsetProgress = progress(0, remaining, i);
offset.push(mixNumber(min, 1, offsetProgress));
}
}
export { fillOffset };