我可以使用 javascript 连接对象吗? [英] Can I connect objects with javascript?

查看:51
本文介绍了我可以使用 javascript 连接对象吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做一个这样的界面

所以这是用户可以做的

1- 将人们彼此联系起来2- 查看每个人的一些信息(气球)3- 移动这些对象而不会失去它们的连接

1- Connect people to each other 2- See some information about each person (the balloon) 3- Move these objects around without them loosing their connections

然后我想用ajax保存这些连接信息,这样我就可以看到谁连接了谁,我还需要在用户下次看到页面时重新绘制这些图.

Then I want to save these connection information using ajax, so that I can see who is connected to who, I also need to redraw these diagrams next time the user sees the page.

似乎 jsPlumb、paperjs 和 raphael 都可以做到这一点,而且还有更多,我的问题是哪一种适合这种需求.

It seems like jsPlumb, paperjs, and raphael can all do this and a lot more, my question is which one is suitable for this need.

推荐答案

检查基于 raphael 的 graphiti.

inspect graphiti which is based on raphael.

http://www.draw2d.org/graphiti/jsdoc/#!/例子

问候

安德烈亚斯

这篇关于我可以使用 javascript 连接对象吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆