Coder Social home page Coder Social logo

Comments (6)

rbakhshi avatar rbakhshi commented on July 24, 2024

maybe defs are not supported: https://github.com/wout/svg.import.js#to-do

did you try removing the comments (at the top)? did you try vacuum the defs? (inkscape file/vacuum...)

from svg.import.js.

rbakhshi avatar rbakhshi commented on July 24, 2024

try removing the defs from your svg, it displays something. well as it is said, support for defs is not yet complete.

from svg.import.js.

EmanueleSabetta avatar EmanueleSabetta commented on July 24, 2024

When the defs support would be completed? I'd say that my sample it's a pretty basic svg icon + text.
Here is how the browser renders it:
basic_test_svg_firefox_rendered

from svg.import.js.

wout avatar wout commented on July 24, 2024

HI,
Currently I am working on different parts of svg.js. the import plugin has no priority at the moment. But any help is more than welcome as I am working on this project alone at the moment.

from svg.import.js.

Emasoft avatar Emasoft commented on July 24, 2024

Why this bug has been closed? I've just checked and the import still doesn't work.

from svg.import.js.

wout avatar wout commented on July 24, 2024

Because it is not a bug, rather not implemented. I develop svg.js as I go, so features I need will be implemented. I already wrote the base of the svg.filter.js plugin but it needs more work. When the filters are fully implemented I can add support to the import plugin.

Also, your file is using svg version 1.2. This spec was never completed and the flowRoot element never implemented in svg 1.1. Some browsers don't support it so I am unable to implement this element. You'll have to convert the flowRoot element in Inkscape to a text element.

from svg.import.js.

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.