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

loadFromDatalessJSON report an error #5956

Closed
mistorfu opened this issue Nov 11, 2019 · 7 comments · Fixed by #5970
Closed

loadFromDatalessJSON report an error #5956

mistorfu opened this issue Nov 11, 2019 · 7 comments · Fixed by #5970

Comments

@mistorfu
Copy link

mistorfu commented Nov 11, 2019

Version

3.4.0

Test Case

https://jsfiddle.net/mistorfu/0a64Lzhp

Information about environment

Nodejs or browser? browser
Which browsers? chrome

Steps to reproduce

  1. loadSVGFromURL
  2. set sourcePath for the object
  3. use canvas.toDatalessJSON and serialize to string
  4. use canvas.loadFromDatalessJSON

Expected Behavior

load correctly from the JSON

Actual Behavior

got an error which said "objects.forEach is not a function"

@av01d
Copy link

av01d commented Nov 11, 2019

Where is your fiddle?

@mistorfu
Copy link
Author

Where is your fiddle?
Here it is. There is no available svg file, pls ignore the 404.
https://jsfiddle.net/mistorfu/0a64Lzhp/7/

@av01d
Copy link

av01d commented Nov 12, 2019

Updated your fiddle a bit: https://jsfiddle.net/av01d/2n46kx9g/
(Made SVG available).
This bug seems very related to #4560 and #4598.

@mistorfu
Copy link
Author

Updated your fiddle a bit: https://jsfiddle.net/av01d/2n46kx9g/
(Made SVG available).
This bug seems very related to #4560 and #4598.

Thank you for your attention. Yes, they should be the same bug.

@asturur
Copy link
Member

asturur commented Nov 15, 2019

https://jsfiddle.net/bfL2myg8/1/

minimized the fiddle to the minimum possible ( no animation code, no set top left, keep it super small )

@asturur
Copy link
Member

asturur commented Nov 15, 2019

From the 3 issues i'll keep the oldest and mark for fixing

@asturur
Copy link
Member

asturur commented Nov 15, 2019

duplicate of #4598

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

Successfully merging a pull request may close this issue.

3 participants