|
@@ -924,6 +924,8 @@ serializeAsJSON({
|
|
|
|
|
|
Takes the scene elements and state and returns a JSON string. Deleted `elements`as well as most properties from `AppState` are removed from the resulting JSON. (see [`serializeAsJSON()`](https://github.com/excalidraw/excalidraw/blob/master/src/data/json.ts#L16) source for details).
|
|
Takes the scene elements and state and returns a JSON string. Deleted `elements`as well as most properties from `AppState` are removed from the resulting JSON. (see [`serializeAsJSON()`](https://github.com/excalidraw/excalidraw/blob/master/src/data/json.ts#L16) source for details).
|
|
|
|
|
|
|
|
+If you want to overwrite the source field in the JSON string, you can set `window.EXCALIDRAW_EXPORT_SOURCE_PATH` to the desired value.
|
|
|
|
+
|
|
#### `serializeLibraryAsJSON`
|
|
#### `serializeLibraryAsJSON`
|
|
|
|
|
|
**_Signature_**
|
|
**_Signature_**
|
|
@@ -935,6 +937,8 @@ serializeLibraryAsJSON({
|
|
|
|
|
|
Takes the library items and returns a JSON string.
|
|
Takes the library items and returns a JSON string.
|
|
|
|
|
|
|
|
+If you want to overwrite the source field in the JSON string, you can set `window.EXCALIDRAW_EXPORT_SOURCE_PATH` to the desired value.
|
|
|
|
+
|
|
#### `getSceneVersion`
|
|
#### `getSceneVersion`
|
|
|
|
|
|
**How to use**
|
|
**How to use**
|