@zsviczian/excalidraw 0.18.0-6 → 0.18.0-60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/excalidraw.development.js +757 -504
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
- package/dist/styles.development.css +1080 -437
- package/dist/styles.production.css +26 -22
- package/package.json +15 -4
- package/types/common/src/commonObsidianUtils.d.ts +20 -0
- package/types/common/src/constants.d.ts +42 -18
- package/types/common/src/editorInterface.d.ts +35 -0
- package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/types/common/src/font-metadata.d.ts +4 -2
- package/types/common/src/index.d.ts +4 -0
- package/types/common/src/utility-types.d.ts +5 -0
- package/types/common/src/utils.d.ts +25 -6
- package/types/{excalidraw → common/src}/visualdebug.d.ts +2 -2
- package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
- package/types/element/src/align.d.ts +4 -3
- package/types/element/src/binding.d.ts +62 -41
- package/types/element/src/bounds.d.ts +14 -6
- package/types/element/src/collision.d.ts +23 -13
- package/types/element/src/cropElement.d.ts +1 -1
- package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
- package/types/element/src/distance.d.ts +2 -2
- package/types/element/src/distribute.d.ts +2 -1
- package/types/element/src/dragElements.d.ts +3 -2
- package/types/element/src/duplicate.d.ts +10 -13
- package/types/element/src/elbowArrow.d.ts +1 -1
- package/types/element/src/flowchart.d.ts +3 -2
- package/types/element/src/fractionalIndex.d.ts +9 -3
- package/types/element/src/frame.d.ts +5 -4
- package/types/element/src/groups.d.ts +1 -0
- package/types/element/src/index.d.ts +44 -5
- package/types/element/src/linearElementEditor.d.ts +34 -50
- package/types/element/src/mutateElement.d.ts +11 -3
- package/types/element/src/newElement.d.ts +6 -4
- package/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/types/element/src/renderElement.d.ts +5 -2
- package/types/element/src/resizeElements.d.ts +6 -5
- package/types/element/src/resizeTest.d.ts +5 -4
- package/types/element/src/selection.d.ts +11 -5
- package/types/element/src/shape.d.ts +42 -0
- package/types/element/src/sizeHelpers.d.ts +2 -2
- package/types/element/src/store.d.ts +237 -0
- package/types/element/src/textElement.d.ts +4 -3
- package/types/element/src/transformHandles.d.ts +5 -4
- package/types/element/src/typeChecks.d.ts +20 -3
- package/types/element/src/types.d.ts +31 -12
- package/types/element/src/utils.d.ts +17 -6
- package/types/element/src/zindex.d.ts +8 -2
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -58
- package/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/types/excalidraw/actions/actionBoundText.d.ts +61 -41
- package/types/excalidraw/actions/actionCanvas.d.ts +430 -519
- package/types/excalidraw/actions/actionClipboard.d.ts +81 -944
- package/types/excalidraw/actions/actionCropEditor.d.ts +30 -20
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +97 -68
- package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/excalidraw/actions/actionElementLink.d.ts +28 -20
- package/types/excalidraw/actions/actionElementLock.d.ts +73 -54
- package/types/excalidraw/actions/actionEmbeddable.d.ts +30 -20
- package/types/excalidraw/actions/actionExport.d.ts +142 -1185
- package/types/excalidraw/actions/actionFinalize.d.ts +10 -424
- package/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/types/excalidraw/actions/actionFrame.d.ts +176 -129
- package/types/excalidraw/actions/actionGroup.d.ts +60 -40
- package/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +564 -22
- package/types/excalidraw/actions/actionLink.d.ts +27 -17
- package/types/excalidraw/actions/actionMenu.d.ts +27 -457
- package/types/excalidraw/actions/actionNavigate.d.ts +21 -431
- package/types/excalidraw/actions/actionProperties.d.ts +169 -2702
- package/types/excalidraw/actions/actionSelectAll.d.ts +30 -20
- package/types/excalidraw/actions/actionStyles.d.ts +31 -21
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -19
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -19
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +27 -224
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +29 -19
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +30 -20
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +30 -20
- package/types/excalidraw/actions/actionTrayMenu.d.ts +229 -0
- package/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/types/excalidraw/actions/index.d.ts +4 -2
- package/types/excalidraw/actions/manager.d.ts +1 -1
- package/types/excalidraw/actions/register.d.ts +1 -1
- package/types/excalidraw/actions/types.d.ts +7 -6
- package/types/excalidraw/appState.d.ts +22 -7
- package/types/excalidraw/clipboard.d.ts +68 -5
- package/types/excalidraw/components/Actions.d.ts +20 -7
- package/types/excalidraw/components/App.d.ts +68 -46
- package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
- package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- package/types/excalidraw/components/Ellipsify.d.ts +3 -0
- package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
- package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/types/excalidraw/components/LinkButton.d.ts +4 -0
- package/types/excalidraw/components/MobileMenu.d.ts +4 -5
- package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
- package/types/excalidraw/components/Popover.d.ts +2 -1
- package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/types/excalidraw/components/Range.d.ts +3 -3
- package/types/excalidraw/components/Section.d.ts +1 -0
- package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/DragInput.d.ts +12 -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 +1 -1
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/types/excalidraw/components/TextField.d.ts +1 -0
- package/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/types/excalidraw/components/TrayMenu.d.ts +26 -0
- package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
- package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/types/excalidraw/components/icons.d.ts +17 -0
- package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
- package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/types/excalidraw/components/shapes.d.ts +115 -5
- package/types/excalidraw/data/blob.d.ts +3 -7
- package/types/excalidraw/data/reconcile.d.ts +1 -0
- package/types/excalidraw/data/restore.d.ts +7 -2
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/data/types.d.ts +4 -1
- package/types/excalidraw/editor-jotai.d.ts +6 -6
- package/types/excalidraw/eraser/index.d.ts +0 -2
- package/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/types/excalidraw/history.d.ts +30 -22
- package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
- package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/types/excalidraw/index.d.ts +16 -15
- package/types/excalidraw/lasso/index.d.ts +1 -0
- package/types/excalidraw/lasso/utils.d.ts +2 -1
- package/types/excalidraw/obsidianUtils.d.ts +22 -9
- package/types/excalidraw/renderer/animation.d.ts +12 -0
- package/types/excalidraw/renderer/helpers.d.ts +3 -2
- package/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
- package/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/types/excalidraw/scene/Renderer.d.ts +1 -2
- package/types/excalidraw/scene/index.d.ts +2 -2
- package/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/types/excalidraw/scene/types.d.ts +17 -3
- package/types/excalidraw/shortcut.d.ts +1 -0
- package/types/excalidraw/snapping.d.ts +2 -2
- package/types/excalidraw/types.d.ts +83 -33
- package/types/excalidraw/webpack.dev.config.d.ts +2 -0
- package/types/excalidraw/webpack.prod.config.d.ts +2 -0
- package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/types/math/src/angle.d.ts +2 -0
- package/types/math/src/constants.d.ts +3 -0
- package/types/math/src/curve.d.ts +34 -0
- package/types/math/src/index.d.ts +1 -0
- package/types/math/src/point.d.ts +1 -1
- package/types/math/src/rectangle.d.ts +2 -0
- package/types/math/src/segment.d.ts +1 -0
- package/types/math/src/vector.d.ts +8 -2
- package/types/utils/src/bbox.d.ts +1 -1
- package/types/utils/src/index.d.ts +1 -1
- package/types/utils/src/withinBounds.d.ts +1 -1
- package/types/element/src/Shape.d.ts +0 -17
- package/types/element/src/ShapeCache.d.ts +0 -25
- package/types/element/src/shapes.d.ts +0 -23
- package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/types/excalidraw/store.d.ts +0 -129
- package/types/utils/src/collision.d.ts +0 -8
|
@@ -1,34 +1,42 @@
|
|
|
1
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
1
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
2
|
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
4
4
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
5
|
-
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[],
|
|
6
|
-
export declare const actionChangeStrokeColor: {
|
|
7
|
-
|
|
8
|
-
label: string;
|
|
9
|
-
trackEvent: false;
|
|
10
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => any;
|
|
11
|
-
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
} & {
|
|
13
|
-
keyTest?: undefined;
|
|
5
|
+
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
6
|
+
export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
|
|
7
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
14
8
|
};
|
|
15
|
-
export declare const actionChangeBackgroundColor: {
|
|
16
|
-
|
|
17
|
-
label: string;
|
|
18
|
-
trackEvent: false;
|
|
19
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
20
|
-
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
} & {
|
|
22
|
-
keyTest?: undefined;
|
|
9
|
+
export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
|
|
10
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
23
11
|
};
|
|
24
|
-
export declare const actionChangeFillStyle: {
|
|
25
|
-
|
|
12
|
+
export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
|
|
13
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare const actionChangeStrokeWidth: import("./types").Action<number> & {
|
|
16
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare const actionChangeSloppiness: import("./types").Action<number> & {
|
|
19
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
20
|
+
};
|
|
21
|
+
export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
|
|
22
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
23
|
+
};
|
|
24
|
+
export declare const actionChangeOpacity: import("./types").Action<number> & {
|
|
25
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
26
|
+
};
|
|
27
|
+
export declare const getFontSize: (size: number, zoom: number) => number;
|
|
28
|
+
export declare const actionChangeFontSize: import("./types").Action<number> & {
|
|
29
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
30
|
+
};
|
|
31
|
+
export declare const actionDecreaseFontSize: {
|
|
32
|
+
name: "decreaseFontSize";
|
|
26
33
|
label: string;
|
|
34
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
27
35
|
trackEvent: false;
|
|
28
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value:
|
|
36
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
|
|
29
37
|
elements: ExcalidrawElement[];
|
|
30
38
|
appState: {
|
|
31
|
-
|
|
39
|
+
currentItemFontSize: number;
|
|
32
40
|
contextMenu: {
|
|
33
41
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
34
42
|
top: number;
|
|
@@ -47,23 +55,28 @@ export declare const actionChangeFillStyle: {
|
|
|
47
55
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
56
|
isBindingEnabled: boolean;
|
|
49
57
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
50
|
-
|
|
58
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
51
59
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
60
|
frameRendering: {
|
|
53
61
|
enabled: boolean;
|
|
54
62
|
name: boolean;
|
|
55
63
|
outline: boolean;
|
|
56
64
|
clip: boolean;
|
|
65
|
+
markerName: boolean;
|
|
66
|
+
markerEnabled: boolean;
|
|
57
67
|
};
|
|
58
68
|
editingFrame: string | null;
|
|
59
69
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
70
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
61
|
-
editingLinearElement: LinearElementEditor | null;
|
|
62
71
|
activeTool: {
|
|
63
72
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
73
|
locked: boolean;
|
|
65
74
|
fromSelection: boolean;
|
|
66
75
|
} & import("../types").ActiveTool;
|
|
76
|
+
preferredSelectionTool: {
|
|
77
|
+
type: "selection" | "lasso";
|
|
78
|
+
initialized: boolean;
|
|
79
|
+
};
|
|
67
80
|
penMode: boolean;
|
|
68
81
|
penDetected: boolean;
|
|
69
82
|
exportBackground: boolean;
|
|
@@ -72,18 +85,19 @@ export declare const actionChangeFillStyle: {
|
|
|
72
85
|
exportScale: number;
|
|
73
86
|
currentItemStrokeColor: string;
|
|
74
87
|
currentItemBackgroundColor: string;
|
|
88
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
75
89
|
currentItemStrokeWidth: number;
|
|
76
90
|
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
77
91
|
currentItemRoughness: number;
|
|
78
92
|
currentItemOpacity: number;
|
|
79
93
|
currentItemFontFamily: number;
|
|
80
|
-
currentItemFontSize: number;
|
|
81
94
|
currentItemTextAlign: string;
|
|
82
95
|
currentItemStartArrowhead: Arrowhead | null;
|
|
83
96
|
currentItemEndArrowhead: Arrowhead | null;
|
|
84
97
|
currentHoveredFontFamily: number | null;
|
|
85
98
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
86
99
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
100
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
87
101
|
viewBackgroundColor: string;
|
|
88
102
|
scrollX: number;
|
|
89
103
|
scrollY: number;
|
|
@@ -95,19 +109,21 @@ export declare const actionChangeFillStyle: {
|
|
|
95
109
|
zoom: Readonly<{
|
|
96
110
|
value: import("../types").NormalizedZoomValue;
|
|
97
111
|
}>;
|
|
98
|
-
openMenu: "
|
|
99
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
112
|
+
openMenu: "canvas" | "shape" | null;
|
|
113
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
100
114
|
openSidebar: {
|
|
101
115
|
name: string;
|
|
102
116
|
tab?: string | undefined;
|
|
103
117
|
} | null;
|
|
104
118
|
openDialog: {
|
|
105
|
-
name: "
|
|
119
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
106
120
|
} | {
|
|
107
121
|
name: "ttd";
|
|
108
122
|
tab: "mermaid" | "text-to-diagram";
|
|
109
123
|
} | {
|
|
110
124
|
name: "commandPalette";
|
|
125
|
+
} | {
|
|
126
|
+
name: "settings";
|
|
111
127
|
} | {
|
|
112
128
|
name: "elementLinkSelector";
|
|
113
129
|
sourceElementId: string;
|
|
@@ -177,10 +193,8 @@ export declare const actionChangeFillStyle: {
|
|
|
177
193
|
shown: true;
|
|
178
194
|
data: import("../charts").Spreadsheet;
|
|
179
195
|
};
|
|
180
|
-
|
|
181
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
196
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
182
197
|
linkOpacity: number;
|
|
183
|
-
trayModeEnabled: boolean;
|
|
184
198
|
colorPalette?: {
|
|
185
199
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
186
200
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -193,6 +207,7 @@ export declare const actionChangeFillStyle: {
|
|
|
193
207
|
} | undefined;
|
|
194
208
|
allowWheelZoom?: boolean | undefined;
|
|
195
209
|
allowPinchZoom?: boolean | undefined;
|
|
210
|
+
disableContextMenu: boolean;
|
|
196
211
|
pinnedScripts?: string[] | undefined;
|
|
197
212
|
customPens?: any[] | undefined;
|
|
198
213
|
currentStrokeOptions?: any;
|
|
@@ -201,6 +216,10 @@ export declare const actionChangeFillStyle: {
|
|
|
201
216
|
Bold: string;
|
|
202
217
|
Regular: string;
|
|
203
218
|
};
|
|
219
|
+
gridDirection: {
|
|
220
|
+
horizontal: boolean;
|
|
221
|
+
vertical: boolean;
|
|
222
|
+
};
|
|
204
223
|
highlightSearchResult: boolean;
|
|
205
224
|
dynamicStyle: {
|
|
206
225
|
[x: string]: string;
|
|
@@ -222,31 +241,31 @@ export declare const actionChangeFillStyle: {
|
|
|
222
241
|
followedBy: Set<import("../types").SocketId>;
|
|
223
242
|
isCropping: boolean;
|
|
224
243
|
croppingElementId: string | null;
|
|
225
|
-
searchMatches:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}[];
|
|
244
|
+
searchMatches: Readonly<{
|
|
245
|
+
focusedId: string | null;
|
|
246
|
+
matches: readonly import("../types").SearchMatch[];
|
|
247
|
+
}> | null;
|
|
248
|
+
activeLockedId: string | null;
|
|
249
|
+
lockedMultiSelections: {
|
|
250
|
+
[groupId: string]: true;
|
|
251
|
+
};
|
|
252
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
235
253
|
};
|
|
236
254
|
captureUpdate: "IMMEDIATELY";
|
|
237
255
|
};
|
|
238
|
-
|
|
256
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
239
257
|
} & {
|
|
240
|
-
keyTest?: undefined;
|
|
258
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
241
259
|
};
|
|
242
|
-
export declare const
|
|
243
|
-
name: "
|
|
260
|
+
export declare const actionIncreaseFontSize: {
|
|
261
|
+
name: "increaseFontSize";
|
|
244
262
|
label: string;
|
|
263
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
245
264
|
trackEvent: false;
|
|
246
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value:
|
|
265
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
|
|
247
266
|
elements: ExcalidrawElement[];
|
|
248
267
|
appState: {
|
|
249
|
-
|
|
268
|
+
currentItemFontSize: number;
|
|
250
269
|
contextMenu: {
|
|
251
270
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
252
271
|
top: number;
|
|
@@ -265,23 +284,28 @@ export declare const actionChangeStrokeWidth: {
|
|
|
265
284
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
266
285
|
isBindingEnabled: boolean;
|
|
267
286
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
268
|
-
|
|
287
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
269
288
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
270
289
|
frameRendering: {
|
|
271
290
|
enabled: boolean;
|
|
272
291
|
name: boolean;
|
|
273
292
|
outline: boolean;
|
|
274
293
|
clip: boolean;
|
|
294
|
+
markerName: boolean;
|
|
295
|
+
markerEnabled: boolean;
|
|
275
296
|
};
|
|
276
297
|
editingFrame: string | null;
|
|
277
298
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
278
299
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
279
|
-
editingLinearElement: LinearElementEditor | null;
|
|
280
300
|
activeTool: {
|
|
281
301
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
282
302
|
locked: boolean;
|
|
283
303
|
fromSelection: boolean;
|
|
284
304
|
} & import("../types").ActiveTool;
|
|
305
|
+
preferredSelectionTool: {
|
|
306
|
+
type: "selection" | "lasso";
|
|
307
|
+
initialized: boolean;
|
|
308
|
+
};
|
|
285
309
|
penMode: boolean;
|
|
286
310
|
penDetected: boolean;
|
|
287
311
|
exportBackground: boolean;
|
|
@@ -291,17 +315,18 @@ export declare const actionChangeStrokeWidth: {
|
|
|
291
315
|
currentItemStrokeColor: string;
|
|
292
316
|
currentItemBackgroundColor: string;
|
|
293
317
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
318
|
+
currentItemStrokeWidth: number;
|
|
294
319
|
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
295
320
|
currentItemRoughness: number;
|
|
296
321
|
currentItemOpacity: number;
|
|
297
322
|
currentItemFontFamily: number;
|
|
298
|
-
currentItemFontSize: number;
|
|
299
323
|
currentItemTextAlign: string;
|
|
300
324
|
currentItemStartArrowhead: Arrowhead | null;
|
|
301
325
|
currentItemEndArrowhead: Arrowhead | null;
|
|
302
326
|
currentHoveredFontFamily: number | null;
|
|
303
327
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
304
328
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
329
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
305
330
|
viewBackgroundColor: string;
|
|
306
331
|
scrollX: number;
|
|
307
332
|
scrollY: number;
|
|
@@ -313,19 +338,21 @@ export declare const actionChangeStrokeWidth: {
|
|
|
313
338
|
zoom: Readonly<{
|
|
314
339
|
value: import("../types").NormalizedZoomValue;
|
|
315
340
|
}>;
|
|
316
|
-
openMenu: "
|
|
317
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
341
|
+
openMenu: "canvas" | "shape" | null;
|
|
342
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
318
343
|
openSidebar: {
|
|
319
344
|
name: string;
|
|
320
345
|
tab?: string | undefined;
|
|
321
346
|
} | null;
|
|
322
347
|
openDialog: {
|
|
323
|
-
name: "
|
|
348
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
324
349
|
} | {
|
|
325
350
|
name: "ttd";
|
|
326
351
|
tab: "mermaid" | "text-to-diagram";
|
|
327
352
|
} | {
|
|
328
353
|
name: "commandPalette";
|
|
354
|
+
} | {
|
|
355
|
+
name: "settings";
|
|
329
356
|
} | {
|
|
330
357
|
name: "elementLinkSelector";
|
|
331
358
|
sourceElementId: string;
|
|
@@ -395,10 +422,8 @@ export declare const actionChangeStrokeWidth: {
|
|
|
395
422
|
shown: true;
|
|
396
423
|
data: import("../charts").Spreadsheet;
|
|
397
424
|
};
|
|
398
|
-
|
|
399
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
425
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
400
426
|
linkOpacity: number;
|
|
401
|
-
trayModeEnabled: boolean;
|
|
402
427
|
colorPalette?: {
|
|
403
428
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
404
429
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -411,6 +436,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
411
436
|
} | undefined;
|
|
412
437
|
allowWheelZoom?: boolean | undefined;
|
|
413
438
|
allowPinchZoom?: boolean | undefined;
|
|
439
|
+
disableContextMenu: boolean;
|
|
414
440
|
pinnedScripts?: string[] | undefined;
|
|
415
441
|
customPens?: any[] | undefined;
|
|
416
442
|
currentStrokeOptions?: any;
|
|
@@ -419,6 +445,10 @@ export declare const actionChangeStrokeWidth: {
|
|
|
419
445
|
Bold: string;
|
|
420
446
|
Regular: string;
|
|
421
447
|
};
|
|
448
|
+
gridDirection: {
|
|
449
|
+
horizontal: boolean;
|
|
450
|
+
vertical: boolean;
|
|
451
|
+
};
|
|
422
452
|
highlightSearchResult: boolean;
|
|
423
453
|
dynamicStyle: {
|
|
424
454
|
[x: string]: string;
|
|
@@ -440,249 +470,70 @@ export declare const actionChangeStrokeWidth: {
|
|
|
440
470
|
followedBy: Set<import("../types").SocketId>;
|
|
441
471
|
isCropping: boolean;
|
|
442
472
|
croppingElementId: string | null;
|
|
443
|
-
searchMatches:
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}[];
|
|
473
|
+
searchMatches: Readonly<{
|
|
474
|
+
focusedId: string | null;
|
|
475
|
+
matches: readonly import("../types").SearchMatch[];
|
|
476
|
+
}> | null;
|
|
477
|
+
activeLockedId: string | null;
|
|
478
|
+
lockedMultiSelections: {
|
|
479
|
+
[groupId: string]: true;
|
|
480
|
+
};
|
|
481
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
453
482
|
};
|
|
454
483
|
captureUpdate: "IMMEDIATELY";
|
|
455
484
|
};
|
|
456
|
-
|
|
485
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
457
486
|
} & {
|
|
458
|
-
keyTest?: undefined;
|
|
487
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
488
|
+
};
|
|
489
|
+
export declare const actionChangeFontFamily: import("./types").Action<{
|
|
490
|
+
currentItemFontFamily: any;
|
|
491
|
+
currentHoveredFontFamily: any;
|
|
492
|
+
}> & {
|
|
493
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
459
494
|
};
|
|
460
|
-
export declare const
|
|
461
|
-
|
|
495
|
+
export declare const actionChangeTextAlign: import("./types").Action<string> & {
|
|
496
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
497
|
+
};
|
|
498
|
+
export declare const actionChangeVerticalAlign: import("./types").Action<string> & {
|
|
499
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
500
|
+
};
|
|
501
|
+
export declare const actionChangeRoundness: import("./types").Action<"round" | "sharp"> & {
|
|
502
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
503
|
+
};
|
|
504
|
+
export declare const actionChangeArrowhead: import("./types").Action<{
|
|
505
|
+
position: "start" | "end";
|
|
506
|
+
type: Arrowhead;
|
|
507
|
+
}> & {
|
|
508
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
509
|
+
};
|
|
510
|
+
export declare const actionChangeArrowProperties: {
|
|
511
|
+
name: "changeArrowProperties";
|
|
462
512
|
label: string;
|
|
463
513
|
trackEvent: false;
|
|
464
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value:
|
|
465
|
-
|
|
466
|
-
appState: {
|
|
467
|
-
currentItemRoughness: any;
|
|
468
|
-
contextMenu: {
|
|
469
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
470
|
-
top: number;
|
|
471
|
-
left: number;
|
|
472
|
-
} | null;
|
|
473
|
-
showWelcomeScreen: boolean;
|
|
474
|
-
isLoading: boolean;
|
|
475
|
-
errorMessage: import("react").ReactNode;
|
|
476
|
-
activeEmbeddable: {
|
|
477
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
478
|
-
state: "active" | "hover";
|
|
479
|
-
} | null;
|
|
480
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
481
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
482
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
483
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
484
|
-
isBindingEnabled: boolean;
|
|
485
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
486
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
487
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
488
|
-
frameRendering: {
|
|
489
|
-
enabled: boolean;
|
|
490
|
-
name: boolean;
|
|
491
|
-
outline: boolean;
|
|
492
|
-
clip: boolean;
|
|
493
|
-
};
|
|
494
|
-
editingFrame: string | null;
|
|
495
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
496
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
497
|
-
editingLinearElement: LinearElementEditor | null;
|
|
498
|
-
activeTool: {
|
|
499
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
500
|
-
locked: boolean;
|
|
501
|
-
fromSelection: boolean;
|
|
502
|
-
} & import("../types").ActiveTool;
|
|
503
|
-
penMode: boolean;
|
|
504
|
-
penDetected: boolean;
|
|
505
|
-
exportBackground: boolean;
|
|
506
|
-
exportEmbedScene: boolean;
|
|
507
|
-
exportWithDarkMode: boolean;
|
|
508
|
-
exportScale: number;
|
|
509
|
-
currentItemStrokeColor: string;
|
|
510
|
-
currentItemBackgroundColor: string;
|
|
511
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
512
|
-
currentItemStrokeWidth: number;
|
|
513
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
514
|
-
currentItemOpacity: number;
|
|
515
|
-
currentItemFontFamily: number;
|
|
516
|
-
currentItemFontSize: number;
|
|
517
|
-
currentItemTextAlign: string;
|
|
518
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
519
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
520
|
-
currentHoveredFontFamily: number | null;
|
|
521
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
522
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
523
|
-
viewBackgroundColor: string;
|
|
524
|
-
scrollX: number;
|
|
525
|
-
scrollY: number;
|
|
526
|
-
cursorButton: "up" | "down";
|
|
527
|
-
scrolledOutside: boolean;
|
|
528
|
-
name: string | null;
|
|
529
|
-
isResizing: boolean;
|
|
530
|
-
isRotating: boolean;
|
|
531
|
-
zoom: Readonly<{
|
|
532
|
-
value: import("../types").NormalizedZoomValue;
|
|
533
|
-
}>;
|
|
534
|
-
openMenu: "shape" | "canvas" | null;
|
|
535
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
536
|
-
openSidebar: {
|
|
537
|
-
name: string;
|
|
538
|
-
tab?: string | undefined;
|
|
539
|
-
} | null;
|
|
540
|
-
openDialog: {
|
|
541
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
542
|
-
} | {
|
|
543
|
-
name: "ttd";
|
|
544
|
-
tab: "mermaid" | "text-to-diagram";
|
|
545
|
-
} | {
|
|
546
|
-
name: "commandPalette";
|
|
547
|
-
} | {
|
|
548
|
-
name: "elementLinkSelector";
|
|
549
|
-
sourceElementId: string;
|
|
550
|
-
} | null;
|
|
551
|
-
defaultSidebarDockedPreference: boolean;
|
|
552
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
553
|
-
selectedElementIds: Readonly<{
|
|
554
|
-
[id: string]: true;
|
|
555
|
-
}>;
|
|
556
|
-
hoveredElementIds: Readonly<{
|
|
557
|
-
[id: string]: true;
|
|
558
|
-
}>;
|
|
559
|
-
previousSelectedElementIds: {
|
|
560
|
-
[id: string]: true;
|
|
561
|
-
};
|
|
562
|
-
selectedElementsAreBeingDragged: boolean;
|
|
563
|
-
shouldCacheIgnoreZoom: boolean;
|
|
564
|
-
toast: {
|
|
565
|
-
message: string;
|
|
566
|
-
closable?: boolean | undefined;
|
|
567
|
-
duration?: number | undefined;
|
|
568
|
-
} | null;
|
|
569
|
-
zenModeEnabled: boolean;
|
|
570
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
571
|
-
gridSize: number;
|
|
572
|
-
gridStep: number;
|
|
573
|
-
gridModeEnabled: boolean;
|
|
574
|
-
viewModeEnabled: boolean;
|
|
575
|
-
selectedGroupIds: {
|
|
576
|
-
[groupId: string]: boolean;
|
|
577
|
-
};
|
|
578
|
-
editingGroupId: string | null;
|
|
579
|
-
width: number;
|
|
580
|
-
height: number;
|
|
581
|
-
offsetTop: number;
|
|
582
|
-
offsetLeft: number;
|
|
583
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
584
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
585
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
586
|
-
button?: "up" | "down" | undefined;
|
|
587
|
-
selectedElementIds?: Readonly<{
|
|
588
|
-
[id: string]: true;
|
|
589
|
-
}> | undefined;
|
|
590
|
-
username?: string | null | undefined;
|
|
591
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
592
|
-
color?: {
|
|
593
|
-
background: string;
|
|
594
|
-
stroke: string;
|
|
595
|
-
} | undefined;
|
|
596
|
-
avatarUrl?: string | undefined;
|
|
597
|
-
id?: string | undefined;
|
|
598
|
-
socketId?: import("../types").SocketId | undefined;
|
|
599
|
-
isCurrentUser?: boolean | undefined;
|
|
600
|
-
isInCall?: boolean | undefined;
|
|
601
|
-
isSpeaking?: boolean | undefined;
|
|
602
|
-
isMuted?: boolean | undefined;
|
|
603
|
-
}>>;
|
|
604
|
-
stats: {
|
|
605
|
-
open: boolean;
|
|
606
|
-
panels: number;
|
|
607
|
-
};
|
|
608
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
609
|
-
pasteDialog: {
|
|
610
|
-
shown: false;
|
|
611
|
-
data: null;
|
|
612
|
-
} | {
|
|
613
|
-
shown: true;
|
|
614
|
-
data: import("../charts").Spreadsheet;
|
|
615
|
-
};
|
|
616
|
-
pendingImageElementId: string | null;
|
|
617
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
618
|
-
linkOpacity: number;
|
|
619
|
-
trayModeEnabled: boolean;
|
|
620
|
-
colorPalette?: {
|
|
621
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
622
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
623
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
624
|
-
topPicks: {
|
|
625
|
-
canvasBackground: [string, string, string, string, string];
|
|
626
|
-
elementStroke: [string, string, string, string, string];
|
|
627
|
-
elementBackground: [string, string, string, string, string];
|
|
628
|
-
};
|
|
629
|
-
} | undefined;
|
|
630
|
-
allowWheelZoom?: boolean | undefined;
|
|
631
|
-
allowPinchZoom?: boolean | undefined;
|
|
632
|
-
pinnedScripts?: string[] | undefined;
|
|
633
|
-
customPens?: any[] | undefined;
|
|
634
|
-
currentStrokeOptions?: any;
|
|
635
|
-
resetCustomPen?: any;
|
|
636
|
-
gridColor: {
|
|
637
|
-
Bold: string;
|
|
638
|
-
Regular: string;
|
|
639
|
-
};
|
|
640
|
-
highlightSearchResult: boolean;
|
|
641
|
-
dynamicStyle: {
|
|
642
|
-
[x: string]: string;
|
|
643
|
-
};
|
|
644
|
-
frameColor: {
|
|
645
|
-
stroke: string;
|
|
646
|
-
fill: string;
|
|
647
|
-
nameColor: string;
|
|
648
|
-
};
|
|
649
|
-
invertBindingBehaviour: boolean;
|
|
650
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
651
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
652
|
-
originSnapOffset: {
|
|
653
|
-
x: number;
|
|
654
|
-
y: number;
|
|
655
|
-
} | null;
|
|
656
|
-
objectsSnapModeEnabled: boolean;
|
|
657
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
658
|
-
followedBy: Set<import("../types").SocketId>;
|
|
659
|
-
isCropping: boolean;
|
|
660
|
-
croppingElementId: string | null;
|
|
661
|
-
searchMatches: readonly {
|
|
662
|
-
id: string;
|
|
663
|
-
focus: boolean;
|
|
664
|
-
matchedLines: {
|
|
665
|
-
offsetX: number;
|
|
666
|
-
offsetY: number;
|
|
667
|
-
width: number;
|
|
668
|
-
height: number;
|
|
669
|
-
}[];
|
|
670
|
-
}[];
|
|
671
|
-
};
|
|
672
|
-
captureUpdate: "IMMEDIATELY";
|
|
673
|
-
};
|
|
674
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
514
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => false;
|
|
515
|
+
PanelComponent: ({ elements, appState, updateData, app, renderAction }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
675
516
|
} & {
|
|
676
517
|
keyTest?: undefined;
|
|
677
518
|
};
|
|
678
|
-
export declare const
|
|
679
|
-
|
|
519
|
+
export declare const actionChangeArrowType: import("./types").Action<"round" | "sharp" | "elbow"> & {
|
|
520
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
521
|
+
};
|
|
522
|
+
export declare const actionToggleFrameRole: {
|
|
523
|
+
name: "toggleFrameRole";
|
|
680
524
|
label: string;
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
525
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
526
|
+
trackEvent: {
|
|
527
|
+
category: "element";
|
|
528
|
+
};
|
|
529
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => {
|
|
530
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
531
|
+
appState: Readonly<AppState>;
|
|
532
|
+
captureUpdate: "IMMEDIATELY";
|
|
533
|
+
} | {
|
|
534
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
684
535
|
appState: {
|
|
685
|
-
|
|
536
|
+
currentItemFrameRole: "marker" | null;
|
|
686
537
|
contextMenu: {
|
|
687
538
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
688
539
|
top: number;
|
|
@@ -701,23 +552,28 @@ export declare const actionChangeStrokeStyle: {
|
|
|
701
552
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
702
553
|
isBindingEnabled: boolean;
|
|
703
554
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
704
|
-
|
|
555
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
705
556
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
706
557
|
frameRendering: {
|
|
707
558
|
enabled: boolean;
|
|
708
559
|
name: boolean;
|
|
709
560
|
outline: boolean;
|
|
710
561
|
clip: boolean;
|
|
562
|
+
markerName: boolean;
|
|
563
|
+
markerEnabled: boolean;
|
|
711
564
|
};
|
|
712
565
|
editingFrame: string | null;
|
|
713
566
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
714
567
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
715
|
-
editingLinearElement: LinearElementEditor | null;
|
|
716
568
|
activeTool: {
|
|
717
569
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
718
570
|
locked: boolean;
|
|
719
571
|
fromSelection: boolean;
|
|
720
572
|
} & import("../types").ActiveTool;
|
|
573
|
+
preferredSelectionTool: {
|
|
574
|
+
type: "selection" | "lasso";
|
|
575
|
+
initialized: boolean;
|
|
576
|
+
};
|
|
721
577
|
penMode: boolean;
|
|
722
578
|
penDetected: boolean;
|
|
723
579
|
exportBackground: boolean;
|
|
@@ -728,6 +584,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
728
584
|
currentItemBackgroundColor: string;
|
|
729
585
|
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
730
586
|
currentItemStrokeWidth: number;
|
|
587
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
731
588
|
currentItemRoughness: number;
|
|
732
589
|
currentItemOpacity: number;
|
|
733
590
|
currentItemFontFamily: number;
|
|
@@ -749,19 +606,21 @@ export declare const actionChangeStrokeStyle: {
|
|
|
749
606
|
zoom: Readonly<{
|
|
750
607
|
value: import("../types").NormalizedZoomValue;
|
|
751
608
|
}>;
|
|
752
|
-
openMenu: "
|
|
753
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
609
|
+
openMenu: "canvas" | "shape" | null;
|
|
610
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
754
611
|
openSidebar: {
|
|
755
612
|
name: string;
|
|
756
613
|
tab?: string | undefined;
|
|
757
614
|
} | null;
|
|
758
615
|
openDialog: {
|
|
759
|
-
name: "
|
|
616
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
760
617
|
} | {
|
|
761
618
|
name: "ttd";
|
|
762
619
|
tab: "mermaid" | "text-to-diagram";
|
|
763
620
|
} | {
|
|
764
621
|
name: "commandPalette";
|
|
622
|
+
} | {
|
|
623
|
+
name: "settings";
|
|
765
624
|
} | {
|
|
766
625
|
name: "elementLinkSelector";
|
|
767
626
|
sourceElementId: string;
|
|
@@ -831,10 +690,8 @@ export declare const actionChangeStrokeStyle: {
|
|
|
831
690
|
shown: true;
|
|
832
691
|
data: import("../charts").Spreadsheet;
|
|
833
692
|
};
|
|
834
|
-
|
|
835
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
693
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
836
694
|
linkOpacity: number;
|
|
837
|
-
trayModeEnabled: boolean;
|
|
838
695
|
colorPalette?: {
|
|
839
696
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
840
697
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -847,6 +704,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
847
704
|
} | undefined;
|
|
848
705
|
allowWheelZoom?: boolean | undefined;
|
|
849
706
|
allowPinchZoom?: boolean | undefined;
|
|
707
|
+
disableContextMenu: boolean;
|
|
850
708
|
pinnedScripts?: string[] | undefined;
|
|
851
709
|
customPens?: any[] | undefined;
|
|
852
710
|
currentStrokeOptions?: any;
|
|
@@ -855,6 +713,10 @@ export declare const actionChangeStrokeStyle: {
|
|
|
855
713
|
Bold: string;
|
|
856
714
|
Regular: string;
|
|
857
715
|
};
|
|
716
|
+
gridDirection: {
|
|
717
|
+
horizontal: boolean;
|
|
718
|
+
vertical: boolean;
|
|
719
|
+
};
|
|
858
720
|
highlightSearchResult: boolean;
|
|
859
721
|
dynamicStyle: {
|
|
860
722
|
[x: string]: string;
|
|
@@ -876,2416 +738,21 @@ export declare const actionChangeStrokeStyle: {
|
|
|
876
738
|
followedBy: Set<import("../types").SocketId>;
|
|
877
739
|
isCropping: boolean;
|
|
878
740
|
croppingElementId: string | null;
|
|
879
|
-
searchMatches:
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
}[];
|
|
741
|
+
searchMatches: Readonly<{
|
|
742
|
+
focusedId: string | null;
|
|
743
|
+
matches: readonly import("../types").SearchMatch[];
|
|
744
|
+
}> | null;
|
|
745
|
+
activeLockedId: string | null;
|
|
746
|
+
lockedMultiSelections: {
|
|
747
|
+
[groupId: string]: true;
|
|
748
|
+
};
|
|
749
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
889
750
|
};
|
|
890
751
|
captureUpdate: "IMMEDIATELY";
|
|
891
752
|
};
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
};
|
|
896
|
-
export declare const actionChangeOpacity: {
|
|
897
|
-
name: "changeOpacity";
|
|
898
|
-
label: string;
|
|
899
|
-
trackEvent: false;
|
|
900
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
901
|
-
elements: ExcalidrawElement[];
|
|
902
|
-
appState: {
|
|
903
|
-
currentItemOpacity: any;
|
|
904
|
-
contextMenu: {
|
|
905
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
906
|
-
top: number;
|
|
907
|
-
left: number;
|
|
908
|
-
} | null;
|
|
909
|
-
showWelcomeScreen: boolean;
|
|
910
|
-
isLoading: boolean;
|
|
911
|
-
errorMessage: import("react").ReactNode;
|
|
912
|
-
activeEmbeddable: {
|
|
913
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
914
|
-
state: "active" | "hover";
|
|
915
|
-
} | null;
|
|
916
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
917
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
918
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
919
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
920
|
-
isBindingEnabled: boolean;
|
|
921
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
922
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
923
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
924
|
-
frameRendering: {
|
|
925
|
-
enabled: boolean;
|
|
926
|
-
name: boolean;
|
|
927
|
-
outline: boolean;
|
|
928
|
-
clip: boolean;
|
|
929
|
-
};
|
|
930
|
-
editingFrame: string | null;
|
|
931
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
932
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
933
|
-
editingLinearElement: LinearElementEditor | null;
|
|
934
|
-
activeTool: {
|
|
935
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
936
|
-
locked: boolean;
|
|
937
|
-
fromSelection: boolean;
|
|
938
|
-
} & import("../types").ActiveTool;
|
|
939
|
-
penMode: boolean;
|
|
940
|
-
penDetected: boolean;
|
|
941
|
-
exportBackground: boolean;
|
|
942
|
-
exportEmbedScene: boolean;
|
|
943
|
-
exportWithDarkMode: boolean;
|
|
944
|
-
exportScale: number;
|
|
945
|
-
currentItemStrokeColor: string;
|
|
946
|
-
currentItemBackgroundColor: string;
|
|
947
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
948
|
-
currentItemStrokeWidth: number;
|
|
949
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
950
|
-
currentItemRoughness: number;
|
|
951
|
-
currentItemFontFamily: number;
|
|
952
|
-
currentItemFontSize: number;
|
|
953
|
-
currentItemTextAlign: string;
|
|
954
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
955
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
956
|
-
currentHoveredFontFamily: number | null;
|
|
957
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
958
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
959
|
-
viewBackgroundColor: string;
|
|
960
|
-
scrollX: number;
|
|
961
|
-
scrollY: number;
|
|
962
|
-
cursorButton: "up" | "down";
|
|
963
|
-
scrolledOutside: boolean;
|
|
964
|
-
name: string | null;
|
|
965
|
-
isResizing: boolean;
|
|
966
|
-
isRotating: boolean;
|
|
967
|
-
zoom: Readonly<{
|
|
968
|
-
value: import("../types").NormalizedZoomValue;
|
|
969
|
-
}>;
|
|
970
|
-
openMenu: "shape" | "canvas" | null;
|
|
971
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
972
|
-
openSidebar: {
|
|
973
|
-
name: string;
|
|
974
|
-
tab?: string | undefined;
|
|
975
|
-
} | null;
|
|
976
|
-
openDialog: {
|
|
977
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
978
|
-
} | {
|
|
979
|
-
name: "ttd";
|
|
980
|
-
tab: "mermaid" | "text-to-diagram";
|
|
981
|
-
} | {
|
|
982
|
-
name: "commandPalette";
|
|
983
|
-
} | {
|
|
984
|
-
name: "elementLinkSelector";
|
|
985
|
-
sourceElementId: string;
|
|
986
|
-
} | null;
|
|
987
|
-
defaultSidebarDockedPreference: boolean;
|
|
988
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
989
|
-
selectedElementIds: Readonly<{
|
|
990
|
-
[id: string]: true;
|
|
991
|
-
}>;
|
|
992
|
-
hoveredElementIds: Readonly<{
|
|
993
|
-
[id: string]: true;
|
|
994
|
-
}>;
|
|
995
|
-
previousSelectedElementIds: {
|
|
996
|
-
[id: string]: true;
|
|
997
|
-
};
|
|
998
|
-
selectedElementsAreBeingDragged: boolean;
|
|
999
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1000
|
-
toast: {
|
|
1001
|
-
message: string;
|
|
1002
|
-
closable?: boolean | undefined;
|
|
1003
|
-
duration?: number | undefined;
|
|
1004
|
-
} | null;
|
|
1005
|
-
zenModeEnabled: boolean;
|
|
1006
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1007
|
-
gridSize: number;
|
|
1008
|
-
gridStep: number;
|
|
1009
|
-
gridModeEnabled: boolean;
|
|
1010
|
-
viewModeEnabled: boolean;
|
|
1011
|
-
selectedGroupIds: {
|
|
1012
|
-
[groupId: string]: boolean;
|
|
1013
|
-
};
|
|
1014
|
-
editingGroupId: string | null;
|
|
1015
|
-
width: number;
|
|
1016
|
-
height: number;
|
|
1017
|
-
offsetTop: number;
|
|
1018
|
-
offsetLeft: number;
|
|
1019
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1020
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1021
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1022
|
-
button?: "up" | "down" | undefined;
|
|
1023
|
-
selectedElementIds?: Readonly<{
|
|
1024
|
-
[id: string]: true;
|
|
1025
|
-
}> | undefined;
|
|
1026
|
-
username?: string | null | undefined;
|
|
1027
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1028
|
-
color?: {
|
|
1029
|
-
background: string;
|
|
1030
|
-
stroke: string;
|
|
1031
|
-
} | undefined;
|
|
1032
|
-
avatarUrl?: string | undefined;
|
|
1033
|
-
id?: string | undefined;
|
|
1034
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1035
|
-
isCurrentUser?: boolean | undefined;
|
|
1036
|
-
isInCall?: boolean | undefined;
|
|
1037
|
-
isSpeaking?: boolean | undefined;
|
|
1038
|
-
isMuted?: boolean | undefined;
|
|
1039
|
-
}>>;
|
|
1040
|
-
stats: {
|
|
1041
|
-
open: boolean;
|
|
1042
|
-
panels: number;
|
|
1043
|
-
};
|
|
1044
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1045
|
-
pasteDialog: {
|
|
1046
|
-
shown: false;
|
|
1047
|
-
data: null;
|
|
1048
|
-
} | {
|
|
1049
|
-
shown: true;
|
|
1050
|
-
data: import("../charts").Spreadsheet;
|
|
1051
|
-
};
|
|
1052
|
-
pendingImageElementId: string | null;
|
|
1053
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1054
|
-
linkOpacity: number;
|
|
1055
|
-
trayModeEnabled: boolean;
|
|
1056
|
-
colorPalette?: {
|
|
1057
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1058
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1059
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1060
|
-
topPicks: {
|
|
1061
|
-
canvasBackground: [string, string, string, string, string];
|
|
1062
|
-
elementStroke: [string, string, string, string, string];
|
|
1063
|
-
elementBackground: [string, string, string, string, string];
|
|
1064
|
-
};
|
|
1065
|
-
} | undefined;
|
|
1066
|
-
allowWheelZoom?: boolean | undefined;
|
|
1067
|
-
allowPinchZoom?: boolean | undefined;
|
|
1068
|
-
pinnedScripts?: string[] | undefined;
|
|
1069
|
-
customPens?: any[] | undefined;
|
|
1070
|
-
currentStrokeOptions?: any;
|
|
1071
|
-
resetCustomPen?: any;
|
|
1072
|
-
gridColor: {
|
|
1073
|
-
Bold: string;
|
|
1074
|
-
Regular: string;
|
|
1075
|
-
};
|
|
1076
|
-
highlightSearchResult: boolean;
|
|
1077
|
-
dynamicStyle: {
|
|
1078
|
-
[x: string]: string;
|
|
1079
|
-
};
|
|
1080
|
-
frameColor: {
|
|
1081
|
-
stroke: string;
|
|
1082
|
-
fill: string;
|
|
1083
|
-
nameColor: string;
|
|
1084
|
-
};
|
|
1085
|
-
invertBindingBehaviour: boolean;
|
|
1086
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
1087
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1088
|
-
originSnapOffset: {
|
|
1089
|
-
x: number;
|
|
1090
|
-
y: number;
|
|
1091
|
-
} | null;
|
|
1092
|
-
objectsSnapModeEnabled: boolean;
|
|
1093
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1094
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1095
|
-
isCropping: boolean;
|
|
1096
|
-
croppingElementId: string | null;
|
|
1097
|
-
searchMatches: readonly {
|
|
1098
|
-
id: string;
|
|
1099
|
-
focus: boolean;
|
|
1100
|
-
matchedLines: {
|
|
1101
|
-
offsetX: number;
|
|
1102
|
-
offsetY: number;
|
|
1103
|
-
width: number;
|
|
1104
|
-
height: number;
|
|
1105
|
-
}[];
|
|
1106
|
-
}[];
|
|
1107
|
-
};
|
|
1108
|
-
captureUpdate: "IMMEDIATELY";
|
|
1109
|
-
};
|
|
1110
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1111
|
-
} & {
|
|
1112
|
-
keyTest?: undefined;
|
|
1113
|
-
};
|
|
1114
|
-
export declare const getFontSize: (size: number, zoom: number) => number;
|
|
1115
|
-
export declare const actionChangeFontSize: {
|
|
1116
|
-
name: "changeFontSize";
|
|
1117
|
-
label: string;
|
|
1118
|
-
trackEvent: false;
|
|
1119
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1120
|
-
elements: ExcalidrawElement[];
|
|
1121
|
-
appState: {
|
|
1122
|
-
currentItemFontSize: number;
|
|
1123
|
-
contextMenu: {
|
|
1124
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1125
|
-
top: number;
|
|
1126
|
-
left: number;
|
|
1127
|
-
} | null;
|
|
1128
|
-
showWelcomeScreen: boolean;
|
|
1129
|
-
isLoading: boolean;
|
|
1130
|
-
errorMessage: import("react").ReactNode;
|
|
1131
|
-
activeEmbeddable: {
|
|
1132
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1133
|
-
state: "active" | "hover";
|
|
1134
|
-
} | null;
|
|
1135
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1136
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1137
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1138
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1139
|
-
isBindingEnabled: boolean;
|
|
1140
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1141
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1142
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1143
|
-
frameRendering: {
|
|
1144
|
-
enabled: boolean;
|
|
1145
|
-
name: boolean;
|
|
1146
|
-
outline: boolean;
|
|
1147
|
-
clip: boolean;
|
|
1148
|
-
};
|
|
1149
|
-
editingFrame: string | null;
|
|
1150
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1151
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1152
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1153
|
-
activeTool: {
|
|
1154
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1155
|
-
locked: boolean;
|
|
1156
|
-
fromSelection: boolean;
|
|
1157
|
-
} & import("../types").ActiveTool;
|
|
1158
|
-
penMode: boolean;
|
|
1159
|
-
penDetected: boolean;
|
|
1160
|
-
exportBackground: boolean;
|
|
1161
|
-
exportEmbedScene: boolean;
|
|
1162
|
-
exportWithDarkMode: boolean;
|
|
1163
|
-
exportScale: number;
|
|
1164
|
-
currentItemStrokeColor: string;
|
|
1165
|
-
currentItemBackgroundColor: string;
|
|
1166
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1167
|
-
currentItemStrokeWidth: number;
|
|
1168
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1169
|
-
currentItemRoughness: number;
|
|
1170
|
-
currentItemOpacity: number;
|
|
1171
|
-
currentItemFontFamily: number;
|
|
1172
|
-
currentItemTextAlign: string;
|
|
1173
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
1174
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
1175
|
-
currentHoveredFontFamily: number | null;
|
|
1176
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1177
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1178
|
-
viewBackgroundColor: string;
|
|
1179
|
-
scrollX: number;
|
|
1180
|
-
scrollY: number;
|
|
1181
|
-
cursorButton: "up" | "down";
|
|
1182
|
-
scrolledOutside: boolean;
|
|
1183
|
-
name: string | null;
|
|
1184
|
-
isResizing: boolean;
|
|
1185
|
-
isRotating: boolean;
|
|
1186
|
-
zoom: Readonly<{
|
|
1187
|
-
value: import("../types").NormalizedZoomValue;
|
|
1188
|
-
}>;
|
|
1189
|
-
openMenu: "shape" | "canvas" | null;
|
|
1190
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1191
|
-
openSidebar: {
|
|
1192
|
-
name: string;
|
|
1193
|
-
tab?: string | undefined;
|
|
1194
|
-
} | null;
|
|
1195
|
-
openDialog: {
|
|
1196
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
1197
|
-
} | {
|
|
1198
|
-
name: "ttd";
|
|
1199
|
-
tab: "mermaid" | "text-to-diagram";
|
|
1200
|
-
} | {
|
|
1201
|
-
name: "commandPalette";
|
|
1202
|
-
} | {
|
|
1203
|
-
name: "elementLinkSelector";
|
|
1204
|
-
sourceElementId: string;
|
|
1205
|
-
} | null;
|
|
1206
|
-
defaultSidebarDockedPreference: boolean;
|
|
1207
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1208
|
-
selectedElementIds: Readonly<{
|
|
1209
|
-
[id: string]: true;
|
|
1210
|
-
}>;
|
|
1211
|
-
hoveredElementIds: Readonly<{
|
|
1212
|
-
[id: string]: true;
|
|
1213
|
-
}>;
|
|
1214
|
-
previousSelectedElementIds: {
|
|
1215
|
-
[id: string]: true;
|
|
1216
|
-
};
|
|
1217
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1218
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1219
|
-
toast: {
|
|
1220
|
-
message: string;
|
|
1221
|
-
closable?: boolean | undefined;
|
|
1222
|
-
duration?: number | undefined;
|
|
1223
|
-
} | null;
|
|
1224
|
-
zenModeEnabled: boolean;
|
|
1225
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1226
|
-
gridSize: number;
|
|
1227
|
-
gridStep: number;
|
|
1228
|
-
gridModeEnabled: boolean;
|
|
1229
|
-
viewModeEnabled: boolean;
|
|
1230
|
-
selectedGroupIds: {
|
|
1231
|
-
[groupId: string]: boolean;
|
|
1232
|
-
};
|
|
1233
|
-
editingGroupId: string | null;
|
|
1234
|
-
width: number;
|
|
1235
|
-
height: number;
|
|
1236
|
-
offsetTop: number;
|
|
1237
|
-
offsetLeft: number;
|
|
1238
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1239
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1240
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1241
|
-
button?: "up" | "down" | undefined;
|
|
1242
|
-
selectedElementIds?: Readonly<{
|
|
1243
|
-
[id: string]: true;
|
|
1244
|
-
}> | undefined;
|
|
1245
|
-
username?: string | null | undefined;
|
|
1246
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1247
|
-
color?: {
|
|
1248
|
-
background: string;
|
|
1249
|
-
stroke: string;
|
|
1250
|
-
} | undefined;
|
|
1251
|
-
avatarUrl?: string | undefined;
|
|
1252
|
-
id?: string | undefined;
|
|
1253
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1254
|
-
isCurrentUser?: boolean | undefined;
|
|
1255
|
-
isInCall?: boolean | undefined;
|
|
1256
|
-
isSpeaking?: boolean | undefined;
|
|
1257
|
-
isMuted?: boolean | undefined;
|
|
1258
|
-
}>>;
|
|
1259
|
-
stats: {
|
|
1260
|
-
open: boolean;
|
|
1261
|
-
panels: number;
|
|
1262
|
-
};
|
|
1263
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1264
|
-
pasteDialog: {
|
|
1265
|
-
shown: false;
|
|
1266
|
-
data: null;
|
|
1267
|
-
} | {
|
|
1268
|
-
shown: true;
|
|
1269
|
-
data: import("../charts").Spreadsheet;
|
|
1270
|
-
};
|
|
1271
|
-
pendingImageElementId: string | null;
|
|
1272
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1273
|
-
linkOpacity: number;
|
|
1274
|
-
trayModeEnabled: boolean;
|
|
1275
|
-
colorPalette?: {
|
|
1276
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1277
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1278
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1279
|
-
topPicks: {
|
|
1280
|
-
canvasBackground: [string, string, string, string, string];
|
|
1281
|
-
elementStroke: [string, string, string, string, string];
|
|
1282
|
-
elementBackground: [string, string, string, string, string];
|
|
1283
|
-
};
|
|
1284
|
-
} | undefined;
|
|
1285
|
-
allowWheelZoom?: boolean | undefined;
|
|
1286
|
-
allowPinchZoom?: boolean | undefined;
|
|
1287
|
-
pinnedScripts?: string[] | undefined;
|
|
1288
|
-
customPens?: any[] | undefined;
|
|
1289
|
-
currentStrokeOptions?: any;
|
|
1290
|
-
resetCustomPen?: any;
|
|
1291
|
-
gridColor: {
|
|
1292
|
-
Bold: string;
|
|
1293
|
-
Regular: string;
|
|
1294
|
-
};
|
|
1295
|
-
highlightSearchResult: boolean;
|
|
1296
|
-
dynamicStyle: {
|
|
1297
|
-
[x: string]: string;
|
|
1298
|
-
};
|
|
1299
|
-
frameColor: {
|
|
1300
|
-
stroke: string;
|
|
1301
|
-
fill: string;
|
|
1302
|
-
nameColor: string;
|
|
1303
|
-
};
|
|
1304
|
-
invertBindingBehaviour: boolean;
|
|
1305
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
1306
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1307
|
-
originSnapOffset: {
|
|
1308
|
-
x: number;
|
|
1309
|
-
y: number;
|
|
1310
|
-
} | null;
|
|
1311
|
-
objectsSnapModeEnabled: boolean;
|
|
1312
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1313
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1314
|
-
isCropping: boolean;
|
|
1315
|
-
croppingElementId: string | null;
|
|
1316
|
-
searchMatches: readonly {
|
|
1317
|
-
id: string;
|
|
1318
|
-
focus: boolean;
|
|
1319
|
-
matchedLines: {
|
|
1320
|
-
offsetX: number;
|
|
1321
|
-
offsetY: number;
|
|
1322
|
-
width: number;
|
|
1323
|
-
height: number;
|
|
1324
|
-
}[];
|
|
1325
|
-
}[];
|
|
1326
|
-
};
|
|
1327
|
-
captureUpdate: "IMMEDIATELY";
|
|
1328
|
-
};
|
|
1329
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1330
|
-
} & {
|
|
1331
|
-
keyTest?: undefined;
|
|
1332
|
-
};
|
|
1333
|
-
export declare const actionDecreaseFontSize: {
|
|
1334
|
-
name: "decreaseFontSize";
|
|
1335
|
-
label: string;
|
|
1336
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
1337
|
-
trackEvent: false;
|
|
1338
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1339
|
-
elements: ExcalidrawElement[];
|
|
1340
|
-
appState: {
|
|
1341
|
-
currentItemFontSize: number;
|
|
1342
|
-
contextMenu: {
|
|
1343
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1344
|
-
top: number;
|
|
1345
|
-
left: number;
|
|
1346
|
-
} | null;
|
|
1347
|
-
showWelcomeScreen: boolean;
|
|
1348
|
-
isLoading: boolean;
|
|
1349
|
-
errorMessage: import("react").ReactNode;
|
|
1350
|
-
activeEmbeddable: {
|
|
1351
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1352
|
-
state: "active" | "hover";
|
|
1353
|
-
} | null;
|
|
1354
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1355
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1356
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1357
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1358
|
-
isBindingEnabled: boolean;
|
|
1359
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1360
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1361
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1362
|
-
frameRendering: {
|
|
1363
|
-
enabled: boolean;
|
|
1364
|
-
name: boolean;
|
|
1365
|
-
outline: boolean;
|
|
1366
|
-
clip: boolean;
|
|
1367
|
-
};
|
|
1368
|
-
editingFrame: string | null;
|
|
1369
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1370
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1371
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1372
|
-
activeTool: {
|
|
1373
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1374
|
-
locked: boolean;
|
|
1375
|
-
fromSelection: boolean;
|
|
1376
|
-
} & import("../types").ActiveTool;
|
|
1377
|
-
penMode: boolean;
|
|
1378
|
-
penDetected: boolean;
|
|
1379
|
-
exportBackground: boolean;
|
|
1380
|
-
exportEmbedScene: boolean;
|
|
1381
|
-
exportWithDarkMode: boolean;
|
|
1382
|
-
exportScale: number;
|
|
1383
|
-
currentItemStrokeColor: string;
|
|
1384
|
-
currentItemBackgroundColor: string;
|
|
1385
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1386
|
-
currentItemStrokeWidth: number;
|
|
1387
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1388
|
-
currentItemRoughness: number;
|
|
1389
|
-
currentItemOpacity: number;
|
|
1390
|
-
currentItemFontFamily: number;
|
|
1391
|
-
currentItemTextAlign: string;
|
|
1392
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
1393
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
1394
|
-
currentHoveredFontFamily: number | null;
|
|
1395
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1396
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1397
|
-
viewBackgroundColor: string;
|
|
1398
|
-
scrollX: number;
|
|
1399
|
-
scrollY: number;
|
|
1400
|
-
cursorButton: "up" | "down";
|
|
1401
|
-
scrolledOutside: boolean;
|
|
1402
|
-
name: string | null;
|
|
1403
|
-
isResizing: boolean;
|
|
1404
|
-
isRotating: boolean;
|
|
1405
|
-
zoom: Readonly<{
|
|
1406
|
-
value: import("../types").NormalizedZoomValue;
|
|
1407
|
-
}>;
|
|
1408
|
-
openMenu: "shape" | "canvas" | null;
|
|
1409
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1410
|
-
openSidebar: {
|
|
1411
|
-
name: string;
|
|
1412
|
-
tab?: string | undefined;
|
|
1413
|
-
} | null;
|
|
1414
|
-
openDialog: {
|
|
1415
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
1416
|
-
} | {
|
|
1417
|
-
name: "ttd";
|
|
1418
|
-
tab: "mermaid" | "text-to-diagram";
|
|
1419
|
-
} | {
|
|
1420
|
-
name: "commandPalette";
|
|
1421
|
-
} | {
|
|
1422
|
-
name: "elementLinkSelector";
|
|
1423
|
-
sourceElementId: string;
|
|
1424
|
-
} | null;
|
|
1425
|
-
defaultSidebarDockedPreference: boolean;
|
|
1426
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1427
|
-
selectedElementIds: Readonly<{
|
|
1428
|
-
[id: string]: true;
|
|
1429
|
-
}>;
|
|
1430
|
-
hoveredElementIds: Readonly<{
|
|
1431
|
-
[id: string]: true;
|
|
1432
|
-
}>;
|
|
1433
|
-
previousSelectedElementIds: {
|
|
1434
|
-
[id: string]: true;
|
|
1435
|
-
};
|
|
1436
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1437
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1438
|
-
toast: {
|
|
1439
|
-
message: string;
|
|
1440
|
-
closable?: boolean | undefined;
|
|
1441
|
-
duration?: number | undefined;
|
|
1442
|
-
} | null;
|
|
1443
|
-
zenModeEnabled: boolean;
|
|
1444
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1445
|
-
gridSize: number;
|
|
1446
|
-
gridStep: number;
|
|
1447
|
-
gridModeEnabled: boolean;
|
|
1448
|
-
viewModeEnabled: boolean;
|
|
1449
|
-
selectedGroupIds: {
|
|
1450
|
-
[groupId: string]: boolean;
|
|
1451
|
-
};
|
|
1452
|
-
editingGroupId: string | null;
|
|
1453
|
-
width: number;
|
|
1454
|
-
height: number;
|
|
1455
|
-
offsetTop: number;
|
|
1456
|
-
offsetLeft: number;
|
|
1457
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1458
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1459
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1460
|
-
button?: "up" | "down" | undefined;
|
|
1461
|
-
selectedElementIds?: Readonly<{
|
|
1462
|
-
[id: string]: true;
|
|
1463
|
-
}> | undefined;
|
|
1464
|
-
username?: string | null | undefined;
|
|
1465
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1466
|
-
color?: {
|
|
1467
|
-
background: string;
|
|
1468
|
-
stroke: string;
|
|
1469
|
-
} | undefined;
|
|
1470
|
-
avatarUrl?: string | undefined;
|
|
1471
|
-
id?: string | undefined;
|
|
1472
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1473
|
-
isCurrentUser?: boolean | undefined;
|
|
1474
|
-
isInCall?: boolean | undefined;
|
|
1475
|
-
isSpeaking?: boolean | undefined;
|
|
1476
|
-
isMuted?: boolean | undefined;
|
|
1477
|
-
}>>;
|
|
1478
|
-
stats: {
|
|
1479
|
-
open: boolean;
|
|
1480
|
-
panels: number;
|
|
1481
|
-
};
|
|
1482
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1483
|
-
pasteDialog: {
|
|
1484
|
-
shown: false;
|
|
1485
|
-
data: null;
|
|
1486
|
-
} | {
|
|
1487
|
-
shown: true;
|
|
1488
|
-
data: import("../charts").Spreadsheet;
|
|
1489
|
-
};
|
|
1490
|
-
pendingImageElementId: string | null;
|
|
1491
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1492
|
-
linkOpacity: number;
|
|
1493
|
-
trayModeEnabled: boolean;
|
|
1494
|
-
colorPalette?: {
|
|
1495
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1496
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1497
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1498
|
-
topPicks: {
|
|
1499
|
-
canvasBackground: [string, string, string, string, string];
|
|
1500
|
-
elementStroke: [string, string, string, string, string];
|
|
1501
|
-
elementBackground: [string, string, string, string, string];
|
|
1502
|
-
};
|
|
1503
|
-
} | undefined;
|
|
1504
|
-
allowWheelZoom?: boolean | undefined;
|
|
1505
|
-
allowPinchZoom?: boolean | undefined;
|
|
1506
|
-
pinnedScripts?: string[] | undefined;
|
|
1507
|
-
customPens?: any[] | undefined;
|
|
1508
|
-
currentStrokeOptions?: any;
|
|
1509
|
-
resetCustomPen?: any;
|
|
1510
|
-
gridColor: {
|
|
1511
|
-
Bold: string;
|
|
1512
|
-
Regular: string;
|
|
1513
|
-
};
|
|
1514
|
-
highlightSearchResult: boolean;
|
|
1515
|
-
dynamicStyle: {
|
|
1516
|
-
[x: string]: string;
|
|
1517
|
-
};
|
|
1518
|
-
frameColor: {
|
|
1519
|
-
stroke: string;
|
|
1520
|
-
fill: string;
|
|
1521
|
-
nameColor: string;
|
|
1522
|
-
};
|
|
1523
|
-
invertBindingBehaviour: boolean;
|
|
1524
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
1525
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1526
|
-
originSnapOffset: {
|
|
1527
|
-
x: number;
|
|
1528
|
-
y: number;
|
|
1529
|
-
} | null;
|
|
1530
|
-
objectsSnapModeEnabled: boolean;
|
|
1531
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1532
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1533
|
-
isCropping: boolean;
|
|
1534
|
-
croppingElementId: string | null;
|
|
1535
|
-
searchMatches: readonly {
|
|
1536
|
-
id: string;
|
|
1537
|
-
focus: boolean;
|
|
1538
|
-
matchedLines: {
|
|
1539
|
-
offsetX: number;
|
|
1540
|
-
offsetY: number;
|
|
1541
|
-
width: number;
|
|
1542
|
-
height: number;
|
|
1543
|
-
}[];
|
|
1544
|
-
}[];
|
|
1545
|
-
};
|
|
1546
|
-
captureUpdate: "IMMEDIATELY";
|
|
1547
|
-
};
|
|
1548
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1549
|
-
} & {
|
|
1550
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1551
|
-
};
|
|
1552
|
-
export declare const actionIncreaseFontSize: {
|
|
1553
|
-
name: "increaseFontSize";
|
|
1554
|
-
label: string;
|
|
1555
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
1556
|
-
trackEvent: false;
|
|
1557
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1558
|
-
elements: ExcalidrawElement[];
|
|
1559
|
-
appState: {
|
|
1560
|
-
currentItemFontSize: number;
|
|
1561
|
-
contextMenu: {
|
|
1562
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1563
|
-
top: number;
|
|
1564
|
-
left: number;
|
|
1565
|
-
} | null;
|
|
1566
|
-
showWelcomeScreen: boolean;
|
|
1567
|
-
isLoading: boolean;
|
|
1568
|
-
errorMessage: import("react").ReactNode;
|
|
1569
|
-
activeEmbeddable: {
|
|
1570
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1571
|
-
state: "active" | "hover";
|
|
1572
|
-
} | null;
|
|
1573
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1574
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1575
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1576
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1577
|
-
isBindingEnabled: boolean;
|
|
1578
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1579
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1580
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1581
|
-
frameRendering: {
|
|
1582
|
-
enabled: boolean;
|
|
1583
|
-
name: boolean;
|
|
1584
|
-
outline: boolean;
|
|
1585
|
-
clip: boolean;
|
|
1586
|
-
};
|
|
1587
|
-
editingFrame: string | null;
|
|
1588
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1589
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1590
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1591
|
-
activeTool: {
|
|
1592
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1593
|
-
locked: boolean;
|
|
1594
|
-
fromSelection: boolean;
|
|
1595
|
-
} & import("../types").ActiveTool;
|
|
1596
|
-
penMode: boolean;
|
|
1597
|
-
penDetected: boolean;
|
|
1598
|
-
exportBackground: boolean;
|
|
1599
|
-
exportEmbedScene: boolean;
|
|
1600
|
-
exportWithDarkMode: boolean;
|
|
1601
|
-
exportScale: number;
|
|
1602
|
-
currentItemStrokeColor: string;
|
|
1603
|
-
currentItemBackgroundColor: string;
|
|
1604
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1605
|
-
currentItemStrokeWidth: number;
|
|
1606
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1607
|
-
currentItemRoughness: number;
|
|
1608
|
-
currentItemOpacity: number;
|
|
1609
|
-
currentItemFontFamily: number;
|
|
1610
|
-
currentItemTextAlign: string;
|
|
1611
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
1612
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
1613
|
-
currentHoveredFontFamily: number | null;
|
|
1614
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1615
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1616
|
-
viewBackgroundColor: string;
|
|
1617
|
-
scrollX: number;
|
|
1618
|
-
scrollY: number;
|
|
1619
|
-
cursorButton: "up" | "down";
|
|
1620
|
-
scrolledOutside: boolean;
|
|
1621
|
-
name: string | null;
|
|
1622
|
-
isResizing: boolean;
|
|
1623
|
-
isRotating: boolean;
|
|
1624
|
-
zoom: Readonly<{
|
|
1625
|
-
value: import("../types").NormalizedZoomValue;
|
|
1626
|
-
}>;
|
|
1627
|
-
openMenu: "shape" | "canvas" | null;
|
|
1628
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1629
|
-
openSidebar: {
|
|
1630
|
-
name: string;
|
|
1631
|
-
tab?: string | undefined;
|
|
1632
|
-
} | null;
|
|
1633
|
-
openDialog: {
|
|
1634
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
1635
|
-
} | {
|
|
1636
|
-
name: "ttd";
|
|
1637
|
-
tab: "mermaid" | "text-to-diagram";
|
|
1638
|
-
} | {
|
|
1639
|
-
name: "commandPalette";
|
|
1640
|
-
} | {
|
|
1641
|
-
name: "elementLinkSelector";
|
|
1642
|
-
sourceElementId: string;
|
|
1643
|
-
} | null;
|
|
1644
|
-
defaultSidebarDockedPreference: boolean;
|
|
1645
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1646
|
-
selectedElementIds: Readonly<{
|
|
1647
|
-
[id: string]: true;
|
|
1648
|
-
}>;
|
|
1649
|
-
hoveredElementIds: Readonly<{
|
|
1650
|
-
[id: string]: true;
|
|
1651
|
-
}>;
|
|
1652
|
-
previousSelectedElementIds: {
|
|
1653
|
-
[id: string]: true;
|
|
1654
|
-
};
|
|
1655
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1656
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1657
|
-
toast: {
|
|
1658
|
-
message: string;
|
|
1659
|
-
closable?: boolean | undefined;
|
|
1660
|
-
duration?: number | undefined;
|
|
1661
|
-
} | null;
|
|
1662
|
-
zenModeEnabled: boolean;
|
|
1663
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1664
|
-
gridSize: number;
|
|
1665
|
-
gridStep: number;
|
|
1666
|
-
gridModeEnabled: boolean;
|
|
1667
|
-
viewModeEnabled: boolean;
|
|
1668
|
-
selectedGroupIds: {
|
|
1669
|
-
[groupId: string]: boolean;
|
|
1670
|
-
};
|
|
1671
|
-
editingGroupId: string | null;
|
|
1672
|
-
width: number;
|
|
1673
|
-
height: number;
|
|
1674
|
-
offsetTop: number;
|
|
1675
|
-
offsetLeft: number;
|
|
1676
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1677
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1678
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1679
|
-
button?: "up" | "down" | undefined;
|
|
1680
|
-
selectedElementIds?: Readonly<{
|
|
1681
|
-
[id: string]: true;
|
|
1682
|
-
}> | undefined;
|
|
1683
|
-
username?: string | null | undefined;
|
|
1684
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1685
|
-
color?: {
|
|
1686
|
-
background: string;
|
|
1687
|
-
stroke: string;
|
|
1688
|
-
} | undefined;
|
|
1689
|
-
avatarUrl?: string | undefined;
|
|
1690
|
-
id?: string | undefined;
|
|
1691
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1692
|
-
isCurrentUser?: boolean | undefined;
|
|
1693
|
-
isInCall?: boolean | undefined;
|
|
1694
|
-
isSpeaking?: boolean | undefined;
|
|
1695
|
-
isMuted?: boolean | undefined;
|
|
1696
|
-
}>>;
|
|
1697
|
-
stats: {
|
|
1698
|
-
open: boolean;
|
|
1699
|
-
panels: number;
|
|
1700
|
-
};
|
|
1701
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1702
|
-
pasteDialog: {
|
|
1703
|
-
shown: false;
|
|
1704
|
-
data: null;
|
|
1705
|
-
} | {
|
|
1706
|
-
shown: true;
|
|
1707
|
-
data: import("../charts").Spreadsheet;
|
|
1708
|
-
};
|
|
1709
|
-
pendingImageElementId: string | null;
|
|
1710
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1711
|
-
linkOpacity: number;
|
|
1712
|
-
trayModeEnabled: boolean;
|
|
1713
|
-
colorPalette?: {
|
|
1714
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1715
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1716
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1717
|
-
topPicks: {
|
|
1718
|
-
canvasBackground: [string, string, string, string, string];
|
|
1719
|
-
elementStroke: [string, string, string, string, string];
|
|
1720
|
-
elementBackground: [string, string, string, string, string];
|
|
1721
|
-
};
|
|
1722
|
-
} | undefined;
|
|
1723
|
-
allowWheelZoom?: boolean | undefined;
|
|
1724
|
-
allowPinchZoom?: boolean | undefined;
|
|
1725
|
-
pinnedScripts?: string[] | undefined;
|
|
1726
|
-
customPens?: any[] | undefined;
|
|
1727
|
-
currentStrokeOptions?: any;
|
|
1728
|
-
resetCustomPen?: any;
|
|
1729
|
-
gridColor: {
|
|
1730
|
-
Bold: string;
|
|
1731
|
-
Regular: string;
|
|
1732
|
-
};
|
|
1733
|
-
highlightSearchResult: boolean;
|
|
1734
|
-
dynamicStyle: {
|
|
1735
|
-
[x: string]: string;
|
|
1736
|
-
};
|
|
1737
|
-
frameColor: {
|
|
1738
|
-
stroke: string;
|
|
1739
|
-
fill: string;
|
|
1740
|
-
nameColor: string;
|
|
1741
|
-
};
|
|
1742
|
-
invertBindingBehaviour: boolean;
|
|
1743
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
1744
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1745
|
-
originSnapOffset: {
|
|
1746
|
-
x: number;
|
|
1747
|
-
y: number;
|
|
1748
|
-
} | null;
|
|
1749
|
-
objectsSnapModeEnabled: boolean;
|
|
1750
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1751
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1752
|
-
isCropping: boolean;
|
|
1753
|
-
croppingElementId: string | null;
|
|
1754
|
-
searchMatches: readonly {
|
|
1755
|
-
id: string;
|
|
1756
|
-
focus: boolean;
|
|
1757
|
-
matchedLines: {
|
|
1758
|
-
offsetX: number;
|
|
1759
|
-
offsetY: number;
|
|
1760
|
-
width: number;
|
|
1761
|
-
height: number;
|
|
1762
|
-
}[];
|
|
1763
|
-
}[];
|
|
1764
|
-
};
|
|
1765
|
-
captureUpdate: "IMMEDIATELY";
|
|
1766
|
-
};
|
|
1767
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1768
|
-
} & {
|
|
1769
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1770
|
-
};
|
|
1771
|
-
export declare const actionChangeFontFamily: {
|
|
1772
|
-
name: "changeFontFamily";
|
|
1773
|
-
label: string;
|
|
1774
|
-
trackEvent: false;
|
|
1775
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1776
|
-
appState: {
|
|
1777
|
-
currentHoveredFontFamily: number | null;
|
|
1778
|
-
currentItemFontFamily: number;
|
|
1779
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1780
|
-
contextMenu: {
|
|
1781
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1782
|
-
top: number;
|
|
1783
|
-
left: number;
|
|
1784
|
-
} | null;
|
|
1785
|
-
showWelcomeScreen: boolean;
|
|
1786
|
-
isLoading: boolean;
|
|
1787
|
-
errorMessage: import("react").ReactNode;
|
|
1788
|
-
activeEmbeddable: {
|
|
1789
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1790
|
-
state: "active" | "hover";
|
|
1791
|
-
} | null;
|
|
1792
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1793
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1794
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1795
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1796
|
-
isBindingEnabled: boolean;
|
|
1797
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1798
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1799
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1800
|
-
frameRendering: {
|
|
1801
|
-
enabled: boolean;
|
|
1802
|
-
name: boolean;
|
|
1803
|
-
outline: boolean;
|
|
1804
|
-
clip: boolean;
|
|
1805
|
-
};
|
|
1806
|
-
editingFrame: string | null;
|
|
1807
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1808
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1809
|
-
editingLinearElement: LinearElementEditor | null;
|
|
1810
|
-
activeTool: {
|
|
1811
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1812
|
-
locked: boolean;
|
|
1813
|
-
fromSelection: boolean;
|
|
1814
|
-
} & import("../types").ActiveTool;
|
|
1815
|
-
penMode: boolean;
|
|
1816
|
-
penDetected: boolean;
|
|
1817
|
-
exportBackground: boolean;
|
|
1818
|
-
exportEmbedScene: boolean;
|
|
1819
|
-
exportWithDarkMode: boolean;
|
|
1820
|
-
exportScale: number;
|
|
1821
|
-
currentItemStrokeColor: string;
|
|
1822
|
-
currentItemBackgroundColor: string;
|
|
1823
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1824
|
-
currentItemStrokeWidth: number;
|
|
1825
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1826
|
-
currentItemRoughness: number;
|
|
1827
|
-
currentItemOpacity: number;
|
|
1828
|
-
currentItemFontSize: number;
|
|
1829
|
-
currentItemTextAlign: string;
|
|
1830
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
1831
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
1832
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1833
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1834
|
-
viewBackgroundColor: string;
|
|
1835
|
-
scrollX: number;
|
|
1836
|
-
scrollY: number;
|
|
1837
|
-
cursorButton: "up" | "down";
|
|
1838
|
-
scrolledOutside: boolean;
|
|
1839
|
-
name: string | null;
|
|
1840
|
-
isResizing: boolean;
|
|
1841
|
-
isRotating: boolean;
|
|
1842
|
-
zoom: Readonly<{
|
|
1843
|
-
value: import("../types").NormalizedZoomValue;
|
|
1844
|
-
}>;
|
|
1845
|
-
openMenu: "shape" | "canvas" | null;
|
|
1846
|
-
openSidebar: {
|
|
1847
|
-
name: string;
|
|
1848
|
-
tab?: string | undefined;
|
|
1849
|
-
} | null;
|
|
1850
|
-
openDialog: {
|
|
1851
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
1852
|
-
} | {
|
|
1853
|
-
name: "ttd";
|
|
1854
|
-
tab: "mermaid" | "text-to-diagram";
|
|
1855
|
-
} | {
|
|
1856
|
-
name: "commandPalette";
|
|
1857
|
-
} | {
|
|
1858
|
-
name: "elementLinkSelector";
|
|
1859
|
-
sourceElementId: string;
|
|
1860
|
-
} | null;
|
|
1861
|
-
defaultSidebarDockedPreference: boolean;
|
|
1862
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1863
|
-
selectedElementIds: Readonly<{
|
|
1864
|
-
[id: string]: true;
|
|
1865
|
-
}>;
|
|
1866
|
-
hoveredElementIds: Readonly<{
|
|
1867
|
-
[id: string]: true;
|
|
1868
|
-
}>;
|
|
1869
|
-
previousSelectedElementIds: {
|
|
1870
|
-
[id: string]: true;
|
|
1871
|
-
};
|
|
1872
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1873
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1874
|
-
toast: {
|
|
1875
|
-
message: string;
|
|
1876
|
-
closable?: boolean | undefined;
|
|
1877
|
-
duration?: number | undefined;
|
|
1878
|
-
} | null;
|
|
1879
|
-
zenModeEnabled: boolean;
|
|
1880
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
1881
|
-
gridSize: number;
|
|
1882
|
-
gridStep: number;
|
|
1883
|
-
gridModeEnabled: boolean;
|
|
1884
|
-
viewModeEnabled: boolean;
|
|
1885
|
-
selectedGroupIds: {
|
|
1886
|
-
[groupId: string]: boolean;
|
|
1887
|
-
};
|
|
1888
|
-
editingGroupId: string | null;
|
|
1889
|
-
width: number;
|
|
1890
|
-
height: number;
|
|
1891
|
-
offsetTop: number;
|
|
1892
|
-
offsetLeft: number;
|
|
1893
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1894
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1895
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1896
|
-
button?: "up" | "down" | undefined;
|
|
1897
|
-
selectedElementIds?: Readonly<{
|
|
1898
|
-
[id: string]: true;
|
|
1899
|
-
}> | undefined;
|
|
1900
|
-
username?: string | null | undefined;
|
|
1901
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1902
|
-
color?: {
|
|
1903
|
-
background: string;
|
|
1904
|
-
stroke: string;
|
|
1905
|
-
} | undefined;
|
|
1906
|
-
avatarUrl?: string | undefined;
|
|
1907
|
-
id?: string | undefined;
|
|
1908
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1909
|
-
isCurrentUser?: boolean | undefined;
|
|
1910
|
-
isInCall?: boolean | undefined;
|
|
1911
|
-
isSpeaking?: boolean | undefined;
|
|
1912
|
-
isMuted?: boolean | undefined;
|
|
1913
|
-
}>>;
|
|
1914
|
-
stats: {
|
|
1915
|
-
open: boolean;
|
|
1916
|
-
panels: number;
|
|
1917
|
-
};
|
|
1918
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1919
|
-
pasteDialog: {
|
|
1920
|
-
shown: false;
|
|
1921
|
-
data: null;
|
|
1922
|
-
} | {
|
|
1923
|
-
shown: true;
|
|
1924
|
-
data: import("../charts").Spreadsheet;
|
|
1925
|
-
};
|
|
1926
|
-
pendingImageElementId: string | null;
|
|
1927
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1928
|
-
linkOpacity: number;
|
|
1929
|
-
trayModeEnabled: boolean;
|
|
1930
|
-
colorPalette?: {
|
|
1931
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1932
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1933
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1934
|
-
topPicks: {
|
|
1935
|
-
canvasBackground: [string, string, string, string, string];
|
|
1936
|
-
elementStroke: [string, string, string, string, string];
|
|
1937
|
-
elementBackground: [string, string, string, string, string];
|
|
1938
|
-
};
|
|
1939
|
-
} | undefined;
|
|
1940
|
-
allowWheelZoom?: boolean | undefined;
|
|
1941
|
-
allowPinchZoom?: boolean | undefined;
|
|
1942
|
-
pinnedScripts?: string[] | undefined;
|
|
1943
|
-
customPens?: any[] | undefined;
|
|
1944
|
-
currentStrokeOptions?: any;
|
|
1945
|
-
resetCustomPen?: any;
|
|
1946
|
-
gridColor: {
|
|
1947
|
-
Bold: string;
|
|
1948
|
-
Regular: string;
|
|
1949
|
-
};
|
|
1950
|
-
highlightSearchResult: boolean;
|
|
1951
|
-
dynamicStyle: {
|
|
1952
|
-
[x: string]: string;
|
|
1953
|
-
};
|
|
1954
|
-
frameColor: {
|
|
1955
|
-
stroke: string;
|
|
1956
|
-
fill: string;
|
|
1957
|
-
nameColor: string;
|
|
1958
|
-
};
|
|
1959
|
-
invertBindingBehaviour: boolean;
|
|
1960
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
1961
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1962
|
-
originSnapOffset: {
|
|
1963
|
-
x: number;
|
|
1964
|
-
y: number;
|
|
1965
|
-
} | null;
|
|
1966
|
-
objectsSnapModeEnabled: boolean;
|
|
1967
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1968
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1969
|
-
isCropping: boolean;
|
|
1970
|
-
croppingElementId: string | null;
|
|
1971
|
-
searchMatches: readonly {
|
|
1972
|
-
id: string;
|
|
1973
|
-
focus: boolean;
|
|
1974
|
-
matchedLines: {
|
|
1975
|
-
offsetX: number;
|
|
1976
|
-
offsetY: number;
|
|
1977
|
-
width: number;
|
|
1978
|
-
height: number;
|
|
1979
|
-
}[];
|
|
1980
|
-
}[];
|
|
1981
|
-
};
|
|
1982
|
-
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
1983
|
-
} | {
|
|
1984
|
-
elements: ExcalidrawElement[];
|
|
1985
|
-
appState: {
|
|
1986
|
-
currentHoveredFontFamily: number | null;
|
|
1987
|
-
currentItemFontFamily: number;
|
|
1988
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1989
|
-
contextMenu: {
|
|
1990
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1991
|
-
top: number;
|
|
1992
|
-
left: number;
|
|
1993
|
-
} | null;
|
|
1994
|
-
showWelcomeScreen: boolean;
|
|
1995
|
-
isLoading: boolean;
|
|
1996
|
-
errorMessage: import("react").ReactNode;
|
|
1997
|
-
activeEmbeddable: {
|
|
1998
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1999
|
-
state: "active" | "hover";
|
|
2000
|
-
} | null;
|
|
2001
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2002
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2003
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2004
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2005
|
-
isBindingEnabled: boolean;
|
|
2006
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2007
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2008
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2009
|
-
frameRendering: {
|
|
2010
|
-
enabled: boolean;
|
|
2011
|
-
name: boolean;
|
|
2012
|
-
outline: boolean;
|
|
2013
|
-
clip: boolean;
|
|
2014
|
-
};
|
|
2015
|
-
editingFrame: string | null;
|
|
2016
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2017
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2018
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2019
|
-
activeTool: {
|
|
2020
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
2021
|
-
locked: boolean;
|
|
2022
|
-
fromSelection: boolean;
|
|
2023
|
-
} & import("../types").ActiveTool;
|
|
2024
|
-
penMode: boolean;
|
|
2025
|
-
penDetected: boolean;
|
|
2026
|
-
exportBackground: boolean;
|
|
2027
|
-
exportEmbedScene: boolean;
|
|
2028
|
-
exportWithDarkMode: boolean;
|
|
2029
|
-
exportScale: number;
|
|
2030
|
-
currentItemStrokeColor: string;
|
|
2031
|
-
currentItemBackgroundColor: string;
|
|
2032
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2033
|
-
currentItemStrokeWidth: number;
|
|
2034
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2035
|
-
currentItemRoughness: number;
|
|
2036
|
-
currentItemOpacity: number;
|
|
2037
|
-
currentItemFontSize: number;
|
|
2038
|
-
currentItemTextAlign: string;
|
|
2039
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
2040
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
2041
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2042
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2043
|
-
viewBackgroundColor: string;
|
|
2044
|
-
scrollX: number;
|
|
2045
|
-
scrollY: number;
|
|
2046
|
-
cursorButton: "up" | "down";
|
|
2047
|
-
scrolledOutside: boolean;
|
|
2048
|
-
name: string | null;
|
|
2049
|
-
isResizing: boolean;
|
|
2050
|
-
isRotating: boolean;
|
|
2051
|
-
zoom: Readonly<{
|
|
2052
|
-
value: import("../types").NormalizedZoomValue;
|
|
2053
|
-
}>;
|
|
2054
|
-
openMenu: "shape" | "canvas" | null;
|
|
2055
|
-
openSidebar: {
|
|
2056
|
-
name: string;
|
|
2057
|
-
tab?: string | undefined;
|
|
2058
|
-
} | null;
|
|
2059
|
-
openDialog: {
|
|
2060
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
2061
|
-
} | {
|
|
2062
|
-
name: "ttd";
|
|
2063
|
-
tab: "mermaid" | "text-to-diagram";
|
|
2064
|
-
} | {
|
|
2065
|
-
name: "commandPalette";
|
|
2066
|
-
} | {
|
|
2067
|
-
name: "elementLinkSelector";
|
|
2068
|
-
sourceElementId: string;
|
|
2069
|
-
} | null;
|
|
2070
|
-
defaultSidebarDockedPreference: boolean;
|
|
2071
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2072
|
-
selectedElementIds: Readonly<{
|
|
2073
|
-
[id: string]: true;
|
|
2074
|
-
}>;
|
|
2075
|
-
hoveredElementIds: Readonly<{
|
|
2076
|
-
[id: string]: true;
|
|
2077
|
-
}>;
|
|
2078
|
-
previousSelectedElementIds: {
|
|
2079
|
-
[id: string]: true;
|
|
2080
|
-
};
|
|
2081
|
-
selectedElementsAreBeingDragged: boolean;
|
|
2082
|
-
shouldCacheIgnoreZoom: boolean;
|
|
2083
|
-
toast: {
|
|
2084
|
-
message: string;
|
|
2085
|
-
closable?: boolean | undefined;
|
|
2086
|
-
duration?: number | undefined;
|
|
2087
|
-
} | null;
|
|
2088
|
-
zenModeEnabled: boolean;
|
|
2089
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
2090
|
-
gridSize: number;
|
|
2091
|
-
gridStep: number;
|
|
2092
|
-
gridModeEnabled: boolean;
|
|
2093
|
-
viewModeEnabled: boolean;
|
|
2094
|
-
selectedGroupIds: {
|
|
2095
|
-
[groupId: string]: boolean;
|
|
2096
|
-
};
|
|
2097
|
-
editingGroupId: string | null;
|
|
2098
|
-
width: number;
|
|
2099
|
-
height: number;
|
|
2100
|
-
offsetTop: number;
|
|
2101
|
-
offsetLeft: number;
|
|
2102
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2103
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
2104
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2105
|
-
button?: "up" | "down" | undefined;
|
|
2106
|
-
selectedElementIds?: Readonly<{
|
|
2107
|
-
[id: string]: true;
|
|
2108
|
-
}> | undefined;
|
|
2109
|
-
username?: string | null | undefined;
|
|
2110
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2111
|
-
color?: {
|
|
2112
|
-
background: string;
|
|
2113
|
-
stroke: string;
|
|
2114
|
-
} | undefined;
|
|
2115
|
-
avatarUrl?: string | undefined;
|
|
2116
|
-
id?: string | undefined;
|
|
2117
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2118
|
-
isCurrentUser?: boolean | undefined;
|
|
2119
|
-
isInCall?: boolean | undefined;
|
|
2120
|
-
isSpeaking?: boolean | undefined;
|
|
2121
|
-
isMuted?: boolean | undefined;
|
|
2122
|
-
}>>;
|
|
2123
|
-
stats: {
|
|
2124
|
-
open: boolean;
|
|
2125
|
-
panels: number;
|
|
2126
|
-
};
|
|
2127
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2128
|
-
pasteDialog: {
|
|
2129
|
-
shown: false;
|
|
2130
|
-
data: null;
|
|
2131
|
-
} | {
|
|
2132
|
-
shown: true;
|
|
2133
|
-
data: import("../charts").Spreadsheet;
|
|
2134
|
-
};
|
|
2135
|
-
pendingImageElementId: string | null;
|
|
2136
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
2137
|
-
linkOpacity: number;
|
|
2138
|
-
trayModeEnabled: boolean;
|
|
2139
|
-
colorPalette?: {
|
|
2140
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2141
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2142
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
2143
|
-
topPicks: {
|
|
2144
|
-
canvasBackground: [string, string, string, string, string];
|
|
2145
|
-
elementStroke: [string, string, string, string, string];
|
|
2146
|
-
elementBackground: [string, string, string, string, string];
|
|
2147
|
-
};
|
|
2148
|
-
} | undefined;
|
|
2149
|
-
allowWheelZoom?: boolean | undefined;
|
|
2150
|
-
allowPinchZoom?: boolean | undefined;
|
|
2151
|
-
pinnedScripts?: string[] | undefined;
|
|
2152
|
-
customPens?: any[] | undefined;
|
|
2153
|
-
currentStrokeOptions?: any;
|
|
2154
|
-
resetCustomPen?: any;
|
|
2155
|
-
gridColor: {
|
|
2156
|
-
Bold: string;
|
|
2157
|
-
Regular: string;
|
|
2158
|
-
};
|
|
2159
|
-
highlightSearchResult: boolean;
|
|
2160
|
-
dynamicStyle: {
|
|
2161
|
-
[x: string]: string;
|
|
2162
|
-
};
|
|
2163
|
-
frameColor: {
|
|
2164
|
-
stroke: string;
|
|
2165
|
-
fill: string;
|
|
2166
|
-
nameColor: string;
|
|
2167
|
-
};
|
|
2168
|
-
invertBindingBehaviour: boolean;
|
|
2169
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
2170
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
2171
|
-
originSnapOffset: {
|
|
2172
|
-
x: number;
|
|
2173
|
-
y: number;
|
|
2174
|
-
} | null;
|
|
2175
|
-
objectsSnapModeEnabled: boolean;
|
|
2176
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
2177
|
-
followedBy: Set<import("../types").SocketId>;
|
|
2178
|
-
isCropping: boolean;
|
|
2179
|
-
croppingElementId: string | null;
|
|
2180
|
-
searchMatches: readonly {
|
|
2181
|
-
id: string;
|
|
2182
|
-
focus: boolean;
|
|
2183
|
-
matchedLines: {
|
|
2184
|
-
offsetX: number;
|
|
2185
|
-
offsetY: number;
|
|
2186
|
-
width: number;
|
|
2187
|
-
height: number;
|
|
2188
|
-
}[];
|
|
2189
|
-
}[];
|
|
2190
|
-
};
|
|
2191
|
-
captureUpdate: "NEVER";
|
|
2192
|
-
};
|
|
2193
|
-
PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2194
|
-
} & {
|
|
2195
|
-
keyTest?: undefined;
|
|
2196
|
-
};
|
|
2197
|
-
export declare const actionChangeTextAlign: {
|
|
2198
|
-
name: "changeTextAlign";
|
|
2199
|
-
label: string;
|
|
2200
|
-
trackEvent: false;
|
|
2201
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2202
|
-
elements: ExcalidrawElement[];
|
|
2203
|
-
appState: {
|
|
2204
|
-
currentItemTextAlign: any;
|
|
2205
|
-
contextMenu: {
|
|
2206
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
2207
|
-
top: number;
|
|
2208
|
-
left: number;
|
|
2209
|
-
} | null;
|
|
2210
|
-
showWelcomeScreen: boolean;
|
|
2211
|
-
isLoading: boolean;
|
|
2212
|
-
errorMessage: import("react").ReactNode;
|
|
2213
|
-
activeEmbeddable: {
|
|
2214
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2215
|
-
state: "active" | "hover";
|
|
2216
|
-
} | null;
|
|
2217
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2218
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2219
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2220
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2221
|
-
isBindingEnabled: boolean;
|
|
2222
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2223
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2224
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2225
|
-
frameRendering: {
|
|
2226
|
-
enabled: boolean;
|
|
2227
|
-
name: boolean;
|
|
2228
|
-
outline: boolean;
|
|
2229
|
-
clip: boolean;
|
|
2230
|
-
};
|
|
2231
|
-
editingFrame: string | null;
|
|
2232
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2233
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2234
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2235
|
-
activeTool: {
|
|
2236
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
2237
|
-
locked: boolean;
|
|
2238
|
-
fromSelection: boolean;
|
|
2239
|
-
} & import("../types").ActiveTool;
|
|
2240
|
-
penMode: boolean;
|
|
2241
|
-
penDetected: boolean;
|
|
2242
|
-
exportBackground: boolean;
|
|
2243
|
-
exportEmbedScene: boolean;
|
|
2244
|
-
exportWithDarkMode: boolean;
|
|
2245
|
-
exportScale: number;
|
|
2246
|
-
currentItemStrokeColor: string;
|
|
2247
|
-
currentItemBackgroundColor: string;
|
|
2248
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2249
|
-
currentItemStrokeWidth: number;
|
|
2250
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2251
|
-
currentItemRoughness: number;
|
|
2252
|
-
currentItemOpacity: number;
|
|
2253
|
-
currentItemFontFamily: number;
|
|
2254
|
-
currentItemFontSize: number;
|
|
2255
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
2256
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
2257
|
-
currentHoveredFontFamily: number | null;
|
|
2258
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2259
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2260
|
-
viewBackgroundColor: string;
|
|
2261
|
-
scrollX: number;
|
|
2262
|
-
scrollY: number;
|
|
2263
|
-
cursorButton: "up" | "down";
|
|
2264
|
-
scrolledOutside: boolean;
|
|
2265
|
-
name: string | null;
|
|
2266
|
-
isResizing: boolean;
|
|
2267
|
-
isRotating: boolean;
|
|
2268
|
-
zoom: Readonly<{
|
|
2269
|
-
value: import("../types").NormalizedZoomValue;
|
|
2270
|
-
}>;
|
|
2271
|
-
openMenu: "shape" | "canvas" | null;
|
|
2272
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2273
|
-
openSidebar: {
|
|
2274
|
-
name: string;
|
|
2275
|
-
tab?: string | undefined;
|
|
2276
|
-
} | null;
|
|
2277
|
-
openDialog: {
|
|
2278
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
2279
|
-
} | {
|
|
2280
|
-
name: "ttd";
|
|
2281
|
-
tab: "mermaid" | "text-to-diagram";
|
|
2282
|
-
} | {
|
|
2283
|
-
name: "commandPalette";
|
|
2284
|
-
} | {
|
|
2285
|
-
name: "elementLinkSelector";
|
|
2286
|
-
sourceElementId: string;
|
|
2287
|
-
} | null;
|
|
2288
|
-
defaultSidebarDockedPreference: boolean;
|
|
2289
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2290
|
-
selectedElementIds: Readonly<{
|
|
2291
|
-
[id: string]: true;
|
|
2292
|
-
}>;
|
|
2293
|
-
hoveredElementIds: Readonly<{
|
|
2294
|
-
[id: string]: true;
|
|
2295
|
-
}>;
|
|
2296
|
-
previousSelectedElementIds: {
|
|
2297
|
-
[id: string]: true;
|
|
2298
|
-
};
|
|
2299
|
-
selectedElementsAreBeingDragged: boolean;
|
|
2300
|
-
shouldCacheIgnoreZoom: boolean;
|
|
2301
|
-
toast: {
|
|
2302
|
-
message: string;
|
|
2303
|
-
closable?: boolean | undefined;
|
|
2304
|
-
duration?: number | undefined;
|
|
2305
|
-
} | null;
|
|
2306
|
-
zenModeEnabled: boolean;
|
|
2307
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
2308
|
-
gridSize: number;
|
|
2309
|
-
gridStep: number;
|
|
2310
|
-
gridModeEnabled: boolean;
|
|
2311
|
-
viewModeEnabled: boolean;
|
|
2312
|
-
selectedGroupIds: {
|
|
2313
|
-
[groupId: string]: boolean;
|
|
2314
|
-
};
|
|
2315
|
-
editingGroupId: string | null;
|
|
2316
|
-
width: number;
|
|
2317
|
-
height: number;
|
|
2318
|
-
offsetTop: number;
|
|
2319
|
-
offsetLeft: number;
|
|
2320
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2321
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
2322
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2323
|
-
button?: "up" | "down" | undefined;
|
|
2324
|
-
selectedElementIds?: Readonly<{
|
|
2325
|
-
[id: string]: true;
|
|
2326
|
-
}> | undefined;
|
|
2327
|
-
username?: string | null | undefined;
|
|
2328
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2329
|
-
color?: {
|
|
2330
|
-
background: string;
|
|
2331
|
-
stroke: string;
|
|
2332
|
-
} | undefined;
|
|
2333
|
-
avatarUrl?: string | undefined;
|
|
2334
|
-
id?: string | undefined;
|
|
2335
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2336
|
-
isCurrentUser?: boolean | undefined;
|
|
2337
|
-
isInCall?: boolean | undefined;
|
|
2338
|
-
isSpeaking?: boolean | undefined;
|
|
2339
|
-
isMuted?: boolean | undefined;
|
|
2340
|
-
}>>;
|
|
2341
|
-
stats: {
|
|
2342
|
-
open: boolean;
|
|
2343
|
-
panels: number;
|
|
2344
|
-
};
|
|
2345
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2346
|
-
pasteDialog: {
|
|
2347
|
-
shown: false;
|
|
2348
|
-
data: null;
|
|
2349
|
-
} | {
|
|
2350
|
-
shown: true;
|
|
2351
|
-
data: import("../charts").Spreadsheet;
|
|
2352
|
-
};
|
|
2353
|
-
pendingImageElementId: string | null;
|
|
2354
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
2355
|
-
linkOpacity: number;
|
|
2356
|
-
trayModeEnabled: boolean;
|
|
2357
|
-
colorPalette?: {
|
|
2358
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2359
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2360
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
2361
|
-
topPicks: {
|
|
2362
|
-
canvasBackground: [string, string, string, string, string];
|
|
2363
|
-
elementStroke: [string, string, string, string, string];
|
|
2364
|
-
elementBackground: [string, string, string, string, string];
|
|
2365
|
-
};
|
|
2366
|
-
} | undefined;
|
|
2367
|
-
allowWheelZoom?: boolean | undefined;
|
|
2368
|
-
allowPinchZoom?: boolean | undefined;
|
|
2369
|
-
pinnedScripts?: string[] | undefined;
|
|
2370
|
-
customPens?: any[] | undefined;
|
|
2371
|
-
currentStrokeOptions?: any;
|
|
2372
|
-
resetCustomPen?: any;
|
|
2373
|
-
gridColor: {
|
|
2374
|
-
Bold: string;
|
|
2375
|
-
Regular: string;
|
|
2376
|
-
};
|
|
2377
|
-
highlightSearchResult: boolean;
|
|
2378
|
-
dynamicStyle: {
|
|
2379
|
-
[x: string]: string;
|
|
2380
|
-
};
|
|
2381
|
-
frameColor: {
|
|
2382
|
-
stroke: string;
|
|
2383
|
-
fill: string;
|
|
2384
|
-
nameColor: string;
|
|
2385
|
-
};
|
|
2386
|
-
invertBindingBehaviour: boolean;
|
|
2387
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
2388
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
2389
|
-
originSnapOffset: {
|
|
2390
|
-
x: number;
|
|
2391
|
-
y: number;
|
|
2392
|
-
} | null;
|
|
2393
|
-
objectsSnapModeEnabled: boolean;
|
|
2394
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
2395
|
-
followedBy: Set<import("../types").SocketId>;
|
|
2396
|
-
isCropping: boolean;
|
|
2397
|
-
croppingElementId: string | null;
|
|
2398
|
-
searchMatches: readonly {
|
|
2399
|
-
id: string;
|
|
2400
|
-
focus: boolean;
|
|
2401
|
-
matchedLines: {
|
|
2402
|
-
offsetX: number;
|
|
2403
|
-
offsetY: number;
|
|
2404
|
-
width: number;
|
|
2405
|
-
height: number;
|
|
2406
|
-
}[];
|
|
2407
|
-
}[];
|
|
2408
|
-
};
|
|
2409
|
-
captureUpdate: "IMMEDIATELY";
|
|
2410
|
-
};
|
|
2411
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2412
|
-
} & {
|
|
2413
|
-
keyTest?: undefined;
|
|
2414
|
-
};
|
|
2415
|
-
export declare const actionChangeVerticalAlign: {
|
|
2416
|
-
name: "changeVerticalAlign";
|
|
2417
|
-
label: string;
|
|
2418
|
-
trackEvent: {
|
|
2419
|
-
category: "element";
|
|
2420
|
-
};
|
|
2421
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2422
|
-
elements: ExcalidrawElement[];
|
|
2423
|
-
appState: {
|
|
2424
|
-
contextMenu: {
|
|
2425
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
2426
|
-
top: number;
|
|
2427
|
-
left: number;
|
|
2428
|
-
} | null;
|
|
2429
|
-
showWelcomeScreen: boolean;
|
|
2430
|
-
isLoading: boolean;
|
|
2431
|
-
errorMessage: import("react").ReactNode;
|
|
2432
|
-
activeEmbeddable: {
|
|
2433
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2434
|
-
state: "active" | "hover";
|
|
2435
|
-
} | null;
|
|
2436
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2437
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2438
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2439
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2440
|
-
isBindingEnabled: boolean;
|
|
2441
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2442
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2443
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2444
|
-
frameRendering: {
|
|
2445
|
-
enabled: boolean;
|
|
2446
|
-
name: boolean;
|
|
2447
|
-
outline: boolean;
|
|
2448
|
-
clip: boolean;
|
|
2449
|
-
};
|
|
2450
|
-
editingFrame: string | null;
|
|
2451
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2452
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2453
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2454
|
-
activeTool: {
|
|
2455
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
2456
|
-
locked: boolean;
|
|
2457
|
-
fromSelection: boolean;
|
|
2458
|
-
} & import("../types").ActiveTool;
|
|
2459
|
-
penMode: boolean;
|
|
2460
|
-
penDetected: boolean;
|
|
2461
|
-
exportBackground: boolean;
|
|
2462
|
-
exportEmbedScene: boolean;
|
|
2463
|
-
exportWithDarkMode: boolean;
|
|
2464
|
-
exportScale: number;
|
|
2465
|
-
currentItemStrokeColor: string;
|
|
2466
|
-
currentItemBackgroundColor: string;
|
|
2467
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2468
|
-
currentItemStrokeWidth: number;
|
|
2469
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2470
|
-
currentItemRoughness: number;
|
|
2471
|
-
currentItemOpacity: number;
|
|
2472
|
-
currentItemFontFamily: number;
|
|
2473
|
-
currentItemFontSize: number;
|
|
2474
|
-
currentItemTextAlign: string;
|
|
2475
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
2476
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
2477
|
-
currentHoveredFontFamily: number | null;
|
|
2478
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2479
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2480
|
-
viewBackgroundColor: string;
|
|
2481
|
-
scrollX: number;
|
|
2482
|
-
scrollY: number;
|
|
2483
|
-
cursorButton: "up" | "down";
|
|
2484
|
-
scrolledOutside: boolean;
|
|
2485
|
-
name: string | null;
|
|
2486
|
-
isResizing: boolean;
|
|
2487
|
-
isRotating: boolean;
|
|
2488
|
-
zoom: Readonly<{
|
|
2489
|
-
value: import("../types").NormalizedZoomValue;
|
|
2490
|
-
}>;
|
|
2491
|
-
openMenu: "shape" | "canvas" | null;
|
|
2492
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2493
|
-
openSidebar: {
|
|
2494
|
-
name: string;
|
|
2495
|
-
tab?: string | undefined;
|
|
2496
|
-
} | null;
|
|
2497
|
-
openDialog: {
|
|
2498
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
2499
|
-
} | {
|
|
2500
|
-
name: "ttd";
|
|
2501
|
-
tab: "mermaid" | "text-to-diagram";
|
|
2502
|
-
} | {
|
|
2503
|
-
name: "commandPalette";
|
|
2504
|
-
} | {
|
|
2505
|
-
name: "elementLinkSelector";
|
|
2506
|
-
sourceElementId: string;
|
|
2507
|
-
} | null;
|
|
2508
|
-
defaultSidebarDockedPreference: boolean;
|
|
2509
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2510
|
-
selectedElementIds: Readonly<{
|
|
2511
|
-
[id: string]: true;
|
|
2512
|
-
}>;
|
|
2513
|
-
hoveredElementIds: Readonly<{
|
|
2514
|
-
[id: string]: true;
|
|
2515
|
-
}>;
|
|
2516
|
-
previousSelectedElementIds: {
|
|
2517
|
-
[id: string]: true;
|
|
2518
|
-
};
|
|
2519
|
-
selectedElementsAreBeingDragged: boolean;
|
|
2520
|
-
shouldCacheIgnoreZoom: boolean;
|
|
2521
|
-
toast: {
|
|
2522
|
-
message: string;
|
|
2523
|
-
closable?: boolean | undefined;
|
|
2524
|
-
duration?: number | undefined;
|
|
2525
|
-
} | null;
|
|
2526
|
-
zenModeEnabled: boolean;
|
|
2527
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
2528
|
-
gridSize: number;
|
|
2529
|
-
gridStep: number;
|
|
2530
|
-
gridModeEnabled: boolean;
|
|
2531
|
-
viewModeEnabled: boolean;
|
|
2532
|
-
selectedGroupIds: {
|
|
2533
|
-
[groupId: string]: boolean;
|
|
2534
|
-
};
|
|
2535
|
-
editingGroupId: string | null;
|
|
2536
|
-
width: number;
|
|
2537
|
-
height: number;
|
|
2538
|
-
offsetTop: number;
|
|
2539
|
-
offsetLeft: number;
|
|
2540
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2541
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
2542
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2543
|
-
button?: "up" | "down" | undefined;
|
|
2544
|
-
selectedElementIds?: Readonly<{
|
|
2545
|
-
[id: string]: true;
|
|
2546
|
-
}> | undefined;
|
|
2547
|
-
username?: string | null | undefined;
|
|
2548
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2549
|
-
color?: {
|
|
2550
|
-
background: string;
|
|
2551
|
-
stroke: string;
|
|
2552
|
-
} | undefined;
|
|
2553
|
-
avatarUrl?: string | undefined;
|
|
2554
|
-
id?: string | undefined;
|
|
2555
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2556
|
-
isCurrentUser?: boolean | undefined;
|
|
2557
|
-
isInCall?: boolean | undefined;
|
|
2558
|
-
isSpeaking?: boolean | undefined;
|
|
2559
|
-
isMuted?: boolean | undefined;
|
|
2560
|
-
}>>;
|
|
2561
|
-
stats: {
|
|
2562
|
-
open: boolean;
|
|
2563
|
-
panels: number;
|
|
2564
|
-
};
|
|
2565
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2566
|
-
pasteDialog: {
|
|
2567
|
-
shown: false;
|
|
2568
|
-
data: null;
|
|
2569
|
-
} | {
|
|
2570
|
-
shown: true;
|
|
2571
|
-
data: import("../charts").Spreadsheet;
|
|
2572
|
-
};
|
|
2573
|
-
pendingImageElementId: string | null;
|
|
2574
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
2575
|
-
linkOpacity: number;
|
|
2576
|
-
trayModeEnabled: boolean;
|
|
2577
|
-
colorPalette?: {
|
|
2578
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2579
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2580
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
2581
|
-
topPicks: {
|
|
2582
|
-
canvasBackground: [string, string, string, string, string];
|
|
2583
|
-
elementStroke: [string, string, string, string, string];
|
|
2584
|
-
elementBackground: [string, string, string, string, string];
|
|
2585
|
-
};
|
|
2586
|
-
} | undefined;
|
|
2587
|
-
allowWheelZoom?: boolean | undefined;
|
|
2588
|
-
allowPinchZoom?: boolean | undefined;
|
|
2589
|
-
pinnedScripts?: string[] | undefined;
|
|
2590
|
-
customPens?: any[] | undefined;
|
|
2591
|
-
currentStrokeOptions?: any;
|
|
2592
|
-
resetCustomPen?: any;
|
|
2593
|
-
gridColor: {
|
|
2594
|
-
Bold: string;
|
|
2595
|
-
Regular: string;
|
|
2596
|
-
};
|
|
2597
|
-
highlightSearchResult: boolean;
|
|
2598
|
-
dynamicStyle: {
|
|
2599
|
-
[x: string]: string;
|
|
2600
|
-
};
|
|
2601
|
-
frameColor: {
|
|
2602
|
-
stroke: string;
|
|
2603
|
-
fill: string;
|
|
2604
|
-
nameColor: string;
|
|
2605
|
-
};
|
|
2606
|
-
invertBindingBehaviour: boolean;
|
|
2607
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
2608
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
2609
|
-
originSnapOffset: {
|
|
2610
|
-
x: number;
|
|
2611
|
-
y: number;
|
|
2612
|
-
} | null;
|
|
2613
|
-
objectsSnapModeEnabled: boolean;
|
|
2614
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
2615
|
-
followedBy: Set<import("../types").SocketId>;
|
|
2616
|
-
isCropping: boolean;
|
|
2617
|
-
croppingElementId: string | null;
|
|
2618
|
-
searchMatches: readonly {
|
|
2619
|
-
id: string;
|
|
2620
|
-
focus: boolean;
|
|
2621
|
-
matchedLines: {
|
|
2622
|
-
offsetX: number;
|
|
2623
|
-
offsetY: number;
|
|
2624
|
-
width: number;
|
|
2625
|
-
height: number;
|
|
2626
|
-
}[];
|
|
2627
|
-
}[];
|
|
2628
|
-
};
|
|
2629
|
-
captureUpdate: "IMMEDIATELY";
|
|
2630
|
-
};
|
|
2631
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2632
|
-
} & {
|
|
2633
|
-
keyTest?: undefined;
|
|
2634
|
-
};
|
|
2635
|
-
export declare const actionChangeRoundness: {
|
|
2636
|
-
name: "changeRoundness";
|
|
2637
|
-
label: string;
|
|
2638
|
-
trackEvent: false;
|
|
2639
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
2640
|
-
elements: ExcalidrawElement[];
|
|
2641
|
-
appState: {
|
|
2642
|
-
currentItemRoundness: any;
|
|
2643
|
-
contextMenu: {
|
|
2644
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
2645
|
-
top: number;
|
|
2646
|
-
left: number;
|
|
2647
|
-
} | null;
|
|
2648
|
-
showWelcomeScreen: boolean;
|
|
2649
|
-
isLoading: boolean;
|
|
2650
|
-
errorMessage: import("react").ReactNode;
|
|
2651
|
-
activeEmbeddable: {
|
|
2652
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2653
|
-
state: "active" | "hover";
|
|
2654
|
-
} | null;
|
|
2655
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2656
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2657
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2658
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2659
|
-
isBindingEnabled: boolean;
|
|
2660
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2661
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2662
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2663
|
-
frameRendering: {
|
|
2664
|
-
enabled: boolean;
|
|
2665
|
-
name: boolean;
|
|
2666
|
-
outline: boolean;
|
|
2667
|
-
clip: boolean;
|
|
2668
|
-
};
|
|
2669
|
-
editingFrame: string | null;
|
|
2670
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2671
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2672
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2673
|
-
activeTool: {
|
|
2674
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
2675
|
-
locked: boolean;
|
|
2676
|
-
fromSelection: boolean;
|
|
2677
|
-
} & import("../types").ActiveTool;
|
|
2678
|
-
penMode: boolean;
|
|
2679
|
-
penDetected: boolean;
|
|
2680
|
-
exportBackground: boolean;
|
|
2681
|
-
exportEmbedScene: boolean;
|
|
2682
|
-
exportWithDarkMode: boolean;
|
|
2683
|
-
exportScale: number;
|
|
2684
|
-
currentItemStrokeColor: string;
|
|
2685
|
-
currentItemBackgroundColor: string;
|
|
2686
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2687
|
-
currentItemStrokeWidth: number;
|
|
2688
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2689
|
-
currentItemRoughness: number;
|
|
2690
|
-
currentItemOpacity: number;
|
|
2691
|
-
currentItemFontFamily: number;
|
|
2692
|
-
currentItemFontSize: number;
|
|
2693
|
-
currentItemTextAlign: string;
|
|
2694
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
2695
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
2696
|
-
currentHoveredFontFamily: number | null;
|
|
2697
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2698
|
-
viewBackgroundColor: string;
|
|
2699
|
-
scrollX: number;
|
|
2700
|
-
scrollY: number;
|
|
2701
|
-
cursorButton: "up" | "down";
|
|
2702
|
-
scrolledOutside: boolean;
|
|
2703
|
-
name: string | null;
|
|
2704
|
-
isResizing: boolean;
|
|
2705
|
-
isRotating: boolean;
|
|
2706
|
-
zoom: Readonly<{
|
|
2707
|
-
value: import("../types").NormalizedZoomValue;
|
|
2708
|
-
}>;
|
|
2709
|
-
openMenu: "shape" | "canvas" | null;
|
|
2710
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2711
|
-
openSidebar: {
|
|
2712
|
-
name: string;
|
|
2713
|
-
tab?: string | undefined;
|
|
2714
|
-
} | null;
|
|
2715
|
-
openDialog: {
|
|
2716
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
2717
|
-
} | {
|
|
2718
|
-
name: "ttd";
|
|
2719
|
-
tab: "mermaid" | "text-to-diagram";
|
|
2720
|
-
} | {
|
|
2721
|
-
name: "commandPalette";
|
|
2722
|
-
} | {
|
|
2723
|
-
name: "elementLinkSelector";
|
|
2724
|
-
sourceElementId: string;
|
|
2725
|
-
} | null;
|
|
2726
|
-
defaultSidebarDockedPreference: boolean;
|
|
2727
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2728
|
-
selectedElementIds: Readonly<{
|
|
2729
|
-
[id: string]: true;
|
|
2730
|
-
}>;
|
|
2731
|
-
hoveredElementIds: Readonly<{
|
|
2732
|
-
[id: string]: true;
|
|
2733
|
-
}>;
|
|
2734
|
-
previousSelectedElementIds: {
|
|
2735
|
-
[id: string]: true;
|
|
2736
|
-
};
|
|
2737
|
-
selectedElementsAreBeingDragged: boolean;
|
|
2738
|
-
shouldCacheIgnoreZoom: boolean;
|
|
2739
|
-
toast: {
|
|
2740
|
-
message: string;
|
|
2741
|
-
closable?: boolean | undefined;
|
|
2742
|
-
duration?: number | undefined;
|
|
2743
|
-
} | null;
|
|
2744
|
-
zenModeEnabled: boolean;
|
|
2745
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
2746
|
-
gridSize: number;
|
|
2747
|
-
gridStep: number;
|
|
2748
|
-
gridModeEnabled: boolean;
|
|
2749
|
-
viewModeEnabled: boolean;
|
|
2750
|
-
selectedGroupIds: {
|
|
2751
|
-
[groupId: string]: boolean;
|
|
2752
|
-
};
|
|
2753
|
-
editingGroupId: string | null;
|
|
2754
|
-
width: number;
|
|
2755
|
-
height: number;
|
|
2756
|
-
offsetTop: number;
|
|
2757
|
-
offsetLeft: number;
|
|
2758
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2759
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
2760
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2761
|
-
button?: "up" | "down" | undefined;
|
|
2762
|
-
selectedElementIds?: Readonly<{
|
|
2763
|
-
[id: string]: true;
|
|
2764
|
-
}> | undefined;
|
|
2765
|
-
username?: string | null | undefined;
|
|
2766
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2767
|
-
color?: {
|
|
2768
|
-
background: string;
|
|
2769
|
-
stroke: string;
|
|
2770
|
-
} | undefined;
|
|
2771
|
-
avatarUrl?: string | undefined;
|
|
2772
|
-
id?: string | undefined;
|
|
2773
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2774
|
-
isCurrentUser?: boolean | undefined;
|
|
2775
|
-
isInCall?: boolean | undefined;
|
|
2776
|
-
isSpeaking?: boolean | undefined;
|
|
2777
|
-
isMuted?: boolean | undefined;
|
|
2778
|
-
}>>;
|
|
2779
|
-
stats: {
|
|
2780
|
-
open: boolean;
|
|
2781
|
-
panels: number;
|
|
2782
|
-
};
|
|
2783
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2784
|
-
pasteDialog: {
|
|
2785
|
-
shown: false;
|
|
2786
|
-
data: null;
|
|
2787
|
-
} | {
|
|
2788
|
-
shown: true;
|
|
2789
|
-
data: import("../charts").Spreadsheet;
|
|
2790
|
-
};
|
|
2791
|
-
pendingImageElementId: string | null;
|
|
2792
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
2793
|
-
linkOpacity: number;
|
|
2794
|
-
trayModeEnabled: boolean;
|
|
2795
|
-
colorPalette?: {
|
|
2796
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2797
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2798
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
2799
|
-
topPicks: {
|
|
2800
|
-
canvasBackground: [string, string, string, string, string];
|
|
2801
|
-
elementStroke: [string, string, string, string, string];
|
|
2802
|
-
elementBackground: [string, string, string, string, string];
|
|
2803
|
-
};
|
|
2804
|
-
} | undefined;
|
|
2805
|
-
allowWheelZoom?: boolean | undefined;
|
|
2806
|
-
allowPinchZoom?: boolean | undefined;
|
|
2807
|
-
pinnedScripts?: string[] | undefined;
|
|
2808
|
-
customPens?: any[] | undefined;
|
|
2809
|
-
currentStrokeOptions?: any;
|
|
2810
|
-
resetCustomPen?: any;
|
|
2811
|
-
gridColor: {
|
|
2812
|
-
Bold: string;
|
|
2813
|
-
Regular: string;
|
|
2814
|
-
};
|
|
2815
|
-
highlightSearchResult: boolean;
|
|
2816
|
-
dynamicStyle: {
|
|
2817
|
-
[x: string]: string;
|
|
2818
|
-
};
|
|
2819
|
-
frameColor: {
|
|
2820
|
-
stroke: string;
|
|
2821
|
-
fill: string;
|
|
2822
|
-
nameColor: string;
|
|
2823
|
-
};
|
|
2824
|
-
invertBindingBehaviour: boolean;
|
|
2825
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
2826
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
2827
|
-
originSnapOffset: {
|
|
2828
|
-
x: number;
|
|
2829
|
-
y: number;
|
|
2830
|
-
} | null;
|
|
2831
|
-
objectsSnapModeEnabled: boolean;
|
|
2832
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
2833
|
-
followedBy: Set<import("../types").SocketId>;
|
|
2834
|
-
isCropping: boolean;
|
|
2835
|
-
croppingElementId: string | null;
|
|
2836
|
-
searchMatches: readonly {
|
|
2837
|
-
id: string;
|
|
2838
|
-
focus: boolean;
|
|
2839
|
-
matchedLines: {
|
|
2840
|
-
offsetX: number;
|
|
2841
|
-
offsetY: number;
|
|
2842
|
-
width: number;
|
|
2843
|
-
height: number;
|
|
2844
|
-
}[];
|
|
2845
|
-
}[];
|
|
2846
|
-
};
|
|
2847
|
-
captureUpdate: "IMMEDIATELY";
|
|
2848
|
-
};
|
|
2849
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2850
|
-
} & {
|
|
2851
|
-
keyTest?: undefined;
|
|
2852
|
-
};
|
|
2853
|
-
export declare const actionChangeArrowhead: {
|
|
2854
|
-
name: "changeArrowhead";
|
|
2855
|
-
label: string;
|
|
2856
|
-
trackEvent: false;
|
|
2857
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
|
|
2858
|
-
position: "start" | "end";
|
|
2859
|
-
type: Arrowhead;
|
|
2860
|
-
}) => {
|
|
2861
|
-
elements: ExcalidrawElement[];
|
|
2862
|
-
appState: {
|
|
2863
|
-
contextMenu: {
|
|
2864
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
2865
|
-
top: number;
|
|
2866
|
-
left: number;
|
|
2867
|
-
} | null;
|
|
2868
|
-
showWelcomeScreen: boolean;
|
|
2869
|
-
isLoading: boolean;
|
|
2870
|
-
errorMessage: import("react").ReactNode;
|
|
2871
|
-
activeEmbeddable: {
|
|
2872
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2873
|
-
state: "active" | "hover";
|
|
2874
|
-
} | null;
|
|
2875
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2876
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2877
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2878
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2879
|
-
isBindingEnabled: boolean;
|
|
2880
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2881
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2882
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2883
|
-
frameRendering: {
|
|
2884
|
-
enabled: boolean;
|
|
2885
|
-
name: boolean;
|
|
2886
|
-
outline: boolean;
|
|
2887
|
-
clip: boolean;
|
|
2888
|
-
};
|
|
2889
|
-
editingFrame: string | null;
|
|
2890
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2891
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2892
|
-
editingLinearElement: LinearElementEditor | null;
|
|
2893
|
-
activeTool: {
|
|
2894
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
2895
|
-
locked: boolean;
|
|
2896
|
-
fromSelection: boolean;
|
|
2897
|
-
} & import("../types").ActiveTool;
|
|
2898
|
-
penMode: boolean;
|
|
2899
|
-
penDetected: boolean;
|
|
2900
|
-
exportBackground: boolean;
|
|
2901
|
-
exportEmbedScene: boolean;
|
|
2902
|
-
exportWithDarkMode: boolean;
|
|
2903
|
-
exportScale: number;
|
|
2904
|
-
currentItemStrokeColor: string;
|
|
2905
|
-
currentItemBackgroundColor: string;
|
|
2906
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2907
|
-
currentItemStrokeWidth: number;
|
|
2908
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2909
|
-
currentItemRoughness: number;
|
|
2910
|
-
currentItemOpacity: number;
|
|
2911
|
-
currentItemFontFamily: number;
|
|
2912
|
-
currentItemFontSize: number;
|
|
2913
|
-
currentItemTextAlign: string;
|
|
2914
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
2915
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
2916
|
-
currentHoveredFontFamily: number | null;
|
|
2917
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2918
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2919
|
-
viewBackgroundColor: string;
|
|
2920
|
-
scrollX: number;
|
|
2921
|
-
scrollY: number;
|
|
2922
|
-
cursorButton: "up" | "down";
|
|
2923
|
-
scrolledOutside: boolean;
|
|
2924
|
-
name: string | null;
|
|
2925
|
-
isResizing: boolean;
|
|
2926
|
-
isRotating: boolean;
|
|
2927
|
-
zoom: Readonly<{
|
|
2928
|
-
value: import("../types").NormalizedZoomValue;
|
|
2929
|
-
}>;
|
|
2930
|
-
openMenu: "shape" | "canvas" | null;
|
|
2931
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2932
|
-
openSidebar: {
|
|
2933
|
-
name: string;
|
|
2934
|
-
tab?: string | undefined;
|
|
2935
|
-
} | null;
|
|
2936
|
-
openDialog: {
|
|
2937
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
2938
|
-
} | {
|
|
2939
|
-
name: "ttd";
|
|
2940
|
-
tab: "mermaid" | "text-to-diagram";
|
|
2941
|
-
} | {
|
|
2942
|
-
name: "commandPalette";
|
|
2943
|
-
} | {
|
|
2944
|
-
name: "elementLinkSelector";
|
|
2945
|
-
sourceElementId: string;
|
|
2946
|
-
} | null;
|
|
2947
|
-
defaultSidebarDockedPreference: boolean;
|
|
2948
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2949
|
-
selectedElementIds: Readonly<{
|
|
2950
|
-
[id: string]: true;
|
|
2951
|
-
}>;
|
|
2952
|
-
hoveredElementIds: Readonly<{
|
|
2953
|
-
[id: string]: true;
|
|
2954
|
-
}>;
|
|
2955
|
-
previousSelectedElementIds: {
|
|
2956
|
-
[id: string]: true;
|
|
2957
|
-
};
|
|
2958
|
-
selectedElementsAreBeingDragged: boolean;
|
|
2959
|
-
shouldCacheIgnoreZoom: boolean;
|
|
2960
|
-
toast: {
|
|
2961
|
-
message: string;
|
|
2962
|
-
closable?: boolean | undefined;
|
|
2963
|
-
duration?: number | undefined;
|
|
2964
|
-
} | null;
|
|
2965
|
-
zenModeEnabled: boolean;
|
|
2966
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
2967
|
-
gridSize: number;
|
|
2968
|
-
gridStep: number;
|
|
2969
|
-
gridModeEnabled: boolean;
|
|
2970
|
-
viewModeEnabled: boolean;
|
|
2971
|
-
selectedGroupIds: {
|
|
2972
|
-
[groupId: string]: boolean;
|
|
2973
|
-
};
|
|
2974
|
-
editingGroupId: string | null;
|
|
2975
|
-
width: number;
|
|
2976
|
-
height: number;
|
|
2977
|
-
offsetTop: number;
|
|
2978
|
-
offsetLeft: number;
|
|
2979
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2980
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
2981
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2982
|
-
button?: "up" | "down" | undefined;
|
|
2983
|
-
selectedElementIds?: Readonly<{
|
|
2984
|
-
[id: string]: true;
|
|
2985
|
-
}> | undefined;
|
|
2986
|
-
username?: string | null | undefined;
|
|
2987
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2988
|
-
color?: {
|
|
2989
|
-
background: string;
|
|
2990
|
-
stroke: string;
|
|
2991
|
-
} | undefined;
|
|
2992
|
-
avatarUrl?: string | undefined;
|
|
2993
|
-
id?: string | undefined;
|
|
2994
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2995
|
-
isCurrentUser?: boolean | undefined;
|
|
2996
|
-
isInCall?: boolean | undefined;
|
|
2997
|
-
isSpeaking?: boolean | undefined;
|
|
2998
|
-
isMuted?: boolean | undefined;
|
|
2999
|
-
}>>;
|
|
3000
|
-
stats: {
|
|
3001
|
-
open: boolean;
|
|
3002
|
-
panels: number;
|
|
3003
|
-
};
|
|
3004
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
3005
|
-
pasteDialog: {
|
|
3006
|
-
shown: false;
|
|
3007
|
-
data: null;
|
|
3008
|
-
} | {
|
|
3009
|
-
shown: true;
|
|
3010
|
-
data: import("../charts").Spreadsheet;
|
|
3011
|
-
};
|
|
3012
|
-
pendingImageElementId: string | null;
|
|
3013
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
3014
|
-
linkOpacity: number;
|
|
3015
|
-
trayModeEnabled: boolean;
|
|
3016
|
-
colorPalette?: {
|
|
3017
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3018
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3019
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
3020
|
-
topPicks: {
|
|
3021
|
-
canvasBackground: [string, string, string, string, string];
|
|
3022
|
-
elementStroke: [string, string, string, string, string];
|
|
3023
|
-
elementBackground: [string, string, string, string, string];
|
|
3024
|
-
};
|
|
3025
|
-
} | undefined;
|
|
3026
|
-
allowWheelZoom?: boolean | undefined;
|
|
3027
|
-
allowPinchZoom?: boolean | undefined;
|
|
3028
|
-
pinnedScripts?: string[] | undefined;
|
|
3029
|
-
customPens?: any[] | undefined;
|
|
3030
|
-
currentStrokeOptions?: any;
|
|
3031
|
-
resetCustomPen?: any;
|
|
3032
|
-
gridColor: {
|
|
3033
|
-
Bold: string;
|
|
3034
|
-
Regular: string;
|
|
3035
|
-
};
|
|
3036
|
-
highlightSearchResult: boolean;
|
|
3037
|
-
dynamicStyle: {
|
|
3038
|
-
[x: string]: string;
|
|
3039
|
-
};
|
|
3040
|
-
frameColor: {
|
|
3041
|
-
stroke: string;
|
|
3042
|
-
fill: string;
|
|
3043
|
-
nameColor: string;
|
|
3044
|
-
};
|
|
3045
|
-
invertBindingBehaviour: boolean;
|
|
3046
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
3047
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
3048
|
-
originSnapOffset: {
|
|
3049
|
-
x: number;
|
|
3050
|
-
y: number;
|
|
3051
|
-
} | null;
|
|
3052
|
-
objectsSnapModeEnabled: boolean;
|
|
3053
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
3054
|
-
followedBy: Set<import("../types").SocketId>;
|
|
3055
|
-
isCropping: boolean;
|
|
3056
|
-
croppingElementId: string | null;
|
|
3057
|
-
searchMatches: readonly {
|
|
3058
|
-
id: string;
|
|
3059
|
-
focus: boolean;
|
|
3060
|
-
matchedLines: {
|
|
3061
|
-
offsetX: number;
|
|
3062
|
-
offsetY: number;
|
|
3063
|
-
width: number;
|
|
3064
|
-
height: number;
|
|
3065
|
-
}[];
|
|
3066
|
-
}[];
|
|
3067
|
-
};
|
|
3068
|
-
captureUpdate: "IMMEDIATELY";
|
|
3069
|
-
};
|
|
3070
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3071
|
-
} & {
|
|
3072
|
-
keyTest?: undefined;
|
|
3073
|
-
};
|
|
3074
|
-
export declare const actionChangeArrowType: {
|
|
3075
|
-
name: "changeArrowType";
|
|
3076
|
-
label: string;
|
|
3077
|
-
trackEvent: false;
|
|
3078
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
3079
|
-
elements: ExcalidrawElement[];
|
|
3080
|
-
appState: {
|
|
3081
|
-
currentItemArrowType: any;
|
|
3082
|
-
contextMenu: {
|
|
3083
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
3084
|
-
top: number;
|
|
3085
|
-
left: number;
|
|
3086
|
-
} | null;
|
|
3087
|
-
showWelcomeScreen: boolean;
|
|
3088
|
-
isLoading: boolean;
|
|
3089
|
-
errorMessage: import("react").ReactNode;
|
|
3090
|
-
activeEmbeddable: {
|
|
3091
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
3092
|
-
state: "active" | "hover";
|
|
3093
|
-
} | null;
|
|
3094
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
3095
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3096
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
3097
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3098
|
-
isBindingEnabled: boolean;
|
|
3099
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
3100
|
-
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
3101
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
3102
|
-
frameRendering: {
|
|
3103
|
-
enabled: boolean;
|
|
3104
|
-
name: boolean;
|
|
3105
|
-
outline: boolean;
|
|
3106
|
-
clip: boolean;
|
|
3107
|
-
};
|
|
3108
|
-
editingFrame: string | null;
|
|
3109
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
3110
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3111
|
-
editingLinearElement: LinearElementEditor | null;
|
|
3112
|
-
activeTool: {
|
|
3113
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
3114
|
-
locked: boolean;
|
|
3115
|
-
fromSelection: boolean;
|
|
3116
|
-
} & import("../types").ActiveTool;
|
|
3117
|
-
penMode: boolean;
|
|
3118
|
-
penDetected: boolean;
|
|
3119
|
-
exportBackground: boolean;
|
|
3120
|
-
exportEmbedScene: boolean;
|
|
3121
|
-
exportWithDarkMode: boolean;
|
|
3122
|
-
exportScale: number;
|
|
3123
|
-
currentItemStrokeColor: string;
|
|
3124
|
-
currentItemBackgroundColor: string;
|
|
3125
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
3126
|
-
currentItemStrokeWidth: number;
|
|
3127
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
3128
|
-
currentItemRoughness: number;
|
|
3129
|
-
currentItemOpacity: number;
|
|
3130
|
-
currentItemFontFamily: number;
|
|
3131
|
-
currentItemFontSize: number;
|
|
3132
|
-
currentItemTextAlign: string;
|
|
3133
|
-
currentItemStartArrowhead: Arrowhead | null;
|
|
3134
|
-
currentItemEndArrowhead: Arrowhead | null;
|
|
3135
|
-
currentHoveredFontFamily: number | null;
|
|
3136
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
3137
|
-
viewBackgroundColor: string;
|
|
3138
|
-
scrollX: number;
|
|
3139
|
-
scrollY: number;
|
|
3140
|
-
cursorButton: "up" | "down";
|
|
3141
|
-
scrolledOutside: boolean;
|
|
3142
|
-
name: string | null;
|
|
3143
|
-
isResizing: boolean;
|
|
3144
|
-
isRotating: boolean;
|
|
3145
|
-
zoom: Readonly<{
|
|
3146
|
-
value: import("../types").NormalizedZoomValue;
|
|
3147
|
-
}>;
|
|
3148
|
-
openMenu: "shape" | "canvas" | null;
|
|
3149
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
3150
|
-
openSidebar: {
|
|
3151
|
-
name: string;
|
|
3152
|
-
tab?: string | undefined;
|
|
3153
|
-
} | null;
|
|
3154
|
-
openDialog: {
|
|
3155
|
-
name: "help" | "imageExport" | "jsonExport";
|
|
3156
|
-
} | {
|
|
3157
|
-
name: "ttd";
|
|
3158
|
-
tab: "mermaid" | "text-to-diagram";
|
|
3159
|
-
} | {
|
|
3160
|
-
name: "commandPalette";
|
|
3161
|
-
} | {
|
|
3162
|
-
name: "elementLinkSelector";
|
|
3163
|
-
sourceElementId: string;
|
|
3164
|
-
} | null;
|
|
3165
|
-
defaultSidebarDockedPreference: boolean;
|
|
3166
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
3167
|
-
selectedElementIds: Readonly<{
|
|
3168
|
-
[id: string]: true;
|
|
3169
|
-
}>;
|
|
3170
|
-
hoveredElementIds: Readonly<{
|
|
3171
|
-
[id: string]: true;
|
|
3172
|
-
}>;
|
|
3173
|
-
previousSelectedElementIds: {
|
|
3174
|
-
[id: string]: true;
|
|
3175
|
-
};
|
|
3176
|
-
selectedElementsAreBeingDragged: boolean;
|
|
3177
|
-
shouldCacheIgnoreZoom: boolean;
|
|
3178
|
-
toast: {
|
|
3179
|
-
message: string;
|
|
3180
|
-
closable?: boolean | undefined;
|
|
3181
|
-
duration?: number | undefined;
|
|
3182
|
-
} | null;
|
|
3183
|
-
zenModeEnabled: boolean;
|
|
3184
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
3185
|
-
gridSize: number;
|
|
3186
|
-
gridStep: number;
|
|
3187
|
-
gridModeEnabled: boolean;
|
|
3188
|
-
viewModeEnabled: boolean;
|
|
3189
|
-
selectedGroupIds: {
|
|
3190
|
-
[groupId: string]: boolean;
|
|
3191
|
-
};
|
|
3192
|
-
editingGroupId: string | null;
|
|
3193
|
-
width: number;
|
|
3194
|
-
height: number;
|
|
3195
|
-
offsetTop: number;
|
|
3196
|
-
offsetLeft: number;
|
|
3197
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
3198
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
3199
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
3200
|
-
button?: "up" | "down" | undefined;
|
|
3201
|
-
selectedElementIds?: Readonly<{
|
|
3202
|
-
[id: string]: true;
|
|
3203
|
-
}> | undefined;
|
|
3204
|
-
username?: string | null | undefined;
|
|
3205
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
3206
|
-
color?: {
|
|
3207
|
-
background: string;
|
|
3208
|
-
stroke: string;
|
|
3209
|
-
} | undefined;
|
|
3210
|
-
avatarUrl?: string | undefined;
|
|
3211
|
-
id?: string | undefined;
|
|
3212
|
-
socketId?: import("../types").SocketId | undefined;
|
|
3213
|
-
isCurrentUser?: boolean | undefined;
|
|
3214
|
-
isInCall?: boolean | undefined;
|
|
3215
|
-
isSpeaking?: boolean | undefined;
|
|
3216
|
-
isMuted?: boolean | undefined;
|
|
3217
|
-
}>>;
|
|
3218
|
-
stats: {
|
|
3219
|
-
open: boolean;
|
|
3220
|
-
panels: number;
|
|
3221
|
-
};
|
|
3222
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
3223
|
-
pasteDialog: {
|
|
3224
|
-
shown: false;
|
|
3225
|
-
data: null;
|
|
3226
|
-
} | {
|
|
3227
|
-
shown: true;
|
|
3228
|
-
data: import("../charts").Spreadsheet;
|
|
3229
|
-
};
|
|
3230
|
-
pendingImageElementId: string | null;
|
|
3231
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
3232
|
-
linkOpacity: number;
|
|
3233
|
-
trayModeEnabled: boolean;
|
|
3234
|
-
colorPalette?: {
|
|
3235
|
-
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3236
|
-
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3237
|
-
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
3238
|
-
topPicks: {
|
|
3239
|
-
canvasBackground: [string, string, string, string, string];
|
|
3240
|
-
elementStroke: [string, string, string, string, string];
|
|
3241
|
-
elementBackground: [string, string, string, string, string];
|
|
3242
|
-
};
|
|
3243
|
-
} | undefined;
|
|
3244
|
-
allowWheelZoom?: boolean | undefined;
|
|
3245
|
-
allowPinchZoom?: boolean | undefined;
|
|
3246
|
-
pinnedScripts?: string[] | undefined;
|
|
3247
|
-
customPens?: any[] | undefined;
|
|
3248
|
-
currentStrokeOptions?: any;
|
|
3249
|
-
resetCustomPen?: any;
|
|
3250
|
-
gridColor: {
|
|
3251
|
-
Bold: string;
|
|
3252
|
-
Regular: string;
|
|
3253
|
-
};
|
|
3254
|
-
highlightSearchResult: boolean;
|
|
3255
|
-
dynamicStyle: {
|
|
3256
|
-
[x: string]: string;
|
|
3257
|
-
};
|
|
3258
|
-
frameColor: {
|
|
3259
|
-
stroke: string;
|
|
3260
|
-
fill: string;
|
|
3261
|
-
nameColor: string;
|
|
3262
|
-
};
|
|
3263
|
-
invertBindingBehaviour: boolean;
|
|
3264
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
3265
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
3266
|
-
originSnapOffset: {
|
|
3267
|
-
x: number;
|
|
3268
|
-
y: number;
|
|
3269
|
-
} | null;
|
|
3270
|
-
objectsSnapModeEnabled: boolean;
|
|
3271
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
3272
|
-
followedBy: Set<import("../types").SocketId>;
|
|
3273
|
-
isCropping: boolean;
|
|
3274
|
-
croppingElementId: string | null;
|
|
3275
|
-
searchMatches: readonly {
|
|
3276
|
-
id: string;
|
|
3277
|
-
focus: boolean;
|
|
3278
|
-
matchedLines: {
|
|
3279
|
-
offsetX: number;
|
|
3280
|
-
offsetY: number;
|
|
3281
|
-
width: number;
|
|
3282
|
-
height: number;
|
|
3283
|
-
}[];
|
|
3284
|
-
}[];
|
|
3285
|
-
};
|
|
3286
|
-
captureUpdate: "IMMEDIATELY";
|
|
3287
|
-
};
|
|
3288
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
753
|
+
predicate: (_elements: readonly ExcalidrawElement[], appState: AppState, _props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
754
|
+
checked: (appState: Readonly<AppState>) => boolean;
|
|
755
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3289
756
|
} & {
|
|
3290
757
|
keyTest?: undefined;
|
|
3291
758
|
};
|