@dwelle/excalidraw 0.3.35 → 0.3.39
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 +3 -0
- package/README_NEXT.md +1 -0
- package/dist/excalidraw-assets-dev/{image-f696fa36e3535df5e97a.js → image-8825d180ee32659f8996.js} +0 -0
- package/dist/excalidraw.development.js +58 -36
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +7 -7
- package/types/actions/actionAddToLibrary.d.ts +262 -1
- package/types/actions/actionAlign.d.ts +73 -6
- package/types/actions/actionCanvas.d.ts +659 -8
- package/types/actions/actionClipboard.d.ts +483 -4
- package/types/actions/actionDeleteSelected.d.ts +286 -1
- package/types/actions/actionDistribute.d.ts +27 -2
- package/types/actions/actionDuplicateSelection.d.ts +19 -1
- package/types/actions/actionExport.d.ts +831 -8
- package/types/actions/actionFinalize.d.ts +182 -1
- package/types/actions/actionFlip.d.ts +29 -2
- package/types/actions/actionGroup.d.ts +39 -2
- package/types/actions/actionMenu.d.ts +287 -4
- package/types/actions/actionNavigate.d.ts +11 -1
- package/types/actions/actionProperties.d.ts +1136 -12
- package/types/actions/actionSelectAll.d.ts +12 -1
- package/types/actions/actionStyles.d.ts +108 -2
- package/types/actions/actionToggleGridMode.d.ts +96 -1
- package/types/actions/actionToggleStats.d.ts +95 -1
- package/types/actions/actionToggleViewMode.d.ts +95 -1
- package/types/actions/actionToggleZenMode.d.ts +95 -1
- package/types/actions/actionUnbindText.d.ts +11 -0
- package/types/actions/actionZindex.d.ts +55 -4
- package/types/actions/index.d.ts +1 -0
- package/types/actions/register.d.ts +3 -1
- package/types/actions/types.d.ts +2 -2
- package/types/appState.d.ts +0 -4
- package/types/components/App.d.ts +2 -0
- package/types/components/ContextMenu.d.ts +3 -0
- package/types/components/LayerUI.d.ts +2 -1
- package/types/components/MobileMenu.d.ts +2 -1
- package/types/components/PenModeButton.d.ts +13 -0
- package/types/components/Popover.d.ts +5 -1
- package/types/constants.d.ts +0 -3
- package/types/element/linearElementEditor.d.ts +3 -6
- package/types/element/newElement.d.ts +1 -1
- package/types/element/textElement.d.ts +3 -0
- package/types/element/textWysiwyg.d.ts +5 -5
- package/types/keys.d.ts +4 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-8825d180ee32659f8996.d.ts +0 -0
- package/types/scene/index.d.ts +1 -1
- package/types/scene/zoom.d.ts +12 -5
- package/types/shapes.d.ts +1 -1
- package/types/types.d.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,8 @@ Please add the latest change on the top under the correct section.
|
|
|
19
19
|
|
|
20
20
|
### Features
|
|
21
21
|
|
|
22
|
+
- Support updating library using [`updateScene`](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#updateScene) API [#4546](https://github.com/excalidraw/excalidraw/pull/4546).
|
|
23
|
+
|
|
22
24
|
- Introduced primary colors to the app. The colors can be overriden. Check [readme](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#customizing-styles) on how to do so.
|
|
23
25
|
|
|
24
26
|
- #### BREAKING CHANGE
|
|
@@ -66,6 +68,7 @@ Please add the latest change on the top under the correct section.
|
|
|
66
68
|
|
|
67
69
|
### Fixes
|
|
68
70
|
|
|
71
|
+
- Reset `unmounted` state on the component once component mounts to fix the mounting/unmounting repeatedly when used with `useEffect` [#4682](https://github.com/excalidraw/excalidraw/pull/4682).
|
|
69
72
|
- Panning the canvas using `mousewheel-drag` and `space-drag` now prevents the browser from scrolling the container/page [#4489](https://github.com/excalidraw/excalidraw/pull/4489).
|
|
70
73
|
- Scope drag and drop events to Excalidraw container to prevent overriding host application drag and drop events.
|
|
71
74
|
|
package/README_NEXT.md
CHANGED
|
@@ -509,6 +509,7 @@ You can use this function to update the scene with the sceneData. It accepts the
|
|
|
509
509
|
| `appState` | [`ImportedDataState["appState"]`](https://github.com/excalidraw/excalidraw/blob/master/src/data/types.ts#L18) | The `appState` to be updated in the scene. |
|
|
510
510
|
| `collaborators` | <pre>Map<string, <a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L29">Collaborator></a></pre> | The list of collaborators to be updated in the scene. |
|
|
511
511
|
| `commitToHistory` | `boolean` | Implies if the `history (undo/redo)` should be recorded. Defaults to `false`. |
|
|
512
|
+
| `libraryItems` | [LibraryItems](https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L258) | The `libraryItems` to be update in the scene. |
|
|
512
513
|
|
|
513
514
|
### `addFiles`
|
|
514
515
|
|
package/dist/excalidraw-assets-dev/{image-f696fa36e3535df5e97a.js → image-8825d180ee32659f8996.js}
RENAMED
|
File without changes
|