@excalidraw/excalidraw 0.18.0-432a46e → 0.18.0-58f7d33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/{chunk-ZG3EI5XS.js → chunk-KKJLIRJU.js} +2 -2
- package/dist/dev/{chunk-ZG3EI5XS.js.map → chunk-KKJLIRJU.js.map} +1 -1
- package/dist/dev/{chunk-S7W4OWSF.js → chunk-LEJJ2YZY.js} +461 -192
- package/dist/dev/chunk-LEJJ2YZY.js.map +7 -0
- package/dist/dev/{chunk-LMHBUWQS.js → chunk-X3RYHLJU.js} +2 -1
- package/dist/dev/chunk-X3RYHLJU.js.map +7 -0
- package/dist/dev/data/{image-5HAY2PCR.js → image-U2IPNUKJ.js} +3 -3
- package/dist/dev/index.css +43 -46
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +678 -190
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-OZCJJ2HN.js → en-CKWC2GMK.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-6U3AYISY.js → chunk-IUH5AXLB.js} +1 -1
- package/dist/prod/{chunk-U24AOZ3B.js → chunk-QUX7WTVH.js} +1 -1
- package/dist/prod/chunk-RQK6WG4F.js +33 -0
- package/dist/prod/data/image-UQDATCXC.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +14 -14
- package/dist/prod/locales/{en-B4ZKOASM.js → en-SBO6ZHT2.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/{packages/common → common}/src/colors.d.ts +1 -0
- package/dist/types/{packages/common → common}/src/constants.d.ts +3 -0
- package/dist/types/{packages/common → common}/src/utils.d.ts +5 -1
- package/dist/types/{packages/element → element}/src/binding.d.ts +2 -1
- package/dist/types/{packages/element → element}/src/bounds.d.ts +5 -0
- package/dist/types/{packages/element → element}/src/collision.d.ts +1 -1
- package/dist/types/{packages/element → element}/src/heading.d.ts +0 -1
- package/dist/types/{packages/element → element}/src/textElement.d.ts +2 -1
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionAddToLibrary.d.ts +3 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionBoundText.d.ts +2 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionCanvas.d.ts +192 -3
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionClipboard.d.ts +6 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionCropEditor.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionDeleteSelected.d.ts +3 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionElementLink.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionElementLock.d.ts +2 -1
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionEmbeddable.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionExport.d.ts +9 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionFinalize.d.ts +2 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionFrame.d.ts +4 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionGroup.d.ts +2 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionLinearEditor.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionLink.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionMenu.d.ts +3 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionNavigate.d.ts +2 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionProperties.d.ts +15 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionSelectAll.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionStyles.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleGridMode.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleObjectsSnapMode.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleSearchMenu.d.ts +2 -0
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleStats.d.ts +1 -1
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleViewMode.d.ts +1 -1
- package/dist/types/{packages/excalidraw → excalidraw}/actions/actionToggleZenMode.d.ts +1 -1
- package/dist/types/{packages/excalidraw → excalidraw}/actions/types.d.ts +1 -1
- package/dist/types/{packages/excalidraw → excalidraw}/animated-trail.d.ts +7 -1
- package/dist/types/{packages/excalidraw → excalidraw}/appState.d.ts +1 -0
- package/dist/types/{packages/excalidraw → excalidraw}/components/App.d.ts +9 -4
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +7 -0
- package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/{packages/excalidraw → excalidraw}/components/icons.d.ts +1 -0
- package/dist/types/excalidraw/eraser/index.d.ts +14 -0
- package/dist/types/excalidraw/lasso/index.d.ts +15 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +12 -0
- package/dist/types/{packages/excalidraw → excalidraw}/types.d.ts +2 -1
- package/dist/types/{packages/math → math}/src/polygon.d.ts +1 -0
- package/dist/types/{packages/math → math}/src/segment.d.ts +1 -1
- package/dist/types/{packages/math → math}/src/types.d.ts +1 -0
- package/package.json +19 -2
- package/dist/dev/chunk-LMHBUWQS.js.map +0 -7
- package/dist/dev/chunk-S7W4OWSF.js.map +0 -7
- package/dist/prod/chunk-LRITYP5X.js +0 -31
- package/dist/prod/data/image-W3GRS73V.js +0 -1
- package/dist/types/excalidraw-app/app_constants.d.ts +0 -44
- package/dist/types/packages/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +0 -8
- package/dist/types/packages/excalidraw/tests/fixtures/diagramFixture.d.ts +0 -504
- package/dist/types/packages/excalidraw/tests/fixtures/elementFixture.d.ts +0 -7
- package/dist/types/packages/excalidraw/tests/helpers/api.d.ts +0 -89
- package/dist/types/packages/excalidraw/tests/helpers/colorize.d.ts +0 -2
- package/dist/types/packages/excalidraw/tests/helpers/mocks.d.ts +0 -5
- package/dist/types/packages/excalidraw/tests/helpers/polyfills.d.ts +0 -36
- package/dist/types/packages/excalidraw/tests/helpers/ui.d.ts +0 -189
- package/dist/types/packages/excalidraw/tests/queries/dom.d.ts +0 -2
- package/dist/types/packages/excalidraw/tests/queries/toolQueries.d.ts +0 -2
- package/dist/types/packages/excalidraw/tests/test-utils.d.ts +0 -139
- /package/dist/dev/data/{image-5HAY2PCR.js.map → image-U2IPNUKJ.js.map} +0 -0
- /package/dist/dev/locales/{en-OZCJJ2HN.js.map → en-CKWC2GMK.js.map} +0 -0
- /package/dist/types/{packages/common → common}/src/binary-heap.d.ts +0 -0
- /package/dist/types/{packages/common → common}/src/font-metadata.d.ts +0 -0
- /package/dist/types/{packages/common → common}/src/index.d.ts +0 -0
- /package/dist/types/{packages/common → common}/src/keys.d.ts +0 -0
- /package/dist/types/{packages/common → common}/src/points.d.ts +0 -0
- /package/dist/types/{packages/common → common}/src/promise-pool.d.ts +0 -0
- /package/dist/types/{packages/common → common}/src/queue.d.ts +0 -0
- /package/dist/types/{packages/common → common}/src/random.d.ts +0 -0
- /package/dist/types/{packages/common → common}/src/url.d.ts +0 -0
- /package/dist/types/{packages/common → common}/src/utility-types.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/Shape.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/ShapeCache.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/align.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/comparisons.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/containerCache.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/cropElement.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/distance.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/distribute.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/dragElements.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/duplicate.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/elbowArrow.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/elementLink.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/embeddable.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/flowchart.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/fractionalIndex.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/frame.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/groups.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/image.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/index.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/linearElementEditor.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/mutateElement.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/newElement.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/renderElement.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/resizeElements.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/resizeTest.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/selection.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/shapes.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/showSelectedShapeActions.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/sizeHelpers.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/sortElements.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/textMeasurements.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/textWrapping.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/transformHandles.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/typeChecks.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/types.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/utils.d.ts +0 -0
- /package/dist/types/{packages/element → element}/src/zindex.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionAlign.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionDistribute.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionDuplicateSelection.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionFlip.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionHistory.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionTextAutoResize.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/actionZindex.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/manager.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/register.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/actions/shortcuts.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/analytics.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/animation-frame-handler.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/change.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/charts.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/clients.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/clipboard.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Actions.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ActiveConfirmDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Avatar.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/BraveMeasureTextError.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Button.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonIcon.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonIconCycle.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonIconSelect.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonSelect.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ButtonSeparator.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Card.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/CheckboxItem.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/ColorInput.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/ColorPicker.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/CustomColorList.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/Picker.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/PickerColorList.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/PickerHeading.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/ShadeList.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/TopPicks.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/keyboardNavHandlers.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/CommandPalette/CommandPalette.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/CommandPalette/types.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ConfirmDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ContextMenu.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/DarkModeToggle.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/DefaultSidebar.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Dialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/DialogActionButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ElementCanvasButtons.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ElementLinkDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ErrorDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ExcalidrawLogo.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/EyeDropper.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/FilledButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/FixedSideContainer.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/FollowMode/FollowMode.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/FontPicker.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/FontPickerList.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/FontPickerTrigger.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/FontPicker/keyboardNavHandlers.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/HandButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/HelpButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/HelpDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/HintViewer.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/IconPicker.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ImageExportDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/InitializeApp.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/InlineIcon.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Island.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/JSONExportDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LaserPointerButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LayerUI.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenu.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuBrowseButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuControlButtons.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuHeaderContent.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuItems.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryMenuSection.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LibraryUnit.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LoadingMessage.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/LockButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/MagicButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/MobileMenu.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Modal.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/OverwriteConfirm/OverwriteConfirm.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/OverwriteConfirm/OverwriteConfirmState.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Paragraph.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/PasteChartDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/PenModeButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Popover.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ProjectName.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/PropertiesPopover.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/PublishLibrary.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/QuickSearch.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/RadioGroup.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Range.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/SVGLayer.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ScrollableList.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/SearchMenu.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Section.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ShareableLinkDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/Sidebar.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarHeader.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTab.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTabTrigger.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTabTriggers.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTabs.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/SidebarTrigger.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Sidebar/common.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Spinner.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stack.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Angle.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/CanvasGrid.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Collapsible.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Dimension.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/DragInput.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/FontSize.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiAngle.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiDimension.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiFontSize.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/MultiPosition.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/Position.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Stats/utils.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Switch.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/MermaidToExcalidraw.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialog.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogInput.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogOutput.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogPanel.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogPanels.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTab.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTabTrigger.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTabTriggers.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTabs.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/TTDDialogTrigger.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TTDDialog/common.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/TextField.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Toast.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/ToolButton.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Tooltip.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/Trans.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/UserList.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/InteractiveCanvas.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/NewElementCanvas.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/StaticCanvas.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/canvases/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenu.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuContent.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuGroup.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItem.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemContent.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemCustom.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuItemLink.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuSeparator.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/common.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/dropdownMenu/dropdownMenuUtils.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/footer/Footer.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/footer/FooterCenter.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/hoc/withInternalFallback.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/hyperlink/Hyperlink.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/hyperlink/helpers.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/main-menu/DefaultItems.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/main-menu/MainMenu.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/shapes.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/components/welcome-screen/WelcomeScreen.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/context/tunnels.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/context/ui-appState.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/cursor.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/EditorLocalStorage.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/ai/types.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/blob.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/encode.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/encryption.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/filesystem.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/image.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/json.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/library.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/reconcile.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/resave.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/restore.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/transform.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/data/types.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/deburr.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/editor-jotai.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/emitter.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/errors.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Cascadia/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/ComicShanns/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Emoji/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/ExcalidrawFontFace.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Excalifont/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Fonts.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Helvetica/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Liberation/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Lilita/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Nunito/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Virgil/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/Xiaolai/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/fonts/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/gesture.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/history.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useCallbackRefState.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useCopiedIndicator.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useCreatePortalContainer.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useEmitter.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useLibraryItemSvg.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useOutsideClick.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useScrollPosition.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useStable.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useStableCallback.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/hooks/useTransition.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/i18n.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/index-node.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/laser-trails.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/mermaid.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/polyfill.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/reactUtils.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/renderer/helpers.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/renderer/interactiveScene.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/renderer/renderNewElementScene.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/renderer/renderSnaps.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/renderer/roundRect.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/renderer/staticScene.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/renderer/staticSvgScene.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/scene/Renderer.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/scene/Scene.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/scene/export.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/scene/index.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/scene/normalize.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/scene/scroll.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/scene/scrollbars.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/scene/types.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/scene/zoom.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/snapping.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/store.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/subset/harfbuzz/harfbuzz-bindings.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/subset/harfbuzz/harfbuzz-loader.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/subset/harfbuzz/harfbuzz-wasm.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/subset/subset-main.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/subset/subset-shared.chunk.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/subset/subset-worker.chunk.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/subset/woff2/woff2-bindings.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/subset/woff2/woff2-loader.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/subset/woff2/woff2-wasm.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/visualdebug.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/workers.d.ts +0 -0
- /package/dist/types/{packages/excalidraw → excalidraw}/wysiwyg/textWysiwyg.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/angle.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/curve.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/ellipse.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/index.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/line.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/point.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/range.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/rectangle.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/triangle.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/utils.d.ts +0 -0
- /package/dist/types/{packages/math → math}/src/vector.d.ts +0 -0
- /package/dist/types/{packages/utils → utils}/src/bbox.d.ts +0 -0
- /package/dist/types/{packages/utils → utils}/src/collision.d.ts +0 -0
- /package/dist/types/{packages/utils → utils}/src/export.d.ts +0 -0
- /package/dist/types/{packages/utils → utils}/src/index.d.ts +0 -0
- /package/dist/types/{packages/utils → utils}/src/shape.d.ts +0 -0
- /package/dist/types/{packages/utils → utils}/src/withinBounds.d.ts +0 -0
|
@@ -41,6 +41,7 @@ export declare const actionChangeProjectName: {
|
|
|
41
41
|
activeTool: {
|
|
42
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
43
|
locked: boolean;
|
|
44
|
+
fromSelection: boolean;
|
|
44
45
|
} & import("../types").ActiveTool;
|
|
45
46
|
penMode: boolean;
|
|
46
47
|
penDetected: boolean;
|
|
@@ -228,6 +229,7 @@ export declare const actionChangeExportScale: {
|
|
|
228
229
|
activeTool: {
|
|
229
230
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
230
231
|
locked: boolean;
|
|
232
|
+
fromSelection: boolean;
|
|
231
233
|
} & import("../types").ActiveTool;
|
|
232
234
|
penMode: boolean;
|
|
233
235
|
penDetected: boolean;
|
|
@@ -415,6 +417,7 @@ export declare const actionChangeExportBackground: {
|
|
|
415
417
|
activeTool: {
|
|
416
418
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
417
419
|
locked: boolean;
|
|
420
|
+
fromSelection: boolean;
|
|
418
421
|
} & import("../types").ActiveTool;
|
|
419
422
|
penMode: boolean;
|
|
420
423
|
penDetected: boolean;
|
|
@@ -602,6 +605,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
602
605
|
activeTool: {
|
|
603
606
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
604
607
|
locked: boolean;
|
|
608
|
+
fromSelection: boolean;
|
|
605
609
|
} & import("../types").ActiveTool;
|
|
606
610
|
penMode: boolean;
|
|
607
611
|
penDetected: boolean;
|
|
@@ -794,6 +798,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
794
798
|
activeTool: {
|
|
795
799
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
796
800
|
locked: boolean;
|
|
801
|
+
fromSelection: boolean;
|
|
797
802
|
} & import("../types").ActiveTool;
|
|
798
803
|
penMode: boolean;
|
|
799
804
|
penDetected: boolean;
|
|
@@ -984,6 +989,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
984
989
|
activeTool: {
|
|
985
990
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
986
991
|
locked: boolean;
|
|
992
|
+
fromSelection: boolean;
|
|
987
993
|
} & import("../types").ActiveTool;
|
|
988
994
|
penMode: boolean;
|
|
989
995
|
penDetected: boolean;
|
|
@@ -1233,6 +1239,7 @@ export declare const actionLoadScene: {
|
|
|
1233
1239
|
activeTool: {
|
|
1234
1240
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1235
1241
|
locked: boolean;
|
|
1242
|
+
fromSelection: boolean;
|
|
1236
1243
|
} & import("../types").ActiveTool;
|
|
1237
1244
|
penMode: boolean;
|
|
1238
1245
|
penDetected: boolean;
|
|
@@ -1331,6 +1338,7 @@ export declare const actionLoadScene: {
|
|
|
1331
1338
|
activeTool: {
|
|
1332
1339
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1333
1340
|
locked: boolean;
|
|
1341
|
+
fromSelection: boolean;
|
|
1334
1342
|
} & import("../types").ActiveTool;
|
|
1335
1343
|
penMode: boolean;
|
|
1336
1344
|
penDetected: boolean;
|
|
@@ -1520,6 +1528,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1520
1528
|
activeTool: {
|
|
1521
1529
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1522
1530
|
locked: boolean;
|
|
1531
|
+
fromSelection: boolean;
|
|
1523
1532
|
} & import("../types").ActiveTool;
|
|
1524
1533
|
penMode: boolean;
|
|
1525
1534
|
penDetected: boolean;
|
|
@@ -42,6 +42,7 @@ export declare const actionFinalize: {
|
|
|
42
42
|
activeTool: {
|
|
43
43
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
44
44
|
locked: boolean;
|
|
45
|
+
fromSelection: boolean;
|
|
45
46
|
} & import("../types").ActiveTool;
|
|
46
47
|
penMode: boolean;
|
|
47
48
|
penDetected: boolean;
|
|
@@ -188,6 +189,7 @@ export declare const actionFinalize: {
|
|
|
188
189
|
activeTool: {
|
|
189
190
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
190
191
|
locked: boolean;
|
|
192
|
+
fromSelection: boolean;
|
|
191
193
|
} & import("../types").ActiveTool;
|
|
192
194
|
activeEmbeddable: null;
|
|
193
195
|
newElement: null;
|
|
@@ -44,6 +44,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
47
|
+
fromSelection: boolean;
|
|
47
48
|
} & import("../types").ActiveTool;
|
|
48
49
|
penMode: boolean;
|
|
49
50
|
penDetected: boolean;
|
|
@@ -235,6 +236,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
235
236
|
activeTool: {
|
|
236
237
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
237
238
|
locked: boolean;
|
|
239
|
+
fromSelection: boolean;
|
|
238
240
|
} & import("../types").ActiveTool;
|
|
239
241
|
penMode: boolean;
|
|
240
242
|
penDetected: boolean;
|
|
@@ -424,6 +426,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
424
426
|
activeTool: {
|
|
425
427
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
426
428
|
locked: boolean;
|
|
429
|
+
fromSelection: boolean;
|
|
427
430
|
} & import("../types").ActiveTool;
|
|
428
431
|
penMode: boolean;
|
|
429
432
|
penDetected: boolean;
|
|
@@ -583,6 +586,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
583
586
|
activeTool: {
|
|
584
587
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
585
588
|
locked: boolean;
|
|
589
|
+
fromSelection: boolean;
|
|
586
590
|
} & import("../types").ActiveTool;
|
|
587
591
|
contextMenu: {
|
|
588
592
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -54,6 +54,7 @@ export declare const actionGroup: {
|
|
|
54
54
|
activeTool: {
|
|
55
55
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
56
56
|
locked: boolean;
|
|
57
|
+
fromSelection: boolean;
|
|
57
58
|
} & import("../types").ActiveTool;
|
|
58
59
|
penMode: boolean;
|
|
59
60
|
penDetected: boolean;
|
|
@@ -248,6 +249,7 @@ export declare const actionUngroup: {
|
|
|
248
249
|
activeTool: {
|
|
249
250
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
250
251
|
locked: boolean;
|
|
252
|
+
fromSelection: boolean;
|
|
251
253
|
} & import("../types").ActiveTool;
|
|
252
254
|
penMode: boolean;
|
|
253
255
|
penDetected: boolean;
|
|
@@ -41,6 +41,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
41
41
|
activeTool: {
|
|
42
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
43
|
locked: boolean;
|
|
44
|
+
fromSelection: boolean;
|
|
44
45
|
} & import("../types").ActiveTool;
|
|
45
46
|
penMode: boolean;
|
|
46
47
|
penDetected: boolean;
|
|
@@ -227,6 +228,7 @@ export declare const actionToggleEditMenu: {
|
|
|
227
228
|
activeTool: {
|
|
228
229
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
229
230
|
locked: boolean;
|
|
231
|
+
fromSelection: boolean;
|
|
230
232
|
} & import("../types").ActiveTool;
|
|
231
233
|
penMode: boolean;
|
|
232
234
|
penDetected: boolean;
|
|
@@ -418,6 +420,7 @@ export declare const actionShortcuts: {
|
|
|
418
420
|
activeTool: {
|
|
419
421
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
420
422
|
locked: boolean;
|
|
423
|
+
fromSelection: boolean;
|
|
421
424
|
} & import("../types").ActiveTool;
|
|
422
425
|
penMode: boolean;
|
|
423
426
|
penDetected: boolean;
|
|
@@ -43,6 +43,7 @@ export declare const actionGoToCollaborator: {
|
|
|
43
43
|
activeTool: {
|
|
44
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
45
|
locked: boolean;
|
|
46
|
+
fromSelection: boolean;
|
|
46
47
|
} & import("../types").ActiveTool;
|
|
47
48
|
penMode: boolean;
|
|
48
49
|
penDetected: boolean;
|
|
@@ -222,6 +223,7 @@ export declare const actionGoToCollaborator: {
|
|
|
222
223
|
activeTool: {
|
|
223
224
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
224
225
|
locked: boolean;
|
|
226
|
+
fromSelection: boolean;
|
|
225
227
|
} & import("../types").ActiveTool;
|
|
226
228
|
penMode: boolean;
|
|
227
229
|
penDetected: boolean;
|
|
@@ -63,6 +63,7 @@ export declare const actionChangeFillStyle: {
|
|
|
63
63
|
activeTool: {
|
|
64
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
65
65
|
locked: boolean;
|
|
66
|
+
fromSelection: boolean;
|
|
66
67
|
} & import("../types").ActiveTool;
|
|
67
68
|
penMode: boolean;
|
|
68
69
|
penDetected: boolean;
|
|
@@ -248,6 +249,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
248
249
|
activeTool: {
|
|
249
250
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
250
251
|
locked: boolean;
|
|
252
|
+
fromSelection: boolean;
|
|
251
253
|
} & import("../types").ActiveTool;
|
|
252
254
|
penMode: boolean;
|
|
253
255
|
penDetected: boolean;
|
|
@@ -433,6 +435,7 @@ export declare const actionChangeSloppiness: {
|
|
|
433
435
|
activeTool: {
|
|
434
436
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
435
437
|
locked: boolean;
|
|
438
|
+
fromSelection: boolean;
|
|
436
439
|
} & import("../types").ActiveTool;
|
|
437
440
|
penMode: boolean;
|
|
438
441
|
penDetected: boolean;
|
|
@@ -618,6 +621,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
618
621
|
activeTool: {
|
|
619
622
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
620
623
|
locked: boolean;
|
|
624
|
+
fromSelection: boolean;
|
|
621
625
|
} & import("../types").ActiveTool;
|
|
622
626
|
penMode: boolean;
|
|
623
627
|
penDetected: boolean;
|
|
@@ -803,6 +807,7 @@ export declare const actionChangeOpacity: {
|
|
|
803
807
|
activeTool: {
|
|
804
808
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
805
809
|
locked: boolean;
|
|
810
|
+
fromSelection: boolean;
|
|
806
811
|
} & import("../types").ActiveTool;
|
|
807
812
|
penMode: boolean;
|
|
808
813
|
penDetected: boolean;
|
|
@@ -988,6 +993,7 @@ export declare const actionChangeFontSize: {
|
|
|
988
993
|
activeTool: {
|
|
989
994
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
990
995
|
locked: boolean;
|
|
996
|
+
fromSelection: boolean;
|
|
991
997
|
} & import("../types").ActiveTool;
|
|
992
998
|
penMode: boolean;
|
|
993
999
|
penDetected: boolean;
|
|
@@ -1174,6 +1180,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1174
1180
|
activeTool: {
|
|
1175
1181
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1176
1182
|
locked: boolean;
|
|
1183
|
+
fromSelection: boolean;
|
|
1177
1184
|
} & import("../types").ActiveTool;
|
|
1178
1185
|
penMode: boolean;
|
|
1179
1186
|
penDetected: boolean;
|
|
@@ -1360,6 +1367,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1360
1367
|
activeTool: {
|
|
1361
1368
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1362
1369
|
locked: boolean;
|
|
1370
|
+
fromSelection: boolean;
|
|
1363
1371
|
} & import("../types").ActiveTool;
|
|
1364
1372
|
penMode: boolean;
|
|
1365
1373
|
penDetected: boolean;
|
|
@@ -1546,6 +1554,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1546
1554
|
activeTool: {
|
|
1547
1555
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1548
1556
|
locked: boolean;
|
|
1557
|
+
fromSelection: boolean;
|
|
1549
1558
|
} & import("../types").ActiveTool;
|
|
1550
1559
|
penMode: boolean;
|
|
1551
1560
|
penDetected: boolean;
|
|
@@ -1722,6 +1731,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1722
1731
|
activeTool: {
|
|
1723
1732
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1724
1733
|
locked: boolean;
|
|
1734
|
+
fromSelection: boolean;
|
|
1725
1735
|
} & import("../types").ActiveTool;
|
|
1726
1736
|
penMode: boolean;
|
|
1727
1737
|
penDetected: boolean;
|
|
@@ -1905,6 +1915,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1905
1915
|
activeTool: {
|
|
1906
1916
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1907
1917
|
locked: boolean;
|
|
1918
|
+
fromSelection: boolean;
|
|
1908
1919
|
} & import("../types").ActiveTool;
|
|
1909
1920
|
penMode: boolean;
|
|
1910
1921
|
penDetected: boolean;
|
|
@@ -2091,6 +2102,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2091
2102
|
activeTool: {
|
|
2092
2103
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2093
2104
|
locked: boolean;
|
|
2105
|
+
fromSelection: boolean;
|
|
2094
2106
|
} & import("../types").ActiveTool;
|
|
2095
2107
|
penMode: boolean;
|
|
2096
2108
|
penDetected: boolean;
|
|
@@ -2277,6 +2289,7 @@ export declare const actionChangeRoundness: {
|
|
|
2277
2289
|
activeTool: {
|
|
2278
2290
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2279
2291
|
locked: boolean;
|
|
2292
|
+
fromSelection: boolean;
|
|
2280
2293
|
} & import("../types").ActiveTool;
|
|
2281
2294
|
penMode: boolean;
|
|
2282
2295
|
penDetected: boolean;
|
|
@@ -2464,6 +2477,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2464
2477
|
activeTool: {
|
|
2465
2478
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2466
2479
|
locked: boolean;
|
|
2480
|
+
fromSelection: boolean;
|
|
2467
2481
|
} & import("../types").ActiveTool;
|
|
2468
2482
|
penMode: boolean;
|
|
2469
2483
|
penDetected: boolean;
|
|
@@ -2650,6 +2664,7 @@ export declare const actionChangeArrowType: {
|
|
|
2650
2664
|
activeTool: {
|
|
2651
2665
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2652
2666
|
locked: boolean;
|
|
2667
|
+
fromSelection: boolean;
|
|
2653
2668
|
} & import("../types").ActiveTool;
|
|
2654
2669
|
penMode: boolean;
|
|
2655
2670
|
penDetected: boolean;
|
|
@@ -47,6 +47,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
47
47
|
activeTool: {
|
|
48
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
49
|
locked: boolean;
|
|
50
|
+
fromSelection: boolean;
|
|
50
51
|
} & import("../types").ActiveTool;
|
|
51
52
|
penMode: boolean;
|
|
52
53
|
penDetected: boolean;
|
|
@@ -223,6 +224,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
223
224
|
activeTool: {
|
|
224
225
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
225
226
|
locked: boolean;
|
|
227
|
+
fromSelection: boolean;
|
|
226
228
|
} & import("../types").ActiveTool;
|
|
227
229
|
penMode: boolean;
|
|
228
230
|
penDetected: boolean;
|
|
@@ -3,7 +3,6 @@ export declare const actionToggleStats: {
|
|
|
3
3
|
name: "stats";
|
|
4
4
|
label: string;
|
|
5
5
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
paletteName: string;
|
|
7
6
|
viewMode: true;
|
|
8
7
|
trackEvent: {
|
|
9
8
|
category: "menu";
|
|
@@ -48,6 +47,7 @@ export declare const actionToggleStats: {
|
|
|
48
47
|
activeTool: {
|
|
49
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
49
|
locked: boolean;
|
|
50
|
+
fromSelection: boolean;
|
|
51
51
|
} & import("../types").ActiveTool;
|
|
52
52
|
penMode: boolean;
|
|
53
53
|
penDetected: boolean;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
export declare const actionToggleViewMode: {
|
|
3
3
|
name: "viewMode";
|
|
4
4
|
label: string;
|
|
5
|
-
paletteName: string;
|
|
6
5
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
viewMode: true;
|
|
8
7
|
trackEvent: {
|
|
@@ -45,6 +44,7 @@ export declare const actionToggleViewMode: {
|
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
47
|
+
fromSelection: boolean;
|
|
48
48
|
} & import("../types").ActiveTool;
|
|
49
49
|
penMode: boolean;
|
|
50
50
|
penDetected: boolean;
|
|
@@ -3,7 +3,6 @@ export declare const actionToggleZenMode: {
|
|
|
3
3
|
name: "zenMode";
|
|
4
4
|
label: string;
|
|
5
5
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
paletteName: string;
|
|
7
6
|
viewMode: true;
|
|
8
7
|
trackEvent: {
|
|
9
8
|
category: "canvas";
|
|
@@ -45,6 +44,7 @@ export declare const actionToggleZenMode: {
|
|
|
45
44
|
activeTool: {
|
|
46
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
46
|
locked: boolean;
|
|
47
|
+
fromSelection: boolean;
|
|
48
48
|
} & import("../types").ActiveTool;
|
|
49
49
|
penMode: boolean;
|
|
50
50
|
penDetected: boolean;
|
|
@@ -14,7 +14,7 @@ export type ActionResult = {
|
|
|
14
14
|
type ActionFn = (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
|
|
15
15
|
export type UpdaterFn = (res: ActionResult) => void;
|
|
16
16
|
export type ActionFilterFn = (action: Action) => void;
|
|
17
|
-
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeOpacity" | "changeFontSize" | "toggleCanvasMenu" | "toggleEditMenu" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "addToLibrary" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "flipHorizontal" | "flipVertical" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "commandPalette" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame";
|
|
17
|
+
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeOpacity" | "changeFontSize" | "toggleCanvasMenu" | "toggleEditMenu" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "addToLibrary" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "flipHorizontal" | "flipVertical" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "commandPalette" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "toggleLassoTool";
|
|
18
18
|
export type PanelComponentProps = {
|
|
19
19
|
elements: readonly ExcalidrawElement[];
|
|
20
20
|
appState: AppState;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LaserPointer } from "@excalidraw/laser-pointer";
|
|
1
2
|
import type { LaserPointerOptions } from "@excalidraw/laser-pointer";
|
|
2
3
|
import type { AnimationFrameHandler } from "./animation-frame-handler";
|
|
3
4
|
import type App from "./components/App";
|
|
@@ -10,15 +11,18 @@ export interface Trail {
|
|
|
10
11
|
}
|
|
11
12
|
export interface AnimatedTrailOptions {
|
|
12
13
|
fill: (trail: AnimatedTrail) => string;
|
|
14
|
+
stroke?: (trail: AnimatedTrail) => string;
|
|
15
|
+
animateTrail?: boolean;
|
|
13
16
|
}
|
|
14
17
|
export declare class AnimatedTrail implements Trail {
|
|
15
18
|
private animationFrameHandler;
|
|
16
|
-
|
|
19
|
+
protected app: App;
|
|
17
20
|
private options;
|
|
18
21
|
private currentTrail?;
|
|
19
22
|
private pastTrails;
|
|
20
23
|
private container?;
|
|
21
24
|
private trailElement;
|
|
25
|
+
private trailAnimation?;
|
|
22
26
|
constructor(animationFrameHandler: AnimationFrameHandler, app: App, options: Partial<LaserPointerOptions> & Partial<AnimatedTrailOptions>);
|
|
23
27
|
get hasCurrentTrail(): boolean;
|
|
24
28
|
hasLastPoint(x: number, y: number): boolean;
|
|
@@ -27,6 +31,8 @@ export declare class AnimatedTrail implements Trail {
|
|
|
27
31
|
startPath(x: number, y: number): void;
|
|
28
32
|
addPointToPath(x: number, y: number): void;
|
|
29
33
|
endPath(): void;
|
|
34
|
+
getCurrentTrail(): LaserPointer | undefined;
|
|
35
|
+
clearTrails(): void;
|
|
30
36
|
private update;
|
|
31
37
|
private onFrame;
|
|
32
38
|
private drawTrail;
|
|
@@ -28,6 +28,7 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
28
28
|
activeTool?: ({
|
|
29
29
|
lastActiveTool: import("./types").ActiveTool | null;
|
|
30
30
|
locked: boolean;
|
|
31
|
+
fromSelection: boolean;
|
|
31
32
|
} & import("./types").ActiveTool) | undefined;
|
|
32
33
|
penMode?: boolean | undefined;
|
|
33
34
|
penDetected?: boolean | undefined;
|
|
@@ -11,8 +11,9 @@ import { Fonts } from "../fonts";
|
|
|
11
11
|
import { Renderer } from "../scene/Renderer";
|
|
12
12
|
import { Emitter } from "../emitter";
|
|
13
13
|
import { Store } from "../store";
|
|
14
|
-
import { AnimatedTrail } from "../animated-trail";
|
|
15
14
|
import { LaserTrails } from "../laser-trails";
|
|
15
|
+
import { LassoTrail } from "../lasso";
|
|
16
|
+
import { EraserTrail } from "../eraser";
|
|
16
17
|
import type { ExportedElements } from "../data";
|
|
17
18
|
import type { FileSystemHandle } from "../data/filesystem";
|
|
18
19
|
import type { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, LibraryItems, SceneData, Device, FrameNameBoundsCache, SidebarName, SidebarTabName, ToolType, OnUserFollowedPayload, GenerateDiagramToCode, NullableGridSize, Offsets } from "../types";
|
|
@@ -96,11 +97,13 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
96
97
|
};
|
|
97
98
|
animationFrameHandler: AnimationFrameHandler;
|
|
98
99
|
laserTrails: LaserTrails;
|
|
99
|
-
eraserTrail:
|
|
100
|
+
eraserTrail: EraserTrail;
|
|
101
|
+
lassoTrail: LassoTrail;
|
|
100
102
|
onChangeEmitter: Emitter<[elements: readonly ExcalidrawElement[], appState: AppState, files: BinaryFiles]>;
|
|
101
103
|
onPointerDownEmitter: Emitter<[activeTool: {
|
|
102
104
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
103
105
|
locked: boolean;
|
|
106
|
+
fromSelection: boolean;
|
|
104
107
|
} & import("../types").ActiveTool, pointerDownState: Readonly<{
|
|
105
108
|
origin: Readonly<{
|
|
106
109
|
x: number;
|
|
@@ -165,6 +168,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
165
168
|
onPointerUpEmitter: Emitter<[activeTool: {
|
|
166
169
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
167
170
|
locked: boolean;
|
|
171
|
+
fromSelection: boolean;
|
|
168
172
|
} & import("../types").ActiveTool, pointerDownState: Readonly<{
|
|
169
173
|
origin: Readonly<{
|
|
170
174
|
x: number;
|
|
@@ -408,7 +412,8 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
408
412
|
customType: string;
|
|
409
413
|
}) & {
|
|
410
414
|
locked?: boolean;
|
|
411
|
-
|
|
415
|
+
fromSelection?: boolean;
|
|
416
|
+
}, keepSelection?: boolean) => void;
|
|
412
417
|
setOpenDialog: (dialogType: AppState["openDialog"]) => void;
|
|
413
418
|
private setCursor;
|
|
414
419
|
private resetCursor;
|
|
@@ -428,7 +433,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
428
433
|
private getTextElementAtPosition;
|
|
429
434
|
private getElementAtPosition;
|
|
430
435
|
private getElementsAtPosition;
|
|
431
|
-
|
|
436
|
+
getElementHitThreshold(): number;
|
|
432
437
|
private hitElement;
|
|
433
438
|
private getTextBindableContainerAtPosition;
|
|
434
439
|
private startTextEditing;
|
package/dist/types/{packages/excalidraw → excalidraw}/components/ColorPicker/colorPickerUtils.d.ts
RENAMED
|
@@ -17,5 +17,5 @@ export type ActiveColorPickerSectionAtomType = "custom" | "baseColors" | "shades
|
|
|
17
17
|
export declare const activeColorPickerSectionAtom: import("jotai/vanilla/atom").PrimitiveAtom<ActiveColorPickerSectionAtomType> & {
|
|
18
18
|
init: ActiveColorPickerSectionAtomType;
|
|
19
19
|
};
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const isColorDark: (color: string, threshold?: number) => boolean;
|
|
21
21
|
export type ColorPickerType = "canvasBackground" | "elementBackground" | "elementStroke";
|
|
@@ -19,6 +19,7 @@ export declare const WelcomeScreenHelpArrow: import("react/jsx-runtime").JSX.Ele
|
|
|
19
19
|
export declare const WelcomeScreenTopToolbarArrow: import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare const ExcalLogo: import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export declare const SelectionIcon: import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const LassoIcon: import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export declare const RectangleIcon: import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export declare const DiamondIcon: import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
export declare const EllipseIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnimatedTrail } from "../animated-trail";
|
|
2
|
+
import type { AnimationFrameHandler } from "../animation-frame-handler";
|
|
3
|
+
import type App from "../components/App";
|
|
4
|
+
export declare class EraserTrail extends AnimatedTrail {
|
|
5
|
+
private elementsToErase;
|
|
6
|
+
private groupsToErase;
|
|
7
|
+
private segmentsCache;
|
|
8
|
+
private geometricShapesCache;
|
|
9
|
+
constructor(animationFrameHandler: AnimationFrameHandler, app: App);
|
|
10
|
+
startPath(x: number, y: number): void;
|
|
11
|
+
addPointToPath(x: number, y: number, restore?: boolean): string[];
|
|
12
|
+
private updateElementsToBeErased;
|
|
13
|
+
endPath(): void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AnimationFrameHandler } from "../animation-frame-handler";
|
|
2
|
+
import { AnimatedTrail } from "../animated-trail";
|
|
3
|
+
import type App from "../components/App";
|
|
4
|
+
export declare class LassoTrail extends AnimatedTrail {
|
|
5
|
+
private intersectedElements;
|
|
6
|
+
private enclosedElements;
|
|
7
|
+
private elementsSegments;
|
|
8
|
+
private keepPreviousSelection;
|
|
9
|
+
constructor(animationFrameHandler: AnimationFrameHandler, app: App);
|
|
10
|
+
startPath(x: number, y: number, keepPreviousSelection?: boolean): void;
|
|
11
|
+
selectElementsFromIds: (ids: string[]) => void;
|
|
12
|
+
addPointToPath: (x: number, y: number, keepPreviousSelection?: boolean) => void;
|
|
13
|
+
private updateSelection;
|
|
14
|
+
endPath(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ElementsSegmentsMap, GlobalPoint } from "@excalidraw/math/types";
|
|
2
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
|
+
export declare const getLassoSelectedElementIds: (input: {
|
|
4
|
+
lassoPath: GlobalPoint[];
|
|
5
|
+
elements: readonly ExcalidrawElement[];
|
|
6
|
+
elementsSegments: ElementsSegmentsMap;
|
|
7
|
+
intersectedElements: Set<ExcalidrawElement["id"]>;
|
|
8
|
+
enclosedElements: Set<ExcalidrawElement["id"]>;
|
|
9
|
+
simplifyDistance?: number;
|
|
10
|
+
}) => {
|
|
11
|
+
selectedElementIds: string[];
|
|
12
|
+
};
|
|
@@ -84,7 +84,7 @@ export type BinaryFileData = {
|
|
|
84
84
|
};
|
|
85
85
|
export type BinaryFileMetadata = Omit<BinaryFileData, "dataURL">;
|
|
86
86
|
export type BinaryFiles = Record<ExcalidrawElement["id"], BinaryFileData>;
|
|
87
|
-
export type ToolType = "selection" | "rectangle" | "diamond" | "ellipse" | "arrow" | "line" | "freedraw" | "text" | "image" | "eraser" | "hand" | "frame" | "magicframe" | "embeddable" | "laser";
|
|
87
|
+
export type ToolType = "selection" | "lasso" | "rectangle" | "diamond" | "ellipse" | "arrow" | "line" | "freedraw" | "text" | "image" | "eraser" | "hand" | "frame" | "magicframe" | "embeddable" | "laser";
|
|
88
88
|
export type ElementOrToolType = ExcalidrawElementType | ToolType | "custom";
|
|
89
89
|
export type ActiveTool = {
|
|
90
90
|
type: ToolType;
|
|
@@ -217,6 +217,7 @@ export interface AppState {
|
|
|
217
217
|
*/
|
|
218
218
|
lastActiveTool: ActiveTool | null;
|
|
219
219
|
locked: boolean;
|
|
220
|
+
fromSelection: boolean;
|
|
220
221
|
} & ActiveTool;
|
|
221
222
|
penMode: boolean;
|
|
222
223
|
penDetected: boolean;
|
|
@@ -2,4 +2,5 @@ import type { GlobalPoint, LocalPoint, Polygon } from "./types";
|
|
|
2
2
|
export declare function polygon<Point extends GlobalPoint | LocalPoint>(...points: Point[]): Polygon<Point>;
|
|
3
3
|
export declare function polygonFromPoints<Point extends GlobalPoint | LocalPoint>(points: Point[]): Polygon<Point>;
|
|
4
4
|
export declare const polygonIncludesPoint: <Point extends GlobalPoint | LocalPoint>(point: Point, polygon: Polygon<Point>) => boolean;
|
|
5
|
+
export declare const polygonIncludesPointNonZero: <Point extends [number, number]>(point: Point, polygon: Point[]) => boolean;
|
|
5
6
|
export declare const pointOnPolygon: <Point extends GlobalPoint | LocalPoint>(p: Point, poly: Polygon<Point>, threshold?: number) => boolean;
|
|
@@ -36,4 +36,4 @@ export declare const distanceToLineSegment: <Point extends GlobalPoint | LocalPo
|
|
|
36
36
|
* @param s
|
|
37
37
|
* @returns
|
|
38
38
|
*/
|
|
39
|
-
export declare function lineSegmentIntersectionPoints<Point extends GlobalPoint | LocalPoint>(l: LineSegment<Point>, s: LineSegment<Point
|
|
39
|
+
export declare function lineSegmentIntersectionPoints<Point extends GlobalPoint | LocalPoint>(l: LineSegment<Point>, s: LineSegment<Point>, threshold?: number): Point | null;
|