本文介绍了画线以连接div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前已进行了以下设置: http://sandbox.brightboxstudios.com/orgmap/

它们是可拖动的,即使它们被拖动,我也试图找到一种使线连接它们的方法.拥有一种简单的方法来显示每个对象之间的关系以及应该连接的对象是理想的选择!

谢谢!

解决方案

您应该考虑使用 D3.js库 .特别是这个示例是我认为您正在寻找的示例: http://mbostock.github. com/d3/ex/force.html

I currently have this set up: http://sandbox.brightboxstudios.com/orgmap/

They are draggable and I am trying to find a way to have lines connect them, even when they are dragged. Having an easy way to show how each is related and which should be connected is ideal!

Thanks!!!

解决方案

You should consider using the D3.js library. In particular this example is what I think you are looking for: http://mbostock.github.com/d3/ex/force.html

这篇关于画线以连接div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 13:21