Regenerate roughjs shape only when the item is updated (#316)

* Regenerate roughjs shape only when the item is updated

* Remove shape object during export and history undo/redo

* Remove shape element during copying

* Fix shape generation during creation
This commit is contained in:
Gasim Gasimzada 2020-01-12 04:00:00 +04:00 committed by Christopher Chedeau
parent 1bf18fe4ed
commit 74764b06eb
7 changed files with 109 additions and 71 deletions

View file

@ -35,7 +35,7 @@ export function saveAsJSON(
const serialized = JSON.stringify({
version: 1,
source: window.location.origin,
elements
elements: elements.map(({ shape, ...el }) => el)
});
saveFile(