mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 03:01:53 +10:00
feat(artboard): implement 8 new templates
This commit is contained in:
7
libs/utils/src/namespaces/number.ts
Normal file
7
libs/utils/src/namespaces/number.ts
Normal file
@ -0,0 +1,7 @@
|
||||
export const linearTransform = (
|
||||
value: number,
|
||||
inMin: number,
|
||||
inMax: number,
|
||||
outMin: number,
|
||||
outMax: number,
|
||||
) => ((value - inMin) * (outMax - outMin)) / (inMax - inMin) + outMin;
|
||||
Reference in New Issue
Block a user