Created
December 8, 2020 05:04
-
-
Save JakenHerman/bb0c68f66dc382a1aac664278816e6e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getTextXValue = (x) => { | |
const stringLength = Math.floor((x/150)*100).toString().length; | |
switch (stringLength) { | |
case 1: return x + 7; | |
case 2: return x + 4; | |
default: return x; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment