@dwelle/excalidraw 0.3.60 → 0.3.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README_NEXT.md +4 -0
- package/dist/excalidraw.development.js +16 -27
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +3 -3
- package/types/constants.d.ts +2 -0
- package/types/data/filesystem.d.ts +1 -1
- package/types/packages/excalidraw/entry.d.ts +0 -2
- package/types/packages/excalidraw/index.d.ts +2 -3
- package/types/utils.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -17,11 +17,13 @@ Please add the latest change on the top under the correct section.
|
|
|
17
17
|
|
|
18
18
|
#### Features
|
|
19
19
|
|
|
20
|
+
- Expose `window.EXCALIDRAW_EXPORT_SOURCE` which you can use to overwrite the `source` field in exported data [#5095](https://github.com/excalidraw/excalidraw/pull/5095).
|
|
20
21
|
- The `exportToBlob` utility now supports the `exportEmbedScene` option when generating a png image [#5047](https://github.com/excalidraw/excalidraw/pull/5047).
|
|
21
22
|
- Exported [`restoreLibraryItems`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#restoreLibraryItems) API [#4995](https://github.com/excalidraw/excalidraw/pull/4995).
|
|
22
23
|
|
|
23
24
|
#### Fixes
|
|
24
25
|
|
|
26
|
+
- Use `window.EXCALIDRAW_ASSET_PATH` for fonts when exporting to svg [#5065](https://github.com/excalidraw/excalidraw/pull/5065).
|
|
25
27
|
- Library menu now properly rerenders if open when library is updated using `updateScene({ libraryItems })` [#4995](https://github.com/excalidraw/excalidraw/pull/4995).
|
|
26
28
|
|
|
27
29
|
#### Refactor
|
package/README_NEXT.md
CHANGED
|
@@ -924,6 +924,8 @@ serializeAsJSON({
|
|
|
924
924
|
|
|
925
925
|
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).
|
|
926
926
|
|
|
927
|
+
If you want to overwrite the source field in the JSON string, you can set `window.EXCALIDRAW_EXPORT_SOURCE` to the desired value.
|
|
928
|
+
|
|
927
929
|
#### `serializeLibraryAsJSON`
|
|
928
930
|
|
|
929
931
|
**_Signature_**
|
|
@@ -935,6 +937,8 @@ serializeLibraryAsJSON({
|
|
|
935
937
|
|
|
936
938
|
Takes the library items and returns a JSON string.
|
|
937
939
|
|
|
940
|
+
If you want to overwrite the source field in the JSON string, you can set `window.EXCALIDRAW_EXPORT_SOURCE` to the desired value.
|
|
941
|
+
|
|
938
942
|
#### `getSceneVersion`
|
|
939
943
|
|
|
940
944
|
**How to use**
|