UNPKG

@casual-simulation/aux-common

Version:
14 lines 370 B
export function remapProgressPercent(start, end) { let ratio = end - start; return (msg) => { if (msg.type !== 'progress') { return msg; } let realProgress = start + ratio * msg.progress; return { ...msg, progress: realProgress, }; }; } //# sourceMappingURL=StatusUpdateUtils.js.map