I have a problem. I'm offsetting lines with the attribute field "offset". In the image the blue line is the original geometry. I was able to retrieve the offset value the attribute. (The callout line is now on the red line). But lines have a direction and so the offsetvalue depends on their direction. If i add a minus before offset it moves to the brown line where it should be automatically.
How do I have to change the code to get the geometry direction automatically instead of using the minus symbol which just works for one direction?
make_line( start_point($geometry), project( end_point($geometry), -"Offset", radians(90) ) )
The original thread was: Making callout lines follow feature offset