@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
|
@@ -5,7 +5,7 @@ export declare const actionCopy: {
|
|
|
5
5
|
trackEvent: {
|
|
6
6
|
category: "element";
|
|
7
7
|
};
|
|
8
|
-
perform: (elements: readonly import("
|
|
8
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
9
9
|
captureUpdate: "EVENTUALLY";
|
|
10
10
|
appState: {
|
|
11
11
|
errorMessage: any;
|
|
@@ -17,17 +17,17 @@ export declare const actionCopy: {
|
|
|
17
17
|
showWelcomeScreen: boolean;
|
|
18
18
|
isLoading: boolean;
|
|
19
19
|
activeEmbeddable: {
|
|
20
|
-
element: import("
|
|
20
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
21
21
|
state: "active" | "hover";
|
|
22
22
|
} | null;
|
|
23
|
-
newElement: import("
|
|
24
|
-
resizingElement: import("
|
|
25
|
-
multiElement: import("
|
|
26
|
-
selectionElement: import("
|
|
23
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
24
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
25
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
26
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
27
|
isBindingEnabled: boolean;
|
|
28
|
-
startBoundElement: import("
|
|
29
|
-
suggestedBindings: import("
|
|
30
|
-
frameToHighlight: import("
|
|
28
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
29
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
30
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
31
|
frameRendering: {
|
|
32
32
|
enabled: boolean;
|
|
33
33
|
name: boolean;
|
|
@@ -35,12 +35,13 @@ export declare const actionCopy: {
|
|
|
35
35
|
clip: boolean;
|
|
36
36
|
};
|
|
37
37
|
editingFrame: string | null;
|
|
38
|
-
elementsToHighlight: import("
|
|
39
|
-
editingTextElement: import("
|
|
40
|
-
editingLinearElement: import("
|
|
38
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
39
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
41
41
|
activeTool: {
|
|
42
42
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
43
|
locked: boolean;
|
|
44
|
+
fromSelection: boolean;
|
|
44
45
|
} & import("../types").ActiveTool;
|
|
45
46
|
penMode: boolean;
|
|
46
47
|
penDetected: boolean;
|
|
@@ -50,18 +51,18 @@ export declare const actionCopy: {
|
|
|
50
51
|
exportScale: number;
|
|
51
52
|
currentItemStrokeColor: string;
|
|
52
53
|
currentItemBackgroundColor: string;
|
|
53
|
-
currentItemFillStyle: import("
|
|
54
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
54
55
|
currentItemStrokeWidth: number;
|
|
55
|
-
currentItemStrokeStyle: import("
|
|
56
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
56
57
|
currentItemRoughness: number;
|
|
57
58
|
currentItemOpacity: number;
|
|
58
59
|
currentItemFontFamily: number;
|
|
59
60
|
currentItemFontSize: number;
|
|
60
61
|
currentItemTextAlign: string;
|
|
61
|
-
currentItemStartArrowhead: import("
|
|
62
|
-
currentItemEndArrowhead: import("
|
|
62
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
63
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
63
64
|
currentHoveredFontFamily: number | null;
|
|
64
|
-
currentItemRoundness: import("
|
|
65
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
65
66
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
66
67
|
viewBackgroundColor: string;
|
|
67
68
|
scrollX: number;
|
|
@@ -74,7 +75,7 @@ export declare const actionCopy: {
|
|
|
74
75
|
zoom: Readonly<{
|
|
75
76
|
value: import("../types").NormalizedZoomValue;
|
|
76
77
|
}>;
|
|
77
|
-
openMenu: "
|
|
78
|
+
openMenu: "shape" | "canvas" | null;
|
|
78
79
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
79
80
|
openSidebar: {
|
|
80
81
|
name: string;
|
|
@@ -92,7 +93,7 @@ export declare const actionCopy: {
|
|
|
92
93
|
sourceElementId: string;
|
|
93
94
|
} | null;
|
|
94
95
|
defaultSidebarDockedPreference: boolean;
|
|
95
|
-
lastPointerDownWith: import("
|
|
96
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
96
97
|
selectedElementIds: Readonly<{
|
|
97
98
|
[id: string]: true;
|
|
98
99
|
}>;
|
|
@@ -110,7 +111,7 @@ export declare const actionCopy: {
|
|
|
110
111
|
duration?: number | undefined;
|
|
111
112
|
} | null;
|
|
112
113
|
zenModeEnabled: boolean;
|
|
113
|
-
theme: import("
|
|
114
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
114
115
|
gridSize: number;
|
|
115
116
|
gridStep: number;
|
|
116
117
|
gridModeEnabled: boolean;
|
|
@@ -131,7 +132,7 @@ export declare const actionCopy: {
|
|
|
131
132
|
[id: string]: true;
|
|
132
133
|
}> | undefined;
|
|
133
134
|
username?: string | null | undefined;
|
|
134
|
-
userState?: import("
|
|
135
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
135
136
|
color?: {
|
|
136
137
|
background: string;
|
|
137
138
|
stroke: string;
|
|
@@ -148,7 +149,7 @@ export declare const actionCopy: {
|
|
|
148
149
|
open: boolean;
|
|
149
150
|
panels: number;
|
|
150
151
|
};
|
|
151
|
-
currentChartType: import("
|
|
152
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
152
153
|
pasteDialog: {
|
|
153
154
|
shown: false;
|
|
154
155
|
data: null;
|
|
@@ -157,13 +158,13 @@ export declare const actionCopy: {
|
|
|
157
158
|
data: import("../charts").Spreadsheet;
|
|
158
159
|
};
|
|
159
160
|
pendingImageElementId: string | null;
|
|
160
|
-
showHyperlinkPopup: false | "
|
|
161
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
161
162
|
linkOpacity: number;
|
|
162
163
|
trayModeEnabled: boolean;
|
|
163
164
|
colorPalette?: {
|
|
164
|
-
canvasBackground: import("
|
|
165
|
-
elementBackground: import("
|
|
166
|
-
elementStroke: import("
|
|
165
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
166
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
167
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
167
168
|
topPicks: {
|
|
168
169
|
canvasBackground: [string, string, string, string, string];
|
|
169
170
|
elementStroke: [string, string, string, string, string];
|
|
@@ -180,6 +181,10 @@ export declare const actionCopy: {
|
|
|
180
181
|
Bold: string;
|
|
181
182
|
Regular: string;
|
|
182
183
|
};
|
|
184
|
+
gridDirection: {
|
|
185
|
+
horizontal: boolean;
|
|
186
|
+
vertical: boolean;
|
|
187
|
+
};
|
|
183
188
|
highlightSearchResult: boolean;
|
|
184
189
|
dynamicStyle: {
|
|
185
190
|
[x: string]: string;
|
|
@@ -190,7 +195,7 @@ export declare const actionCopy: {
|
|
|
190
195
|
nameColor: string;
|
|
191
196
|
};
|
|
192
197
|
invertBindingBehaviour: boolean;
|
|
193
|
-
selectedLinearElement: import("
|
|
198
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
194
199
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
195
200
|
originSnapOffset: {
|
|
196
201
|
x: number;
|
|
@@ -226,7 +231,7 @@ export declare const actionPaste: {
|
|
|
226
231
|
trackEvent: {
|
|
227
232
|
category: "element";
|
|
228
233
|
};
|
|
229
|
-
perform: (elements: readonly import("
|
|
234
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
230
235
|
captureUpdate: "EVENTUALLY";
|
|
231
236
|
appState: {
|
|
232
237
|
errorMessage: string;
|
|
@@ -238,17 +243,17 @@ export declare const actionPaste: {
|
|
|
238
243
|
showWelcomeScreen: boolean;
|
|
239
244
|
isLoading: boolean;
|
|
240
245
|
activeEmbeddable: {
|
|
241
|
-
element: import("
|
|
246
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
242
247
|
state: "active" | "hover";
|
|
243
248
|
} | null;
|
|
244
|
-
newElement: import("
|
|
245
|
-
resizingElement: import("
|
|
246
|
-
multiElement: import("
|
|
247
|
-
selectionElement: import("
|
|
249
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
250
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
251
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
252
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
248
253
|
isBindingEnabled: boolean;
|
|
249
|
-
startBoundElement: import("
|
|
250
|
-
suggestedBindings: import("
|
|
251
|
-
frameToHighlight: import("
|
|
254
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
255
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
256
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
252
257
|
frameRendering: {
|
|
253
258
|
enabled: boolean;
|
|
254
259
|
name: boolean;
|
|
@@ -256,12 +261,13 @@ export declare const actionPaste: {
|
|
|
256
261
|
clip: boolean;
|
|
257
262
|
};
|
|
258
263
|
editingFrame: string | null;
|
|
259
|
-
elementsToHighlight: import("
|
|
260
|
-
editingTextElement: import("
|
|
261
|
-
editingLinearElement: import("
|
|
264
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
265
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
266
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
262
267
|
activeTool: {
|
|
263
268
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
264
269
|
locked: boolean;
|
|
270
|
+
fromSelection: boolean;
|
|
265
271
|
} & import("../types").ActiveTool;
|
|
266
272
|
penMode: boolean;
|
|
267
273
|
penDetected: boolean;
|
|
@@ -271,18 +277,18 @@ export declare const actionPaste: {
|
|
|
271
277
|
exportScale: number;
|
|
272
278
|
currentItemStrokeColor: string;
|
|
273
279
|
currentItemBackgroundColor: string;
|
|
274
|
-
currentItemFillStyle: import("
|
|
280
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
275
281
|
currentItemStrokeWidth: number;
|
|
276
|
-
currentItemStrokeStyle: import("
|
|
282
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
277
283
|
currentItemRoughness: number;
|
|
278
284
|
currentItemOpacity: number;
|
|
279
285
|
currentItemFontFamily: number;
|
|
280
286
|
currentItemFontSize: number;
|
|
281
287
|
currentItemTextAlign: string;
|
|
282
|
-
currentItemStartArrowhead: import("
|
|
283
|
-
currentItemEndArrowhead: import("
|
|
288
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
289
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
284
290
|
currentHoveredFontFamily: number | null;
|
|
285
|
-
currentItemRoundness: import("
|
|
291
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
286
292
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
287
293
|
viewBackgroundColor: string;
|
|
288
294
|
scrollX: number;
|
|
@@ -295,7 +301,7 @@ export declare const actionPaste: {
|
|
|
295
301
|
zoom: Readonly<{
|
|
296
302
|
value: import("../types").NormalizedZoomValue;
|
|
297
303
|
}>;
|
|
298
|
-
openMenu: "
|
|
304
|
+
openMenu: "shape" | "canvas" | null;
|
|
299
305
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
300
306
|
openSidebar: {
|
|
301
307
|
name: string;
|
|
@@ -313,7 +319,7 @@ export declare const actionPaste: {
|
|
|
313
319
|
sourceElementId: string;
|
|
314
320
|
} | null;
|
|
315
321
|
defaultSidebarDockedPreference: boolean;
|
|
316
|
-
lastPointerDownWith: import("
|
|
322
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
317
323
|
selectedElementIds: Readonly<{
|
|
318
324
|
[id: string]: true;
|
|
319
325
|
}>;
|
|
@@ -331,7 +337,7 @@ export declare const actionPaste: {
|
|
|
331
337
|
duration?: number | undefined;
|
|
332
338
|
} | null;
|
|
333
339
|
zenModeEnabled: boolean;
|
|
334
|
-
theme: import("
|
|
340
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
335
341
|
gridSize: number;
|
|
336
342
|
gridStep: number;
|
|
337
343
|
gridModeEnabled: boolean;
|
|
@@ -352,7 +358,7 @@ export declare const actionPaste: {
|
|
|
352
358
|
[id: string]: true;
|
|
353
359
|
}> | undefined;
|
|
354
360
|
username?: string | null | undefined;
|
|
355
|
-
userState?: import("
|
|
361
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
356
362
|
color?: {
|
|
357
363
|
background: string;
|
|
358
364
|
stroke: string;
|
|
@@ -369,7 +375,7 @@ export declare const actionPaste: {
|
|
|
369
375
|
open: boolean;
|
|
370
376
|
panels: number;
|
|
371
377
|
};
|
|
372
|
-
currentChartType: import("
|
|
378
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
373
379
|
pasteDialog: {
|
|
374
380
|
shown: false;
|
|
375
381
|
data: null;
|
|
@@ -378,13 +384,13 @@ export declare const actionPaste: {
|
|
|
378
384
|
data: import("../charts").Spreadsheet;
|
|
379
385
|
};
|
|
380
386
|
pendingImageElementId: string | null;
|
|
381
|
-
showHyperlinkPopup: false | "
|
|
387
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
382
388
|
linkOpacity: number;
|
|
383
389
|
trayModeEnabled: boolean;
|
|
384
390
|
colorPalette?: {
|
|
385
|
-
canvasBackground: import("
|
|
386
|
-
elementBackground: import("
|
|
387
|
-
elementStroke: import("
|
|
391
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
392
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
393
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
388
394
|
topPicks: {
|
|
389
395
|
canvasBackground: [string, string, string, string, string];
|
|
390
396
|
elementStroke: [string, string, string, string, string];
|
|
@@ -401,6 +407,10 @@ export declare const actionPaste: {
|
|
|
401
407
|
Bold: string;
|
|
402
408
|
Regular: string;
|
|
403
409
|
};
|
|
410
|
+
gridDirection: {
|
|
411
|
+
horizontal: boolean;
|
|
412
|
+
vertical: boolean;
|
|
413
|
+
};
|
|
404
414
|
highlightSearchResult: boolean;
|
|
405
415
|
dynamicStyle: {
|
|
406
416
|
[x: string]: string;
|
|
@@ -411,7 +421,7 @@ export declare const actionPaste: {
|
|
|
411
421
|
nameColor: string;
|
|
412
422
|
};
|
|
413
423
|
invertBindingBehaviour: boolean;
|
|
414
|
-
selectedLinearElement: import("
|
|
424
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
415
425
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
416
426
|
originSnapOffset: {
|
|
417
427
|
x: number;
|
|
@@ -448,8 +458,8 @@ export declare const actionCut: {
|
|
|
448
458
|
trackEvent: {
|
|
449
459
|
category: "element";
|
|
450
460
|
};
|
|
451
|
-
perform: (elements: readonly import("
|
|
452
|
-
elements: import("
|
|
461
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
462
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
453
463
|
appState: {
|
|
454
464
|
editingLinearElement: null;
|
|
455
465
|
contextMenu: {
|
|
@@ -461,17 +471,17 @@ export declare const actionCut: {
|
|
|
461
471
|
isLoading: boolean;
|
|
462
472
|
errorMessage: import("react").ReactNode;
|
|
463
473
|
activeEmbeddable: {
|
|
464
|
-
element: import("
|
|
474
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
465
475
|
state: "active" | "hover";
|
|
466
476
|
} | null;
|
|
467
|
-
newElement: import("
|
|
468
|
-
resizingElement: import("
|
|
469
|
-
multiElement: import("
|
|
470
|
-
selectionElement: import("
|
|
477
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
478
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
479
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
480
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
471
481
|
isBindingEnabled: boolean;
|
|
472
|
-
startBoundElement: import("
|
|
473
|
-
suggestedBindings: import("
|
|
474
|
-
frameToHighlight: import("
|
|
482
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
483
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
484
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
475
485
|
frameRendering: {
|
|
476
486
|
enabled: boolean;
|
|
477
487
|
name: boolean;
|
|
@@ -479,11 +489,12 @@ export declare const actionCut: {
|
|
|
479
489
|
clip: boolean;
|
|
480
490
|
};
|
|
481
491
|
editingFrame: string | null;
|
|
482
|
-
elementsToHighlight: import("
|
|
483
|
-
editingTextElement: import("
|
|
492
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
493
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
484
494
|
activeTool: {
|
|
485
495
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
486
496
|
locked: boolean;
|
|
497
|
+
fromSelection: boolean;
|
|
487
498
|
} & import("../types").ActiveTool;
|
|
488
499
|
penMode: boolean;
|
|
489
500
|
penDetected: boolean;
|
|
@@ -493,18 +504,18 @@ export declare const actionCut: {
|
|
|
493
504
|
exportScale: number;
|
|
494
505
|
currentItemStrokeColor: string;
|
|
495
506
|
currentItemBackgroundColor: string;
|
|
496
|
-
currentItemFillStyle: import("
|
|
507
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
497
508
|
currentItemStrokeWidth: number;
|
|
498
|
-
currentItemStrokeStyle: import("
|
|
509
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
499
510
|
currentItemRoughness: number;
|
|
500
511
|
currentItemOpacity: number;
|
|
501
512
|
currentItemFontFamily: number;
|
|
502
513
|
currentItemFontSize: number;
|
|
503
514
|
currentItemTextAlign: string;
|
|
504
|
-
currentItemStartArrowhead: import("
|
|
505
|
-
currentItemEndArrowhead: import("
|
|
515
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
516
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
506
517
|
currentHoveredFontFamily: number | null;
|
|
507
|
-
currentItemRoundness: import("
|
|
518
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
508
519
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
509
520
|
viewBackgroundColor: string;
|
|
510
521
|
scrollX: number;
|
|
@@ -517,7 +528,7 @@ export declare const actionCut: {
|
|
|
517
528
|
zoom: Readonly<{
|
|
518
529
|
value: import("../types").NormalizedZoomValue;
|
|
519
530
|
}>;
|
|
520
|
-
openMenu: "
|
|
531
|
+
openMenu: "shape" | "canvas" | null;
|
|
521
532
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
522
533
|
openSidebar: {
|
|
523
534
|
name: string;
|
|
@@ -535,7 +546,7 @@ export declare const actionCut: {
|
|
|
535
546
|
sourceElementId: string;
|
|
536
547
|
} | null;
|
|
537
548
|
defaultSidebarDockedPreference: boolean;
|
|
538
|
-
lastPointerDownWith: import("
|
|
549
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
539
550
|
selectedElementIds: Readonly<{
|
|
540
551
|
[id: string]: true;
|
|
541
552
|
}>;
|
|
@@ -553,7 +564,7 @@ export declare const actionCut: {
|
|
|
553
564
|
duration?: number | undefined;
|
|
554
565
|
} | null;
|
|
555
566
|
zenModeEnabled: boolean;
|
|
556
|
-
theme: import("
|
|
567
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
557
568
|
gridSize: number;
|
|
558
569
|
gridStep: number;
|
|
559
570
|
gridModeEnabled: boolean;
|
|
@@ -574,7 +585,7 @@ export declare const actionCut: {
|
|
|
574
585
|
[id: string]: true;
|
|
575
586
|
}> | undefined;
|
|
576
587
|
username?: string | null | undefined;
|
|
577
|
-
userState?: import("
|
|
588
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
578
589
|
color?: {
|
|
579
590
|
background: string;
|
|
580
591
|
stroke: string;
|
|
@@ -591,7 +602,7 @@ export declare const actionCut: {
|
|
|
591
602
|
open: boolean;
|
|
592
603
|
panels: number;
|
|
593
604
|
};
|
|
594
|
-
currentChartType: import("
|
|
605
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
595
606
|
pasteDialog: {
|
|
596
607
|
shown: false;
|
|
597
608
|
data: null;
|
|
@@ -600,13 +611,13 @@ export declare const actionCut: {
|
|
|
600
611
|
data: import("../charts").Spreadsheet;
|
|
601
612
|
};
|
|
602
613
|
pendingImageElementId: string | null;
|
|
603
|
-
showHyperlinkPopup: false | "
|
|
614
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
604
615
|
linkOpacity: number;
|
|
605
616
|
trayModeEnabled: boolean;
|
|
606
617
|
colorPalette?: {
|
|
607
|
-
canvasBackground: import("
|
|
608
|
-
elementBackground: import("
|
|
609
|
-
elementStroke: import("
|
|
618
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
619
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
620
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
610
621
|
topPicks: {
|
|
611
622
|
canvasBackground: [string, string, string, string, string];
|
|
612
623
|
elementStroke: [string, string, string, string, string];
|
|
@@ -623,6 +634,10 @@ export declare const actionCut: {
|
|
|
623
634
|
Bold: string;
|
|
624
635
|
Regular: string;
|
|
625
636
|
};
|
|
637
|
+
gridDirection: {
|
|
638
|
+
horizontal: boolean;
|
|
639
|
+
vertical: boolean;
|
|
640
|
+
};
|
|
626
641
|
highlightSearchResult: boolean;
|
|
627
642
|
dynamicStyle: {
|
|
628
643
|
[x: string]: string;
|
|
@@ -633,7 +648,7 @@ export declare const actionCut: {
|
|
|
633
648
|
nameColor: string;
|
|
634
649
|
};
|
|
635
650
|
invertBindingBehaviour: boolean;
|
|
636
|
-
selectedLinearElement: import("
|
|
651
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
637
652
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
638
653
|
originSnapOffset: {
|
|
639
654
|
x: number;
|
|
@@ -657,12 +672,12 @@ export declare const actionCut: {
|
|
|
657
672
|
};
|
|
658
673
|
captureUpdate: "IMMEDIATELY";
|
|
659
674
|
} | {
|
|
660
|
-
elements: readonly import("
|
|
675
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
661
676
|
appState: {
|
|
662
677
|
editingLinearElement: {
|
|
663
678
|
selectedPointsIndices: number[];
|
|
664
|
-
startBindingElement: import("
|
|
665
|
-
endBindingElement: import("
|
|
679
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
680
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
666
681
|
elementId: string & {
|
|
667
682
|
_brand: "excalidrawLinearElementId";
|
|
668
683
|
};
|
|
@@ -699,17 +714,17 @@ export declare const actionCut: {
|
|
|
699
714
|
isLoading: boolean;
|
|
700
715
|
errorMessage: import("react").ReactNode;
|
|
701
716
|
activeEmbeddable: {
|
|
702
|
-
element: import("
|
|
717
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
703
718
|
state: "active" | "hover";
|
|
704
719
|
} | null;
|
|
705
|
-
newElement: import("
|
|
706
|
-
resizingElement: import("
|
|
707
|
-
multiElement: import("
|
|
708
|
-
selectionElement: import("
|
|
720
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
721
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
722
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
723
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
709
724
|
isBindingEnabled: boolean;
|
|
710
|
-
startBoundElement: import("
|
|
711
|
-
suggestedBindings: import("
|
|
712
|
-
frameToHighlight: import("
|
|
725
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
726
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
727
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
713
728
|
frameRendering: {
|
|
714
729
|
enabled: boolean;
|
|
715
730
|
name: boolean;
|
|
@@ -717,11 +732,12 @@ export declare const actionCut: {
|
|
|
717
732
|
clip: boolean;
|
|
718
733
|
};
|
|
719
734
|
editingFrame: string | null;
|
|
720
|
-
elementsToHighlight: import("
|
|
721
|
-
editingTextElement: import("
|
|
735
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
736
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
722
737
|
activeTool: {
|
|
723
738
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
724
739
|
locked: boolean;
|
|
740
|
+
fromSelection: boolean;
|
|
725
741
|
} & import("../types").ActiveTool;
|
|
726
742
|
penMode: boolean;
|
|
727
743
|
penDetected: boolean;
|
|
@@ -731,18 +747,18 @@ export declare const actionCut: {
|
|
|
731
747
|
exportScale: number;
|
|
732
748
|
currentItemStrokeColor: string;
|
|
733
749
|
currentItemBackgroundColor: string;
|
|
734
|
-
currentItemFillStyle: import("
|
|
750
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
735
751
|
currentItemStrokeWidth: number;
|
|
736
|
-
currentItemStrokeStyle: import("
|
|
752
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
737
753
|
currentItemRoughness: number;
|
|
738
754
|
currentItemOpacity: number;
|
|
739
755
|
currentItemFontFamily: number;
|
|
740
756
|
currentItemFontSize: number;
|
|
741
757
|
currentItemTextAlign: string;
|
|
742
|
-
currentItemStartArrowhead: import("
|
|
743
|
-
currentItemEndArrowhead: import("
|
|
758
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
759
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
744
760
|
currentHoveredFontFamily: number | null;
|
|
745
|
-
currentItemRoundness: import("
|
|
761
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
746
762
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
747
763
|
viewBackgroundColor: string;
|
|
748
764
|
scrollX: number;
|
|
@@ -755,7 +771,7 @@ export declare const actionCut: {
|
|
|
755
771
|
zoom: Readonly<{
|
|
756
772
|
value: import("../types").NormalizedZoomValue;
|
|
757
773
|
}>;
|
|
758
|
-
openMenu: "
|
|
774
|
+
openMenu: "shape" | "canvas" | null;
|
|
759
775
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
760
776
|
openSidebar: {
|
|
761
777
|
name: string;
|
|
@@ -773,7 +789,7 @@ export declare const actionCut: {
|
|
|
773
789
|
sourceElementId: string;
|
|
774
790
|
} | null;
|
|
775
791
|
defaultSidebarDockedPreference: boolean;
|
|
776
|
-
lastPointerDownWith: import("
|
|
792
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
777
793
|
selectedElementIds: Readonly<{
|
|
778
794
|
[id: string]: true;
|
|
779
795
|
}>;
|
|
@@ -791,7 +807,7 @@ export declare const actionCut: {
|
|
|
791
807
|
duration?: number | undefined;
|
|
792
808
|
} | null;
|
|
793
809
|
zenModeEnabled: boolean;
|
|
794
|
-
theme: import("
|
|
810
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
795
811
|
gridSize: number;
|
|
796
812
|
gridStep: number;
|
|
797
813
|
gridModeEnabled: boolean;
|
|
@@ -812,7 +828,7 @@ export declare const actionCut: {
|
|
|
812
828
|
[id: string]: true;
|
|
813
829
|
}> | undefined;
|
|
814
830
|
username?: string | null | undefined;
|
|
815
|
-
userState?: import("
|
|
831
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
816
832
|
color?: {
|
|
817
833
|
background: string;
|
|
818
834
|
stroke: string;
|
|
@@ -829,7 +845,7 @@ export declare const actionCut: {
|
|
|
829
845
|
open: boolean;
|
|
830
846
|
panels: number;
|
|
831
847
|
};
|
|
832
|
-
currentChartType: import("
|
|
848
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
833
849
|
pasteDialog: {
|
|
834
850
|
shown: false;
|
|
835
851
|
data: null;
|
|
@@ -838,13 +854,13 @@ export declare const actionCut: {
|
|
|
838
854
|
data: import("../charts").Spreadsheet;
|
|
839
855
|
};
|
|
840
856
|
pendingImageElementId: string | null;
|
|
841
|
-
showHyperlinkPopup: false | "
|
|
857
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
842
858
|
linkOpacity: number;
|
|
843
859
|
trayModeEnabled: boolean;
|
|
844
860
|
colorPalette?: {
|
|
845
|
-
canvasBackground: import("
|
|
846
|
-
elementBackground: import("
|
|
847
|
-
elementStroke: import("
|
|
861
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
862
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
863
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
848
864
|
topPicks: {
|
|
849
865
|
canvasBackground: [string, string, string, string, string];
|
|
850
866
|
elementStroke: [string, string, string, string, string];
|
|
@@ -861,6 +877,10 @@ export declare const actionCut: {
|
|
|
861
877
|
Bold: string;
|
|
862
878
|
Regular: string;
|
|
863
879
|
};
|
|
880
|
+
gridDirection: {
|
|
881
|
+
horizontal: boolean;
|
|
882
|
+
vertical: boolean;
|
|
883
|
+
};
|
|
864
884
|
highlightSearchResult: boolean;
|
|
865
885
|
dynamicStyle: {
|
|
866
886
|
[x: string]: string;
|
|
@@ -871,7 +891,7 @@ export declare const actionCut: {
|
|
|
871
891
|
nameColor: string;
|
|
872
892
|
};
|
|
873
893
|
invertBindingBehaviour: boolean;
|
|
874
|
-
selectedLinearElement: import("
|
|
894
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
875
895
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
876
896
|
originSnapOffset: {
|
|
877
897
|
x: number;
|
|
@@ -895,21 +915,23 @@ export declare const actionCut: {
|
|
|
895
915
|
};
|
|
896
916
|
captureUpdate: "IMMEDIATELY";
|
|
897
917
|
} | {
|
|
898
|
-
elements: import("
|
|
918
|
+
elements: import("@excalidraw/element/types").ExcalidrawElement[];
|
|
899
919
|
appState: {
|
|
900
920
|
activeTool: {
|
|
901
921
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
902
922
|
locked: boolean;
|
|
923
|
+
fromSelection: boolean;
|
|
903
924
|
} & import("../types").ActiveTool;
|
|
904
925
|
multiElement: null;
|
|
905
926
|
activeEmbeddable: null;
|
|
927
|
+
selectedLinearElement: null;
|
|
928
|
+
editingGroupId: string | null;
|
|
906
929
|
selectedElementIds: Readonly<{
|
|
907
930
|
[id: string]: true;
|
|
908
931
|
}>;
|
|
909
932
|
selectedGroupIds: {
|
|
910
933
|
[groupId: string]: boolean;
|
|
911
934
|
};
|
|
912
|
-
editingGroupId: string | null;
|
|
913
935
|
contextMenu: {
|
|
914
936
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
915
937
|
top: number;
|
|
@@ -918,13 +940,13 @@ export declare const actionCut: {
|
|
|
918
940
|
showWelcomeScreen: boolean;
|
|
919
941
|
isLoading: boolean;
|
|
920
942
|
errorMessage: import("react").ReactNode;
|
|
921
|
-
newElement: import("
|
|
922
|
-
resizingElement: import("
|
|
923
|
-
selectionElement: import("
|
|
943
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
944
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
945
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
924
946
|
isBindingEnabled: boolean;
|
|
925
|
-
startBoundElement: import("
|
|
926
|
-
suggestedBindings: import("
|
|
927
|
-
frameToHighlight: import("
|
|
947
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
948
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
949
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
928
950
|
frameRendering: {
|
|
929
951
|
enabled: boolean;
|
|
930
952
|
name: boolean;
|
|
@@ -932,9 +954,9 @@ export declare const actionCut: {
|
|
|
932
954
|
clip: boolean;
|
|
933
955
|
};
|
|
934
956
|
editingFrame: string | null;
|
|
935
|
-
elementsToHighlight: import("
|
|
936
|
-
editingTextElement: import("
|
|
937
|
-
editingLinearElement: import("
|
|
957
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
958
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
959
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
938
960
|
penMode: boolean;
|
|
939
961
|
penDetected: boolean;
|
|
940
962
|
exportBackground: boolean;
|
|
@@ -943,18 +965,18 @@ export declare const actionCut: {
|
|
|
943
965
|
exportScale: number;
|
|
944
966
|
currentItemStrokeColor: string;
|
|
945
967
|
currentItemBackgroundColor: string;
|
|
946
|
-
currentItemFillStyle: import("
|
|
968
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
947
969
|
currentItemStrokeWidth: number;
|
|
948
|
-
currentItemStrokeStyle: import("
|
|
970
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
949
971
|
currentItemRoughness: number;
|
|
950
972
|
currentItemOpacity: number;
|
|
951
973
|
currentItemFontFamily: number;
|
|
952
974
|
currentItemFontSize: number;
|
|
953
975
|
currentItemTextAlign: string;
|
|
954
|
-
currentItemStartArrowhead: import("
|
|
955
|
-
currentItemEndArrowhead: import("
|
|
976
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
977
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
956
978
|
currentHoveredFontFamily: number | null;
|
|
957
|
-
currentItemRoundness: import("
|
|
979
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
958
980
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
959
981
|
viewBackgroundColor: string;
|
|
960
982
|
scrollX: number;
|
|
@@ -967,7 +989,7 @@ export declare const actionCut: {
|
|
|
967
989
|
zoom: Readonly<{
|
|
968
990
|
value: import("../types").NormalizedZoomValue;
|
|
969
991
|
}>;
|
|
970
|
-
openMenu: "
|
|
992
|
+
openMenu: "shape" | "canvas" | null;
|
|
971
993
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
972
994
|
openSidebar: {
|
|
973
995
|
name: string;
|
|
@@ -985,7 +1007,7 @@ export declare const actionCut: {
|
|
|
985
1007
|
sourceElementId: string;
|
|
986
1008
|
} | null;
|
|
987
1009
|
defaultSidebarDockedPreference: boolean;
|
|
988
|
-
lastPointerDownWith: import("
|
|
1010
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
989
1011
|
hoveredElementIds: Readonly<{
|
|
990
1012
|
[id: string]: true;
|
|
991
1013
|
}>;
|
|
@@ -1000,7 +1022,7 @@ export declare const actionCut: {
|
|
|
1000
1022
|
duration?: number | undefined;
|
|
1001
1023
|
} | null;
|
|
1002
1024
|
zenModeEnabled: boolean;
|
|
1003
|
-
theme: import("
|
|
1025
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1004
1026
|
gridSize: number;
|
|
1005
1027
|
gridStep: number;
|
|
1006
1028
|
gridModeEnabled: boolean;
|
|
@@ -1017,7 +1039,7 @@ export declare const actionCut: {
|
|
|
1017
1039
|
[id: string]: true;
|
|
1018
1040
|
}> | undefined;
|
|
1019
1041
|
username?: string | null | undefined;
|
|
1020
|
-
userState?: import("
|
|
1042
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1021
1043
|
color?: {
|
|
1022
1044
|
background: string;
|
|
1023
1045
|
stroke: string;
|
|
@@ -1034,7 +1056,7 @@ export declare const actionCut: {
|
|
|
1034
1056
|
open: boolean;
|
|
1035
1057
|
panels: number;
|
|
1036
1058
|
};
|
|
1037
|
-
currentChartType: import("
|
|
1059
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1038
1060
|
pasteDialog: {
|
|
1039
1061
|
shown: false;
|
|
1040
1062
|
data: null;
|
|
@@ -1043,13 +1065,13 @@ export declare const actionCut: {
|
|
|
1043
1065
|
data: import("../charts").Spreadsheet;
|
|
1044
1066
|
};
|
|
1045
1067
|
pendingImageElementId: string | null;
|
|
1046
|
-
showHyperlinkPopup: false | "
|
|
1068
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1047
1069
|
linkOpacity: number;
|
|
1048
1070
|
trayModeEnabled: boolean;
|
|
1049
1071
|
colorPalette?: {
|
|
1050
|
-
canvasBackground: import("
|
|
1051
|
-
elementBackground: import("
|
|
1052
|
-
elementStroke: import("
|
|
1072
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1073
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1074
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1053
1075
|
topPicks: {
|
|
1054
1076
|
canvasBackground: [string, string, string, string, string];
|
|
1055
1077
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1066,6 +1088,10 @@ export declare const actionCut: {
|
|
|
1066
1088
|
Bold: string;
|
|
1067
1089
|
Regular: string;
|
|
1068
1090
|
};
|
|
1091
|
+
gridDirection: {
|
|
1092
|
+
horizontal: boolean;
|
|
1093
|
+
vertical: boolean;
|
|
1094
|
+
};
|
|
1069
1095
|
highlightSearchResult: boolean;
|
|
1070
1096
|
dynamicStyle: {
|
|
1071
1097
|
[x: string]: string;
|
|
@@ -1076,7 +1102,6 @@ export declare const actionCut: {
|
|
|
1076
1102
|
nameColor: string;
|
|
1077
1103
|
};
|
|
1078
1104
|
invertBindingBehaviour: boolean;
|
|
1079
|
-
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1080
1105
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1081
1106
|
originSnapOffset: {
|
|
1082
1107
|
x: number;
|
|
@@ -1111,7 +1136,7 @@ export declare const actionCopyAsSvg: {
|
|
|
1111
1136
|
trackEvent: {
|
|
1112
1137
|
category: "element";
|
|
1113
1138
|
};
|
|
1114
|
-
perform: (elements: readonly import("
|
|
1139
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1115
1140
|
captureUpdate: "EVENTUALLY";
|
|
1116
1141
|
appState?: undefined;
|
|
1117
1142
|
} | {
|
|
@@ -1129,7 +1154,7 @@ export declare const actionCopyAsSvg: {
|
|
|
1129
1154
|
};
|
|
1130
1155
|
captureUpdate: "EVENTUALLY";
|
|
1131
1156
|
}>;
|
|
1132
|
-
predicate: (elements: readonly import("
|
|
1157
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1133
1158
|
keywords: string[];
|
|
1134
1159
|
} & {
|
|
1135
1160
|
keyTest?: undefined;
|
|
@@ -1141,7 +1166,7 @@ export declare const actionCopyAsPng: {
|
|
|
1141
1166
|
trackEvent: {
|
|
1142
1167
|
category: "element";
|
|
1143
1168
|
};
|
|
1144
|
-
perform: (elements: readonly import("
|
|
1169
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1145
1170
|
captureUpdate: "EVENTUALLY";
|
|
1146
1171
|
appState?: undefined;
|
|
1147
1172
|
} | {
|
|
@@ -1155,17 +1180,17 @@ export declare const actionCopyAsPng: {
|
|
|
1155
1180
|
showWelcomeScreen: boolean;
|
|
1156
1181
|
isLoading: boolean;
|
|
1157
1182
|
activeEmbeddable: {
|
|
1158
|
-
element: import("
|
|
1183
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1159
1184
|
state: "active" | "hover";
|
|
1160
1185
|
} | null;
|
|
1161
|
-
newElement: import("
|
|
1162
|
-
resizingElement: import("
|
|
1163
|
-
multiElement: import("
|
|
1164
|
-
selectionElement: import("
|
|
1186
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1187
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1188
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1189
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1165
1190
|
isBindingEnabled: boolean;
|
|
1166
|
-
startBoundElement: import("
|
|
1167
|
-
suggestedBindings: import("
|
|
1168
|
-
frameToHighlight: import("
|
|
1191
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1192
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1193
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1169
1194
|
frameRendering: {
|
|
1170
1195
|
enabled: boolean;
|
|
1171
1196
|
name: boolean;
|
|
@@ -1173,12 +1198,13 @@ export declare const actionCopyAsPng: {
|
|
|
1173
1198
|
clip: boolean;
|
|
1174
1199
|
};
|
|
1175
1200
|
editingFrame: string | null;
|
|
1176
|
-
elementsToHighlight: import("
|
|
1177
|
-
editingTextElement: import("
|
|
1178
|
-
editingLinearElement: import("
|
|
1201
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
1202
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1203
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1179
1204
|
activeTool: {
|
|
1180
1205
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1181
1206
|
locked: boolean;
|
|
1207
|
+
fromSelection: boolean;
|
|
1182
1208
|
} & import("../types").ActiveTool;
|
|
1183
1209
|
penMode: boolean;
|
|
1184
1210
|
penDetected: boolean;
|
|
@@ -1188,18 +1214,18 @@ export declare const actionCopyAsPng: {
|
|
|
1188
1214
|
exportScale: number;
|
|
1189
1215
|
currentItemStrokeColor: string;
|
|
1190
1216
|
currentItemBackgroundColor: string;
|
|
1191
|
-
currentItemFillStyle: import("
|
|
1217
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1192
1218
|
currentItemStrokeWidth: number;
|
|
1193
|
-
currentItemStrokeStyle: import("
|
|
1219
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1194
1220
|
currentItemRoughness: number;
|
|
1195
1221
|
currentItemOpacity: number;
|
|
1196
1222
|
currentItemFontFamily: number;
|
|
1197
1223
|
currentItemFontSize: number;
|
|
1198
1224
|
currentItemTextAlign: string;
|
|
1199
|
-
currentItemStartArrowhead: import("
|
|
1200
|
-
currentItemEndArrowhead: import("
|
|
1225
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1226
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1201
1227
|
currentHoveredFontFamily: number | null;
|
|
1202
|
-
currentItemRoundness: import("
|
|
1228
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1203
1229
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1204
1230
|
viewBackgroundColor: string;
|
|
1205
1231
|
scrollX: number;
|
|
@@ -1212,7 +1238,7 @@ export declare const actionCopyAsPng: {
|
|
|
1212
1238
|
zoom: Readonly<{
|
|
1213
1239
|
value: import("../types").NormalizedZoomValue;
|
|
1214
1240
|
}>;
|
|
1215
|
-
openMenu: "
|
|
1241
|
+
openMenu: "shape" | "canvas" | null;
|
|
1216
1242
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1217
1243
|
openSidebar: {
|
|
1218
1244
|
name: string;
|
|
@@ -1230,7 +1256,7 @@ export declare const actionCopyAsPng: {
|
|
|
1230
1256
|
sourceElementId: string;
|
|
1231
1257
|
} | null;
|
|
1232
1258
|
defaultSidebarDockedPreference: boolean;
|
|
1233
|
-
lastPointerDownWith: import("
|
|
1259
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1234
1260
|
selectedElementIds: Readonly<{
|
|
1235
1261
|
[id: string]: true;
|
|
1236
1262
|
}>;
|
|
@@ -1248,7 +1274,7 @@ export declare const actionCopyAsPng: {
|
|
|
1248
1274
|
duration?: number | undefined;
|
|
1249
1275
|
} | null;
|
|
1250
1276
|
zenModeEnabled: boolean;
|
|
1251
|
-
theme: import("
|
|
1277
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1252
1278
|
gridSize: number;
|
|
1253
1279
|
gridStep: number;
|
|
1254
1280
|
gridModeEnabled: boolean;
|
|
@@ -1269,7 +1295,7 @@ export declare const actionCopyAsPng: {
|
|
|
1269
1295
|
[id: string]: true;
|
|
1270
1296
|
}> | undefined;
|
|
1271
1297
|
username?: string | null | undefined;
|
|
1272
|
-
userState?: import("
|
|
1298
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1273
1299
|
color?: {
|
|
1274
1300
|
background: string;
|
|
1275
1301
|
stroke: string;
|
|
@@ -1286,7 +1312,7 @@ export declare const actionCopyAsPng: {
|
|
|
1286
1312
|
open: boolean;
|
|
1287
1313
|
panels: number;
|
|
1288
1314
|
};
|
|
1289
|
-
currentChartType: import("
|
|
1315
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1290
1316
|
pasteDialog: {
|
|
1291
1317
|
shown: false;
|
|
1292
1318
|
data: null;
|
|
@@ -1295,13 +1321,13 @@ export declare const actionCopyAsPng: {
|
|
|
1295
1321
|
data: import("../charts").Spreadsheet;
|
|
1296
1322
|
};
|
|
1297
1323
|
pendingImageElementId: string | null;
|
|
1298
|
-
showHyperlinkPopup: false | "
|
|
1324
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1299
1325
|
linkOpacity: number;
|
|
1300
1326
|
trayModeEnabled: boolean;
|
|
1301
1327
|
colorPalette?: {
|
|
1302
|
-
canvasBackground: import("
|
|
1303
|
-
elementBackground: import("
|
|
1304
|
-
elementStroke: import("
|
|
1328
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1329
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1330
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1305
1331
|
topPicks: {
|
|
1306
1332
|
canvasBackground: [string, string, string, string, string];
|
|
1307
1333
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1318,6 +1344,10 @@ export declare const actionCopyAsPng: {
|
|
|
1318
1344
|
Bold: string;
|
|
1319
1345
|
Regular: string;
|
|
1320
1346
|
};
|
|
1347
|
+
gridDirection: {
|
|
1348
|
+
horizontal: boolean;
|
|
1349
|
+
vertical: boolean;
|
|
1350
|
+
};
|
|
1321
1351
|
highlightSearchResult: boolean;
|
|
1322
1352
|
dynamicStyle: {
|
|
1323
1353
|
[x: string]: string;
|
|
@@ -1328,7 +1358,7 @@ export declare const actionCopyAsPng: {
|
|
|
1328
1358
|
nameColor: string;
|
|
1329
1359
|
};
|
|
1330
1360
|
invertBindingBehaviour: boolean;
|
|
1331
|
-
selectedLinearElement: import("
|
|
1361
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
1332
1362
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1333
1363
|
originSnapOffset: {
|
|
1334
1364
|
x: number;
|
|
@@ -1352,7 +1382,7 @@ export declare const actionCopyAsPng: {
|
|
|
1352
1382
|
};
|
|
1353
1383
|
captureUpdate: "EVENTUALLY";
|
|
1354
1384
|
}>;
|
|
1355
|
-
predicate: (elements: readonly import("
|
|
1385
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[]) => boolean;
|
|
1356
1386
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1357
1387
|
keywords: string[];
|
|
1358
1388
|
} & {
|
|
@@ -1364,10 +1394,10 @@ export declare const copyText: {
|
|
|
1364
1394
|
trackEvent: {
|
|
1365
1395
|
category: "element";
|
|
1366
1396
|
};
|
|
1367
|
-
perform: (elements: readonly import("
|
|
1397
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1368
1398
|
captureUpdate: "EVENTUALLY";
|
|
1369
1399
|
};
|
|
1370
|
-
predicate: (elements: readonly import("
|
|
1400
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1371
1401
|
keywords: string[];
|
|
1372
1402
|
} & {
|
|
1373
1403
|
keyTest?: undefined;
|