
* feat: add ability to set focal points for media fixes #739 * fix tests * actually fix tests * really really fix tests * really really really fix tests pinkie swear
3 lines
133 B
JavaScript
3 lines
133 B
JavaScript
export const coordsToPercent = coord => ((1 + coord) / 2) * 100
|
|
|
|
export const percentToCoords = percent => ((percent / 100) * 2) - 1
|