@dwelle/excalidraw 0.3.57 → 0.3.59
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 +1 -0
- package/README_NEXT.md +11 -0
- package/dist/excalidraw.development.js +38 -27
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionCanvas.d.ts +2 -2
- package/types/actions/actionClipboard.d.ts +13 -0
- package/types/actions/actionFinalize.d.ts +2 -2
- package/types/actions/actionToggleLock.d.ts +17 -0
- package/types/actions/index.d.ts +2 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/clipboard.d.ts +1 -1
- package/types/data/index.d.ts +1 -1
- package/types/data/json.d.ts +1 -0
- package/types/element/typeChecks.d.ts +3 -3
- package/types/element/types.d.ts +1 -0
- package/types/packages/excalidraw/index.d.ts +1 -1
- package/types/packages/utils.d.ts +1 -1
- package/types/utils.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,7 @@ Please add the latest change on the top under the correct section.
|
|
|
18
18
|
#### Refactor
|
|
19
19
|
|
|
20
20
|
- Rename `appState.elementLocked` to `appState.activeTool.locked` [#4983](https://github.com/excalidraw/excalidraw/pull/4983).
|
|
21
|
+
- Expose [`serializeLibraryAsJSON`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#serializeLibraryAsJSON) helper that we use when saving Excalidraw Library to a file.
|
|
21
22
|
|
|
22
23
|
##### BREAKING CHANGE
|
|
23
24
|
|
package/README_NEXT.md
CHANGED
|
@@ -906,6 +906,17 @@ serializeAsJSON({
|
|
|
906
906
|
|
|
907
907
|
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).
|
|
908
908
|
|
|
909
|
+
#### `serializeLibraryAsJSON`
|
|
910
|
+
|
|
911
|
+
**_Signature_**
|
|
912
|
+
|
|
913
|
+
<pre>
|
|
914
|
+
serializeLibraryAsJSON({
|
|
915
|
+
libraryItems: <a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L191">LibraryItems[]</a>,
|
|
916
|
+
</pre>
|
|
917
|
+
|
|
918
|
+
Takes the library items and returns a JSON string.
|
|
919
|
+
|
|
909
920
|
#### `getSceneVersion`
|
|
910
921
|
|
|
911
922
|
**How to use**
|