Throws a TypeError: SVG.defaults.trans is not a function
prashnts opened this issue · 6 comments
While importing any SVG, it's been throwing the above mentioned TypeError. The origin is line number 27.
I fixed it by changing line 27
from:
, def = SVG.defaults.trans()
to:
, def = SVG.defaults
What is the purpose of this line, and why is the trans()
method removed? Is my fix correct, or does it breaks something too?
This is really weird.
Have a look at this:
https://jsfiddle.net/w5zod1m3/1/
(parser and import plugin embedded as inline script and it works)
versus
https://jsfiddle.net/w5zod1m3/2/
(parser and import plugin embedded as external resources and it does not work)
I'll investigate this further...
Hi there, any news?
I see that on http://svgjs.com/import/ same error.
Yes.
Same goes for clock example - doesn't work.
This plugin is NOT for svg.js v2 because in v2 you can do that with the lib alone
Thanks @Fuzzyma you are right, It's work for me )