Results 1 to 6 of 6

Thread: Import svg file EXTJS 4

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    1
    Vote Rating
    0
      0  

    Question 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!

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    There really isn't a way to convert SVG to a draw component to my knowledge.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    27
    Vote Rating
    0
      0  

    Default

    Why?

    "Anything that can be exported as SVG can be rendered in Ext.draw, even tigers"

    Source: http://www.sencha.com/blog/ext-js-4-...-and-charting/

    This article implied that I can import a SVG to Ext.draw.

    How got you the tiger in?

  4. #4
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default

    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.

  5. #5
    Sencha Premium Member kimosabi's Avatar
    Join Date
    Jan 2008
    Location
    Perth, Western Australia
    Posts
    50
    Vote Rating
    0
      0  

    Default

    maybe they used some

    SVG to FXML

  6. #6
    Sencha User
    Join Date
    Mar 2013
    Location
    Moscow, Russia
    Posts
    28
    Vote Rating
    0
      0  

    Default

    I agree with Hanterdro. Why can't we import scalable vector graphics? It's just a xml with layers and paths.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •