Skip to content

loadFromJSON v6 #8059

Answered by 17hz
brianp70x asked this question in Q&A
Jul 13, 2022 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

loadFromJSON has been an Promise in v6, you should not call canvas.renderAll() as callback anymore

now you should use

canvas.loadFromJSON(json).then(function(){canvas.renderAll()})

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@brianp70x
Comment options

@mtrabelsi
Comment options

@asturur
Comment options

Answer selected by brianp70x
Comment options

You must be logged in to vote
1 reply
@zhe-he
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants