Comments (6)
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.
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.
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:
from svg.import.js.
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.
Why this bug has been closed? I've just checked and the import still doesn't work.
from svg.import.js.
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)
- Objects appear at the wrong position HOT 3
- Should support amd
- [enhancement] Add missing bower.json.
- Wrong id's on parent g elements HOT 5
- Support for data- attributes HOT 2
- Doesn't support symbols exported from Illustrator HOT 4
- get() should work from the roots, not only from the store HOT 1
- duplicate id HOT 7
- unsupported tags "title" "filter" HOT 1
- <svg> tag is duplicated when draw.svg(rawSvg) HOT 1
- <br /> tag ends up getting doubled HOT 3
- Add link support HOT 2
- <image> turning into <img> after importing HOT 1
- problem of importing large diagram
- Using hide() on imported SVG
- Zero out X, Y Cordinates?
- Import doesn't work completely HOT 3
- Throws a TypeError: SVG.defaults.trans is not a function HOT 6
- Compatibility with SVG.js 2.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg.import.js.