How can I store data on the server?
Which format would be the best option?
Since they are only circles, you probably just need the starting coordinate, size, line thickness, and color. It seems like it's fairly easy to store with SQL.
Should I just save the appropriate html?
What kind of HTML? Drawings on canvas are not displayed in the DOM. This is why the canvas (currently) is terrible for accessibility (unlike SVG).
What would be the case when I would like to create a non-standard format that is stored on the server and parsed back to the html canvas at boot time?
I port it as JSON and then go through the dataset with JS to redraw it.
source share