Javascript 有没有 jsPlumb 的替代品?(用于连接DOM元素)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8233998/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Are there any alternatives to jsPlumb? (for the purpose of connecting DOM elements)
提问by needim
I'm making a gantt project management system, and I'm trying to connect the DOM elements of a UI together, like in this jsPlumb demo:
我正在制作一个甘特图项目管理系统,我正在尝试将 UI 的 DOM 元素连接在一起,就像在这个 jsPlumb 演示中一样:
However, I don't like jsPlumb much. I searched for alternatives, but couldn't find any.
但是,我不太喜欢 jsPlumb。我寻找替代品,但找不到任何替代品。
Are there any jsPlumb alternatives that you suggest?
您是否建议使用任何 jsPlumb 替代方案?
采纳答案by Micah
jsPlumb doesn't have a Gantt chart connector out of the box, but someone wrote one a year or two ago:
jsPlumb 没有开箱即用的甘特图连接器,但有人在一两年前写了一个:
http://help-me-hackers.com/tasks/107
http://help-me-hackers.com/tasks/107
which, when i saw it, i thought was pretty cool. I don't know a great deal about it, since it's all in Japanese, but the idea of polishing those connectors up and then adding them to jsPlumb for everyone to use is quite appealing.
当我看到它时,我觉得很酷。我不太了解它,因为它都是日文的,但是将这些连接器完善起来然后将它们添加到 jsPlumb 供每个人使用的想法非常吸引人。
i think perhaps the code is in this github project:
我想也许代码在这个 github 项目中:
https://github.com/komagata/jquery.ganttView
https://github.com/komagata/jquery.ganttView
..but be aware if you do try to integrate them, the code has moved on a little since they were written so you might have a little bit of work to do up front. I'd be happy to help you if you want to pursue this.
..但请注意,如果您确实尝试集成它们,则代码自编写以来已经发生了一些变化,因此您可能需要先做一些工作。如果你想追求这个,我很乐意帮助你。
回答by Micah
"WireItis an open-source javascript library to create web wirable interfaces for dataflow applications, visual programming languages, graphical modeling, or graph editors."
“ WireIt是一个开源 JavaScript 库,用于为数据流应用程序、可视化编程语言、图形建模或图形编辑器创建 Web 可连接接口。”
DERI pipeswhich was inspired by Yahoo's Pipes
受雅虎管道启发的DERI管道
JavaScript Gantt Chartrich script API:
JavaScript 甘特图丰富的脚本 API:
Ext Ganttis a gant chart component build on the Ext Js frameworks (made by Sencha Inc)
Ext Gantt是一个基于 Ext Js 框架的甘特图组件(由 Sencha Inc 制造)
dojox.ganttis a dojo gantt chart widget
dojox.gantt是一个 dojo 甘特图小部件
回答by r0ast3d
Not sure if this is any easier than jsPlumb , which btw is awesome.
不确定这是否比 jsPlumb 更容易,顺便说一句,它很棒。
This framework is like the yahoo pipes visual UI editor, http://neyric.github.com/wireit/index.htmland this http://neyric.github.com/webhookit/docs/index.html
这个框架就像雅虎管道可视化 UI 编辑器,http://neyric.github.com/wireit/index.html和这个http://neyric.github.com/webhookit/docs/index.html