Files
SnowLuma/.pnpm-store/v11/files/ce/6798e16b1e09c9b65cd381a8068878fdca4d815dd485959eab12125d699d748254c2e000b038e20da8369308fb593d16ef9c4e5258f207b80cf8bc5d2c2559
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

15 lines
460 B
Plaintext

/**
* Take an array of times that represent repeated keyframes. For instance
* if we have original times of [0, 0.5, 1] then our repeated times will
* be [0, 0.5, 1, 1, 1.5, 2]. Loop over the times and scale them back
* down to a 0-1 scale.
*/
function normalizeTimes(times, repeat) {
for (let i = 0; i < times.length; i++) {
times[i] = times[i] / (repeat + 1);
}
}
export { normalizeTimes };
//# sourceMappingURL=normalize-times.mjs.map