简体   繁体   English

如何有效地在JavaScript中绘制许多交互式曲线?

[英]how to efficiently draw many interactive curves in JavaScript?

I need the ability to efficiently draw a large number of interactive curves (possibly Bezier) in a web app. 我需要能够在Web应用程序中有效绘制大量交互式曲线(可能是Bezier)的能力。 Imagine a graph-like structure with many draggable elements that are connected with smooth curves. 想象一下一个类似图形的结构,其中包含许多与平滑曲线相连的可拖动元素。 Hence, the curves must adjust in shape and length as single elements are moved. 因此,曲线必须随着单个元素的移动而调整形状和长度。

What graphic method will be best to assure efficiency and interactivity for a large number curves? 哪种图形方法最能确保大量曲线的效率和交互性?

SVG? SVG? Canvas? 帆布? something else? 还有什么吗

(And once we know which method is best, is there a good library that would make it easier to implement?) (而且一旦我们知道哪种方法最好,是否有一个好的库可以使其更容易实现?)

You might take a look at JSXGraph . 您可以看看JSXGraph I haven't personally used it, but know some who has with nice results. 我还没有亲自使用过它,但是知道有些人效果不错。 It looks like it will use 'SVG, VML or canvas'. 看起来它将使用“ SVG,VML或画布”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM