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
Add a ment  | 

1 Answer 1

Reset to default 6

I 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