Allow to position panel next to SVG elements

do you really need separate variables for this?