Comments (3)
Hi,
I think this issue is related to matrix transformations.
When the matrix transformation is parsed, the value is parsed with parseFloat or the default is used. In cases where the provide value is 0 I think it uses the default value. This isn't always the expected case.
For now I've just removed the or and always use the value from the svg-file, see from line 167:
Jeroen
from svg.import.js.
This should be fixed in the latest version. Could you confirm this?
from svg.import.js.
Yes! Works as expected.
from svg.import.js.
Related Issues (20)
- It doesn't import my SVG file (made with Inkscape) HOT 6
- 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.