-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Svg.pathToVertices breaking in chrome #262
Comments
You need this polyfill because the browser API |
Hi @liabru Awesome work on the library. |
So I want my SVG to load into scene. |
@janverhulst @marffinn - did you end up getting this to work? |
Looked at the svg example below in chrome and there are no svg's loading. Working on a project now using svg's and it loads fine in both Firefox and Safari when using localhost but in Chrome "Cannot read property 'numberOfItems' of undefined". |
Seems that the polyfill is currently broken in recent versions of Chrome, see my comment in this thread. |
calling
Matter.Svg.pathToVertices
works fine in mobile safari, but in desktop Chrome it returns the errorUncaught TypeError: Cannot read property 'numberOfItems' of undefined
I haven't tested in all browsers. I'm calling the function using an svg
path
element and an integer forsampleLength
as per the docsThe text was updated successfully, but these errors were encountered: