用于创建和布局交互式图形(节点和箭头)的 Javascript 框架

发布于 2024-10-28 21:42:31 字数 309 浏览 6 评论 0原文

是否有任何 JavaScript 框架支持创建交互式节点和箭头?

我希望能够定义节点(带有一些图形和文本) 连接它们的(定向)箭头,箭头本身(或附近)也有文字。

我希望节点能够根据箭头的最小交集和可能的其他类型的提示自行渲染,例如为每个节点提供一个数字,并使数字较低的节点在显示中位于较高(或较低)的位置。

如果自动布局机制也支持修复某些节点的位置并仅布局非固定节点的能力,那就太好了。

节点和箭头应该根据需要选择可拖动和可单击的触发事件。

如果我找不到更好的东西,我会使用 raphael。但很乐意为自己节省一些编码时间。

Are there any javascript frameworks out there that support creating of interactive nodes and arrows ?

I would like to be able to define nodes (with some grahics and text)
and (directed) arrows that connect them that also have text on the arrow itself (or near it).

I will want the nodes to be able to render them selves based on minimum intersections of arrows and possible other types of hinting, like providing a number to each node and having nodes with lower numbers be located higher (or lower) in the display.

It would eb also nice if the auto layout mechanism would also support the ability to fix the locations of some of the nodes and layout only the non-fixed ones.

nodes and arrows should be optionally drag-able and click-able firing events as required.

I will user raphael if I don't find anything better. but would be happy to save myself some coding time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文