function relativePosition(x, y) {
		const { top, left } = $el.getBoundingClientRect();
		return [x - left, y - top];
	}
Returns relative position of given coordinates
@param {number} x x coordinate
@param {number} y y coordinate
@returns {[number, number]}