@casual-simulation/aux-common
Version:
Common library for AUX projects
14 lines • 370 B
JavaScript
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