@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-8608d7b
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 +11 -11
- package/dist/dev/chunk-CP5DND7P.js +7 -0
- package/dist/dev/chunk-CP5DND7P.js.map +7 -0
- package/dist/dev/chunk-FB2NA5UG.js +4132 -0
- package/dist/dev/chunk-FB2NA5UG.js.map +7 -0
- package/dist/dev/{chunk-LMHBUWQS.js → chunk-PWQMCSHA.js} +27 -8
- package/dist/dev/chunk-PWQMCSHA.js.map +7 -0
- package/dist/dev/chunk-YMRX7R7U.js +5671 -0
- package/dist/dev/chunk-YMRX7R7U.js.map +7 -0
- package/dist/dev/data/{image-V26YBSDB.js → image-L23D26XS.js} +3 -3
- package/dist/dev/index.css +3945 -3493
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +33090 -24527
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-OZCJJ2HN.js → en-V3NQTBPG.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +2 -2
- package/dist/dev/subset-worker.chunk.js +2 -2
- package/dist/prod/chunk-A66AFZZU.js +7 -0
- package/dist/prod/chunk-GF46JCB3.js +12 -0
- package/dist/prod/chunk-HT4FKTIQ.js +4 -0
- package/dist/prod/chunk-LS7FJGPW.js +86 -0
- package/dist/prod/data/image-NWF7UX55.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +27 -16
- package/dist/prod/locales/{en-B4ZKOASM.js → en-LQE6K457.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
- package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
- package/dist/types/{excalidraw → common/src}/constants.d.ts +52 -12
- package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +15 -5
- package/dist/types/common/src/index.d.ts +12 -0
- package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
- package/dist/types/common/src/promise-pool.d.ts +6 -0
- package/dist/types/{excalidraw → common/src}/utility-types.d.ts +5 -0
- package/dist/types/{excalidraw → common/src}/utils.d.ts +25 -11
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +19 -18
- package/dist/types/element/src/align.d.ts +8 -0
- package/dist/types/{excalidraw/element → element/src}/binding.d.ts +30 -19
- package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +20 -7
- package/dist/types/element/src/collision.d.ts +32 -0
- package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +78 -41
- package/dist/types/element/src/distance.d.ts +3 -0
- package/dist/types/{excalidraw → element/src}/distribute.d.ts +3 -2
- package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +5 -4
- package/dist/types/element/src/duplicate.d.ts +63 -0
- package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +10 -0
- package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +4 -3
- package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +12 -3
- package/dist/types/{excalidraw → element/src}/frame.d.ts +8 -7
- package/dist/types/{excalidraw → element/src}/groups.d.ts +6 -5
- package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
- package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
- package/dist/types/element/src/index.d.ts +58 -0
- package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +24 -37
- package/dist/types/element/src/mutateElement.d.ts +21 -0
- package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +4 -43
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +6 -3
- package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +7 -6
- package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
- package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +13 -7
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +3 -3
- package/dist/types/element/src/store.d.ts +237 -0
- package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +8 -7
- package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
- package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +21 -3
- package/dist/types/{excalidraw/element → element/src}/types.d.ts +17 -4
- package/dist/types/element/src/utils.d.ts +31 -0
- package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +115 -109
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +82 -78
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +705 -502
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +242 -228
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +40 -38
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +120 -113
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +43 -41
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +94 -92
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +40 -48
- package/dist/types/excalidraw/actions/actionExport.d.ts +405 -387
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +112 -67
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +276 -268
- package/dist/types/excalidraw/actions/actionGroup.d.ts +79 -75
- package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +568 -42
- package/dist/types/excalidraw/actions/actionLink.d.ts +41 -39
- package/dist/types/excalidraw/actions/actionMenu.d.ts +116 -110
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +77 -73
- package/dist/types/excalidraw/actions/actionProperties.d.ts +571 -524
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +41 -39
- package/dist/types/excalidraw/actions/actionStyles.d.ts +42 -40
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +40 -38
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +40 -38
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +39 -209
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +39 -38
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +40 -39
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +40 -39
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +2 -1
- package/dist/types/excalidraw/actions/manager.d.ts +2 -2
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +6 -5
- package/dist/types/excalidraw/animated-trail.d.ts +7 -1
- package/dist/types/excalidraw/appState.d.ts +42 -28
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +71 -8
- package/dist/types/excalidraw/components/Actions.d.ts +19 -9
- package/dist/types/excalidraw/components/App.d.ts +58 -34
- package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +10 -5
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +6 -5
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +4 -4
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -3
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +4 -4
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +2 -1
- package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ContextMenu.d.ts +2 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +5 -4
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +3 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +4 -2
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/Island.d.ts +1 -1
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -4
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +4 -4
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/types/excalidraw/components/MagicButton.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +5 -7
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +2 -1
- package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +3 -3
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/dist/types/excalidraw/components/Stack.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +14 -4
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/index.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/TextField.d.ts +2 -1
- package/dist/types/excalidraw/components/Toast.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolButton.d.ts +2 -2
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/UserList.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +5 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +5 -4
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -2
- package/dist/types/excalidraw/components/icons.d.ts +10 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
- package/dist/types/excalidraw/components/shapes.d.ts +190 -0
- package/dist/types/excalidraw/context/tunnels.d.ts +1 -1
- package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +7 -11
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +2 -2
- package/dist/types/excalidraw/data/json.d.ts +1 -1
- package/dist/types/excalidraw/data/library.d.ts +3 -3
- package/dist/types/excalidraw/data/reconcile.d.ts +3 -2
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/data/transform.d.ts +4 -4
- package/dist/types/excalidraw/data/types.d.ts +6 -3
- package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
- package/dist/types/excalidraw/eraser/index.d.ts +12 -0
- package/dist/types/excalidraw/errors.d.ts +0 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -13
- package/dist/types/excalidraw/history.d.ts +31 -23
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +18 -16
- package/dist/types/excalidraw/laser-trails.d.ts +1 -1
- package/dist/types/excalidraw/lasso/index.d.ts +16 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +8 -3
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
- package/dist/types/excalidraw/scene/Renderer.d.ts +3 -4
- package/dist/types/excalidraw/scene/export.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
- package/dist/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/dist/types/excalidraw/scene/types.d.ts +6 -4
- package/dist/types/excalidraw/snapping.d.ts +5 -6
- package/dist/types/excalidraw/types.d.ts +55 -26
- package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +4 -2
- package/dist/types/math/{angle.d.ts → src/angle.d.ts} +2 -0
- package/dist/types/math/src/constants.d.ts +3 -0
- package/dist/types/math/src/curve.d.ts +74 -0
- package/dist/types/math/{index.d.ts → src/index.d.ts} +1 -0
- package/dist/types/math/{point.d.ts → src/point.d.ts} +3 -3
- package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
- package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +2 -0
- package/dist/types/math/{segment.d.ts → src/segment.d.ts} +2 -1
- package/dist/types/math/{types.d.ts → src/types.d.ts} +1 -0
- package/dist/types/math/{vector.d.ts → src/vector.d.ts} +8 -2
- package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
- package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
- package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
- package/dist/types/utils/{geometry → src}/shape.d.ts +2 -15
- package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
- package/history.ts +148 -109
- package/package.json +26 -11
- package/dist/dev/chunk-3SN6HYVK.js +0 -25695
- package/dist/dev/chunk-3SN6HYVK.js.map +0 -7
- package/dist/dev/chunk-53KHN5WM.js +0 -7
- package/dist/dev/chunk-53KHN5WM.js.map +0 -7
- package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
- package/dist/dev/chunk-OKSO7T74.js +0 -4132
- package/dist/dev/chunk-OKSO7T74.js.map +0 -7
- package/dist/prod/chunk-36CXSE6H.js +0 -34
- package/dist/prod/chunk-6U3AYISY.js +0 -12
- package/dist/prod/chunk-EIO257PC.js +0 -86
- package/dist/prod/chunk-G5N3DNGT.js +0 -7
- package/dist/prod/data/image-N4WCURRR.js +0 -1
- package/dist/types/excalidraw/align.d.ts +0 -7
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/element/collision.d.ts +0 -26
- package/dist/types/excalidraw/element/distance.d.ts +0 -3
- package/dist/types/excalidraw/element/index.d.ts +0 -26
- package/dist/types/excalidraw/element/mutateElement.d.ts +0 -13
- package/dist/types/excalidraw/element/utils.d.ts +0 -21
- package/dist/types/excalidraw/scene/Shape.d.ts +0 -17
- package/dist/types/excalidraw/scene/ShapeCache.d.ts +0 -25
- package/dist/types/excalidraw/shapes.d.ts +0 -85
- package/dist/types/excalidraw/store.d.ts +0 -129
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- package/dist/types/math/curve.d.ts +0 -40
- package/dist/types/utils/collision.d.ts +0 -9
- /package/dist/dev/data/{image-V26YBSDB.js.map → image-L23D26XS.js.map} +0 -0
- /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-V3NQTBPG.js.map} +0 -0
- /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
- /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
- /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
- /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
- /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
- /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
- /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ExcalidrawElement } from "
|
|
2
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
export declare const actionSelectAllElementsInFrame: {
|
|
5
5
|
name: "selectAllElementsInFrame";
|
|
@@ -7,8 +7,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "canvas";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly import("
|
|
11
|
-
elements: readonly import("
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
11
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
12
|
appState: {
|
|
13
13
|
selectedElementIds: Record<string, true>;
|
|
14
14
|
contextMenu: {
|
|
@@ -20,17 +20,17 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
20
20
|
isLoading: boolean;
|
|
21
21
|
errorMessage: import("react").ReactNode;
|
|
22
22
|
activeEmbeddable: {
|
|
23
|
-
element: import("
|
|
24
|
-
state: "
|
|
23
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
+
state: "active" | "hover";
|
|
25
25
|
} | null;
|
|
26
|
-
newElement: import("
|
|
27
|
-
resizingElement: import("
|
|
28
|
-
multiElement: import("
|
|
29
|
-
selectionElement: import("
|
|
26
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
-
startBoundElement: import("
|
|
32
|
-
suggestedBindings: import("
|
|
33
|
-
frameToHighlight: import("
|
|
31
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
33
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
36
36
|
name: boolean;
|
|
@@ -38,13 +38,17 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
38
38
|
clip: boolean;
|
|
39
39
|
};
|
|
40
40
|
editingFrame: string | null;
|
|
41
|
-
elementsToHighlight: import("
|
|
42
|
-
editingTextElement: import("
|
|
43
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
41
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
42
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
44
43
|
activeTool: {
|
|
45
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
45
|
locked: boolean;
|
|
46
|
+
fromSelection: boolean;
|
|
47
47
|
} & import("../types").ActiveTool;
|
|
48
|
+
preferredSelectionTool: {
|
|
49
|
+
type: "selection" | "lasso";
|
|
50
|
+
initialized: boolean;
|
|
51
|
+
};
|
|
48
52
|
penMode: boolean;
|
|
49
53
|
penDetected: boolean;
|
|
50
54
|
exportBackground: boolean;
|
|
@@ -53,18 +57,18 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
53
57
|
exportScale: number;
|
|
54
58
|
currentItemStrokeColor: string;
|
|
55
59
|
currentItemBackgroundColor: string;
|
|
56
|
-
currentItemFillStyle: import("
|
|
60
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
57
61
|
currentItemStrokeWidth: number;
|
|
58
|
-
currentItemStrokeStyle: import("
|
|
62
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
59
63
|
currentItemRoughness: number;
|
|
60
64
|
currentItemOpacity: number;
|
|
61
65
|
currentItemFontFamily: number;
|
|
62
66
|
currentItemFontSize: number;
|
|
63
67
|
currentItemTextAlign: string;
|
|
64
|
-
currentItemStartArrowhead: import("
|
|
65
|
-
currentItemEndArrowhead: import("
|
|
68
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
70
|
currentHoveredFontFamily: number | null;
|
|
67
|
-
currentItemRoundness: import("
|
|
71
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
72
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
69
73
|
viewBackgroundColor: string;
|
|
70
74
|
scrollX: number;
|
|
@@ -78,7 +82,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
78
82
|
value: import("../types").NormalizedZoomValue;
|
|
79
83
|
}>;
|
|
80
84
|
openMenu: "canvas" | "shape" | null;
|
|
81
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
85
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
82
86
|
openSidebar: {
|
|
83
87
|
name: string;
|
|
84
88
|
tab?: string | undefined;
|
|
@@ -87,7 +91,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
87
91
|
name: "imageExport" | "help" | "jsonExport";
|
|
88
92
|
} | {
|
|
89
93
|
name: "ttd";
|
|
90
|
-
tab: "text-to-diagram"
|
|
94
|
+
tab: "mermaid" | "text-to-diagram";
|
|
91
95
|
} | {
|
|
92
96
|
name: "commandPalette";
|
|
93
97
|
} | {
|
|
@@ -95,7 +99,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
95
99
|
sourceElementId: string;
|
|
96
100
|
} | null;
|
|
97
101
|
defaultSidebarDockedPreference: boolean;
|
|
98
|
-
lastPointerDownWith: import("
|
|
102
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
99
103
|
hoveredElementIds: Readonly<{
|
|
100
104
|
[id: string]: true;
|
|
101
105
|
}>;
|
|
@@ -110,7 +114,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
110
114
|
duration?: number | undefined;
|
|
111
115
|
} | null;
|
|
112
116
|
zenModeEnabled: boolean;
|
|
113
|
-
theme: import("
|
|
117
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
114
118
|
gridSize: number;
|
|
115
119
|
gridStep: number;
|
|
116
120
|
gridModeEnabled: boolean;
|
|
@@ -131,7 +135,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
131
135
|
[id: string]: true;
|
|
132
136
|
}> | undefined;
|
|
133
137
|
username?: string | null | undefined;
|
|
134
|
-
userState?: import("
|
|
138
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
135
139
|
color?: {
|
|
136
140
|
background: string;
|
|
137
141
|
stroke: string;
|
|
@@ -148,7 +152,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
148
152
|
open: boolean;
|
|
149
153
|
panels: number;
|
|
150
154
|
};
|
|
151
|
-
currentChartType: import("
|
|
155
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
152
156
|
pasteDialog: {
|
|
153
157
|
shown: false;
|
|
154
158
|
data: null;
|
|
@@ -156,9 +160,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
156
160
|
shown: true;
|
|
157
161
|
data: import("../charts").Spreadsheet;
|
|
158
162
|
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
163
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
164
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
162
165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
166
|
originSnapOffset: {
|
|
164
167
|
x: number;
|
|
@@ -169,20 +172,19 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
169
172
|
followedBy: Set<import("../types").SocketId>;
|
|
170
173
|
isCropping: boolean;
|
|
171
174
|
croppingElementId: string | null;
|
|
172
|
-
searchMatches:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}[];
|
|
175
|
+
searchMatches: Readonly<{
|
|
176
|
+
focusedId: string | null;
|
|
177
|
+
matches: readonly import("../types").SearchMatch[];
|
|
178
|
+
}> | null;
|
|
179
|
+
activeLockedId: string | null;
|
|
180
|
+
lockedMultiSelections: {
|
|
181
|
+
[groupId: string]: true;
|
|
182
|
+
};
|
|
183
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
182
184
|
};
|
|
183
185
|
captureUpdate: "IMMEDIATELY";
|
|
184
186
|
} | {
|
|
185
|
-
elements: readonly import("
|
|
187
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
186
188
|
appState: Readonly<AppState>;
|
|
187
189
|
captureUpdate: "EVENTUALLY";
|
|
188
190
|
};
|
|
@@ -196,8 +198,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
196
198
|
trackEvent: {
|
|
197
199
|
category: "history";
|
|
198
200
|
};
|
|
199
|
-
perform: (elements: readonly import("
|
|
200
|
-
elements: readonly import("
|
|
201
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
202
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
201
203
|
appState: {
|
|
202
204
|
selectedElementIds: {
|
|
203
205
|
[x: string]: true;
|
|
@@ -211,17 +213,17 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
211
213
|
isLoading: boolean;
|
|
212
214
|
errorMessage: import("react").ReactNode;
|
|
213
215
|
activeEmbeddable: {
|
|
214
|
-
element: import("
|
|
215
|
-
state: "
|
|
216
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
217
|
+
state: "active" | "hover";
|
|
216
218
|
} | null;
|
|
217
|
-
newElement: import("
|
|
218
|
-
resizingElement: import("
|
|
219
|
-
multiElement: import("
|
|
220
|
-
selectionElement: import("
|
|
219
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
220
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
221
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
222
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
221
223
|
isBindingEnabled: boolean;
|
|
222
|
-
startBoundElement: import("
|
|
223
|
-
suggestedBindings: import("
|
|
224
|
-
frameToHighlight: import("
|
|
224
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
225
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
226
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
225
227
|
frameRendering: {
|
|
226
228
|
enabled: boolean;
|
|
227
229
|
name: boolean;
|
|
@@ -229,13 +231,17 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
229
231
|
clip: boolean;
|
|
230
232
|
};
|
|
231
233
|
editingFrame: string | null;
|
|
232
|
-
elementsToHighlight: import("
|
|
233
|
-
editingTextElement: import("
|
|
234
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
234
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
235
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
235
236
|
activeTool: {
|
|
236
237
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
237
238
|
locked: boolean;
|
|
239
|
+
fromSelection: boolean;
|
|
238
240
|
} & import("../types").ActiveTool;
|
|
241
|
+
preferredSelectionTool: {
|
|
242
|
+
type: "selection" | "lasso";
|
|
243
|
+
initialized: boolean;
|
|
244
|
+
};
|
|
239
245
|
penMode: boolean;
|
|
240
246
|
penDetected: boolean;
|
|
241
247
|
exportBackground: boolean;
|
|
@@ -244,18 +250,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
244
250
|
exportScale: number;
|
|
245
251
|
currentItemStrokeColor: string;
|
|
246
252
|
currentItemBackgroundColor: string;
|
|
247
|
-
currentItemFillStyle: import("
|
|
253
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
248
254
|
currentItemStrokeWidth: number;
|
|
249
|
-
currentItemStrokeStyle: import("
|
|
255
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
250
256
|
currentItemRoughness: number;
|
|
251
257
|
currentItemOpacity: number;
|
|
252
258
|
currentItemFontFamily: number;
|
|
253
259
|
currentItemFontSize: number;
|
|
254
260
|
currentItemTextAlign: string;
|
|
255
|
-
currentItemStartArrowhead: import("
|
|
256
|
-
currentItemEndArrowhead: import("
|
|
261
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
262
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
257
263
|
currentHoveredFontFamily: number | null;
|
|
258
|
-
currentItemRoundness: import("
|
|
264
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
259
265
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
260
266
|
viewBackgroundColor: string;
|
|
261
267
|
scrollX: number;
|
|
@@ -269,7 +275,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
269
275
|
value: import("../types").NormalizedZoomValue;
|
|
270
276
|
}>;
|
|
271
277
|
openMenu: "canvas" | "shape" | null;
|
|
272
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
278
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
273
279
|
openSidebar: {
|
|
274
280
|
name: string;
|
|
275
281
|
tab?: string | undefined;
|
|
@@ -278,7 +284,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
278
284
|
name: "imageExport" | "help" | "jsonExport";
|
|
279
285
|
} | {
|
|
280
286
|
name: "ttd";
|
|
281
|
-
tab: "text-to-diagram"
|
|
287
|
+
tab: "mermaid" | "text-to-diagram";
|
|
282
288
|
} | {
|
|
283
289
|
name: "commandPalette";
|
|
284
290
|
} | {
|
|
@@ -286,7 +292,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
286
292
|
sourceElementId: string;
|
|
287
293
|
} | null;
|
|
288
294
|
defaultSidebarDockedPreference: boolean;
|
|
289
|
-
lastPointerDownWith: import("
|
|
295
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
290
296
|
hoveredElementIds: Readonly<{
|
|
291
297
|
[id: string]: true;
|
|
292
298
|
}>;
|
|
@@ -301,7 +307,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
301
307
|
duration?: number | undefined;
|
|
302
308
|
} | null;
|
|
303
309
|
zenModeEnabled: boolean;
|
|
304
|
-
theme: import("
|
|
310
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
305
311
|
gridSize: number;
|
|
306
312
|
gridStep: number;
|
|
307
313
|
gridModeEnabled: boolean;
|
|
@@ -322,7 +328,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
322
328
|
[id: string]: true;
|
|
323
329
|
}> | undefined;
|
|
324
330
|
username?: string | null | undefined;
|
|
325
|
-
userState?: import("
|
|
331
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
326
332
|
color?: {
|
|
327
333
|
background: string;
|
|
328
334
|
stroke: string;
|
|
@@ -339,7 +345,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
339
345
|
open: boolean;
|
|
340
346
|
panels: number;
|
|
341
347
|
};
|
|
342
|
-
currentChartType: import("
|
|
348
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
343
349
|
pasteDialog: {
|
|
344
350
|
shown: false;
|
|
345
351
|
data: null;
|
|
@@ -347,9 +353,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
347
353
|
shown: true;
|
|
348
354
|
data: import("../charts").Spreadsheet;
|
|
349
355
|
};
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
356
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
357
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
353
358
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
354
359
|
originSnapOffset: {
|
|
355
360
|
x: number;
|
|
@@ -360,20 +365,19 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
360
365
|
followedBy: Set<import("../types").SocketId>;
|
|
361
366
|
isCropping: boolean;
|
|
362
367
|
croppingElementId: string | null;
|
|
363
|
-
searchMatches:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}[];
|
|
368
|
+
searchMatches: Readonly<{
|
|
369
|
+
focusedId: string | null;
|
|
370
|
+
matches: readonly import("../types").SearchMatch[];
|
|
371
|
+
}> | null;
|
|
372
|
+
activeLockedId: string | null;
|
|
373
|
+
lockedMultiSelections: {
|
|
374
|
+
[groupId: string]: true;
|
|
375
|
+
};
|
|
376
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
373
377
|
};
|
|
374
378
|
captureUpdate: "IMMEDIATELY";
|
|
375
379
|
} | {
|
|
376
|
-
elements: readonly import("
|
|
380
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
377
381
|
appState: Readonly<AppState>;
|
|
378
382
|
captureUpdate: "EVENTUALLY";
|
|
379
383
|
};
|
|
@@ -388,8 +392,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
388
392
|
trackEvent: {
|
|
389
393
|
category: "canvas";
|
|
390
394
|
};
|
|
391
|
-
perform: (elements: readonly import("
|
|
392
|
-
elements: readonly import("
|
|
395
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
396
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
393
397
|
appState: {
|
|
394
398
|
frameRendering: {
|
|
395
399
|
enabled: boolean;
|
|
@@ -406,25 +410,29 @@ export declare const actionupdateFrameRendering: {
|
|
|
406
410
|
isLoading: boolean;
|
|
407
411
|
errorMessage: import("react").ReactNode;
|
|
408
412
|
activeEmbeddable: {
|
|
409
|
-
element: import("
|
|
410
|
-
state: "
|
|
413
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
414
|
+
state: "active" | "hover";
|
|
411
415
|
} | null;
|
|
412
|
-
newElement: import("
|
|
413
|
-
resizingElement: import("
|
|
414
|
-
multiElement: import("
|
|
415
|
-
selectionElement: import("
|
|
416
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
417
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
418
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
419
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
416
420
|
isBindingEnabled: boolean;
|
|
417
|
-
startBoundElement: import("
|
|
418
|
-
suggestedBindings: import("
|
|
419
|
-
frameToHighlight: import("
|
|
421
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
422
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
423
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
420
424
|
editingFrame: string | null;
|
|
421
|
-
elementsToHighlight: import("
|
|
422
|
-
editingTextElement: import("
|
|
423
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
425
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
426
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
424
427
|
activeTool: {
|
|
425
428
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
426
429
|
locked: boolean;
|
|
430
|
+
fromSelection: boolean;
|
|
427
431
|
} & import("../types").ActiveTool;
|
|
432
|
+
preferredSelectionTool: {
|
|
433
|
+
type: "selection" | "lasso";
|
|
434
|
+
initialized: boolean;
|
|
435
|
+
};
|
|
428
436
|
penMode: boolean;
|
|
429
437
|
penDetected: boolean;
|
|
430
438
|
exportBackground: boolean;
|
|
@@ -433,18 +441,18 @@ export declare const actionupdateFrameRendering: {
|
|
|
433
441
|
exportScale: number;
|
|
434
442
|
currentItemStrokeColor: string;
|
|
435
443
|
currentItemBackgroundColor: string;
|
|
436
|
-
currentItemFillStyle: import("
|
|
444
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
437
445
|
currentItemStrokeWidth: number;
|
|
438
|
-
currentItemStrokeStyle: import("
|
|
446
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
439
447
|
currentItemRoughness: number;
|
|
440
448
|
currentItemOpacity: number;
|
|
441
449
|
currentItemFontFamily: number;
|
|
442
450
|
currentItemFontSize: number;
|
|
443
451
|
currentItemTextAlign: string;
|
|
444
|
-
currentItemStartArrowhead: import("
|
|
445
|
-
currentItemEndArrowhead: import("
|
|
452
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
453
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
446
454
|
currentHoveredFontFamily: number | null;
|
|
447
|
-
currentItemRoundness: import("
|
|
455
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
448
456
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
449
457
|
viewBackgroundColor: string;
|
|
450
458
|
scrollX: number;
|
|
@@ -458,7 +466,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
458
466
|
value: import("../types").NormalizedZoomValue;
|
|
459
467
|
}>;
|
|
460
468
|
openMenu: "canvas" | "shape" | null;
|
|
461
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
469
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
462
470
|
openSidebar: {
|
|
463
471
|
name: string;
|
|
464
472
|
tab?: string | undefined;
|
|
@@ -467,7 +475,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
467
475
|
name: "imageExport" | "help" | "jsonExport";
|
|
468
476
|
} | {
|
|
469
477
|
name: "ttd";
|
|
470
|
-
tab: "text-to-diagram"
|
|
478
|
+
tab: "mermaid" | "text-to-diagram";
|
|
471
479
|
} | {
|
|
472
480
|
name: "commandPalette";
|
|
473
481
|
} | {
|
|
@@ -475,7 +483,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
475
483
|
sourceElementId: string;
|
|
476
484
|
} | null;
|
|
477
485
|
defaultSidebarDockedPreference: boolean;
|
|
478
|
-
lastPointerDownWith: import("
|
|
486
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
479
487
|
selectedElementIds: Readonly<{
|
|
480
488
|
[id: string]: true;
|
|
481
489
|
}>;
|
|
@@ -493,7 +501,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
493
501
|
duration?: number | undefined;
|
|
494
502
|
} | null;
|
|
495
503
|
zenModeEnabled: boolean;
|
|
496
|
-
theme: import("
|
|
504
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
497
505
|
gridSize: number;
|
|
498
506
|
gridStep: number;
|
|
499
507
|
gridModeEnabled: boolean;
|
|
@@ -514,7 +522,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
514
522
|
[id: string]: true;
|
|
515
523
|
}> | undefined;
|
|
516
524
|
username?: string | null | undefined;
|
|
517
|
-
userState?: import("
|
|
525
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
518
526
|
color?: {
|
|
519
527
|
background: string;
|
|
520
528
|
stroke: string;
|
|
@@ -531,7 +539,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
531
539
|
open: boolean;
|
|
532
540
|
panels: number;
|
|
533
541
|
};
|
|
534
|
-
currentChartType: import("
|
|
542
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
535
543
|
pasteDialog: {
|
|
536
544
|
shown: false;
|
|
537
545
|
data: null;
|
|
@@ -539,9 +547,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
539
547
|
shown: true;
|
|
540
548
|
data: import("../charts").Spreadsheet;
|
|
541
549
|
};
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
550
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
551
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
545
552
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
546
553
|
originSnapOffset: {
|
|
547
554
|
x: number;
|
|
@@ -552,16 +559,15 @@ export declare const actionupdateFrameRendering: {
|
|
|
552
559
|
followedBy: Set<import("../types").SocketId>;
|
|
553
560
|
isCropping: boolean;
|
|
554
561
|
croppingElementId: string | null;
|
|
555
|
-
searchMatches:
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}[];
|
|
562
|
+
searchMatches: Readonly<{
|
|
563
|
+
focusedId: string | null;
|
|
564
|
+
matches: readonly import("../types").SearchMatch[];
|
|
565
|
+
}> | null;
|
|
566
|
+
activeLockedId: string | null;
|
|
567
|
+
lockedMultiSelections: {
|
|
568
|
+
[groupId: string]: true;
|
|
569
|
+
};
|
|
570
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
565
571
|
};
|
|
566
572
|
captureUpdate: "EVENTUALLY";
|
|
567
573
|
};
|
|
@@ -577,12 +583,13 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
577
583
|
};
|
|
578
584
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
579
585
|
viewMode: false;
|
|
580
|
-
perform: (elements: readonly import("
|
|
581
|
-
elements: readonly import("
|
|
586
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
587
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
582
588
|
appState: {
|
|
583
589
|
activeTool: {
|
|
584
590
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
585
591
|
locked: boolean;
|
|
592
|
+
fromSelection: boolean;
|
|
586
593
|
} & import("../types").ActiveTool;
|
|
587
594
|
contextMenu: {
|
|
588
595
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -593,17 +600,17 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
593
600
|
isLoading: boolean;
|
|
594
601
|
errorMessage: import("react").ReactNode;
|
|
595
602
|
activeEmbeddable: {
|
|
596
|
-
element: import("
|
|
597
|
-
state: "
|
|
603
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
604
|
+
state: "active" | "hover";
|
|
598
605
|
} | null;
|
|
599
|
-
newElement: import("
|
|
600
|
-
resizingElement: import("
|
|
601
|
-
multiElement: import("
|
|
602
|
-
selectionElement: import("
|
|
606
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
607
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
608
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
609
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
603
610
|
isBindingEnabled: boolean;
|
|
604
|
-
startBoundElement: import("
|
|
605
|
-
suggestedBindings: import("
|
|
606
|
-
frameToHighlight: import("
|
|
611
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
612
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
613
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
607
614
|
frameRendering: {
|
|
608
615
|
enabled: boolean;
|
|
609
616
|
name: boolean;
|
|
@@ -611,9 +618,12 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
611
618
|
clip: boolean;
|
|
612
619
|
};
|
|
613
620
|
editingFrame: string | null;
|
|
614
|
-
elementsToHighlight: import("
|
|
615
|
-
editingTextElement: import("
|
|
616
|
-
|
|
621
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
622
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
623
|
+
preferredSelectionTool: {
|
|
624
|
+
type: "selection" | "lasso";
|
|
625
|
+
initialized: boolean;
|
|
626
|
+
};
|
|
617
627
|
penMode: boolean;
|
|
618
628
|
penDetected: boolean;
|
|
619
629
|
exportBackground: boolean;
|
|
@@ -622,18 +632,18 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
622
632
|
exportScale: number;
|
|
623
633
|
currentItemStrokeColor: string;
|
|
624
634
|
currentItemBackgroundColor: string;
|
|
625
|
-
currentItemFillStyle: import("
|
|
635
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
626
636
|
currentItemStrokeWidth: number;
|
|
627
|
-
currentItemStrokeStyle: import("
|
|
637
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
628
638
|
currentItemRoughness: number;
|
|
629
639
|
currentItemOpacity: number;
|
|
630
640
|
currentItemFontFamily: number;
|
|
631
641
|
currentItemFontSize: number;
|
|
632
642
|
currentItemTextAlign: string;
|
|
633
|
-
currentItemStartArrowhead: import("
|
|
634
|
-
currentItemEndArrowhead: import("
|
|
643
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
644
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
635
645
|
currentHoveredFontFamily: number | null;
|
|
636
|
-
currentItemRoundness: import("
|
|
646
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
637
647
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
638
648
|
viewBackgroundColor: string;
|
|
639
649
|
scrollX: number;
|
|
@@ -647,7 +657,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
647
657
|
value: import("../types").NormalizedZoomValue;
|
|
648
658
|
}>;
|
|
649
659
|
openMenu: "canvas" | "shape" | null;
|
|
650
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
660
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
651
661
|
openSidebar: {
|
|
652
662
|
name: string;
|
|
653
663
|
tab?: string | undefined;
|
|
@@ -656,7 +666,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
656
666
|
name: "imageExport" | "help" | "jsonExport";
|
|
657
667
|
} | {
|
|
658
668
|
name: "ttd";
|
|
659
|
-
tab: "text-to-diagram"
|
|
669
|
+
tab: "mermaid" | "text-to-diagram";
|
|
660
670
|
} | {
|
|
661
671
|
name: "commandPalette";
|
|
662
672
|
} | {
|
|
@@ -664,7 +674,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
664
674
|
sourceElementId: string;
|
|
665
675
|
} | null;
|
|
666
676
|
defaultSidebarDockedPreference: boolean;
|
|
667
|
-
lastPointerDownWith: import("
|
|
677
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
668
678
|
selectedElementIds: Readonly<{
|
|
669
679
|
[id: string]: true;
|
|
670
680
|
}>;
|
|
@@ -682,7 +692,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
682
692
|
duration?: number | undefined;
|
|
683
693
|
} | null;
|
|
684
694
|
zenModeEnabled: boolean;
|
|
685
|
-
theme: import("
|
|
695
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
686
696
|
gridSize: number;
|
|
687
697
|
gridStep: number;
|
|
688
698
|
gridModeEnabled: boolean;
|
|
@@ -703,7 +713,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
703
713
|
[id: string]: true;
|
|
704
714
|
}> | undefined;
|
|
705
715
|
username?: string | null | undefined;
|
|
706
|
-
userState?: import("
|
|
716
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
707
717
|
color?: {
|
|
708
718
|
background: string;
|
|
709
719
|
stroke: string;
|
|
@@ -720,7 +730,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
720
730
|
open: boolean;
|
|
721
731
|
panels: number;
|
|
722
732
|
};
|
|
723
|
-
currentChartType: import("
|
|
733
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
724
734
|
pasteDialog: {
|
|
725
735
|
shown: false;
|
|
726
736
|
data: null;
|
|
@@ -728,9 +738,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
728
738
|
shown: true;
|
|
729
739
|
data: import("../charts").Spreadsheet;
|
|
730
740
|
};
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
741
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
742
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
734
743
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
735
744
|
originSnapOffset: {
|
|
736
745
|
x: number;
|
|
@@ -741,16 +750,15 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
741
750
|
followedBy: Set<import("../types").SocketId>;
|
|
742
751
|
isCropping: boolean;
|
|
743
752
|
croppingElementId: string | null;
|
|
744
|
-
searchMatches:
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
}[];
|
|
753
|
+
searchMatches: Readonly<{
|
|
754
|
+
focusedId: string | null;
|
|
755
|
+
matches: readonly import("../types").SearchMatch[];
|
|
756
|
+
}> | null;
|
|
757
|
+
activeLockedId: string | null;
|
|
758
|
+
lockedMultiSelections: {
|
|
759
|
+
[groupId: string]: true;
|
|
760
|
+
};
|
|
761
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
754
762
|
};
|
|
755
763
|
captureUpdate: "EVENTUALLY";
|
|
756
764
|
};
|
|
@@ -765,18 +773,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
765
773
|
category: "element";
|
|
766
774
|
};
|
|
767
775
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
768
|
-
perform: (elements: readonly import("
|
|
769
|
-
elements: (
|
|
776
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
777
|
+
elements: ((Readonly<{
|
|
770
778
|
id: string;
|
|
771
779
|
x: number;
|
|
772
780
|
y: number;
|
|
773
781
|
strokeColor: string;
|
|
774
782
|
backgroundColor: string;
|
|
775
|
-
fillStyle: import("
|
|
783
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
776
784
|
strokeWidth: number;
|
|
777
|
-
strokeStyle: import("
|
|
785
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
778
786
|
roundness: {
|
|
779
|
-
type: import("
|
|
787
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
780
788
|
value?: number | undefined;
|
|
781
789
|
} | null;
|
|
782
790
|
roughness: number;
|
|
@@ -787,33 +795,39 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
787
795
|
seed: number;
|
|
788
796
|
version: number;
|
|
789
797
|
versionNonce: number;
|
|
790
|
-
index: import("
|
|
798
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
791
799
|
isDeleted: boolean;
|
|
792
800
|
groupIds: readonly string[];
|
|
793
801
|
frameId: string | null;
|
|
794
802
|
boundElements: readonly Readonly<{
|
|
795
803
|
id: string;
|
|
796
|
-
type: "
|
|
804
|
+
type: "arrow" | "text";
|
|
797
805
|
}>[] | null;
|
|
798
806
|
updated: number;
|
|
799
807
|
link: string | null;
|
|
800
808
|
locked: boolean;
|
|
801
809
|
customData?: Record<string, any> | undefined;
|
|
810
|
+
}> & Readonly<{
|
|
811
|
+
type: "line" | "arrow";
|
|
812
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
813
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
814
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
815
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
816
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
817
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
802
818
|
}> & {
|
|
803
|
-
|
|
804
|
-
} & {
|
|
805
|
-
index: import("../element/types").FractionalIndex;
|
|
819
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
806
820
|
}) | (Readonly<{
|
|
807
821
|
id: string;
|
|
808
822
|
x: number;
|
|
809
823
|
y: number;
|
|
810
824
|
strokeColor: string;
|
|
811
825
|
backgroundColor: string;
|
|
812
|
-
fillStyle: import("
|
|
826
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
813
827
|
strokeWidth: number;
|
|
814
|
-
strokeStyle: import("
|
|
828
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
815
829
|
roundness: {
|
|
816
|
-
type: import("
|
|
830
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
817
831
|
value?: number | undefined;
|
|
818
832
|
} | null;
|
|
819
833
|
roughness: number;
|
|
@@ -824,33 +838,33 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
824
838
|
seed: number;
|
|
825
839
|
version: number;
|
|
826
840
|
versionNonce: number;
|
|
827
|
-
index: import("
|
|
841
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
828
842
|
isDeleted: boolean;
|
|
829
843
|
groupIds: readonly string[];
|
|
830
844
|
frameId: string | null;
|
|
831
845
|
boundElements: readonly Readonly<{
|
|
832
846
|
id: string;
|
|
833
|
-
type: "
|
|
847
|
+
type: "arrow" | "text";
|
|
834
848
|
}>[] | null;
|
|
835
849
|
updated: number;
|
|
836
850
|
link: string | null;
|
|
837
851
|
locked: boolean;
|
|
838
852
|
customData?: Record<string, any> | undefined;
|
|
839
853
|
}> & {
|
|
840
|
-
type: "
|
|
854
|
+
type: "selection";
|
|
841
855
|
} & {
|
|
842
|
-
index: import("
|
|
856
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
843
857
|
}) | (Readonly<{
|
|
844
858
|
id: string;
|
|
845
859
|
x: number;
|
|
846
860
|
y: number;
|
|
847
861
|
strokeColor: string;
|
|
848
862
|
backgroundColor: string;
|
|
849
|
-
fillStyle: import("
|
|
863
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
850
864
|
strokeWidth: number;
|
|
851
|
-
strokeStyle: import("
|
|
865
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
852
866
|
roundness: {
|
|
853
|
-
type: import("
|
|
867
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
854
868
|
value?: number | undefined;
|
|
855
869
|
} | null;
|
|
856
870
|
roughness: number;
|
|
@@ -861,33 +875,33 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
861
875
|
seed: number;
|
|
862
876
|
version: number;
|
|
863
877
|
versionNonce: number;
|
|
864
|
-
index: import("
|
|
878
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
865
879
|
isDeleted: boolean;
|
|
866
880
|
groupIds: readonly string[];
|
|
867
881
|
frameId: string | null;
|
|
868
882
|
boundElements: readonly Readonly<{
|
|
869
883
|
id: string;
|
|
870
|
-
type: "
|
|
884
|
+
type: "arrow" | "text";
|
|
871
885
|
}>[] | null;
|
|
872
886
|
updated: number;
|
|
873
887
|
link: string | null;
|
|
874
888
|
locked: boolean;
|
|
875
889
|
customData?: Record<string, any> | undefined;
|
|
876
890
|
}> & {
|
|
877
|
-
type: "
|
|
891
|
+
type: "rectangle";
|
|
878
892
|
} & {
|
|
879
|
-
index: import("
|
|
893
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
880
894
|
}) | (Readonly<{
|
|
881
895
|
id: string;
|
|
882
896
|
x: number;
|
|
883
897
|
y: number;
|
|
884
898
|
strokeColor: string;
|
|
885
899
|
backgroundColor: string;
|
|
886
|
-
fillStyle: import("
|
|
900
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
887
901
|
strokeWidth: number;
|
|
888
|
-
strokeStyle: import("
|
|
902
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
889
903
|
roundness: {
|
|
890
|
-
type: import("
|
|
904
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
891
905
|
value?: number | undefined;
|
|
892
906
|
} | null;
|
|
893
907
|
roughness: number;
|
|
@@ -898,33 +912,33 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
898
912
|
seed: number;
|
|
899
913
|
version: number;
|
|
900
914
|
versionNonce: number;
|
|
901
|
-
index: import("
|
|
915
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
902
916
|
isDeleted: boolean;
|
|
903
917
|
groupIds: readonly string[];
|
|
904
918
|
frameId: string | null;
|
|
905
919
|
boundElements: readonly Readonly<{
|
|
906
920
|
id: string;
|
|
907
|
-
type: "
|
|
921
|
+
type: "arrow" | "text";
|
|
908
922
|
}>[] | null;
|
|
909
923
|
updated: number;
|
|
910
924
|
link: string | null;
|
|
911
925
|
locked: boolean;
|
|
912
926
|
customData?: Record<string, any> | undefined;
|
|
913
927
|
}> & {
|
|
914
|
-
type: "
|
|
928
|
+
type: "diamond";
|
|
915
929
|
} & {
|
|
916
|
-
index: import("
|
|
930
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
917
931
|
}) | (Readonly<{
|
|
918
932
|
id: string;
|
|
919
933
|
x: number;
|
|
920
934
|
y: number;
|
|
921
935
|
strokeColor: string;
|
|
922
936
|
backgroundColor: string;
|
|
923
|
-
fillStyle: import("
|
|
937
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
924
938
|
strokeWidth: number;
|
|
925
|
-
strokeStyle: import("
|
|
939
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
926
940
|
roundness: {
|
|
927
|
-
type: import("
|
|
941
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
928
942
|
value?: number | undefined;
|
|
929
943
|
} | null;
|
|
930
944
|
roughness: number;
|
|
@@ -935,44 +949,33 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
935
949
|
seed: number;
|
|
936
950
|
version: number;
|
|
937
951
|
versionNonce: number;
|
|
938
|
-
index: import("
|
|
952
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
939
953
|
isDeleted: boolean;
|
|
940
954
|
groupIds: readonly string[];
|
|
941
955
|
frameId: string | null;
|
|
942
956
|
boundElements: readonly Readonly<{
|
|
943
957
|
id: string;
|
|
944
|
-
type: "
|
|
958
|
+
type: "arrow" | "text";
|
|
945
959
|
}>[] | null;
|
|
946
960
|
updated: number;
|
|
947
961
|
link: string | null;
|
|
948
962
|
locked: boolean;
|
|
949
963
|
customData?: Record<string, any> | undefined;
|
|
950
|
-
}> & Readonly<{
|
|
951
|
-
type: "text";
|
|
952
|
-
fontSize: number;
|
|
953
|
-
fontFamily: number;
|
|
954
|
-
text: string;
|
|
955
|
-
textAlign: string;
|
|
956
|
-
verticalAlign: string;
|
|
957
|
-
containerId: string | null;
|
|
958
|
-
originalText: string;
|
|
959
|
-
autoResize: boolean;
|
|
960
|
-
lineHeight: number & {
|
|
961
|
-
_brand: "unitlessLineHeight";
|
|
962
|
-
};
|
|
963
964
|
}> & {
|
|
964
|
-
|
|
965
|
+
type: "ellipse";
|
|
966
|
+
} & {
|
|
967
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
965
968
|
}) | (Readonly<{
|
|
966
969
|
id: string;
|
|
967
970
|
x: number;
|
|
968
971
|
y: number;
|
|
969
972
|
strokeColor: string;
|
|
970
973
|
backgroundColor: string;
|
|
971
|
-
fillStyle: import("
|
|
974
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
972
975
|
strokeWidth: number;
|
|
973
|
-
strokeStyle: import("
|
|
976
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
974
977
|
roundness: {
|
|
975
|
-
type: import("
|
|
978
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
976
979
|
value?: number | undefined;
|
|
977
980
|
} | null;
|
|
978
981
|
roughness: number;
|
|
@@ -983,39 +986,33 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
983
986
|
seed: number;
|
|
984
987
|
version: number;
|
|
985
988
|
versionNonce: number;
|
|
986
|
-
index: import("
|
|
989
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
987
990
|
isDeleted: boolean;
|
|
988
991
|
groupIds: readonly string[];
|
|
989
992
|
frameId: string | null;
|
|
990
993
|
boundElements: readonly Readonly<{
|
|
991
994
|
id: string;
|
|
992
|
-
type: "
|
|
995
|
+
type: "arrow" | "text";
|
|
993
996
|
}>[] | null;
|
|
994
997
|
updated: number;
|
|
995
998
|
link: string | null;
|
|
996
999
|
locked: boolean;
|
|
997
1000
|
customData?: Record<string, any> | undefined;
|
|
998
1001
|
}> & Readonly<{
|
|
999
|
-
type: "
|
|
1000
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1001
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1002
|
-
startBinding: import("../element/types").PointBinding | null;
|
|
1003
|
-
endBinding: import("../element/types").PointBinding | null;
|
|
1004
|
-
startArrowhead: import("../element/types").Arrowhead | null;
|
|
1005
|
-
endArrowhead: import("../element/types").Arrowhead | null;
|
|
1002
|
+
type: "embeddable";
|
|
1006
1003
|
}> & {
|
|
1007
|
-
index: import("
|
|
1004
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1008
1005
|
}) | (Readonly<{
|
|
1009
1006
|
id: string;
|
|
1010
1007
|
x: number;
|
|
1011
1008
|
y: number;
|
|
1012
1009
|
strokeColor: string;
|
|
1013
1010
|
backgroundColor: string;
|
|
1014
|
-
fillStyle: import("
|
|
1011
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1015
1012
|
strokeWidth: number;
|
|
1016
|
-
strokeStyle: import("
|
|
1013
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1017
1014
|
roundness: {
|
|
1018
|
-
type: import("
|
|
1015
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1019
1016
|
value?: number | undefined;
|
|
1020
1017
|
} | null;
|
|
1021
1018
|
roughness: number;
|
|
@@ -1026,37 +1023,36 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1026
1023
|
seed: number;
|
|
1027
1024
|
version: number;
|
|
1028
1025
|
versionNonce: number;
|
|
1029
|
-
index: import("
|
|
1026
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1030
1027
|
isDeleted: boolean;
|
|
1031
1028
|
groupIds: readonly string[];
|
|
1032
1029
|
frameId: string | null;
|
|
1033
1030
|
boundElements: readonly Readonly<{
|
|
1034
1031
|
id: string;
|
|
1035
|
-
type: "
|
|
1032
|
+
type: "arrow" | "text";
|
|
1036
1033
|
}>[] | null;
|
|
1037
1034
|
updated: number;
|
|
1038
1035
|
link: string | null;
|
|
1039
1036
|
locked: boolean;
|
|
1040
1037
|
customData?: Record<string, any> | undefined;
|
|
1041
1038
|
}> & Readonly<{
|
|
1042
|
-
type: "
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1039
|
+
type: "iframe";
|
|
1040
|
+
customData?: {
|
|
1041
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
1042
|
+
} | undefined;
|
|
1047
1043
|
}> & {
|
|
1048
|
-
index: import("
|
|
1044
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1049
1045
|
}) | (Readonly<{
|
|
1050
1046
|
id: string;
|
|
1051
1047
|
x: number;
|
|
1052
1048
|
y: number;
|
|
1053
1049
|
strokeColor: string;
|
|
1054
1050
|
backgroundColor: string;
|
|
1055
|
-
fillStyle: import("
|
|
1051
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1056
1052
|
strokeWidth: number;
|
|
1057
|
-
strokeStyle: import("
|
|
1053
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1058
1054
|
roundness: {
|
|
1059
|
-
type: import("
|
|
1055
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1060
1056
|
value?: number | undefined;
|
|
1061
1057
|
} | null;
|
|
1062
1058
|
roughness: number;
|
|
@@ -1067,13 +1063,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1067
1063
|
seed: number;
|
|
1068
1064
|
version: number;
|
|
1069
1065
|
versionNonce: number;
|
|
1070
|
-
index: import("
|
|
1066
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1071
1067
|
isDeleted: boolean;
|
|
1072
1068
|
groupIds: readonly string[];
|
|
1073
1069
|
frameId: string | null;
|
|
1074
1070
|
boundElements: readonly Readonly<{
|
|
1075
1071
|
id: string;
|
|
1076
|
-
type: "
|
|
1072
|
+
type: "arrow" | "text";
|
|
1077
1073
|
}>[] | null;
|
|
1078
1074
|
updated: number;
|
|
1079
1075
|
link: string | null;
|
|
@@ -1081,23 +1077,23 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1081
1077
|
customData?: Record<string, any> | undefined;
|
|
1082
1078
|
}> & Readonly<{
|
|
1083
1079
|
type: "image";
|
|
1084
|
-
fileId: import("
|
|
1085
|
-
status: "
|
|
1080
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1081
|
+
status: "pending" | "error" | "saved";
|
|
1086
1082
|
scale: [number, number];
|
|
1087
|
-
crop: import("
|
|
1083
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1088
1084
|
}> & {
|
|
1089
|
-
index: import("
|
|
1085
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1090
1086
|
}) | (Readonly<{
|
|
1091
1087
|
id: string;
|
|
1092
1088
|
x: number;
|
|
1093
1089
|
y: number;
|
|
1094
1090
|
strokeColor: string;
|
|
1095
1091
|
backgroundColor: string;
|
|
1096
|
-
fillStyle: import("
|
|
1092
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1097
1093
|
strokeWidth: number;
|
|
1098
|
-
strokeStyle: import("
|
|
1094
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1099
1095
|
roundness: {
|
|
1100
|
-
type: import("
|
|
1096
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1101
1097
|
value?: number | undefined;
|
|
1102
1098
|
} | null;
|
|
1103
1099
|
roughness: number;
|
|
@@ -1108,13 +1104,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1108
1104
|
seed: number;
|
|
1109
1105
|
version: number;
|
|
1110
1106
|
versionNonce: number;
|
|
1111
|
-
index: import("
|
|
1107
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1112
1108
|
isDeleted: boolean;
|
|
1113
1109
|
groupIds: readonly string[];
|
|
1114
1110
|
frameId: string | null;
|
|
1115
1111
|
boundElements: readonly Readonly<{
|
|
1116
1112
|
id: string;
|
|
1117
|
-
type: "
|
|
1113
|
+
type: "arrow" | "text";
|
|
1118
1114
|
}>[] | null;
|
|
1119
1115
|
updated: number;
|
|
1120
1116
|
link: string | null;
|
|
@@ -1124,18 +1120,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1124
1120
|
type: "frame";
|
|
1125
1121
|
name: string | null;
|
|
1126
1122
|
} & {
|
|
1127
|
-
index: import("
|
|
1123
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1128
1124
|
}) | (Readonly<{
|
|
1129
1125
|
id: string;
|
|
1130
1126
|
x: number;
|
|
1131
1127
|
y: number;
|
|
1132
1128
|
strokeColor: string;
|
|
1133
1129
|
backgroundColor: string;
|
|
1134
|
-
fillStyle: import("
|
|
1130
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1135
1131
|
strokeWidth: number;
|
|
1136
|
-
strokeStyle: import("
|
|
1132
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1137
1133
|
roundness: {
|
|
1138
|
-
type: import("
|
|
1134
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1139
1135
|
value?: number | undefined;
|
|
1140
1136
|
} | null;
|
|
1141
1137
|
roughness: number;
|
|
@@ -1146,13 +1142,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1146
1142
|
seed: number;
|
|
1147
1143
|
version: number;
|
|
1148
1144
|
versionNonce: number;
|
|
1149
|
-
index: import("
|
|
1145
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1150
1146
|
isDeleted: boolean;
|
|
1151
1147
|
groupIds: readonly string[];
|
|
1152
1148
|
frameId: string | null;
|
|
1153
1149
|
boundElements: readonly Readonly<{
|
|
1154
1150
|
id: string;
|
|
1155
|
-
type: "
|
|
1151
|
+
type: "arrow" | "text";
|
|
1156
1152
|
}>[] | null;
|
|
1157
1153
|
updated: number;
|
|
1158
1154
|
link: string | null;
|
|
@@ -1162,18 +1158,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1162
1158
|
type: "magicframe";
|
|
1163
1159
|
name: string | null;
|
|
1164
1160
|
} & {
|
|
1165
|
-
index: import("
|
|
1161
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1166
1162
|
}) | (Readonly<{
|
|
1167
1163
|
id: string;
|
|
1168
1164
|
x: number;
|
|
1169
1165
|
y: number;
|
|
1170
1166
|
strokeColor: string;
|
|
1171
1167
|
backgroundColor: string;
|
|
1172
|
-
fillStyle: import("
|
|
1168
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1173
1169
|
strokeWidth: number;
|
|
1174
|
-
strokeStyle: import("
|
|
1170
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1175
1171
|
roundness: {
|
|
1176
|
-
type: import("
|
|
1172
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1177
1173
|
value?: number | undefined;
|
|
1178
1174
|
} | null;
|
|
1179
1175
|
roughness: number;
|
|
@@ -1184,36 +1180,44 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1184
1180
|
seed: number;
|
|
1185
1181
|
version: number;
|
|
1186
1182
|
versionNonce: number;
|
|
1187
|
-
index: import("
|
|
1183
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1188
1184
|
isDeleted: boolean;
|
|
1189
1185
|
groupIds: readonly string[];
|
|
1190
1186
|
frameId: string | null;
|
|
1191
1187
|
boundElements: readonly Readonly<{
|
|
1192
1188
|
id: string;
|
|
1193
|
-
type: "
|
|
1189
|
+
type: "arrow" | "text";
|
|
1194
1190
|
}>[] | null;
|
|
1195
1191
|
updated: number;
|
|
1196
1192
|
link: string | null;
|
|
1197
1193
|
locked: boolean;
|
|
1198
1194
|
customData?: Record<string, any> | undefined;
|
|
1199
1195
|
}> & Readonly<{
|
|
1200
|
-
type: "
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1196
|
+
type: "text";
|
|
1197
|
+
fontSize: number;
|
|
1198
|
+
fontFamily: number;
|
|
1199
|
+
text: string;
|
|
1200
|
+
textAlign: string;
|
|
1201
|
+
verticalAlign: string;
|
|
1202
|
+
containerId: string | null;
|
|
1203
|
+
originalText: string;
|
|
1204
|
+
autoResize: boolean;
|
|
1205
|
+
lineHeight: number & {
|
|
1206
|
+
_brand: "unitlessLineHeight";
|
|
1207
|
+
};
|
|
1204
1208
|
}> & {
|
|
1205
|
-
index: import("
|
|
1209
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1206
1210
|
}) | (Readonly<{
|
|
1207
1211
|
id: string;
|
|
1208
1212
|
x: number;
|
|
1209
1213
|
y: number;
|
|
1210
1214
|
strokeColor: string;
|
|
1211
1215
|
backgroundColor: string;
|
|
1212
|
-
fillStyle: import("
|
|
1216
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1213
1217
|
strokeWidth: number;
|
|
1214
|
-
strokeStyle: import("
|
|
1218
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1215
1219
|
roundness: {
|
|
1216
|
-
type: import("
|
|
1220
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1217
1221
|
value?: number | undefined;
|
|
1218
1222
|
} | null;
|
|
1219
1223
|
roughness: number;
|
|
@@ -1224,23 +1228,27 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1224
1228
|
seed: number;
|
|
1225
1229
|
version: number;
|
|
1226
1230
|
versionNonce: number;
|
|
1227
|
-
index: import("
|
|
1231
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1228
1232
|
isDeleted: boolean;
|
|
1229
1233
|
groupIds: readonly string[];
|
|
1230
1234
|
frameId: string | null;
|
|
1231
1235
|
boundElements: readonly Readonly<{
|
|
1232
1236
|
id: string;
|
|
1233
|
-
type: "
|
|
1237
|
+
type: "arrow" | "text";
|
|
1234
1238
|
}>[] | null;
|
|
1235
1239
|
updated: number;
|
|
1236
1240
|
link: string | null;
|
|
1237
1241
|
locked: boolean;
|
|
1238
1242
|
customData?: Record<string, any> | undefined;
|
|
1239
1243
|
}> & Readonly<{
|
|
1240
|
-
type: "
|
|
1244
|
+
type: "freedraw";
|
|
1245
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1246
|
+
pressures: readonly number[];
|
|
1247
|
+
simulatePressure: boolean;
|
|
1248
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1241
1249
|
}> & {
|
|
1242
|
-
index: import("
|
|
1243
|
-
}))[];
|
|
1250
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1251
|
+
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|
|
1244
1252
|
appState: {
|
|
1245
1253
|
selectedElementIds: {
|
|
1246
1254
|
[x: string]: true;
|