支持最广泛的(IE + Opera)JavaScript画布/绘图库 [英] Most widely-supported (IE + Opera) JavaScript canvas/drawing library
问题描述
我正在寻找一个投资组合网站,我想在该网站上做一些有创意的绘图而不使用图片.
I'm looking to do a portfolio site, and I wanted to do some creative drawing on the website without using images.
我考虑了画布,我认为它真的很酷,再加上一个有趣的项目,但是,我听说IE不兼容(是真的吗?),所以我不能拥有它.
I considered canvas, which I really think would be cool, plus an interesting project, however, I heard that IE has no compatibility (is that true?) so I cannot have that.
然后,我考虑了拉斐尔(Raphaël),这似乎是迄今为止最可行的选择.
Then, I considered Raphaël, which seems like it's the most viable option thus far.
嗯,还有一个我不记得这个名字的图书馆,这似乎也是一个不错的选择.
Ughh, there was another library that I can't remember the name to, which also seemed like a good option.
你们对Raphaël及其整体兼容性及其功能有何看法,关于其能力的图样.我正在浏览文档,我认为它非常强大.
What do you guys think about Raphaël and its overall compatibility, and its capabilities, regarding the kinds of drawing its capable of. I was browsing through the documentation and I think it's quite powerful.
推荐答案
您是要在网站上绘制矢量图形,还是只发布预制的矢量图形?
Do you want to draw the vector graphics on the site itself, or just publish premade vector graphics?
-
如果是前者,请查看 svg-edit 可以轻松地嵌入到您的网站中,并且可以在大多数浏览器中使用(旧IE版本需要chrome框架插件,但svg-edit 2.6支持IE9).
If the former, have a look at svg-edit which can easily be embedded in your site, and which works in most browsers (old IE versions require the chrome frame plugin, but IE9 will be supported by svg-edit 2.6).
如果是后者,那么可能有很多选择,这是我脑海中最重要的几个问题:
If the latter then there are probably many options, here are a couple off the top of my head:
- 使用 SVGWeb -使用
- Use SVGWeb - get started quickly with that using templates from svgboilerplate.com
Serve svg to browsers that support it, and static images to everyone else
< object data ="your.svg" type ="image/svg + xml">< img src ="staticyoursvg.png"></object>
<object data="your.svg" type="image/svg+xml"><img src="staticyoursvg.png"></object>
这篇关于支持最广泛的(IE + Opera)JavaScript画布/绘图库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!