One liner fix, but took some time to find out...
This commit is contained in:
xmflsct 2023-02-02 13:54:28 +01:00
parent 2c96991ca0
commit 90c8e4cba8
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
const adaptiveScale = (size: number, factor: number = 0) => Math.round(size + size * (factor / 8))
const adaptiveScale = (size: number, factor: number = 0) =>
factor ? Math.round(size + size * (factor / 8)) : size
export { adaptiveScale }