How to create a topology diagram using Javascript

僤鯓⒐⒋嵵緔 提交于 2019-12-24 17:46:04

问题


I need to create a topology (network) diagram, which will be integrated with my extJS application. Is anyone familiar with some Javascript packages with APIs for creating such a diagram, taking care of: positioning the nodes in the diagram, zooming, and dragging the nodes?

In addition I want to use some custom icons for the nodes in the diagram.


回答1:


You might look into yEd/yFiles (http://www.yworks.com/en/products_yed_about.html) It's java, not javascript, but it will definitely run as an applet since it does so from their site as a demo. Might work if this is for an intranet to just embed it in the middle of an extjs panel. Otherwise I recommend you read and re-read the drag and drop api for ExtJS and review the source code for them as well if you intend to code it yourself. Also from a google search:

http://www.jgraph.com/ (commercial)

http://www.jointjs.com/about.html (MIT Licenses)



来源:https://stackoverflow.com/questions/13398572/how-to-create-a-topology-diagram-using-javascript

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!