1
0
Fork 0

chore(core): Working on test coverage

This commit is contained in:
joostdecock 2022-07-23 17:00:48 +02:00
parent 04c4c438da
commit 785c03d013
9 changed files with 456 additions and 4 deletions

View file

@ -356,7 +356,7 @@ export { Bezier }
export function pctBasedOn(measurement) {
return {
toAbs: (val, { measurements }) => measurements[measurement] * val,
fromAbs: (val, { measurements }) => Math.round((10 * val) / measurements[measurement]) / 10,
fromAbs: (val, { measurements }) => Math.round((10000 * val) / measurements[measurement]) / 10000,
}
}