@zsviczian/excalidraw 0.18.0-1 → 0.18.0-10
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/README.md +1 -1
- package/dist/excalidraw.development.js +2231 -2418
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -32
- package/dist/styles.development.css +2995 -3004
- package/dist/styles.production.css +28 -28
- package/package.json +14 -2
- package/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
- package/types/{excalidraw → common/src}/colors.d.ts +1 -0
- package/types/{excalidraw → common/src}/constants.d.ts +10 -7
- package/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
- package/types/common/src/index.d.ts +11 -0
- package/types/{excalidraw → common/src}/points.d.ts +2 -0
- package/types/common/src/promise-pool.d.ts +6 -0
- package/types/{excalidraw → common/src}/utils.d.ts +13 -12
- package/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
- package/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
- package/types/{excalidraw → element/src}/align.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/binding.d.ts +8 -8
- package/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
- package/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
- package/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
- package/types/{excalidraw → element/src}/distribute.d.ts +1 -1
- package/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
- package/types/element/src/duplicate.d.ts +63 -0
- package/types/{excalidraw/element → element/src}/elbowArrow.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
- package/types/element/src/embeddable.d.ts +10 -0
- package/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
- package/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
- package/types/{excalidraw → element/src}/frame.d.ts +7 -7
- package/types/{excalidraw → element/src}/groups.d.ts +5 -5
- package/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
- package/types/{excalidraw/element → element/src}/image.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/index.d.ts +0 -10
- package/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +7 -7
- package/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
- package/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
- package/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
- package/types/{excalidraw/element → element/src}/resizeElements.d.ts +4 -4
- package/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
- package/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
- package/types/element/src/shapes.d.ts +23 -0
- package/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
- package/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
- package/types/{excalidraw/element → element/src}/textElement.d.ts +5 -5
- package/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
- package/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/types.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
- package/types/{excalidraw → element/src}/zindex.d.ts +5 -4
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +94 -79
- package/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/types/excalidraw/actions/actionBoundText.d.ts +68 -58
- package/types/excalidraw/actions/actionCanvas.d.ts +738 -455
- package/types/excalidraw/actions/actionClipboard.d.ts +197 -167
- package/types/excalidraw/actions/actionCropEditor.d.ts +33 -28
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +94 -79
- package/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
- package/types/excalidraw/actions/actionElementLink.d.ts +37 -32
- package/types/excalidraw/actions/actionElementLock.d.ts +67 -58
- package/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +33 -38
- package/types/excalidraw/actions/actionExport.d.ts +374 -329
- package/types/excalidraw/actions/actionFinalize.d.ts +55 -45
- package/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/types/excalidraw/actions/actionFrame.d.ts +243 -223
- package/types/excalidraw/actions/actionGroup.d.ts +65 -55
- package/types/excalidraw/actions/actionHistory.d.ts +1 -1
- package/types/excalidraw/actions/actionLinearEditor.d.ts +34 -29
- package/types/excalidraw/actions/actionLink.d.ts +33 -28
- package/types/excalidraw/actions/actionMenu.d.ts +94 -79
- package/types/excalidraw/actions/actionNavigate.d.ts +62 -52
- package/types/excalidraw/actions/actionProperties.d.ts +422 -347
- package/types/excalidraw/actions/actionSelectAll.d.ts +33 -28
- package/types/excalidraw/actions/actionStyles.d.ts +35 -30
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -28
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +33 -28
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +64 -54
- package/types/excalidraw/actions/actionToggleStats.d.ts +32 -28
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -29
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -29
- package/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/types/excalidraw/actions/index.d.ts +1 -0
- package/types/excalidraw/actions/manager.d.ts +2 -2
- package/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/types/excalidraw/actions/types.d.ts +4 -4
- package/types/excalidraw/animated-trail.d.ts +7 -1
- package/types/excalidraw/appState.d.ts +32 -31
- package/types/excalidraw/change.d.ts +3 -3
- package/types/excalidraw/charts.d.ts +1 -1
- package/types/excalidraw/clipboard.d.ts +7 -7
- package/types/excalidraw/components/Actions.d.ts +3 -3
- package/types/excalidraw/components/App.d.ts +32 -32
- package/types/excalidraw/components/Avatar.d.ts +1 -1
- package/types/excalidraw/components/ButtonIcon.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
- package/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/types/excalidraw/components/ContextMenu.d.ts +2 -2
- package/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/types/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
- package/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
- package/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
- package/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
- package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
- package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/types/excalidraw/components/IconPicker.d.ts +1 -1
- package/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
- package/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/types/excalidraw/components/Island.d.ts +1 -1
- package/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
- package/types/excalidraw/components/LayerUI.d.ts +3 -3
- package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
- package/types/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/types/excalidraw/components/MagicButton.d.ts +1 -1
- package/types/excalidraw/components/MobileMenu.d.ts +3 -3
- package/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/types/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/types/excalidraw/components/Stack.d.ts +1 -1
- package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/types/excalidraw/components/Stats/index.d.ts +2 -2
- package/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/common.d.ts +3 -3
- package/types/excalidraw/components/TextField.d.ts +1 -1
- package/types/excalidraw/components/Toast.d.ts +1 -1
- package/types/excalidraw/components/ToolButton.d.ts +2 -2
- package/types/excalidraw/components/Tooltip.d.ts +1 -1
- package/types/excalidraw/components/UserList.d.ts +1 -1
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
- package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
- package/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
- package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/types/excalidraw/components/icons.d.ts +2 -1
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
- package/types/excalidraw/components/shapes.d.ts +62 -0
- package/types/excalidraw/context/tunnels.d.ts +1 -1
- package/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/types/excalidraw/data/blob.d.ts +4 -4
- package/types/excalidraw/data/filesystem.d.ts +2 -2
- package/types/excalidraw/data/index.d.ts +2 -2
- package/types/excalidraw/data/json.d.ts +1 -1
- package/types/excalidraw/data/library.d.ts +3 -3
- package/types/excalidraw/data/reconcile.d.ts +2 -2
- package/types/excalidraw/data/resave.d.ts +1 -1
- package/types/excalidraw/data/restore.d.ts +1 -1
- package/types/excalidraw/data/transform.d.ts +4 -4
- package/types/excalidraw/data/types.d.ts +3 -3
- package/types/excalidraw/eraser/index.d.ts +14 -0
- package/types/excalidraw/errors.d.ts +0 -3
- package/types/excalidraw/fonts/Fonts.d.ts +2 -12
- package/types/excalidraw/history.d.ts +2 -2
- package/types/excalidraw/i18n.d.ts +1 -1
- package/types/excalidraw/index.d.ts +29 -35
- package/types/excalidraw/laser-trails.d.ts +1 -1
- package/types/excalidraw/lasso/index.d.ts +15 -0
- package/types/excalidraw/lasso/utils.d.ts +12 -0
- package/types/excalidraw/obsidianUtils.d.ts +3 -2
- package/types/excalidraw/renderer/helpers.d.ts +2 -2
- package/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
- package/types/excalidraw/scene/Renderer.d.ts +3 -3
- package/types/excalidraw/scene/Scene.d.ts +5 -5
- package/types/excalidraw/scene/export.d.ts +1 -1
- package/types/excalidraw/scene/index.d.ts +2 -2
- package/types/excalidraw/scene/scroll.d.ts +1 -1
- package/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/types/excalidraw/scene/types.d.ts +4 -4
- package/types/excalidraw/snapping.d.ts +5 -6
- package/types/excalidraw/store.d.ts +2 -2
- package/types/excalidraw/types.d.ts +26 -16
- package/types/excalidraw/visualdebug.d.ts +2 -2
- package/types/excalidraw/webpack.dev.config.d.ts +2 -0
- package/types/excalidraw/webpack.prod.config.d.ts +2 -0
- package/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
- package/types/math/{point.d.ts → src/point.d.ts} +2 -2
- package/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
- package/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
- package/types/math/{types.d.ts → src/types.d.ts} +1 -0
- package/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
- package/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
- package/types/utils/{export.d.ts → src/export.d.ts} +2 -12
- package/types/utils/{index.d.ts → src/index.d.ts} +1 -1
- package/types/utils/{geometry → src}/shape.d.ts +2 -15
- package/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
- package/types/excalidraw/shapes.d.ts +0 -85
- /package/types/{excalidraw → common/src}/keys.d.ts +0 -0
- /package/types/{excalidraw → common/src}/queue.d.ts +0 -0
- /package/types/{excalidraw → common/src}/random.d.ts +0 -0
- /package/types/{excalidraw/data → common/src}/url.d.ts +0 -0
- /package/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
- /package/types/{excalidraw/renderer → element/src}/easingFunctions.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
- /package/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
- /package/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
- /package/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
- /package/types/math/{index.d.ts → src/index.d.ts} +0 -0
- /package/types/math/{line.d.ts → src/line.d.ts} +0 -0
- /package/types/math/{range.d.ts → src/range.d.ts} +0 -0
- /package/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
- /package/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
- /package/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
|
@@ -7,7 +7,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
7
7
|
category: "canvas";
|
|
8
8
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("
|
|
10
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
objectsSnapModeEnabled: boolean;
|
|
13
13
|
gridModeEnabled: false;
|
|
@@ -20,17 +20,17 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
20
20
|
isLoading: boolean;
|
|
21
21
|
errorMessage: import("react").ReactNode;
|
|
22
22
|
activeEmbeddable: {
|
|
23
|
-
element: import("
|
|
23
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
24
|
state: "active" | "hover";
|
|
25
25
|
} | null;
|
|
26
|
-
newElement: import("
|
|
27
|
-
resizingElement: import("
|
|
28
|
-
multiElement: import("
|
|
29
|
-
selectionElement: import("
|
|
26
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
-
startBoundElement: import("
|
|
32
|
-
suggestedBindings: import("
|
|
33
|
-
frameToHighlight: import("
|
|
31
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
33
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
36
36
|
name: boolean;
|
|
@@ -38,12 +38,13 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
38
38
|
clip: boolean;
|
|
39
39
|
};
|
|
40
40
|
editingFrame: string | null;
|
|
41
|
-
elementsToHighlight: import("
|
|
42
|
-
editingTextElement: import("
|
|
43
|
-
editingLinearElement: import("
|
|
41
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
42
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
47
|
+
fromSelection: boolean;
|
|
47
48
|
} & import("../types").ActiveTool;
|
|
48
49
|
penMode: boolean;
|
|
49
50
|
penDetected: boolean;
|
|
@@ -53,18 +54,18 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
53
54
|
exportScale: number;
|
|
54
55
|
currentItemStrokeColor: string;
|
|
55
56
|
currentItemBackgroundColor: string;
|
|
56
|
-
currentItemFillStyle: import("
|
|
57
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
57
58
|
currentItemStrokeWidth: number;
|
|
58
|
-
currentItemStrokeStyle: import("
|
|
59
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
59
60
|
currentItemRoughness: number;
|
|
60
61
|
currentItemOpacity: number;
|
|
61
62
|
currentItemFontFamily: number;
|
|
62
63
|
currentItemFontSize: number;
|
|
63
64
|
currentItemTextAlign: string;
|
|
64
|
-
currentItemStartArrowhead: import("
|
|
65
|
-
currentItemEndArrowhead: import("
|
|
65
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
67
|
currentHoveredFontFamily: number | null;
|
|
67
|
-
currentItemRoundness: import("
|
|
68
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
69
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
69
70
|
viewBackgroundColor: string;
|
|
70
71
|
scrollX: number;
|
|
@@ -77,7 +78,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
77
78
|
zoom: Readonly<{
|
|
78
79
|
value: import("../types").NormalizedZoomValue;
|
|
79
80
|
}>;
|
|
80
|
-
openMenu: "
|
|
81
|
+
openMenu: "shape" | "canvas" | null;
|
|
81
82
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
83
|
openSidebar: {
|
|
83
84
|
name: string;
|
|
@@ -95,7 +96,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
95
96
|
sourceElementId: string;
|
|
96
97
|
} | null;
|
|
97
98
|
defaultSidebarDockedPreference: boolean;
|
|
98
|
-
lastPointerDownWith: import("
|
|
99
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
99
100
|
selectedElementIds: Readonly<{
|
|
100
101
|
[id: string]: true;
|
|
101
102
|
}>;
|
|
@@ -113,7 +114,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
113
114
|
duration?: number | undefined;
|
|
114
115
|
} | null;
|
|
115
116
|
zenModeEnabled: boolean;
|
|
116
|
-
theme: import("
|
|
117
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
117
118
|
gridSize: number;
|
|
118
119
|
gridStep: number;
|
|
119
120
|
viewModeEnabled: boolean;
|
|
@@ -133,7 +134,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
133
134
|
[id: string]: true;
|
|
134
135
|
}> | undefined;
|
|
135
136
|
username?: string | null | undefined;
|
|
136
|
-
userState?: import("
|
|
137
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
137
138
|
color?: {
|
|
138
139
|
background: string;
|
|
139
140
|
stroke: string;
|
|
@@ -150,7 +151,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
150
151
|
open: boolean;
|
|
151
152
|
panels: number;
|
|
152
153
|
};
|
|
153
|
-
currentChartType: import("
|
|
154
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
154
155
|
pasteDialog: {
|
|
155
156
|
shown: false;
|
|
156
157
|
data: null;
|
|
@@ -159,13 +160,13 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
159
160
|
data: import("../charts").Spreadsheet;
|
|
160
161
|
};
|
|
161
162
|
pendingImageElementId: string | null;
|
|
162
|
-
showHyperlinkPopup: false | "
|
|
163
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
163
164
|
linkOpacity: number;
|
|
164
165
|
trayModeEnabled: boolean;
|
|
165
166
|
colorPalette?: {
|
|
166
|
-
canvasBackground: import("
|
|
167
|
-
elementBackground: import("
|
|
168
|
-
elementStroke: import("
|
|
167
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
168
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
169
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
169
170
|
topPicks: {
|
|
170
171
|
canvasBackground: [string, string, string, string, string];
|
|
171
172
|
elementStroke: [string, string, string, string, string];
|
|
@@ -182,6 +183,10 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
182
183
|
Bold: string;
|
|
183
184
|
Regular: string;
|
|
184
185
|
};
|
|
186
|
+
gridDirection: {
|
|
187
|
+
horizontal: boolean;
|
|
188
|
+
vertical: boolean;
|
|
189
|
+
};
|
|
185
190
|
highlightSearchResult: boolean;
|
|
186
191
|
dynamicStyle: {
|
|
187
192
|
[x: string]: string;
|
|
@@ -192,7 +197,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
192
197
|
nameColor: string;
|
|
193
198
|
};
|
|
194
199
|
invertBindingBehaviour: boolean;
|
|
195
|
-
selectedLinearElement: import("
|
|
200
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
196
201
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
197
202
|
originSnapOffset: {
|
|
198
203
|
x: number;
|
|
@@ -216,7 +221,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
216
221
|
captureUpdate: "EVENTUALLY";
|
|
217
222
|
};
|
|
218
223
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
219
|
-
predicate: (elements: readonly import("
|
|
224
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
220
225
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
221
226
|
} & {
|
|
222
227
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -10,7 +10,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
10
10
|
action: string;
|
|
11
11
|
predicate: (appState: Readonly<AppState>) => boolean;
|
|
12
12
|
};
|
|
13
|
-
perform(elements: readonly import("
|
|
13
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties): false | {
|
|
14
14
|
appState: {
|
|
15
15
|
openSidebar: null;
|
|
16
16
|
contextMenu: {
|
|
@@ -22,17 +22,17 @@ export declare const actionToggleSearchMenu: {
|
|
|
22
22
|
isLoading: boolean;
|
|
23
23
|
errorMessage: import("react").ReactNode;
|
|
24
24
|
activeEmbeddable: {
|
|
25
|
-
element: import("
|
|
25
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
26
26
|
state: "active" | "hover";
|
|
27
27
|
} | null;
|
|
28
|
-
newElement: import("
|
|
29
|
-
resizingElement: import("
|
|
30
|
-
multiElement: import("
|
|
31
|
-
selectionElement: import("
|
|
28
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
29
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
31
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
32
|
isBindingEnabled: boolean;
|
|
33
|
-
startBoundElement: import("
|
|
34
|
-
suggestedBindings: import("
|
|
35
|
-
frameToHighlight: import("
|
|
33
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
35
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
36
36
|
frameRendering: {
|
|
37
37
|
enabled: boolean;
|
|
38
38
|
name: boolean;
|
|
@@ -40,12 +40,13 @@ export declare const actionToggleSearchMenu: {
|
|
|
40
40
|
clip: boolean;
|
|
41
41
|
};
|
|
42
42
|
editingFrame: string | null;
|
|
43
|
-
elementsToHighlight: import("
|
|
44
|
-
editingTextElement: import("
|
|
45
|
-
editingLinearElement: import("
|
|
43
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
44
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
46
46
|
activeTool: {
|
|
47
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
48
48
|
locked: boolean;
|
|
49
|
+
fromSelection: boolean;
|
|
49
50
|
} & import("../types").ActiveTool;
|
|
50
51
|
penMode: boolean;
|
|
51
52
|
penDetected: boolean;
|
|
@@ -55,18 +56,18 @@ export declare const actionToggleSearchMenu: {
|
|
|
55
56
|
exportScale: number;
|
|
56
57
|
currentItemStrokeColor: string;
|
|
57
58
|
currentItemBackgroundColor: string;
|
|
58
|
-
currentItemFillStyle: import("
|
|
59
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
59
60
|
currentItemStrokeWidth: number;
|
|
60
|
-
currentItemStrokeStyle: import("
|
|
61
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
61
62
|
currentItemRoughness: number;
|
|
62
63
|
currentItemOpacity: number;
|
|
63
64
|
currentItemFontFamily: number;
|
|
64
65
|
currentItemFontSize: number;
|
|
65
66
|
currentItemTextAlign: string;
|
|
66
|
-
currentItemStartArrowhead: import("
|
|
67
|
-
currentItemEndArrowhead: import("
|
|
67
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
68
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
68
69
|
currentHoveredFontFamily: number | null;
|
|
69
|
-
currentItemRoundness: import("
|
|
70
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
70
71
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
71
72
|
viewBackgroundColor: string;
|
|
72
73
|
scrollX: number;
|
|
@@ -79,7 +80,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
79
80
|
zoom: Readonly<{
|
|
80
81
|
value: import("../types").NormalizedZoomValue;
|
|
81
82
|
}>;
|
|
82
|
-
openMenu: "
|
|
83
|
+
openMenu: "shape" | "canvas" | null;
|
|
83
84
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
84
85
|
openDialog: {
|
|
85
86
|
name: "help" | "imageExport" | "jsonExport";
|
|
@@ -93,7 +94,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
93
94
|
sourceElementId: string;
|
|
94
95
|
} | null;
|
|
95
96
|
defaultSidebarDockedPreference: boolean;
|
|
96
|
-
lastPointerDownWith: import("
|
|
97
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
97
98
|
selectedElementIds: Readonly<{
|
|
98
99
|
[id: string]: true;
|
|
99
100
|
}>;
|
|
@@ -111,7 +112,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
111
112
|
duration?: number | undefined;
|
|
112
113
|
} | null;
|
|
113
114
|
zenModeEnabled: boolean;
|
|
114
|
-
theme: import("
|
|
115
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
115
116
|
gridSize: number;
|
|
116
117
|
gridStep: number;
|
|
117
118
|
gridModeEnabled: boolean;
|
|
@@ -132,7 +133,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
132
133
|
[id: string]: true;
|
|
133
134
|
}> | undefined;
|
|
134
135
|
username?: string | null | undefined;
|
|
135
|
-
userState?: import("
|
|
136
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
136
137
|
color?: {
|
|
137
138
|
background: string;
|
|
138
139
|
stroke: string;
|
|
@@ -149,7 +150,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
149
150
|
open: boolean;
|
|
150
151
|
panels: number;
|
|
151
152
|
};
|
|
152
|
-
currentChartType: import("
|
|
153
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
153
154
|
pasteDialog: {
|
|
154
155
|
shown: false;
|
|
155
156
|
data: null;
|
|
@@ -158,13 +159,13 @@ export declare const actionToggleSearchMenu: {
|
|
|
158
159
|
data: import("../charts").Spreadsheet;
|
|
159
160
|
};
|
|
160
161
|
pendingImageElementId: string | null;
|
|
161
|
-
showHyperlinkPopup: false | "
|
|
162
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
162
163
|
linkOpacity: number;
|
|
163
164
|
trayModeEnabled: boolean;
|
|
164
165
|
colorPalette?: {
|
|
165
|
-
canvasBackground: import("
|
|
166
|
-
elementBackground: import("
|
|
167
|
-
elementStroke: import("
|
|
166
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
167
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
168
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
168
169
|
topPicks: {
|
|
169
170
|
canvasBackground: [string, string, string, string, string];
|
|
170
171
|
elementStroke: [string, string, string, string, string];
|
|
@@ -181,6 +182,10 @@ export declare const actionToggleSearchMenu: {
|
|
|
181
182
|
Bold: string;
|
|
182
183
|
Regular: string;
|
|
183
184
|
};
|
|
185
|
+
gridDirection: {
|
|
186
|
+
horizontal: boolean;
|
|
187
|
+
vertical: boolean;
|
|
188
|
+
};
|
|
184
189
|
highlightSearchResult: boolean;
|
|
185
190
|
dynamicStyle: {
|
|
186
191
|
[x: string]: string;
|
|
@@ -191,7 +196,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
191
196
|
nameColor: string;
|
|
192
197
|
};
|
|
193
198
|
invertBindingBehaviour: boolean;
|
|
194
|
-
selectedLinearElement: import("
|
|
199
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
195
200
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
196
201
|
originSnapOffset: {
|
|
197
202
|
x: number;
|
|
@@ -230,17 +235,17 @@ export declare const actionToggleSearchMenu: {
|
|
|
230
235
|
isLoading: boolean;
|
|
231
236
|
errorMessage: import("react").ReactNode;
|
|
232
237
|
activeEmbeddable: {
|
|
233
|
-
element: import("
|
|
238
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
234
239
|
state: "active" | "hover";
|
|
235
240
|
} | null;
|
|
236
|
-
newElement: import("
|
|
237
|
-
resizingElement: import("
|
|
238
|
-
multiElement: import("
|
|
239
|
-
selectionElement: import("
|
|
241
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
242
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
243
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
244
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
240
245
|
isBindingEnabled: boolean;
|
|
241
|
-
startBoundElement: import("
|
|
242
|
-
suggestedBindings: import("
|
|
243
|
-
frameToHighlight: import("
|
|
246
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
247
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
248
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
244
249
|
frameRendering: {
|
|
245
250
|
enabled: boolean;
|
|
246
251
|
name: boolean;
|
|
@@ -248,12 +253,13 @@ export declare const actionToggleSearchMenu: {
|
|
|
248
253
|
clip: boolean;
|
|
249
254
|
};
|
|
250
255
|
editingFrame: string | null;
|
|
251
|
-
elementsToHighlight: import("
|
|
252
|
-
editingTextElement: import("
|
|
253
|
-
editingLinearElement: import("
|
|
256
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
257
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
258
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
254
259
|
activeTool: {
|
|
255
260
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
256
261
|
locked: boolean;
|
|
262
|
+
fromSelection: boolean;
|
|
257
263
|
} & import("../types").ActiveTool;
|
|
258
264
|
penMode: boolean;
|
|
259
265
|
penDetected: boolean;
|
|
@@ -263,18 +269,18 @@ export declare const actionToggleSearchMenu: {
|
|
|
263
269
|
exportScale: number;
|
|
264
270
|
currentItemStrokeColor: string;
|
|
265
271
|
currentItemBackgroundColor: string;
|
|
266
|
-
currentItemFillStyle: import("
|
|
272
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
267
273
|
currentItemStrokeWidth: number;
|
|
268
|
-
currentItemStrokeStyle: import("
|
|
274
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
269
275
|
currentItemRoughness: number;
|
|
270
276
|
currentItemOpacity: number;
|
|
271
277
|
currentItemFontFamily: number;
|
|
272
278
|
currentItemFontSize: number;
|
|
273
279
|
currentItemTextAlign: string;
|
|
274
|
-
currentItemStartArrowhead: import("
|
|
275
|
-
currentItemEndArrowhead: import("
|
|
280
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
281
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
276
282
|
currentHoveredFontFamily: number | null;
|
|
277
|
-
currentItemRoundness: import("
|
|
283
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
278
284
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
279
285
|
viewBackgroundColor: string;
|
|
280
286
|
scrollX: number;
|
|
@@ -287,10 +293,10 @@ export declare const actionToggleSearchMenu: {
|
|
|
287
293
|
zoom: Readonly<{
|
|
288
294
|
value: import("../types").NormalizedZoomValue;
|
|
289
295
|
}>;
|
|
290
|
-
openMenu: "
|
|
296
|
+
openMenu: "shape" | "canvas" | null;
|
|
291
297
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
292
298
|
defaultSidebarDockedPreference: boolean;
|
|
293
|
-
lastPointerDownWith: import("
|
|
299
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
294
300
|
selectedElementIds: Readonly<{
|
|
295
301
|
[id: string]: true;
|
|
296
302
|
}>;
|
|
@@ -308,7 +314,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
308
314
|
duration?: number | undefined;
|
|
309
315
|
} | null;
|
|
310
316
|
zenModeEnabled: boolean;
|
|
311
|
-
theme: import("
|
|
317
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
312
318
|
gridSize: number;
|
|
313
319
|
gridStep: number;
|
|
314
320
|
gridModeEnabled: boolean;
|
|
@@ -329,7 +335,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
329
335
|
[id: string]: true;
|
|
330
336
|
}> | undefined;
|
|
331
337
|
username?: string | null | undefined;
|
|
332
|
-
userState?: import("
|
|
338
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
333
339
|
color?: {
|
|
334
340
|
background: string;
|
|
335
341
|
stroke: string;
|
|
@@ -346,7 +352,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
346
352
|
open: boolean;
|
|
347
353
|
panels: number;
|
|
348
354
|
};
|
|
349
|
-
currentChartType: import("
|
|
355
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
350
356
|
pasteDialog: {
|
|
351
357
|
shown: false;
|
|
352
358
|
data: null;
|
|
@@ -355,13 +361,13 @@ export declare const actionToggleSearchMenu: {
|
|
|
355
361
|
data: import("../charts").Spreadsheet;
|
|
356
362
|
};
|
|
357
363
|
pendingImageElementId: string | null;
|
|
358
|
-
showHyperlinkPopup: false | "
|
|
364
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
359
365
|
linkOpacity: number;
|
|
360
366
|
trayModeEnabled: boolean;
|
|
361
367
|
colorPalette?: {
|
|
362
|
-
canvasBackground: import("
|
|
363
|
-
elementBackground: import("
|
|
364
|
-
elementStroke: import("
|
|
368
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
369
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
370
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
365
371
|
topPicks: {
|
|
366
372
|
canvasBackground: [string, string, string, string, string];
|
|
367
373
|
elementStroke: [string, string, string, string, string];
|
|
@@ -378,6 +384,10 @@ export declare const actionToggleSearchMenu: {
|
|
|
378
384
|
Bold: string;
|
|
379
385
|
Regular: string;
|
|
380
386
|
};
|
|
387
|
+
gridDirection: {
|
|
388
|
+
horizontal: boolean;
|
|
389
|
+
vertical: boolean;
|
|
390
|
+
};
|
|
381
391
|
highlightSearchResult: boolean;
|
|
382
392
|
dynamicStyle: {
|
|
383
393
|
[x: string]: string;
|
|
@@ -388,7 +398,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
388
398
|
nameColor: string;
|
|
389
399
|
};
|
|
390
400
|
invertBindingBehaviour: boolean;
|
|
391
|
-
selectedLinearElement: import("
|
|
401
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
392
402
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
393
403
|
originSnapOffset: {
|
|
394
404
|
x: number;
|
|
@@ -413,7 +423,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
413
423
|
captureUpdate: "EVENTUALLY";
|
|
414
424
|
};
|
|
415
425
|
checked: (appState: AppState) => boolean;
|
|
416
|
-
predicate: (element: readonly import("
|
|
426
|
+
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
417
427
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
418
428
|
} & {
|
|
419
429
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -2,13 +2,12 @@ export declare const actionToggleStats: {
|
|
|
2
2
|
name: "stats";
|
|
3
3
|
label: string;
|
|
4
4
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
paletteName: string;
|
|
6
5
|
viewMode: true;
|
|
7
6
|
trackEvent: {
|
|
8
7
|
category: "menu";
|
|
9
8
|
};
|
|
10
9
|
keywords: string[];
|
|
11
|
-
perform(elements: readonly import("
|
|
10
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
12
11
|
appState: {
|
|
13
12
|
stats: {
|
|
14
13
|
open: boolean;
|
|
@@ -23,17 +22,17 @@ export declare const actionToggleStats: {
|
|
|
23
22
|
isLoading: boolean;
|
|
24
23
|
errorMessage: import("react").ReactNode;
|
|
25
24
|
activeEmbeddable: {
|
|
26
|
-
element: import("
|
|
25
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
26
|
state: "active" | "hover";
|
|
28
27
|
} | null;
|
|
29
|
-
newElement: import("
|
|
30
|
-
resizingElement: import("
|
|
31
|
-
multiElement: import("
|
|
32
|
-
selectionElement: import("
|
|
28
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
29
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
31
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
32
|
isBindingEnabled: boolean;
|
|
34
|
-
startBoundElement: import("
|
|
35
|
-
suggestedBindings: import("
|
|
36
|
-
frameToHighlight: import("
|
|
33
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
35
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
37
36
|
frameRendering: {
|
|
38
37
|
enabled: boolean;
|
|
39
38
|
name: boolean;
|
|
@@ -41,12 +40,13 @@ export declare const actionToggleStats: {
|
|
|
41
40
|
clip: boolean;
|
|
42
41
|
};
|
|
43
42
|
editingFrame: string | null;
|
|
44
|
-
elementsToHighlight: import("
|
|
45
|
-
editingTextElement: import("
|
|
46
|
-
editingLinearElement: import("
|
|
43
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
44
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
45
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
47
46
|
activeTool: {
|
|
48
47
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
49
48
|
locked: boolean;
|
|
49
|
+
fromSelection: boolean;
|
|
50
50
|
} & import("../types").ActiveTool;
|
|
51
51
|
penMode: boolean;
|
|
52
52
|
penDetected: boolean;
|
|
@@ -56,18 +56,18 @@ export declare const actionToggleStats: {
|
|
|
56
56
|
exportScale: number;
|
|
57
57
|
currentItemStrokeColor: string;
|
|
58
58
|
currentItemBackgroundColor: string;
|
|
59
|
-
currentItemFillStyle: import("
|
|
59
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
60
60
|
currentItemStrokeWidth: number;
|
|
61
|
-
currentItemStrokeStyle: import("
|
|
61
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
62
62
|
currentItemRoughness: number;
|
|
63
63
|
currentItemOpacity: number;
|
|
64
64
|
currentItemFontFamily: number;
|
|
65
65
|
currentItemFontSize: number;
|
|
66
66
|
currentItemTextAlign: string;
|
|
67
|
-
currentItemStartArrowhead: import("
|
|
68
|
-
currentItemEndArrowhead: import("
|
|
67
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
68
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
69
69
|
currentHoveredFontFamily: number | null;
|
|
70
|
-
currentItemRoundness: import("
|
|
70
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
71
71
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
72
72
|
viewBackgroundColor: string;
|
|
73
73
|
scrollX: number;
|
|
@@ -80,7 +80,7 @@ export declare const actionToggleStats: {
|
|
|
80
80
|
zoom: Readonly<{
|
|
81
81
|
value: import("../types").NormalizedZoomValue;
|
|
82
82
|
}>;
|
|
83
|
-
openMenu: "
|
|
83
|
+
openMenu: "shape" | "canvas" | null;
|
|
84
84
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
85
85
|
openSidebar: {
|
|
86
86
|
name: string;
|
|
@@ -98,7 +98,7 @@ export declare const actionToggleStats: {
|
|
|
98
98
|
sourceElementId: string;
|
|
99
99
|
} | null;
|
|
100
100
|
defaultSidebarDockedPreference: boolean;
|
|
101
|
-
lastPointerDownWith: import("
|
|
101
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
102
102
|
selectedElementIds: Readonly<{
|
|
103
103
|
[id: string]: true;
|
|
104
104
|
}>;
|
|
@@ -116,7 +116,7 @@ export declare const actionToggleStats: {
|
|
|
116
116
|
duration?: number | undefined;
|
|
117
117
|
} | null;
|
|
118
118
|
zenModeEnabled: boolean;
|
|
119
|
-
theme: import("
|
|
119
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
120
120
|
gridSize: number;
|
|
121
121
|
gridStep: number;
|
|
122
122
|
gridModeEnabled: boolean;
|
|
@@ -137,7 +137,7 @@ export declare const actionToggleStats: {
|
|
|
137
137
|
[id: string]: true;
|
|
138
138
|
}> | undefined;
|
|
139
139
|
username?: string | null | undefined;
|
|
140
|
-
userState?: import("
|
|
140
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
141
141
|
color?: {
|
|
142
142
|
background: string;
|
|
143
143
|
stroke: string;
|
|
@@ -150,7 +150,7 @@ export declare const actionToggleStats: {
|
|
|
150
150
|
isSpeaking?: boolean | undefined;
|
|
151
151
|
isMuted?: boolean | undefined;
|
|
152
152
|
}>>;
|
|
153
|
-
currentChartType: import("
|
|
153
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
154
154
|
pasteDialog: {
|
|
155
155
|
shown: false;
|
|
156
156
|
data: null;
|
|
@@ -159,13 +159,13 @@ export declare const actionToggleStats: {
|
|
|
159
159
|
data: import("../charts").Spreadsheet;
|
|
160
160
|
};
|
|
161
161
|
pendingImageElementId: string | null;
|
|
162
|
-
showHyperlinkPopup: false | "
|
|
162
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
163
163
|
linkOpacity: number;
|
|
164
164
|
trayModeEnabled: boolean;
|
|
165
165
|
colorPalette?: {
|
|
166
|
-
canvasBackground: import("
|
|
167
|
-
elementBackground: import("
|
|
168
|
-
elementStroke: import("
|
|
166
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
167
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
168
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
169
169
|
topPicks: {
|
|
170
170
|
canvasBackground: [string, string, string, string, string];
|
|
171
171
|
elementStroke: [string, string, string, string, string];
|
|
@@ -182,6 +182,10 @@ export declare const actionToggleStats: {
|
|
|
182
182
|
Bold: string;
|
|
183
183
|
Regular: string;
|
|
184
184
|
};
|
|
185
|
+
gridDirection: {
|
|
186
|
+
horizontal: boolean;
|
|
187
|
+
vertical: boolean;
|
|
188
|
+
};
|
|
185
189
|
highlightSearchResult: boolean;
|
|
186
190
|
dynamicStyle: {
|
|
187
191
|
[x: string]: string;
|
|
@@ -192,7 +196,7 @@ export declare const actionToggleStats: {
|
|
|
192
196
|
nameColor: string;
|
|
193
197
|
};
|
|
194
198
|
invertBindingBehaviour: boolean;
|
|
195
|
-
selectedLinearElement: import("
|
|
199
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
196
200
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
197
201
|
originSnapOffset: {
|
|
198
202
|
x: number;
|