anseki / leader-line

Draw a leader line in your web page.
http://anseki.github.io/leader-line/
MIT License
3.03k stars 425 forks source link

leader-line mount point #363

Closed Bingjiajia closed 2 years ago

Bingjiajia commented 2 years ago

What happens when the start and end tags can be dragged and dropped? Whether the mount point can be set

anseki commented 2 years ago

Hi @Bingjiajia, thank you for the comment. Could you explain that?

Bingjiajia commented 2 years ago

There are two div elements in a container. If do not drag the container, can wire, and if drag, cannot follow the wire. how to solve

Bingjiajia commented 2 years ago

Is it possible to mount the line to the container and follow it around,when container drag

anseki commented 2 years ago

Sorry, my English is poor. I couldn't understand your words well. Do you mean that you want to draw a line between draggable elements? Try this example: https://anseki.github.io/leader-line/#ex-191-stage Drag the yellow box.

anseki commented 2 years ago

Or, if you have a problem in your code, show me an example by using e.g. https://jsfiddle.net/ .

Bingjiajia commented 2 years ago

哈哈,我的谷歌翻译的中文。场景是这样的,我在一个容器内,添加了多个div元素,然后元素之间用线连接上。但是我把这个容器设置为可拖拽,然后拖拽释放后如何让容器内的连线也跟着容器走呢

anseki commented 2 years ago

Sorry?

Bingjiajia commented 2 years ago

Thank you. I have solved it

anseki commented 2 years ago

Ok :smile: Could you close this issue?

yuleiQ commented 2 years ago

哈哈,我的谷歌翻译的中文。场景是这样的,我在一个容器内,添加了多个div元素,然后元素之间用线连接上。但是我把这个容器设置为可拖拽,然后拖拽释放后如何让容器内的连线也跟着容器走呢

咋解决啊

anseki commented 2 years ago

No reply came from @yuleiQ but the issue seems to have been already solved by solving of @yuleiQ's another issue. :smile: