I have created a html element as a template annotation in a connector, but i would like for it to be centered on the "line" at all times.
But your demo and my project have the same issue, is that it sticks left and follows the uppermost parent/element when dragging a "point".
Example using your demo: try drawing a circle while holding the targetpoint/ID, the htmlelement stick to the left most element+ uppermost.
If that's impossible, is it then possible to set the x and y position of the template? That would work fine for me too.(just like setting positions for nodes). I will just set it then with a changeEvent of the connectors.