remove outdated files

This commit is contained in:
riqo 2021-03-06 14:02:51 -06:00
commit 0f31b569bc
2 changed files with 0 additions and 95 deletions

View file

@ -1,29 +0,0 @@
// Update xShort or yShort value.
export function calcSideProximity (inputItemX: number, winW: number) {
let short = winW - inputItemX
if (short > winW / 2) {
short = inputItemX
}
return short
}
// Update inputItemX or inputItemY value.
export function calcPosition (inputItemPosition: number, percent: number,
short: number, win: number) {
// Is it close to the right/left side?
if (percent > 0.75) {
inputItemPosition = win - short
}
// Is it not close to a side?
if (percent < 0.75 && percent > 0.25) {
inputItemPosition = win * percent
}
return inputItemPosition
}