Interactive hover on edges


I’m trying to get annotated arrows on directed graph. Arrows implemented with annotations, text over arrows implemented using separate annotations with injected in the middle of arrow.

I want to have annotations which will appear on hover over arrows/edges, across all length of line. I can have hover annotation only for markers. Technically i can add transparent markers with same length/size/rotation as my arrows, but the problem that markers can be only square, not rectangles.

I would appreciate any suggestion, even dirty hacks to get text on hover over edges across whole line lenght.


Any suggestion? Rectangle marker with custom rotation anyhow?