@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,15 +1,56 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "
|
|
2
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
|
+
import type { LocalPoint } from "@excalidraw/math";
|
|
4
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
|
|
3
5
|
import type { AppState } from "../types";
|
|
4
6
|
export declare const actionFinalize: {
|
|
5
7
|
name: "finalize";
|
|
6
8
|
label: string;
|
|
7
9
|
trackEvent: false;
|
|
8
|
-
perform: (elements: readonly import("
|
|
9
|
-
elements: import("
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, data: any, app: import("../types").AppClassProperties) => {
|
|
11
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
|
+
appState: {
|
|
13
|
+
selectedLinearElement: {
|
|
14
|
+
selectedPointsIndices: null;
|
|
15
|
+
elementId: string & {
|
|
16
|
+
_brand: "excalidrawLinearElementId";
|
|
17
|
+
};
|
|
18
|
+
pointerDownState: Readonly<{
|
|
19
|
+
prevSelectedPointsIndices: readonly number[] | null;
|
|
20
|
+
lastClickedPoint: number;
|
|
21
|
+
lastClickedIsEndPoint: boolean;
|
|
22
|
+
origin: Readonly<{
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
}> | null;
|
|
26
|
+
segmentMidpoint: {
|
|
27
|
+
value: import("@excalidraw/math").GlobalPoint | null;
|
|
28
|
+
index: number | null;
|
|
29
|
+
added: boolean;
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
isDragging: boolean;
|
|
33
|
+
lastUncommittedPoint: LocalPoint | null;
|
|
34
|
+
pointerOffset: Readonly<{
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
}>;
|
|
38
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
39
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
40
|
+
hoverPointIndex: number;
|
|
41
|
+
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
42
|
+
elbowed: boolean;
|
|
43
|
+
customLineAngle: number | null;
|
|
44
|
+
isEditing: boolean;
|
|
45
|
+
};
|
|
46
|
+
suggestedBindings: never[];
|
|
47
|
+
};
|
|
48
|
+
captureUpdate: "IMMEDIATELY";
|
|
49
|
+
} | {
|
|
50
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
|
|
10
51
|
appState: {
|
|
11
52
|
cursorButton: "up";
|
|
12
|
-
|
|
53
|
+
selectedLinearElement: LinearElementEditor;
|
|
13
54
|
contextMenu: {
|
|
14
55
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
15
56
|
top: number;
|
|
@@ -19,17 +60,17 @@ export declare const actionFinalize: {
|
|
|
19
60
|
isLoading: boolean;
|
|
20
61
|
errorMessage: import("react").ReactNode;
|
|
21
62
|
activeEmbeddable: {
|
|
22
|
-
element: import("
|
|
23
|
-
state: "
|
|
63
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
64
|
+
state: "active" | "hover";
|
|
24
65
|
} | null;
|
|
25
|
-
newElement:
|
|
26
|
-
resizingElement: import("
|
|
27
|
-
multiElement:
|
|
28
|
-
selectionElement: import("
|
|
66
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
67
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
68
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
69
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
70
|
isBindingEnabled: boolean;
|
|
30
|
-
startBoundElement:
|
|
31
|
-
suggestedBindings: import("
|
|
32
|
-
frameToHighlight:
|
|
71
|
+
startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
72
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
73
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
74
|
frameRendering: {
|
|
34
75
|
enabled: boolean;
|
|
35
76
|
name: boolean;
|
|
@@ -37,12 +78,17 @@ export declare const actionFinalize: {
|
|
|
37
78
|
clip: boolean;
|
|
38
79
|
};
|
|
39
80
|
editingFrame: string | null;
|
|
40
|
-
elementsToHighlight:
|
|
41
|
-
editingTextElement: import("
|
|
81
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
82
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
83
|
activeTool: {
|
|
43
84
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
85
|
locked: boolean;
|
|
86
|
+
fromSelection: boolean;
|
|
45
87
|
} & import("../types").ActiveTool;
|
|
88
|
+
preferredSelectionTool: {
|
|
89
|
+
type: "selection" | "lasso";
|
|
90
|
+
initialized: boolean;
|
|
91
|
+
};
|
|
46
92
|
penMode: boolean;
|
|
47
93
|
penDetected: boolean;
|
|
48
94
|
exportBackground: boolean;
|
|
@@ -51,18 +97,18 @@ export declare const actionFinalize: {
|
|
|
51
97
|
exportScale: number;
|
|
52
98
|
currentItemStrokeColor: string;
|
|
53
99
|
currentItemBackgroundColor: string;
|
|
54
|
-
currentItemFillStyle: import("
|
|
100
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
55
101
|
currentItemStrokeWidth: number;
|
|
56
|
-
currentItemStrokeStyle: import("
|
|
102
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
57
103
|
currentItemRoughness: number;
|
|
58
104
|
currentItemOpacity: number;
|
|
59
105
|
currentItemFontFamily: number;
|
|
60
106
|
currentItemFontSize: number;
|
|
61
107
|
currentItemTextAlign: string;
|
|
62
|
-
currentItemStartArrowhead: import("
|
|
63
|
-
currentItemEndArrowhead: import("
|
|
108
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
109
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
64
110
|
currentHoveredFontFamily: number | null;
|
|
65
|
-
currentItemRoundness: import("
|
|
111
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
66
112
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
67
113
|
viewBackgroundColor: string;
|
|
68
114
|
scrollX: number;
|
|
@@ -75,7 +121,7 @@ export declare const actionFinalize: {
|
|
|
75
121
|
value: import("../types").NormalizedZoomValue;
|
|
76
122
|
}>;
|
|
77
123
|
openMenu: "canvas" | "shape" | null;
|
|
78
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
124
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
79
125
|
openSidebar: {
|
|
80
126
|
name: string;
|
|
81
127
|
tab?: string | undefined;
|
|
@@ -84,7 +130,7 @@ export declare const actionFinalize: {
|
|
|
84
130
|
name: "imageExport" | "help" | "jsonExport";
|
|
85
131
|
} | {
|
|
86
132
|
name: "ttd";
|
|
87
|
-
tab: "text-to-diagram"
|
|
133
|
+
tab: "mermaid" | "text-to-diagram";
|
|
88
134
|
} | {
|
|
89
135
|
name: "commandPalette";
|
|
90
136
|
} | {
|
|
@@ -92,7 +138,7 @@ export declare const actionFinalize: {
|
|
|
92
138
|
sourceElementId: string;
|
|
93
139
|
} | null;
|
|
94
140
|
defaultSidebarDockedPreference: boolean;
|
|
95
|
-
lastPointerDownWith: import("
|
|
141
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
96
142
|
selectedElementIds: Readonly<{
|
|
97
143
|
[id: string]: true;
|
|
98
144
|
}>;
|
|
@@ -110,7 +156,7 @@ export declare const actionFinalize: {
|
|
|
110
156
|
duration?: number | undefined;
|
|
111
157
|
} | null;
|
|
112
158
|
zenModeEnabled: boolean;
|
|
113
|
-
theme: import("
|
|
159
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
114
160
|
gridSize: number;
|
|
115
161
|
gridStep: number;
|
|
116
162
|
gridModeEnabled: boolean;
|
|
@@ -131,7 +177,7 @@ export declare const actionFinalize: {
|
|
|
131
177
|
[id: string]: true;
|
|
132
178
|
}> | undefined;
|
|
133
179
|
username?: string | null | undefined;
|
|
134
|
-
userState?: import("
|
|
180
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
135
181
|
color?: {
|
|
136
182
|
background: string;
|
|
137
183
|
stroke: string;
|
|
@@ -148,7 +194,7 @@ export declare const actionFinalize: {
|
|
|
148
194
|
open: boolean;
|
|
149
195
|
panels: number;
|
|
150
196
|
};
|
|
151
|
-
currentChartType: import("
|
|
197
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
152
198
|
pasteDialog: {
|
|
153
199
|
shown: false;
|
|
154
200
|
data: null;
|
|
@@ -156,9 +202,7 @@ export declare const actionFinalize: {
|
|
|
156
202
|
shown: true;
|
|
157
203
|
data: import("../charts").Spreadsheet;
|
|
158
204
|
};
|
|
159
|
-
|
|
160
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
161
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
205
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
162
206
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
207
|
originSnapOffset: {
|
|
164
208
|
x: number;
|
|
@@ -169,25 +213,25 @@ export declare const actionFinalize: {
|
|
|
169
213
|
followedBy: Set<import("../types").SocketId>;
|
|
170
214
|
isCropping: boolean;
|
|
171
215
|
croppingElementId: string | null;
|
|
172
|
-
searchMatches:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}[];
|
|
216
|
+
searchMatches: Readonly<{
|
|
217
|
+
focusedId: string | null;
|
|
218
|
+
matches: readonly import("../types").SearchMatch[];
|
|
219
|
+
}> | null;
|
|
220
|
+
activeLockedId: string | null;
|
|
221
|
+
lockedMultiSelections: {
|
|
222
|
+
[groupId: string]: true;
|
|
223
|
+
};
|
|
224
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
182
225
|
};
|
|
183
226
|
captureUpdate: "IMMEDIATELY";
|
|
184
227
|
} | {
|
|
185
|
-
elements: readonly import("
|
|
228
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
186
229
|
appState: {
|
|
187
230
|
cursorButton: "up";
|
|
188
231
|
activeTool: {
|
|
189
232
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
190
233
|
locked: boolean;
|
|
234
|
+
fromSelection: boolean;
|
|
191
235
|
} & import("../types").ActiveTool;
|
|
192
236
|
activeEmbeddable: null;
|
|
193
237
|
newElement: null;
|
|
@@ -200,7 +244,6 @@ export declare const actionFinalize: {
|
|
|
200
244
|
[id: string]: true;
|
|
201
245
|
}>;
|
|
202
246
|
selectedLinearElement: LinearElementEditor | null;
|
|
203
|
-
pendingImageElementId: null;
|
|
204
247
|
contextMenu: {
|
|
205
248
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
206
249
|
top: number;
|
|
@@ -209,9 +252,9 @@ export declare const actionFinalize: {
|
|
|
209
252
|
showWelcomeScreen: boolean;
|
|
210
253
|
isLoading: boolean;
|
|
211
254
|
errorMessage: import("react").ReactNode;
|
|
212
|
-
resizingElement: import("
|
|
255
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
213
256
|
isBindingEnabled: boolean;
|
|
214
|
-
frameToHighlight:
|
|
257
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
215
258
|
frameRendering: {
|
|
216
259
|
enabled: boolean;
|
|
217
260
|
name: boolean;
|
|
@@ -219,8 +262,11 @@ export declare const actionFinalize: {
|
|
|
219
262
|
clip: boolean;
|
|
220
263
|
};
|
|
221
264
|
editingFrame: string | null;
|
|
222
|
-
elementsToHighlight:
|
|
223
|
-
|
|
265
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
266
|
+
preferredSelectionTool: {
|
|
267
|
+
type: "selection" | "lasso";
|
|
268
|
+
initialized: boolean;
|
|
269
|
+
};
|
|
224
270
|
penMode: boolean;
|
|
225
271
|
penDetected: boolean;
|
|
226
272
|
exportBackground: boolean;
|
|
@@ -229,18 +275,18 @@ export declare const actionFinalize: {
|
|
|
229
275
|
exportScale: number;
|
|
230
276
|
currentItemStrokeColor: string;
|
|
231
277
|
currentItemBackgroundColor: string;
|
|
232
|
-
currentItemFillStyle: import("
|
|
278
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
233
279
|
currentItemStrokeWidth: number;
|
|
234
|
-
currentItemStrokeStyle: import("
|
|
280
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
235
281
|
currentItemRoughness: number;
|
|
236
282
|
currentItemOpacity: number;
|
|
237
283
|
currentItemFontFamily: number;
|
|
238
284
|
currentItemFontSize: number;
|
|
239
285
|
currentItemTextAlign: string;
|
|
240
|
-
currentItemStartArrowhead: import("
|
|
241
|
-
currentItemEndArrowhead: import("
|
|
286
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
287
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
242
288
|
currentHoveredFontFamily: number | null;
|
|
243
|
-
currentItemRoundness: import("
|
|
289
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
244
290
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
245
291
|
viewBackgroundColor: string;
|
|
246
292
|
scrollX: number;
|
|
@@ -253,7 +299,7 @@ export declare const actionFinalize: {
|
|
|
253
299
|
value: import("../types").NormalizedZoomValue;
|
|
254
300
|
}>;
|
|
255
301
|
openMenu: "canvas" | "shape" | null;
|
|
256
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
302
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
257
303
|
openSidebar: {
|
|
258
304
|
name: string;
|
|
259
305
|
tab?: string | undefined;
|
|
@@ -262,7 +308,7 @@ export declare const actionFinalize: {
|
|
|
262
308
|
name: "imageExport" | "help" | "jsonExport";
|
|
263
309
|
} | {
|
|
264
310
|
name: "ttd";
|
|
265
|
-
tab: "text-to-diagram"
|
|
311
|
+
tab: "mermaid" | "text-to-diagram";
|
|
266
312
|
} | {
|
|
267
313
|
name: "commandPalette";
|
|
268
314
|
} | {
|
|
@@ -270,7 +316,7 @@ export declare const actionFinalize: {
|
|
|
270
316
|
sourceElementId: string;
|
|
271
317
|
} | null;
|
|
272
318
|
defaultSidebarDockedPreference: boolean;
|
|
273
|
-
lastPointerDownWith: import("
|
|
319
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
274
320
|
hoveredElementIds: Readonly<{
|
|
275
321
|
[id: string]: true;
|
|
276
322
|
}>;
|
|
@@ -285,7 +331,7 @@ export declare const actionFinalize: {
|
|
|
285
331
|
duration?: number | undefined;
|
|
286
332
|
} | null;
|
|
287
333
|
zenModeEnabled: boolean;
|
|
288
|
-
theme: import("
|
|
334
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
289
335
|
gridSize: number;
|
|
290
336
|
gridStep: number;
|
|
291
337
|
gridModeEnabled: boolean;
|
|
@@ -306,7 +352,7 @@ export declare const actionFinalize: {
|
|
|
306
352
|
[id: string]: true;
|
|
307
353
|
}> | undefined;
|
|
308
354
|
username?: string | null | undefined;
|
|
309
|
-
userState?: import("
|
|
355
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
310
356
|
color?: {
|
|
311
357
|
background: string;
|
|
312
358
|
stroke: string;
|
|
@@ -323,7 +369,7 @@ export declare const actionFinalize: {
|
|
|
323
369
|
open: boolean;
|
|
324
370
|
panels: number;
|
|
325
371
|
};
|
|
326
|
-
currentChartType: import("
|
|
372
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
327
373
|
pasteDialog: {
|
|
328
374
|
shown: false;
|
|
329
375
|
data: null;
|
|
@@ -331,7 +377,7 @@ export declare const actionFinalize: {
|
|
|
331
377
|
shown: true;
|
|
332
378
|
data: import("../charts").Spreadsheet;
|
|
333
379
|
};
|
|
334
|
-
showHyperlinkPopup: false | "
|
|
380
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
335
381
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
336
382
|
originSnapOffset: {
|
|
337
383
|
x: number;
|
|
@@ -342,16 +388,15 @@ export declare const actionFinalize: {
|
|
|
342
388
|
followedBy: Set<import("../types").SocketId>;
|
|
343
389
|
isCropping: boolean;
|
|
344
390
|
croppingElementId: string | null;
|
|
345
|
-
searchMatches:
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}[];
|
|
391
|
+
searchMatches: Readonly<{
|
|
392
|
+
focusedId: string | null;
|
|
393
|
+
matches: readonly import("../types").SearchMatch[];
|
|
394
|
+
}> | null;
|
|
395
|
+
activeLockedId: string | null;
|
|
396
|
+
lockedMultiSelections: {
|
|
397
|
+
[groupId: string]: true;
|
|
398
|
+
};
|
|
399
|
+
stylesPanelMode: "compact" | "full" | "mobile";
|
|
355
400
|
};
|
|
356
401
|
captureUpdate: "IMMEDIATELY";
|
|
357
402
|
};
|
|
@@ -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 actionFlipHorizontal: {
|
|
5
5
|
name: "flipHorizontal";
|
|
@@ -8,7 +8,7 @@ export declare const actionFlipHorizontal: {
|
|
|
8
8
|
trackEvent: {
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
|
-
perform: (elements: readonly import("
|
|
11
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -24,7 +24,7 @@ export declare const actionFlipVertical: {
|
|
|
24
24
|
trackEvent: {
|
|
25
25
|
category: "element";
|
|
26
26
|
};
|
|
27
|
-
perform: (elements: readonly import("
|
|
27
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
appState: Readonly<AppState>;
|
|
30
30
|
captureUpdate: "IMMEDIATELY";
|