@excalidraw/common 0.18.0-b1c6bfc → 0.18.0-b55c9ee
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 +239 -104
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/colors.d.ts +23 -1
- package/dist/types/common/src/constants.d.ts +70 -7
- package/dist/types/common/src/keys.d.ts +6 -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 +13 -44
- package/dist/types/element/src/Scene.d.ts +7 -5
- package/dist/types/element/src/align.d.ts +5 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrows/focus.d.ts +5 -2
- package/dist/types/element/src/binding.d.ts +90 -13
- package/dist/types/element/src/bounds.d.ts +28 -7
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +21 -5
- 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/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- package/dist/types/element/src/distribute.d.ts +5 -2
- package/dist/types/element/src/dragElements.d.ts +34 -2
- package/dist/types/element/src/duplicate.d.ts +64 -3
- package/dist/types/element/src/elbowArrow.d.ts +5 -0
- package/dist/types/element/src/embeddable.d.ts +3 -2
- package/dist/types/element/src/flowchart.d.ts +9 -11
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +30 -11
- package/dist/types/element/src/groups.d.ts +10 -15
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +7 -1
- package/dist/types/element/src/linearElementEditor.d.ts +31 -11
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +55 -3
- package/dist/types/element/src/renderElement.d.ts +31 -7
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +14 -4
- package/dist/types/element/src/selection.d.ts +7 -13
- package/dist/types/element/src/shape.d.ts +29 -1
- 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 +191 -0
- package/dist/types/element/src/textElement.d.ts +22 -10
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +3 -2
- package/dist/types/element/src/transform.d.ts +31 -8
- package/dist/types/element/src/typeChecks.d.ts +29 -27
- package/dist/types/element/src/types.d.ts +43 -7
- package/dist/types/element/src/utils.d.ts +15 -4
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +95 -18
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +78 -204
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +299 -951
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +66 -12
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +33 -6
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -521
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +34 -7
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +33 -6
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +67 -13
- package/dist/types/excalidraw/actions/actionExport.d.ts +74 -20
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +129 -652
- package/dist/types/excalidraw/actions/actionGroup.d.ts +81 -27
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +88 -9
- package/dist/types/excalidraw/actions/actionLink.d.ts +34 -7
- package/dist/types/excalidraw/actions/actionMenu.d.ts +33 -6
- package/dist/types/excalidraw/actions/actionProperties.d.ts +104 -34
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +38 -11
- package/dist/types/excalidraw/actions/actionStyles.d.ts +30 -7
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +34 -7
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +37 -11
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +34 -7
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +205 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +34 -7
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +37 -11
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +49 -19
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +34 -7
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +35 -8
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +34 -7
- 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 +36 -12
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
- package/dist/types/excalidraw/charts/index.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +26 -13
- 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.clipboard.d.ts +59 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +335 -111
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
- package/dist/types/excalidraw/components/App.text.d.ts +194 -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 +133 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +39 -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/ConvertElementTypePopup.d.ts +4 -3
- 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/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/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- 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/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- 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 +4 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
- package/dist/types/excalidraw/components/Toast.d.ts +12 -1
- 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 +26 -2
- 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 +3 -2
- 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/footer/Footer.d.ts +5 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
- package/dist/types/excalidraw/components/icons.d.ts +8 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
- 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/EditorLocalStorage.d.ts +8 -4
- package/dist/types/excalidraw/data/blob.d.ts +82 -28
- package/dist/types/excalidraw/data/index.d.ts +7 -7
- package/dist/types/excalidraw/data/json.d.ts +47 -20
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- 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 +12 -8
- package/dist/types/excalidraw/history.d.ts +10 -4
- 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/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
- package/dist/types/excalidraw/scene/export.d.ts +344 -21
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +30 -5
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +612 -29
- package/dist/types/excalidraw/viewport.d.ts +307 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -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 +19 -12
- 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 +1 -0
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/utils/src/index.d.ts +4 -3
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- 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/MobileToolBar.d.ts +0 -10
- package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
- package/dist/types/excalidraw/components/shapes.d.ts +0 -263
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- 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/export.d.ts +0 -35
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
|
-
import type { AppState, Offsets } from "../types";
|
|
1
|
+
import type { AppState } from "../types";
|
|
4
2
|
export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
|
|
5
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
3
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
6
4
|
};
|
|
7
5
|
export declare const actionClearCanvas: {
|
|
8
6
|
name: "clearCanvas";
|
|
@@ -11,7 +9,7 @@ export declare const actionClearCanvas: {
|
|
|
11
9
|
trackEvent: {
|
|
12
10
|
category: "canvas";
|
|
13
11
|
};
|
|
14
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
12
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
15
13
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
16
14
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
17
15
|
appState: {
|
|
@@ -28,16 +26,27 @@ export declare const actionClearCanvas: {
|
|
|
28
26
|
open: boolean;
|
|
29
27
|
panels: number;
|
|
30
28
|
};
|
|
29
|
+
colorTopPicks: {
|
|
30
|
+
elementStroke: readonly string[] | null;
|
|
31
|
+
elementBackground: readonly string[] | null;
|
|
32
|
+
bucketFill: readonly string[] | null;
|
|
33
|
+
stickyNoteStroke: readonly string[] | null;
|
|
34
|
+
stickyNoteBackground: readonly string[] | null;
|
|
35
|
+
};
|
|
36
|
+
fontTopPicks: readonly number[] | null;
|
|
31
37
|
activeTool: {
|
|
32
38
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
33
39
|
locked: boolean;
|
|
34
40
|
fromSelection: boolean;
|
|
35
41
|
} & import("../types").ActiveTool;
|
|
42
|
+
zoom: import("../types").Zoom;
|
|
36
43
|
viewModeEnabled: boolean;
|
|
37
44
|
zenModeEnabled: boolean;
|
|
38
45
|
objectsSnapModeEnabled: boolean;
|
|
39
46
|
name: string | null;
|
|
40
47
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
48
|
+
scrollX: number;
|
|
49
|
+
scrollY: number;
|
|
41
50
|
contextMenu: {
|
|
42
51
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
43
52
|
top: number;
|
|
@@ -58,11 +67,23 @@ export declare const actionClearCanvas: {
|
|
|
58
67
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
59
68
|
bindingPreference: "enabled" | "disabled";
|
|
60
69
|
isMidpointSnappingEnabled: boolean;
|
|
61
|
-
|
|
70
|
+
showHints: boolean;
|
|
71
|
+
inputDevice: import("../types").InputDevice;
|
|
62
72
|
suggestedBinding: {
|
|
63
73
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
64
74
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
65
75
|
} | null;
|
|
76
|
+
textToolHover: {
|
|
77
|
+
type: "text";
|
|
78
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
79
|
+
} | {
|
|
80
|
+
type: "container";
|
|
81
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
82
|
+
} | {
|
|
83
|
+
type: "arrow";
|
|
84
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
85
|
+
anchor: "start" | "end" | "label";
|
|
86
|
+
} | null;
|
|
66
87
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
67
88
|
frameRendering: {
|
|
68
89
|
enabled: boolean;
|
|
@@ -70,8 +91,8 @@ export declare const actionClearCanvas: {
|
|
|
70
91
|
outline: boolean;
|
|
71
92
|
clip: boolean;
|
|
72
93
|
};
|
|
73
|
-
editingFrame:
|
|
74
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
94
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
95
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
75
96
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
76
97
|
preferredSelectionTool: {
|
|
77
98
|
type: "selection" | "lasso";
|
|
@@ -80,11 +101,14 @@ export declare const actionClearCanvas: {
|
|
|
80
101
|
exportWithDarkMode: boolean;
|
|
81
102
|
exportScale: number;
|
|
82
103
|
currentItemStrokeColor: string;
|
|
104
|
+
currentItemStickynoteStrokeColor: string;
|
|
105
|
+
currentItemStickynoteBackgroundColor: string;
|
|
83
106
|
currentItemBackgroundColor: string;
|
|
84
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
85
|
-
|
|
86
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
107
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
108
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
109
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
87
110
|
currentItemRoughness: number;
|
|
111
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
88
112
|
currentItemOpacity: number;
|
|
89
113
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
90
114
|
currentItemFontSize: number;
|
|
@@ -94,13 +118,11 @@ export declare const actionClearCanvas: {
|
|
|
94
118
|
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
95
119
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
96
120
|
viewBackgroundColor: string;
|
|
97
|
-
|
|
98
|
-
scrollY: number;
|
|
121
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
99
122
|
cursorButton: "up" | "down";
|
|
100
123
|
scrolledOutside: boolean;
|
|
101
124
|
isResizing: boolean;
|
|
102
125
|
isRotating: boolean;
|
|
103
|
-
zoom: import("../types").Zoom;
|
|
104
126
|
openMenu: "canvas" | null;
|
|
105
127
|
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
106
128
|
openSidebar: {
|
|
@@ -118,7 +140,7 @@ export declare const actionClearCanvas: {
|
|
|
118
140
|
name: "settings";
|
|
119
141
|
} | {
|
|
120
142
|
name: "elementLinkSelector";
|
|
121
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
143
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
122
144
|
} | {
|
|
123
145
|
name: "charts";
|
|
124
146
|
data: import("../charts").Spreadsheet;
|
|
@@ -141,7 +163,12 @@ export declare const actionClearCanvas: {
|
|
|
141
163
|
message: React.ReactNode;
|
|
142
164
|
closable?: boolean;
|
|
143
165
|
duration?: number;
|
|
166
|
+
action?: {
|
|
167
|
+
label: string;
|
|
168
|
+
onClick: () => void;
|
|
169
|
+
};
|
|
144
170
|
} | null;
|
|
171
|
+
minimapEnabled: boolean;
|
|
145
172
|
selectedGroupIds: {
|
|
146
173
|
[groupId: string]: boolean;
|
|
147
174
|
};
|
|
@@ -155,12 +182,10 @@ export declare const actionClearCanvas: {
|
|
|
155
182
|
x: number;
|
|
156
183
|
y: number;
|
|
157
184
|
} | null;
|
|
158
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
159
|
-
followedBy: Set<import("../types").SocketId>;
|
|
160
185
|
isCropping: boolean;
|
|
161
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
186
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
162
187
|
searchMatches: Readonly<{
|
|
163
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
188
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
164
189
|
matches: readonly import("../types").SearchMatch[];
|
|
165
190
|
}> | null;
|
|
166
191
|
activeLockedId: string | null;
|
|
@@ -178,18 +203,17 @@ export declare const actionZoomIn: {
|
|
|
178
203
|
name: "zoomIn";
|
|
179
204
|
label: string;
|
|
180
205
|
viewMode: true;
|
|
206
|
+
navigation: true;
|
|
181
207
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
182
208
|
trackEvent: {
|
|
183
209
|
category: "canvas";
|
|
184
210
|
};
|
|
185
|
-
|
|
211
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
212
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, anchor: unknown, app: import("../types").AppClassProperties) => {
|
|
186
213
|
appState: {
|
|
187
|
-
|
|
214
|
+
zoom: import("../types").Zoom;
|
|
188
215
|
scrollX: number;
|
|
189
216
|
scrollY: number;
|
|
190
|
-
zoom: {
|
|
191
|
-
value: import("../types").NormalizedZoomValue;
|
|
192
|
-
};
|
|
193
217
|
contextMenu: {
|
|
194
218
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
195
219
|
top: number;
|
|
@@ -210,11 +234,23 @@ export declare const actionZoomIn: {
|
|
|
210
234
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
211
235
|
bindingPreference: "enabled" | "disabled";
|
|
212
236
|
isMidpointSnappingEnabled: boolean;
|
|
213
|
-
|
|
237
|
+
showHints: boolean;
|
|
238
|
+
inputDevice: import("../types").InputDevice;
|
|
214
239
|
suggestedBinding: {
|
|
215
240
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
216
241
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
217
242
|
} | null;
|
|
243
|
+
textToolHover: {
|
|
244
|
+
type: "text";
|
|
245
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
246
|
+
} | {
|
|
247
|
+
type: "container";
|
|
248
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
249
|
+
} | {
|
|
250
|
+
type: "arrow";
|
|
251
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
252
|
+
anchor: "start" | "end" | "label";
|
|
253
|
+
} | null;
|
|
218
254
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
219
255
|
frameRendering: {
|
|
220
256
|
enabled: boolean;
|
|
@@ -222,8 +258,8 @@ export declare const actionZoomIn: {
|
|
|
222
258
|
outline: boolean;
|
|
223
259
|
clip: boolean;
|
|
224
260
|
};
|
|
225
|
-
editingFrame:
|
|
226
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
261
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
262
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
227
263
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
228
264
|
activeTool: {
|
|
229
265
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -241,11 +277,14 @@ export declare const actionZoomIn: {
|
|
|
241
277
|
exportWithDarkMode: boolean;
|
|
242
278
|
exportScale: number;
|
|
243
279
|
currentItemStrokeColor: string;
|
|
280
|
+
currentItemStickynoteStrokeColor: string;
|
|
281
|
+
currentItemStickynoteBackgroundColor: string;
|
|
244
282
|
currentItemBackgroundColor: string;
|
|
245
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
246
|
-
|
|
247
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
283
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
284
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
285
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
248
286
|
currentItemRoughness: number;
|
|
287
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
249
288
|
currentItemOpacity: number;
|
|
250
289
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
251
290
|
currentItemFontSize: number;
|
|
@@ -256,6 +295,7 @@ export declare const actionZoomIn: {
|
|
|
256
295
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
257
296
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
258
297
|
viewBackgroundColor: string;
|
|
298
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
259
299
|
cursorButton: "up" | "down";
|
|
260
300
|
scrolledOutside: boolean;
|
|
261
301
|
name: string | null;
|
|
@@ -278,7 +318,7 @@ export declare const actionZoomIn: {
|
|
|
278
318
|
name: "settings";
|
|
279
319
|
} | {
|
|
280
320
|
name: "elementLinkSelector";
|
|
281
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
321
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
282
322
|
} | {
|
|
283
323
|
name: "charts";
|
|
284
324
|
data: import("../charts").Spreadsheet;
|
|
@@ -301,8 +341,13 @@ export declare const actionZoomIn: {
|
|
|
301
341
|
message: React.ReactNode;
|
|
302
342
|
closable?: boolean;
|
|
303
343
|
duration?: number;
|
|
344
|
+
action?: {
|
|
345
|
+
label: string;
|
|
346
|
+
onClick: () => void;
|
|
347
|
+
};
|
|
304
348
|
} | null;
|
|
305
349
|
zenModeEnabled: boolean;
|
|
350
|
+
minimapEnabled: boolean;
|
|
306
351
|
theme: import("@excalidraw/element/types").Theme;
|
|
307
352
|
gridSize: number;
|
|
308
353
|
gridStep: number;
|
|
@@ -330,11 +375,10 @@ export declare const actionZoomIn: {
|
|
|
330
375
|
y: number;
|
|
331
376
|
} | null;
|
|
332
377
|
objectsSnapModeEnabled: boolean;
|
|
333
|
-
followedBy: Set<import("../types").SocketId>;
|
|
334
378
|
isCropping: boolean;
|
|
335
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
379
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
336
380
|
searchMatches: Readonly<{
|
|
337
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
381
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
338
382
|
matches: readonly import("../types").SearchMatch[];
|
|
339
383
|
}> | null;
|
|
340
384
|
activeLockedId: string | null;
|
|
@@ -342,10 +386,18 @@ export declare const actionZoomIn: {
|
|
|
342
386
|
[groupId: string]: true;
|
|
343
387
|
};
|
|
344
388
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
389
|
+
colorTopPicks: {
|
|
390
|
+
elementStroke: readonly string[] | null;
|
|
391
|
+
elementBackground: readonly string[] | null;
|
|
392
|
+
bucketFill: readonly string[] | null;
|
|
393
|
+
stickyNoteStroke: readonly string[] | null;
|
|
394
|
+
stickyNoteBackground: readonly string[] | null;
|
|
395
|
+
};
|
|
396
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
345
397
|
};
|
|
346
398
|
captureUpdate: "EVENTUALLY";
|
|
347
399
|
};
|
|
348
|
-
PanelComponent: ({ updateData
|
|
400
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
349
401
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
350
402
|
} & {
|
|
351
403
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -355,17 +407,16 @@ export declare const actionZoomOut: {
|
|
|
355
407
|
label: string;
|
|
356
408
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
357
409
|
viewMode: true;
|
|
410
|
+
navigation: true;
|
|
358
411
|
trackEvent: {
|
|
359
412
|
category: "canvas";
|
|
360
413
|
};
|
|
361
|
-
|
|
414
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
415
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, anchor: unknown, app: import("../types").AppClassProperties) => {
|
|
362
416
|
appState: {
|
|
363
|
-
|
|
417
|
+
zoom: import("../types").Zoom;
|
|
364
418
|
scrollX: number;
|
|
365
419
|
scrollY: number;
|
|
366
|
-
zoom: {
|
|
367
|
-
value: import("../types").NormalizedZoomValue;
|
|
368
|
-
};
|
|
369
420
|
contextMenu: {
|
|
370
421
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
371
422
|
top: number;
|
|
@@ -386,11 +437,23 @@ export declare const actionZoomOut: {
|
|
|
386
437
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
387
438
|
bindingPreference: "enabled" | "disabled";
|
|
388
439
|
isMidpointSnappingEnabled: boolean;
|
|
389
|
-
|
|
440
|
+
showHints: boolean;
|
|
441
|
+
inputDevice: import("../types").InputDevice;
|
|
390
442
|
suggestedBinding: {
|
|
391
443
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
392
444
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
393
445
|
} | null;
|
|
446
|
+
textToolHover: {
|
|
447
|
+
type: "text";
|
|
448
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
449
|
+
} | {
|
|
450
|
+
type: "container";
|
|
451
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
452
|
+
} | {
|
|
453
|
+
type: "arrow";
|
|
454
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
455
|
+
anchor: "start" | "end" | "label";
|
|
456
|
+
} | null;
|
|
394
457
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
395
458
|
frameRendering: {
|
|
396
459
|
enabled: boolean;
|
|
@@ -398,8 +461,8 @@ export declare const actionZoomOut: {
|
|
|
398
461
|
outline: boolean;
|
|
399
462
|
clip: boolean;
|
|
400
463
|
};
|
|
401
|
-
editingFrame:
|
|
402
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
464
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
465
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
403
466
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
404
467
|
activeTool: {
|
|
405
468
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -417,11 +480,14 @@ export declare const actionZoomOut: {
|
|
|
417
480
|
exportWithDarkMode: boolean;
|
|
418
481
|
exportScale: number;
|
|
419
482
|
currentItemStrokeColor: string;
|
|
483
|
+
currentItemStickynoteStrokeColor: string;
|
|
484
|
+
currentItemStickynoteBackgroundColor: string;
|
|
420
485
|
currentItemBackgroundColor: string;
|
|
421
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
422
|
-
|
|
423
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
486
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
487
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
488
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
424
489
|
currentItemRoughness: number;
|
|
490
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
425
491
|
currentItemOpacity: number;
|
|
426
492
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
427
493
|
currentItemFontSize: number;
|
|
@@ -432,6 +498,7 @@ export declare const actionZoomOut: {
|
|
|
432
498
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
433
499
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
434
500
|
viewBackgroundColor: string;
|
|
501
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
435
502
|
cursorButton: "up" | "down";
|
|
436
503
|
scrolledOutside: boolean;
|
|
437
504
|
name: string | null;
|
|
@@ -454,7 +521,7 @@ export declare const actionZoomOut: {
|
|
|
454
521
|
name: "settings";
|
|
455
522
|
} | {
|
|
456
523
|
name: "elementLinkSelector";
|
|
457
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
524
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
458
525
|
} | {
|
|
459
526
|
name: "charts";
|
|
460
527
|
data: import("../charts").Spreadsheet;
|
|
@@ -477,8 +544,13 @@ export declare const actionZoomOut: {
|
|
|
477
544
|
message: React.ReactNode;
|
|
478
545
|
closable?: boolean;
|
|
479
546
|
duration?: number;
|
|
547
|
+
action?: {
|
|
548
|
+
label: string;
|
|
549
|
+
onClick: () => void;
|
|
550
|
+
};
|
|
480
551
|
} | null;
|
|
481
552
|
zenModeEnabled: boolean;
|
|
553
|
+
minimapEnabled: boolean;
|
|
482
554
|
theme: import("@excalidraw/element/types").Theme;
|
|
483
555
|
gridSize: number;
|
|
484
556
|
gridStep: number;
|
|
@@ -506,11 +578,10 @@ export declare const actionZoomOut: {
|
|
|
506
578
|
y: number;
|
|
507
579
|
} | null;
|
|
508
580
|
objectsSnapModeEnabled: boolean;
|
|
509
|
-
followedBy: Set<import("../types").SocketId>;
|
|
510
581
|
isCropping: boolean;
|
|
511
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
582
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
512
583
|
searchMatches: Readonly<{
|
|
513
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
584
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
514
585
|
matches: readonly import("../types").SearchMatch[];
|
|
515
586
|
}> | null;
|
|
516
587
|
activeLockedId: string | null;
|
|
@@ -518,10 +589,18 @@ export declare const actionZoomOut: {
|
|
|
518
589
|
[groupId: string]: true;
|
|
519
590
|
};
|
|
520
591
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
592
|
+
colorTopPicks: {
|
|
593
|
+
elementStroke: readonly string[] | null;
|
|
594
|
+
elementBackground: readonly string[] | null;
|
|
595
|
+
bucketFill: readonly string[] | null;
|
|
596
|
+
stickyNoteStroke: readonly string[] | null;
|
|
597
|
+
stickyNoteBackground: readonly string[] | null;
|
|
598
|
+
};
|
|
599
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
521
600
|
};
|
|
522
601
|
captureUpdate: "EVENTUALLY";
|
|
523
602
|
};
|
|
524
|
-
PanelComponent: ({ updateData
|
|
603
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
525
604
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
526
605
|
} & {
|
|
527
606
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -531,17 +610,16 @@ export declare const actionResetZoom: {
|
|
|
531
610
|
label: string;
|
|
532
611
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
533
612
|
viewMode: true;
|
|
613
|
+
navigation: true;
|
|
534
614
|
trackEvent: {
|
|
535
615
|
category: "canvas";
|
|
536
616
|
};
|
|
537
|
-
|
|
617
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
618
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, anchor: unknown, app: import("../types").AppClassProperties) => {
|
|
538
619
|
appState: {
|
|
539
|
-
|
|
620
|
+
zoom: import("../types").Zoom;
|
|
540
621
|
scrollX: number;
|
|
541
622
|
scrollY: number;
|
|
542
|
-
zoom: {
|
|
543
|
-
value: import("../types").NormalizedZoomValue;
|
|
544
|
-
};
|
|
545
623
|
contextMenu: {
|
|
546
624
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
547
625
|
top: number;
|
|
@@ -562,11 +640,23 @@ export declare const actionResetZoom: {
|
|
|
562
640
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
563
641
|
bindingPreference: "enabled" | "disabled";
|
|
564
642
|
isMidpointSnappingEnabled: boolean;
|
|
565
|
-
|
|
643
|
+
showHints: boolean;
|
|
644
|
+
inputDevice: import("../types").InputDevice;
|
|
566
645
|
suggestedBinding: {
|
|
567
646
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
568
647
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
569
648
|
} | null;
|
|
649
|
+
textToolHover: {
|
|
650
|
+
type: "text";
|
|
651
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
652
|
+
} | {
|
|
653
|
+
type: "container";
|
|
654
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
655
|
+
} | {
|
|
656
|
+
type: "arrow";
|
|
657
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
658
|
+
anchor: "start" | "end" | "label";
|
|
659
|
+
} | null;
|
|
570
660
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
571
661
|
frameRendering: {
|
|
572
662
|
enabled: boolean;
|
|
@@ -574,8 +664,8 @@ export declare const actionResetZoom: {
|
|
|
574
664
|
outline: boolean;
|
|
575
665
|
clip: boolean;
|
|
576
666
|
};
|
|
577
|
-
editingFrame:
|
|
578
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
667
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
668
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
579
669
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
580
670
|
activeTool: {
|
|
581
671
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -593,11 +683,14 @@ export declare const actionResetZoom: {
|
|
|
593
683
|
exportWithDarkMode: boolean;
|
|
594
684
|
exportScale: number;
|
|
595
685
|
currentItemStrokeColor: string;
|
|
686
|
+
currentItemStickynoteStrokeColor: string;
|
|
687
|
+
currentItemStickynoteBackgroundColor: string;
|
|
596
688
|
currentItemBackgroundColor: string;
|
|
597
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
598
|
-
|
|
599
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
689
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
690
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
691
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
600
692
|
currentItemRoughness: number;
|
|
693
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
601
694
|
currentItemOpacity: number;
|
|
602
695
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
603
696
|
currentItemFontSize: number;
|
|
@@ -608,6 +701,7 @@ export declare const actionResetZoom: {
|
|
|
608
701
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
609
702
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
610
703
|
viewBackgroundColor: string;
|
|
704
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
611
705
|
cursorButton: "up" | "down";
|
|
612
706
|
scrolledOutside: boolean;
|
|
613
707
|
name: string | null;
|
|
@@ -630,7 +724,7 @@ export declare const actionResetZoom: {
|
|
|
630
724
|
name: "settings";
|
|
631
725
|
} | {
|
|
632
726
|
name: "elementLinkSelector";
|
|
633
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
727
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
634
728
|
} | {
|
|
635
729
|
name: "charts";
|
|
636
730
|
data: import("../charts").Spreadsheet;
|
|
@@ -653,8 +747,13 @@ export declare const actionResetZoom: {
|
|
|
653
747
|
message: React.ReactNode;
|
|
654
748
|
closable?: boolean;
|
|
655
749
|
duration?: number;
|
|
750
|
+
action?: {
|
|
751
|
+
label: string;
|
|
752
|
+
onClick: () => void;
|
|
753
|
+
};
|
|
656
754
|
} | null;
|
|
657
755
|
zenModeEnabled: boolean;
|
|
756
|
+
minimapEnabled: boolean;
|
|
658
757
|
theme: import("@excalidraw/element/types").Theme;
|
|
659
758
|
gridSize: number;
|
|
660
759
|
gridStep: number;
|
|
@@ -682,11 +781,10 @@ export declare const actionResetZoom: {
|
|
|
682
781
|
y: number;
|
|
683
782
|
} | null;
|
|
684
783
|
objectsSnapModeEnabled: boolean;
|
|
685
|
-
followedBy: Set<import("../types").SocketId>;
|
|
686
784
|
isCropping: boolean;
|
|
687
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
785
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
688
786
|
searchMatches: Readonly<{
|
|
689
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
787
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
690
788
|
matches: readonly import("../types").SearchMatch[];
|
|
691
789
|
}> | null;
|
|
692
790
|
activeLockedId: string | null;
|
|
@@ -694,374 +792,37 @@ export declare const actionResetZoom: {
|
|
|
694
792
|
[groupId: string]: true;
|
|
695
793
|
};
|
|
696
794
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
795
|
+
colorTopPicks: {
|
|
796
|
+
elementStroke: readonly string[] | null;
|
|
797
|
+
elementBackground: readonly string[] | null;
|
|
798
|
+
bucketFill: readonly string[] | null;
|
|
799
|
+
stickyNoteStroke: readonly string[] | null;
|
|
800
|
+
stickyNoteBackground: readonly string[] | null;
|
|
801
|
+
};
|
|
802
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
697
803
|
};
|
|
698
804
|
captureUpdate: "EVENTUALLY";
|
|
699
805
|
};
|
|
700
|
-
PanelComponent: ({ updateData
|
|
806
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
701
807
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
702
808
|
} & {
|
|
703
809
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
704
810
|
};
|
|
705
|
-
export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
706
|
-
bounds: SceneBounds;
|
|
707
|
-
canvasOffsets?: Offsets;
|
|
708
|
-
appState: Readonly<AppState>;
|
|
709
|
-
/** whether to fit content to viewport (beyond >100%) */
|
|
710
|
-
fitToViewport: boolean;
|
|
711
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
712
|
-
viewportZoomFactor?: number;
|
|
713
|
-
minZoom?: number;
|
|
714
|
-
maxZoom?: number;
|
|
715
|
-
}) => {
|
|
716
|
-
appState: {
|
|
717
|
-
scrollX: number;
|
|
718
|
-
scrollY: number;
|
|
719
|
-
zoom: {
|
|
720
|
-
value: import("../types").NormalizedZoomValue;
|
|
721
|
-
};
|
|
722
|
-
contextMenu: {
|
|
723
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
724
|
-
top: number;
|
|
725
|
-
left: number;
|
|
726
|
-
} | null;
|
|
727
|
-
showWelcomeScreen: boolean;
|
|
728
|
-
isLoading: boolean;
|
|
729
|
-
errorMessage: React.ReactNode;
|
|
730
|
-
activeEmbeddable: {
|
|
731
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
732
|
-
state: "hover" | "active";
|
|
733
|
-
} | null;
|
|
734
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
735
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
736
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
737
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
738
|
-
isBindingEnabled: boolean;
|
|
739
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
740
|
-
bindingPreference: "enabled" | "disabled";
|
|
741
|
-
isMidpointSnappingEnabled: boolean;
|
|
742
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
743
|
-
suggestedBinding: {
|
|
744
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
745
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
746
|
-
} | null;
|
|
747
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
748
|
-
frameRendering: {
|
|
749
|
-
enabled: boolean;
|
|
750
|
-
name: boolean;
|
|
751
|
-
outline: boolean;
|
|
752
|
-
clip: boolean;
|
|
753
|
-
};
|
|
754
|
-
editingFrame: string | null;
|
|
755
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
756
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
757
|
-
activeTool: {
|
|
758
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
759
|
-
locked: boolean;
|
|
760
|
-
fromSelection: boolean;
|
|
761
|
-
} & import("../types").ActiveTool;
|
|
762
|
-
preferredSelectionTool: {
|
|
763
|
-
type: "selection" | "lasso";
|
|
764
|
-
initialized: boolean;
|
|
765
|
-
};
|
|
766
|
-
penMode: boolean;
|
|
767
|
-
penDetected: boolean;
|
|
768
|
-
exportBackground: boolean;
|
|
769
|
-
exportEmbedScene: boolean;
|
|
770
|
-
exportWithDarkMode: boolean;
|
|
771
|
-
exportScale: number;
|
|
772
|
-
currentItemStrokeColor: string;
|
|
773
|
-
currentItemBackgroundColor: string;
|
|
774
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
775
|
-
currentItemStrokeWidth: number;
|
|
776
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
777
|
-
currentItemRoughness: number;
|
|
778
|
-
currentItemOpacity: number;
|
|
779
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
780
|
-
currentItemFontSize: number;
|
|
781
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
782
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
783
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
784
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
785
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
786
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
787
|
-
viewBackgroundColor: string;
|
|
788
|
-
cursorButton: "up" | "down";
|
|
789
|
-
scrolledOutside: boolean;
|
|
790
|
-
name: string | null;
|
|
791
|
-
isResizing: boolean;
|
|
792
|
-
isRotating: boolean;
|
|
793
|
-
openMenu: "canvas" | null;
|
|
794
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
795
|
-
openSidebar: {
|
|
796
|
-
name: import("../types").SidebarName;
|
|
797
|
-
tab?: import("../types").SidebarTabName;
|
|
798
|
-
} | null;
|
|
799
|
-
openDialog: null | {
|
|
800
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
801
|
-
} | {
|
|
802
|
-
name: "ttd";
|
|
803
|
-
tab: "text-to-diagram" | "mermaid";
|
|
804
|
-
} | {
|
|
805
|
-
name: "commandPalette";
|
|
806
|
-
} | {
|
|
807
|
-
name: "settings";
|
|
808
|
-
} | {
|
|
809
|
-
name: "elementLinkSelector";
|
|
810
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
811
|
-
} | {
|
|
812
|
-
name: "charts";
|
|
813
|
-
data: import("../charts").Spreadsheet;
|
|
814
|
-
rawText: string;
|
|
815
|
-
};
|
|
816
|
-
defaultSidebarDockedPreference: boolean;
|
|
817
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
818
|
-
selectedElementIds: Readonly<{
|
|
819
|
-
[id: string]: true;
|
|
820
|
-
}>;
|
|
821
|
-
hoveredElementIds: Readonly<{
|
|
822
|
-
[id: string]: true;
|
|
823
|
-
}>;
|
|
824
|
-
previousSelectedElementIds: {
|
|
825
|
-
[id: string]: true;
|
|
826
|
-
};
|
|
827
|
-
selectedElementsAreBeingDragged: boolean;
|
|
828
|
-
shouldCacheIgnoreZoom: boolean;
|
|
829
|
-
toast: {
|
|
830
|
-
message: React.ReactNode;
|
|
831
|
-
closable?: boolean;
|
|
832
|
-
duration?: number;
|
|
833
|
-
} | null;
|
|
834
|
-
zenModeEnabled: boolean;
|
|
835
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
836
|
-
gridSize: number;
|
|
837
|
-
gridStep: number;
|
|
838
|
-
gridModeEnabled: boolean;
|
|
839
|
-
viewModeEnabled: boolean;
|
|
840
|
-
selectedGroupIds: {
|
|
841
|
-
[groupId: string]: boolean;
|
|
842
|
-
};
|
|
843
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
844
|
-
width: number;
|
|
845
|
-
height: number;
|
|
846
|
-
offsetTop: number;
|
|
847
|
-
offsetLeft: number;
|
|
848
|
-
fileHandle: FileSystemFileHandle | null;
|
|
849
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
850
|
-
stats: {
|
|
851
|
-
open: boolean;
|
|
852
|
-
panels: number;
|
|
853
|
-
};
|
|
854
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
855
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
856
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
857
|
-
originSnapOffset: {
|
|
858
|
-
x: number;
|
|
859
|
-
y: number;
|
|
860
|
-
} | null;
|
|
861
|
-
objectsSnapModeEnabled: boolean;
|
|
862
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
863
|
-
followedBy: Set<import("../types").SocketId>;
|
|
864
|
-
isCropping: boolean;
|
|
865
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
866
|
-
searchMatches: Readonly<{
|
|
867
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
868
|
-
matches: readonly import("../types").SearchMatch[];
|
|
869
|
-
}> | null;
|
|
870
|
-
activeLockedId: string | null;
|
|
871
|
-
lockedMultiSelections: {
|
|
872
|
-
[groupId: string]: true;
|
|
873
|
-
};
|
|
874
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
875
|
-
};
|
|
876
|
-
captureUpdate: "EVENTUALLY";
|
|
877
|
-
};
|
|
878
|
-
export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
879
|
-
canvasOffsets?: Offsets;
|
|
880
|
-
targetElements: readonly ExcalidrawElement[];
|
|
881
|
-
appState: Readonly<AppState>;
|
|
882
|
-
/** whether to fit content to viewport (beyond >100%) */
|
|
883
|
-
fitToViewport: boolean;
|
|
884
|
-
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
885
|
-
viewportZoomFactor?: number;
|
|
886
|
-
minZoom?: number;
|
|
887
|
-
maxZoom?: number;
|
|
888
|
-
}) => {
|
|
889
|
-
appState: {
|
|
890
|
-
scrollX: number;
|
|
891
|
-
scrollY: number;
|
|
892
|
-
zoom: {
|
|
893
|
-
value: import("../types").NormalizedZoomValue;
|
|
894
|
-
};
|
|
895
|
-
contextMenu: {
|
|
896
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
897
|
-
top: number;
|
|
898
|
-
left: number;
|
|
899
|
-
} | null;
|
|
900
|
-
showWelcomeScreen: boolean;
|
|
901
|
-
isLoading: boolean;
|
|
902
|
-
errorMessage: React.ReactNode;
|
|
903
|
-
activeEmbeddable: {
|
|
904
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
905
|
-
state: "hover" | "active";
|
|
906
|
-
} | null;
|
|
907
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
908
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
909
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
910
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
911
|
-
isBindingEnabled: boolean;
|
|
912
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
913
|
-
bindingPreference: "enabled" | "disabled";
|
|
914
|
-
isMidpointSnappingEnabled: boolean;
|
|
915
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
916
|
-
suggestedBinding: {
|
|
917
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
918
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
919
|
-
} | null;
|
|
920
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
921
|
-
frameRendering: {
|
|
922
|
-
enabled: boolean;
|
|
923
|
-
name: boolean;
|
|
924
|
-
outline: boolean;
|
|
925
|
-
clip: boolean;
|
|
926
|
-
};
|
|
927
|
-
editingFrame: string | null;
|
|
928
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
929
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
930
|
-
activeTool: {
|
|
931
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
932
|
-
locked: boolean;
|
|
933
|
-
fromSelection: boolean;
|
|
934
|
-
} & import("../types").ActiveTool;
|
|
935
|
-
preferredSelectionTool: {
|
|
936
|
-
type: "selection" | "lasso";
|
|
937
|
-
initialized: boolean;
|
|
938
|
-
};
|
|
939
|
-
penMode: boolean;
|
|
940
|
-
penDetected: boolean;
|
|
941
|
-
exportBackground: boolean;
|
|
942
|
-
exportEmbedScene: boolean;
|
|
943
|
-
exportWithDarkMode: boolean;
|
|
944
|
-
exportScale: number;
|
|
945
|
-
currentItemStrokeColor: string;
|
|
946
|
-
currentItemBackgroundColor: string;
|
|
947
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
948
|
-
currentItemStrokeWidth: number;
|
|
949
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
950
|
-
currentItemRoughness: number;
|
|
951
|
-
currentItemOpacity: number;
|
|
952
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
953
|
-
currentItemFontSize: number;
|
|
954
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
955
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
956
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
957
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
958
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
959
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
960
|
-
viewBackgroundColor: string;
|
|
961
|
-
cursorButton: "up" | "down";
|
|
962
|
-
scrolledOutside: boolean;
|
|
963
|
-
name: string | null;
|
|
964
|
-
isResizing: boolean;
|
|
965
|
-
isRotating: boolean;
|
|
966
|
-
openMenu: "canvas" | null;
|
|
967
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
968
|
-
openSidebar: {
|
|
969
|
-
name: import("../types").SidebarName;
|
|
970
|
-
tab?: import("../types").SidebarTabName;
|
|
971
|
-
} | null;
|
|
972
|
-
openDialog: null | {
|
|
973
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
974
|
-
} | {
|
|
975
|
-
name: "ttd";
|
|
976
|
-
tab: "text-to-diagram" | "mermaid";
|
|
977
|
-
} | {
|
|
978
|
-
name: "commandPalette";
|
|
979
|
-
} | {
|
|
980
|
-
name: "settings";
|
|
981
|
-
} | {
|
|
982
|
-
name: "elementLinkSelector";
|
|
983
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
984
|
-
} | {
|
|
985
|
-
name: "charts";
|
|
986
|
-
data: import("../charts").Spreadsheet;
|
|
987
|
-
rawText: string;
|
|
988
|
-
};
|
|
989
|
-
defaultSidebarDockedPreference: boolean;
|
|
990
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
991
|
-
selectedElementIds: Readonly<{
|
|
992
|
-
[id: string]: true;
|
|
993
|
-
}>;
|
|
994
|
-
hoveredElementIds: Readonly<{
|
|
995
|
-
[id: string]: true;
|
|
996
|
-
}>;
|
|
997
|
-
previousSelectedElementIds: {
|
|
998
|
-
[id: string]: true;
|
|
999
|
-
};
|
|
1000
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1001
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1002
|
-
toast: {
|
|
1003
|
-
message: React.ReactNode;
|
|
1004
|
-
closable?: boolean;
|
|
1005
|
-
duration?: number;
|
|
1006
|
-
} | null;
|
|
1007
|
-
zenModeEnabled: boolean;
|
|
1008
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1009
|
-
gridSize: number;
|
|
1010
|
-
gridStep: number;
|
|
1011
|
-
gridModeEnabled: boolean;
|
|
1012
|
-
viewModeEnabled: boolean;
|
|
1013
|
-
selectedGroupIds: {
|
|
1014
|
-
[groupId: string]: boolean;
|
|
1015
|
-
};
|
|
1016
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1017
|
-
width: number;
|
|
1018
|
-
height: number;
|
|
1019
|
-
offsetTop: number;
|
|
1020
|
-
offsetLeft: number;
|
|
1021
|
-
fileHandle: FileSystemFileHandle | null;
|
|
1022
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1023
|
-
stats: {
|
|
1024
|
-
open: boolean;
|
|
1025
|
-
panels: number;
|
|
1026
|
-
};
|
|
1027
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1028
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1029
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1030
|
-
originSnapOffset: {
|
|
1031
|
-
x: number;
|
|
1032
|
-
y: number;
|
|
1033
|
-
} | null;
|
|
1034
|
-
objectsSnapModeEnabled: boolean;
|
|
1035
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1036
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1037
|
-
isCropping: boolean;
|
|
1038
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1039
|
-
searchMatches: Readonly<{
|
|
1040
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
1041
|
-
matches: readonly import("../types").SearchMatch[];
|
|
1042
|
-
}> | null;
|
|
1043
|
-
activeLockedId: string | null;
|
|
1044
|
-
lockedMultiSelections: {
|
|
1045
|
-
[groupId: string]: true;
|
|
1046
|
-
};
|
|
1047
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1048
|
-
};
|
|
1049
|
-
captureUpdate: "EVENTUALLY";
|
|
1050
|
-
};
|
|
1051
811
|
export declare const actionZoomToFitSelectionInViewport: {
|
|
1052
812
|
name: "zoomToFitSelectionInViewport";
|
|
1053
813
|
label: string;
|
|
1054
814
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
815
|
+
viewMode: true;
|
|
816
|
+
navigation: true;
|
|
1055
817
|
trackEvent: {
|
|
1056
818
|
category: "canvas";
|
|
1057
819
|
};
|
|
820
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1058
821
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1059
822
|
appState: {
|
|
823
|
+
zoom: import("../types").Zoom;
|
|
1060
824
|
scrollX: number;
|
|
1061
825
|
scrollY: number;
|
|
1062
|
-
zoom: {
|
|
1063
|
-
value: import("../types").NormalizedZoomValue;
|
|
1064
|
-
};
|
|
1065
826
|
contextMenu: {
|
|
1066
827
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1067
828
|
top: number;
|
|
@@ -1082,11 +843,23 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1082
843
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1083
844
|
bindingPreference: "enabled" | "disabled";
|
|
1084
845
|
isMidpointSnappingEnabled: boolean;
|
|
1085
|
-
|
|
846
|
+
showHints: boolean;
|
|
847
|
+
inputDevice: import("../types").InputDevice;
|
|
1086
848
|
suggestedBinding: {
|
|
1087
849
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1088
850
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1089
851
|
} | null;
|
|
852
|
+
textToolHover: {
|
|
853
|
+
type: "text";
|
|
854
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
855
|
+
} | {
|
|
856
|
+
type: "container";
|
|
857
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
858
|
+
} | {
|
|
859
|
+
type: "arrow";
|
|
860
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
861
|
+
anchor: "start" | "end" | "label";
|
|
862
|
+
} | null;
|
|
1090
863
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1091
864
|
frameRendering: {
|
|
1092
865
|
enabled: boolean;
|
|
@@ -1094,8 +867,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1094
867
|
outline: boolean;
|
|
1095
868
|
clip: boolean;
|
|
1096
869
|
};
|
|
1097
|
-
editingFrame:
|
|
1098
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
870
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
871
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
1099
872
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1100
873
|
activeTool: {
|
|
1101
874
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -1113,11 +886,14 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1113
886
|
exportWithDarkMode: boolean;
|
|
1114
887
|
exportScale: number;
|
|
1115
888
|
currentItemStrokeColor: string;
|
|
889
|
+
currentItemStickynoteStrokeColor: string;
|
|
890
|
+
currentItemStickynoteBackgroundColor: string;
|
|
1116
891
|
currentItemBackgroundColor: string;
|
|
1117
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1118
|
-
|
|
1119
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
892
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
893
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
894
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
1120
895
|
currentItemRoughness: number;
|
|
896
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1121
897
|
currentItemOpacity: number;
|
|
1122
898
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1123
899
|
currentItemFontSize: number;
|
|
@@ -1128,6 +904,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1128
904
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1129
905
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1130
906
|
viewBackgroundColor: string;
|
|
907
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
1131
908
|
cursorButton: "up" | "down";
|
|
1132
909
|
scrolledOutside: boolean;
|
|
1133
910
|
name: string | null;
|
|
@@ -1150,7 +927,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1150
927
|
name: "settings";
|
|
1151
928
|
} | {
|
|
1152
929
|
name: "elementLinkSelector";
|
|
1153
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
930
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1154
931
|
} | {
|
|
1155
932
|
name: "charts";
|
|
1156
933
|
data: import("../charts").Spreadsheet;
|
|
@@ -1173,8 +950,13 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1173
950
|
message: React.ReactNode;
|
|
1174
951
|
closable?: boolean;
|
|
1175
952
|
duration?: number;
|
|
953
|
+
action?: {
|
|
954
|
+
label: string;
|
|
955
|
+
onClick: () => void;
|
|
956
|
+
};
|
|
1176
957
|
} | null;
|
|
1177
958
|
zenModeEnabled: boolean;
|
|
959
|
+
minimapEnabled: boolean;
|
|
1178
960
|
theme: import("@excalidraw/element/types").Theme;
|
|
1179
961
|
gridSize: number;
|
|
1180
962
|
gridStep: number;
|
|
@@ -1202,12 +984,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1202
984
|
y: number;
|
|
1203
985
|
} | null;
|
|
1204
986
|
objectsSnapModeEnabled: boolean;
|
|
1205
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1206
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1207
987
|
isCropping: boolean;
|
|
1208
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
988
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1209
989
|
searchMatches: Readonly<{
|
|
1210
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
990
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1211
991
|
matches: readonly import("../types").SearchMatch[];
|
|
1212
992
|
}> | null;
|
|
1213
993
|
activeLockedId: string | null;
|
|
@@ -1215,6 +995,14 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1215
995
|
[groupId: string]: true;
|
|
1216
996
|
};
|
|
1217
997
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
998
|
+
colorTopPicks: {
|
|
999
|
+
elementStroke: readonly string[] | null;
|
|
1000
|
+
elementBackground: readonly string[] | null;
|
|
1001
|
+
bucketFill: readonly string[] | null;
|
|
1002
|
+
stickyNoteStroke: readonly string[] | null;
|
|
1003
|
+
stickyNoteBackground: readonly string[] | null;
|
|
1004
|
+
};
|
|
1005
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
1218
1006
|
};
|
|
1219
1007
|
captureUpdate: "EVENTUALLY";
|
|
1220
1008
|
};
|
|
@@ -1226,16 +1014,17 @@ export declare const actionZoomToFitSelection: {
|
|
|
1226
1014
|
name: "zoomToFitSelection";
|
|
1227
1015
|
label: string;
|
|
1228
1016
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1017
|
+
viewMode: true;
|
|
1018
|
+
navigation: true;
|
|
1229
1019
|
trackEvent: {
|
|
1230
1020
|
category: "canvas";
|
|
1231
1021
|
};
|
|
1022
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1232
1023
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1233
1024
|
appState: {
|
|
1025
|
+
zoom: import("../types").Zoom;
|
|
1234
1026
|
scrollX: number;
|
|
1235
1027
|
scrollY: number;
|
|
1236
|
-
zoom: {
|
|
1237
|
-
value: import("../types").NormalizedZoomValue;
|
|
1238
|
-
};
|
|
1239
1028
|
contextMenu: {
|
|
1240
1029
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1241
1030
|
top: number;
|
|
@@ -1256,11 +1045,23 @@ export declare const actionZoomToFitSelection: {
|
|
|
1256
1045
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1257
1046
|
bindingPreference: "enabled" | "disabled";
|
|
1258
1047
|
isMidpointSnappingEnabled: boolean;
|
|
1259
|
-
|
|
1048
|
+
showHints: boolean;
|
|
1049
|
+
inputDevice: import("../types").InputDevice;
|
|
1260
1050
|
suggestedBinding: {
|
|
1261
1051
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1262
1052
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1263
1053
|
} | null;
|
|
1054
|
+
textToolHover: {
|
|
1055
|
+
type: "text";
|
|
1056
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1057
|
+
} | {
|
|
1058
|
+
type: "container";
|
|
1059
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1060
|
+
} | {
|
|
1061
|
+
type: "arrow";
|
|
1062
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
1063
|
+
anchor: "start" | "end" | "label";
|
|
1064
|
+
} | null;
|
|
1264
1065
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1265
1066
|
frameRendering: {
|
|
1266
1067
|
enabled: boolean;
|
|
@@ -1268,8 +1069,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1268
1069
|
outline: boolean;
|
|
1269
1070
|
clip: boolean;
|
|
1270
1071
|
};
|
|
1271
|
-
editingFrame:
|
|
1272
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
1072
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
1073
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
1273
1074
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1274
1075
|
activeTool: {
|
|
1275
1076
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -1287,11 +1088,14 @@ export declare const actionZoomToFitSelection: {
|
|
|
1287
1088
|
exportWithDarkMode: boolean;
|
|
1288
1089
|
exportScale: number;
|
|
1289
1090
|
currentItemStrokeColor: string;
|
|
1091
|
+
currentItemStickynoteStrokeColor: string;
|
|
1092
|
+
currentItemStickynoteBackgroundColor: string;
|
|
1290
1093
|
currentItemBackgroundColor: string;
|
|
1291
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1292
|
-
|
|
1293
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1094
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
1095
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1096
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
1294
1097
|
currentItemRoughness: number;
|
|
1098
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1295
1099
|
currentItemOpacity: number;
|
|
1296
1100
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1297
1101
|
currentItemFontSize: number;
|
|
@@ -1302,6 +1106,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1302
1106
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1303
1107
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1304
1108
|
viewBackgroundColor: string;
|
|
1109
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
1305
1110
|
cursorButton: "up" | "down";
|
|
1306
1111
|
scrolledOutside: boolean;
|
|
1307
1112
|
name: string | null;
|
|
@@ -1324,7 +1129,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1324
1129
|
name: "settings";
|
|
1325
1130
|
} | {
|
|
1326
1131
|
name: "elementLinkSelector";
|
|
1327
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
1132
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1328
1133
|
} | {
|
|
1329
1134
|
name: "charts";
|
|
1330
1135
|
data: import("../charts").Spreadsheet;
|
|
@@ -1347,8 +1152,13 @@ export declare const actionZoomToFitSelection: {
|
|
|
1347
1152
|
message: React.ReactNode;
|
|
1348
1153
|
closable?: boolean;
|
|
1349
1154
|
duration?: number;
|
|
1155
|
+
action?: {
|
|
1156
|
+
label: string;
|
|
1157
|
+
onClick: () => void;
|
|
1158
|
+
};
|
|
1350
1159
|
} | null;
|
|
1351
1160
|
zenModeEnabled: boolean;
|
|
1161
|
+
minimapEnabled: boolean;
|
|
1352
1162
|
theme: import("@excalidraw/element/types").Theme;
|
|
1353
1163
|
gridSize: number;
|
|
1354
1164
|
gridStep: number;
|
|
@@ -1376,12 +1186,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1376
1186
|
y: number;
|
|
1377
1187
|
} | null;
|
|
1378
1188
|
objectsSnapModeEnabled: boolean;
|
|
1379
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1380
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1381
1189
|
isCropping: boolean;
|
|
1382
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1190
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1383
1191
|
searchMatches: Readonly<{
|
|
1384
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
1192
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1385
1193
|
matches: readonly import("../types").SearchMatch[];
|
|
1386
1194
|
}> | null;
|
|
1387
1195
|
activeLockedId: string | null;
|
|
@@ -1389,6 +1197,14 @@ export declare const actionZoomToFitSelection: {
|
|
|
1389
1197
|
[groupId: string]: true;
|
|
1390
1198
|
};
|
|
1391
1199
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1200
|
+
colorTopPicks: {
|
|
1201
|
+
elementStroke: readonly string[] | null;
|
|
1202
|
+
elementBackground: readonly string[] | null;
|
|
1203
|
+
bucketFill: readonly string[] | null;
|
|
1204
|
+
stickyNoteStroke: readonly string[] | null;
|
|
1205
|
+
stickyNoteBackground: readonly string[] | null;
|
|
1206
|
+
};
|
|
1207
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
1392
1208
|
};
|
|
1393
1209
|
captureUpdate: "EVENTUALLY";
|
|
1394
1210
|
};
|
|
@@ -1401,16 +1217,16 @@ export declare const actionZoomToFit: {
|
|
|
1401
1217
|
label: string;
|
|
1402
1218
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1403
1219
|
viewMode: true;
|
|
1220
|
+
navigation: true;
|
|
1404
1221
|
trackEvent: {
|
|
1405
1222
|
category: "canvas";
|
|
1406
1223
|
};
|
|
1224
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1407
1225
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1408
1226
|
appState: {
|
|
1227
|
+
zoom: import("../types").Zoom;
|
|
1409
1228
|
scrollX: number;
|
|
1410
1229
|
scrollY: number;
|
|
1411
|
-
zoom: {
|
|
1412
|
-
value: import("../types").NormalizedZoomValue;
|
|
1413
|
-
};
|
|
1414
1230
|
contextMenu: {
|
|
1415
1231
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1416
1232
|
top: number;
|
|
@@ -1431,11 +1247,23 @@ export declare const actionZoomToFit: {
|
|
|
1431
1247
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1432
1248
|
bindingPreference: "enabled" | "disabled";
|
|
1433
1249
|
isMidpointSnappingEnabled: boolean;
|
|
1434
|
-
|
|
1250
|
+
showHints: boolean;
|
|
1251
|
+
inputDevice: import("../types").InputDevice;
|
|
1435
1252
|
suggestedBinding: {
|
|
1436
1253
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1437
1254
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1438
1255
|
} | null;
|
|
1256
|
+
textToolHover: {
|
|
1257
|
+
type: "text";
|
|
1258
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1259
|
+
} | {
|
|
1260
|
+
type: "container";
|
|
1261
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1262
|
+
} | {
|
|
1263
|
+
type: "arrow";
|
|
1264
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
1265
|
+
anchor: "start" | "end" | "label";
|
|
1266
|
+
} | null;
|
|
1439
1267
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1440
1268
|
frameRendering: {
|
|
1441
1269
|
enabled: boolean;
|
|
@@ -1443,8 +1271,8 @@ export declare const actionZoomToFit: {
|
|
|
1443
1271
|
outline: boolean;
|
|
1444
1272
|
clip: boolean;
|
|
1445
1273
|
};
|
|
1446
|
-
editingFrame:
|
|
1447
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
1274
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
1275
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
1448
1276
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1449
1277
|
activeTool: {
|
|
1450
1278
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -1462,11 +1290,14 @@ export declare const actionZoomToFit: {
|
|
|
1462
1290
|
exportWithDarkMode: boolean;
|
|
1463
1291
|
exportScale: number;
|
|
1464
1292
|
currentItemStrokeColor: string;
|
|
1293
|
+
currentItemStickynoteStrokeColor: string;
|
|
1294
|
+
currentItemStickynoteBackgroundColor: string;
|
|
1465
1295
|
currentItemBackgroundColor: string;
|
|
1466
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1467
|
-
|
|
1468
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1296
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
1297
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
1298
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
1469
1299
|
currentItemRoughness: number;
|
|
1300
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
1470
1301
|
currentItemOpacity: number;
|
|
1471
1302
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1472
1303
|
currentItemFontSize: number;
|
|
@@ -1477,6 +1308,7 @@ export declare const actionZoomToFit: {
|
|
|
1477
1308
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1478
1309
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1479
1310
|
viewBackgroundColor: string;
|
|
1311
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
1480
1312
|
cursorButton: "up" | "down";
|
|
1481
1313
|
scrolledOutside: boolean;
|
|
1482
1314
|
name: string | null;
|
|
@@ -1499,7 +1331,7 @@ export declare const actionZoomToFit: {
|
|
|
1499
1331
|
name: "settings";
|
|
1500
1332
|
} | {
|
|
1501
1333
|
name: "elementLinkSelector";
|
|
1502
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
1334
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
1503
1335
|
} | {
|
|
1504
1336
|
name: "charts";
|
|
1505
1337
|
data: import("../charts").Spreadsheet;
|
|
@@ -1522,8 +1354,13 @@ export declare const actionZoomToFit: {
|
|
|
1522
1354
|
message: React.ReactNode;
|
|
1523
1355
|
closable?: boolean;
|
|
1524
1356
|
duration?: number;
|
|
1357
|
+
action?: {
|
|
1358
|
+
label: string;
|
|
1359
|
+
onClick: () => void;
|
|
1360
|
+
};
|
|
1525
1361
|
} | null;
|
|
1526
1362
|
zenModeEnabled: boolean;
|
|
1363
|
+
minimapEnabled: boolean;
|
|
1527
1364
|
theme: import("@excalidraw/element/types").Theme;
|
|
1528
1365
|
gridSize: number;
|
|
1529
1366
|
gridStep: number;
|
|
@@ -1551,12 +1388,10 @@ export declare const actionZoomToFit: {
|
|
|
1551
1388
|
y: number;
|
|
1552
1389
|
} | null;
|
|
1553
1390
|
objectsSnapModeEnabled: boolean;
|
|
1554
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1555
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1556
1391
|
isCropping: boolean;
|
|
1557
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1392
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1558
1393
|
searchMatches: Readonly<{
|
|
1559
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
1394
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
1560
1395
|
matches: readonly import("../types").SearchMatch[];
|
|
1561
1396
|
}> | null;
|
|
1562
1397
|
activeLockedId: string | null;
|
|
@@ -1564,6 +1399,14 @@ export declare const actionZoomToFit: {
|
|
|
1564
1399
|
[groupId: string]: true;
|
|
1565
1400
|
};
|
|
1566
1401
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1402
|
+
colorTopPicks: {
|
|
1403
|
+
elementStroke: readonly string[] | null;
|
|
1404
|
+
elementBackground: readonly string[] | null;
|
|
1405
|
+
bucketFill: readonly string[] | null;
|
|
1406
|
+
stickyNoteStroke: readonly string[] | null;
|
|
1407
|
+
stickyNoteBackground: readonly string[] | null;
|
|
1408
|
+
};
|
|
1409
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
1567
1410
|
};
|
|
1568
1411
|
captureUpdate: "EVENTUALLY";
|
|
1569
1412
|
};
|
|
@@ -1572,500 +1415,5 @@ export declare const actionZoomToFit: {
|
|
|
1572
1415
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1573
1416
|
};
|
|
1574
1417
|
export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
|
|
1575
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
1576
|
-
};
|
|
1577
|
-
export declare const actionToggleEraserTool: {
|
|
1578
|
-
name: "toggleEraserTool";
|
|
1579
|
-
label: string;
|
|
1580
|
-
trackEvent: {
|
|
1581
|
-
category: "toolbar";
|
|
1582
|
-
};
|
|
1583
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1584
|
-
appState: {
|
|
1585
|
-
selectedElementIds: {};
|
|
1586
|
-
selectedGroupIds: {};
|
|
1587
|
-
activeEmbeddable: null;
|
|
1588
|
-
activeTool: {
|
|
1589
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1590
|
-
locked: boolean;
|
|
1591
|
-
fromSelection: boolean;
|
|
1592
|
-
} & import("../types").ActiveTool;
|
|
1593
|
-
contextMenu: {
|
|
1594
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1595
|
-
top: number;
|
|
1596
|
-
left: number;
|
|
1597
|
-
} | null;
|
|
1598
|
-
showWelcomeScreen: boolean;
|
|
1599
|
-
isLoading: boolean;
|
|
1600
|
-
errorMessage: React.ReactNode;
|
|
1601
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1602
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1603
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1604
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1605
|
-
isBindingEnabled: boolean;
|
|
1606
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1607
|
-
bindingPreference: "enabled" | "disabled";
|
|
1608
|
-
isMidpointSnappingEnabled: boolean;
|
|
1609
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1610
|
-
suggestedBinding: {
|
|
1611
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1612
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1613
|
-
} | null;
|
|
1614
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1615
|
-
frameRendering: {
|
|
1616
|
-
enabled: boolean;
|
|
1617
|
-
name: boolean;
|
|
1618
|
-
outline: boolean;
|
|
1619
|
-
clip: boolean;
|
|
1620
|
-
};
|
|
1621
|
-
editingFrame: string | null;
|
|
1622
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1623
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1624
|
-
preferredSelectionTool: {
|
|
1625
|
-
type: "selection" | "lasso";
|
|
1626
|
-
initialized: boolean;
|
|
1627
|
-
};
|
|
1628
|
-
penMode: boolean;
|
|
1629
|
-
penDetected: boolean;
|
|
1630
|
-
exportBackground: boolean;
|
|
1631
|
-
exportEmbedScene: boolean;
|
|
1632
|
-
exportWithDarkMode: boolean;
|
|
1633
|
-
exportScale: number;
|
|
1634
|
-
currentItemStrokeColor: string;
|
|
1635
|
-
currentItemBackgroundColor: string;
|
|
1636
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1637
|
-
currentItemStrokeWidth: number;
|
|
1638
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1639
|
-
currentItemRoughness: number;
|
|
1640
|
-
currentItemOpacity: number;
|
|
1641
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1642
|
-
currentItemFontSize: number;
|
|
1643
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1644
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1645
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1646
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1647
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1648
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1649
|
-
viewBackgroundColor: string;
|
|
1650
|
-
scrollX: number;
|
|
1651
|
-
scrollY: number;
|
|
1652
|
-
cursorButton: "up" | "down";
|
|
1653
|
-
scrolledOutside: boolean;
|
|
1654
|
-
name: string | null;
|
|
1655
|
-
isResizing: boolean;
|
|
1656
|
-
isRotating: boolean;
|
|
1657
|
-
zoom: import("../types").Zoom;
|
|
1658
|
-
openMenu: "canvas" | null;
|
|
1659
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1660
|
-
openSidebar: {
|
|
1661
|
-
name: import("../types").SidebarName;
|
|
1662
|
-
tab?: import("../types").SidebarTabName;
|
|
1663
|
-
} | null;
|
|
1664
|
-
openDialog: null | {
|
|
1665
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1666
|
-
} | {
|
|
1667
|
-
name: "ttd";
|
|
1668
|
-
tab: "text-to-diagram" | "mermaid";
|
|
1669
|
-
} | {
|
|
1670
|
-
name: "commandPalette";
|
|
1671
|
-
} | {
|
|
1672
|
-
name: "settings";
|
|
1673
|
-
} | {
|
|
1674
|
-
name: "elementLinkSelector";
|
|
1675
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
1676
|
-
} | {
|
|
1677
|
-
name: "charts";
|
|
1678
|
-
data: import("../charts").Spreadsheet;
|
|
1679
|
-
rawText: string;
|
|
1680
|
-
};
|
|
1681
|
-
defaultSidebarDockedPreference: boolean;
|
|
1682
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1683
|
-
hoveredElementIds: Readonly<{
|
|
1684
|
-
[id: string]: true;
|
|
1685
|
-
}>;
|
|
1686
|
-
previousSelectedElementIds: {
|
|
1687
|
-
[id: string]: true;
|
|
1688
|
-
};
|
|
1689
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1690
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1691
|
-
toast: {
|
|
1692
|
-
message: React.ReactNode;
|
|
1693
|
-
closable?: boolean;
|
|
1694
|
-
duration?: number;
|
|
1695
|
-
} | null;
|
|
1696
|
-
zenModeEnabled: boolean;
|
|
1697
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1698
|
-
gridSize: number;
|
|
1699
|
-
gridStep: number;
|
|
1700
|
-
gridModeEnabled: boolean;
|
|
1701
|
-
viewModeEnabled: boolean;
|
|
1702
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1703
|
-
width: number;
|
|
1704
|
-
height: number;
|
|
1705
|
-
offsetTop: number;
|
|
1706
|
-
offsetLeft: number;
|
|
1707
|
-
fileHandle: FileSystemFileHandle | null;
|
|
1708
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1709
|
-
stats: {
|
|
1710
|
-
open: boolean;
|
|
1711
|
-
panels: number;
|
|
1712
|
-
};
|
|
1713
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1714
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1715
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1716
|
-
originSnapOffset: {
|
|
1717
|
-
x: number;
|
|
1718
|
-
y: number;
|
|
1719
|
-
} | null;
|
|
1720
|
-
objectsSnapModeEnabled: boolean;
|
|
1721
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1722
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1723
|
-
isCropping: boolean;
|
|
1724
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1725
|
-
searchMatches: Readonly<{
|
|
1726
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
1727
|
-
matches: readonly import("../types").SearchMatch[];
|
|
1728
|
-
}> | null;
|
|
1729
|
-
activeLockedId: string | null;
|
|
1730
|
-
lockedMultiSelections: {
|
|
1731
|
-
[groupId: string]: true;
|
|
1732
|
-
};
|
|
1733
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1734
|
-
};
|
|
1735
|
-
captureUpdate: "IMMEDIATELY";
|
|
1736
|
-
};
|
|
1737
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1738
|
-
} & {
|
|
1739
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1740
|
-
};
|
|
1741
|
-
export declare const actionToggleLassoTool: {
|
|
1742
|
-
name: "toggleLassoTool";
|
|
1743
|
-
label: string;
|
|
1744
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
1745
|
-
trackEvent: {
|
|
1746
|
-
category: "toolbar";
|
|
1747
|
-
};
|
|
1748
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1749
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1750
|
-
appState: {
|
|
1751
|
-
selectedElementIds: {};
|
|
1752
|
-
selectedGroupIds: {};
|
|
1753
|
-
activeEmbeddable: null;
|
|
1754
|
-
activeTool: {
|
|
1755
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1756
|
-
locked: boolean;
|
|
1757
|
-
fromSelection: boolean;
|
|
1758
|
-
} & import("../types").ActiveTool;
|
|
1759
|
-
contextMenu: {
|
|
1760
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1761
|
-
top: number;
|
|
1762
|
-
left: number;
|
|
1763
|
-
} | null;
|
|
1764
|
-
showWelcomeScreen: boolean;
|
|
1765
|
-
isLoading: boolean;
|
|
1766
|
-
errorMessage: React.ReactNode;
|
|
1767
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1768
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1769
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1770
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1771
|
-
isBindingEnabled: boolean;
|
|
1772
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1773
|
-
bindingPreference: "enabled" | "disabled";
|
|
1774
|
-
isMidpointSnappingEnabled: boolean;
|
|
1775
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1776
|
-
suggestedBinding: {
|
|
1777
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1778
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1779
|
-
} | null;
|
|
1780
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1781
|
-
frameRendering: {
|
|
1782
|
-
enabled: boolean;
|
|
1783
|
-
name: boolean;
|
|
1784
|
-
outline: boolean;
|
|
1785
|
-
clip: boolean;
|
|
1786
|
-
};
|
|
1787
|
-
editingFrame: string | null;
|
|
1788
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1789
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1790
|
-
preferredSelectionTool: {
|
|
1791
|
-
type: "selection" | "lasso";
|
|
1792
|
-
initialized: boolean;
|
|
1793
|
-
};
|
|
1794
|
-
penMode: boolean;
|
|
1795
|
-
penDetected: boolean;
|
|
1796
|
-
exportBackground: boolean;
|
|
1797
|
-
exportEmbedScene: boolean;
|
|
1798
|
-
exportWithDarkMode: boolean;
|
|
1799
|
-
exportScale: number;
|
|
1800
|
-
currentItemStrokeColor: string;
|
|
1801
|
-
currentItemBackgroundColor: string;
|
|
1802
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1803
|
-
currentItemStrokeWidth: number;
|
|
1804
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1805
|
-
currentItemRoughness: number;
|
|
1806
|
-
currentItemOpacity: number;
|
|
1807
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1808
|
-
currentItemFontSize: number;
|
|
1809
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1810
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1811
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1812
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1813
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1814
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1815
|
-
viewBackgroundColor: string;
|
|
1816
|
-
scrollX: number;
|
|
1817
|
-
scrollY: number;
|
|
1818
|
-
cursorButton: "up" | "down";
|
|
1819
|
-
scrolledOutside: boolean;
|
|
1820
|
-
name: string | null;
|
|
1821
|
-
isResizing: boolean;
|
|
1822
|
-
isRotating: boolean;
|
|
1823
|
-
zoom: import("../types").Zoom;
|
|
1824
|
-
openMenu: "canvas" | null;
|
|
1825
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1826
|
-
openSidebar: {
|
|
1827
|
-
name: import("../types").SidebarName;
|
|
1828
|
-
tab?: import("../types").SidebarTabName;
|
|
1829
|
-
} | null;
|
|
1830
|
-
openDialog: null | {
|
|
1831
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1832
|
-
} | {
|
|
1833
|
-
name: "ttd";
|
|
1834
|
-
tab: "text-to-diagram" | "mermaid";
|
|
1835
|
-
} | {
|
|
1836
|
-
name: "commandPalette";
|
|
1837
|
-
} | {
|
|
1838
|
-
name: "settings";
|
|
1839
|
-
} | {
|
|
1840
|
-
name: "elementLinkSelector";
|
|
1841
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
1842
|
-
} | {
|
|
1843
|
-
name: "charts";
|
|
1844
|
-
data: import("../charts").Spreadsheet;
|
|
1845
|
-
rawText: string;
|
|
1846
|
-
};
|
|
1847
|
-
defaultSidebarDockedPreference: boolean;
|
|
1848
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1849
|
-
hoveredElementIds: Readonly<{
|
|
1850
|
-
[id: string]: true;
|
|
1851
|
-
}>;
|
|
1852
|
-
previousSelectedElementIds: {
|
|
1853
|
-
[id: string]: true;
|
|
1854
|
-
};
|
|
1855
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1856
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1857
|
-
toast: {
|
|
1858
|
-
message: React.ReactNode;
|
|
1859
|
-
closable?: boolean;
|
|
1860
|
-
duration?: number;
|
|
1861
|
-
} | null;
|
|
1862
|
-
zenModeEnabled: boolean;
|
|
1863
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1864
|
-
gridSize: number;
|
|
1865
|
-
gridStep: number;
|
|
1866
|
-
gridModeEnabled: boolean;
|
|
1867
|
-
viewModeEnabled: boolean;
|
|
1868
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1869
|
-
width: number;
|
|
1870
|
-
height: number;
|
|
1871
|
-
offsetTop: number;
|
|
1872
|
-
offsetLeft: number;
|
|
1873
|
-
fileHandle: FileSystemFileHandle | null;
|
|
1874
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1875
|
-
stats: {
|
|
1876
|
-
open: boolean;
|
|
1877
|
-
panels: number;
|
|
1878
|
-
};
|
|
1879
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
1880
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1881
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1882
|
-
originSnapOffset: {
|
|
1883
|
-
x: number;
|
|
1884
|
-
y: number;
|
|
1885
|
-
} | null;
|
|
1886
|
-
objectsSnapModeEnabled: boolean;
|
|
1887
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1888
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1889
|
-
isCropping: boolean;
|
|
1890
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1891
|
-
searchMatches: Readonly<{
|
|
1892
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
1893
|
-
matches: readonly import("../types").SearchMatch[];
|
|
1894
|
-
}> | null;
|
|
1895
|
-
activeLockedId: string | null;
|
|
1896
|
-
lockedMultiSelections: {
|
|
1897
|
-
[groupId: string]: true;
|
|
1898
|
-
};
|
|
1899
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1900
|
-
};
|
|
1901
|
-
captureUpdate: "NEVER";
|
|
1902
|
-
};
|
|
1903
|
-
} & {
|
|
1904
|
-
keyTest?: undefined;
|
|
1905
|
-
};
|
|
1906
|
-
export declare const actionToggleHandTool: {
|
|
1907
|
-
name: "toggleHandTool";
|
|
1908
|
-
label: string;
|
|
1909
|
-
trackEvent: {
|
|
1910
|
-
category: "toolbar";
|
|
1911
|
-
};
|
|
1912
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
1913
|
-
viewMode: false;
|
|
1914
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1915
|
-
appState: {
|
|
1916
|
-
selectedElementIds: {};
|
|
1917
|
-
selectedGroupIds: {};
|
|
1918
|
-
activeEmbeddable: null;
|
|
1919
|
-
activeTool: {
|
|
1920
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1921
|
-
locked: boolean;
|
|
1922
|
-
fromSelection: boolean;
|
|
1923
|
-
} & import("../types").ActiveTool;
|
|
1924
|
-
contextMenu: {
|
|
1925
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1926
|
-
top: number;
|
|
1927
|
-
left: number;
|
|
1928
|
-
} | null;
|
|
1929
|
-
showWelcomeScreen: boolean;
|
|
1930
|
-
isLoading: boolean;
|
|
1931
|
-
errorMessage: React.ReactNode;
|
|
1932
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1933
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1934
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1935
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1936
|
-
isBindingEnabled: boolean;
|
|
1937
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
1938
|
-
bindingPreference: "enabled" | "disabled";
|
|
1939
|
-
isMidpointSnappingEnabled: boolean;
|
|
1940
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1941
|
-
suggestedBinding: {
|
|
1942
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
1943
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
1944
|
-
} | null;
|
|
1945
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1946
|
-
frameRendering: {
|
|
1947
|
-
enabled: boolean;
|
|
1948
|
-
name: boolean;
|
|
1949
|
-
outline: boolean;
|
|
1950
|
-
clip: boolean;
|
|
1951
|
-
};
|
|
1952
|
-
editingFrame: string | null;
|
|
1953
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1954
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
1955
|
-
preferredSelectionTool: {
|
|
1956
|
-
type: "selection" | "lasso";
|
|
1957
|
-
initialized: boolean;
|
|
1958
|
-
};
|
|
1959
|
-
penMode: boolean;
|
|
1960
|
-
penDetected: boolean;
|
|
1961
|
-
exportBackground: boolean;
|
|
1962
|
-
exportEmbedScene: boolean;
|
|
1963
|
-
exportWithDarkMode: boolean;
|
|
1964
|
-
exportScale: number;
|
|
1965
|
-
currentItemStrokeColor: string;
|
|
1966
|
-
currentItemBackgroundColor: string;
|
|
1967
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1968
|
-
currentItemStrokeWidth: number;
|
|
1969
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1970
|
-
currentItemRoughness: number;
|
|
1971
|
-
currentItemOpacity: number;
|
|
1972
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1973
|
-
currentItemFontSize: number;
|
|
1974
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1975
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1976
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1977
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1978
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1979
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1980
|
-
viewBackgroundColor: string;
|
|
1981
|
-
scrollX: number;
|
|
1982
|
-
scrollY: number;
|
|
1983
|
-
cursorButton: "up" | "down";
|
|
1984
|
-
scrolledOutside: boolean;
|
|
1985
|
-
name: string | null;
|
|
1986
|
-
isResizing: boolean;
|
|
1987
|
-
isRotating: boolean;
|
|
1988
|
-
zoom: import("../types").Zoom;
|
|
1989
|
-
openMenu: "canvas" | null;
|
|
1990
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1991
|
-
openSidebar: {
|
|
1992
|
-
name: import("../types").SidebarName;
|
|
1993
|
-
tab?: import("../types").SidebarTabName;
|
|
1994
|
-
} | null;
|
|
1995
|
-
openDialog: null | {
|
|
1996
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1997
|
-
} | {
|
|
1998
|
-
name: "ttd";
|
|
1999
|
-
tab: "text-to-diagram" | "mermaid";
|
|
2000
|
-
} | {
|
|
2001
|
-
name: "commandPalette";
|
|
2002
|
-
} | {
|
|
2003
|
-
name: "settings";
|
|
2004
|
-
} | {
|
|
2005
|
-
name: "elementLinkSelector";
|
|
2006
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
2007
|
-
} | {
|
|
2008
|
-
name: "charts";
|
|
2009
|
-
data: import("../charts").Spreadsheet;
|
|
2010
|
-
rawText: string;
|
|
2011
|
-
};
|
|
2012
|
-
defaultSidebarDockedPreference: boolean;
|
|
2013
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2014
|
-
hoveredElementIds: Readonly<{
|
|
2015
|
-
[id: string]: true;
|
|
2016
|
-
}>;
|
|
2017
|
-
previousSelectedElementIds: {
|
|
2018
|
-
[id: string]: true;
|
|
2019
|
-
};
|
|
2020
|
-
selectedElementsAreBeingDragged: boolean;
|
|
2021
|
-
shouldCacheIgnoreZoom: boolean;
|
|
2022
|
-
toast: {
|
|
2023
|
-
message: React.ReactNode;
|
|
2024
|
-
closable?: boolean;
|
|
2025
|
-
duration?: number;
|
|
2026
|
-
} | null;
|
|
2027
|
-
zenModeEnabled: boolean;
|
|
2028
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
2029
|
-
gridSize: number;
|
|
2030
|
-
gridStep: number;
|
|
2031
|
-
gridModeEnabled: boolean;
|
|
2032
|
-
viewModeEnabled: boolean;
|
|
2033
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
2034
|
-
width: number;
|
|
2035
|
-
height: number;
|
|
2036
|
-
offsetTop: number;
|
|
2037
|
-
offsetLeft: number;
|
|
2038
|
-
fileHandle: FileSystemFileHandle | null;
|
|
2039
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2040
|
-
stats: {
|
|
2041
|
-
open: boolean;
|
|
2042
|
-
panels: number;
|
|
2043
|
-
};
|
|
2044
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
2045
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2046
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
2047
|
-
originSnapOffset: {
|
|
2048
|
-
x: number;
|
|
2049
|
-
y: number;
|
|
2050
|
-
} | null;
|
|
2051
|
-
objectsSnapModeEnabled: boolean;
|
|
2052
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
2053
|
-
followedBy: Set<import("../types").SocketId>;
|
|
2054
|
-
isCropping: boolean;
|
|
2055
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
2056
|
-
searchMatches: Readonly<{
|
|
2057
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
2058
|
-
matches: readonly import("../types").SearchMatch[];
|
|
2059
|
-
}> | null;
|
|
2060
|
-
activeLockedId: string | null;
|
|
2061
|
-
lockedMultiSelections: {
|
|
2062
|
-
[groupId: string]: true;
|
|
2063
|
-
};
|
|
2064
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
2065
|
-
};
|
|
2066
|
-
captureUpdate: "IMMEDIATELY";
|
|
2067
|
-
};
|
|
2068
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
2069
|
-
} & {
|
|
2070
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1418
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
2071
1419
|
};
|