LaserWeb/deprecated-LaserWeb2

Error loading .svg file

funinthefalls opened this issue · 6 comments

When I try and load an svg file I get the following error:

TypeError: Cannot read property 'position' of undefined
(http://openhardwarecoza.github.io/LaserWeb2/js/fileprep.js on line 72)

Convert to path first (:

And the svg should only contain paths, nothing else
On 26 Mar 2016 14:07, "Anthony Bolgar" notifications@github.com wrote:

When I try and load an svg file I get the following error:

TypeError: Cannot read property 'position' of undefined
(http://openhardwarecoza.github.io/LaserWeb2/js/fileprep.js on line 72)


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#10

That was the issue, I had one element that was not a path.

Would be a good idea to code some error handling in to alert user to the
fact (;

I'll see what i can do
On 26 Mar 2016 14:35, "Anthony Bolgar" notifications@github.com wrote:

That was the issue, I had one element that was not a path.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#10 (comment)

Could something like this be added  maybe?

https://github.com/wout/svg.topath.js

AY

On Mar 26, 2016, 07:36, at 07:36, Peter van der Walt notifications@github.com wrote:

Would be a good idea to code some error handling in to alert user to
the
fact (;

I'll see what i can do
On 26 Mar 2016 14:35, "Anthony Bolgar" notifications@github.com
wrote:

That was the issue, I had one element that was not a path.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

#10 (comment)


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#10 (comment)

That particular one, sadly no, since its for svg.js. We use snap.svg (;

Could something like this be added maybe?

https://github.com/wout/svg.topath.js

AY

On Mar 26, 2016, 07:36, at 07:36, Peter van der Walt <
notifications@github.com> wrote:

Would be a good idea to code some error handling in to alert user to
the
fact (;

I'll see what i can do
On 26 Mar 2016 14:35, "Anthony Bolgar" notifications@github.com
wrote:

That was the issue, I had one element that was not a path.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

<
#10 (comment)


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:

#10 (comment)


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#10 (comment)