@dwelle/excalidraw 0.4.0-b411b92 → 0.4.0-b89fa18
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 -1
- package/README.md +4 -0
- package/dist/excalidraw.development.js +458 -129
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +45 -15
- package/types/actions/actionAlign.d.ts +12 -6
- package/types/actions/actionBoundText.d.ts +28 -7
- package/types/actions/actionCanvas.d.ts +286 -51
- package/types/actions/actionClipboard.d.ts +72 -22
- package/types/actions/actionDeleteSelected.d.ts +42 -12
- package/types/actions/actionDistribute.d.ts +2 -2
- package/types/actions/actionElementLock.d.ts +28 -7
- package/types/actions/actionExport.d.ts +136 -46
- package/types/actions/actionFinalize.d.ts +30 -10
- package/types/actions/actionFlip.d.ts +2 -4
- package/types/actions/actionFrame.d.ts +412 -0
- package/types/actions/actionGroup.d.ts +2 -2
- package/types/actions/actionLinearEditor.d.ts +15 -5
- package/types/actions/actionMenu.d.ts +46 -17
- package/types/actions/actionNavigate.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +195 -65
- package/types/actions/actionStyles.d.ts +15 -5
- package/types/actions/actionToggleGridMode.d.ts +15 -5
- package/types/actions/actionToggleStats.d.ts +15 -5
- package/types/actions/actionToggleViewMode.d.ts +15 -5
- package/types/actions/actionToggleZenMode.d.ts +15 -5
- package/types/actions/actionZindex.d.ts +4 -4
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +5 -5
- package/types/clients.d.ts +1 -5
- package/types/colors.d.ts +1 -0
- package/types/components/ActiveConfirmDialog.d.ts +1 -21
- package/types/components/App.d.ts +30 -7
- package/types/components/Avatar.d.ts +0 -1
- package/types/components/ColorPicker/ColorInput.d.ts +1 -1
- package/types/components/ColorPicker/ColorPicker.d.ts +3 -2
- package/types/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/components/ColorPicker/Picker.d.ts +4 -2
- package/types/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/types/components/ColorPicker/ShadeList.d.ts +1 -1
- package/types/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/components/ColorPicker/colorPickerUtils.d.ts +4 -24
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +8 -3
- package/types/components/Dialog.d.ts +3 -4
- package/types/components/EyeDropper.d.ts +18 -0
- package/types/components/FilledButton.d.ts +17 -0
- package/types/components/ImageExportDialog.d.ts +3 -4
- package/types/components/LibraryMenu.d.ts +3 -23
- package/types/components/LibraryMenuItems.d.ts +4 -5
- package/types/components/LibraryMenuSection.d.ts +22 -0
- package/types/components/LibraryUnit.d.ts +7 -3
- package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -0
- package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -0
- package/types/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -0
- package/types/components/ProjectName.d.ts +1 -0
- package/types/components/RadioGroup.d.ts +12 -0
- package/types/components/Sidebar/Sidebar.d.ts +1 -21
- package/types/components/Spinner.d.ts +2 -1
- package/types/components/Stack.d.ts +3 -2
- package/types/components/Switch.d.ts +9 -0
- package/types/components/ToolButton.d.ts +2 -1
- package/types/components/dropdownMenu/DropdownMenu.d.ts +3 -2
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +4 -2
- package/types/components/icons.d.ts +10 -0
- package/types/components/main-menu/MainMenu.d.ts +3 -2
- package/types/constants.d.ts +14 -0
- package/types/context/tunnels.d.ts +1 -0
- package/types/data/library.d.ts +3 -45
- package/types/data/url.d.ts +2 -0
- package/types/element/Hyperlink.d.ts +15 -7
- package/types/element/binding.d.ts +1 -1
- package/types/element/bounds.d.ts +31 -6
- package/types/element/collision.d.ts +7 -7
- package/types/element/dragElements.d.ts +2 -1
- package/types/element/index.d.ts +3 -2
- package/types/element/linearElementEditor.d.ts +16 -6
- package/types/element/newElement.d.ts +4 -2
- package/types/element/resizeElements.d.ts +1 -0
- package/types/element/transformHandles.d.ts +7 -0
- package/types/element/typeChecks.d.ts +2 -1
- package/types/element/types.d.ts +8 -3
- package/types/frame.d.ts +40 -0
- package/types/groups.d.ts +5 -1
- package/types/history.d.ts +3 -3
- package/types/hooks/useCreatePortalContainer.d.ts +4 -0
- package/types/hooks/useLibraryItemSvg.d.ts +11 -0
- package/types/hooks/useOutsideClick.d.ts +19 -1
- package/types/hooks/useScrollPosition.d.ts +2 -0
- package/types/hooks/useTransition.d.ts +2 -0
- package/types/jotai.d.ts +16 -104
- package/types/keys.d.ts +2 -0
- package/types/math.d.ts +1 -0
- package/types/packages/excalidraw/example/initialData.d.ts +6 -0
- package/types/packages/excalidraw/index.d.ts +2 -1
- package/types/renderer/renderElement.d.ts +2 -1
- package/types/renderer/renderScene.d.ts +12 -3
- package/types/renderer/roundRect.d.ts +1 -1
- package/types/scene/Scene.d.ts +8 -1
- package/types/scene/export.d.ts +1 -0
- package/types/scene/selection.d.ts +24 -4
- package/types/types.d.ts +40 -9
- package/types/utils.d.ts +46 -16
- package/types/zindex.d.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,8 @@ Please add the latest change on the top under the correct section.
|
|
|
15
15
|
|
|
16
16
|
### Features
|
|
17
17
|
|
|
18
|
+
- Add support for `opts.fitToViewport` and `opts.viewportZoomFactor` in the [`ExcalidrawAPI.scrollToContent`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/ref#scrolltocontent) API. [#6581](https://github.com/excalidraw/excalidraw/pull/6581).
|
|
19
|
+
- Properly sanitize element `link` urls. [#6728](https://github.com/excalidraw/excalidraw/pull/6728).
|
|
18
20
|
- Sidebar component now supports tabs — for more detailed description of new behavior and breaking changes, see the linked PR. [#6213](https://github.com/excalidraw/excalidraw/pull/6213)
|
|
19
21
|
- Exposed `DefaultSidebar` component to allow modifying the default sidebar, such as adding custom tabs to it. [#6213](https://github.com/excalidraw/excalidraw/pull/6213)
|
|
20
22
|
|
|
@@ -63,7 +65,7 @@ Please add the latest change on the top under the correct section.
|
|
|
63
65
|
|
|
64
66
|
### Features
|
|
65
67
|
|
|
66
|
-
- [`ExcalidrawAPI.
|
|
68
|
+
- [`ExcalidrawAPI.scrollToContent`](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/ref#scrolltocontent) has new opts object allowing you to fit viewport to content, and animate the scrolling. [#6319](https://github.com/excalidraw/excalidraw/pull/6319)
|
|
67
69
|
|
|
68
70
|
- Expose `useI18n()` hook return an object containing `t()` i18n helper and current `langCode`. You can use this in components you render as `<Excalidraw>` children to render any of our i18n locale strings. [#6224](https://github.com/excalidraw/excalidraw/pull/6224)
|
|
69
71
|
|
package/README.md
CHANGED
|
@@ -43,3 +43,7 @@ Head over to the [docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/
|
|
|
43
43
|
## API
|
|
44
44
|
|
|
45
45
|
Head over to the [docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api)
|
|
46
|
+
|
|
47
|
+
## Contributing
|
|
48
|
+
|
|
49
|
+
Head over to the [docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/contributing)
|