@excalidraw/excalidraw 0.18.0-817d8c5 → 0.18.0-9036812b6
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-FRLWKCNE.js +5668 -0
- package/dist/dev/chunk-FRLWKCNE.js.map +7 -0
- package/dist/dev/{chunk-LMHBUWQS.js → chunk-QF5FRM6O.js} +16 -5
- package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
- package/dist/dev/data/{image-V26YBSDB.js → image-T2LJEHDP.js} +3 -3
- package/dist/dev/index.css +3021 -2942
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +30882 -24351
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-OZCJJ2HN.js → en-SMAPCEOQ.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-I4UNSFV6.js +12 -0
- package/dist/prod/chunk-LS7FJGPW.js +86 -0
- package/dist/prod/chunk-YZO7PSYQ.js +4 -0
- package/dist/prod/data/image-53OPA26C.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-TYY6KWIJ.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 +29 -8
- 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 +22 -11
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +14 -17
- 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 +19 -6
- 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} +74 -40
- 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 +57 -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/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -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 +232 -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 +97 -106
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +70 -76
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +627 -490
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +206 -222
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -37
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +102 -110
- 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 +37 -40
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +82 -90
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +34 -47
- package/dist/types/excalidraw/actions/actionExport.d.ts +351 -378
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +100 -65
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +252 -264
- package/dist/types/excalidraw/actions/actionGroup.d.ts +67 -73
- package/dist/types/excalidraw/actions/actionHistory.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +561 -40
- package/dist/types/excalidraw/actions/actionLink.d.ts +35 -38
- package/dist/types/excalidraw/actions/actionMenu.d.ts +98 -107
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +65 -71
- package/dist/types/excalidraw/actions/actionProperties.d.ts +469 -506
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +35 -38
- package/dist/types/excalidraw/actions/actionStyles.d.ts +36 -39
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +34 -37
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -37
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +33 -208
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +33 -37
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +34 -38
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +34 -38
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- 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 +38 -28
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +7 -7
- package/dist/types/excalidraw/components/Actions.d.ts +3 -7
- package/dist/types/excalidraw/components/App.d.ts +45 -29
- 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 +9 -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 +4 -5
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -4
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -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 +1 -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/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 +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- 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/Island.d.ts +1 -1
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
- package/dist/types/excalidraw/components/LayerUI.d.ts +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -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 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/TextField.d.ts +1 -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/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 +1 -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 +5 -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 +62 -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 +4 -4
- 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 +1 -1
- package/dist/types/excalidraw/data/transform.d.ts +4 -4
- package/dist/types/excalidraw/data/types.d.ts +3 -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/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +17 -15
- 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 +44 -25
- 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} +1 -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 +149 -110
- package/package.json +25 -10
- 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-T2LJEHDP.js.map} +0 -0
- /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-SMAPCEOQ.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,11 +78,12 @@ 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;
|
|
46
88
|
penMode: boolean;
|
|
47
89
|
penDetected: boolean;
|
|
@@ -51,18 +93,18 @@ export declare const actionFinalize: {
|
|
|
51
93
|
exportScale: number;
|
|
52
94
|
currentItemStrokeColor: string;
|
|
53
95
|
currentItemBackgroundColor: string;
|
|
54
|
-
currentItemFillStyle: import("
|
|
96
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
55
97
|
currentItemStrokeWidth: number;
|
|
56
|
-
currentItemStrokeStyle: import("
|
|
98
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
57
99
|
currentItemRoughness: number;
|
|
58
100
|
currentItemOpacity: number;
|
|
59
101
|
currentItemFontFamily: number;
|
|
60
102
|
currentItemFontSize: number;
|
|
61
103
|
currentItemTextAlign: string;
|
|
62
|
-
currentItemStartArrowhead: import("
|
|
63
|
-
currentItemEndArrowhead: import("
|
|
104
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
105
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
64
106
|
currentHoveredFontFamily: number | null;
|
|
65
|
-
currentItemRoundness: import("
|
|
107
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
66
108
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
67
109
|
viewBackgroundColor: string;
|
|
68
110
|
scrollX: number;
|
|
@@ -84,7 +126,7 @@ export declare const actionFinalize: {
|
|
|
84
126
|
name: "imageExport" | "help" | "jsonExport";
|
|
85
127
|
} | {
|
|
86
128
|
name: "ttd";
|
|
87
|
-
tab: "text-to-diagram"
|
|
129
|
+
tab: "mermaid" | "text-to-diagram";
|
|
88
130
|
} | {
|
|
89
131
|
name: "commandPalette";
|
|
90
132
|
} | {
|
|
@@ -92,7 +134,7 @@ export declare const actionFinalize: {
|
|
|
92
134
|
sourceElementId: string;
|
|
93
135
|
} | null;
|
|
94
136
|
defaultSidebarDockedPreference: boolean;
|
|
95
|
-
lastPointerDownWith: import("
|
|
137
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
96
138
|
selectedElementIds: Readonly<{
|
|
97
139
|
[id: string]: true;
|
|
98
140
|
}>;
|
|
@@ -110,7 +152,7 @@ export declare const actionFinalize: {
|
|
|
110
152
|
duration?: number | undefined;
|
|
111
153
|
} | null;
|
|
112
154
|
zenModeEnabled: boolean;
|
|
113
|
-
theme: import("
|
|
155
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
114
156
|
gridSize: number;
|
|
115
157
|
gridStep: number;
|
|
116
158
|
gridModeEnabled: boolean;
|
|
@@ -131,7 +173,7 @@ export declare const actionFinalize: {
|
|
|
131
173
|
[id: string]: true;
|
|
132
174
|
}> | undefined;
|
|
133
175
|
username?: string | null | undefined;
|
|
134
|
-
userState?: import("
|
|
176
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
135
177
|
color?: {
|
|
136
178
|
background: string;
|
|
137
179
|
stroke: string;
|
|
@@ -148,7 +190,7 @@ export declare const actionFinalize: {
|
|
|
148
190
|
open: boolean;
|
|
149
191
|
panels: number;
|
|
150
192
|
};
|
|
151
|
-
currentChartType: import("
|
|
193
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
152
194
|
pasteDialog: {
|
|
153
195
|
shown: false;
|
|
154
196
|
data: null;
|
|
@@ -156,9 +198,7 @@ export declare const actionFinalize: {
|
|
|
156
198
|
shown: true;
|
|
157
199
|
data: import("../charts").Spreadsheet;
|
|
158
200
|
};
|
|
159
|
-
|
|
160
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
161
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
201
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
162
202
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
203
|
originSnapOffset: {
|
|
164
204
|
x: number;
|
|
@@ -169,25 +209,24 @@ export declare const actionFinalize: {
|
|
|
169
209
|
followedBy: Set<import("../types").SocketId>;
|
|
170
210
|
isCropping: boolean;
|
|
171
211
|
croppingElementId: string | null;
|
|
172
|
-
searchMatches:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}[];
|
|
181
|
-
}[];
|
|
212
|
+
searchMatches: Readonly<{
|
|
213
|
+
focusedId: string | null;
|
|
214
|
+
matches: readonly import("../types").SearchMatch[];
|
|
215
|
+
}> | null;
|
|
216
|
+
activeLockedId: string | null;
|
|
217
|
+
lockedMultiSelections: {
|
|
218
|
+
[groupId: string]: true;
|
|
219
|
+
};
|
|
182
220
|
};
|
|
183
221
|
captureUpdate: "IMMEDIATELY";
|
|
184
222
|
} | {
|
|
185
|
-
elements: readonly import("
|
|
223
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
186
224
|
appState: {
|
|
187
225
|
cursorButton: "up";
|
|
188
226
|
activeTool: {
|
|
189
227
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
190
228
|
locked: boolean;
|
|
229
|
+
fromSelection: boolean;
|
|
191
230
|
} & import("../types").ActiveTool;
|
|
192
231
|
activeEmbeddable: null;
|
|
193
232
|
newElement: null;
|
|
@@ -200,7 +239,6 @@ export declare const actionFinalize: {
|
|
|
200
239
|
[id: string]: true;
|
|
201
240
|
}>;
|
|
202
241
|
selectedLinearElement: LinearElementEditor | null;
|
|
203
|
-
pendingImageElementId: null;
|
|
204
242
|
contextMenu: {
|
|
205
243
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
206
244
|
top: number;
|
|
@@ -209,9 +247,9 @@ export declare const actionFinalize: {
|
|
|
209
247
|
showWelcomeScreen: boolean;
|
|
210
248
|
isLoading: boolean;
|
|
211
249
|
errorMessage: import("react").ReactNode;
|
|
212
|
-
resizingElement: import("
|
|
250
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
213
251
|
isBindingEnabled: boolean;
|
|
214
|
-
frameToHighlight:
|
|
252
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
215
253
|
frameRendering: {
|
|
216
254
|
enabled: boolean;
|
|
217
255
|
name: boolean;
|
|
@@ -219,8 +257,7 @@ export declare const actionFinalize: {
|
|
|
219
257
|
clip: boolean;
|
|
220
258
|
};
|
|
221
259
|
editingFrame: string | null;
|
|
222
|
-
elementsToHighlight:
|
|
223
|
-
editingLinearElement: LinearElementEditor | null;
|
|
260
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
224
261
|
penMode: boolean;
|
|
225
262
|
penDetected: boolean;
|
|
226
263
|
exportBackground: boolean;
|
|
@@ -229,18 +266,18 @@ export declare const actionFinalize: {
|
|
|
229
266
|
exportScale: number;
|
|
230
267
|
currentItemStrokeColor: string;
|
|
231
268
|
currentItemBackgroundColor: string;
|
|
232
|
-
currentItemFillStyle: import("
|
|
269
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
233
270
|
currentItemStrokeWidth: number;
|
|
234
|
-
currentItemStrokeStyle: import("
|
|
271
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
235
272
|
currentItemRoughness: number;
|
|
236
273
|
currentItemOpacity: number;
|
|
237
274
|
currentItemFontFamily: number;
|
|
238
275
|
currentItemFontSize: number;
|
|
239
276
|
currentItemTextAlign: string;
|
|
240
|
-
currentItemStartArrowhead: import("
|
|
241
|
-
currentItemEndArrowhead: import("
|
|
277
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
278
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
242
279
|
currentHoveredFontFamily: number | null;
|
|
243
|
-
currentItemRoundness: import("
|
|
280
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
244
281
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
245
282
|
viewBackgroundColor: string;
|
|
246
283
|
scrollX: number;
|
|
@@ -262,7 +299,7 @@ export declare const actionFinalize: {
|
|
|
262
299
|
name: "imageExport" | "help" | "jsonExport";
|
|
263
300
|
} | {
|
|
264
301
|
name: "ttd";
|
|
265
|
-
tab: "text-to-diagram"
|
|
302
|
+
tab: "mermaid" | "text-to-diagram";
|
|
266
303
|
} | {
|
|
267
304
|
name: "commandPalette";
|
|
268
305
|
} | {
|
|
@@ -270,7 +307,7 @@ export declare const actionFinalize: {
|
|
|
270
307
|
sourceElementId: string;
|
|
271
308
|
} | null;
|
|
272
309
|
defaultSidebarDockedPreference: boolean;
|
|
273
|
-
lastPointerDownWith: import("
|
|
310
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
274
311
|
hoveredElementIds: Readonly<{
|
|
275
312
|
[id: string]: true;
|
|
276
313
|
}>;
|
|
@@ -285,7 +322,7 @@ export declare const actionFinalize: {
|
|
|
285
322
|
duration?: number | undefined;
|
|
286
323
|
} | null;
|
|
287
324
|
zenModeEnabled: boolean;
|
|
288
|
-
theme: import("
|
|
325
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
289
326
|
gridSize: number;
|
|
290
327
|
gridStep: number;
|
|
291
328
|
gridModeEnabled: boolean;
|
|
@@ -306,7 +343,7 @@ export declare const actionFinalize: {
|
|
|
306
343
|
[id: string]: true;
|
|
307
344
|
}> | undefined;
|
|
308
345
|
username?: string | null | undefined;
|
|
309
|
-
userState?: import("
|
|
346
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
310
347
|
color?: {
|
|
311
348
|
background: string;
|
|
312
349
|
stroke: string;
|
|
@@ -323,7 +360,7 @@ export declare const actionFinalize: {
|
|
|
323
360
|
open: boolean;
|
|
324
361
|
panels: number;
|
|
325
362
|
};
|
|
326
|
-
currentChartType: import("
|
|
363
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
327
364
|
pasteDialog: {
|
|
328
365
|
shown: false;
|
|
329
366
|
data: null;
|
|
@@ -331,7 +368,7 @@ export declare const actionFinalize: {
|
|
|
331
368
|
shown: true;
|
|
332
369
|
data: import("../charts").Spreadsheet;
|
|
333
370
|
};
|
|
334
|
-
showHyperlinkPopup: false | "
|
|
371
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
335
372
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
336
373
|
originSnapOffset: {
|
|
337
374
|
x: number;
|
|
@@ -342,16 +379,14 @@ export declare const actionFinalize: {
|
|
|
342
379
|
followedBy: Set<import("../types").SocketId>;
|
|
343
380
|
isCropping: boolean;
|
|
344
381
|
croppingElementId: string | null;
|
|
345
|
-
searchMatches:
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}[];
|
|
354
|
-
}[];
|
|
382
|
+
searchMatches: Readonly<{
|
|
383
|
+
focusedId: string | null;
|
|
384
|
+
matches: readonly import("../types").SearchMatch[];
|
|
385
|
+
}> | null;
|
|
386
|
+
activeLockedId: string | null;
|
|
387
|
+
lockedMultiSelections: {
|
|
388
|
+
[groupId: string]: true;
|
|
389
|
+
};
|
|
355
390
|
};
|
|
356
391
|
captureUpdate: "IMMEDIATELY";
|
|
357
392
|
};
|
|
@@ -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";
|