RaphaëlJS、dojo.gfx、JSXgraph 比较
我将为浏览器应用程序构建一个简单的数学图表。因此,所有 JS-Vector 库都可能运行良好。但我想知道您使用这些工具收集到的任何经验。对我来说,一个基本功能是将事件绑定到路径和点以及动画路径。
此外,我还在思考他们如何掌控未来。我可以想象将我的绘图导出为图像或导入 SVG 图形。有人经历过这样的案例吗?在 iPhone 等移动硬件上运行它们怎么样?
I'm going to build a simple math graph for a browser application. Therefore all the JS-Vector Libraries might work out well. But I want to know about any experiences you collected using those. For me a basic feature is binding events to paths and points as well as animating paths.
Additionally I am thinking how they are mastering the future. I can imagine to export my drawings as an image or import SVG graphics. Did anyone already experience such cases? What about running them on mobile hardware like iPhone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我正在使用 JSXgraph。这是一个伟大的框架。如果您不需要标准解决方案,您也可以用它做很多事情。该框架有定义良好的 API 和大量示例。
元素有一个事件系统。我用过它,效果很好。动画路径应该不是问题。有很多演示,还带有动画图形。
我已经看到导出为静态 svg,但目前我没有(重新)在文档中找到它。我稍后在项目中也需要这个。我不明白,导入是什么意思。您的意思是在图表中显示图像吗?那么是的,您可以在绘图区域中使用图像。
我没有找。
I'm using JSXgraph. It is a greate framework. You can do a lot of stuff with it, also if you don't want a standerd solution. The framework has a well defined API and a lot of examples.
There is a Event system for the elements. I used it and it works greate. Animating pathes shouldn't be a problem. There are lots of demos, also with animated graphes.
I've seen a export as static svg, but i do not (re-)find it in the documentation at the moment. I will also need this later in the project. I do not understand, what you mean with import. Do you mean to show Images in the Chart? Then yes you can use images in the drawing Area.
I didn't look for it.
我只粗略地浏览了一下比赛。最终你必须选择一个。
我选择了 RaphaelJS,我不得不说使用它绝对是一种乐趣,而且它的帮助也很棒。
Raphael 可以完成您要求的一切,并且(如 jQuery)您可以使用自己的(或其他)插件轻松扩展它。
I only took the briefest of glances at the competition. Eventually you have to pick one.
I chose RaphaelJS and I have to say it has been an absolute pleasure to use, and the help is fantastic too.
Raphael can do everything you ask for and (like jQuery) you can easily extend it with your own (or others) plugins.