mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-18 15:00:39 +02:00
use a better cloning algorithm (#753)
* use a better cloning algorithm
* Revert "use a better cloning algorithm"
This reverts commit 7279262129
.
* implement custom cloning algorithm
* add tests
* refactor
* don't copy canvas & ignore canvas in related ops
* fix tests
This commit is contained in:
@@ -51,7 +51,7 @@ export function serializeAsJSON(
|
||||
type: "excalidraw",
|
||||
version: 1,
|
||||
source: window.location.origin,
|
||||
elements: elements.map(({ shape, isSelected, ...el }) => el),
|
||||
elements: elements.map(({ shape, canvas, isSelected, ...el }) => el),
|
||||
appState: cleanAppStateForExport(appState),
|
||||
},
|
||||
null,
|
||||
|
Reference in New Issue
Block a user