@excalidraw/element 0.18.0-9ba0f5d → 0.18.0-a52cd20
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/index.js +13141 -8453
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +20 -19
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/colors.d.ts +24 -2
- package/dist/types/common/src/constants.d.ts +70 -7
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +4 -0
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/common/src/utils.d.ts +10 -50
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +9 -5
- package/dist/types/element/src/align.d.ts +2 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/arrows/focus.d.ts +30 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +37 -17
- package/dist/types/element/src/bounds.d.ts +23 -8
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +7 -3
- package/dist/types/element/src/comparisons.d.ts +8 -5
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/delta.d.ts +23 -1
- package/dist/types/element/src/distribute.d.ts +3 -2
- package/dist/types/element/src/dragElements.d.ts +27 -0
- package/dist/types/element/src/duplicate.d.ts +64 -3
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +11 -7
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +11 -10
- package/dist/types/element/src/groups.d.ts +9 -9
- package/dist/types/element/src/index.d.ts +8 -1
- package/dist/types/element/src/linearElementEditor.d.ts +32 -10
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +53 -3
- package/dist/types/element/src/renderElement.d.ts +21 -7
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +11 -7
- package/dist/types/element/src/shape.d.ts +28 -2
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/sortElements.d.ts +10 -0
- package/dist/types/element/src/stickyNote.d.ts +183 -0
- package/dist/types/element/src/textElement.d.ts +21 -10
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/element/src/transform.d.ts +26 -7
- package/dist/types/element/src/typeChecks.d.ts +29 -27
- package/dist/types/element/src/types.d.ts +48 -9
- package/dist/types/element/src/utils.d.ts +19 -6
- package/dist/types/element/src/visualdebug.d.ts +1 -2
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +125 -53
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +85 -37
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +356 -1019
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +84 -36
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +42 -18
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +130 -55
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +182 -0
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +38 -18
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +85 -37
- package/dist/types/excalidraw/actions/actionExport.d.ts +133 -359
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +187 -236
- package/dist/types/excalidraw/actions/actionGroup.d.ts +100 -52
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +99 -21
- package/dist/types/excalidraw/actions/actionLink.d.ts +43 -19
- package/dist/types/excalidraw/actions/actionMenu.d.ts +38 -18
- package/dist/types/excalidraw/actions/actionProperties.d.ts +120 -56
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +46 -22
- package/dist/types/excalidraw/actions/actionStyles.d.ts +43 -18
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +57 -32
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +46 -23
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +195 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +43 -19
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +42 -23
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +43 -19
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +44 -20
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +43 -19
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/actions/index.d.ts +4 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +39 -13
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +6 -7
- package/dist/types/excalidraw/components/Actions.d.ts +17 -12
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +604 -89
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +51 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +113 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +26 -0
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
- package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
- package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +4 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +10 -0
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
- package/dist/types/excalidraw/components/Tools.d.ts +151 -0
- package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +30 -10
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +26 -3
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/data/blob.d.ts +107 -60
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +6 -7
- package/dist/types/excalidraw/data/json.d.ts +62 -30
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
- package/dist/types/excalidraw/scene/Renderer.d.ts +489 -20
- package/dist/types/excalidraw/scene/export.d.ts +3 -3
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +7 -4
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +619 -42
- package/dist/types/excalidraw/viewport.d.ts +302 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -3
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +36 -0
- package/dist/types/math/src/constants.d.ts +0 -1
- package/dist/types/math/src/curve.d.ts +23 -13
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/pca.d.ts +79 -0
- package/dist/types/math/src/point.d.ts +8 -2
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/export.d.ts +4 -3
- package/dist/types/utils/src/index.d.ts +1 -2
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +4 -3
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/charts.d.ts +0 -27
- package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -15
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
- package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
- package/dist/types/excalidraw/components/InitializeApp.d.ts +0 -10
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +0 -8
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +0 -24
- package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
- package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +0 -8
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -11
- package/dist/types/excalidraw/components/shapes.d.ts +0 -190
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -58
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +0 -19
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +0 -84
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/data/reconcile.d.ts +0 -7
- package/dist/types/excalidraw/index.d.ts +0 -46
- package/dist/types/excalidraw/polyfill.d.ts +0 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
export declare const actionToggleMidpointSnapping: {
|
|
2
|
+
name: "midpointSnapping";
|
|
3
|
+
label: string;
|
|
4
|
+
viewMode: false;
|
|
5
|
+
trackEvent: {
|
|
6
|
+
category: "canvas";
|
|
7
|
+
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
8
|
+
};
|
|
9
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
10
|
+
appState: {
|
|
11
|
+
isMidpointSnappingEnabled: boolean;
|
|
12
|
+
contextMenu: {
|
|
13
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
14
|
+
top: number;
|
|
15
|
+
left: number;
|
|
16
|
+
} | null;
|
|
17
|
+
showWelcomeScreen: boolean;
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
errorMessage: React.ReactNode;
|
|
20
|
+
activeEmbeddable: {
|
|
21
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
|
+
state: "hover" | "active";
|
|
23
|
+
} | null;
|
|
24
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
25
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
27
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
+
isBindingEnabled: boolean;
|
|
29
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
30
|
+
bindingPreference: "enabled" | "disabled";
|
|
31
|
+
showHints: boolean;
|
|
32
|
+
inputDevice: import("../types").InputDevice;
|
|
33
|
+
suggestedBinding: {
|
|
34
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
35
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
36
|
+
} | null;
|
|
37
|
+
textToolHover: {
|
|
38
|
+
type: "text";
|
|
39
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
40
|
+
} | {
|
|
41
|
+
type: "container";
|
|
42
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
43
|
+
} | {
|
|
44
|
+
type: "arrow";
|
|
45
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
46
|
+
anchor: "start" | "end" | "label";
|
|
47
|
+
} | null;
|
|
48
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
49
|
+
frameRendering: {
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
name: boolean;
|
|
52
|
+
outline: boolean;
|
|
53
|
+
clip: boolean;
|
|
54
|
+
};
|
|
55
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
56
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
57
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
58
|
+
activeTool: {
|
|
59
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
60
|
+
locked: boolean;
|
|
61
|
+
fromSelection: boolean;
|
|
62
|
+
} & import("../types").ActiveTool;
|
|
63
|
+
preferredSelectionTool: {
|
|
64
|
+
type: "selection" | "lasso";
|
|
65
|
+
initialized: boolean;
|
|
66
|
+
};
|
|
67
|
+
penMode: boolean;
|
|
68
|
+
penDetected: boolean;
|
|
69
|
+
exportBackground: boolean;
|
|
70
|
+
exportEmbedScene: boolean;
|
|
71
|
+
exportWithDarkMode: boolean;
|
|
72
|
+
exportScale: number;
|
|
73
|
+
currentItemStrokeColor: string;
|
|
74
|
+
currentItemStickynoteStrokeColor: string;
|
|
75
|
+
currentItemStickynoteBackgroundColor: string;
|
|
76
|
+
currentItemBackgroundColor: string;
|
|
77
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
78
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
79
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
80
|
+
currentItemRoughness: number;
|
|
81
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
82
|
+
currentItemOpacity: number;
|
|
83
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
84
|
+
currentItemFontSize: number;
|
|
85
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
86
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
87
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
88
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
89
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
90
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
91
|
+
viewBackgroundColor: string;
|
|
92
|
+
scrollX: number;
|
|
93
|
+
scrollY: number;
|
|
94
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
95
|
+
cursorButton: "up" | "down";
|
|
96
|
+
scrolledOutside: boolean;
|
|
97
|
+
name: string | null;
|
|
98
|
+
isResizing: boolean;
|
|
99
|
+
isRotating: boolean;
|
|
100
|
+
zoom: import("../types").Zoom;
|
|
101
|
+
openMenu: "canvas" | null;
|
|
102
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
103
|
+
openSidebar: {
|
|
104
|
+
name: import("../types").SidebarName;
|
|
105
|
+
tab?: import("../types").SidebarTabName;
|
|
106
|
+
} | null;
|
|
107
|
+
openDialog: null | {
|
|
108
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
109
|
+
} | {
|
|
110
|
+
name: "ttd";
|
|
111
|
+
tab: "text-to-diagram" | "mermaid";
|
|
112
|
+
} | {
|
|
113
|
+
name: "commandPalette";
|
|
114
|
+
} | {
|
|
115
|
+
name: "settings";
|
|
116
|
+
} | {
|
|
117
|
+
name: "elementLinkSelector";
|
|
118
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
119
|
+
} | {
|
|
120
|
+
name: "charts";
|
|
121
|
+
data: import("../charts").Spreadsheet;
|
|
122
|
+
rawText: string;
|
|
123
|
+
};
|
|
124
|
+
defaultSidebarDockedPreference: boolean;
|
|
125
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
126
|
+
selectedElementIds: Readonly<{
|
|
127
|
+
[id: string]: true;
|
|
128
|
+
}>;
|
|
129
|
+
hoveredElementIds: Readonly<{
|
|
130
|
+
[id: string]: true;
|
|
131
|
+
}>;
|
|
132
|
+
previousSelectedElementIds: {
|
|
133
|
+
[id: string]: true;
|
|
134
|
+
};
|
|
135
|
+
selectedElementsAreBeingDragged: boolean;
|
|
136
|
+
shouldCacheIgnoreZoom: boolean;
|
|
137
|
+
toast: {
|
|
138
|
+
message: React.ReactNode;
|
|
139
|
+
closable?: boolean;
|
|
140
|
+
duration?: number;
|
|
141
|
+
} | null;
|
|
142
|
+
zenModeEnabled: boolean;
|
|
143
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
144
|
+
gridSize: number;
|
|
145
|
+
gridStep: number;
|
|
146
|
+
gridModeEnabled: boolean;
|
|
147
|
+
viewModeEnabled: boolean;
|
|
148
|
+
selectedGroupIds: {
|
|
149
|
+
[groupId: string]: boolean;
|
|
150
|
+
};
|
|
151
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
152
|
+
width: number;
|
|
153
|
+
height: number;
|
|
154
|
+
offsetTop: number;
|
|
155
|
+
offsetLeft: number;
|
|
156
|
+
fileHandle: FileSystemFileHandle | null;
|
|
157
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
158
|
+
stats: {
|
|
159
|
+
open: boolean;
|
|
160
|
+
panels: number;
|
|
161
|
+
};
|
|
162
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
163
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
164
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
165
|
+
originSnapOffset: {
|
|
166
|
+
x: number;
|
|
167
|
+
y: number;
|
|
168
|
+
} | null;
|
|
169
|
+
objectsSnapModeEnabled: boolean;
|
|
170
|
+
isCropping: boolean;
|
|
171
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
172
|
+
searchMatches: Readonly<{
|
|
173
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
174
|
+
matches: readonly import("../types").SearchMatch[];
|
|
175
|
+
}> | null;
|
|
176
|
+
activeLockedId: string | null;
|
|
177
|
+
lockedMultiSelections: {
|
|
178
|
+
[groupId: string]: true;
|
|
179
|
+
};
|
|
180
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
181
|
+
colorTopPicks: {
|
|
182
|
+
elementStroke: readonly string[] | null;
|
|
183
|
+
elementBackground: readonly string[] | null;
|
|
184
|
+
bucketFill: readonly string[] | null;
|
|
185
|
+
stickyNoteStroke: readonly string[] | null;
|
|
186
|
+
stickyNoteBackground: readonly string[] | null;
|
|
187
|
+
};
|
|
188
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
189
|
+
};
|
|
190
|
+
captureUpdate: "NEVER";
|
|
191
|
+
};
|
|
192
|
+
checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
|
|
193
|
+
} & {
|
|
194
|
+
keyTest?: undefined;
|
|
195
|
+
};
|
|
@@ -28,8 +28,26 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
28
28
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
29
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
32
|
+
bindingPreference: "enabled" | "disabled";
|
|
33
|
+
isMidpointSnappingEnabled: boolean;
|
|
34
|
+
showHints: boolean;
|
|
35
|
+
inputDevice: import("../types").InputDevice;
|
|
36
|
+
suggestedBinding: {
|
|
37
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
38
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
39
|
+
} | null;
|
|
40
|
+
textToolHover: {
|
|
41
|
+
type: "text";
|
|
42
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
43
|
+
} | {
|
|
44
|
+
type: "container";
|
|
45
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
46
|
+
} | {
|
|
47
|
+
type: "arrow";
|
|
48
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
49
|
+
anchor: "start" | "end" | "label";
|
|
50
|
+
} | null;
|
|
33
51
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
52
|
frameRendering: {
|
|
35
53
|
enabled: boolean;
|
|
@@ -37,9 +55,9 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
37
55
|
outline: boolean;
|
|
38
56
|
clip: boolean;
|
|
39
57
|
};
|
|
40
|
-
editingFrame:
|
|
41
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
42
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
58
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
59
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
60
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
43
61
|
activeTool: {
|
|
44
62
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
63
|
locked: boolean;
|
|
@@ -56,11 +74,14 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
56
74
|
exportWithDarkMode: boolean;
|
|
57
75
|
exportScale: number;
|
|
58
76
|
currentItemStrokeColor: string;
|
|
77
|
+
currentItemStickynoteStrokeColor: string;
|
|
78
|
+
currentItemStickynoteBackgroundColor: string;
|
|
59
79
|
currentItemBackgroundColor: string;
|
|
60
80
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
61
|
-
|
|
81
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
62
82
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
63
83
|
currentItemRoughness: number;
|
|
84
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
64
85
|
currentItemOpacity: number;
|
|
65
86
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
66
87
|
currentItemFontSize: number;
|
|
@@ -73,6 +94,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
73
94
|
viewBackgroundColor: string;
|
|
74
95
|
scrollX: number;
|
|
75
96
|
scrollY: number;
|
|
97
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
76
98
|
cursorButton: "up" | "down";
|
|
77
99
|
scrolledOutside: boolean;
|
|
78
100
|
name: string | null;
|
|
@@ -97,6 +119,10 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
97
119
|
} | {
|
|
98
120
|
name: "elementLinkSelector";
|
|
99
121
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
122
|
+
} | {
|
|
123
|
+
name: "charts";
|
|
124
|
+
data: import("../charts").Spreadsheet;
|
|
125
|
+
rawText: string;
|
|
100
126
|
};
|
|
101
127
|
defaultSidebarDockedPreference: boolean;
|
|
102
128
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -112,7 +138,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
112
138
|
selectedElementsAreBeingDragged: boolean;
|
|
113
139
|
shouldCacheIgnoreZoom: boolean;
|
|
114
140
|
toast: {
|
|
115
|
-
message:
|
|
141
|
+
message: React.ReactNode;
|
|
116
142
|
closable?: boolean;
|
|
117
143
|
duration?: number;
|
|
118
144
|
} | null;
|
|
@@ -129,20 +155,12 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
129
155
|
height: number;
|
|
130
156
|
offsetTop: number;
|
|
131
157
|
offsetLeft: number;
|
|
132
|
-
fileHandle:
|
|
158
|
+
fileHandle: FileSystemFileHandle | null;
|
|
133
159
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
134
160
|
stats: {
|
|
135
161
|
open: boolean;
|
|
136
162
|
panels: number;
|
|
137
163
|
};
|
|
138
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
139
|
-
pasteDialog: {
|
|
140
|
-
shown: false;
|
|
141
|
-
data: null;
|
|
142
|
-
} | {
|
|
143
|
-
shown: true;
|
|
144
|
-
data: import("../charts").Spreadsheet;
|
|
145
|
-
};
|
|
146
164
|
showHyperlinkPopup: false | "info" | "editor";
|
|
147
165
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
148
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -150,8 +168,6 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
150
168
|
x: number;
|
|
151
169
|
y: number;
|
|
152
170
|
} | null;
|
|
153
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
154
|
-
followedBy: Set<import("../types").SocketId>;
|
|
155
171
|
isCropping: boolean;
|
|
156
172
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
157
173
|
searchMatches: Readonly<{
|
|
@@ -163,10 +179,18 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
163
179
|
[groupId: string]: true;
|
|
164
180
|
};
|
|
165
181
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
182
|
+
colorTopPicks: {
|
|
183
|
+
elementStroke: readonly string[] | null;
|
|
184
|
+
elementBackground: readonly string[] | null;
|
|
185
|
+
bucketFill: readonly string[] | null;
|
|
186
|
+
stickyNoteStroke: readonly string[] | null;
|
|
187
|
+
stickyNoteBackground: readonly string[] | null;
|
|
188
|
+
};
|
|
189
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
166
190
|
};
|
|
167
191
|
captureUpdate: "EVENTUALLY";
|
|
168
192
|
};
|
|
169
|
-
checked: (appState: Readonly<import("../types").
|
|
193
|
+
checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
|
|
170
194
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
171
195
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
172
196
|
} & {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { AppState } from "../types";
|
|
2
1
|
export declare const actionToggleSearchMenu: {
|
|
3
2
|
name: "searchMenu";
|
|
4
3
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,9 +7,9 @@ export declare const actionToggleSearchMenu: {
|
|
|
8
7
|
trackEvent: {
|
|
9
8
|
category: "search_menu";
|
|
10
9
|
action: string;
|
|
11
|
-
predicate: (appState: Readonly<AppState>) => boolean;
|
|
10
|
+
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
12
11
|
};
|
|
13
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
|
|
12
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
|
|
14
13
|
appState: {
|
|
15
14
|
openSidebar: {
|
|
16
15
|
name: "default";
|
|
@@ -34,8 +33,26 @@ export declare const actionToggleSearchMenu: {
|
|
|
34
33
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
35
34
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
36
35
|
isBindingEnabled: boolean;
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
37
|
+
bindingPreference: "enabled" | "disabled";
|
|
38
|
+
isMidpointSnappingEnabled: boolean;
|
|
39
|
+
showHints: boolean;
|
|
40
|
+
inputDevice: import("../types").InputDevice;
|
|
41
|
+
suggestedBinding: {
|
|
42
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
43
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
44
|
+
} | null;
|
|
45
|
+
textToolHover: {
|
|
46
|
+
type: "text";
|
|
47
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
48
|
+
} | {
|
|
49
|
+
type: "container";
|
|
50
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
51
|
+
} | {
|
|
52
|
+
type: "arrow";
|
|
53
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
54
|
+
anchor: "start" | "end" | "label";
|
|
55
|
+
} | null;
|
|
39
56
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
40
57
|
frameRendering: {
|
|
41
58
|
enabled: boolean;
|
|
@@ -43,9 +60,9 @@ export declare const actionToggleSearchMenu: {
|
|
|
43
60
|
outline: boolean;
|
|
44
61
|
clip: boolean;
|
|
45
62
|
};
|
|
46
|
-
editingFrame:
|
|
47
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
48
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
63
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
64
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
65
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
49
66
|
activeTool: {
|
|
50
67
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
68
|
locked: boolean;
|
|
@@ -62,11 +79,14 @@ export declare const actionToggleSearchMenu: {
|
|
|
62
79
|
exportWithDarkMode: boolean;
|
|
63
80
|
exportScale: number;
|
|
64
81
|
currentItemStrokeColor: string;
|
|
82
|
+
currentItemStickynoteStrokeColor: string;
|
|
83
|
+
currentItemStickynoteBackgroundColor: string;
|
|
65
84
|
currentItemBackgroundColor: string;
|
|
66
85
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
67
|
-
|
|
86
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
68
87
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
69
88
|
currentItemRoughness: number;
|
|
89
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
70
90
|
currentItemOpacity: number;
|
|
71
91
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
72
92
|
currentItemFontSize: number;
|
|
@@ -79,6 +99,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
79
99
|
viewBackgroundColor: string;
|
|
80
100
|
scrollX: number;
|
|
81
101
|
scrollY: number;
|
|
102
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
82
103
|
cursorButton: "up" | "down";
|
|
83
104
|
scrolledOutside: boolean;
|
|
84
105
|
name: string | null;
|
|
@@ -101,7 +122,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
101
122
|
selectedElementsAreBeingDragged: boolean;
|
|
102
123
|
shouldCacheIgnoreZoom: boolean;
|
|
103
124
|
toast: {
|
|
104
|
-
message:
|
|
125
|
+
message: React.ReactNode;
|
|
105
126
|
closable?: boolean;
|
|
106
127
|
duration?: number;
|
|
107
128
|
} | null;
|
|
@@ -119,20 +140,12 @@ export declare const actionToggleSearchMenu: {
|
|
|
119
140
|
height: number;
|
|
120
141
|
offsetTop: number;
|
|
121
142
|
offsetLeft: number;
|
|
122
|
-
fileHandle:
|
|
143
|
+
fileHandle: FileSystemFileHandle | null;
|
|
123
144
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
124
145
|
stats: {
|
|
125
146
|
open: boolean;
|
|
126
147
|
panels: number;
|
|
127
148
|
};
|
|
128
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
129
|
-
pasteDialog: {
|
|
130
|
-
shown: false;
|
|
131
|
-
data: null;
|
|
132
|
-
} | {
|
|
133
|
-
shown: true;
|
|
134
|
-
data: import("../charts").Spreadsheet;
|
|
135
|
-
};
|
|
136
149
|
showHyperlinkPopup: false | "info" | "editor";
|
|
137
150
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
138
151
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -141,8 +154,6 @@ export declare const actionToggleSearchMenu: {
|
|
|
141
154
|
y: number;
|
|
142
155
|
} | null;
|
|
143
156
|
objectsSnapModeEnabled: boolean;
|
|
144
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
145
|
-
followedBy: Set<import("../types").SocketId>;
|
|
146
157
|
isCropping: boolean;
|
|
147
158
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
148
159
|
searchMatches: Readonly<{
|
|
@@ -154,11 +165,19 @@ export declare const actionToggleSearchMenu: {
|
|
|
154
165
|
[groupId: string]: true;
|
|
155
166
|
};
|
|
156
167
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
168
|
+
colorTopPicks: {
|
|
169
|
+
elementStroke: readonly string[] | null;
|
|
170
|
+
elementBackground: readonly string[] | null;
|
|
171
|
+
bucketFill: readonly string[] | null;
|
|
172
|
+
stickyNoteStroke: readonly string[] | null;
|
|
173
|
+
stickyNoteBackground: readonly string[] | null;
|
|
174
|
+
};
|
|
175
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
157
176
|
};
|
|
158
177
|
captureUpdate: "EVENTUALLY";
|
|
159
178
|
};
|
|
160
|
-
checked: (appState:
|
|
161
|
-
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
179
|
+
checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
|
|
180
|
+
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
162
181
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
163
182
|
} & {
|
|
164
183
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const actionToggleShapeSwitch: {
|
|
|
12
12
|
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
|
|
13
13
|
captureUpdate: "NEVER";
|
|
14
14
|
};
|
|
15
|
-
checked: (appState: Readonly<import("../types").
|
|
15
|
+
checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
|
|
16
16
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
@@ -30,8 +30,26 @@ export declare const actionToggleStats: {
|
|
|
30
30
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
31
31
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
32
|
isBindingEnabled: boolean;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
34
|
+
bindingPreference: "enabled" | "disabled";
|
|
35
|
+
isMidpointSnappingEnabled: boolean;
|
|
36
|
+
showHints: boolean;
|
|
37
|
+
inputDevice: import("../types").InputDevice;
|
|
38
|
+
suggestedBinding: {
|
|
39
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
40
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
41
|
+
} | null;
|
|
42
|
+
textToolHover: {
|
|
43
|
+
type: "text";
|
|
44
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
45
|
+
} | {
|
|
46
|
+
type: "container";
|
|
47
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
48
|
+
} | {
|
|
49
|
+
type: "arrow";
|
|
50
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
51
|
+
anchor: "start" | "end" | "label";
|
|
52
|
+
} | null;
|
|
35
53
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
36
54
|
frameRendering: {
|
|
37
55
|
enabled: boolean;
|
|
@@ -39,9 +57,9 @@ export declare const actionToggleStats: {
|
|
|
39
57
|
outline: boolean;
|
|
40
58
|
clip: boolean;
|
|
41
59
|
};
|
|
42
|
-
editingFrame:
|
|
43
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
44
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
60
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
61
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
62
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
45
63
|
activeTool: {
|
|
46
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
47
65
|
locked: boolean;
|
|
@@ -58,11 +76,14 @@ export declare const actionToggleStats: {
|
|
|
58
76
|
exportWithDarkMode: boolean;
|
|
59
77
|
exportScale: number;
|
|
60
78
|
currentItemStrokeColor: string;
|
|
79
|
+
currentItemStickynoteStrokeColor: string;
|
|
80
|
+
currentItemStickynoteBackgroundColor: string;
|
|
61
81
|
currentItemBackgroundColor: string;
|
|
62
82
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
63
|
-
|
|
83
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
64
84
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
65
85
|
currentItemRoughness: number;
|
|
86
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
66
87
|
currentItemOpacity: number;
|
|
67
88
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
68
89
|
currentItemFontSize: number;
|
|
@@ -75,6 +96,7 @@ export declare const actionToggleStats: {
|
|
|
75
96
|
viewBackgroundColor: string;
|
|
76
97
|
scrollX: number;
|
|
77
98
|
scrollY: number;
|
|
99
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
78
100
|
cursorButton: "up" | "down";
|
|
79
101
|
scrolledOutside: boolean;
|
|
80
102
|
name: string | null;
|
|
@@ -99,6 +121,10 @@ export declare const actionToggleStats: {
|
|
|
99
121
|
} | {
|
|
100
122
|
name: "elementLinkSelector";
|
|
101
123
|
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
124
|
+
} | {
|
|
125
|
+
name: "charts";
|
|
126
|
+
data: import("../charts").Spreadsheet;
|
|
127
|
+
rawText: string;
|
|
102
128
|
};
|
|
103
129
|
defaultSidebarDockedPreference: boolean;
|
|
104
130
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -114,7 +140,7 @@ export declare const actionToggleStats: {
|
|
|
114
140
|
selectedElementsAreBeingDragged: boolean;
|
|
115
141
|
shouldCacheIgnoreZoom: boolean;
|
|
116
142
|
toast: {
|
|
117
|
-
message:
|
|
143
|
+
message: React.ReactNode;
|
|
118
144
|
closable?: boolean;
|
|
119
145
|
duration?: number;
|
|
120
146
|
} | null;
|
|
@@ -132,16 +158,8 @@ export declare const actionToggleStats: {
|
|
|
132
158
|
height: number;
|
|
133
159
|
offsetTop: number;
|
|
134
160
|
offsetLeft: number;
|
|
135
|
-
fileHandle:
|
|
161
|
+
fileHandle: FileSystemFileHandle | null;
|
|
136
162
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
137
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
138
|
-
pasteDialog: {
|
|
139
|
-
shown: false;
|
|
140
|
-
data: null;
|
|
141
|
-
} | {
|
|
142
|
-
shown: true;
|
|
143
|
-
data: import("../charts").Spreadsheet;
|
|
144
|
-
};
|
|
145
163
|
showHyperlinkPopup: false | "info" | "editor";
|
|
146
164
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
147
165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -150,8 +168,6 @@ export declare const actionToggleStats: {
|
|
|
150
168
|
y: number;
|
|
151
169
|
} | null;
|
|
152
170
|
objectsSnapModeEnabled: boolean;
|
|
153
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
154
|
-
followedBy: Set<import("../types").SocketId>;
|
|
155
171
|
isCropping: boolean;
|
|
156
172
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
157
173
|
searchMatches: Readonly<{
|
|
@@ -163,10 +179,18 @@ export declare const actionToggleStats: {
|
|
|
163
179
|
[groupId: string]: true;
|
|
164
180
|
};
|
|
165
181
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
182
|
+
colorTopPicks: {
|
|
183
|
+
elementStroke: readonly string[] | null;
|
|
184
|
+
elementBackground: readonly string[] | null;
|
|
185
|
+
bucketFill: readonly string[] | null;
|
|
186
|
+
stickyNoteStroke: readonly string[] | null;
|
|
187
|
+
stickyNoteBackground: readonly string[] | null;
|
|
188
|
+
};
|
|
189
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
166
190
|
};
|
|
167
191
|
captureUpdate: "EVENTUALLY";
|
|
168
192
|
};
|
|
169
|
-
checked: (appState: Readonly<import("../types").
|
|
193
|
+
checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
|
|
170
194
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
171
195
|
} & {
|
|
172
196
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|