mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Remove last committed point json (#2371)
Co-authored-by: rene_mbp <harryloveslearning@googlemail.com> Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
4371c29f0c
commit
a1fbec1030
4 changed files with 26 additions and 5 deletions
|
@ -6,6 +6,7 @@ import { fileOpen, fileSave } from "browser-nativefs";
|
|||
import { loadFromBlob } from "./blob";
|
||||
import { Library } from "./library";
|
||||
import { MIME_TYPES } from "../constants";
|
||||
import { clearElementsForExport } from "../element";
|
||||
|
||||
export const serializeAsJSON = (
|
||||
elements: readonly ExcalidrawElement[],
|
||||
|
@ -16,7 +17,7 @@ export const serializeAsJSON = (
|
|||
type: "excalidraw",
|
||||
version: 2,
|
||||
source: window.location.origin,
|
||||
elements: elements.filter((element) => !element.isDeleted),
|
||||
elements: clearElementsForExport(elements),
|
||||
appState: cleanAppStateForExport(appState),
|
||||
},
|
||||
null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue