J
J
jtag2018-03-20 04:22:32
JavaScript
jtag, 2018-03-20 04:22:32

Is it possible to save all canvas objects to a text file?

Is it possible to save the coordinates of objects (i.e. lines, pictures, shapes) canvas to a text file, so that later, when opening this file, continue editing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniel, 2018-03-20
@daniil14056

Canvas elements are more abstract. Unlike decorative svg, they are not elements, but program code.
But you can save it in json format (for example), when canvas is loaded, send a json request to this file, parse it into an object, and take coordinates from it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question