17 Jan 2012 12:06 PM #1
Import svg file EXTJS 4
Is it possible to draw an svg from a file in EXT-JS 4.0? I have exported svg's from Visio and those are the files I am trying to load into EXT-JS. All the examples I have seen so far specify each individual path to draw svg's.
Still an EXT-JS newbie so I apologize if it is something obvious.
Thanks in advance!
17 Jan 2012 12:55 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
There really isn't a way to convert SVG to a draw component to my knowledge.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
27 Mar 2012 12:49 AM #3
"Anything that can be exported as SVG can be rendered in Ext.draw, even tigers"
This article implied that I can import a SVG to Ext.draw.
How got you the tiger in?
6 Jul 2012 2:50 AM #4
I agree with Hanterdro.
What they probably did is an import/conversion from SVG to Ext.Draw syntax through a script.
Anyway, a native import for SVG images would be really helpful, IMHO.
18 Sep 2012 7:41 PM #5
4 Mar 2014 1:16 PM #6
I agree with Hanterdro. Why can't we import scalable vector graphics? It's just a xml with layers and paths.