jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.42k stars 714 forks source link

I'm using labels, but have problem when label position is in left side, is there any way to fix this issue? #767

Open mushzak opened 9 months ago

mushzak commented 9 months ago
image image
mushzak commented 9 months ago

@jerosoler can you check please?

jerosoler commented 9 months ago

I see that you use the vertical method. You could use: https://github.com/jerosoler/Drawflow/issues/20

And detect the start and the end of the line at position x. I invert the line in the direction of the line.

mushzak commented 9 months ago

label is reversed, can I fix it? only when in left side

mushzak commented 8 months ago

@jerosoler do you have any ideas?

jerosoler commented 8 months ago

Have you tried the previous comment?

mushzak commented 8 months ago

yeah but I need to keep the current style

image
jerosoler commented 8 months ago

What formula do you use for labels?

mushzak commented 8 months ago
image
jerosoler commented 8 months ago

I think that with the textpath property it is impossible.

I have checked several properties and see nothing. https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath

Maybe it should be added directly to the connection.

vnomohan commented 8 months ago

image image

Looks awesome, can i have the css for this? :)