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

Uncaught TypeError: p.animatedPathSegList is not iterable #2

Closed
texxnik opened this issue Oct 22, 2021 · 3 comments
Closed

Uncaught TypeError: p.animatedPathSegList is not iterable #2

texxnik opened this issue Oct 22, 2021 · 3 comments
Assignees

Comments

@texxnik
Copy link

texxnik commented Oct 22, 2021

Hey! when uploading a file, everything works well in Firefox, but in Chrome it works with an error!

Uncaught TypeError: p.animatedPathSegList is not iterable
at FileReader.fr.onloadend ((index):1207)

Google Chrome
Version 95.0.4638.54

@proceduraljigsaw
Copy link
Owner

Yep, you're right. I found this about 15 minutes after release...

Turns out I'm using a deprecated interface to get the SVG data I need from the uploaded file. Chrome deprecated it years ago while firefox keeps it for some reason.

I'm already porting it to the new interface, however there are lots of changes involved. I coded my own svg parser/rasterizer and it turns out that functionality is readily given by the new interface. I have it partially working already, but I can't dedicate much time right now.

So yes, it's firefox only for now, I'm sorry.

@proceduraljigsaw proceduraljigsaw self-assigned this Oct 27, 2021
@proceduraljigsaw proceduraljigsaw pinned this issue Oct 27, 2021
@proceduraljigsaw
Copy link
Owner

It now works in Chrome and Edge, as it uses the proper interface for SVG. SVG support should also be much improved, thanks to a flattening library I found.

@texxnik
Copy link
Author

texxnik commented Nov 1, 2021

Super! thanks! checked it works!

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

No branches or pull requests

2 participants