@zsviczian/excalidraw 0.18.0-60 → 0.18.0-62
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/dist/excalidraw.development.js +113 -113
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +2 -2
- package/types/common/src/binary-heap.d.ts +12 -12
- package/types/common/src/colors.d.ts +62 -62
- package/types/common/src/commonObsidianUtils.d.ts +20 -20
- package/types/common/src/constants.d.ts +357 -360
- package/types/common/src/editorInterface.d.ts +35 -35
- package/types/common/src/emitter.d.ts +16 -16
- package/types/common/src/font-metadata.d.ts +46 -48
- package/types/common/src/index.d.ts +15 -15
- package/types/common/src/keys.d.ts +189 -189
- package/types/common/src/points.d.ts +9 -9
- package/types/common/src/promise-pool.d.ts +6 -6
- package/types/common/src/queue.d.ts +9 -9
- package/types/common/src/random.d.ts +4 -4
- package/types/common/src/url.d.ts +7 -7
- package/types/common/src/utility-types.d.ts +37 -37
- package/types/common/src/utils.d.ts +279 -273
- package/types/common/src/visualdebug.d.ts +41 -41
- package/types/element/src/Scene.d.ts +80 -80
- package/types/element/src/align.d.ts +8 -8
- package/types/element/src/binding.d.ts +123 -122
- package/types/element/src/bounds.d.ts +89 -89
- package/types/element/src/collision.d.ts +36 -36
- package/types/element/src/comparisons.d.ts +8 -8
- package/types/element/src/containerCache.d.ts +11 -11
- package/types/element/src/cropElement.d.ts +19 -19
- package/types/element/src/delta.d.ts +228 -228
- package/types/element/src/distance.d.ts +3 -3
- package/types/element/src/distribute.d.ts +7 -7
- package/types/element/src/dragElements.d.ts +33 -33
- package/types/element/src/duplicate.d.ts +63 -63
- package/types/element/src/easingFunctions.d.ts +6 -6
- package/types/element/src/elbowArrow.d.ts +17 -17
- package/types/element/src/elementLink.d.ts +13 -13
- package/types/element/src/embeddable.d.ts +10 -10
- package/types/element/src/flowchart.d.ts +26 -26
- package/types/element/src/fractionalIndex.d.ts +57 -57
- package/types/element/src/frame.d.ts +74 -70
- package/types/element/src/groups.d.ts +34 -34
- package/types/element/src/heading.d.ts +16 -15
- package/types/element/src/image.d.ts +22 -32
- package/types/element/src/index.d.ts +55 -55
- package/types/element/src/linearElementEditor.d.ts +113 -113
- package/types/element/src/mutateElement.d.ts +23 -21
- package/types/element/src/newElement.d.ts +64 -64
- package/types/element/src/positionElementsOnGrid.d.ts +2 -2
- package/types/element/src/renderElement.d.ts +31 -31
- package/types/element/src/resizeElements.d.ts +39 -39
- package/types/element/src/resizeTest.d.ts +16 -16
- package/types/element/src/selection.d.ts +34 -38
- package/types/element/src/shape.d.ts +42 -42
- package/types/element/src/showSelectedShapeActions.d.ts +3 -3
- package/types/element/src/sizeHelpers.d.ts +35 -35
- package/types/element/src/sortElements.d.ts +2 -2
- package/types/element/src/store.d.ts +237 -237
- package/types/element/src/textElement.d.ts +40 -40
- package/types/element/src/textMeasurements.d.ts +39 -41
- package/types/element/src/textWrapping.d.ts +13 -13
- package/types/element/src/transformHandles.d.ts +36 -56
- package/types/element/src/typeChecks.d.ts +56 -56
- package/types/element/src/types.d.ts +304 -304
- package/types/element/src/utils.d.ts +34 -32
- package/types/element/src/zindex.d.ts +13 -13
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +599 -662
- package/types/excalidraw/actions/actionAlign.d.ts +109 -109
- package/types/excalidraw/actions/actionBoundText.d.ts +436 -478
- package/types/excalidraw/actions/actionCanvas.d.ts +2920 -3204
- package/types/excalidraw/actions/actionClipboard.d.ts +475 -517
- package/types/excalidraw/actions/actionCropEditor.d.ts +212 -233
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +633 -700
- package/types/excalidraw/actions/actionDistribute.d.ts +34 -34
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +17 -17
- package/types/excalidraw/actions/actionElementLink.d.ts +232 -253
- package/types/excalidraw/actions/actionElementLock.d.ts +422 -464
- package/types/excalidraw/actions/actionEmbeddable.d.ts +209 -230
- package/types/excalidraw/actions/actionExport.d.ts +835 -919
- package/types/excalidraw/actions/actionFinalize.d.ts +13 -13
- package/types/excalidraw/actions/actionFlip.d.ts +34 -34
- package/types/excalidraw/actions/actionFrame.d.ts +1315 -1435
- package/types/excalidraw/actions/actionGroup.d.ts +426 -476
- package/types/excalidraw/actions/actionHistory.d.ts +6 -6
- package/types/excalidraw/actions/actionLinearEditor.d.ts +709 -766
- package/types/excalidraw/actions/actionLink.d.ts +213 -234
- package/types/excalidraw/actions/actionMenu.d.ts +201 -222
- package/types/excalidraw/actions/actionNavigate.d.ts +20 -22
- package/types/excalidraw/actions/actionProperties.d.ts +695 -758
- package/types/excalidraw/actions/actionSelectAll.d.ts +208 -233
- package/types/excalidraw/actions/actionStyles.d.ts +226 -247
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -17
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +215 -236
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +213 -234
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +204 -225
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -19
- package/types/excalidraw/actions/actionToggleStats.d.ts +212 -233
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +213 -234
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +213 -234
- package/types/excalidraw/actions/actionTrayMenu.d.ts +208 -229
- package/types/excalidraw/actions/actionZindex.d.ts +74 -74
- package/types/excalidraw/actions/index.d.ts +30 -30
- package/types/excalidraw/actions/manager.d.ts +21 -21
- package/types/excalidraw/actions/register.d.ts +5 -5
- package/types/excalidraw/actions/shortcuts.d.ts +4 -4
- package/types/excalidraw/actions/types.d.ts +47 -47
- package/types/excalidraw/analytics.d.ts +1 -1
- package/types/excalidraw/animated-trail.d.ts +39 -39
- package/types/excalidraw/animation-frame-handler.d.ts +16 -16
- package/types/excalidraw/appState.d.ts +105 -105
- package/types/excalidraw/charts.d.ts +27 -27
- package/types/excalidraw/clients.d.ts +14 -14
- package/types/excalidraw/clipboard.d.ts +105 -129
- package/types/excalidraw/components/Actions.d.ts +48 -48
- package/types/excalidraw/components/ActiveConfirmDialog.d.ts +4 -4
- package/types/excalidraw/components/App.d.ts +572 -581
- package/types/excalidraw/components/Avatar.d.ts +11 -11
- package/types/excalidraw/components/BraveMeasureTextError.d.ts +2 -2
- package/types/excalidraw/components/Button.d.ts +17 -17
- package/types/excalidraw/components/ButtonIcon.d.ts +16 -16
- package/types/excalidraw/components/ButtonIconCycle.d.ts +11 -11
- package/types/excalidraw/components/ButtonSeparator.d.ts +1 -1
- package/types/excalidraw/components/Card.d.ts +6 -6
- package/types/excalidraw/components/CheckboxItem.d.ts +8 -8
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +10 -10
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +23 -23
- package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +8 -8
- package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -7
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +19 -19
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +10 -10
- package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +5 -5
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +9 -9
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +9 -9
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +21 -21
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +20 -20
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +19 -19
- package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +2 -2
- package/types/excalidraw/components/CommandPalette/types.d.ts +24 -24
- package/types/excalidraw/components/ConfirmDialog.d.ts +10 -10
- package/types/excalidraw/components/ContextMenu.d.ts +16 -16
- package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -23
- package/types/excalidraw/components/DarkModeToggle.d.ts +7 -7
- package/types/excalidraw/components/DefaultSidebar.d.ts +27 -30
- package/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +4 -4
- package/types/excalidraw/components/Dialog.d.ts +13 -13
- package/types/excalidraw/components/DialogActionButton.d.ts +10 -10
- package/types/excalidraw/components/ElementCanvasButtons.d.ts +7 -7
- package/types/excalidraw/components/ElementLinkDialog.d.ts +12 -12
- package/types/excalidraw/components/Ellipsify.d.ts +3 -3
- package/types/excalidraw/components/ErrorDialog.d.ts +5 -5
- package/types/excalidraw/components/ExcalidrawLogo.d.ts +15 -15
- package/types/excalidraw/components/EyeDropper.d.ts +27 -27
- package/types/excalidraw/components/FilledButton.d.ts +18 -18
- package/types/excalidraw/components/FixedSideContainer.d.ts +10 -10
- package/types/excalidraw/components/FollowMode/FollowMode.d.ts +10 -10
- package/types/excalidraw/components/FontPicker/FontPicker.d.ts +22 -22
- package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +26 -26
- package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +8 -8
- package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +13 -13
- package/types/excalidraw/components/HandButton.d.ts +10 -10
- package/types/excalidraw/components/HelpButton.d.ts +7 -7
- package/types/excalidraw/components/HelpDialog.d.ts +4 -4
- package/types/excalidraw/components/HintViewer.d.ts +11 -11
- package/types/excalidraw/components/IconPicker.d.ts +15 -15
- package/types/excalidraw/components/ImageExportDialog.d.ts +14 -14
- package/types/excalidraw/components/InitializeApp.d.ts +10 -10
- package/types/excalidraw/components/InlineIcon.d.ts +5 -5
- package/types/excalidraw/components/Island.d.ts +10 -10
- package/types/excalidraw/components/JSONExportDialog.d.ts +15 -15
- package/types/excalidraw/components/LaserPointerButton.d.ts +10 -10
- package/types/excalidraw/components/LayerUI.d.ts +32 -32
- package/types/excalidraw/components/LibraryMenu.d.ts +10 -10
- package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +7 -7
- package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +9 -9
- package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +17 -17
- package/types/excalidraw/components/LibraryMenuItems.d.ts +14 -14
- package/types/excalidraw/components/LibraryMenuSection.d.ts +23 -23
- package/types/excalidraw/components/LibraryUnit.d.ts +14 -14
- package/types/excalidraw/components/LinkButton.d.ts +4 -4
- package/types/excalidraw/components/LoadingMessage.d.ts +5 -5
- package/types/excalidraw/components/LockButton.d.ts +10 -10
- package/types/excalidraw/components/MagicButton.d.ts +10 -10
- package/types/excalidraw/components/MobileMenu.d.ts +24 -24
- package/types/excalidraw/components/MobileToolBar.d.ts +10 -10
- package/types/excalidraw/components/Modal.d.ts +14 -14
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +17 -17
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +17 -17
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +22 -22
- package/types/excalidraw/components/Paragraph.d.ts +4 -4
- package/types/excalidraw/components/PasteChartDialog.d.ts +8 -8
- package/types/excalidraw/components/PenModeButton.d.ts +12 -12
- package/types/excalidraw/components/Popover.d.ts +16 -16
- package/types/excalidraw/components/ProjectName.d.ts +10 -10
- package/types/excalidraw/components/PropertiesPopover.d.ts +16 -16
- package/types/excalidraw/components/PublishLibrary.d.ts +16 -16
- package/types/excalidraw/components/QuickSearch.d.ts +9 -9
- package/types/excalidraw/components/RadioGroup.d.ts +13 -13
- package/types/excalidraw/components/RadioSelection.d.ts +20 -20
- package/types/excalidraw/components/Range.d.ts +8 -8
- package/types/excalidraw/components/SVGLayer.d.ts +7 -7
- package/types/excalidraw/components/ScrollableList.d.ts +8 -8
- package/types/excalidraw/components/SearchMenu.d.ts +5 -5
- package/types/excalidraw/components/Section.d.ts +7 -7
- package/types/excalidraw/components/ShareableLinkDialog.d.ts +7 -7
- package/types/excalidraw/components/Sidebar/Sidebar.d.ts +70 -76
- package/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +7 -7
- package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +8 -8
- package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +9 -9
- package/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +6 -6
- package/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +6 -6
- package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +6 -6
- package/types/excalidraw/components/Sidebar/common.d.ts +34 -34
- package/types/excalidraw/components/Spinner.d.ts +8 -8
- package/types/excalidraw/components/Stack.d.ts +15 -15
- package/types/excalidraw/components/Stats/Angle.d.ts +11 -11
- package/types/excalidraw/components/Stats/CanvasGrid.d.ts +10 -10
- package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +10 -10
- package/types/excalidraw/components/Stats/Collapsible.d.ts +10 -10
- package/types/excalidraw/components/Stats/Dimension.d.ts +11 -11
- package/types/excalidraw/components/Stats/DragInput.d.ts +44 -44
- package/types/excalidraw/components/Stats/FontSize.d.ts +11 -11
- package/types/excalidraw/components/Stats/MultiAngle.d.ts +11 -11
- package/types/excalidraw/components/Stats/MultiDimension.d.ts +14 -14
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +12 -12
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +14 -14
- package/types/excalidraw/components/Stats/Position.d.ts +12 -12
- package/types/excalidraw/components/Stats/index.d.ts +35 -35
- package/types/excalidraw/components/Stats/utils.d.ts +19 -19
- package/types/excalidraw/components/Switch.d.ts +9 -9
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +8 -8
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +10 -10
- package/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +29 -29
- package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +9 -9
- package/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +7 -7
- package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +17 -17
- package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +4 -4
- package/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +7 -7
- package/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -8
- package/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -6
- package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +11 -11
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +8 -8
- package/types/excalidraw/components/TTDDialog/common.d.ts +32 -32
- package/types/excalidraw/components/TextField.d.ts +22 -22
- package/types/excalidraw/components/Toast.d.ts +9 -9
- package/types/excalidraw/components/ToolButton.d.ts +49 -49
- package/types/excalidraw/components/ToolPopover.d.ts +25 -25
- package/types/excalidraw/components/Tooltip.d.ts +18 -18
- package/types/excalidraw/components/Trans.d.ts +9 -9
- package/types/excalidraw/components/TrayMenu.d.ts +26 -26
- package/types/excalidraw/components/UnlockPopup.d.ts +8 -8
- package/types/excalidraw/components/UserList.d.ts +18 -18
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +33 -33
- package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +14 -14
- package/types/excalidraw/components/canvases/StaticCanvas.d.ts +19 -19
- package/types/excalidraw/components/canvases/index.d.ts +3 -3
- package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +84 -88
- package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +16 -16
- package/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +11 -11
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +38 -46
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +8 -8
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -17
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +7 -7
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +16 -16
- package/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +5 -5
- package/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +10 -10
- package/types/excalidraw/components/dropdownMenu/common.d.ts +6 -6
- package/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +3 -3
- package/types/excalidraw/components/footer/Footer.d.ts +12 -12
- package/types/excalidraw/components/footer/FooterCenter.d.ts +8 -8
- package/types/excalidraw/components/hoc/withInternalFallback.d.ts +4 -4
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +19 -19
- package/types/excalidraw/components/hyperlink/helpers.d.ts +10 -10
- package/types/excalidraw/components/icons.d.ts +241 -241
- package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +11 -22
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +64 -64
- package/types/excalidraw/components/main-menu/MainMenu.d.ts +78 -80
- package/types/excalidraw/components/shapes.d.ts +172 -172
- package/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +60 -60
- package/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +19 -19
- package/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +86 -86
- package/types/excalidraw/context/tunnels.d.ts +21 -21
- package/types/excalidraw/context/ui-appState.d.ts +4 -4
- package/types/excalidraw/cursor.d.ts +6 -6
- package/types/excalidraw/data/EditorLocalStorage.d.ts +8 -8
- package/types/excalidraw/data/ai/types.d.ts +242 -242
- package/types/excalidraw/data/blob.d.ts +57 -49
- package/types/excalidraw/data/encode.d.ts +55 -55
- package/types/excalidraw/data/encryption.d.ts +9 -9
- package/types/excalidraw/data/filesystem.d.ts +21 -21
- package/types/excalidraw/data/image.d.ts +9 -9
- package/types/excalidraw/data/index.d.ts +22 -22
- package/types/excalidraw/data/json.d.ts +18 -16
- package/types/excalidraw/data/library.d.ts +127 -112
- package/types/excalidraw/data/reconcile.d.ts +7 -7
- package/types/excalidraw/data/resave.d.ts +5 -5
- package/types/excalidraw/data/restore.d.ts +35 -26
- package/types/excalidraw/data/transform.d.ts +81 -81
- package/types/excalidraw/data/types.d.ts +48 -48
- package/types/excalidraw/deburr.d.ts +1 -1
- package/types/excalidraw/dist/excalidraw.development.d.ts +2 -2
- package/types/excalidraw/dist/excalidraw.production.min.d.ts +2 -3
- package/types/excalidraw/editor-jotai.d.ts +56 -56
- package/types/excalidraw/entry.d.ts +1 -1
- package/types/excalidraw/env.d.cts +1 -1
- package/types/excalidraw/env.d.ts +1 -1
- package/types/excalidraw/eraser/index.d.ts +12 -12
- package/types/excalidraw/errors.d.ts +29 -29
- package/types/excalidraw/fonts/Cascadia/index.d.ts +2 -2
- package/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -2
- package/types/excalidraw/fonts/Emoji/index.d.ts +2 -2
- package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +29 -29
- package/types/excalidraw/fonts/Excalifont/index.d.ts +2 -2
- package/types/excalidraw/fonts/Fonts.d.ts +90 -90
- package/types/excalidraw/fonts/Helvetica/index.d.ts +2 -2
- package/types/excalidraw/fonts/Liberation/index.d.ts +2 -2
- package/types/excalidraw/fonts/Lilita/index.d.ts +2 -2
- package/types/excalidraw/fonts/Nunito/index.d.ts +2 -2
- package/types/excalidraw/fonts/Virgil/index.d.ts +2 -2
- package/types/excalidraw/fonts/Xiaolai/index.d.ts +8 -8
- package/types/excalidraw/fonts/index.d.ts +1 -1
- package/types/excalidraw/gesture.d.ts +6 -6
- package/types/excalidraw/history.d.ts +48 -48
- package/types/excalidraw/hooks/useCallbackRefState.d.ts +1 -1
- package/types/excalidraw/hooks/useCopiedIndicator.d.ts +5 -5
- package/types/excalidraw/hooks/useCreatePortalContainer.d.ts +7 -7
- package/types/excalidraw/hooks/useEmitter.d.ts +2 -2
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +11 -11
- package/types/excalidraw/hooks/useOutsideClick.d.ts +21 -21
- package/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
- package/types/excalidraw/hooks/useStable.d.ts +1 -1
- package/types/excalidraw/hooks/useStableCallback.d.ts +4 -4
- package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -14
- package/types/excalidraw/hooks/useTransition.d.ts +2 -2
- package/types/excalidraw/i18n.d.ts +24 -24
- package/types/excalidraw/index-node.d.ts +1 -1
- package/types/excalidraw/index.d.ts +60 -60
- package/types/excalidraw/laser-trails.d.ts +20 -20
- package/types/excalidraw/lasso/index.d.ts +16 -16
- package/types/excalidraw/lasso/utils.d.ts +13 -13
- package/types/excalidraw/main.d.ts +2 -2
- package/types/excalidraw/mermaid.d.ts +2 -2
- package/types/excalidraw/obsidianUtils.d.ts +41 -41
- package/types/excalidraw/polyfill.d.ts +2 -2
- package/types/excalidraw/publicPath.d.ts +1 -1
- package/types/excalidraw/reactUtils.d.ts +14 -14
- package/types/excalidraw/renderer/animation.d.ts +12 -12
- package/types/excalidraw/renderer/helpers.d.ts +16 -14
- package/types/excalidraw/renderer/interactiveScene.d.ts +14 -12
- package/types/excalidraw/renderer/renderNewElementScene.d.ts +7 -7
- package/types/excalidraw/renderer/renderSnaps.d.ts +2 -2
- package/types/excalidraw/renderer/roundRect.d.ts +11 -11
- package/types/excalidraw/renderer/staticScene.d.ts +14 -14
- package/types/excalidraw/renderer/staticSvgScene.d.ts +5 -5
- package/types/excalidraw/scene/Renderer.d.ts +29 -27
- package/types/excalidraw/scene/export.d.ts +37 -37
- package/types/excalidraw/scene/index.d.ts +4 -4
- package/types/excalidraw/scene/normalize.d.ts +4 -4
- package/types/excalidraw/scene/scroll.d.ts +18 -23
- package/types/excalidraw/scene/scrollbars.d.ts +11 -11
- package/types/excalidraw/scene/types.d.ts +134 -134
- package/types/excalidraw/scene/zoom.d.ts +12 -12
- package/types/excalidraw/shortcut.d.ts +1 -1
- package/types/excalidraw/snapping.d.ts +111 -111
- package/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +45 -45
- package/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +13 -13
- package/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +2 -2
- package/types/excalidraw/subset/subset-main.d.ts +12 -12
- package/types/excalidraw/subset/subset-shared.chunk.d.ts +32 -32
- package/types/excalidraw/subset/subset-worker.chunk.d.ts +15 -15
- package/types/excalidraw/subset/woff2/woff2-bindings.d.ts +31 -31
- package/types/excalidraw/subset/woff2/woff2-loader.d.ts +14 -14
- package/types/excalidraw/subset/woff2/woff2-wasm.d.ts +2 -2
- package/types/excalidraw/types.d.ts +801 -801
- package/types/excalidraw/webpack.dev.config.d.ts +116 -116
- package/types/excalidraw/webpack.prod.config.d.ts +130 -130
- package/types/excalidraw/workers.d.ts +36 -36
- package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +24 -24
- package/types/math/src/angle.d.ts +19 -19
- package/types/math/src/constants.d.ts +3 -3
- package/types/math/src/curve.d.ts +74 -74
- package/types/math/src/ellipse.d.ts +44 -44
- package/types/math/src/index.d.ts +13 -13
- package/types/math/src/line.d.ts +17 -17
- package/types/math/src/point.d.ts +122 -122
- package/types/math/src/polygon.d.ts +6 -6
- package/types/math/src/range.d.ts +44 -44
- package/types/math/src/rectangle.d.ts +5 -5
- package/types/math/src/segment.d.ts +40 -40
- package/types/math/src/triangle.d.ts +11 -11
- package/types/math/src/types.d.ts +106 -106
- package/types/math/src/utils.d.ts +7 -7
- package/types/math/src/vector.d.ts +94 -94
- package/types/utils/src/bbox.d.ts +9 -9
- package/types/utils/src/export.d.ts +35 -35
- package/types/utils/src/index.d.ts +4 -4
- package/types/utils/src/shape.d.ts +58 -58
- package/types/utils/src/withinBounds.d.ts +19 -19
|
@@ -1,919 +1,835 @@
|
|
|
1
|
-
import type { Theme } from "@excalidraw/element/types";
|
|
2
|
-
import "../components/ToolIcon.scss";
|
|
3
|
-
import type { AppState } from "../types";
|
|
4
|
-
export declare const actionChangeProjectName: import("./types").Action<string | null> & {
|
|
5
|
-
keyTest?: ((event: KeyboardEvent |
|
|
6
|
-
};
|
|
7
|
-
export declare const actionChangeExportScale: import("./types").Action<number> & {
|
|
8
|
-
keyTest?: ((event: KeyboardEvent |
|
|
9
|
-
};
|
|
10
|
-
export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
|
|
11
|
-
keyTest?: ((event: KeyboardEvent |
|
|
12
|
-
};
|
|
13
|
-
export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
|
|
14
|
-
keyTest?: ((event: KeyboardEvent |
|
|
15
|
-
};
|
|
16
|
-
export declare const actionSaveToActiveFile: {
|
|
17
|
-
name: "saveToActiveFile";
|
|
18
|
-
label: string;
|
|
19
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
trackEvent: {
|
|
21
|
-
category: "export";
|
|
22
|
-
};
|
|
23
|
-
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
24
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
25
|
-
captureUpdate: "EVENTUALLY";
|
|
26
|
-
appState: {
|
|
27
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
28
|
-
toast: {
|
|
29
|
-
message: string;
|
|
30
|
-
} | null;
|
|
31
|
-
contextMenu: {
|
|
32
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
33
|
-
top: number;
|
|
34
|
-
left: number;
|
|
35
|
-
} | null;
|
|
36
|
-
showWelcomeScreen: boolean;
|
|
37
|
-
isLoading: boolean;
|
|
38
|
-
errorMessage:
|
|
39
|
-
activeEmbeddable: {
|
|
40
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
41
|
-
state: "
|
|
42
|
-
} | null;
|
|
43
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
44
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
46
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
47
|
-
isBindingEnabled: boolean;
|
|
48
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
49
|
-
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
50
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
51
|
-
frameRendering: {
|
|
52
|
-
enabled: boolean;
|
|
53
|
-
name: boolean;
|
|
54
|
-
outline: boolean;
|
|
55
|
-
clip: boolean;
|
|
56
|
-
markerName: boolean;
|
|
57
|
-
markerEnabled: boolean;
|
|
58
|
-
};
|
|
59
|
-
editingFrame: string | null;
|
|
60
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
61
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
|
-
activeTool: {
|
|
63
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
|
-
locked: boolean;
|
|
65
|
-
fromSelection: boolean;
|
|
66
|
-
} & import("../types").ActiveTool;
|
|
67
|
-
preferredSelectionTool: {
|
|
68
|
-
type: "selection" | "lasso";
|
|
69
|
-
initialized: boolean;
|
|
70
|
-
};
|
|
71
|
-
penMode: boolean;
|
|
72
|
-
penDetected: boolean;
|
|
73
|
-
exportBackground: boolean;
|
|
74
|
-
exportEmbedScene: boolean;
|
|
75
|
-
exportWithDarkMode: boolean;
|
|
76
|
-
exportScale: number;
|
|
77
|
-
currentItemStrokeColor: string;
|
|
78
|
-
currentItemBackgroundColor: string;
|
|
79
|
-
currentItemFillStyle: import("@excalidraw/element/types").
|
|
80
|
-
currentItemStrokeWidth: number;
|
|
81
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").
|
|
82
|
-
currentItemRoughness: number;
|
|
83
|
-
currentItemOpacity: number;
|
|
84
|
-
currentItemFontFamily:
|
|
85
|
-
currentItemFontSize: number;
|
|
86
|
-
currentItemTextAlign:
|
|
87
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
88
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
89
|
-
currentHoveredFontFamily:
|
|
90
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
91
|
-
currentItemArrowType: "
|
|
92
|
-
currentItemFrameRole: ("
|
|
93
|
-
viewBackgroundColor: string;
|
|
94
|
-
scrollX: number;
|
|
95
|
-
scrollY: number;
|
|
96
|
-
cursorButton: "up" | "down";
|
|
97
|
-
scrolledOutside: boolean;
|
|
98
|
-
name: string | null;
|
|
99
|
-
isResizing: boolean;
|
|
100
|
-
isRotating: boolean;
|
|
101
|
-
zoom:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
name: "
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
} | {
|
|
116
|
-
name: "
|
|
117
|
-
} | {
|
|
118
|
-
name: "
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
name:
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
isInCall?: boolean | undefined;
|
|
837
|
-
isSpeaking?: boolean | undefined;
|
|
838
|
-
isMuted?: boolean | undefined;
|
|
839
|
-
}>>;
|
|
840
|
-
stats: {
|
|
841
|
-
open: boolean;
|
|
842
|
-
panels: number;
|
|
843
|
-
};
|
|
844
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
845
|
-
pasteDialog: {
|
|
846
|
-
shown: false;
|
|
847
|
-
data: null;
|
|
848
|
-
} | {
|
|
849
|
-
shown: true;
|
|
850
|
-
data: import("../charts").Spreadsheet;
|
|
851
|
-
};
|
|
852
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
853
|
-
linkOpacity: number;
|
|
854
|
-
colorPalette?: {
|
|
855
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
856
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
857
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
858
|
-
topPicks: {
|
|
859
|
-
canvasBackground: [string, string, string, string, string];
|
|
860
|
-
elementStroke: [string, string, string, string, string];
|
|
861
|
-
elementBackground: [string, string, string, string, string];
|
|
862
|
-
};
|
|
863
|
-
} | undefined;
|
|
864
|
-
allowWheelZoom?: boolean | undefined;
|
|
865
|
-
allowPinchZoom?: boolean | undefined;
|
|
866
|
-
disableContextMenu: boolean;
|
|
867
|
-
pinnedScripts?: string[] | undefined;
|
|
868
|
-
customPens?: any[] | undefined;
|
|
869
|
-
currentStrokeOptions?: any;
|
|
870
|
-
resetCustomPen?: any;
|
|
871
|
-
gridColor: {
|
|
872
|
-
Bold: string;
|
|
873
|
-
Regular: string;
|
|
874
|
-
};
|
|
875
|
-
gridDirection: {
|
|
876
|
-
horizontal: boolean;
|
|
877
|
-
vertical: boolean;
|
|
878
|
-
};
|
|
879
|
-
highlightSearchResult: boolean;
|
|
880
|
-
dynamicStyle: {
|
|
881
|
-
[x: string]: string;
|
|
882
|
-
};
|
|
883
|
-
frameColor: {
|
|
884
|
-
stroke: string;
|
|
885
|
-
fill: string;
|
|
886
|
-
nameColor: string;
|
|
887
|
-
};
|
|
888
|
-
invertBindingBehaviour: boolean;
|
|
889
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
890
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
891
|
-
originSnapOffset: {
|
|
892
|
-
x: number;
|
|
893
|
-
y: number;
|
|
894
|
-
} | null;
|
|
895
|
-
objectsSnapModeEnabled: boolean;
|
|
896
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
897
|
-
followedBy: Set<import("../types").SocketId>;
|
|
898
|
-
isCropping: boolean;
|
|
899
|
-
croppingElementId: string | null;
|
|
900
|
-
searchMatches: Readonly<{
|
|
901
|
-
focusedId: string | null;
|
|
902
|
-
matches: readonly import("../types").SearchMatch[];
|
|
903
|
-
}> | null;
|
|
904
|
-
activeLockedId: string | null;
|
|
905
|
-
lockedMultiSelections: {
|
|
906
|
-
[groupId: string]: true;
|
|
907
|
-
};
|
|
908
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
909
|
-
};
|
|
910
|
-
files: import("../types").BinaryFiles;
|
|
911
|
-
captureUpdate: "EVENTUALLY";
|
|
912
|
-
}>;
|
|
913
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
914
|
-
} & {
|
|
915
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
916
|
-
};
|
|
917
|
-
export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
|
|
918
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
919
|
-
};
|
|
1
|
+
import type { Theme } from "@excalidraw/element/types";
|
|
2
|
+
import "../components/ToolIcon.scss";
|
|
3
|
+
import type { AppState } from "../types";
|
|
4
|
+
export declare const actionChangeProjectName: import("./types").Action<string | null> & {
|
|
5
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
6
|
+
};
|
|
7
|
+
export declare const actionChangeExportScale: import("./types").Action<number> & {
|
|
8
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
|
|
11
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
12
|
+
};
|
|
13
|
+
export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
|
|
14
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
15
|
+
};
|
|
16
|
+
export declare const actionSaveToActiveFile: {
|
|
17
|
+
name: "saveToActiveFile";
|
|
18
|
+
label: string;
|
|
19
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
trackEvent: {
|
|
21
|
+
category: "export";
|
|
22
|
+
};
|
|
23
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
24
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
25
|
+
captureUpdate: "EVENTUALLY";
|
|
26
|
+
appState: {
|
|
27
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
28
|
+
toast: {
|
|
29
|
+
message: string;
|
|
30
|
+
} | null;
|
|
31
|
+
contextMenu: {
|
|
32
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
33
|
+
top: number;
|
|
34
|
+
left: number;
|
|
35
|
+
} | null;
|
|
36
|
+
showWelcomeScreen: boolean;
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
errorMessage: React.ReactNode;
|
|
39
|
+
activeEmbeddable: {
|
|
40
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
41
|
+
state: "hover" | "active";
|
|
42
|
+
} | null;
|
|
43
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
44
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
46
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
47
|
+
isBindingEnabled: boolean;
|
|
48
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
49
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
50
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
51
|
+
frameRendering: {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
name: boolean;
|
|
54
|
+
outline: boolean;
|
|
55
|
+
clip: boolean;
|
|
56
|
+
markerName: boolean;
|
|
57
|
+
markerEnabled: boolean;
|
|
58
|
+
};
|
|
59
|
+
editingFrame: string | null;
|
|
60
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
61
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
|
+
activeTool: {
|
|
63
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
|
+
locked: boolean;
|
|
65
|
+
fromSelection: boolean;
|
|
66
|
+
} & import("../types").ActiveTool;
|
|
67
|
+
preferredSelectionTool: {
|
|
68
|
+
type: "selection" | "lasso";
|
|
69
|
+
initialized: boolean;
|
|
70
|
+
};
|
|
71
|
+
penMode: boolean;
|
|
72
|
+
penDetected: boolean;
|
|
73
|
+
exportBackground: boolean;
|
|
74
|
+
exportEmbedScene: boolean;
|
|
75
|
+
exportWithDarkMode: boolean;
|
|
76
|
+
exportScale: number;
|
|
77
|
+
currentItemStrokeColor: string;
|
|
78
|
+
currentItemBackgroundColor: string;
|
|
79
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
80
|
+
currentItemStrokeWidth: number;
|
|
81
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
82
|
+
currentItemRoughness: number;
|
|
83
|
+
currentItemOpacity: number;
|
|
84
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
85
|
+
currentItemFontSize: number;
|
|
86
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
87
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
88
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
89
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
90
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
91
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
92
|
+
currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
|
|
93
|
+
viewBackgroundColor: string;
|
|
94
|
+
scrollX: number;
|
|
95
|
+
scrollY: number;
|
|
96
|
+
cursorButton: "up" | "down";
|
|
97
|
+
scrolledOutside: boolean;
|
|
98
|
+
name: string | null;
|
|
99
|
+
isResizing: boolean;
|
|
100
|
+
isRotating: boolean;
|
|
101
|
+
zoom: import("../types").Zoom;
|
|
102
|
+
openMenu: "canvas" | "shape" | null;
|
|
103
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
104
|
+
openSidebar: {
|
|
105
|
+
name: import("../types").SidebarName;
|
|
106
|
+
tab?: import("../types").SidebarTabName;
|
|
107
|
+
} | null;
|
|
108
|
+
openDialog: null | {
|
|
109
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
110
|
+
} | {
|
|
111
|
+
name: "ttd";
|
|
112
|
+
tab: "text-to-diagram" | "mermaid";
|
|
113
|
+
} | {
|
|
114
|
+
name: "commandPalette";
|
|
115
|
+
} | {
|
|
116
|
+
name: "settings";
|
|
117
|
+
} | {
|
|
118
|
+
name: "elementLinkSelector";
|
|
119
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
120
|
+
};
|
|
121
|
+
defaultSidebarDockedPreference: boolean;
|
|
122
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
123
|
+
selectedElementIds: Readonly<{
|
|
124
|
+
[id: string]: true;
|
|
125
|
+
}>;
|
|
126
|
+
hoveredElementIds: Readonly<{
|
|
127
|
+
[id: string]: true;
|
|
128
|
+
}>;
|
|
129
|
+
previousSelectedElementIds: {
|
|
130
|
+
[id: string]: true;
|
|
131
|
+
};
|
|
132
|
+
selectedElementsAreBeingDragged: boolean;
|
|
133
|
+
shouldCacheIgnoreZoom: boolean;
|
|
134
|
+
zenModeEnabled: boolean;
|
|
135
|
+
theme: Theme;
|
|
136
|
+
gridSize: number;
|
|
137
|
+
gridStep: number;
|
|
138
|
+
gridModeEnabled: boolean;
|
|
139
|
+
viewModeEnabled: boolean;
|
|
140
|
+
selectedGroupIds: {
|
|
141
|
+
[groupId: string]: boolean;
|
|
142
|
+
};
|
|
143
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
144
|
+
width: number;
|
|
145
|
+
height: number;
|
|
146
|
+
offsetTop: number;
|
|
147
|
+
offsetLeft: number;
|
|
148
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
149
|
+
stats: {
|
|
150
|
+
open: boolean;
|
|
151
|
+
panels: number;
|
|
152
|
+
};
|
|
153
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
154
|
+
pasteDialog: {
|
|
155
|
+
shown: false;
|
|
156
|
+
data: null;
|
|
157
|
+
} | {
|
|
158
|
+
shown: true;
|
|
159
|
+
data: import("../charts").Spreadsheet;
|
|
160
|
+
};
|
|
161
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
162
|
+
linkOpacity: number;
|
|
163
|
+
colorPalette?: {
|
|
164
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
165
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
166
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
167
|
+
topPicks: {
|
|
168
|
+
canvasBackground: [string, string, string, string, string];
|
|
169
|
+
elementStroke: [string, string, string, string, string];
|
|
170
|
+
elementBackground: [string, string, string, string, string];
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
allowWheelZoom?: boolean;
|
|
174
|
+
allowPinchZoom?: boolean;
|
|
175
|
+
disableContextMenu: boolean;
|
|
176
|
+
pinnedScripts?: string[];
|
|
177
|
+
customPens?: any[];
|
|
178
|
+
currentStrokeOptions?: any;
|
|
179
|
+
resetCustomPen?: any;
|
|
180
|
+
gridColor: {
|
|
181
|
+
Bold: string;
|
|
182
|
+
Regular: string;
|
|
183
|
+
};
|
|
184
|
+
gridDirection: {
|
|
185
|
+
horizontal: boolean;
|
|
186
|
+
vertical: boolean;
|
|
187
|
+
};
|
|
188
|
+
highlightSearchResult: boolean;
|
|
189
|
+
dynamicStyle: {
|
|
190
|
+
[x: string]: string;
|
|
191
|
+
};
|
|
192
|
+
frameColor: {
|
|
193
|
+
stroke: string;
|
|
194
|
+
fill: string;
|
|
195
|
+
nameColor: string;
|
|
196
|
+
};
|
|
197
|
+
invertBindingBehaviour: boolean;
|
|
198
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
199
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
200
|
+
originSnapOffset: {
|
|
201
|
+
x: number;
|
|
202
|
+
y: number;
|
|
203
|
+
} | null;
|
|
204
|
+
objectsSnapModeEnabled: boolean;
|
|
205
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
206
|
+
followedBy: Set<import("../types").SocketId>;
|
|
207
|
+
isCropping: boolean;
|
|
208
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
209
|
+
searchMatches: Readonly<{
|
|
210
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
211
|
+
matches: readonly import("../types").SearchMatch[];
|
|
212
|
+
}> | null;
|
|
213
|
+
activeLockedId: string | null;
|
|
214
|
+
lockedMultiSelections: {
|
|
215
|
+
[groupId: string]: true;
|
|
216
|
+
};
|
|
217
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
218
|
+
};
|
|
219
|
+
} | {
|
|
220
|
+
captureUpdate: "EVENTUALLY";
|
|
221
|
+
appState?: undefined;
|
|
222
|
+
}>;
|
|
223
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
224
|
+
} & {
|
|
225
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
226
|
+
};
|
|
227
|
+
export declare const actionSaveFileToDisk: {
|
|
228
|
+
name: "saveFileToDisk";
|
|
229
|
+
label: string;
|
|
230
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
231
|
+
viewMode: true;
|
|
232
|
+
trackEvent: {
|
|
233
|
+
category: "export";
|
|
234
|
+
};
|
|
235
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
236
|
+
captureUpdate: "EVENTUALLY";
|
|
237
|
+
appState: {
|
|
238
|
+
openDialog: null;
|
|
239
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
240
|
+
toast: {
|
|
241
|
+
message: string;
|
|
242
|
+
};
|
|
243
|
+
contextMenu: {
|
|
244
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
245
|
+
top: number;
|
|
246
|
+
left: number;
|
|
247
|
+
} | null;
|
|
248
|
+
showWelcomeScreen: boolean;
|
|
249
|
+
isLoading: boolean;
|
|
250
|
+
errorMessage: React.ReactNode;
|
|
251
|
+
activeEmbeddable: {
|
|
252
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
253
|
+
state: "hover" | "active";
|
|
254
|
+
} | null;
|
|
255
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
256
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
257
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
258
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
259
|
+
isBindingEnabled: boolean;
|
|
260
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
261
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
262
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
263
|
+
frameRendering: {
|
|
264
|
+
enabled: boolean;
|
|
265
|
+
name: boolean;
|
|
266
|
+
outline: boolean;
|
|
267
|
+
clip: boolean;
|
|
268
|
+
markerName: boolean;
|
|
269
|
+
markerEnabled: boolean;
|
|
270
|
+
};
|
|
271
|
+
editingFrame: string | null;
|
|
272
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
273
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
274
|
+
activeTool: {
|
|
275
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
276
|
+
locked: boolean;
|
|
277
|
+
fromSelection: boolean;
|
|
278
|
+
} & import("../types").ActiveTool;
|
|
279
|
+
preferredSelectionTool: {
|
|
280
|
+
type: "selection" | "lasso";
|
|
281
|
+
initialized: boolean;
|
|
282
|
+
};
|
|
283
|
+
penMode: boolean;
|
|
284
|
+
penDetected: boolean;
|
|
285
|
+
exportBackground: boolean;
|
|
286
|
+
exportEmbedScene: boolean;
|
|
287
|
+
exportWithDarkMode: boolean;
|
|
288
|
+
exportScale: number;
|
|
289
|
+
currentItemStrokeColor: string;
|
|
290
|
+
currentItemBackgroundColor: string;
|
|
291
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
292
|
+
currentItemStrokeWidth: number;
|
|
293
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
294
|
+
currentItemRoughness: number;
|
|
295
|
+
currentItemOpacity: number;
|
|
296
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
297
|
+
currentItemFontSize: number;
|
|
298
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
299
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
300
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
301
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
302
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
303
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
304
|
+
currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
|
|
305
|
+
viewBackgroundColor: string;
|
|
306
|
+
scrollX: number;
|
|
307
|
+
scrollY: number;
|
|
308
|
+
cursorButton: "up" | "down";
|
|
309
|
+
scrolledOutside: boolean;
|
|
310
|
+
name: string | null;
|
|
311
|
+
isResizing: boolean;
|
|
312
|
+
isRotating: boolean;
|
|
313
|
+
zoom: import("../types").Zoom;
|
|
314
|
+
openMenu: "canvas" | "shape" | null;
|
|
315
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
316
|
+
openSidebar: {
|
|
317
|
+
name: import("../types").SidebarName;
|
|
318
|
+
tab?: import("../types").SidebarTabName;
|
|
319
|
+
} | null;
|
|
320
|
+
defaultSidebarDockedPreference: boolean;
|
|
321
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
322
|
+
selectedElementIds: Readonly<{
|
|
323
|
+
[id: string]: true;
|
|
324
|
+
}>;
|
|
325
|
+
hoveredElementIds: Readonly<{
|
|
326
|
+
[id: string]: true;
|
|
327
|
+
}>;
|
|
328
|
+
previousSelectedElementIds: {
|
|
329
|
+
[id: string]: true;
|
|
330
|
+
};
|
|
331
|
+
selectedElementsAreBeingDragged: boolean;
|
|
332
|
+
shouldCacheIgnoreZoom: boolean;
|
|
333
|
+
zenModeEnabled: boolean;
|
|
334
|
+
theme: Theme;
|
|
335
|
+
gridSize: number;
|
|
336
|
+
gridStep: number;
|
|
337
|
+
gridModeEnabled: boolean;
|
|
338
|
+
viewModeEnabled: boolean;
|
|
339
|
+
selectedGroupIds: {
|
|
340
|
+
[groupId: string]: boolean;
|
|
341
|
+
};
|
|
342
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
343
|
+
width: number;
|
|
344
|
+
height: number;
|
|
345
|
+
offsetTop: number;
|
|
346
|
+
offsetLeft: number;
|
|
347
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
348
|
+
stats: {
|
|
349
|
+
open: boolean;
|
|
350
|
+
panels: number;
|
|
351
|
+
};
|
|
352
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
353
|
+
pasteDialog: {
|
|
354
|
+
shown: false;
|
|
355
|
+
data: null;
|
|
356
|
+
} | {
|
|
357
|
+
shown: true;
|
|
358
|
+
data: import("../charts").Spreadsheet;
|
|
359
|
+
};
|
|
360
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
361
|
+
linkOpacity: number;
|
|
362
|
+
colorPalette?: {
|
|
363
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
364
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
365
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
366
|
+
topPicks: {
|
|
367
|
+
canvasBackground: [string, string, string, string, string];
|
|
368
|
+
elementStroke: [string, string, string, string, string];
|
|
369
|
+
elementBackground: [string, string, string, string, string];
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
allowWheelZoom?: boolean;
|
|
373
|
+
allowPinchZoom?: boolean;
|
|
374
|
+
disableContextMenu: boolean;
|
|
375
|
+
pinnedScripts?: string[];
|
|
376
|
+
customPens?: any[];
|
|
377
|
+
currentStrokeOptions?: any;
|
|
378
|
+
resetCustomPen?: any;
|
|
379
|
+
gridColor: {
|
|
380
|
+
Bold: string;
|
|
381
|
+
Regular: string;
|
|
382
|
+
};
|
|
383
|
+
gridDirection: {
|
|
384
|
+
horizontal: boolean;
|
|
385
|
+
vertical: boolean;
|
|
386
|
+
};
|
|
387
|
+
highlightSearchResult: boolean;
|
|
388
|
+
dynamicStyle: {
|
|
389
|
+
[x: string]: string;
|
|
390
|
+
};
|
|
391
|
+
frameColor: {
|
|
392
|
+
stroke: string;
|
|
393
|
+
fill: string;
|
|
394
|
+
nameColor: string;
|
|
395
|
+
};
|
|
396
|
+
invertBindingBehaviour: boolean;
|
|
397
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
398
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
399
|
+
originSnapOffset: {
|
|
400
|
+
x: number;
|
|
401
|
+
y: number;
|
|
402
|
+
} | null;
|
|
403
|
+
objectsSnapModeEnabled: boolean;
|
|
404
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
405
|
+
followedBy: Set<import("../types").SocketId>;
|
|
406
|
+
isCropping: boolean;
|
|
407
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
408
|
+
searchMatches: Readonly<{
|
|
409
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
410
|
+
matches: readonly import("../types").SearchMatch[];
|
|
411
|
+
}> | null;
|
|
412
|
+
activeLockedId: string | null;
|
|
413
|
+
lockedMultiSelections: {
|
|
414
|
+
[groupId: string]: true;
|
|
415
|
+
};
|
|
416
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
417
|
+
};
|
|
418
|
+
} | {
|
|
419
|
+
captureUpdate: "EVENTUALLY";
|
|
420
|
+
appState?: undefined;
|
|
421
|
+
}>;
|
|
422
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
423
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
424
|
+
} & {
|
|
425
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
426
|
+
};
|
|
427
|
+
export declare const actionLoadScene: {
|
|
428
|
+
name: "loadScene";
|
|
429
|
+
label: string;
|
|
430
|
+
trackEvent: {
|
|
431
|
+
category: "export";
|
|
432
|
+
};
|
|
433
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
434
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
|
|
435
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
436
|
+
appState: {
|
|
437
|
+
viewBackgroundColor: string;
|
|
438
|
+
frameRendering: {
|
|
439
|
+
enabled: boolean;
|
|
440
|
+
name: boolean;
|
|
441
|
+
outline: boolean;
|
|
442
|
+
clip: boolean;
|
|
443
|
+
markerName: boolean;
|
|
444
|
+
markerEnabled: boolean;
|
|
445
|
+
};
|
|
446
|
+
frameColor: {
|
|
447
|
+
stroke: string;
|
|
448
|
+
fill: string;
|
|
449
|
+
nameColor: string;
|
|
450
|
+
};
|
|
451
|
+
name: string | null;
|
|
452
|
+
zoom: import("../types").Zoom;
|
|
453
|
+
scrollX: number;
|
|
454
|
+
scrollY: number;
|
|
455
|
+
viewModeEnabled: boolean;
|
|
456
|
+
openDialog: null | {
|
|
457
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
458
|
+
} | {
|
|
459
|
+
name: "ttd";
|
|
460
|
+
tab: "text-to-diagram" | "mermaid";
|
|
461
|
+
} | {
|
|
462
|
+
name: "commandPalette";
|
|
463
|
+
} | {
|
|
464
|
+
name: "settings";
|
|
465
|
+
} | {
|
|
466
|
+
name: "elementLinkSelector";
|
|
467
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
468
|
+
};
|
|
469
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
470
|
+
selectedElementIds: Readonly<{
|
|
471
|
+
[id: string]: true;
|
|
472
|
+
}>;
|
|
473
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
474
|
+
theme: Theme;
|
|
475
|
+
activeEmbeddable: {
|
|
476
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
477
|
+
state: "hover" | "active";
|
|
478
|
+
} | null;
|
|
479
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
480
|
+
selectedGroupIds: {
|
|
481
|
+
[groupId: string]: boolean;
|
|
482
|
+
};
|
|
483
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
484
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
485
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
486
|
+
isBindingEnabled: boolean;
|
|
487
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
488
|
+
isRotating: boolean;
|
|
489
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
490
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
491
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
492
|
+
zenModeEnabled: boolean;
|
|
493
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
494
|
+
gridColor: {
|
|
495
|
+
Bold: string;
|
|
496
|
+
Regular: string;
|
|
497
|
+
};
|
|
498
|
+
gridDirection: {
|
|
499
|
+
horizontal: boolean;
|
|
500
|
+
vertical: boolean;
|
|
501
|
+
};
|
|
502
|
+
highlightSearchResult: boolean;
|
|
503
|
+
isCropping: boolean;
|
|
504
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
505
|
+
searchMatches: Readonly<{
|
|
506
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
507
|
+
matches: readonly import("../types").SearchMatch[];
|
|
508
|
+
}> | null;
|
|
509
|
+
activeLockedId: string | null;
|
|
510
|
+
hoveredElementIds: Readonly<{
|
|
511
|
+
[id: string]: true;
|
|
512
|
+
}>;
|
|
513
|
+
shouldCacheIgnoreZoom: boolean;
|
|
514
|
+
exportScale: number;
|
|
515
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
516
|
+
gridSize: number;
|
|
517
|
+
contextMenu: {
|
|
518
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
519
|
+
top: number;
|
|
520
|
+
left: number;
|
|
521
|
+
} | null;
|
|
522
|
+
showWelcomeScreen: boolean;
|
|
523
|
+
isLoading: boolean;
|
|
524
|
+
errorMessage: React.ReactNode;
|
|
525
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
526
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
527
|
+
editingFrame: string | null;
|
|
528
|
+
activeTool: {
|
|
529
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
530
|
+
locked: boolean;
|
|
531
|
+
fromSelection: boolean;
|
|
532
|
+
} & import("../types").ActiveTool;
|
|
533
|
+
preferredSelectionTool: {
|
|
534
|
+
type: "selection" | "lasso";
|
|
535
|
+
initialized: boolean;
|
|
536
|
+
};
|
|
537
|
+
penMode: boolean;
|
|
538
|
+
penDetected: boolean;
|
|
539
|
+
exportBackground: boolean;
|
|
540
|
+
exportEmbedScene: boolean;
|
|
541
|
+
exportWithDarkMode: boolean;
|
|
542
|
+
currentItemStrokeColor: string;
|
|
543
|
+
currentItemBackgroundColor: string;
|
|
544
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
545
|
+
currentItemStrokeWidth: number;
|
|
546
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
547
|
+
currentItemRoughness: number;
|
|
548
|
+
currentItemOpacity: number;
|
|
549
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
550
|
+
currentItemFontSize: number;
|
|
551
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
552
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
553
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
554
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
555
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
556
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
557
|
+
currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
|
|
558
|
+
cursorButton: "up" | "down";
|
|
559
|
+
scrolledOutside: boolean;
|
|
560
|
+
isResizing: boolean;
|
|
561
|
+
openMenu: "canvas" | "shape" | null;
|
|
562
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
563
|
+
openSidebar: {
|
|
564
|
+
name: import("../types").SidebarName;
|
|
565
|
+
tab?: import("../types").SidebarTabName;
|
|
566
|
+
} | null;
|
|
567
|
+
defaultSidebarDockedPreference: boolean;
|
|
568
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
569
|
+
previousSelectedElementIds: {
|
|
570
|
+
[id: string]: true;
|
|
571
|
+
};
|
|
572
|
+
selectedElementsAreBeingDragged: boolean;
|
|
573
|
+
toast: {
|
|
574
|
+
message: string;
|
|
575
|
+
closable?: boolean;
|
|
576
|
+
duration?: number;
|
|
577
|
+
} | null;
|
|
578
|
+
gridStep: number;
|
|
579
|
+
gridModeEnabled: boolean;
|
|
580
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
581
|
+
stats: {
|
|
582
|
+
open: boolean;
|
|
583
|
+
panels: number;
|
|
584
|
+
};
|
|
585
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
586
|
+
pasteDialog: {
|
|
587
|
+
shown: false;
|
|
588
|
+
data: null;
|
|
589
|
+
} | {
|
|
590
|
+
shown: true;
|
|
591
|
+
data: import("../charts").Spreadsheet;
|
|
592
|
+
};
|
|
593
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
594
|
+
linkOpacity: number;
|
|
595
|
+
colorPalette?: {
|
|
596
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
597
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
598
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
599
|
+
topPicks: {
|
|
600
|
+
canvasBackground: [string, string, string, string, string];
|
|
601
|
+
elementStroke: [string, string, string, string, string];
|
|
602
|
+
elementBackground: [string, string, string, string, string];
|
|
603
|
+
};
|
|
604
|
+
} | undefined;
|
|
605
|
+
allowWheelZoom?: boolean | undefined;
|
|
606
|
+
allowPinchZoom?: boolean | undefined;
|
|
607
|
+
disableContextMenu: boolean;
|
|
608
|
+
pinnedScripts?: string[] | undefined;
|
|
609
|
+
customPens?: any[] | undefined;
|
|
610
|
+
currentStrokeOptions?: any;
|
|
611
|
+
resetCustomPen?: any;
|
|
612
|
+
dynamicStyle: {
|
|
613
|
+
[x: string]: string;
|
|
614
|
+
};
|
|
615
|
+
invertBindingBehaviour: boolean;
|
|
616
|
+
originSnapOffset: {
|
|
617
|
+
x: number;
|
|
618
|
+
y: number;
|
|
619
|
+
} | null;
|
|
620
|
+
objectsSnapModeEnabled: boolean;
|
|
621
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
622
|
+
followedBy: Set<import("../types").SocketId>;
|
|
623
|
+
lockedMultiSelections: {
|
|
624
|
+
[groupId: string]: true;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
files: import("../types").BinaryFiles;
|
|
628
|
+
captureUpdate: "IMMEDIATELY";
|
|
629
|
+
} | {
|
|
630
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
631
|
+
appState: {
|
|
632
|
+
errorMessage: any;
|
|
633
|
+
contextMenu: {
|
|
634
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
635
|
+
top: number;
|
|
636
|
+
left: number;
|
|
637
|
+
} | null;
|
|
638
|
+
showWelcomeScreen: boolean;
|
|
639
|
+
isLoading: boolean;
|
|
640
|
+
activeEmbeddable: {
|
|
641
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
642
|
+
state: "hover" | "active";
|
|
643
|
+
} | null;
|
|
644
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
645
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
646
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
647
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
648
|
+
isBindingEnabled: boolean;
|
|
649
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
650
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
651
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
652
|
+
frameRendering: {
|
|
653
|
+
enabled: boolean;
|
|
654
|
+
name: boolean;
|
|
655
|
+
outline: boolean;
|
|
656
|
+
clip: boolean;
|
|
657
|
+
markerName: boolean;
|
|
658
|
+
markerEnabled: boolean;
|
|
659
|
+
};
|
|
660
|
+
editingFrame: string | null;
|
|
661
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
662
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
663
|
+
activeTool: {
|
|
664
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
665
|
+
locked: boolean;
|
|
666
|
+
fromSelection: boolean;
|
|
667
|
+
} & import("../types").ActiveTool;
|
|
668
|
+
preferredSelectionTool: {
|
|
669
|
+
type: "selection" | "lasso";
|
|
670
|
+
initialized: boolean;
|
|
671
|
+
};
|
|
672
|
+
penMode: boolean;
|
|
673
|
+
penDetected: boolean;
|
|
674
|
+
exportBackground: boolean;
|
|
675
|
+
exportEmbedScene: boolean;
|
|
676
|
+
exportWithDarkMode: boolean;
|
|
677
|
+
exportScale: number;
|
|
678
|
+
currentItemStrokeColor: string;
|
|
679
|
+
currentItemBackgroundColor: string;
|
|
680
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
681
|
+
currentItemStrokeWidth: number;
|
|
682
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
683
|
+
currentItemRoughness: number;
|
|
684
|
+
currentItemOpacity: number;
|
|
685
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
686
|
+
currentItemFontSize: number;
|
|
687
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
688
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
689
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
690
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
691
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
692
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
693
|
+
currentItemFrameRole: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["frameRole"] | null;
|
|
694
|
+
viewBackgroundColor: string;
|
|
695
|
+
scrollX: number;
|
|
696
|
+
scrollY: number;
|
|
697
|
+
cursorButton: "up" | "down";
|
|
698
|
+
scrolledOutside: boolean;
|
|
699
|
+
name: string | null;
|
|
700
|
+
isResizing: boolean;
|
|
701
|
+
isRotating: boolean;
|
|
702
|
+
zoom: import("../types").Zoom;
|
|
703
|
+
openMenu: "canvas" | "shape" | null;
|
|
704
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
705
|
+
openSidebar: {
|
|
706
|
+
name: import("../types").SidebarName;
|
|
707
|
+
tab?: import("../types").SidebarTabName;
|
|
708
|
+
} | null;
|
|
709
|
+
openDialog: null | {
|
|
710
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
711
|
+
} | {
|
|
712
|
+
name: "ttd";
|
|
713
|
+
tab: "text-to-diagram" | "mermaid";
|
|
714
|
+
} | {
|
|
715
|
+
name: "commandPalette";
|
|
716
|
+
} | {
|
|
717
|
+
name: "settings";
|
|
718
|
+
} | {
|
|
719
|
+
name: "elementLinkSelector";
|
|
720
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
721
|
+
};
|
|
722
|
+
defaultSidebarDockedPreference: boolean;
|
|
723
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
724
|
+
selectedElementIds: Readonly<{
|
|
725
|
+
[id: string]: true;
|
|
726
|
+
}>;
|
|
727
|
+
hoveredElementIds: Readonly<{
|
|
728
|
+
[id: string]: true;
|
|
729
|
+
}>;
|
|
730
|
+
previousSelectedElementIds: {
|
|
731
|
+
[id: string]: true;
|
|
732
|
+
};
|
|
733
|
+
selectedElementsAreBeingDragged: boolean;
|
|
734
|
+
shouldCacheIgnoreZoom: boolean;
|
|
735
|
+
toast: {
|
|
736
|
+
message: string;
|
|
737
|
+
closable?: boolean;
|
|
738
|
+
duration?: number;
|
|
739
|
+
} | null;
|
|
740
|
+
zenModeEnabled: boolean;
|
|
741
|
+
theme: Theme;
|
|
742
|
+
gridSize: number;
|
|
743
|
+
gridStep: number;
|
|
744
|
+
gridModeEnabled: boolean;
|
|
745
|
+
viewModeEnabled: boolean;
|
|
746
|
+
selectedGroupIds: {
|
|
747
|
+
[groupId: string]: boolean;
|
|
748
|
+
};
|
|
749
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
750
|
+
width: number;
|
|
751
|
+
height: number;
|
|
752
|
+
offsetTop: number;
|
|
753
|
+
offsetLeft: number;
|
|
754
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
755
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
756
|
+
stats: {
|
|
757
|
+
open: boolean;
|
|
758
|
+
panels: number;
|
|
759
|
+
};
|
|
760
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
761
|
+
pasteDialog: {
|
|
762
|
+
shown: false;
|
|
763
|
+
data: null;
|
|
764
|
+
} | {
|
|
765
|
+
shown: true;
|
|
766
|
+
data: import("../charts").Spreadsheet;
|
|
767
|
+
};
|
|
768
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
769
|
+
linkOpacity: number;
|
|
770
|
+
colorPalette?: {
|
|
771
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
772
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
773
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
774
|
+
topPicks: {
|
|
775
|
+
canvasBackground: [string, string, string, string, string];
|
|
776
|
+
elementStroke: [string, string, string, string, string];
|
|
777
|
+
elementBackground: [string, string, string, string, string];
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
allowWheelZoom?: boolean;
|
|
781
|
+
allowPinchZoom?: boolean;
|
|
782
|
+
disableContextMenu: boolean;
|
|
783
|
+
pinnedScripts?: string[];
|
|
784
|
+
customPens?: any[];
|
|
785
|
+
currentStrokeOptions?: any;
|
|
786
|
+
resetCustomPen?: any;
|
|
787
|
+
gridColor: {
|
|
788
|
+
Bold: string;
|
|
789
|
+
Regular: string;
|
|
790
|
+
};
|
|
791
|
+
gridDirection: {
|
|
792
|
+
horizontal: boolean;
|
|
793
|
+
vertical: boolean;
|
|
794
|
+
};
|
|
795
|
+
highlightSearchResult: boolean;
|
|
796
|
+
dynamicStyle: {
|
|
797
|
+
[x: string]: string;
|
|
798
|
+
};
|
|
799
|
+
frameColor: {
|
|
800
|
+
stroke: string;
|
|
801
|
+
fill: string;
|
|
802
|
+
nameColor: string;
|
|
803
|
+
};
|
|
804
|
+
invertBindingBehaviour: boolean;
|
|
805
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
806
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
807
|
+
originSnapOffset: {
|
|
808
|
+
x: number;
|
|
809
|
+
y: number;
|
|
810
|
+
} | null;
|
|
811
|
+
objectsSnapModeEnabled: boolean;
|
|
812
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
813
|
+
followedBy: Set<import("../types").SocketId>;
|
|
814
|
+
isCropping: boolean;
|
|
815
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
816
|
+
searchMatches: Readonly<{
|
|
817
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
818
|
+
matches: readonly import("../types").SearchMatch[];
|
|
819
|
+
}> | null;
|
|
820
|
+
activeLockedId: string | null;
|
|
821
|
+
lockedMultiSelections: {
|
|
822
|
+
[groupId: string]: true;
|
|
823
|
+
};
|
|
824
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
825
|
+
};
|
|
826
|
+
files: import("../types").BinaryFiles;
|
|
827
|
+
captureUpdate: "EVENTUALLY";
|
|
828
|
+
}>;
|
|
829
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
830
|
+
} & {
|
|
831
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
832
|
+
};
|
|
833
|
+
export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
|
|
834
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
835
|
+
};
|