需要加快我的SVG。我可以转换为WebGL或画布吗? [英] Need to speed up my SVG. Could I convert to WebGL or canvas?
本文介绍了需要加快我的SVG。我可以转换为WebGL或画布吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含10138个零件的SVG图纸,因此它运行缓慢。
我想让它更像
解决方案
sigma.js是一个开源轻量级JavaScript库,用于使用HTML canvas元素绘制图形。它专门用于:
显示从图形可视化软件导出的交互式静态图形 - 如Gephi
显示动态生成的图形
I have an SVG drawing with 10138 parts, so it runs slowly.
I want to make it run more like http://workshop.chromeexperiments.com/globe
Here are the solutions/questions I'm considering
- Is there any way to have the SVG parts render in a less processor-intensive way?
- Can I convert the SVG to WebGL or canvas?
- Can I have it run as SVG but render thru WebGL or canvas?
I just want to make it faster .. thoughts?
Here is a screenshot
解决方案
sigma.js is an open-source lightweight JavaScript library to draw graphs, using the HTML canvas element. It has been especially designed to:
Display interactively static graphs exported from a graph visualization software - like Gephi Display dynamically graphs that are generated on the fly
这篇关于需要加快我的SVG。我可以转换为WebGL或画布吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文