@excalidraw/excalidraw 0.17.1-d9bbf1e → 0.17.1-e63dd02
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 +4 -0
- package/dist/browser/dev/excalidraw-assets-dev/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-XOM7LNOU.js → chunk-IT7T3AIK.js} +49 -8
- package/dist/browser/dev/excalidraw-assets-dev/chunk-IT7T3AIK.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-BLEB3M62.js → chunk-RNHSD5AR.js} +7668 -2142
- package/dist/browser/dev/excalidraw-assets-dev/chunk-RNHSD5AR.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{dist-ITJNUBZF.js → dist-DNSPZDOZ.js} +66 -32
- package/dist/browser/dev/excalidraw-assets-dev/dist-DNSPZDOZ.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{en-TR4QLF5E.js → en-XV7OZCPP.js} +8 -2
- package/dist/browser/dev/excalidraw-assets-dev/{image-ZGDDRBEN.js → image-77HZYGLG.js} +2 -2
- package/dist/browser/dev/excalidraw-assets-dev/{image-O66MQ7WQ.css → image-WDHYGKKP.css} +1 -1
- package/dist/browser/dev/excalidraw-assets-dev/{image-O66MQ7WQ.css.map → image-WDHYGKKP.css.map} +2 -2
- package/dist/browser/dev/index.css +610 -180
- package/dist/browser/dev/index.css.map +3 -3
- package/dist/browser/dev/index.js +13306 -8006
- package/dist/browser/dev/index.js.map +4 -4
- package/dist/browser/prod/excalidraw-assets/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/chunk-OYEADJSR.js +63 -0
- package/dist/browser/prod/excalidraw-assets/{chunk-5SYIAZGL.js → chunk-PDYFZJMS.js} +5 -5
- package/dist/browser/prod/excalidraw-assets/dist-NLUQPPQQ.js +7 -0
- package/dist/browser/prod/excalidraw-assets/en-YVAVVILW.js +1 -0
- package/dist/browser/prod/excalidraw-assets/image-X3GFZHNN.js +1 -0
- package/dist/browser/prod/index.css +1 -1
- package/dist/browser/prod/index.js +70 -51
- package/dist/dev/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/dev/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/dev/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/dev/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/dev/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/dev/{en-XW4JO6VX.json → en-YNVBSAIL.json} +42 -7
- package/dist/dev/index.css +610 -180
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +22165 -16833
- package/dist/dev/index.js.map +4 -4
- package/dist/excalidraw/actions/actionAddToLibrary.d.ts +24 -9
- package/dist/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/excalidraw/actions/actionBoundText.d.ts +20 -10
- package/dist/excalidraw/actions/actionBoundText.js +3 -1
- package/dist/excalidraw/actions/actionCanvas.d.ts +100 -40
- package/dist/excalidraw/actions/actionCanvas.js +1 -1
- package/dist/excalidraw/actions/actionClipboard.d.ts +62 -26
- package/dist/excalidraw/actions/actionDeleteSelected.d.ts +28 -12
- package/dist/excalidraw/actions/actionDeleteSelected.js +24 -5
- package/dist/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/excalidraw/actions/actionDuplicateSelection.d.ts +3 -3
- package/dist/excalidraw/actions/actionDuplicateSelection.js +1 -2
- package/dist/excalidraw/actions/actionElementLock.d.ts +17 -7
- package/dist/excalidraw/actions/actionExport.d.ts +75 -30
- package/dist/excalidraw/actions/actionFinalize.d.ts +17 -7
- package/dist/excalidraw/actions/actionFinalize.js +2 -2
- package/dist/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/excalidraw/actions/actionFlip.js +2 -2
- package/dist/excalidraw/actions/actionFrame.d.ts +338 -10
- package/dist/excalidraw/actions/actionGroup.d.ts +324 -4
- package/dist/excalidraw/actions/actionHistory.d.ts +3 -3
- package/dist/excalidraw/actions/actionHistory.js +8 -8
- package/dist/excalidraw/actions/actionLinearEditor.d.ts +12 -5
- package/dist/excalidraw/actions/actionLinearEditor.js +21 -5
- package/dist/excalidraw/actions/actionLink.d.ts +8 -3
- package/dist/excalidraw/actions/actionMenu.d.ts +24 -9
- package/dist/excalidraw/actions/actionNavigate.d.ts +17 -7
- package/dist/excalidraw/actions/actionProperties.d.ts +476 -82
- package/dist/excalidraw/actions/actionProperties.js +384 -59
- package/dist/excalidraw/actions/actionSelectAll.d.ts +9 -4
- package/dist/excalidraw/actions/actionStyles.d.ts +12 -4
- package/dist/excalidraw/actions/actionStyles.js +3 -2
- package/dist/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
- package/dist/excalidraw/actions/actionTextAutoResize.js +38 -0
- package/dist/excalidraw/actions/actionToggleGridMode.d.ts +9 -4
- package/dist/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +8 -3
- package/dist/excalidraw/actions/actionToggleStats.d.ts +9 -3
- package/dist/excalidraw/actions/actionToggleStats.js +4 -3
- package/dist/excalidraw/actions/actionToggleViewMode.d.ts +8 -3
- package/dist/excalidraw/actions/actionToggleZenMode.d.ts +8 -3
- package/dist/excalidraw/actions/actionZindex.d.ts +8 -4
- package/dist/excalidraw/actions/actionZindex.js +4 -0
- package/dist/excalidraw/actions/manager.d.ts +3 -3
- package/dist/excalidraw/actions/register.d.ts +1 -1
- package/dist/excalidraw/actions/shortcuts.d.ts +2 -2
- package/dist/excalidraw/actions/types.d.ts +6 -6
- package/dist/excalidraw/align.d.ts +1 -1
- package/dist/excalidraw/analytics.js +9 -7
- package/dist/excalidraw/animated-trail.d.ts +2 -2
- package/dist/excalidraw/appState.d.ts +6 -2
- package/dist/excalidraw/appState.js +14 -3
- package/dist/excalidraw/binaryheap.d.ts +12 -0
- package/dist/excalidraw/binaryheap.js +93 -0
- package/dist/excalidraw/change.d.ts +6 -5
- package/dist/excalidraw/change.js +20 -11
- package/dist/excalidraw/charts.d.ts +1 -1
- package/dist/excalidraw/charts.js +0 -10
- package/dist/excalidraw/clients.d.ts +2 -2
- package/dist/excalidraw/clients.js +1 -1
- package/dist/excalidraw/clipboard.d.ts +3 -3
- package/dist/excalidraw/colors.d.ts +1 -1
- package/dist/excalidraw/components/Actions.d.ts +3 -3
- package/dist/excalidraw/components/Actions.js +14 -9
- package/dist/excalidraw/components/App.d.ts +14 -17
- package/dist/excalidraw/components/App.js +356 -217
- package/dist/excalidraw/components/ButtonIcon.d.ts +15 -0
- package/dist/excalidraw/components/ButtonIcon.js +8 -0
- package/dist/excalidraw/components/ButtonIconSelect.js +2 -3
- package/dist/excalidraw/components/ButtonSeparator.d.ts +2 -0
- package/dist/excalidraw/components/ButtonSeparator.js +7 -0
- package/dist/excalidraw/components/CheckboxItem.js +1 -1
- package/dist/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/ColorInput.js +1 -1
- package/dist/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/dist/excalidraw/components/ColorPicker/ColorPicker.js +48 -80
- package/dist/excalidraw/components/ColorPicker/Picker.d.ts +3 -3
- package/dist/excalidraw/components/ColorPicker/Picker.js +1 -1
- package/dist/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/dist/excalidraw/components/ColorPicker/colorPickerUtils.js +1 -1
- package/dist/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
- package/dist/excalidraw/components/ColorPicker/keyboardNavHandlers.js +1 -1
- package/dist/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
- package/dist/excalidraw/components/CommandPalette/CommandPalette.js +5 -5
- package/dist/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -1
- package/dist/excalidraw/components/CommandPalette/types.d.ts +3 -3
- package/dist/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/dist/excalidraw/components/ContextMenu.d.ts +2 -2
- package/dist/excalidraw/components/ContextMenu.js +2 -2
- package/dist/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/dist/excalidraw/components/Dialog.js +1 -1
- package/dist/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/dist/excalidraw/components/EyeDropper.d.ts +2 -2
- package/dist/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/dist/excalidraw/components/FollowMode/FollowMode.js +1 -1
- package/dist/excalidraw/components/FontPicker/FontPicker.d.ts +21 -0
- package/dist/excalidraw/components/FontPicker/FontPicker.js +49 -0
- package/dist/excalidraw/components/FontPicker/FontPickerList.d.ts +25 -0
- package/dist/excalidraw/components/FontPicker/FontPickerList.js +119 -0
- package/dist/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +7 -0
- package/dist/excalidraw/components/FontPicker/FontPickerTrigger.js +13 -0
- package/dist/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +14 -0
- package/dist/excalidraw/components/FontPicker/keyboardNavHandlers.js +38 -0
- package/dist/excalidraw/components/HelpDialog.js +2 -2
- package/dist/excalidraw/components/HintViewer.d.ts +1 -1
- package/dist/excalidraw/components/HintViewer.js +6 -3
- package/dist/excalidraw/components/IconPicker.js +2 -2
- package/dist/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/dist/excalidraw/components/InitializeApp.d.ts +2 -2
- package/dist/excalidraw/components/JSONExportDialog.d.ts +3 -3
- package/dist/excalidraw/components/LayerUI.d.ts +4 -4
- package/dist/excalidraw/components/LayerUI.js +10 -7
- package/dist/excalidraw/components/LibraryMenu.d.ts +2 -2
- package/dist/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -1
- package/dist/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/excalidraw/components/LibraryMenuHeaderContent.d.ts +2 -2
- package/dist/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/dist/excalidraw/components/LibraryMenuSection.d.ts +5 -4
- package/dist/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/dist/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/excalidraw/components/MagicSettings.js +2 -2
- package/dist/excalidraw/components/MobileMenu.d.ts +3 -3
- package/dist/excalidraw/components/MobileMenu.js +2 -6
- package/dist/excalidraw/components/Modal.d.ts +1 -1
- package/dist/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/dist/excalidraw/components/PasteChartDialog.js +1 -1
- package/dist/excalidraw/components/PropertiesPopover.d.ts +15 -0
- package/dist/excalidraw/components/PropertiesPopover.js +31 -0
- package/dist/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/dist/excalidraw/components/QuickSearch.d.ts +9 -0
- package/dist/excalidraw/components/QuickSearch.js +8 -0
- package/dist/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/excalidraw/components/ScrollableList.d.ts +9 -0
- package/dist/excalidraw/components/ScrollableList.js +8 -0
- package/dist/excalidraw/components/Sidebar/Sidebar.js +1 -1
- package/dist/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/dist/excalidraw/components/Stats/Angle.d.ts +12 -0
- package/dist/excalidraw/components/Stats/Angle.js +53 -0
- package/dist/excalidraw/components/Stats/Collapsible.d.ts +9 -0
- package/dist/excalidraw/components/Stats/Collapsible.js +12 -0
- package/dist/excalidraw/components/Stats/Dimension.d.ts +12 -0
- package/dist/excalidraw/components/Stats/Dimension.js +68 -0
- package/dist/excalidraw/components/Stats/DragInput.d.ts +32 -0
- package/dist/excalidraw/components/Stats/DragInput.js +174 -0
- package/dist/excalidraw/components/Stats/FontSize.d.ts +12 -0
- package/dist/excalidraw/components/Stats/FontSize.js +50 -0
- package/dist/excalidraw/components/Stats/MultiAngle.d.ts +12 -0
- package/dist/excalidraw/components/Stats/MultiAngle.js +66 -0
- package/dist/excalidraw/components/Stats/MultiDimension.d.ts +15 -0
- package/dist/excalidraw/components/Stats/MultiDimension.js +199 -0
- package/dist/excalidraw/components/Stats/MultiFontSize.d.ts +13 -0
- package/dist/excalidraw/components/Stats/MultiFontSize.js +72 -0
- package/dist/excalidraw/components/Stats/MultiPosition.d.ts +15 -0
- package/dist/excalidraw/components/Stats/MultiPosition.js +101 -0
- package/dist/excalidraw/components/Stats/Position.d.ts +13 -0
- package/dist/excalidraw/components/Stats/Position.js +40 -0
- package/dist/excalidraw/components/Stats/index.d.ts +16 -0
- package/dist/excalidraw/components/Stats/index.js +79 -0
- package/dist/excalidraw/components/Stats/utils.d.ts +26 -0
- package/dist/excalidraw/components/Stats/utils.js +162 -0
- package/dist/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialog.js +2 -2
- package/dist/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/common.d.ts +5 -5
- package/dist/excalidraw/components/TTDDialog/common.js +3 -7
- package/dist/excalidraw/components/TextField.d.ts +1 -1
- package/dist/excalidraw/components/Toast.d.ts +1 -1
- package/dist/excalidraw/components/ToolButton.d.ts +3 -2
- package/dist/excalidraw/components/Trans.d.ts +1 -1
- package/dist/excalidraw/components/UserList.d.ts +1 -1
- package/dist/excalidraw/components/UserList.js +22 -22
- package/dist/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/dist/excalidraw/components/canvases/InteractiveCanvas.js +4 -2
- package/dist/excalidraw/components/canvases/StaticCanvas.d.ts +2 -2
- package/dist/excalidraw/components/canvases/StaticCanvas.js +3 -2
- package/dist/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +12 -3
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +24 -4
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItem.js +55 -14
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItemContent.js +2 -2
- package/dist/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/excalidraw/components/dropdownMenu/common.js +3 -2
- package/dist/excalidraw/components/footer/Footer.d.ts +2 -2
- package/dist/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/dist/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/dist/excalidraw/components/icons.d.ts +10 -2
- package/dist/excalidraw/components/icons.js +29 -6
- package/dist/excalidraw/components/main-menu/MainMenu.d.ts +12 -3
- package/dist/excalidraw/components/welcome-screen/WelcomeScreen.Center.js +2 -2
- package/dist/excalidraw/components/welcome-screen/WelcomeScreen.Hints.js +3 -3
- package/dist/excalidraw/constants.d.ts +24 -3
- package/dist/excalidraw/constants.js +28 -4
- package/dist/excalidraw/context/ui-appState.d.ts +1 -1
- package/dist/excalidraw/cursor.d.ts +1 -1
- package/dist/excalidraw/data/EditorLocalStorage.d.ts +2 -2
- package/dist/excalidraw/data/blob.d.ts +5 -5
- package/dist/excalidraw/data/filesystem.d.ts +2 -1
- package/dist/excalidraw/data/index.d.ts +4 -4
- package/dist/excalidraw/data/json.d.ts +3 -3
- package/dist/excalidraw/data/library.d.ts +3 -3
- package/dist/excalidraw/data/magic.d.ts +3 -3
- package/dist/excalidraw/data/reconcile.d.ts +3 -3
- package/dist/excalidraw/data/reconcile.js +18 -1
- package/dist/excalidraw/data/resave.d.ts +2 -2
- package/dist/excalidraw/data/restore.d.ts +3 -3
- package/dist/excalidraw/data/restore.js +58 -9
- package/dist/excalidraw/data/transform.d.ts +3 -3
- package/dist/excalidraw/data/transform.js +8 -5
- package/dist/excalidraw/data/types.d.ts +3 -3
- package/dist/excalidraw/element/ElementCanvasButtons.d.ts +1 -1
- package/dist/excalidraw/element/binding.d.ts +29 -10
- package/dist/excalidraw/element/binding.js +303 -71
- package/dist/excalidraw/element/bounds.d.ts +3 -3
- package/dist/excalidraw/element/collision.d.ts +4 -4
- package/dist/excalidraw/element/collision.js +5 -2
- package/dist/excalidraw/element/containerCache.d.ts +1 -1
- package/dist/excalidraw/element/dragElements.d.ts +6 -6
- package/dist/excalidraw/element/dragElements.js +39 -5
- package/dist/excalidraw/element/embeddable.d.ts +11 -6
- package/dist/excalidraw/element/heading.d.ts +11 -0
- package/dist/excalidraw/element/heading.js +81 -0
- package/dist/excalidraw/element/image.d.ts +2 -2
- package/dist/excalidraw/element/index.d.ts +2 -2
- package/dist/excalidraw/element/index.js +1 -1
- package/dist/excalidraw/element/linearElementEditor.d.ts +27 -16
- package/dist/excalidraw/element/linearElementEditor.js +133 -56
- package/dist/excalidraw/element/mutateElement.d.ts +3 -3
- package/dist/excalidraw/element/mutateElement.js +5 -3
- package/dist/excalidraw/element/newElement.d.ts +12 -10
- package/dist/excalidraw/element/newElement.js +31 -16
- package/dist/excalidraw/element/resizeElements.d.ts +15 -6
- package/dist/excalidraw/element/resizeElements.js +122 -46
- package/dist/excalidraw/element/resizeTest.d.ts +4 -4
- package/dist/excalidraw/element/resizeTest.js +2 -4
- package/dist/excalidraw/element/routing.d.ts +13 -0
- package/dist/excalidraw/element/routing.js +641 -0
- package/dist/excalidraw/element/showSelectedShapeActions.d.ts +2 -2
- package/dist/excalidraw/element/sizeHelpers.d.ts +2 -2
- package/dist/excalidraw/element/sortElements.d.ts +1 -1
- package/dist/excalidraw/element/textElement.d.ts +6 -28
- package/dist/excalidraw/element/textElement.js +64 -112
- package/dist/excalidraw/element/textWysiwyg.d.ts +12 -6
- package/dist/excalidraw/element/textWysiwyg.js +75 -62
- package/dist/excalidraw/element/transformHandles.d.ts +3 -3
- package/dist/excalidraw/element/transformHandles.js +7 -12
- package/dist/excalidraw/element/typeChecks.d.ts +7 -4
- package/dist/excalidraw/element/typeChecks.js +17 -0
- package/dist/excalidraw/element/types.d.ts +22 -4
- package/dist/excalidraw/emitter.d.ts +1 -1
- package/dist/excalidraw/fonts/ExcalidrawFont.d.ts +21 -0
- package/dist/excalidraw/fonts/ExcalidrawFont.js +112 -0
- package/dist/excalidraw/fonts/index.d.ts +58 -0
- package/dist/excalidraw/fonts/index.js +240 -0
- package/dist/excalidraw/fonts/metadata.d.ts +36 -0
- package/dist/excalidraw/fonts/metadata.js +91 -0
- package/dist/excalidraw/fractionalIndex.d.ts +12 -5
- package/dist/excalidraw/fractionalIndex.js +40 -10
- package/dist/excalidraw/frame.d.ts +4 -4
- package/dist/excalidraw/frame.js +3 -3
- package/dist/excalidraw/gatransforms.d.ts +1 -1
- package/dist/excalidraw/gesture.d.ts +1 -1
- package/dist/excalidraw/groups.d.ts +4 -4
- package/dist/excalidraw/history.d.ts +8 -7
- package/dist/excalidraw/history.js +8 -8
- package/dist/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/excalidraw/i18n.d.ts +1 -1
- package/dist/excalidraw/index.d.ts +2 -2
- package/dist/excalidraw/index.js +3 -3
- package/dist/excalidraw/jotai.d.ts +1 -1
- package/dist/excalidraw/laser-trails.d.ts +3 -2
- package/dist/excalidraw/locales/en.json +42 -7
- package/dist/excalidraw/math.d.ts +47 -2
- package/dist/excalidraw/math.js +116 -0
- package/dist/excalidraw/mermaid.d.ts +2 -0
- package/dist/excalidraw/mermaid.js +29 -0
- package/dist/excalidraw/points.d.ts +1 -1
- package/dist/excalidraw/queue.d.ts +1 -1
- package/dist/excalidraw/renderer/helpers.d.ts +2 -2
- package/dist/excalidraw/renderer/interactiveScene.d.ts +2 -2
- package/dist/excalidraw/renderer/interactiveScene.js +64 -22
- package/dist/excalidraw/renderer/renderElement.d.ts +6 -4
- package/dist/excalidraw/renderer/renderElement.js +78 -58
- package/dist/excalidraw/renderer/renderSnaps.d.ts +1 -1
- package/dist/excalidraw/renderer/staticScene.d.ts +1 -1
- package/dist/excalidraw/renderer/staticSvgScene.d.ts +4 -4
- package/dist/excalidraw/renderer/staticSvgScene.js +2 -1
- package/dist/excalidraw/scene/Renderer.d.ts +4 -4
- package/dist/excalidraw/scene/Renderer.js +2 -3
- package/dist/excalidraw/scene/Scene.d.ts +16 -7
- package/dist/excalidraw/scene/Scene.js +26 -11
- package/dist/excalidraw/scene/Shape.d.ts +1 -1
- package/dist/excalidraw/scene/Shape.js +56 -5
- package/dist/excalidraw/scene/ShapeCache.d.ts +4 -4
- package/dist/excalidraw/scene/comparisons.d.ts +3 -2
- package/dist/excalidraw/scene/comparisons.js +1 -1
- package/dist/excalidraw/scene/export.d.ts +4 -3
- package/dist/excalidraw/scene/export.js +34 -36
- package/dist/excalidraw/scene/scroll.d.ts +2 -2
- package/dist/excalidraw/scene/scrollbars.d.ts +3 -3
- package/dist/excalidraw/scene/selection.d.ts +2 -2
- package/dist/excalidraw/scene/types.d.ts +6 -8
- package/dist/excalidraw/scene/zoom.d.ts +1 -1
- package/dist/excalidraw/shapes.d.ts +8 -0
- package/dist/excalidraw/shapes.js +57 -0
- package/dist/excalidraw/snapping.d.ts +4 -4
- package/dist/excalidraw/snapping.js +2 -1
- package/dist/excalidraw/store.d.ts +34 -4
- package/dist/excalidraw/store.js +27 -0
- package/dist/excalidraw/types.d.ts +32 -21
- package/dist/excalidraw/utils.d.ts +15 -5
- package/dist/excalidraw/utils.js +22 -0
- package/dist/excalidraw/zindex.d.ts +2 -2
- package/dist/prod/CascadiaCode-Regular-TMZI7IJ5.woff2 +0 -0
- package/dist/prod/ComicShanns-Regular-6TOETDFT.woff2 +0 -0
- package/dist/prod/Excalifont-Regular-CPKEUDVM.woff2 +0 -0
- package/dist/prod/LiberationSans-Regular-ZQD73GJM.woff2 +0 -0
- package/dist/prod/Virgil-Regular-YHAB2VGJ.woff2 +0 -0
- package/dist/prod/{en-XW4JO6VX.json → en-YNVBSAIL.json} +42 -7
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +49 -53
- package/dist/utils/bbox.d.ts +2 -2
- package/dist/utils/collision.d.ts +1 -1
- package/dist/utils/export.d.ts +4 -3
- package/dist/utils/export.js +2 -1
- package/dist/utils/geometry/geometry.d.ts +3 -2
- package/dist/utils/geometry/geometry.js +5 -1
- package/dist/utils/geometry/shape.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/withinBounds.d.ts +1 -1
- package/history.ts +13 -6
- package/package.json +2 -2
- package/dist/browser/dev/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/browser/dev/Virgil-UZN6MUT6.woff2 +0 -0
- package/dist/browser/dev/excalidraw-assets-dev/chunk-BLEB3M62.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/chunk-XOM7LNOU.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/dist-ITJNUBZF.js.map +0 -7
- package/dist/browser/prod/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/browser/prod/Virgil-UZN6MUT6.woff2 +0 -0
- package/dist/browser/prod/excalidraw-assets/chunk-UWBW5SR2.js +0 -55
- package/dist/browser/prod/excalidraw-assets/dist-54276HPL.js +0 -6
- package/dist/browser/prod/excalidraw-assets/en-7GPZE2Y2.js +0 -1
- package/dist/browser/prod/excalidraw-assets/image-35KQQ5EN.js +0 -1
- package/dist/dev/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/dev/Virgil-UZN6MUT6.woff2 +0 -0
- package/dist/excalidraw/components/Stats.d.ts +0 -11
- package/dist/excalidraw/components/Stats.js +0 -13
- package/dist/excalidraw/scene/Fonts.d.ts +0 -21
- package/dist/excalidraw/scene/Fonts.js +0 -72
- package/dist/prod/Cascadia-CYPE3OJC.woff2 +0 -0
- package/dist/prod/Virgil-UZN6MUT6.woff2 +0 -0
- /package/dist/browser/dev/{Assistant-Bold-ZDZZ6JHA.woff2 → excalidraw-assets-dev/Assistant-Bold-ZDZZ6JHA.woff2} +0 -0
- /package/dist/browser/dev/{Assistant-Medium-DZ25RZU3.woff2 → excalidraw-assets-dev/Assistant-Medium-DZ25RZU3.woff2} +0 -0
- /package/dist/browser/dev/{Assistant-Regular-PLF2XOGW.woff2 → excalidraw-assets-dev/Assistant-Regular-PLF2XOGW.woff2} +0 -0
- /package/dist/browser/dev/{Assistant-SemiBold-CZ5MX6FK.woff2 → excalidraw-assets-dev/Assistant-SemiBold-CZ5MX6FK.woff2} +0 -0
- /package/dist/browser/dev/excalidraw-assets-dev/{en-TR4QLF5E.js.map → en-XV7OZCPP.js.map} +0 -0
- /package/dist/browser/dev/excalidraw-assets-dev/{image-ZGDDRBEN.js.map → image-77HZYGLG.js.map} +0 -0
- /package/dist/browser/prod/{Assistant-Bold-ZDZZ6JHA.woff2 → excalidraw-assets/Assistant-Bold-ZDZZ6JHA.woff2} +0 -0
- /package/dist/browser/prod/{Assistant-Medium-DZ25RZU3.woff2 → excalidraw-assets/Assistant-Medium-DZ25RZU3.woff2} +0 -0
- /package/dist/browser/prod/{Assistant-Regular-PLF2XOGW.woff2 → excalidraw-assets/Assistant-Regular-PLF2XOGW.woff2} +0 -0
- /package/dist/browser/prod/{Assistant-SemiBold-CZ5MX6FK.woff2 → excalidraw-assets/Assistant-SemiBold-CZ5MX6FK.woff2} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ExcalidrawElement } from "../element/types";
|
|
2
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
3
3
|
export declare const actionToggleElementLock: {
|
|
4
4
|
name: "toggleElementLock";
|
|
5
5
|
label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
|
|
@@ -64,7 +64,9 @@ export declare const actionToggleElementLock: {
|
|
|
64
64
|
currentItemTextAlign: string;
|
|
65
65
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
66
66
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
67
|
+
currentHoveredFontFamily: number | null;
|
|
67
68
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
69
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
68
70
|
viewBackgroundColor: string;
|
|
69
71
|
scrollX: number;
|
|
70
72
|
scrollY: number;
|
|
@@ -77,7 +79,7 @@ export declare const actionToggleElementLock: {
|
|
|
77
79
|
value: import("../types").NormalizedZoomValue;
|
|
78
80
|
}>;
|
|
79
81
|
openMenu: "canvas" | "shape" | null;
|
|
80
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
83
|
openSidebar: {
|
|
82
84
|
name: string;
|
|
83
85
|
tab?: string | undefined;
|
|
@@ -142,7 +144,10 @@ export declare const actionToggleElementLock: {
|
|
|
142
144
|
isSpeaking?: boolean | undefined;
|
|
143
145
|
isMuted?: boolean | undefined;
|
|
144
146
|
}>>;
|
|
145
|
-
|
|
147
|
+
stats: {
|
|
148
|
+
open: boolean;
|
|
149
|
+
panels: number;
|
|
150
|
+
};
|
|
146
151
|
currentChartType: import("../element/types").ChartType;
|
|
147
152
|
pasteDialog: {
|
|
148
153
|
shown: false;
|
|
@@ -162,7 +167,7 @@ export declare const actionToggleElementLock: {
|
|
|
162
167
|
userToFollow: import("../types").UserToFollow | null;
|
|
163
168
|
followedBy: Set<import("../types").SocketId>;
|
|
164
169
|
};
|
|
165
|
-
storeAction:
|
|
170
|
+
storeAction: "capture";
|
|
166
171
|
};
|
|
167
172
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
168
173
|
} & {
|
|
@@ -235,7 +240,9 @@ export declare const actionUnlockAllElements: {
|
|
|
235
240
|
currentItemTextAlign: string;
|
|
236
241
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
237
242
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
243
|
+
currentHoveredFontFamily: number | null;
|
|
238
244
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
245
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
239
246
|
viewBackgroundColor: string;
|
|
240
247
|
scrollX: number;
|
|
241
248
|
scrollY: number;
|
|
@@ -248,7 +255,7 @@ export declare const actionUnlockAllElements: {
|
|
|
248
255
|
value: import("../types").NormalizedZoomValue;
|
|
249
256
|
}>;
|
|
250
257
|
openMenu: "canvas" | "shape" | null;
|
|
251
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
258
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
252
259
|
openSidebar: {
|
|
253
260
|
name: string;
|
|
254
261
|
tab?: string | undefined;
|
|
@@ -310,7 +317,10 @@ export declare const actionUnlockAllElements: {
|
|
|
310
317
|
isSpeaking?: boolean | undefined;
|
|
311
318
|
isMuted?: boolean | undefined;
|
|
312
319
|
}>>;
|
|
313
|
-
|
|
320
|
+
stats: {
|
|
321
|
+
open: boolean;
|
|
322
|
+
panels: number;
|
|
323
|
+
};
|
|
314
324
|
currentChartType: import("../element/types").ChartType;
|
|
315
325
|
pasteDialog: {
|
|
316
326
|
shown: false;
|
|
@@ -331,7 +341,7 @@ export declare const actionUnlockAllElements: {
|
|
|
331
341
|
userToFollow: import("../types").UserToFollow | null;
|
|
332
342
|
followedBy: Set<import("../types").SocketId>;
|
|
333
343
|
};
|
|
334
|
-
storeAction:
|
|
344
|
+
storeAction: "capture";
|
|
335
345
|
};
|
|
336
346
|
label: string;
|
|
337
347
|
} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Theme } from "../element/types";
|
|
2
|
+
import type { Theme } from "../element/types";
|
|
3
3
|
import "../components/ToolIcon.scss";
|
|
4
4
|
export declare const actionChangeProjectName: {
|
|
5
5
|
name: "changeProjectName";
|
|
@@ -60,7 +60,9 @@ export declare const actionChangeProjectName: {
|
|
|
60
60
|
currentItemTextAlign: string;
|
|
61
61
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
62
62
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
63
|
+
currentHoveredFontFamily: number | null;
|
|
63
64
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
65
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
64
66
|
viewBackgroundColor: string;
|
|
65
67
|
scrollX: number;
|
|
66
68
|
scrollY: number;
|
|
@@ -72,7 +74,7 @@ export declare const actionChangeProjectName: {
|
|
|
72
74
|
value: import("../types").NormalizedZoomValue;
|
|
73
75
|
}>;
|
|
74
76
|
openMenu: "canvas" | "shape" | null;
|
|
75
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
77
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
76
78
|
openSidebar: {
|
|
77
79
|
name: string;
|
|
78
80
|
tab?: string | undefined;
|
|
@@ -137,7 +139,10 @@ export declare const actionChangeProjectName: {
|
|
|
137
139
|
isSpeaking?: boolean | undefined;
|
|
138
140
|
isMuted?: boolean | undefined;
|
|
139
141
|
}>>;
|
|
140
|
-
|
|
142
|
+
stats: {
|
|
143
|
+
open: boolean;
|
|
144
|
+
panels: number;
|
|
145
|
+
};
|
|
141
146
|
currentChartType: import("../element/types").ChartType;
|
|
142
147
|
pasteDialog: {
|
|
143
148
|
shown: false;
|
|
@@ -158,7 +163,7 @@ export declare const actionChangeProjectName: {
|
|
|
158
163
|
userToFollow: import("../types").UserToFollow | null;
|
|
159
164
|
followedBy: Set<import("../types").SocketId>;
|
|
160
165
|
};
|
|
161
|
-
storeAction:
|
|
166
|
+
storeAction: "none";
|
|
162
167
|
};
|
|
163
168
|
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
164
169
|
} & {
|
|
@@ -225,7 +230,9 @@ export declare const actionChangeExportScale: {
|
|
|
225
230
|
currentItemTextAlign: string;
|
|
226
231
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
227
232
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
233
|
+
currentHoveredFontFamily: number | null;
|
|
228
234
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
235
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
229
236
|
viewBackgroundColor: string;
|
|
230
237
|
scrollX: number;
|
|
231
238
|
scrollY: number;
|
|
@@ -238,7 +245,7 @@ export declare const actionChangeExportScale: {
|
|
|
238
245
|
value: import("../types").NormalizedZoomValue;
|
|
239
246
|
}>;
|
|
240
247
|
openMenu: "canvas" | "shape" | null;
|
|
241
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
248
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
242
249
|
openSidebar: {
|
|
243
250
|
name: string;
|
|
244
251
|
tab?: string | undefined;
|
|
@@ -303,7 +310,10 @@ export declare const actionChangeExportScale: {
|
|
|
303
310
|
isSpeaking?: boolean | undefined;
|
|
304
311
|
isMuted?: boolean | undefined;
|
|
305
312
|
}>>;
|
|
306
|
-
|
|
313
|
+
stats: {
|
|
314
|
+
open: boolean;
|
|
315
|
+
panels: number;
|
|
316
|
+
};
|
|
307
317
|
currentChartType: import("../element/types").ChartType;
|
|
308
318
|
pasteDialog: {
|
|
309
319
|
shown: false;
|
|
@@ -324,7 +334,7 @@ export declare const actionChangeExportScale: {
|
|
|
324
334
|
userToFollow: import("../types").UserToFollow | null;
|
|
325
335
|
followedBy: Set<import("../types").SocketId>;
|
|
326
336
|
};
|
|
327
|
-
storeAction:
|
|
337
|
+
storeAction: "none";
|
|
328
338
|
};
|
|
329
339
|
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
330
340
|
} & {
|
|
@@ -391,7 +401,9 @@ export declare const actionChangeExportBackground: {
|
|
|
391
401
|
currentItemTextAlign: string;
|
|
392
402
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
393
403
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
404
|
+
currentHoveredFontFamily: number | null;
|
|
394
405
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
406
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
395
407
|
viewBackgroundColor: string;
|
|
396
408
|
scrollX: number;
|
|
397
409
|
scrollY: number;
|
|
@@ -404,7 +416,7 @@ export declare const actionChangeExportBackground: {
|
|
|
404
416
|
value: import("../types").NormalizedZoomValue;
|
|
405
417
|
}>;
|
|
406
418
|
openMenu: "canvas" | "shape" | null;
|
|
407
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
419
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
408
420
|
openSidebar: {
|
|
409
421
|
name: string;
|
|
410
422
|
tab?: string | undefined;
|
|
@@ -469,7 +481,10 @@ export declare const actionChangeExportBackground: {
|
|
|
469
481
|
isSpeaking?: boolean | undefined;
|
|
470
482
|
isMuted?: boolean | undefined;
|
|
471
483
|
}>>;
|
|
472
|
-
|
|
484
|
+
stats: {
|
|
485
|
+
open: boolean;
|
|
486
|
+
panels: number;
|
|
487
|
+
};
|
|
473
488
|
currentChartType: import("../element/types").ChartType;
|
|
474
489
|
pasteDialog: {
|
|
475
490
|
shown: false;
|
|
@@ -490,7 +505,7 @@ export declare const actionChangeExportBackground: {
|
|
|
490
505
|
userToFollow: import("../types").UserToFollow | null;
|
|
491
506
|
followedBy: Set<import("../types").SocketId>;
|
|
492
507
|
};
|
|
493
|
-
storeAction:
|
|
508
|
+
storeAction: "none";
|
|
494
509
|
};
|
|
495
510
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
496
511
|
} & {
|
|
@@ -557,7 +572,9 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
557
572
|
currentItemTextAlign: string;
|
|
558
573
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
559
574
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
575
|
+
currentHoveredFontFamily: number | null;
|
|
560
576
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
577
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
561
578
|
viewBackgroundColor: string;
|
|
562
579
|
scrollX: number;
|
|
563
580
|
scrollY: number;
|
|
@@ -570,7 +587,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
570
587
|
value: import("../types").NormalizedZoomValue;
|
|
571
588
|
}>;
|
|
572
589
|
openMenu: "canvas" | "shape" | null;
|
|
573
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
590
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
574
591
|
openSidebar: {
|
|
575
592
|
name: string;
|
|
576
593
|
tab?: string | undefined;
|
|
@@ -635,7 +652,10 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
635
652
|
isSpeaking?: boolean | undefined;
|
|
636
653
|
isMuted?: boolean | undefined;
|
|
637
654
|
}>>;
|
|
638
|
-
|
|
655
|
+
stats: {
|
|
656
|
+
open: boolean;
|
|
657
|
+
panels: number;
|
|
658
|
+
};
|
|
639
659
|
currentChartType: import("../element/types").ChartType;
|
|
640
660
|
pasteDialog: {
|
|
641
661
|
shown: false;
|
|
@@ -656,7 +676,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
656
676
|
userToFollow: import("../types").UserToFollow | null;
|
|
657
677
|
followedBy: Set<import("../types").SocketId>;
|
|
658
678
|
};
|
|
659
|
-
storeAction:
|
|
679
|
+
storeAction: "none";
|
|
660
680
|
};
|
|
661
681
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
662
682
|
} & {
|
|
@@ -671,7 +691,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
671
691
|
};
|
|
672
692
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
673
693
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
674
|
-
storeAction:
|
|
694
|
+
storeAction: "none";
|
|
675
695
|
appState: {
|
|
676
696
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
677
697
|
toast: {
|
|
@@ -729,7 +749,9 @@ export declare const actionSaveToActiveFile: {
|
|
|
729
749
|
currentItemTextAlign: string;
|
|
730
750
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
731
751
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
752
|
+
currentHoveredFontFamily: number | null;
|
|
732
753
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
754
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
733
755
|
viewBackgroundColor: string;
|
|
734
756
|
scrollX: number;
|
|
735
757
|
scrollY: number;
|
|
@@ -742,7 +764,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
742
764
|
value: import("../types").NormalizedZoomValue;
|
|
743
765
|
}>;
|
|
744
766
|
openMenu: "canvas" | "shape" | null;
|
|
745
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
767
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
746
768
|
openSidebar: {
|
|
747
769
|
name: string;
|
|
748
770
|
tab?: string | undefined;
|
|
@@ -801,7 +823,10 @@ export declare const actionSaveToActiveFile: {
|
|
|
801
823
|
isSpeaking?: boolean | undefined;
|
|
802
824
|
isMuted?: boolean | undefined;
|
|
803
825
|
}>>;
|
|
804
|
-
|
|
826
|
+
stats: {
|
|
827
|
+
open: boolean;
|
|
828
|
+
panels: number;
|
|
829
|
+
};
|
|
805
830
|
currentChartType: import("../element/types").ChartType;
|
|
806
831
|
pasteDialog: {
|
|
807
832
|
shown: false;
|
|
@@ -823,7 +848,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
823
848
|
followedBy: Set<import("../types").SocketId>;
|
|
824
849
|
};
|
|
825
850
|
} | {
|
|
826
|
-
storeAction:
|
|
851
|
+
storeAction: "none";
|
|
827
852
|
appState?: undefined;
|
|
828
853
|
}>;
|
|
829
854
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -839,7 +864,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
839
864
|
category: "export";
|
|
840
865
|
};
|
|
841
866
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
842
|
-
storeAction:
|
|
867
|
+
storeAction: "none";
|
|
843
868
|
appState: {
|
|
844
869
|
openDialog: null;
|
|
845
870
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -898,7 +923,9 @@ export declare const actionSaveFileToDisk: {
|
|
|
898
923
|
currentItemTextAlign: string;
|
|
899
924
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
900
925
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
926
|
+
currentHoveredFontFamily: number | null;
|
|
901
927
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
928
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
902
929
|
viewBackgroundColor: string;
|
|
903
930
|
scrollX: number;
|
|
904
931
|
scrollY: number;
|
|
@@ -911,7 +938,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
911
938
|
value: import("../types").NormalizedZoomValue;
|
|
912
939
|
}>;
|
|
913
940
|
openMenu: "canvas" | "shape" | null;
|
|
914
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
941
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
915
942
|
openSidebar: {
|
|
916
943
|
name: string;
|
|
917
944
|
tab?: string | undefined;
|
|
@@ -958,7 +985,10 @@ export declare const actionSaveFileToDisk: {
|
|
|
958
985
|
isSpeaking?: boolean | undefined;
|
|
959
986
|
isMuted?: boolean | undefined;
|
|
960
987
|
}>>;
|
|
961
|
-
|
|
988
|
+
stats: {
|
|
989
|
+
open: boolean;
|
|
990
|
+
panels: number;
|
|
991
|
+
};
|
|
962
992
|
currentChartType: import("../element/types").ChartType;
|
|
963
993
|
pasteDialog: {
|
|
964
994
|
shown: false;
|
|
@@ -980,7 +1010,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
980
1010
|
followedBy: Set<import("../types").SocketId>;
|
|
981
1011
|
};
|
|
982
1012
|
} | {
|
|
983
|
-
storeAction:
|
|
1013
|
+
storeAction: "none";
|
|
984
1014
|
appState?: undefined;
|
|
985
1015
|
}>;
|
|
986
1016
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -1003,6 +1033,7 @@ export declare const actionLoadScene: {
|
|
|
1003
1033
|
objectsSnapModeEnabled: boolean;
|
|
1004
1034
|
theme: Theme;
|
|
1005
1035
|
name: string | null;
|
|
1036
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1006
1037
|
contextMenu: {
|
|
1007
1038
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1008
1039
|
top: number;
|
|
@@ -1055,6 +1086,7 @@ export declare const actionLoadScene: {
|
|
|
1055
1086
|
currentItemTextAlign: string;
|
|
1056
1087
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1057
1088
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1089
|
+
currentHoveredFontFamily: number | null;
|
|
1058
1090
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1059
1091
|
viewBackgroundColor: string;
|
|
1060
1092
|
scrollX: number;
|
|
@@ -1067,7 +1099,7 @@ export declare const actionLoadScene: {
|
|
|
1067
1099
|
value: import("../types").NormalizedZoomValue;
|
|
1068
1100
|
}>;
|
|
1069
1101
|
openMenu: "canvas" | "shape" | null;
|
|
1070
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1102
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1071
1103
|
openSidebar: {
|
|
1072
1104
|
name: string;
|
|
1073
1105
|
tab?: string | undefined;
|
|
@@ -1125,7 +1157,10 @@ export declare const actionLoadScene: {
|
|
|
1125
1157
|
isSpeaking?: boolean | undefined;
|
|
1126
1158
|
isMuted?: boolean | undefined;
|
|
1127
1159
|
}>>;
|
|
1128
|
-
|
|
1160
|
+
stats: {
|
|
1161
|
+
open: boolean;
|
|
1162
|
+
panels: number;
|
|
1163
|
+
};
|
|
1129
1164
|
currentChartType: import("../element/types").ChartType;
|
|
1130
1165
|
pasteDialog: {
|
|
1131
1166
|
shown: false;
|
|
@@ -1146,7 +1181,7 @@ export declare const actionLoadScene: {
|
|
|
1146
1181
|
followedBy: Set<import("../types").SocketId>;
|
|
1147
1182
|
};
|
|
1148
1183
|
files: import("../types").BinaryFiles;
|
|
1149
|
-
storeAction:
|
|
1184
|
+
storeAction: "capture";
|
|
1150
1185
|
} | {
|
|
1151
1186
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
1152
1187
|
appState: {
|
|
@@ -1202,7 +1237,9 @@ export declare const actionLoadScene: {
|
|
|
1202
1237
|
currentItemTextAlign: string;
|
|
1203
1238
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1204
1239
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1240
|
+
currentHoveredFontFamily: number | null;
|
|
1205
1241
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1242
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1206
1243
|
viewBackgroundColor: string;
|
|
1207
1244
|
scrollX: number;
|
|
1208
1245
|
scrollY: number;
|
|
@@ -1215,7 +1252,7 @@ export declare const actionLoadScene: {
|
|
|
1215
1252
|
value: import("../types").NormalizedZoomValue;
|
|
1216
1253
|
}>;
|
|
1217
1254
|
openMenu: "canvas" | "shape" | null;
|
|
1218
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1255
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1219
1256
|
openSidebar: {
|
|
1220
1257
|
name: string;
|
|
1221
1258
|
tab?: string | undefined;
|
|
@@ -1280,7 +1317,10 @@ export declare const actionLoadScene: {
|
|
|
1280
1317
|
isSpeaking?: boolean | undefined;
|
|
1281
1318
|
isMuted?: boolean | undefined;
|
|
1282
1319
|
}>>;
|
|
1283
|
-
|
|
1320
|
+
stats: {
|
|
1321
|
+
open: boolean;
|
|
1322
|
+
panels: number;
|
|
1323
|
+
};
|
|
1284
1324
|
currentChartType: import("../element/types").ChartType;
|
|
1285
1325
|
pasteDialog: {
|
|
1286
1326
|
shown: false;
|
|
@@ -1302,7 +1342,7 @@ export declare const actionLoadScene: {
|
|
|
1302
1342
|
followedBy: Set<import("../types").SocketId>;
|
|
1303
1343
|
};
|
|
1304
1344
|
files: import("../types").BinaryFiles;
|
|
1305
|
-
storeAction:
|
|
1345
|
+
storeAction: "none";
|
|
1306
1346
|
}>;
|
|
1307
1347
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1308
1348
|
} & {
|
|
@@ -1369,7 +1409,9 @@ export declare const actionExportWithDarkMode: {
|
|
|
1369
1409
|
currentItemTextAlign: string;
|
|
1370
1410
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
1371
1411
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1412
|
+
currentHoveredFontFamily: number | null;
|
|
1372
1413
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1414
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1373
1415
|
viewBackgroundColor: string;
|
|
1374
1416
|
scrollX: number;
|
|
1375
1417
|
scrollY: number;
|
|
@@ -1382,7 +1424,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1382
1424
|
value: import("../types").NormalizedZoomValue;
|
|
1383
1425
|
}>;
|
|
1384
1426
|
openMenu: "canvas" | "shape" | null;
|
|
1385
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1427
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1386
1428
|
openSidebar: {
|
|
1387
1429
|
name: string;
|
|
1388
1430
|
tab?: string | undefined;
|
|
@@ -1447,7 +1489,10 @@ export declare const actionExportWithDarkMode: {
|
|
|
1447
1489
|
isSpeaking?: boolean | undefined;
|
|
1448
1490
|
isMuted?: boolean | undefined;
|
|
1449
1491
|
}>>;
|
|
1450
|
-
|
|
1492
|
+
stats: {
|
|
1493
|
+
open: boolean;
|
|
1494
|
+
panels: number;
|
|
1495
|
+
};
|
|
1451
1496
|
currentChartType: import("../element/types").ChartType;
|
|
1452
1497
|
pasteDialog: {
|
|
1453
1498
|
shown: false;
|
|
@@ -1468,7 +1513,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1468
1513
|
userToFollow: import("../types").UserToFollow | null;
|
|
1469
1514
|
followedBy: Set<import("../types").SocketId>;
|
|
1470
1515
|
};
|
|
1471
|
-
storeAction:
|
|
1516
|
+
storeAction: "none";
|
|
1472
1517
|
};
|
|
1473
1518
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1474
1519
|
} & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
3
|
-
import { AppState } from "../types";
|
|
3
|
+
import type { AppState } from "../types";
|
|
4
4
|
export declare const actionFinalize: {
|
|
5
5
|
name: "finalize";
|
|
6
6
|
label: string;
|
|
@@ -62,7 +62,9 @@ export declare const actionFinalize: {
|
|
|
62
62
|
currentItemTextAlign: string;
|
|
63
63
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
64
64
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
65
|
+
currentHoveredFontFamily: number | null;
|
|
65
66
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
67
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
66
68
|
viewBackgroundColor: string;
|
|
67
69
|
scrollX: number;
|
|
68
70
|
scrollY: number;
|
|
@@ -74,7 +76,7 @@ export declare const actionFinalize: {
|
|
|
74
76
|
value: import("../types").NormalizedZoomValue;
|
|
75
77
|
}>;
|
|
76
78
|
openMenu: "canvas" | "shape" | null;
|
|
77
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
79
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
78
80
|
openSidebar: {
|
|
79
81
|
name: string;
|
|
80
82
|
tab?: string | undefined;
|
|
@@ -139,7 +141,10 @@ export declare const actionFinalize: {
|
|
|
139
141
|
isSpeaking?: boolean | undefined;
|
|
140
142
|
isMuted?: boolean | undefined;
|
|
141
143
|
}>>;
|
|
142
|
-
|
|
144
|
+
stats: {
|
|
145
|
+
open: boolean;
|
|
146
|
+
panels: number;
|
|
147
|
+
};
|
|
143
148
|
currentChartType: import("../element/types").ChartType;
|
|
144
149
|
pasteDialog: {
|
|
145
150
|
shown: false;
|
|
@@ -159,7 +164,7 @@ export declare const actionFinalize: {
|
|
|
159
164
|
userToFollow: import("../types").UserToFollow | null;
|
|
160
165
|
followedBy: Set<import("../types").SocketId>;
|
|
161
166
|
};
|
|
162
|
-
storeAction:
|
|
167
|
+
storeAction: "capture";
|
|
163
168
|
} | {
|
|
164
169
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
165
170
|
appState: {
|
|
@@ -218,7 +223,9 @@ export declare const actionFinalize: {
|
|
|
218
223
|
currentItemTextAlign: string;
|
|
219
224
|
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
220
225
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
226
|
+
currentHoveredFontFamily: number | null;
|
|
221
227
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
228
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
222
229
|
viewBackgroundColor: string;
|
|
223
230
|
scrollX: number;
|
|
224
231
|
scrollY: number;
|
|
@@ -230,7 +237,7 @@ export declare const actionFinalize: {
|
|
|
230
237
|
value: import("../types").NormalizedZoomValue;
|
|
231
238
|
}>;
|
|
232
239
|
openMenu: "canvas" | "shape" | null;
|
|
233
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
240
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
234
241
|
openSidebar: {
|
|
235
242
|
name: string;
|
|
236
243
|
tab?: string | undefined;
|
|
@@ -292,7 +299,10 @@ export declare const actionFinalize: {
|
|
|
292
299
|
isSpeaking?: boolean | undefined;
|
|
293
300
|
isMuted?: boolean | undefined;
|
|
294
301
|
}>>;
|
|
295
|
-
|
|
302
|
+
stats: {
|
|
303
|
+
open: boolean;
|
|
304
|
+
panels: number;
|
|
305
|
+
};
|
|
296
306
|
currentChartType: import("../element/types").ChartType;
|
|
297
307
|
pasteDialog: {
|
|
298
308
|
shown: false;
|
|
@@ -311,7 +321,7 @@ export declare const actionFinalize: {
|
|
|
311
321
|
userToFollow: import("../types").UserToFollow | null;
|
|
312
322
|
followedBy: Set<import("../types").SocketId>;
|
|
313
323
|
};
|
|
314
|
-
storeAction:
|
|
324
|
+
storeAction: "capture";
|
|
315
325
|
};
|
|
316
326
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
317
327
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -25,7 +25,7 @@ export const actionFinalize = register({
|
|
|
25
25
|
const element = LinearElementEditor.getElement(elementId, elementsMap);
|
|
26
26
|
if (element) {
|
|
27
27
|
if (isBindingElement(element)) {
|
|
28
|
-
bindOrUnbindLinearElement(element, startBindingElement, endBindingElement, elementsMap);
|
|
28
|
+
bindOrUnbindLinearElement(element, startBindingElement, endBindingElement, elementsMap, scene);
|
|
29
29
|
}
|
|
30
30
|
return {
|
|
31
31
|
elements: element.points.length < 2 || isInvisiblySmallElement(element)
|
|
@@ -91,7 +91,7 @@ export const actionFinalize = register({
|
|
|
91
91
|
!isLoop &&
|
|
92
92
|
multiPointElement.points.length > 1) {
|
|
93
93
|
const [x, y] = LinearElementEditor.getPointAtIndexGlobalCoordinates(multiPointElement, -1, arrayToMap(elements));
|
|
94
|
-
maybeBindLinearElement(multiPointElement, appState, { x, y },
|
|
94
|
+
maybeBindLinearElement(multiPointElement, appState, { x, y }, elementsMap, elements);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
if ((!appState.activeTool.locked &&
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ExcalidrawElement } from "../element/types";
|
|
3
|
-
import { AppClassProperties, AppState } from "../types";
|
|
2
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
3
|
+
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
export declare const actionFlipHorizontal: {
|
|
5
5
|
name: "flipHorizontal";
|
|
6
6
|
label: string;
|
|
@@ -11,7 +11,7 @@ export declare const actionFlipHorizontal: {
|
|
|
11
11
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
|
-
storeAction:
|
|
14
|
+
storeAction: "capture";
|
|
15
15
|
};
|
|
16
16
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
17
17
|
} & {
|
|
@@ -27,7 +27,7 @@ export declare const actionFlipVertical: {
|
|
|
27
27
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
appState: Readonly<AppState>;
|
|
30
|
-
storeAction:
|
|
30
|
+
storeAction: "capture";
|
|
31
31
|
};
|
|
32
32
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
33
33
|
} & {
|
|
@@ -49,7 +49,7 @@ const flipSelectedElements = (elements, elementsMap, appState, flipDirection, ap
|
|
|
49
49
|
};
|
|
50
50
|
const flipElements = (selectedElements, elementsMap, appState, flipDirection, app) => {
|
|
51
51
|
const { minX, minY, maxX, maxY } = getCommonBoundingBox(selectedElements);
|
|
52
|
-
resizeMultipleElements(elementsMap, selectedElements, elementsMap, "nw", true, true, flipDirection === "horizontal" ? maxX : minX, flipDirection === "horizontal" ? minY : maxY);
|
|
53
|
-
bindOrUnbindLinearElements(selectedElements.filter(isLinearElement), app, isBindingEnabled(appState), []);
|
|
52
|
+
resizeMultipleElements(elementsMap, selectedElements, elementsMap, "nw", true, true, flipDirection === "horizontal" ? maxX : minX, flipDirection === "horizontal" ? minY : maxY, app.scene);
|
|
53
|
+
bindOrUnbindLinearElements(selectedElements.filter(isLinearElement), elementsMap, app.scene.getNonDeletedElements(), app.scene, isBindingEnabled(appState), []);
|
|
54
54
|
return selectedElements;
|
|
55
55
|
};
|