json - Save toJSON and load Kinetic.Layer by keeping the same events that I defined and images -


is there concrete example saving layers contain images + shapes + events on each node json format, , load it? have done until saving json.

i want give user ability save has done, close computer (his session on website), when connects again, old saved layers appear. can continue drawing, dragging , dropping, etc.

as far know, can save shapes , attributes json. can't save images , events.

after loading stage json, have reassign images again events.

here's tutotial kineticjs website regarding complex stage loading

edit1: had same problem you're having... in order solve this, after loading stage, layers , shapes, shapes want assign events using find on name attribute. may consider using find type same purpose.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -