@excalidraw/excalidraw 0.17.1-88812e0 → 0.17.1-96eeec5
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 +2 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-47LVF2XL.js → chunk-DEYXWPUO.js} +4933 -1520
- package/dist/browser/dev/excalidraw-assets-dev/chunk-DEYXWPUO.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-XOM7LNOU.js → chunk-EM6LVGFW.js} +27 -4
- package/dist/browser/dev/excalidraw-assets-dev/chunk-EM6LVGFW.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{dist-ITJNUBZF.js → dist-6QVAH5JA.js} +36 -14
- package/dist/browser/dev/excalidraw-assets-dev/dist-6QVAH5JA.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{en-TR4QLF5E.js → en-AZFA5HJJ.js} +4 -2
- package/dist/browser/dev/excalidraw-assets-dev/{image-LHMGJWTI.js → image-5XCR4WHS.js} +2 -2
- package/dist/browser/dev/index.css +157 -62
- package/dist/browser/dev/index.css.map +3 -3
- package/dist/browser/dev/index.js +12016 -7663
- package/dist/browser/dev/index.js.map +4 -4
- package/dist/browser/prod/excalidraw-assets/{chunk-5SYIAZGL.js → chunk-7DXALCB2.js} +5 -5
- package/dist/browser/prod/excalidraw-assets/chunk-ODWTVSS7.js +68 -0
- package/dist/browser/prod/excalidraw-assets/dist-567JAXHK.js +7 -0
- package/dist/browser/prod/excalidraw-assets/en-6E7MYLWO.js +1 -0
- package/dist/browser/prod/excalidraw-assets/image-LQAMCFQI.js +1 -0
- package/dist/browser/prod/index.css +1 -1
- package/dist/browser/prod/index.js +69 -51
- package/dist/dev/{en-XW4JO6VX.json → en-EB2MBPAV.json} +24 -3
- package/dist/dev/index.css +157 -62
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +18250 -16114
- package/dist/dev/index.js.map +4 -4
- package/dist/excalidraw/actions/actionAddToLibrary.d.ts +15 -6
- package/dist/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/excalidraw/actions/actionBoundText.d.ts +14 -8
- package/dist/excalidraw/actions/actionBoundText.js +3 -1
- package/dist/excalidraw/actions/actionCanvas.d.ts +64 -28
- package/dist/excalidraw/actions/actionCanvas.js +1 -1
- package/dist/excalidraw/actions/actionClipboard.d.ts +40 -19
- package/dist/excalidraw/actions/actionDeleteSelected.d.ts +17 -8
- package/dist/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/excalidraw/actions/actionDuplicateSelection.d.ts +3 -3
- package/dist/excalidraw/actions/actionElementLock.d.ts +11 -5
- package/dist/excalidraw/actions/actionExport.d.ts +48 -21
- package/dist/excalidraw/actions/actionFinalize.d.ts +11 -5
- package/dist/excalidraw/actions/actionFinalize.js +1 -1
- package/dist/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/excalidraw/actions/actionFlip.js +5 -6
- package/dist/excalidraw/actions/actionFrame.d.ts +328 -8
- package/dist/excalidraw/actions/actionGroup.d.ts +320 -4
- package/dist/excalidraw/actions/actionHistory.d.ts +3 -3
- package/dist/excalidraw/actions/actionHistory.js +4 -4
- package/dist/excalidraw/actions/actionLinearEditor.d.ts +9 -4
- package/dist/excalidraw/actions/actionLinearEditor.js +19 -4
- package/dist/excalidraw/actions/actionLink.d.ts +5 -2
- package/dist/excalidraw/actions/actionMenu.d.ts +15 -6
- package/dist/excalidraw/actions/actionNavigate.d.ts +11 -5
- package/dist/excalidraw/actions/actionProperties.d.ts +67 -28
- package/dist/excalidraw/actions/actionProperties.js +1 -1
- package/dist/excalidraw/actions/actionSelectAll.d.ts +6 -3
- package/dist/excalidraw/actions/actionStyles.d.ts +9 -3
- package/dist/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
- package/dist/excalidraw/actions/actionTextAutoResize.js +38 -0
- package/dist/excalidraw/actions/actionToggleGridMode.d.ts +6 -3
- package/dist/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -2
- package/dist/excalidraw/actions/actionToggleStats.d.ts +6 -2
- package/dist/excalidraw/actions/actionToggleStats.js +4 -3
- package/dist/excalidraw/actions/actionToggleViewMode.d.ts +5 -2
- package/dist/excalidraw/actions/actionToggleZenMode.d.ts +5 -2
- package/dist/excalidraw/actions/actionZindex.d.ts +8 -4
- package/dist/excalidraw/actions/actionZindex.js +4 -0
- package/dist/excalidraw/actions/manager.d.ts +3 -3
- package/dist/excalidraw/actions/register.d.ts +1 -1
- package/dist/excalidraw/actions/shortcuts.d.ts +2 -2
- package/dist/excalidraw/actions/types.d.ts +6 -6
- package/dist/excalidraw/align.d.ts +1 -1
- package/dist/excalidraw/animated-trail.d.ts +2 -2
- package/dist/excalidraw/appState.d.ts +5 -2
- package/dist/excalidraw/appState.js +6 -3
- package/dist/excalidraw/change.d.ts +4 -4
- package/dist/excalidraw/change.js +14 -7
- package/dist/excalidraw/charts.d.ts +1 -1
- package/dist/excalidraw/clients.d.ts +2 -2
- package/dist/excalidraw/clients.js +1 -1
- package/dist/excalidraw/clipboard.d.ts +3 -3
- package/dist/excalidraw/colors.d.ts +1 -1
- package/dist/excalidraw/components/Actions.d.ts +3 -3
- package/dist/excalidraw/components/Actions.js +9 -6
- package/dist/excalidraw/components/App.d.ts +10 -16
- package/dist/excalidraw/components/App.js +190 -142
- package/dist/excalidraw/components/ButtonIconSelect.js +1 -1
- package/dist/excalidraw/components/CheckboxItem.js +1 -1
- package/dist/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/ColorInput.js +1 -1
- package/dist/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/dist/excalidraw/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/excalidraw/components/ColorPicker/Picker.d.ts +3 -3
- package/dist/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/dist/excalidraw/components/ColorPicker/colorPickerUtils.js +1 -1
- package/dist/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
- package/dist/excalidraw/components/ColorPicker/keyboardNavHandlers.js +1 -1
- package/dist/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
- package/dist/excalidraw/components/CommandPalette/CommandPalette.js +5 -5
- package/dist/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -1
- package/dist/excalidraw/components/CommandPalette/types.d.ts +3 -3
- package/dist/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/dist/excalidraw/components/ContextMenu.d.ts +2 -2
- package/dist/excalidraw/components/ContextMenu.js +2 -2
- package/dist/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/dist/excalidraw/components/Dialog.js +1 -1
- package/dist/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/dist/excalidraw/components/EyeDropper.d.ts +2 -2
- package/dist/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/dist/excalidraw/components/FollowMode/FollowMode.js +1 -1
- package/dist/excalidraw/components/HelpDialog.js +1 -1
- package/dist/excalidraw/components/HintViewer.d.ts +1 -1
- package/dist/excalidraw/components/IconPicker.js +2 -2
- package/dist/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/dist/excalidraw/components/InitializeApp.d.ts +2 -2
- package/dist/excalidraw/components/JSONExportDialog.d.ts +3 -3
- package/dist/excalidraw/components/LayerUI.d.ts +4 -4
- package/dist/excalidraw/components/LayerUI.js +10 -7
- package/dist/excalidraw/components/LibraryMenu.d.ts +2 -2
- package/dist/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -1
- package/dist/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/excalidraw/components/LibraryMenuHeaderContent.d.ts +2 -2
- package/dist/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/dist/excalidraw/components/LibraryMenuSection.d.ts +5 -4
- package/dist/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/dist/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/excalidraw/components/MagicSettings.js +2 -2
- package/dist/excalidraw/components/MobileMenu.d.ts +3 -3
- package/dist/excalidraw/components/MobileMenu.js +2 -6
- package/dist/excalidraw/components/Modal.d.ts +1 -1
- package/dist/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/dist/excalidraw/components/PasteChartDialog.js +1 -1
- package/dist/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/dist/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/Sidebar.js +1 -1
- package/dist/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/dist/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/dist/excalidraw/components/Stats/Angle.d.ts +12 -0
- package/dist/excalidraw/components/Stats/Angle.js +52 -0
- package/dist/excalidraw/components/Stats/Collapsible.d.ts +9 -0
- package/dist/excalidraw/components/Stats/Collapsible.js +12 -0
- package/dist/excalidraw/components/Stats/Dimension.d.ts +12 -0
- package/dist/excalidraw/components/Stats/Dimension.js +67 -0
- package/dist/excalidraw/components/Stats/DragInput.d.ts +32 -0
- package/dist/excalidraw/components/Stats/DragInput.js +174 -0
- package/dist/excalidraw/components/Stats/FontSize.d.ts +12 -0
- package/dist/excalidraw/components/Stats/FontSize.js +50 -0
- package/dist/excalidraw/components/Stats/MultiAngle.d.ts +12 -0
- package/dist/excalidraw/components/Stats/MultiAngle.js +66 -0
- package/dist/excalidraw/components/Stats/MultiDimension.d.ts +15 -0
- package/dist/excalidraw/components/Stats/MultiDimension.js +197 -0
- package/dist/excalidraw/components/Stats/MultiFontSize.d.ts +13 -0
- package/dist/excalidraw/components/Stats/MultiFontSize.js +72 -0
- package/dist/excalidraw/components/Stats/MultiPosition.d.ts +15 -0
- package/dist/excalidraw/components/Stats/MultiPosition.js +100 -0
- package/dist/excalidraw/components/Stats/Position.d.ts +13 -0
- package/dist/excalidraw/components/Stats/Position.js +39 -0
- package/dist/excalidraw/components/Stats/index.d.ts +16 -0
- package/dist/excalidraw/components/Stats/index.js +78 -0
- package/dist/excalidraw/components/Stats/utils.d.ts +25 -0
- package/dist/excalidraw/components/Stats/utils.js +158 -0
- package/dist/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialog.js +2 -2
- package/dist/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/dist/excalidraw/components/TTDDialog/common.d.ts +4 -4
- package/dist/excalidraw/components/TextField.d.ts +1 -1
- package/dist/excalidraw/components/Toast.d.ts +1 -1
- package/dist/excalidraw/components/ToolButton.d.ts +3 -2
- package/dist/excalidraw/components/Trans.d.ts +1 -1
- package/dist/excalidraw/components/UserList.d.ts +1 -1
- package/dist/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/dist/excalidraw/components/canvases/InteractiveCanvas.js +4 -2
- package/dist/excalidraw/components/canvases/StaticCanvas.d.ts +2 -2
- package/dist/excalidraw/components/canvases/StaticCanvas.js +2 -2
- package/dist/excalidraw/components/dropdownMenu/DropdownMenuItem.js +2 -2
- package/dist/excalidraw/components/footer/Footer.d.ts +2 -2
- package/dist/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/dist/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/dist/excalidraw/components/icons.d.ts +6 -2
- package/dist/excalidraw/components/icons.js +22 -6
- package/dist/excalidraw/constants.d.ts +8 -2
- package/dist/excalidraw/constants.js +8 -1
- package/dist/excalidraw/context/ui-appState.d.ts +1 -1
- package/dist/excalidraw/cursor.d.ts +1 -1
- package/dist/excalidraw/data/EditorLocalStorage.d.ts +2 -2
- package/dist/excalidraw/data/blob.d.ts +5 -5
- package/dist/excalidraw/data/filesystem.d.ts +2 -1
- package/dist/excalidraw/data/index.d.ts +4 -4
- package/dist/excalidraw/data/json.d.ts +3 -3
- package/dist/excalidraw/data/library.d.ts +3 -3
- package/dist/excalidraw/data/magic.d.ts +3 -3
- package/dist/excalidraw/data/reconcile.d.ts +3 -3
- package/dist/excalidraw/data/resave.d.ts +2 -2
- package/dist/excalidraw/data/restore.d.ts +3 -3
- package/dist/excalidraw/data/restore.js +16 -1
- package/dist/excalidraw/data/transform.d.ts +3 -3
- package/dist/excalidraw/data/types.d.ts +3 -3
- package/dist/excalidraw/element/ElementCanvasButtons.d.ts +1 -1
- package/dist/excalidraw/element/binding.d.ts +7 -21
- package/dist/excalidraw/element/binding.js +127 -102
- package/dist/excalidraw/element/bounds.d.ts +3 -3
- package/dist/excalidraw/element/collision.d.ts +3 -3
- package/dist/excalidraw/element/collision.js +1 -1
- package/dist/excalidraw/element/containerCache.d.ts +1 -1
- package/dist/excalidraw/element/dragElements.d.ts +4 -4
- package/dist/excalidraw/element/dragElements.js +27 -3
- package/dist/excalidraw/element/embeddable.d.ts +8 -5
- package/dist/excalidraw/element/image.d.ts +2 -2
- package/dist/excalidraw/element/index.d.ts +2 -2
- package/dist/excalidraw/element/index.js +1 -1
- package/dist/excalidraw/element/linearElementEditor.d.ts +8 -5
- package/dist/excalidraw/element/linearElementEditor.js +7 -4
- package/dist/excalidraw/element/mutateElement.d.ts +2 -2
- package/dist/excalidraw/element/mutateElement.js +1 -1
- package/dist/excalidraw/element/newElement.d.ts +5 -8
- package/dist/excalidraw/element/newElement.js +16 -14
- package/dist/excalidraw/element/resizeElements.d.ts +11 -3
- package/dist/excalidraw/element/resizeElements.js +75 -23
- package/dist/excalidraw/element/resizeTest.d.ts +4 -4
- package/dist/excalidraw/element/resizeTest.js +2 -4
- package/dist/excalidraw/element/showSelectedShapeActions.d.ts +2 -2
- package/dist/excalidraw/element/sizeHelpers.d.ts +2 -2
- package/dist/excalidraw/element/sortElements.d.ts +1 -1
- package/dist/excalidraw/element/textElement.d.ts +5 -4
- package/dist/excalidraw/element/textElement.js +11 -3
- package/dist/excalidraw/element/textWysiwyg.d.ts +12 -6
- package/dist/excalidraw/element/textWysiwyg.js +38 -17
- package/dist/excalidraw/element/transformHandles.d.ts +3 -3
- package/dist/excalidraw/element/transformHandles.js +0 -10
- package/dist/excalidraw/element/typeChecks.d.ts +4 -4
- package/dist/excalidraw/element/types.d.ts +11 -4
- package/dist/excalidraw/emitter.d.ts +1 -1
- package/dist/excalidraw/fractionalIndex.d.ts +1 -1
- package/dist/excalidraw/fractionalIndex.js +2 -4
- package/dist/excalidraw/frame.d.ts +3 -3
- package/dist/excalidraw/gatransforms.d.ts +1 -1
- package/dist/excalidraw/gesture.d.ts +1 -1
- package/dist/excalidraw/groups.d.ts +4 -4
- package/dist/excalidraw/history.d.ts +4 -4
- package/dist/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/excalidraw/i18n.d.ts +1 -1
- package/dist/excalidraw/index.d.ts +1 -1
- package/dist/excalidraw/jotai.d.ts +1 -1
- package/dist/excalidraw/laser-trails.d.ts +3 -2
- package/dist/excalidraw/locales/en.json +24 -3
- package/dist/excalidraw/math.d.ts +4 -2
- package/dist/excalidraw/math.js +6 -0
- package/dist/excalidraw/mermaid.d.ts +2 -0
- package/dist/excalidraw/mermaid.js +28 -0
- package/dist/excalidraw/points.d.ts +1 -1
- package/dist/excalidraw/queue.d.ts +1 -1
- package/dist/excalidraw/renderer/helpers.d.ts +2 -2
- package/dist/excalidraw/renderer/interactiveScene.d.ts +2 -2
- package/dist/excalidraw/renderer/interactiveScene.js +32 -6
- package/dist/excalidraw/renderer/renderElement.d.ts +4 -4
- package/dist/excalidraw/renderer/renderElement.js +5 -5
- package/dist/excalidraw/renderer/renderSnaps.d.ts +1 -1
- package/dist/excalidraw/renderer/staticScene.d.ts +1 -1
- package/dist/excalidraw/renderer/staticSvgScene.d.ts +4 -4
- package/dist/excalidraw/scene/Fonts.d.ts +2 -4
- package/dist/excalidraw/scene/Fonts.js +12 -15
- package/dist/excalidraw/scene/Renderer.d.ts +4 -4
- package/dist/excalidraw/scene/Renderer.js +2 -3
- package/dist/excalidraw/scene/Scene.d.ts +16 -7
- package/dist/excalidraw/scene/Scene.js +17 -8
- package/dist/excalidraw/scene/Shape.d.ts +1 -1
- package/dist/excalidraw/scene/ShapeCache.d.ts +4 -4
- package/dist/excalidraw/scene/comparisons.d.ts +2 -2
- package/dist/excalidraw/scene/export.d.ts +2 -2
- package/dist/excalidraw/scene/export.js +2 -2
- package/dist/excalidraw/scene/scroll.d.ts +2 -2
- package/dist/excalidraw/scene/scrollbars.d.ts +3 -3
- package/dist/excalidraw/scene/selection.d.ts +2 -2
- package/dist/excalidraw/scene/types.d.ts +6 -8
- package/dist/excalidraw/scene/zoom.d.ts +1 -1
- package/dist/excalidraw/shapes.d.ts +7 -0
- package/dist/excalidraw/shapes.js +40 -0
- package/dist/excalidraw/snapping.d.ts +4 -4
- package/dist/excalidraw/snapping.js +2 -1
- package/dist/excalidraw/store.d.ts +34 -4
- package/dist/excalidraw/store.js +27 -0
- package/dist/excalidraw/types.d.ts +25 -20
- package/dist/excalidraw/utils.d.ts +4 -4
- package/dist/excalidraw/zindex.d.ts +2 -2
- package/dist/prod/{en-XW4JO6VX.json → en-EB2MBPAV.json} +24 -3
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +39 -39
- package/dist/utils/bbox.d.ts +2 -2
- package/dist/utils/collision.d.ts +1 -1
- package/dist/utils/export.d.ts +2 -2
- package/dist/utils/geometry/geometry.d.ts +1 -1
- package/dist/utils/geometry/shape.d.ts +1 -1
- package/dist/utils/withinBounds.d.ts +1 -1
- package/history.ts +4 -4
- package/package.json +2 -2
- package/dist/browser/dev/excalidraw-assets-dev/chunk-47LVF2XL.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/chunk-XOM7LNOU.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/dist-ITJNUBZF.js.map +0 -7
- package/dist/browser/prod/excalidraw-assets/chunk-4SNEEDZH.js +0 -55
- package/dist/browser/prod/excalidraw-assets/dist-54276HPL.js +0 -6
- package/dist/browser/prod/excalidraw-assets/en-7GPZE2Y2.js +0 -1
- package/dist/browser/prod/excalidraw-assets/image-ISQJGWLB.js +0 -1
- package/dist/excalidraw/components/Stats.d.ts +0 -11
- package/dist/excalidraw/components/Stats.js +0 -13
- /package/dist/browser/dev/excalidraw-assets-dev/{en-TR4QLF5E.js.map → en-AZFA5HJJ.js.map} +0 -0
- /package/dist/browser/dev/excalidraw-assets-dev/{image-LHMGJWTI.js.map → image-5XCR4WHS.js.map} +0 -0
|
@@ -5,7 +5,7 @@ export declare const actionAddToLibrary: {
|
|
|
5
5
|
category: "element";
|
|
6
6
|
};
|
|
7
7
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
8
|
-
storeAction:
|
|
8
|
+
storeAction: "none";
|
|
9
9
|
appState: {
|
|
10
10
|
toast: {
|
|
11
11
|
message: string;
|
|
@@ -135,7 +135,10 @@ export declare const actionAddToLibrary: {
|
|
|
135
135
|
isSpeaking?: boolean | undefined;
|
|
136
136
|
isMuted?: boolean | undefined;
|
|
137
137
|
}>>;
|
|
138
|
-
|
|
138
|
+
stats: {
|
|
139
|
+
open: boolean;
|
|
140
|
+
panels: number;
|
|
141
|
+
};
|
|
139
142
|
currentChartType: import("../element/types").ChartType;
|
|
140
143
|
pasteDialog: {
|
|
141
144
|
shown: false;
|
|
@@ -157,7 +160,7 @@ export declare const actionAddToLibrary: {
|
|
|
157
160
|
followedBy: Set<import("../types").SocketId>;
|
|
158
161
|
};
|
|
159
162
|
} | {
|
|
160
|
-
storeAction:
|
|
163
|
+
storeAction: "none";
|
|
161
164
|
appState: {
|
|
162
165
|
errorMessage: any;
|
|
163
166
|
contextMenu: {
|
|
@@ -289,7 +292,10 @@ export declare const actionAddToLibrary: {
|
|
|
289
292
|
isSpeaking?: boolean | undefined;
|
|
290
293
|
isMuted?: boolean | undefined;
|
|
291
294
|
}>>;
|
|
292
|
-
|
|
295
|
+
stats: {
|
|
296
|
+
open: boolean;
|
|
297
|
+
panels: number;
|
|
298
|
+
};
|
|
293
299
|
currentChartType: import("../element/types").ChartType;
|
|
294
300
|
pasteDialog: {
|
|
295
301
|
shown: false;
|
|
@@ -311,7 +317,7 @@ export declare const actionAddToLibrary: {
|
|
|
311
317
|
followedBy: Set<import("../types").SocketId>;
|
|
312
318
|
};
|
|
313
319
|
}> | {
|
|
314
|
-
storeAction:
|
|
320
|
+
storeAction: "none";
|
|
315
321
|
appState: {
|
|
316
322
|
errorMessage: string;
|
|
317
323
|
contextMenu: {
|
|
@@ -443,7 +449,10 @@ export declare const actionAddToLibrary: {
|
|
|
443
449
|
isSpeaking?: boolean | undefined;
|
|
444
450
|
isMuted?: boolean | undefined;
|
|
445
451
|
}>>;
|
|
446
|
-
|
|
452
|
+
stats: {
|
|
453
|
+
open: boolean;
|
|
454
|
+
panels: number;
|
|
455
|
+
};
|
|
447
456
|
currentChartType: import("../element/types").ChartType;
|
|
448
457
|
pasteDialog: {
|
|
449
458
|
shown: false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ExcalidrawElement } from "../element/types";
|
|
3
|
-
import { AppClassProperties, AppState, UIAppState } from "../types";
|
|
2
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
3
|
+
import type { AppClassProperties, AppState, UIAppState } from "../types";
|
|
4
4
|
export declare const actionAlignTop: {
|
|
5
5
|
name: "alignTop";
|
|
6
6
|
label: string;
|
|
@@ -12,7 +12,7 @@ export declare const actionAlignTop: {
|
|
|
12
12
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
elements: ExcalidrawElement[];
|
|
15
|
-
storeAction:
|
|
15
|
+
storeAction: "capture";
|
|
16
16
|
};
|
|
17
17
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
18
18
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -30,7 +30,7 @@ export declare const actionAlignBottom: {
|
|
|
30
30
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
31
31
|
appState: Readonly<AppState>;
|
|
32
32
|
elements: ExcalidrawElement[];
|
|
33
|
-
storeAction:
|
|
33
|
+
storeAction: "capture";
|
|
34
34
|
};
|
|
35
35
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
36
36
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -48,7 +48,7 @@ export declare const actionAlignLeft: {
|
|
|
48
48
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
49
49
|
appState: Readonly<AppState>;
|
|
50
50
|
elements: ExcalidrawElement[];
|
|
51
|
-
storeAction:
|
|
51
|
+
storeAction: "capture";
|
|
52
52
|
};
|
|
53
53
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
54
54
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -66,7 +66,7 @@ export declare const actionAlignRight: {
|
|
|
66
66
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
67
67
|
appState: Readonly<AppState>;
|
|
68
68
|
elements: ExcalidrawElement[];
|
|
69
|
-
storeAction:
|
|
69
|
+
storeAction: "capture";
|
|
70
70
|
};
|
|
71
71
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
72
72
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -84,7 +84,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
84
84
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
85
85
|
appState: Readonly<AppState>;
|
|
86
86
|
elements: ExcalidrawElement[];
|
|
87
|
-
storeAction:
|
|
87
|
+
storeAction: "capture";
|
|
88
88
|
};
|
|
89
89
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
90
90
|
} & {
|
|
@@ -101,7 +101,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
101
101
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
102
102
|
appState: Readonly<AppState>;
|
|
103
103
|
elements: ExcalidrawElement[];
|
|
104
|
-
storeAction:
|
|
104
|
+
storeAction: "capture";
|
|
105
105
|
};
|
|
106
106
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
107
107
|
} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
|
-
import { AppState } from "../types";
|
|
4
|
-
import { Mutable } from "../utility-types";
|
|
2
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
|
+
import type { AppState } from "../types";
|
|
4
|
+
import type { Mutable } from "../utility-types";
|
|
5
5
|
export declare const actionUnbindText: {
|
|
6
6
|
name: "unbindText";
|
|
7
7
|
label: string;
|
|
@@ -12,7 +12,7 @@ export declare const actionUnbindText: {
|
|
|
12
12
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
13
13
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
|
-
storeAction:
|
|
15
|
+
storeAction: "capture";
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
@@ -157,7 +157,10 @@ export declare const actionBindText: {
|
|
|
157
157
|
isSpeaking?: boolean | undefined;
|
|
158
158
|
isMuted?: boolean | undefined;
|
|
159
159
|
}>>;
|
|
160
|
-
|
|
160
|
+
stats: {
|
|
161
|
+
open: boolean;
|
|
162
|
+
panels: number;
|
|
163
|
+
};
|
|
161
164
|
currentChartType: import("../element/types").ChartType;
|
|
162
165
|
pasteDialog: {
|
|
163
166
|
shown: false;
|
|
@@ -178,7 +181,7 @@ export declare const actionBindText: {
|
|
|
178
181
|
userToFollow: import("../types").UserToFollow | null;
|
|
179
182
|
followedBy: Set<import("../types").SocketId>;
|
|
180
183
|
};
|
|
181
|
-
storeAction:
|
|
184
|
+
storeAction: "capture";
|
|
182
185
|
};
|
|
183
186
|
} & {
|
|
184
187
|
keyTest?: undefined;
|
|
@@ -323,7 +326,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
323
326
|
isSpeaking?: boolean | undefined;
|
|
324
327
|
isMuted?: boolean | undefined;
|
|
325
328
|
}>>;
|
|
326
|
-
|
|
329
|
+
stats: {
|
|
330
|
+
open: boolean;
|
|
331
|
+
panels: number;
|
|
332
|
+
};
|
|
327
333
|
currentChartType: import("../element/types").ChartType;
|
|
328
334
|
pasteDialog: {
|
|
329
335
|
shown: false;
|
|
@@ -344,7 +350,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
344
350
|
userToFollow: import("../types").UserToFollow | null;
|
|
345
351
|
followedBy: Set<import("../types").SocketId>;
|
|
346
352
|
};
|
|
347
|
-
storeAction:
|
|
353
|
+
storeAction: "capture";
|
|
348
354
|
};
|
|
349
355
|
} & {
|
|
350
356
|
keyTest?: undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BOUND_TEXT_PADDING, ROUNDNESS,
|
|
1
|
+
import { BOUND_TEXT_PADDING, ROUNDNESS, TEXT_ALIGN, VERTICAL_ALIGN, } from "../constants";
|
|
2
2
|
import { isTextElement, newElement } from "../element";
|
|
3
3
|
import { mutateElement } from "../element/mutateElement";
|
|
4
4
|
import { computeBoundTextPosition, computeContainerDimensionForBoundText, getBoundTextElement, measureText, redrawTextBoundingBox, } from "../element/textElement";
|
|
@@ -90,6 +90,7 @@ export const actionBindText = register({
|
|
|
90
90
|
containerId: container.id,
|
|
91
91
|
verticalAlign: VERTICAL_ALIGN.MIDDLE,
|
|
92
92
|
textAlign: TEXT_ALIGN.CENTER,
|
|
93
|
+
autoResize: true,
|
|
93
94
|
});
|
|
94
95
|
mutateElement(container, {
|
|
95
96
|
boundElements: (container.boundElements || []).concat({
|
|
@@ -199,6 +200,7 @@ export const actionWrapTextInContainer = register({
|
|
|
199
200
|
verticalAlign: VERTICAL_ALIGN.MIDDLE,
|
|
200
201
|
boundElements: null,
|
|
201
202
|
textAlign: TEXT_ALIGN.CENTER,
|
|
203
|
+
autoResize: true,
|
|
202
204
|
}, false);
|
|
203
205
|
redrawTextBoundingBox(textElement, container, app.scene.getNonDeletedElementsMap());
|
|
204
206
|
updatedElements = pushContainerBelowText([...updatedElements, container], container, textElement);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ExcalidrawElement } from "../element/types";
|
|
3
|
-
import { AppState, NormalizedZoomValue } from "../types";
|
|
4
|
-
import { SceneBounds } from "../element/bounds";
|
|
2
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
3
|
+
import type { AppState, NormalizedZoomValue } from "../types";
|
|
4
|
+
import type { SceneBounds } from "../element/bounds";
|
|
5
5
|
export declare const actionChangeViewBackgroundColor: {
|
|
6
6
|
name: "changeViewBackgroundColor";
|
|
7
7
|
label: string;
|
|
@@ -10,7 +10,7 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
10
10
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
11
|
perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
12
12
|
appState: any;
|
|
13
|
-
storeAction:
|
|
13
|
+
storeAction: "none" | "capture";
|
|
14
14
|
};
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
16
16
|
} & {
|
|
@@ -35,7 +35,10 @@ export declare const actionClearCanvas: {
|
|
|
35
35
|
exportBackground: boolean;
|
|
36
36
|
exportEmbedScene: boolean;
|
|
37
37
|
gridSize: number | null;
|
|
38
|
-
|
|
38
|
+
stats: {
|
|
39
|
+
open: boolean;
|
|
40
|
+
panels: number;
|
|
41
|
+
};
|
|
39
42
|
pasteDialog: {
|
|
40
43
|
shown: false;
|
|
41
44
|
data: null;
|
|
@@ -176,7 +179,7 @@ export declare const actionClearCanvas: {
|
|
|
176
179
|
userToFollow: import("../types").UserToFollow | null;
|
|
177
180
|
followedBy: Set<import("../types").SocketId>;
|
|
178
181
|
};
|
|
179
|
-
storeAction:
|
|
182
|
+
storeAction: "capture";
|
|
180
183
|
};
|
|
181
184
|
} & {
|
|
182
185
|
keyTest?: undefined;
|
|
@@ -322,7 +325,10 @@ export declare const actionZoomIn: {
|
|
|
322
325
|
isSpeaking?: boolean | undefined;
|
|
323
326
|
isMuted?: boolean | undefined;
|
|
324
327
|
}>>;
|
|
325
|
-
|
|
328
|
+
stats: {
|
|
329
|
+
open: boolean;
|
|
330
|
+
panels: number;
|
|
331
|
+
};
|
|
326
332
|
currentChartType: import("../element/types").ChartType;
|
|
327
333
|
pasteDialog: {
|
|
328
334
|
shown: false;
|
|
@@ -342,7 +348,7 @@ export declare const actionZoomIn: {
|
|
|
342
348
|
objectsSnapModeEnabled: boolean;
|
|
343
349
|
followedBy: Set<import("../types").SocketId>;
|
|
344
350
|
};
|
|
345
|
-
storeAction:
|
|
351
|
+
storeAction: "none";
|
|
346
352
|
};
|
|
347
353
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
348
354
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -490,7 +496,10 @@ export declare const actionZoomOut: {
|
|
|
490
496
|
isSpeaking?: boolean | undefined;
|
|
491
497
|
isMuted?: boolean | undefined;
|
|
492
498
|
}>>;
|
|
493
|
-
|
|
499
|
+
stats: {
|
|
500
|
+
open: boolean;
|
|
501
|
+
panels: number;
|
|
502
|
+
};
|
|
494
503
|
currentChartType: import("../element/types").ChartType;
|
|
495
504
|
pasteDialog: {
|
|
496
505
|
shown: false;
|
|
@@ -510,7 +519,7 @@ export declare const actionZoomOut: {
|
|
|
510
519
|
objectsSnapModeEnabled: boolean;
|
|
511
520
|
followedBy: Set<import("../types").SocketId>;
|
|
512
521
|
};
|
|
513
|
-
storeAction:
|
|
522
|
+
storeAction: "none";
|
|
514
523
|
};
|
|
515
524
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
516
525
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -658,7 +667,10 @@ export declare const actionResetZoom: {
|
|
|
658
667
|
isSpeaking?: boolean | undefined;
|
|
659
668
|
isMuted?: boolean | undefined;
|
|
660
669
|
}>>;
|
|
661
|
-
|
|
670
|
+
stats: {
|
|
671
|
+
open: boolean;
|
|
672
|
+
panels: number;
|
|
673
|
+
};
|
|
662
674
|
currentChartType: import("../element/types").ChartType;
|
|
663
675
|
pasteDialog: {
|
|
664
676
|
shown: false;
|
|
@@ -678,7 +690,7 @@ export declare const actionResetZoom: {
|
|
|
678
690
|
objectsSnapModeEnabled: boolean;
|
|
679
691
|
followedBy: Set<import("../types").SocketId>;
|
|
680
692
|
};
|
|
681
|
-
storeAction:
|
|
693
|
+
storeAction: "none";
|
|
682
694
|
};
|
|
683
695
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
684
696
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -824,7 +836,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
|
|
|
824
836
|
isSpeaking?: boolean | undefined;
|
|
825
837
|
isMuted?: boolean | undefined;
|
|
826
838
|
}>>;
|
|
827
|
-
|
|
839
|
+
stats: {
|
|
840
|
+
open: boolean;
|
|
841
|
+
panels: number;
|
|
842
|
+
};
|
|
828
843
|
currentChartType: import("../element/types").ChartType;
|
|
829
844
|
pasteDialog: {
|
|
830
845
|
shown: false;
|
|
@@ -845,7 +860,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
|
|
|
845
860
|
userToFollow: import("../types").UserToFollow | null;
|
|
846
861
|
followedBy: Set<import("../types").SocketId>;
|
|
847
862
|
};
|
|
848
|
-
storeAction:
|
|
863
|
+
storeAction: "none";
|
|
849
864
|
};
|
|
850
865
|
export declare const zoomToFit: ({ targetElements, appState, fitToViewport, viewportZoomFactor, }: {
|
|
851
866
|
targetElements: readonly ExcalidrawElement[];
|
|
@@ -986,7 +1001,10 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
986
1001
|
isSpeaking?: boolean | undefined;
|
|
987
1002
|
isMuted?: boolean | undefined;
|
|
988
1003
|
}>>;
|
|
989
|
-
|
|
1004
|
+
stats: {
|
|
1005
|
+
open: boolean;
|
|
1006
|
+
panels: number;
|
|
1007
|
+
};
|
|
990
1008
|
currentChartType: import("../element/types").ChartType;
|
|
991
1009
|
pasteDialog: {
|
|
992
1010
|
shown: false;
|
|
@@ -1007,7 +1025,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
1007
1025
|
userToFollow: import("../types").UserToFollow | null;
|
|
1008
1026
|
followedBy: Set<import("../types").SocketId>;
|
|
1009
1027
|
};
|
|
1010
|
-
storeAction:
|
|
1028
|
+
storeAction: "none";
|
|
1011
1029
|
};
|
|
1012
1030
|
export declare const actionZoomToFitSelectionInViewport: {
|
|
1013
1031
|
name: "zoomToFitSelectionInViewport";
|
|
@@ -1148,7 +1166,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1148
1166
|
isSpeaking?: boolean | undefined;
|
|
1149
1167
|
isMuted?: boolean | undefined;
|
|
1150
1168
|
}>>;
|
|
1151
|
-
|
|
1169
|
+
stats: {
|
|
1170
|
+
open: boolean;
|
|
1171
|
+
panels: number;
|
|
1172
|
+
};
|
|
1152
1173
|
currentChartType: import("../element/types").ChartType;
|
|
1153
1174
|
pasteDialog: {
|
|
1154
1175
|
shown: false;
|
|
@@ -1169,7 +1190,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1169
1190
|
userToFollow: import("../types").UserToFollow | null;
|
|
1170
1191
|
followedBy: Set<import("../types").SocketId>;
|
|
1171
1192
|
};
|
|
1172
|
-
storeAction:
|
|
1193
|
+
storeAction: "none";
|
|
1173
1194
|
};
|
|
1174
1195
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1175
1196
|
} & {
|
|
@@ -1314,7 +1335,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1314
1335
|
isSpeaking?: boolean | undefined;
|
|
1315
1336
|
isMuted?: boolean | undefined;
|
|
1316
1337
|
}>>;
|
|
1317
|
-
|
|
1338
|
+
stats: {
|
|
1339
|
+
open: boolean;
|
|
1340
|
+
panels: number;
|
|
1341
|
+
};
|
|
1318
1342
|
currentChartType: import("../element/types").ChartType;
|
|
1319
1343
|
pasteDialog: {
|
|
1320
1344
|
shown: false;
|
|
@@ -1335,7 +1359,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1335
1359
|
userToFollow: import("../types").UserToFollow | null;
|
|
1336
1360
|
followedBy: Set<import("../types").SocketId>;
|
|
1337
1361
|
};
|
|
1338
|
-
storeAction:
|
|
1362
|
+
storeAction: "none";
|
|
1339
1363
|
};
|
|
1340
1364
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1341
1365
|
} & {
|
|
@@ -1481,7 +1505,10 @@ export declare const actionZoomToFit: {
|
|
|
1481
1505
|
isSpeaking?: boolean | undefined;
|
|
1482
1506
|
isMuted?: boolean | undefined;
|
|
1483
1507
|
}>>;
|
|
1484
|
-
|
|
1508
|
+
stats: {
|
|
1509
|
+
open: boolean;
|
|
1510
|
+
panels: number;
|
|
1511
|
+
};
|
|
1485
1512
|
currentChartType: import("../element/types").ChartType;
|
|
1486
1513
|
pasteDialog: {
|
|
1487
1514
|
shown: false;
|
|
@@ -1502,7 +1529,7 @@ export declare const actionZoomToFit: {
|
|
|
1502
1529
|
userToFollow: import("../types").UserToFollow | null;
|
|
1503
1530
|
followedBy: Set<import("../types").SocketId>;
|
|
1504
1531
|
};
|
|
1505
|
-
storeAction:
|
|
1532
|
+
storeAction: "none";
|
|
1506
1533
|
};
|
|
1507
1534
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1508
1535
|
} & {
|
|
@@ -1649,7 +1676,10 @@ export declare const actionToggleTheme: {
|
|
|
1649
1676
|
isSpeaking?: boolean | undefined;
|
|
1650
1677
|
isMuted?: boolean | undefined;
|
|
1651
1678
|
}>>;
|
|
1652
|
-
|
|
1679
|
+
stats: {
|
|
1680
|
+
open: boolean;
|
|
1681
|
+
panels: number;
|
|
1682
|
+
};
|
|
1653
1683
|
currentChartType: import("../element/types").ChartType;
|
|
1654
1684
|
pasteDialog: {
|
|
1655
1685
|
shown: false;
|
|
@@ -1670,7 +1700,7 @@ export declare const actionToggleTheme: {
|
|
|
1670
1700
|
userToFollow: import("../types").UserToFollow | null;
|
|
1671
1701
|
followedBy: Set<import("../types").SocketId>;
|
|
1672
1702
|
};
|
|
1673
|
-
storeAction:
|
|
1703
|
+
storeAction: "none";
|
|
1674
1704
|
};
|
|
1675
1705
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1676
1706
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
@@ -1808,7 +1838,10 @@ export declare const actionToggleEraserTool: {
|
|
|
1808
1838
|
isSpeaking?: boolean | undefined;
|
|
1809
1839
|
isMuted?: boolean | undefined;
|
|
1810
1840
|
}>>;
|
|
1811
|
-
|
|
1841
|
+
stats: {
|
|
1842
|
+
open: boolean;
|
|
1843
|
+
panels: number;
|
|
1844
|
+
};
|
|
1812
1845
|
currentChartType: import("../element/types").ChartType;
|
|
1813
1846
|
pasteDialog: {
|
|
1814
1847
|
shown: false;
|
|
@@ -1829,7 +1862,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1829
1862
|
userToFollow: import("../types").UserToFollow | null;
|
|
1830
1863
|
followedBy: Set<import("../types").SocketId>;
|
|
1831
1864
|
};
|
|
1832
|
-
storeAction:
|
|
1865
|
+
storeAction: "capture";
|
|
1833
1866
|
};
|
|
1834
1867
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1835
1868
|
} & {
|
|
@@ -1969,7 +2002,10 @@ export declare const actionToggleHandTool: {
|
|
|
1969
2002
|
isSpeaking?: boolean | undefined;
|
|
1970
2003
|
isMuted?: boolean | undefined;
|
|
1971
2004
|
}>>;
|
|
1972
|
-
|
|
2005
|
+
stats: {
|
|
2006
|
+
open: boolean;
|
|
2007
|
+
panels: number;
|
|
2008
|
+
};
|
|
1973
2009
|
currentChartType: import("../element/types").ChartType;
|
|
1974
2010
|
pasteDialog: {
|
|
1975
2011
|
shown: false;
|
|
@@ -1990,7 +2026,7 @@ export declare const actionToggleHandTool: {
|
|
|
1990
2026
|
userToFollow: import("../types").UserToFollow | null;
|
|
1991
2027
|
followedBy: Set<import("../types").SocketId>;
|
|
1992
2028
|
};
|
|
1993
|
-
storeAction:
|
|
2029
|
+
storeAction: "capture";
|
|
1994
2030
|
};
|
|
1995
2031
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1996
2032
|
} & {
|
|
@@ -62,7 +62,7 @@ export const actionClearCanvas = register({
|
|
|
62
62
|
exportBackground: appState.exportBackground,
|
|
63
63
|
exportEmbedScene: appState.exportEmbedScene,
|
|
64
64
|
gridSize: appState.gridSize,
|
|
65
|
-
|
|
65
|
+
stats: appState.stats,
|
|
66
66
|
pasteDialog: appState.pasteDialog,
|
|
67
67
|
activeTool: appState.activeTool.type === "image"
|
|
68
68
|
? { ...appState.activeTool, type: "selection" }
|
|
@@ -7,7 +7,7 @@ export declare const actionCopy: {
|
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
9
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
10
|
-
storeAction:
|
|
10
|
+
storeAction: "none";
|
|
11
11
|
appState: {
|
|
12
12
|
errorMessage: any;
|
|
13
13
|
contextMenu: {
|
|
@@ -139,7 +139,10 @@ export declare const actionCopy: {
|
|
|
139
139
|
isSpeaking?: boolean | undefined;
|
|
140
140
|
isMuted?: boolean | undefined;
|
|
141
141
|
}>>;
|
|
142
|
-
|
|
142
|
+
stats: {
|
|
143
|
+
open: boolean;
|
|
144
|
+
panels: number;
|
|
145
|
+
};
|
|
143
146
|
currentChartType: import("../element/types").ChartType;
|
|
144
147
|
pasteDialog: {
|
|
145
148
|
shown: false;
|
|
@@ -161,7 +164,7 @@ export declare const actionCopy: {
|
|
|
161
164
|
followedBy: Set<import("../types").SocketId>;
|
|
162
165
|
};
|
|
163
166
|
} | {
|
|
164
|
-
storeAction:
|
|
167
|
+
storeAction: "none";
|
|
165
168
|
appState?: undefined;
|
|
166
169
|
}>;
|
|
167
170
|
keyTest: undefined;
|
|
@@ -175,7 +178,7 @@ export declare const actionPaste: {
|
|
|
175
178
|
category: "element";
|
|
176
179
|
};
|
|
177
180
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
178
|
-
storeAction:
|
|
181
|
+
storeAction: "none";
|
|
179
182
|
appState: {
|
|
180
183
|
errorMessage: string;
|
|
181
184
|
contextMenu: {
|
|
@@ -307,7 +310,10 @@ export declare const actionPaste: {
|
|
|
307
310
|
isSpeaking?: boolean | undefined;
|
|
308
311
|
isMuted?: boolean | undefined;
|
|
309
312
|
}>>;
|
|
310
|
-
|
|
313
|
+
stats: {
|
|
314
|
+
open: boolean;
|
|
315
|
+
panels: number;
|
|
316
|
+
};
|
|
311
317
|
currentChartType: import("../element/types").ChartType;
|
|
312
318
|
pasteDialog: {
|
|
313
319
|
shown: false;
|
|
@@ -329,7 +335,7 @@ export declare const actionPaste: {
|
|
|
329
335
|
followedBy: Set<import("../types").SocketId>;
|
|
330
336
|
};
|
|
331
337
|
} | {
|
|
332
|
-
storeAction:
|
|
338
|
+
storeAction: "none";
|
|
333
339
|
appState?: undefined;
|
|
334
340
|
}>;
|
|
335
341
|
keyTest: undefined;
|
|
@@ -476,7 +482,10 @@ export declare const actionCut: {
|
|
|
476
482
|
isSpeaking?: boolean | undefined;
|
|
477
483
|
isMuted?: boolean | undefined;
|
|
478
484
|
}>>;
|
|
479
|
-
|
|
485
|
+
stats: {
|
|
486
|
+
open: boolean;
|
|
487
|
+
panels: number;
|
|
488
|
+
};
|
|
480
489
|
currentChartType: import("../element/types").ChartType;
|
|
481
490
|
pasteDialog: {
|
|
482
491
|
shown: false;
|
|
@@ -497,7 +506,7 @@ export declare const actionCut: {
|
|
|
497
506
|
userToFollow: import("../types").UserToFollow | null;
|
|
498
507
|
followedBy: Set<import("../types").SocketId>;
|
|
499
508
|
};
|
|
500
|
-
storeAction:
|
|
509
|
+
storeAction: "capture";
|
|
501
510
|
} | {
|
|
502
511
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
503
512
|
appState: {
|
|
@@ -659,7 +668,10 @@ export declare const actionCut: {
|
|
|
659
668
|
isSpeaking?: boolean | undefined;
|
|
660
669
|
isMuted?: boolean | undefined;
|
|
661
670
|
}>>;
|
|
662
|
-
|
|
671
|
+
stats: {
|
|
672
|
+
open: boolean;
|
|
673
|
+
panels: number;
|
|
674
|
+
};
|
|
663
675
|
currentChartType: import("../element/types").ChartType;
|
|
664
676
|
pasteDialog: {
|
|
665
677
|
shown: false;
|
|
@@ -680,7 +692,7 @@ export declare const actionCut: {
|
|
|
680
692
|
userToFollow: import("../types").UserToFollow | null;
|
|
681
693
|
followedBy: Set<import("../types").SocketId>;
|
|
682
694
|
};
|
|
683
|
-
storeAction:
|
|
695
|
+
storeAction: "capture";
|
|
684
696
|
} | {
|
|
685
697
|
elements: import("../element/types").ExcalidrawElement[];
|
|
686
698
|
appState: {
|
|
@@ -807,7 +819,10 @@ export declare const actionCut: {
|
|
|
807
819
|
isSpeaking?: boolean | undefined;
|
|
808
820
|
isMuted?: boolean | undefined;
|
|
809
821
|
}>>;
|
|
810
|
-
|
|
822
|
+
stats: {
|
|
823
|
+
open: boolean;
|
|
824
|
+
panels: number;
|
|
825
|
+
};
|
|
811
826
|
currentChartType: import("../element/types").ChartType;
|
|
812
827
|
pasteDialog: {
|
|
813
828
|
shown: false;
|
|
@@ -828,7 +843,7 @@ export declare const actionCut: {
|
|
|
828
843
|
userToFollow: import("../types").UserToFollow | null;
|
|
829
844
|
followedBy: Set<import("../types").SocketId>;
|
|
830
845
|
};
|
|
831
|
-
storeAction:
|
|
846
|
+
storeAction: "none" | "capture";
|
|
832
847
|
};
|
|
833
848
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
834
849
|
} & {
|
|
@@ -842,7 +857,7 @@ export declare const actionCopyAsSvg: {
|
|
|
842
857
|
category: "element";
|
|
843
858
|
};
|
|
844
859
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
845
|
-
storeAction:
|
|
860
|
+
storeAction: "none";
|
|
846
861
|
appState?: undefined;
|
|
847
862
|
} | {
|
|
848
863
|
appState: {
|
|
@@ -976,7 +991,10 @@ export declare const actionCopyAsSvg: {
|
|
|
976
991
|
isSpeaking?: boolean | undefined;
|
|
977
992
|
isMuted?: boolean | undefined;
|
|
978
993
|
}>>;
|
|
979
|
-
|
|
994
|
+
stats: {
|
|
995
|
+
open: boolean;
|
|
996
|
+
panels: number;
|
|
997
|
+
};
|
|
980
998
|
currentChartType: import("../element/types").ChartType;
|
|
981
999
|
pasteDialog: {
|
|
982
1000
|
shown: false;
|
|
@@ -997,7 +1015,7 @@ export declare const actionCopyAsSvg: {
|
|
|
997
1015
|
userToFollow: import("../types").UserToFollow | null;
|
|
998
1016
|
followedBy: Set<import("../types").SocketId>;
|
|
999
1017
|
};
|
|
1000
|
-
storeAction:
|
|
1018
|
+
storeAction: "none";
|
|
1001
1019
|
}>;
|
|
1002
1020
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1003
1021
|
keywords: string[];
|
|
@@ -1012,7 +1030,7 @@ export declare const actionCopyAsPng: {
|
|
|
1012
1030
|
category: "element";
|
|
1013
1031
|
};
|
|
1014
1032
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1015
|
-
storeAction:
|
|
1033
|
+
storeAction: "none";
|
|
1016
1034
|
appState?: undefined;
|
|
1017
1035
|
} | {
|
|
1018
1036
|
appState: {
|
|
@@ -1146,7 +1164,10 @@ export declare const actionCopyAsPng: {
|
|
|
1146
1164
|
isSpeaking?: boolean | undefined;
|
|
1147
1165
|
isMuted?: boolean | undefined;
|
|
1148
1166
|
}>>;
|
|
1149
|
-
|
|
1167
|
+
stats: {
|
|
1168
|
+
open: boolean;
|
|
1169
|
+
panels: number;
|
|
1170
|
+
};
|
|
1150
1171
|
currentChartType: import("../element/types").ChartType;
|
|
1151
1172
|
pasteDialog: {
|
|
1152
1173
|
shown: false;
|
|
@@ -1167,7 +1188,7 @@ export declare const actionCopyAsPng: {
|
|
|
1167
1188
|
userToFollow: import("../types").UserToFollow | null;
|
|
1168
1189
|
followedBy: Set<import("../types").SocketId>;
|
|
1169
1190
|
};
|
|
1170
|
-
storeAction:
|
|
1191
|
+
storeAction: "none";
|
|
1171
1192
|
}>;
|
|
1172
1193
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1173
1194
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -1182,7 +1203,7 @@ export declare const copyText: {
|
|
|
1182
1203
|
category: "element";
|
|
1183
1204
|
};
|
|
1184
1205
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1185
|
-
storeAction:
|
|
1206
|
+
storeAction: "none";
|
|
1186
1207
|
};
|
|
1187
1208
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1188
1209
|
keywords: string[];
|