@dwelle/excalidraw 0.3.33 → 0.3.37
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 +5 -0
- package/README_NEXT.md +19 -0
- package/dist/excalidraw-assets-dev/{image-f696fa36e3535df5e97a.js → image-8825d180ee32659f8996.js} +0 -0
- package/dist/excalidraw.development.js +30 -30
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +16 -13
- package/types/actions/actionAddToLibrary.d.ts +268 -1
- package/types/actions/actionAlign.d.ts +73 -6
- package/types/actions/actionCanvas.d.ts +673 -8
- package/types/actions/actionClipboard.d.ts +493 -4
- package/types/actions/actionDeleteSelected.d.ts +292 -1
- package/types/actions/actionDistribute.d.ts +27 -2
- package/types/actions/actionDuplicateSelection.d.ts +19 -1
- package/types/actions/actionExport.d.ts +849 -8
- package/types/actions/actionFinalize.d.ts +186 -1
- package/types/actions/actionFlip.d.ts +29 -2
- package/types/actions/actionGroup.d.ts +39 -2
- package/types/actions/actionMenu.d.ts +293 -4
- package/types/actions/actionNavigate.d.ts +11 -1
- package/types/actions/actionProperties.d.ts +1160 -12
- package/types/actions/actionSelectAll.d.ts +12 -1
- package/types/actions/actionStyles.d.ts +110 -2
- package/types/actions/actionToggleGridMode.d.ts +98 -1
- package/types/actions/actionToggleStats.d.ts +97 -1
- package/types/actions/actionToggleViewMode.d.ts +97 -1
- package/types/actions/actionToggleZenMode.d.ts +97 -1
- package/types/actions/actionZindex.d.ts +55 -4
- package/types/actions/register.d.ts +3 -1
- package/types/actions/types.d.ts +2 -2
- package/types/components/App.d.ts +1 -0
- package/types/components/ContextMenu.d.ts +3 -0
- package/types/components/Popover.d.ts +5 -1
- package/types/constants.d.ts +1 -4
- package/types/element/newElement.d.ts +1 -1
- package/types/element/textElement.d.ts +7 -4
- package/types/element/textWysiwyg.d.ts +5 -3
- package/types/keys.d.ts +4 -0
- package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-8825d180ee32659f8996.d.ts +0 -0
- package/types/packages/excalidraw/example/App.d.ts +1 -0
- package/types/packages/excalidraw/example/index.d.ts +1 -0
- package/types/packages/excalidraw/example/initialData.d.ts +138 -0
- package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +1 -0
- package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -0
- package/types/scene/comparisons.d.ts +1 -1
- package/types/shapes.d.ts +1 -1
- package/types/types.d.ts +2 -0
- package/types/utils.d.ts +1 -0
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,10 +68,13 @@ Please add the latest change on the top under the correct section.
|
|
|
66
68
|
|
|
67
69
|
### Fixes
|
|
68
70
|
|
|
71
|
+
- 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).
|
|
69
72
|
- Scope drag and drop events to Excalidraw container to prevent overriding host application drag and drop events.
|
|
70
73
|
|
|
71
74
|
### Build
|
|
72
75
|
|
|
76
|
+
- Added an example to test and develop the package [locally](https://github.com/excalidraw/excalidraw/blob/master/src/packages/excalidraw/README.md#Development) using `yarn start`
|
|
77
|
+
|
|
73
78
|
- Remove `file-loader` so font assets are not duplicated by webpack and use webpack asset modules for font generation [#4380](https://github.com/excalidraw/excalidraw/pull/4380)
|
|
74
79
|
|
|
75
80
|
- We're now compiling to `es2017` target. Notably, `async/await` is not compiled down to generators. [#4341](https://github.com/excalidraw/excalidraw/pull/4341)
|
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
|
|
|
@@ -1008,3 +1009,21 @@ Defaults to `THEME.LIGHT` unless passed in `initialData.appState.theme`
|
|
|
1008
1009
|
## Need help?
|
|
1009
1010
|
|
|
1010
1011
|
Check out the existing [Q&A](https://github.com/excalidraw/excalidraw/discussions?discussions_q=label%3Apackage%3Aexcalidraw). If you have any queries or need help, ask us [here](https://github.com/excalidraw/excalidraw/discussions?discussions_q=label%3Apackage%3Aexcalidraw).
|
|
1012
|
+
|
|
1013
|
+
### Development
|
|
1014
|
+
|
|
1015
|
+
#### Install the dependencies
|
|
1016
|
+
|
|
1017
|
+
```bash
|
|
1018
|
+
yarn
|
|
1019
|
+
```
|
|
1020
|
+
|
|
1021
|
+
#### Start the server
|
|
1022
|
+
|
|
1023
|
+
```bash
|
|
1024
|
+
yarn start
|
|
1025
|
+
```
|
|
1026
|
+
|
|
1027
|
+
[http://localhost:3001](http://localhost:3001) will open in your default browser.
|
|
1028
|
+
|
|
1029
|
+
The example is same as the [codesandbox example](https://ehlz3.csb.app/)
|
package/dist/excalidraw-assets-dev/{image-f696fa36e3535df5e97a.js → image-8825d180ee32659f8996.js}
RENAMED
|
File without changes
|