1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    1
    Vote Rating
    0
    pemcne is on a distinguished road

      0  

    Question Import svg file EXTJS 4

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    There really isn't a way to convert SVG to a draw component to my knowledge.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

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

    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 services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    27
    Vote Rating
    0
    Hanterdro is on a distinguished road

      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
    nicola.lambiase is on a distinguished road

      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
    49
    Vote Rating
    0
    kimosabi is on a distinguished road

      0  

    Default


    maybe they used some

    SVG to FXML

Tags for this Thread