@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,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AppClassProperties, AppState, Primitive } from "../types";
|
|
3
|
-
import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
2
|
+
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
3
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
4
|
+
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
4
5
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
5
6
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
6
7
|
export declare const actionChangeStrokeColor: {
|
|
@@ -46,7 +47,7 @@ export declare const actionChangeFillStyle: {
|
|
|
46
47
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
47
48
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
48
49
|
isBindingEnabled: boolean;
|
|
49
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
50
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
50
51
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
51
52
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
53
|
frameRendering: {
|
|
@@ -58,7 +59,7 @@ export declare const actionChangeFillStyle: {
|
|
|
58
59
|
editingFrame: string | null;
|
|
59
60
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
61
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
61
|
-
editingLinearElement:
|
|
62
|
+
editingLinearElement: LinearElementEditor | null;
|
|
62
63
|
activeTool: {
|
|
63
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
65
|
locked: boolean;
|
|
@@ -80,7 +81,9 @@ export declare const actionChangeFillStyle: {
|
|
|
80
81
|
currentItemTextAlign: string;
|
|
81
82
|
currentItemStartArrowhead: Arrowhead | null;
|
|
82
83
|
currentItemEndArrowhead: Arrowhead | null;
|
|
84
|
+
currentHoveredFontFamily: number | null;
|
|
83
85
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
86
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
84
87
|
viewBackgroundColor: string;
|
|
85
88
|
scrollX: number;
|
|
86
89
|
scrollY: number;
|
|
@@ -93,7 +96,7 @@ export declare const actionChangeFillStyle: {
|
|
|
93
96
|
value: import("../types").NormalizedZoomValue;
|
|
94
97
|
}>;
|
|
95
98
|
openMenu: "canvas" | "shape" | null;
|
|
96
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
99
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
97
100
|
openSidebar: {
|
|
98
101
|
name: string;
|
|
99
102
|
tab?: string | undefined;
|
|
@@ -158,7 +161,10 @@ export declare const actionChangeFillStyle: {
|
|
|
158
161
|
isSpeaking?: boolean | undefined;
|
|
159
162
|
isMuted?: boolean | undefined;
|
|
160
163
|
}>>;
|
|
161
|
-
|
|
164
|
+
stats: {
|
|
165
|
+
open: boolean;
|
|
166
|
+
panels: number;
|
|
167
|
+
};
|
|
162
168
|
currentChartType: import("../element/types").ChartType;
|
|
163
169
|
pasteDialog: {
|
|
164
170
|
shown: false;
|
|
@@ -169,7 +175,7 @@ export declare const actionChangeFillStyle: {
|
|
|
169
175
|
};
|
|
170
176
|
pendingImageElementId: string | null;
|
|
171
177
|
showHyperlinkPopup: false | "info" | "editor";
|
|
172
|
-
selectedLinearElement:
|
|
178
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
173
179
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
174
180
|
originSnapOffset: {
|
|
175
181
|
x: number;
|
|
@@ -179,7 +185,7 @@ export declare const actionChangeFillStyle: {
|
|
|
179
185
|
userToFollow: import("../types").UserToFollow | null;
|
|
180
186
|
followedBy: Set<import("../types").SocketId>;
|
|
181
187
|
};
|
|
182
|
-
storeAction:
|
|
188
|
+
storeAction: "capture";
|
|
183
189
|
};
|
|
184
190
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
185
191
|
} & {
|
|
@@ -210,7 +216,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
210
216
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
211
217
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
212
218
|
isBindingEnabled: boolean;
|
|
213
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
219
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
214
220
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
215
221
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
216
222
|
frameRendering: {
|
|
@@ -222,7 +228,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
222
228
|
editingFrame: string | null;
|
|
223
229
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
224
230
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
225
|
-
editingLinearElement:
|
|
231
|
+
editingLinearElement: LinearElementEditor | null;
|
|
226
232
|
activeTool: {
|
|
227
233
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
228
234
|
locked: boolean;
|
|
@@ -244,7 +250,9 @@ export declare const actionChangeStrokeWidth: {
|
|
|
244
250
|
currentItemTextAlign: string;
|
|
245
251
|
currentItemStartArrowhead: Arrowhead | null;
|
|
246
252
|
currentItemEndArrowhead: Arrowhead | null;
|
|
253
|
+
currentHoveredFontFamily: number | null;
|
|
247
254
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
255
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
248
256
|
viewBackgroundColor: string;
|
|
249
257
|
scrollX: number;
|
|
250
258
|
scrollY: number;
|
|
@@ -257,7 +265,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
257
265
|
value: import("../types").NormalizedZoomValue;
|
|
258
266
|
}>;
|
|
259
267
|
openMenu: "canvas" | "shape" | null;
|
|
260
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
268
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
261
269
|
openSidebar: {
|
|
262
270
|
name: string;
|
|
263
271
|
tab?: string | undefined;
|
|
@@ -322,7 +330,10 @@ export declare const actionChangeStrokeWidth: {
|
|
|
322
330
|
isSpeaking?: boolean | undefined;
|
|
323
331
|
isMuted?: boolean | undefined;
|
|
324
332
|
}>>;
|
|
325
|
-
|
|
333
|
+
stats: {
|
|
334
|
+
open: boolean;
|
|
335
|
+
panels: number;
|
|
336
|
+
};
|
|
326
337
|
currentChartType: import("../element/types").ChartType;
|
|
327
338
|
pasteDialog: {
|
|
328
339
|
shown: false;
|
|
@@ -333,7 +344,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
333
344
|
};
|
|
334
345
|
pendingImageElementId: string | null;
|
|
335
346
|
showHyperlinkPopup: false | "info" | "editor";
|
|
336
|
-
selectedLinearElement:
|
|
347
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
337
348
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
338
349
|
originSnapOffset: {
|
|
339
350
|
x: number;
|
|
@@ -343,7 +354,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
343
354
|
userToFollow: import("../types").UserToFollow | null;
|
|
344
355
|
followedBy: Set<import("../types").SocketId>;
|
|
345
356
|
};
|
|
346
|
-
storeAction:
|
|
357
|
+
storeAction: "capture";
|
|
347
358
|
};
|
|
348
359
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
349
360
|
} & {
|
|
@@ -374,7 +385,7 @@ export declare const actionChangeSloppiness: {
|
|
|
374
385
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
375
386
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
376
387
|
isBindingEnabled: boolean;
|
|
377
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
388
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
378
389
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
379
390
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
380
391
|
frameRendering: {
|
|
@@ -386,7 +397,7 @@ export declare const actionChangeSloppiness: {
|
|
|
386
397
|
editingFrame: string | null;
|
|
387
398
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
388
399
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
389
|
-
editingLinearElement:
|
|
400
|
+
editingLinearElement: LinearElementEditor | null;
|
|
390
401
|
activeTool: {
|
|
391
402
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
392
403
|
locked: boolean;
|
|
@@ -408,7 +419,9 @@ export declare const actionChangeSloppiness: {
|
|
|
408
419
|
currentItemTextAlign: string;
|
|
409
420
|
currentItemStartArrowhead: Arrowhead | null;
|
|
410
421
|
currentItemEndArrowhead: Arrowhead | null;
|
|
422
|
+
currentHoveredFontFamily: number | null;
|
|
411
423
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
424
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
412
425
|
viewBackgroundColor: string;
|
|
413
426
|
scrollX: number;
|
|
414
427
|
scrollY: number;
|
|
@@ -421,7 +434,7 @@ export declare const actionChangeSloppiness: {
|
|
|
421
434
|
value: import("../types").NormalizedZoomValue;
|
|
422
435
|
}>;
|
|
423
436
|
openMenu: "canvas" | "shape" | null;
|
|
424
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
437
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
425
438
|
openSidebar: {
|
|
426
439
|
name: string;
|
|
427
440
|
tab?: string | undefined;
|
|
@@ -486,7 +499,10 @@ export declare const actionChangeSloppiness: {
|
|
|
486
499
|
isSpeaking?: boolean | undefined;
|
|
487
500
|
isMuted?: boolean | undefined;
|
|
488
501
|
}>>;
|
|
489
|
-
|
|
502
|
+
stats: {
|
|
503
|
+
open: boolean;
|
|
504
|
+
panels: number;
|
|
505
|
+
};
|
|
490
506
|
currentChartType: import("../element/types").ChartType;
|
|
491
507
|
pasteDialog: {
|
|
492
508
|
shown: false;
|
|
@@ -497,7 +513,7 @@ export declare const actionChangeSloppiness: {
|
|
|
497
513
|
};
|
|
498
514
|
pendingImageElementId: string | null;
|
|
499
515
|
showHyperlinkPopup: false | "info" | "editor";
|
|
500
|
-
selectedLinearElement:
|
|
516
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
501
517
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
502
518
|
originSnapOffset: {
|
|
503
519
|
x: number;
|
|
@@ -507,7 +523,7 @@ export declare const actionChangeSloppiness: {
|
|
|
507
523
|
userToFollow: import("../types").UserToFollow | null;
|
|
508
524
|
followedBy: Set<import("../types").SocketId>;
|
|
509
525
|
};
|
|
510
|
-
storeAction:
|
|
526
|
+
storeAction: "capture";
|
|
511
527
|
};
|
|
512
528
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
513
529
|
} & {
|
|
@@ -538,7 +554,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
538
554
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
539
555
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
540
556
|
isBindingEnabled: boolean;
|
|
541
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
557
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
542
558
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
543
559
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
544
560
|
frameRendering: {
|
|
@@ -550,7 +566,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
550
566
|
editingFrame: string | null;
|
|
551
567
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
552
568
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
553
|
-
editingLinearElement:
|
|
569
|
+
editingLinearElement: LinearElementEditor | null;
|
|
554
570
|
activeTool: {
|
|
555
571
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
556
572
|
locked: boolean;
|
|
@@ -572,7 +588,9 @@ export declare const actionChangeStrokeStyle: {
|
|
|
572
588
|
currentItemTextAlign: string;
|
|
573
589
|
currentItemStartArrowhead: Arrowhead | null;
|
|
574
590
|
currentItemEndArrowhead: Arrowhead | null;
|
|
591
|
+
currentHoveredFontFamily: number | null;
|
|
575
592
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
593
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
576
594
|
viewBackgroundColor: string;
|
|
577
595
|
scrollX: number;
|
|
578
596
|
scrollY: number;
|
|
@@ -585,7 +603,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
585
603
|
value: import("../types").NormalizedZoomValue;
|
|
586
604
|
}>;
|
|
587
605
|
openMenu: "canvas" | "shape" | null;
|
|
588
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
606
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
589
607
|
openSidebar: {
|
|
590
608
|
name: string;
|
|
591
609
|
tab?: string | undefined;
|
|
@@ -650,7 +668,10 @@ export declare const actionChangeStrokeStyle: {
|
|
|
650
668
|
isSpeaking?: boolean | undefined;
|
|
651
669
|
isMuted?: boolean | undefined;
|
|
652
670
|
}>>;
|
|
653
|
-
|
|
671
|
+
stats: {
|
|
672
|
+
open: boolean;
|
|
673
|
+
panels: number;
|
|
674
|
+
};
|
|
654
675
|
currentChartType: import("../element/types").ChartType;
|
|
655
676
|
pasteDialog: {
|
|
656
677
|
shown: false;
|
|
@@ -661,7 +682,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
661
682
|
};
|
|
662
683
|
pendingImageElementId: string | null;
|
|
663
684
|
showHyperlinkPopup: false | "info" | "editor";
|
|
664
|
-
selectedLinearElement:
|
|
685
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
665
686
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
666
687
|
originSnapOffset: {
|
|
667
688
|
x: number;
|
|
@@ -671,7 +692,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
671
692
|
userToFollow: import("../types").UserToFollow | null;
|
|
672
693
|
followedBy: Set<import("../types").SocketId>;
|
|
673
694
|
};
|
|
674
|
-
storeAction:
|
|
695
|
+
storeAction: "capture";
|
|
675
696
|
};
|
|
676
697
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
677
698
|
} & {
|
|
@@ -702,7 +723,7 @@ export declare const actionChangeOpacity: {
|
|
|
702
723
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
703
724
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
704
725
|
isBindingEnabled: boolean;
|
|
705
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
726
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
706
727
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
707
728
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
708
729
|
frameRendering: {
|
|
@@ -714,7 +735,7 @@ export declare const actionChangeOpacity: {
|
|
|
714
735
|
editingFrame: string | null;
|
|
715
736
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
716
737
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
717
|
-
editingLinearElement:
|
|
738
|
+
editingLinearElement: LinearElementEditor | null;
|
|
718
739
|
activeTool: {
|
|
719
740
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
720
741
|
locked: boolean;
|
|
@@ -736,7 +757,9 @@ export declare const actionChangeOpacity: {
|
|
|
736
757
|
currentItemTextAlign: string;
|
|
737
758
|
currentItemStartArrowhead: Arrowhead | null;
|
|
738
759
|
currentItemEndArrowhead: Arrowhead | null;
|
|
760
|
+
currentHoveredFontFamily: number | null;
|
|
739
761
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
762
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
740
763
|
viewBackgroundColor: string;
|
|
741
764
|
scrollX: number;
|
|
742
765
|
scrollY: number;
|
|
@@ -749,7 +772,7 @@ export declare const actionChangeOpacity: {
|
|
|
749
772
|
value: import("../types").NormalizedZoomValue;
|
|
750
773
|
}>;
|
|
751
774
|
openMenu: "canvas" | "shape" | null;
|
|
752
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
775
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
753
776
|
openSidebar: {
|
|
754
777
|
name: string;
|
|
755
778
|
tab?: string | undefined;
|
|
@@ -814,7 +837,10 @@ export declare const actionChangeOpacity: {
|
|
|
814
837
|
isSpeaking?: boolean | undefined;
|
|
815
838
|
isMuted?: boolean | undefined;
|
|
816
839
|
}>>;
|
|
817
|
-
|
|
840
|
+
stats: {
|
|
841
|
+
open: boolean;
|
|
842
|
+
panels: number;
|
|
843
|
+
};
|
|
818
844
|
currentChartType: import("../element/types").ChartType;
|
|
819
845
|
pasteDialog: {
|
|
820
846
|
shown: false;
|
|
@@ -825,7 +851,7 @@ export declare const actionChangeOpacity: {
|
|
|
825
851
|
};
|
|
826
852
|
pendingImageElementId: string | null;
|
|
827
853
|
showHyperlinkPopup: false | "info" | "editor";
|
|
828
|
-
selectedLinearElement:
|
|
854
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
829
855
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
830
856
|
originSnapOffset: {
|
|
831
857
|
x: number;
|
|
@@ -835,7 +861,7 @@ export declare const actionChangeOpacity: {
|
|
|
835
861
|
userToFollow: import("../types").UserToFollow | null;
|
|
836
862
|
followedBy: Set<import("../types").SocketId>;
|
|
837
863
|
};
|
|
838
|
-
storeAction:
|
|
864
|
+
storeAction: "capture";
|
|
839
865
|
};
|
|
840
866
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
841
867
|
} & {
|
|
@@ -866,7 +892,7 @@ export declare const actionChangeFontSize: {
|
|
|
866
892
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
867
893
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
868
894
|
isBindingEnabled: boolean;
|
|
869
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
895
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
870
896
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
871
897
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
872
898
|
frameRendering: {
|
|
@@ -878,7 +904,7 @@ export declare const actionChangeFontSize: {
|
|
|
878
904
|
editingFrame: string | null;
|
|
879
905
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
880
906
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
881
|
-
editingLinearElement:
|
|
907
|
+
editingLinearElement: LinearElementEditor | null;
|
|
882
908
|
activeTool: {
|
|
883
909
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
884
910
|
locked: boolean;
|
|
@@ -900,7 +926,9 @@ export declare const actionChangeFontSize: {
|
|
|
900
926
|
currentItemTextAlign: string;
|
|
901
927
|
currentItemStartArrowhead: Arrowhead | null;
|
|
902
928
|
currentItemEndArrowhead: Arrowhead | null;
|
|
929
|
+
currentHoveredFontFamily: number | null;
|
|
903
930
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
931
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
904
932
|
viewBackgroundColor: string;
|
|
905
933
|
scrollX: number;
|
|
906
934
|
scrollY: number;
|
|
@@ -913,7 +941,7 @@ export declare const actionChangeFontSize: {
|
|
|
913
941
|
value: import("../types").NormalizedZoomValue;
|
|
914
942
|
}>;
|
|
915
943
|
openMenu: "canvas" | "shape" | null;
|
|
916
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
944
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
917
945
|
openSidebar: {
|
|
918
946
|
name: string;
|
|
919
947
|
tab?: string | undefined;
|
|
@@ -978,7 +1006,10 @@ export declare const actionChangeFontSize: {
|
|
|
978
1006
|
isSpeaking?: boolean | undefined;
|
|
979
1007
|
isMuted?: boolean | undefined;
|
|
980
1008
|
}>>;
|
|
981
|
-
|
|
1009
|
+
stats: {
|
|
1010
|
+
open: boolean;
|
|
1011
|
+
panels: number;
|
|
1012
|
+
};
|
|
982
1013
|
currentChartType: import("../element/types").ChartType;
|
|
983
1014
|
pasteDialog: {
|
|
984
1015
|
shown: false;
|
|
@@ -989,7 +1020,7 @@ export declare const actionChangeFontSize: {
|
|
|
989
1020
|
};
|
|
990
1021
|
pendingImageElementId: string | null;
|
|
991
1022
|
showHyperlinkPopup: false | "info" | "editor";
|
|
992
|
-
selectedLinearElement:
|
|
1023
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
993
1024
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
994
1025
|
originSnapOffset: {
|
|
995
1026
|
x: number;
|
|
@@ -999,7 +1030,7 @@ export declare const actionChangeFontSize: {
|
|
|
999
1030
|
userToFollow: import("../types").UserToFollow | null;
|
|
1000
1031
|
followedBy: Set<import("../types").SocketId>;
|
|
1001
1032
|
};
|
|
1002
|
-
storeAction:
|
|
1033
|
+
storeAction: "capture";
|
|
1003
1034
|
};
|
|
1004
1035
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1005
1036
|
} & {
|
|
@@ -1031,7 +1062,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1031
1062
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1032
1063
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1033
1064
|
isBindingEnabled: boolean;
|
|
1034
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1065
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1035
1066
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1036
1067
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1037
1068
|
frameRendering: {
|
|
@@ -1043,7 +1074,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1043
1074
|
editingFrame: string | null;
|
|
1044
1075
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1045
1076
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1046
|
-
editingLinearElement:
|
|
1077
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1047
1078
|
activeTool: {
|
|
1048
1079
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1049
1080
|
locked: boolean;
|
|
@@ -1065,7 +1096,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
1065
1096
|
currentItemTextAlign: string;
|
|
1066
1097
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1067
1098
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1099
|
+
currentHoveredFontFamily: number | null;
|
|
1068
1100
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1101
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1069
1102
|
viewBackgroundColor: string;
|
|
1070
1103
|
scrollX: number;
|
|
1071
1104
|
scrollY: number;
|
|
@@ -1078,7 +1111,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1078
1111
|
value: import("../types").NormalizedZoomValue;
|
|
1079
1112
|
}>;
|
|
1080
1113
|
openMenu: "canvas" | "shape" | null;
|
|
1081
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1114
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1082
1115
|
openSidebar: {
|
|
1083
1116
|
name: string;
|
|
1084
1117
|
tab?: string | undefined;
|
|
@@ -1143,7 +1176,10 @@ export declare const actionDecreaseFontSize: {
|
|
|
1143
1176
|
isSpeaking?: boolean | undefined;
|
|
1144
1177
|
isMuted?: boolean | undefined;
|
|
1145
1178
|
}>>;
|
|
1146
|
-
|
|
1179
|
+
stats: {
|
|
1180
|
+
open: boolean;
|
|
1181
|
+
panels: number;
|
|
1182
|
+
};
|
|
1147
1183
|
currentChartType: import("../element/types").ChartType;
|
|
1148
1184
|
pasteDialog: {
|
|
1149
1185
|
shown: false;
|
|
@@ -1154,7 +1190,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1154
1190
|
};
|
|
1155
1191
|
pendingImageElementId: string | null;
|
|
1156
1192
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1157
|
-
selectedLinearElement:
|
|
1193
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1158
1194
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1159
1195
|
originSnapOffset: {
|
|
1160
1196
|
x: number;
|
|
@@ -1164,7 +1200,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1164
1200
|
userToFollow: import("../types").UserToFollow | null;
|
|
1165
1201
|
followedBy: Set<import("../types").SocketId>;
|
|
1166
1202
|
};
|
|
1167
|
-
storeAction:
|
|
1203
|
+
storeAction: "capture";
|
|
1168
1204
|
};
|
|
1169
1205
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1170
1206
|
} & {
|
|
@@ -1196,7 +1232,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1196
1232
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1197
1233
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1198
1234
|
isBindingEnabled: boolean;
|
|
1199
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1235
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1200
1236
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1201
1237
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1202
1238
|
frameRendering: {
|
|
@@ -1208,7 +1244,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1208
1244
|
editingFrame: string | null;
|
|
1209
1245
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1210
1246
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1211
|
-
editingLinearElement:
|
|
1247
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1212
1248
|
activeTool: {
|
|
1213
1249
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1214
1250
|
locked: boolean;
|
|
@@ -1230,7 +1266,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1230
1266
|
currentItemTextAlign: string;
|
|
1231
1267
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1232
1268
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1269
|
+
currentHoveredFontFamily: number | null;
|
|
1233
1270
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1271
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1234
1272
|
viewBackgroundColor: string;
|
|
1235
1273
|
scrollX: number;
|
|
1236
1274
|
scrollY: number;
|
|
@@ -1243,7 +1281,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1243
1281
|
value: import("../types").NormalizedZoomValue;
|
|
1244
1282
|
}>;
|
|
1245
1283
|
openMenu: "canvas" | "shape" | null;
|
|
1246
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1284
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1247
1285
|
openSidebar: {
|
|
1248
1286
|
name: string;
|
|
1249
1287
|
tab?: string | undefined;
|
|
@@ -1308,7 +1346,10 @@ export declare const actionIncreaseFontSize: {
|
|
|
1308
1346
|
isSpeaking?: boolean | undefined;
|
|
1309
1347
|
isMuted?: boolean | undefined;
|
|
1310
1348
|
}>>;
|
|
1311
|
-
|
|
1349
|
+
stats: {
|
|
1350
|
+
open: boolean;
|
|
1351
|
+
panels: number;
|
|
1352
|
+
};
|
|
1312
1353
|
currentChartType: import("../element/types").ChartType;
|
|
1313
1354
|
pasteDialog: {
|
|
1314
1355
|
shown: false;
|
|
@@ -1319,7 +1360,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1319
1360
|
};
|
|
1320
1361
|
pendingImageElementId: string | null;
|
|
1321
1362
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1322
|
-
selectedLinearElement:
|
|
1363
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1323
1364
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1324
1365
|
originSnapOffset: {
|
|
1325
1366
|
x: number;
|
|
@@ -1329,7 +1370,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1329
1370
|
userToFollow: import("../types").UserToFollow | null;
|
|
1330
1371
|
followedBy: Set<import("../types").SocketId>;
|
|
1331
1372
|
};
|
|
1332
|
-
storeAction:
|
|
1373
|
+
storeAction: "capture";
|
|
1333
1374
|
};
|
|
1334
1375
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1335
1376
|
} & {
|
|
@@ -1340,9 +1381,170 @@ export declare const actionChangeFontFamily: {
|
|
|
1340
1381
|
label: string;
|
|
1341
1382
|
trackEvent: false;
|
|
1342
1383
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1384
|
+
appState: {
|
|
1385
|
+
currentItemFontFamily: number;
|
|
1386
|
+
currentHoveredFontFamily: number | null;
|
|
1387
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1388
|
+
contextMenu: {
|
|
1389
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1390
|
+
top: number;
|
|
1391
|
+
left: number;
|
|
1392
|
+
} | null;
|
|
1393
|
+
showWelcomeScreen: boolean;
|
|
1394
|
+
isLoading: boolean;
|
|
1395
|
+
errorMessage: import("react").ReactNode;
|
|
1396
|
+
activeEmbeddable: {
|
|
1397
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
1398
|
+
state: "hover" | "active";
|
|
1399
|
+
} | null;
|
|
1400
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1401
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1402
|
+
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1403
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1404
|
+
isBindingEnabled: boolean;
|
|
1405
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1406
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1407
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1408
|
+
frameRendering: {
|
|
1409
|
+
enabled: boolean;
|
|
1410
|
+
name: boolean;
|
|
1411
|
+
outline: boolean;
|
|
1412
|
+
clip: boolean;
|
|
1413
|
+
};
|
|
1414
|
+
editingFrame: string | null;
|
|
1415
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1416
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1417
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1418
|
+
activeTool: {
|
|
1419
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1420
|
+
locked: boolean;
|
|
1421
|
+
} & import("../types").ActiveTool;
|
|
1422
|
+
penMode: boolean;
|
|
1423
|
+
penDetected: boolean;
|
|
1424
|
+
exportBackground: boolean;
|
|
1425
|
+
exportEmbedScene: boolean;
|
|
1426
|
+
exportWithDarkMode: boolean;
|
|
1427
|
+
exportScale: number;
|
|
1428
|
+
currentItemStrokeColor: string;
|
|
1429
|
+
currentItemBackgroundColor: string;
|
|
1430
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
1431
|
+
currentItemStrokeWidth: number;
|
|
1432
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
1433
|
+
currentItemRoughness: number;
|
|
1434
|
+
currentItemOpacity: number;
|
|
1435
|
+
currentItemFontSize: number;
|
|
1436
|
+
currentItemTextAlign: string;
|
|
1437
|
+
currentItemStartArrowhead: Arrowhead | null;
|
|
1438
|
+
currentItemEndArrowhead: Arrowhead | null;
|
|
1439
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1440
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1441
|
+
viewBackgroundColor: string;
|
|
1442
|
+
scrollX: number;
|
|
1443
|
+
scrollY: number;
|
|
1444
|
+
cursorButton: "up" | "down";
|
|
1445
|
+
scrolledOutside: boolean;
|
|
1446
|
+
name: string | null;
|
|
1447
|
+
isResizing: boolean;
|
|
1448
|
+
isRotating: boolean;
|
|
1449
|
+
zoom: Readonly<{
|
|
1450
|
+
value: import("../types").NormalizedZoomValue;
|
|
1451
|
+
}>;
|
|
1452
|
+
openMenu: "canvas" | "shape" | null;
|
|
1453
|
+
openSidebar: {
|
|
1454
|
+
name: string;
|
|
1455
|
+
tab?: string | undefined;
|
|
1456
|
+
} | null;
|
|
1457
|
+
openDialog: {
|
|
1458
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
1459
|
+
} | {
|
|
1460
|
+
name: "settings";
|
|
1461
|
+
source: "settings" | "tool" | "generation";
|
|
1462
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
1463
|
+
} | {
|
|
1464
|
+
name: "ttd";
|
|
1465
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1466
|
+
} | {
|
|
1467
|
+
name: "commandPalette";
|
|
1468
|
+
} | null;
|
|
1469
|
+
defaultSidebarDockedPreference: boolean;
|
|
1470
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
1471
|
+
selectedElementIds: Readonly<{
|
|
1472
|
+
[id: string]: true;
|
|
1473
|
+
}>;
|
|
1474
|
+
previousSelectedElementIds: {
|
|
1475
|
+
[id: string]: true;
|
|
1476
|
+
};
|
|
1477
|
+
selectedElementsAreBeingDragged: boolean;
|
|
1478
|
+
shouldCacheIgnoreZoom: boolean;
|
|
1479
|
+
toast: {
|
|
1480
|
+
message: string;
|
|
1481
|
+
closable?: boolean | undefined;
|
|
1482
|
+
duration?: number | undefined;
|
|
1483
|
+
} | null;
|
|
1484
|
+
zenModeEnabled: boolean;
|
|
1485
|
+
theme: import("../element/types").Theme;
|
|
1486
|
+
gridSize: number | null;
|
|
1487
|
+
viewModeEnabled: boolean;
|
|
1488
|
+
selectedGroupIds: {
|
|
1489
|
+
[groupId: string]: boolean;
|
|
1490
|
+
};
|
|
1491
|
+
editingGroupId: string | null;
|
|
1492
|
+
width: number;
|
|
1493
|
+
height: number;
|
|
1494
|
+
offsetTop: number;
|
|
1495
|
+
offsetLeft: number;
|
|
1496
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1497
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1498
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1499
|
+
button?: "up" | "down" | undefined;
|
|
1500
|
+
selectedElementIds?: Readonly<{
|
|
1501
|
+
[id: string]: true;
|
|
1502
|
+
}> | undefined;
|
|
1503
|
+
username?: string | null | undefined;
|
|
1504
|
+
userState?: import("../types").UserIdleState | undefined;
|
|
1505
|
+
color?: {
|
|
1506
|
+
background: string;
|
|
1507
|
+
stroke: string;
|
|
1508
|
+
} | undefined;
|
|
1509
|
+
avatarUrl?: string | undefined;
|
|
1510
|
+
id?: string | undefined;
|
|
1511
|
+
socketId?: import("../types").SocketId | undefined;
|
|
1512
|
+
isCurrentUser?: boolean | undefined;
|
|
1513
|
+
isInCall?: boolean | undefined;
|
|
1514
|
+
isSpeaking?: boolean | undefined;
|
|
1515
|
+
isMuted?: boolean | undefined;
|
|
1516
|
+
}>>;
|
|
1517
|
+
stats: {
|
|
1518
|
+
open: boolean;
|
|
1519
|
+
panels: number;
|
|
1520
|
+
};
|
|
1521
|
+
currentChartType: import("../element/types").ChartType;
|
|
1522
|
+
pasteDialog: {
|
|
1523
|
+
shown: false;
|
|
1524
|
+
data: null;
|
|
1525
|
+
} | {
|
|
1526
|
+
shown: true;
|
|
1527
|
+
data: import("../charts").Spreadsheet;
|
|
1528
|
+
};
|
|
1529
|
+
pendingImageElementId: string | null;
|
|
1530
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1531
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1532
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
1533
|
+
originSnapOffset: {
|
|
1534
|
+
x: number;
|
|
1535
|
+
y: number;
|
|
1536
|
+
} | null;
|
|
1537
|
+
objectsSnapModeEnabled: boolean;
|
|
1538
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
1539
|
+
followedBy: Set<import("../types").SocketId>;
|
|
1540
|
+
};
|
|
1541
|
+
storeAction: "none" | "capture";
|
|
1542
|
+
} | {
|
|
1343
1543
|
elements: ExcalidrawElement[];
|
|
1344
1544
|
appState: {
|
|
1345
|
-
currentItemFontFamily:
|
|
1545
|
+
currentItemFontFamily: number;
|
|
1546
|
+
currentHoveredFontFamily: number | null;
|
|
1547
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1346
1548
|
contextMenu: {
|
|
1347
1549
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1348
1550
|
top: number;
|
|
@@ -1360,7 +1562,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1360
1562
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1361
1563
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1362
1564
|
isBindingEnabled: boolean;
|
|
1363
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1565
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1364
1566
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1365
1567
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1366
1568
|
frameRendering: {
|
|
@@ -1372,7 +1574,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1372
1574
|
editingFrame: string | null;
|
|
1373
1575
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1374
1576
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1375
|
-
editingLinearElement:
|
|
1577
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1376
1578
|
activeTool: {
|
|
1377
1579
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1378
1580
|
locked: boolean;
|
|
@@ -1395,6 +1597,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1395
1597
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1396
1598
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1397
1599
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1600
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1398
1601
|
viewBackgroundColor: string;
|
|
1399
1602
|
scrollX: number;
|
|
1400
1603
|
scrollY: number;
|
|
@@ -1407,7 +1610,6 @@ export declare const actionChangeFontFamily: {
|
|
|
1407
1610
|
value: import("../types").NormalizedZoomValue;
|
|
1408
1611
|
}>;
|
|
1409
1612
|
openMenu: "canvas" | "shape" | null;
|
|
1410
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1411
1613
|
openSidebar: {
|
|
1412
1614
|
name: string;
|
|
1413
1615
|
tab?: string | undefined;
|
|
@@ -1472,7 +1674,10 @@ export declare const actionChangeFontFamily: {
|
|
|
1472
1674
|
isSpeaking?: boolean | undefined;
|
|
1473
1675
|
isMuted?: boolean | undefined;
|
|
1474
1676
|
}>>;
|
|
1475
|
-
|
|
1677
|
+
stats: {
|
|
1678
|
+
open: boolean;
|
|
1679
|
+
panels: number;
|
|
1680
|
+
};
|
|
1476
1681
|
currentChartType: import("../element/types").ChartType;
|
|
1477
1682
|
pasteDialog: {
|
|
1478
1683
|
shown: false;
|
|
@@ -1483,7 +1688,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1483
1688
|
};
|
|
1484
1689
|
pendingImageElementId: string | null;
|
|
1485
1690
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1486
|
-
selectedLinearElement:
|
|
1691
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1487
1692
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1488
1693
|
originSnapOffset: {
|
|
1489
1694
|
x: number;
|
|
@@ -1493,9 +1698,9 @@ export declare const actionChangeFontFamily: {
|
|
|
1493
1698
|
userToFollow: import("../types").UserToFollow | null;
|
|
1494
1699
|
followedBy: Set<import("../types").SocketId>;
|
|
1495
1700
|
};
|
|
1496
|
-
storeAction:
|
|
1701
|
+
storeAction: "update";
|
|
1497
1702
|
};
|
|
1498
|
-
PanelComponent: ({ elements, appState,
|
|
1703
|
+
PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1499
1704
|
} & {
|
|
1500
1705
|
keyTest?: undefined;
|
|
1501
1706
|
};
|
|
@@ -1524,7 +1729,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1524
1729
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1525
1730
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1526
1731
|
isBindingEnabled: boolean;
|
|
1527
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1732
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1528
1733
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1529
1734
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1530
1735
|
frameRendering: {
|
|
@@ -1536,7 +1741,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1536
1741
|
editingFrame: string | null;
|
|
1537
1742
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1538
1743
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1539
|
-
editingLinearElement:
|
|
1744
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1540
1745
|
activeTool: {
|
|
1541
1746
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1542
1747
|
locked: boolean;
|
|
@@ -1558,7 +1763,9 @@ export declare const actionChangeTextAlign: {
|
|
|
1558
1763
|
currentItemFontSize: number;
|
|
1559
1764
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1560
1765
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1766
|
+
currentHoveredFontFamily: number | null;
|
|
1561
1767
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1768
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1562
1769
|
viewBackgroundColor: string;
|
|
1563
1770
|
scrollX: number;
|
|
1564
1771
|
scrollY: number;
|
|
@@ -1571,7 +1778,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1571
1778
|
value: import("../types").NormalizedZoomValue;
|
|
1572
1779
|
}>;
|
|
1573
1780
|
openMenu: "canvas" | "shape" | null;
|
|
1574
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1781
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1575
1782
|
openSidebar: {
|
|
1576
1783
|
name: string;
|
|
1577
1784
|
tab?: string | undefined;
|
|
@@ -1636,7 +1843,10 @@ export declare const actionChangeTextAlign: {
|
|
|
1636
1843
|
isSpeaking?: boolean | undefined;
|
|
1637
1844
|
isMuted?: boolean | undefined;
|
|
1638
1845
|
}>>;
|
|
1639
|
-
|
|
1846
|
+
stats: {
|
|
1847
|
+
open: boolean;
|
|
1848
|
+
panels: number;
|
|
1849
|
+
};
|
|
1640
1850
|
currentChartType: import("../element/types").ChartType;
|
|
1641
1851
|
pasteDialog: {
|
|
1642
1852
|
shown: false;
|
|
@@ -1647,7 +1857,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1647
1857
|
};
|
|
1648
1858
|
pendingImageElementId: string | null;
|
|
1649
1859
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1650
|
-
selectedLinearElement:
|
|
1860
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1651
1861
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1652
1862
|
originSnapOffset: {
|
|
1653
1863
|
x: number;
|
|
@@ -1657,7 +1867,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1657
1867
|
userToFollow: import("../types").UserToFollow | null;
|
|
1658
1868
|
followedBy: Set<import("../types").SocketId>;
|
|
1659
1869
|
};
|
|
1660
|
-
storeAction:
|
|
1870
|
+
storeAction: "capture";
|
|
1661
1871
|
};
|
|
1662
1872
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1663
1873
|
} & {
|
|
@@ -1689,7 +1899,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1689
1899
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1690
1900
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1691
1901
|
isBindingEnabled: boolean;
|
|
1692
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
1902
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1693
1903
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1694
1904
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1695
1905
|
frameRendering: {
|
|
@@ -1701,7 +1911,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1701
1911
|
editingFrame: string | null;
|
|
1702
1912
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1703
1913
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1704
|
-
editingLinearElement:
|
|
1914
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1705
1915
|
activeTool: {
|
|
1706
1916
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1707
1917
|
locked: boolean;
|
|
@@ -1724,7 +1934,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1724
1934
|
currentItemTextAlign: string;
|
|
1725
1935
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1726
1936
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1937
|
+
currentHoveredFontFamily: number | null;
|
|
1727
1938
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1939
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1728
1940
|
viewBackgroundColor: string;
|
|
1729
1941
|
scrollX: number;
|
|
1730
1942
|
scrollY: number;
|
|
@@ -1737,7 +1949,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1737
1949
|
value: import("../types").NormalizedZoomValue;
|
|
1738
1950
|
}>;
|
|
1739
1951
|
openMenu: "canvas" | "shape" | null;
|
|
1740
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1952
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1741
1953
|
openSidebar: {
|
|
1742
1954
|
name: string;
|
|
1743
1955
|
tab?: string | undefined;
|
|
@@ -1802,7 +2014,10 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1802
2014
|
isSpeaking?: boolean | undefined;
|
|
1803
2015
|
isMuted?: boolean | undefined;
|
|
1804
2016
|
}>>;
|
|
1805
|
-
|
|
2017
|
+
stats: {
|
|
2018
|
+
open: boolean;
|
|
2019
|
+
panels: number;
|
|
2020
|
+
};
|
|
1806
2021
|
currentChartType: import("../element/types").ChartType;
|
|
1807
2022
|
pasteDialog: {
|
|
1808
2023
|
shown: false;
|
|
@@ -1813,7 +2028,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1813
2028
|
};
|
|
1814
2029
|
pendingImageElementId: string | null;
|
|
1815
2030
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1816
|
-
selectedLinearElement:
|
|
2031
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1817
2032
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1818
2033
|
originSnapOffset: {
|
|
1819
2034
|
x: number;
|
|
@@ -1823,7 +2038,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1823
2038
|
userToFollow: import("../types").UserToFollow | null;
|
|
1824
2039
|
followedBy: Set<import("../types").SocketId>;
|
|
1825
2040
|
};
|
|
1826
|
-
storeAction:
|
|
2041
|
+
storeAction: "capture";
|
|
1827
2042
|
};
|
|
1828
2043
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1829
2044
|
} & {
|
|
@@ -1854,7 +2069,7 @@ export declare const actionChangeRoundness: {
|
|
|
1854
2069
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1855
2070
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1856
2071
|
isBindingEnabled: boolean;
|
|
1857
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
2072
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1858
2073
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
1859
2074
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
1860
2075
|
frameRendering: {
|
|
@@ -1866,7 +2081,7 @@ export declare const actionChangeRoundness: {
|
|
|
1866
2081
|
editingFrame: string | null;
|
|
1867
2082
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1868
2083
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
1869
|
-
editingLinearElement:
|
|
2084
|
+
editingLinearElement: LinearElementEditor | null;
|
|
1870
2085
|
activeTool: {
|
|
1871
2086
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1872
2087
|
locked: boolean;
|
|
@@ -1889,6 +2104,8 @@ export declare const actionChangeRoundness: {
|
|
|
1889
2104
|
currentItemTextAlign: string;
|
|
1890
2105
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1891
2106
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2107
|
+
currentHoveredFontFamily: number | null;
|
|
2108
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1892
2109
|
viewBackgroundColor: string;
|
|
1893
2110
|
scrollX: number;
|
|
1894
2111
|
scrollY: number;
|
|
@@ -1901,7 +2118,7 @@ export declare const actionChangeRoundness: {
|
|
|
1901
2118
|
value: import("../types").NormalizedZoomValue;
|
|
1902
2119
|
}>;
|
|
1903
2120
|
openMenu: "canvas" | "shape" | null;
|
|
1904
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2121
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1905
2122
|
openSidebar: {
|
|
1906
2123
|
name: string;
|
|
1907
2124
|
tab?: string | undefined;
|
|
@@ -1966,7 +2183,10 @@ export declare const actionChangeRoundness: {
|
|
|
1966
2183
|
isSpeaking?: boolean | undefined;
|
|
1967
2184
|
isMuted?: boolean | undefined;
|
|
1968
2185
|
}>>;
|
|
1969
|
-
|
|
2186
|
+
stats: {
|
|
2187
|
+
open: boolean;
|
|
2188
|
+
panels: number;
|
|
2189
|
+
};
|
|
1970
2190
|
currentChartType: import("../element/types").ChartType;
|
|
1971
2191
|
pasteDialog: {
|
|
1972
2192
|
shown: false;
|
|
@@ -1977,7 +2197,7 @@ export declare const actionChangeRoundness: {
|
|
|
1977
2197
|
};
|
|
1978
2198
|
pendingImageElementId: string | null;
|
|
1979
2199
|
showHyperlinkPopup: false | "info" | "editor";
|
|
1980
|
-
selectedLinearElement:
|
|
2200
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
1981
2201
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1982
2202
|
originSnapOffset: {
|
|
1983
2203
|
x: number;
|
|
@@ -1987,7 +2207,7 @@ export declare const actionChangeRoundness: {
|
|
|
1987
2207
|
userToFollow: import("../types").UserToFollow | null;
|
|
1988
2208
|
followedBy: Set<import("../types").SocketId>;
|
|
1989
2209
|
};
|
|
1990
|
-
storeAction:
|
|
2210
|
+
storeAction: "capture";
|
|
1991
2211
|
};
|
|
1992
2212
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1993
2213
|
} & {
|
|
@@ -2020,7 +2240,177 @@ export declare const actionChangeArrowhead: {
|
|
|
2020
2240
|
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2021
2241
|
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2022
2242
|
isBindingEnabled: boolean;
|
|
2023
|
-
startBoundElement: import("../element/types").NonDeleted<
|
|
2243
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2244
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
2245
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
2246
|
+
frameRendering: {
|
|
2247
|
+
enabled: boolean;
|
|
2248
|
+
name: boolean;
|
|
2249
|
+
outline: boolean;
|
|
2250
|
+
clip: boolean;
|
|
2251
|
+
};
|
|
2252
|
+
editingFrame: string | null;
|
|
2253
|
+
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2254
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2255
|
+
editingLinearElement: LinearElementEditor | null;
|
|
2256
|
+
activeTool: {
|
|
2257
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
2258
|
+
locked: boolean;
|
|
2259
|
+
} & import("../types").ActiveTool;
|
|
2260
|
+
penMode: boolean;
|
|
2261
|
+
penDetected: boolean;
|
|
2262
|
+
exportBackground: boolean;
|
|
2263
|
+
exportEmbedScene: boolean;
|
|
2264
|
+
exportWithDarkMode: boolean;
|
|
2265
|
+
exportScale: number;
|
|
2266
|
+
currentItemStrokeColor: string;
|
|
2267
|
+
currentItemBackgroundColor: string;
|
|
2268
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
2269
|
+
currentItemStrokeWidth: number;
|
|
2270
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
2271
|
+
currentItemRoughness: number;
|
|
2272
|
+
currentItemOpacity: number;
|
|
2273
|
+
currentItemFontFamily: number;
|
|
2274
|
+
currentItemFontSize: number;
|
|
2275
|
+
currentItemTextAlign: string;
|
|
2276
|
+
currentItemStartArrowhead: Arrowhead | null;
|
|
2277
|
+
currentItemEndArrowhead: Arrowhead | null;
|
|
2278
|
+
currentHoveredFontFamily: number | null;
|
|
2279
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
2280
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
2281
|
+
viewBackgroundColor: string;
|
|
2282
|
+
scrollX: number;
|
|
2283
|
+
scrollY: number;
|
|
2284
|
+
cursorButton: "up" | "down";
|
|
2285
|
+
scrolledOutside: boolean;
|
|
2286
|
+
name: string | null;
|
|
2287
|
+
isResizing: boolean;
|
|
2288
|
+
isRotating: boolean;
|
|
2289
|
+
zoom: Readonly<{
|
|
2290
|
+
value: import("../types").NormalizedZoomValue;
|
|
2291
|
+
}>;
|
|
2292
|
+
openMenu: "canvas" | "shape" | null;
|
|
2293
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2294
|
+
openSidebar: {
|
|
2295
|
+
name: string;
|
|
2296
|
+
tab?: string | undefined;
|
|
2297
|
+
} | null;
|
|
2298
|
+
openDialog: {
|
|
2299
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
2300
|
+
} | {
|
|
2301
|
+
name: "settings";
|
|
2302
|
+
source: "settings" | "tool" | "generation";
|
|
2303
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
2304
|
+
} | {
|
|
2305
|
+
name: "ttd";
|
|
2306
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2307
|
+
} | {
|
|
2308
|
+
name: "commandPalette";
|
|
2309
|
+
} | null;
|
|
2310
|
+
defaultSidebarDockedPreference: boolean;
|
|
2311
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
2312
|
+
selectedElementIds: Readonly<{
|
|
2313
|
+
[id: string]: true;
|
|
2314
|
+
}>;
|
|
2315
|
+
previousSelectedElementIds: {
|
|
2316
|
+
[id: string]: true;
|
|
2317
|
+
};
|
|
2318
|
+
selectedElementsAreBeingDragged: boolean;
|
|
2319
|
+
shouldCacheIgnoreZoom: boolean;
|
|
2320
|
+
toast: {
|
|
2321
|
+
message: string;
|
|
2322
|
+
closable?: boolean | undefined;
|
|
2323
|
+
duration?: number | undefined;
|
|
2324
|
+
} | null;
|
|
2325
|
+
zenModeEnabled: boolean;
|
|
2326
|
+
theme: import("../element/types").Theme;
|
|
2327
|
+
gridSize: number | null;
|
|
2328
|
+
viewModeEnabled: boolean;
|
|
2329
|
+
selectedGroupIds: {
|
|
2330
|
+
[groupId: string]: boolean;
|
|
2331
|
+
};
|
|
2332
|
+
editingGroupId: string | null;
|
|
2333
|
+
width: number;
|
|
2334
|
+
height: number;
|
|
2335
|
+
offsetTop: number;
|
|
2336
|
+
offsetLeft: number;
|
|
2337
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2338
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
2339
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2340
|
+
button?: "up" | "down" | undefined;
|
|
2341
|
+
selectedElementIds?: Readonly<{
|
|
2342
|
+
[id: string]: true;
|
|
2343
|
+
}> | undefined;
|
|
2344
|
+
username?: string | null | undefined;
|
|
2345
|
+
userState?: import("../types").UserIdleState | undefined;
|
|
2346
|
+
color?: {
|
|
2347
|
+
background: string;
|
|
2348
|
+
stroke: string;
|
|
2349
|
+
} | undefined;
|
|
2350
|
+
avatarUrl?: string | undefined;
|
|
2351
|
+
id?: string | undefined;
|
|
2352
|
+
socketId?: import("../types").SocketId | undefined;
|
|
2353
|
+
isCurrentUser?: boolean | undefined;
|
|
2354
|
+
isInCall?: boolean | undefined;
|
|
2355
|
+
isSpeaking?: boolean | undefined;
|
|
2356
|
+
isMuted?: boolean | undefined;
|
|
2357
|
+
}>>;
|
|
2358
|
+
stats: {
|
|
2359
|
+
open: boolean;
|
|
2360
|
+
panels: number;
|
|
2361
|
+
};
|
|
2362
|
+
currentChartType: import("../element/types").ChartType;
|
|
2363
|
+
pasteDialog: {
|
|
2364
|
+
shown: false;
|
|
2365
|
+
data: null;
|
|
2366
|
+
} | {
|
|
2367
|
+
shown: true;
|
|
2368
|
+
data: import("../charts").Spreadsheet;
|
|
2369
|
+
};
|
|
2370
|
+
pendingImageElementId: string | null;
|
|
2371
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2372
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
2373
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
2374
|
+
originSnapOffset: {
|
|
2375
|
+
x: number;
|
|
2376
|
+
y: number;
|
|
2377
|
+
} | null;
|
|
2378
|
+
objectsSnapModeEnabled: boolean;
|
|
2379
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
2380
|
+
followedBy: Set<import("../types").SocketId>;
|
|
2381
|
+
};
|
|
2382
|
+
storeAction: "capture";
|
|
2383
|
+
};
|
|
2384
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2385
|
+
} & {
|
|
2386
|
+
keyTest?: undefined;
|
|
2387
|
+
};
|
|
2388
|
+
export declare const actionChangeArrowType: {
|
|
2389
|
+
name: "changeArrowType";
|
|
2390
|
+
label: string;
|
|
2391
|
+
trackEvent: false;
|
|
2392
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2393
|
+
elements: ExcalidrawElement[];
|
|
2394
|
+
appState: {
|
|
2395
|
+
currentItemArrowType: any;
|
|
2396
|
+
contextMenu: {
|
|
2397
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
2398
|
+
top: number;
|
|
2399
|
+
left: number;
|
|
2400
|
+
} | null;
|
|
2401
|
+
showWelcomeScreen: boolean;
|
|
2402
|
+
isLoading: boolean;
|
|
2403
|
+
errorMessage: import("react").ReactNode;
|
|
2404
|
+
activeEmbeddable: {
|
|
2405
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
2406
|
+
state: "hover" | "active";
|
|
2407
|
+
} | null;
|
|
2408
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2409
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2410
|
+
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2411
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2412
|
+
isBindingEnabled: boolean;
|
|
2413
|
+
startBoundElement: import("../element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2024
2414
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
2025
2415
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
2026
2416
|
frameRendering: {
|
|
@@ -2032,7 +2422,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2032
2422
|
editingFrame: string | null;
|
|
2033
2423
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2034
2424
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
2035
|
-
editingLinearElement:
|
|
2425
|
+
editingLinearElement: LinearElementEditor | null;
|
|
2036
2426
|
activeTool: {
|
|
2037
2427
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2038
2428
|
locked: boolean;
|
|
@@ -2055,6 +2445,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2055
2445
|
currentItemTextAlign: string;
|
|
2056
2446
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2057
2447
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2448
|
+
currentHoveredFontFamily: number | null;
|
|
2058
2449
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
2059
2450
|
viewBackgroundColor: string;
|
|
2060
2451
|
scrollX: number;
|
|
@@ -2068,7 +2459,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2068
2459
|
value: import("../types").NormalizedZoomValue;
|
|
2069
2460
|
}>;
|
|
2070
2461
|
openMenu: "canvas" | "shape" | null;
|
|
2071
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2462
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2072
2463
|
openSidebar: {
|
|
2073
2464
|
name: string;
|
|
2074
2465
|
tab?: string | undefined;
|
|
@@ -2133,7 +2524,10 @@ export declare const actionChangeArrowhead: {
|
|
|
2133
2524
|
isSpeaking?: boolean | undefined;
|
|
2134
2525
|
isMuted?: boolean | undefined;
|
|
2135
2526
|
}>>;
|
|
2136
|
-
|
|
2527
|
+
stats: {
|
|
2528
|
+
open: boolean;
|
|
2529
|
+
panels: number;
|
|
2530
|
+
};
|
|
2137
2531
|
currentChartType: import("../element/types").ChartType;
|
|
2138
2532
|
pasteDialog: {
|
|
2139
2533
|
shown: false;
|
|
@@ -2144,7 +2538,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2144
2538
|
};
|
|
2145
2539
|
pendingImageElementId: string | null;
|
|
2146
2540
|
showHyperlinkPopup: false | "info" | "editor";
|
|
2147
|
-
selectedLinearElement:
|
|
2541
|
+
selectedLinearElement: LinearElementEditor | null;
|
|
2148
2542
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2149
2543
|
originSnapOffset: {
|
|
2150
2544
|
x: number;
|
|
@@ -2154,7 +2548,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2154
2548
|
userToFollow: import("../types").UserToFollow | null;
|
|
2155
2549
|
followedBy: Set<import("../types").SocketId>;
|
|
2156
2550
|
};
|
|
2157
|
-
storeAction:
|
|
2551
|
+
storeAction: "capture";
|
|
2158
2552
|
};
|
|
2159
2553
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2160
2554
|
} & {
|