Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Morphing Path Throws Errors #217

Open
StrictlySkyler opened this issue Aug 6, 2013 · 1 comment
Open

Morphing Path Throws Errors #217

StrictlySkyler opened this issue Aug 6, 2013 · 1 comment
Labels

Comments

@StrictlySkyler
Copy link

Morphing a path via .morphSegmentsTo() and also .morphTo() throws errors when the path is morphed to a zero-length path, e.g. 'M652,238 L652,238 Z'.

Errors:

Error: Problem parsing d="M 329.5 238 C 329.5 238 500.84926278570276 224.1408684511564 500.84926278570276 224.1408684511564 C NaN NaN NaN NaN NaN NaN" bonsai.js:3341
proto$$module$renderer$svg$svg.drawPath bonsai.js:3341
proto$$module$renderer$svg$svg.render bonsai.js:3279
RendererController$$module$renderer$renderer_controller.handleEvent bonsai.js:3102
EventEmitter$$module$event_emitter.emit bonsai.js:889
onmessage bonsai.js:3011
Error: Problem parsing d="M 329.5 238 C 329.5 238 383.4716357669188 233.63464710708746 383.4716357669188 233.63464710708746 C NaN NaN NaN NaN NaN NaN" bonsai.js:3341
proto$$module$renderer$svg$svg.drawPath bonsai.js:3341
proto$$module$renderer$svg$svg.render bonsai.js:3279
RendererController$$module$renderer$renderer_controller.handleEvent bonsai.js:3102
EventEmitter$$module$event_emitter.emit bonsai.js:889
onmessage bonsai.js:3011
Error: Problem parsing d="M 329.5 238 C 329.5 238 346.5 236.625 346.5 236.625 C NaN NaN NaN NaN NaN NaN" bonsai.js:3341
proto$$module$renderer$svg$svg.drawPath bonsai.js:3341
proto$$module$renderer$svg$svg.render bonsai.js:3279
RendererController$$module$renderer$renderer_controller.handleEvent bonsai.js:3102
EventEmitter$$module$event_emitter.emit bonsai.js:889
onmessage bonsai.js:3011
Error: Problem parsing d="M 329.5 238 C 329.5 238 334.85466446205317 237.56690213909863 334.85466446205317 237.56690213909863 C NaN NaN NaN NaN NaN NaN" bonsai.js:3341
proto$$module$renderer$svg$svg.drawPath bonsai.js:3341
proto$$module$renderer$svg$svg.render bonsai.js:3279
RendererController$$module$renderer$renderer_controller.handleEvent bonsai.js:3102
EventEmitter$$module$event_emitter.emit bonsai.js:889
onmessage bonsai.js:3011
Error: Problem parsing d="M 329.5 238 C 329.5 238 331.18661361771615 237.86358272209648 331.18661361771615 237.86358272209648 C NaN NaN NaN NaN NaN NaN" bonsai.js:3341
proto$$module$renderer$svg$svg.drawPath bonsai.js:3341
proto$$module$renderer$svg$svg.render bonsai.js:3279
RendererController$$module$renderer$renderer_controller.handleEvent bonsai.js:3102
EventEmitter$$module$event_emitter.emit bonsai.js:889
onmessage

I'm thinking that this should behave similar to how Raphael.js allows "animating" paths, no?

Despite the errors, the animation still seems to fire properly.

@basecode
Copy link
Contributor

basecode commented Aug 8, 2013

Thanks for reporting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants