Code Monkey home page Code Monkey logo

Comments (4)

evancz avatar evancz commented on July 17, 2024

There's no SVG parser as part of this library. Can you outline your usage scenario? We don't add features without a concrete example of why it's a good idea.

from svg.

jwittenbach avatar jwittenbach commented on July 17, 2024

Sure thing. I've been playing around with using this package to programmatically create SVG, and it works great. But I frequently create SVG content offline which I then want to use in a webpage. In JS, I use XHR to fetch it. Then I can add event handlers finally add it as an <svg> node. In Elm, the best I can do is fetch it as text, but then I have no way to parse it into a form that would be useable by this package. Seems like it might be a generally useful piece of functionality, similar to the great JSON decoding tools that exist in Elm.

from svg.

process-bot avatar process-bot commented on July 17, 2024

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

from svg.

evancz avatar evancz commented on July 17, 2024

Sorry about the robot, it got out of whack for a little while!

It sounds like an XML decoder may be the thing you are looking for? It should cover this case right? Like, someone could make an SVG specific thing on top of an XML decoder.

from svg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.