You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
svg-sprite fails for an SVG containing <circle r="0">. If I change the r value to a positive integer, it succeeds.
svg-sprite --dest out --symbol anim.svg
node_modules/svg-sprite/lib/svg-sprite/queue.js:100
Array.prototype.push.apply(this._spriter._shapes, shape.distribute());
^
TypeError: Cannot read property 'distribute' of undefined
at EventEmitter.SVGSpriterQueue.remove (node_modules/svg-sprite/lib/svg-sprite/queue.js:100:57)
at node_modules/async/lib/async.js:544:30
at node_modules/svg-sprite/lib/svg-sprite.js:184:3
at Object.module.exports [as svgo] (node_modules/svg-sprite/lib/svg-sprite/transform/svgo.js:80:3)
at node_modules/svg-sprite/lib/svg-sprite.js:168:38
at fn (node_modules/async/lib/async.js:641:34)
at Immediate._onImmediate (node_modules/async/lib/async.js:557:34)
at processImmediate [as _immediateCallback] (timers.js:358:17)
I get the same error if I remove the <circle> element entirely. Digging deeper, I suspect the problem is that svgo erroneously drops this element even if it contains an animation.
yes, SVGO 0.5.1 completely breaks all the example SVGs and tests bundled with svg-sprite (and I didn't have the time to further investigate this yet). Thanks for your patience.
svg-sprite fails for an SVG containing
<circle r="0">
. If I change ther
value to a positive integer, it succeeds.SVG file:
The text was updated successfully, but these errors were encountered: