4 lines
257 B
JavaScript
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
import { toDecimal } from './to-decimal';
export const smoothFrame = (prevValue, nextValue, duration, smoothing = 0) => toDecimal(prevValue +
(duration * (nextValue - prevValue)) / Math.max(smoothing, duration));
//# sourceMappingURL=smooth-frame.js.map