admin管理员组文章数量:1431420
I know it's not supported natively, but are there any JS Shims that render into a canvas object or something that would allow me to render SVG on the native android browser? (Not Opera, etc since I'd like to avoid having the user need to install another browser)
I know it's not supported natively, but are there any JS Shims that render into a canvas object or something that would allow me to render SVG on the native android browser? (Not Opera, etc since I'd like to avoid having the user need to install another browser)
Share Improve this question asked Nov 14, 2011 at 17:50 9point69point6 9762 gold badges10 silver badges23 bronze badges 1- 1 Fabric.js supports rendering SVG on canvas. Take a look at a demo that does exactly that (careful, loads slowly due to large number of SVG shapes). – kangax Commented Nov 14, 2011 at 21:43
1 Answer
Reset to default 6I think what you want is this library:
http://code.google./p/canvg/
Basically, you would detect if the browser is capable of rendering svgs, and if it can't, you would render the SVG to canvas.
本文标签: javascriptSVG in the Android BrowserStack Overflow
版权声明:本文标题:javascript - SVG in the Android Browser - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745553018a2663030.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论