jerosoler / Drawflow

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

Hi, i have questions. can you help me? #301

Open ghost opened 2 years ago

ghost commented 2 years ago

By applying and modifying the methods you've helped so far, other parts are really good to use! Thanks! I'm currently revising and testing the SVG tag.

image

Can you help me with how to make it possible like a red line in the picture below by drawing an additional line when the link line is out of range?

image

ghost commented 2 years ago

P.S I'm sorry for asking so many questions. I want it. I don't want the node to overlap with the link line. like this image image

jerosoler commented 2 years ago

I think you are using this function: https://github.com/jerosoler/Drawflow/issues/288

As indicated in the previous one, you will have to modify the number 20.

It is not impossible, but a node overlaps a line is the most common. You will always have a third node to get on top.

On the other hand you ask if you can create a line from one input to another input. The answer is no. If not, you will have to modify the library.

ghost commented 2 years ago

Create curves and correction functions.But that node is basically not svg.Therefore, the coordinate value specifying if cannot be determined by the determination formula.I wonder if there is a way to do it with the above way. ps Is there a way to obtain the Node coordinate value?