Store is a basic data model object they you are going to work with. It has about %90 API functions provided by
Working with pages
Store is a set of pages. Each pages have elements on it.
The getter. Returns all pages of the store.
The getter. Returns current active page or the last created.
Returns size of every page.
Set new size of every page in the store
Getter for current zoom level of the active page.
Change zooming of active page.
Working with active elements
Returns array of currently selected elements on the current page
Selects elements on the canvas by their ids.
Remove elements from the store.
Can we undo state?
Undo last changes
Can we redo state?
Save store into plain object.
Load passed json into the store. It will update all properties, pages and elements
Convert store into base64 URL
saveAsImage will export drawing into image and save it as local file.
saveAsPDF will export drawing into PDF and save it as local file.