use a better cloning algorithm (#753)
* use a better cloning algorithm * Revert "use a better cloning algorithm" This reverts commit 7279262129d665ffa92f016802155c1db7c35b7f. * implement custom cloning algorithm * add tests * refactor * don't copy canvas & ignore canvas in related ops * fix tests
This commit is contained in:
@ -13,7 +13,7 @@ class SceneHistory {
|
||||
) {
|
||||
return JSON.stringify({
|
||||
appState: clearAppStatePropertiesForHistory(appState),
|
||||
elements: elements.map(({ shape, ...element }) => ({
|
||||
elements: elements.map(({ shape, canvas, ...element }) => ({
|
||||
...element,
|
||||
shape: null,
|
||||
canvas: null,
|
||||
|
Reference in New Issue
Block a user