@excalidraw/element 0.18.0-f0063e113 → 0.18.0-f2600fe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +1098 -634
- package/dist/dev/index.js.map +4 -4
- package/dist/prod/index.js +14 -14
- package/dist/types/common/src/constants.d.ts +19 -15
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utils.d.ts +2 -1
- package/dist/types/element/src/Scene.d.ts +6 -2
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +16 -4
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +2 -1
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +4 -1
- package/dist/types/element/src/resizeTest.d.ts +5 -4
- package/dist/types/element/src/store.d.ts +8 -2
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -12
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -8
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +94 -54
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +45 -26
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +25 -16
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -8
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionExport.d.ts +63 -36
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -16
- package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -8
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +41 -7
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -372
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -8
- package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -68
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +8 -5
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +5 -1
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +20 -7
- package/dist/types/excalidraw/components/App.d.ts +29 -23
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +10 -0
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +3 -7
- package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +4 -4
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -3
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +23 -19
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +7 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
2
|
import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
4
3
|
export declare const actionToggleLinearEditor: {
|
|
5
4
|
name: "toggleLinearEditor";
|
|
@@ -12,7 +11,39 @@ export declare const actionToggleLinearEditor: {
|
|
|
12
11
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
13
12
|
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
|
|
14
13
|
appState: {
|
|
15
|
-
|
|
14
|
+
selectedLinearElement: {
|
|
15
|
+
isEditing: boolean;
|
|
16
|
+
elementId: string & {
|
|
17
|
+
_brand: "excalidrawLinearElementId";
|
|
18
|
+
};
|
|
19
|
+
selectedPointsIndices: readonly number[] | null;
|
|
20
|
+
pointerDownState: Readonly<{
|
|
21
|
+
prevSelectedPointsIndices: readonly number[] | null;
|
|
22
|
+
lastClickedPoint: number;
|
|
23
|
+
lastClickedIsEndPoint: boolean;
|
|
24
|
+
origin: Readonly<{
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
}> | null;
|
|
28
|
+
segmentMidpoint: {
|
|
29
|
+
value: import("../../math/src").GlobalPoint | null;
|
|
30
|
+
index: number | null;
|
|
31
|
+
added: boolean;
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
isDragging: boolean;
|
|
35
|
+
lastUncommittedPoint: import("../../math/src").LocalPoint | null;
|
|
36
|
+
pointerOffset: Readonly<{
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
}>;
|
|
40
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
41
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
42
|
+
hoverPointIndex: number;
|
|
43
|
+
segmentMidPointHoveredCoords: import("../../math/src").GlobalPoint | null;
|
|
44
|
+
elbowed: boolean;
|
|
45
|
+
customLineAngle: number | null;
|
|
46
|
+
};
|
|
16
47
|
contextMenu: {
|
|
17
48
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
18
49
|
top: number;
|
|
@@ -47,6 +78,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
47
78
|
locked: boolean;
|
|
48
79
|
fromSelection: boolean;
|
|
49
80
|
} & import("../types").ActiveTool;
|
|
81
|
+
preferredSelectionTool: {
|
|
82
|
+
type: "selection" | "lasso";
|
|
83
|
+
initialized: boolean;
|
|
84
|
+
};
|
|
50
85
|
penMode: boolean;
|
|
51
86
|
penDetected: boolean;
|
|
52
87
|
exportBackground: boolean;
|
|
@@ -79,8 +114,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
79
114
|
zoom: Readonly<{
|
|
80
115
|
value: import("../types").NormalizedZoomValue;
|
|
81
116
|
}>;
|
|
82
|
-
openMenu: "canvas" |
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
117
|
+
openMenu: "canvas" | null;
|
|
118
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
119
|
openSidebar: {
|
|
85
120
|
name: string;
|
|
86
121
|
tab?: string | undefined;
|
|
@@ -161,8 +196,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
161
196
|
shown: true;
|
|
162
197
|
data: import("../charts").Spreadsheet;
|
|
163
198
|
};
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
165
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
199
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
166
200
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
167
201
|
originSnapOffset: {
|
|
168
202
|
x: number;
|
|
@@ -184,7 +218,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
184
218
|
};
|
|
185
219
|
captureUpdate: "IMMEDIATELY";
|
|
186
220
|
};
|
|
187
|
-
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
221
|
+
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
188
222
|
} & {
|
|
189
223
|
keyTest?: undefined;
|
|
190
224
|
};
|
|
@@ -37,12 +37,15 @@ export declare const actionLink: {
|
|
|
37
37
|
editingFrame: string | null;
|
|
38
38
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
39
39
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
41
40
|
activeTool: {
|
|
42
41
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
42
|
locked: boolean;
|
|
44
43
|
fromSelection: boolean;
|
|
45
44
|
} & import("../types").ActiveTool;
|
|
45
|
+
preferredSelectionTool: {
|
|
46
|
+
type: "selection" | "lasso";
|
|
47
|
+
initialized: boolean;
|
|
48
|
+
};
|
|
46
49
|
penMode: boolean;
|
|
47
50
|
penDetected: boolean;
|
|
48
51
|
exportBackground: boolean;
|
|
@@ -75,7 +78,7 @@ export declare const actionLink: {
|
|
|
75
78
|
zoom: Readonly<{
|
|
76
79
|
value: import("../types").NormalizedZoomValue;
|
|
77
80
|
}>;
|
|
78
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
79
82
|
openSidebar: {
|
|
80
83
|
name: string;
|
|
81
84
|
tab?: string | undefined;
|
|
@@ -1,372 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const actionToggleCanvasMenu: {
|
|
3
|
-
name: "toggleCanvasMenu";
|
|
4
|
-
label: string;
|
|
5
|
-
trackEvent: {
|
|
6
|
-
category: "menu";
|
|
7
|
-
};
|
|
8
|
-
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
9
|
-
appState: {
|
|
10
|
-
openMenu: "canvas" | null;
|
|
11
|
-
contextMenu: {
|
|
12
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
13
|
-
top: number;
|
|
14
|
-
left: number;
|
|
15
|
-
} | null;
|
|
16
|
-
showWelcomeScreen: boolean;
|
|
17
|
-
isLoading: boolean;
|
|
18
|
-
errorMessage: import("react").ReactNode;
|
|
19
|
-
activeEmbeddable: {
|
|
20
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
21
|
-
state: "active" | "hover";
|
|
22
|
-
} | null;
|
|
23
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
24
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
25
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
26
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
|
-
isBindingEnabled: boolean;
|
|
28
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
29
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
30
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
31
|
-
frameRendering: {
|
|
32
|
-
enabled: boolean;
|
|
33
|
-
name: boolean;
|
|
34
|
-
outline: boolean;
|
|
35
|
-
clip: boolean;
|
|
36
|
-
};
|
|
37
|
-
editingFrame: string | null;
|
|
38
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
39
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
40
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
41
|
-
activeTool: {
|
|
42
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
|
-
locked: boolean;
|
|
44
|
-
fromSelection: boolean;
|
|
45
|
-
} & import("../types").ActiveTool;
|
|
46
|
-
penMode: boolean;
|
|
47
|
-
penDetected: boolean;
|
|
48
|
-
exportBackground: boolean;
|
|
49
|
-
exportEmbedScene: boolean;
|
|
50
|
-
exportWithDarkMode: boolean;
|
|
51
|
-
exportScale: number;
|
|
52
|
-
currentItemStrokeColor: string;
|
|
53
|
-
currentItemBackgroundColor: string;
|
|
54
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
55
|
-
currentItemStrokeWidth: number;
|
|
56
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
57
|
-
currentItemRoughness: number;
|
|
58
|
-
currentItemOpacity: number;
|
|
59
|
-
currentItemFontFamily: number;
|
|
60
|
-
currentItemFontSize: number;
|
|
61
|
-
currentItemTextAlign: string;
|
|
62
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
63
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
64
|
-
currentHoveredFontFamily: number | null;
|
|
65
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
66
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
67
|
-
viewBackgroundColor: string;
|
|
68
|
-
scrollX: number;
|
|
69
|
-
scrollY: number;
|
|
70
|
-
cursorButton: "up" | "down";
|
|
71
|
-
scrolledOutside: boolean;
|
|
72
|
-
name: string | null;
|
|
73
|
-
isResizing: boolean;
|
|
74
|
-
isRotating: boolean;
|
|
75
|
-
zoom: Readonly<{
|
|
76
|
-
value: import("../types").NormalizedZoomValue;
|
|
77
|
-
}>;
|
|
78
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
79
|
-
openSidebar: {
|
|
80
|
-
name: string;
|
|
81
|
-
tab?: string | undefined;
|
|
82
|
-
} | null;
|
|
83
|
-
openDialog: {
|
|
84
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
85
|
-
} | {
|
|
86
|
-
name: "ttd";
|
|
87
|
-
tab: "mermaid" | "text-to-diagram";
|
|
88
|
-
} | {
|
|
89
|
-
name: "commandPalette";
|
|
90
|
-
} | {
|
|
91
|
-
name: "elementLinkSelector";
|
|
92
|
-
sourceElementId: string;
|
|
93
|
-
} | null;
|
|
94
|
-
defaultSidebarDockedPreference: boolean;
|
|
95
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
96
|
-
selectedElementIds: Readonly<{
|
|
97
|
-
[id: string]: true;
|
|
98
|
-
}>;
|
|
99
|
-
hoveredElementIds: Readonly<{
|
|
100
|
-
[id: string]: true;
|
|
101
|
-
}>;
|
|
102
|
-
previousSelectedElementIds: {
|
|
103
|
-
[id: string]: true;
|
|
104
|
-
};
|
|
105
|
-
selectedElementsAreBeingDragged: boolean;
|
|
106
|
-
shouldCacheIgnoreZoom: boolean;
|
|
107
|
-
toast: {
|
|
108
|
-
message: string;
|
|
109
|
-
closable?: boolean | undefined;
|
|
110
|
-
duration?: number | undefined;
|
|
111
|
-
} | null;
|
|
112
|
-
zenModeEnabled: boolean;
|
|
113
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
114
|
-
gridSize: number;
|
|
115
|
-
gridStep: number;
|
|
116
|
-
gridModeEnabled: boolean;
|
|
117
|
-
viewModeEnabled: boolean;
|
|
118
|
-
selectedGroupIds: {
|
|
119
|
-
[groupId: string]: boolean;
|
|
120
|
-
};
|
|
121
|
-
editingGroupId: string | null;
|
|
122
|
-
width: number;
|
|
123
|
-
height: number;
|
|
124
|
-
offsetTop: number;
|
|
125
|
-
offsetLeft: number;
|
|
126
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
127
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
128
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
129
|
-
button?: "up" | "down" | undefined;
|
|
130
|
-
selectedElementIds?: Readonly<{
|
|
131
|
-
[id: string]: true;
|
|
132
|
-
}> | undefined;
|
|
133
|
-
username?: string | null | undefined;
|
|
134
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
135
|
-
color?: {
|
|
136
|
-
background: string;
|
|
137
|
-
stroke: string;
|
|
138
|
-
} | undefined;
|
|
139
|
-
avatarUrl?: string | undefined;
|
|
140
|
-
id?: string | undefined;
|
|
141
|
-
socketId?: import("../types").SocketId | undefined;
|
|
142
|
-
isCurrentUser?: boolean | undefined;
|
|
143
|
-
isInCall?: boolean | undefined;
|
|
144
|
-
isSpeaking?: boolean | undefined;
|
|
145
|
-
isMuted?: boolean | undefined;
|
|
146
|
-
}>>;
|
|
147
|
-
stats: {
|
|
148
|
-
open: boolean;
|
|
149
|
-
panels: number;
|
|
150
|
-
};
|
|
151
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
152
|
-
pasteDialog: {
|
|
153
|
-
shown: false;
|
|
154
|
-
data: null;
|
|
155
|
-
} | {
|
|
156
|
-
shown: true;
|
|
157
|
-
data: import("../charts").Spreadsheet;
|
|
158
|
-
};
|
|
159
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
160
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
161
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
162
|
-
originSnapOffset: {
|
|
163
|
-
x: number;
|
|
164
|
-
y: number;
|
|
165
|
-
} | null;
|
|
166
|
-
objectsSnapModeEnabled: boolean;
|
|
167
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
168
|
-
followedBy: Set<import("../types").SocketId>;
|
|
169
|
-
isCropping: boolean;
|
|
170
|
-
croppingElementId: string | null;
|
|
171
|
-
searchMatches: Readonly<{
|
|
172
|
-
focusedId: string | null;
|
|
173
|
-
matches: readonly import("../types").SearchMatch[];
|
|
174
|
-
}> | null;
|
|
175
|
-
activeLockedId: string | null;
|
|
176
|
-
lockedMultiSelections: {
|
|
177
|
-
[groupId: string]: true;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
captureUpdate: "EVENTUALLY";
|
|
181
|
-
};
|
|
182
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
183
|
-
} & {
|
|
184
|
-
keyTest?: undefined;
|
|
185
|
-
};
|
|
186
|
-
export declare const actionToggleEditMenu: {
|
|
187
|
-
name: "toggleEditMenu";
|
|
188
|
-
label: string;
|
|
189
|
-
trackEvent: {
|
|
190
|
-
category: "menu";
|
|
191
|
-
};
|
|
192
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
193
|
-
appState: {
|
|
194
|
-
openMenu: "shape" | null;
|
|
195
|
-
contextMenu: {
|
|
196
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
197
|
-
top: number;
|
|
198
|
-
left: number;
|
|
199
|
-
} | null;
|
|
200
|
-
showWelcomeScreen: boolean;
|
|
201
|
-
isLoading: boolean;
|
|
202
|
-
errorMessage: import("react").ReactNode;
|
|
203
|
-
activeEmbeddable: {
|
|
204
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
205
|
-
state: "active" | "hover";
|
|
206
|
-
} | null;
|
|
207
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
208
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
209
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
210
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
211
|
-
isBindingEnabled: boolean;
|
|
212
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
213
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
214
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
215
|
-
frameRendering: {
|
|
216
|
-
enabled: boolean;
|
|
217
|
-
name: boolean;
|
|
218
|
-
outline: boolean;
|
|
219
|
-
clip: boolean;
|
|
220
|
-
};
|
|
221
|
-
editingFrame: string | null;
|
|
222
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
223
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
224
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
225
|
-
activeTool: {
|
|
226
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
227
|
-
locked: boolean;
|
|
228
|
-
fromSelection: boolean;
|
|
229
|
-
} & import("../types").ActiveTool;
|
|
230
|
-
penMode: boolean;
|
|
231
|
-
penDetected: boolean;
|
|
232
|
-
exportBackground: boolean;
|
|
233
|
-
exportEmbedScene: boolean;
|
|
234
|
-
exportWithDarkMode: boolean;
|
|
235
|
-
exportScale: number;
|
|
236
|
-
currentItemStrokeColor: string;
|
|
237
|
-
currentItemBackgroundColor: string;
|
|
238
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
239
|
-
currentItemStrokeWidth: number;
|
|
240
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
241
|
-
currentItemRoughness: number;
|
|
242
|
-
currentItemOpacity: number;
|
|
243
|
-
currentItemFontFamily: number;
|
|
244
|
-
currentItemFontSize: number;
|
|
245
|
-
currentItemTextAlign: string;
|
|
246
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
247
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
248
|
-
currentHoveredFontFamily: number | null;
|
|
249
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
250
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
251
|
-
viewBackgroundColor: string;
|
|
252
|
-
scrollX: number;
|
|
253
|
-
scrollY: number;
|
|
254
|
-
cursorButton: "up" | "down";
|
|
255
|
-
scrolledOutside: boolean;
|
|
256
|
-
name: string | null;
|
|
257
|
-
isResizing: boolean;
|
|
258
|
-
isRotating: boolean;
|
|
259
|
-
zoom: Readonly<{
|
|
260
|
-
value: import("../types").NormalizedZoomValue;
|
|
261
|
-
}>;
|
|
262
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
263
|
-
openSidebar: {
|
|
264
|
-
name: string;
|
|
265
|
-
tab?: string | undefined;
|
|
266
|
-
} | null;
|
|
267
|
-
openDialog: {
|
|
268
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
269
|
-
} | {
|
|
270
|
-
name: "ttd";
|
|
271
|
-
tab: "mermaid" | "text-to-diagram";
|
|
272
|
-
} | {
|
|
273
|
-
name: "commandPalette";
|
|
274
|
-
} | {
|
|
275
|
-
name: "elementLinkSelector";
|
|
276
|
-
sourceElementId: string;
|
|
277
|
-
} | null;
|
|
278
|
-
defaultSidebarDockedPreference: boolean;
|
|
279
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
280
|
-
selectedElementIds: Readonly<{
|
|
281
|
-
[id: string]: true;
|
|
282
|
-
}>;
|
|
283
|
-
hoveredElementIds: Readonly<{
|
|
284
|
-
[id: string]: true;
|
|
285
|
-
}>;
|
|
286
|
-
previousSelectedElementIds: {
|
|
287
|
-
[id: string]: true;
|
|
288
|
-
};
|
|
289
|
-
selectedElementsAreBeingDragged: boolean;
|
|
290
|
-
shouldCacheIgnoreZoom: boolean;
|
|
291
|
-
toast: {
|
|
292
|
-
message: string;
|
|
293
|
-
closable?: boolean | undefined;
|
|
294
|
-
duration?: number | undefined;
|
|
295
|
-
} | null;
|
|
296
|
-
zenModeEnabled: boolean;
|
|
297
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
298
|
-
gridSize: number;
|
|
299
|
-
gridStep: number;
|
|
300
|
-
gridModeEnabled: boolean;
|
|
301
|
-
viewModeEnabled: boolean;
|
|
302
|
-
selectedGroupIds: {
|
|
303
|
-
[groupId: string]: boolean;
|
|
304
|
-
};
|
|
305
|
-
editingGroupId: string | null;
|
|
306
|
-
width: number;
|
|
307
|
-
height: number;
|
|
308
|
-
offsetTop: number;
|
|
309
|
-
offsetLeft: number;
|
|
310
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
311
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
312
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
313
|
-
button?: "up" | "down" | undefined;
|
|
314
|
-
selectedElementIds?: Readonly<{
|
|
315
|
-
[id: string]: true;
|
|
316
|
-
}> | undefined;
|
|
317
|
-
username?: string | null | undefined;
|
|
318
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
319
|
-
color?: {
|
|
320
|
-
background: string;
|
|
321
|
-
stroke: string;
|
|
322
|
-
} | undefined;
|
|
323
|
-
avatarUrl?: string | undefined;
|
|
324
|
-
id?: string | undefined;
|
|
325
|
-
socketId?: import("../types").SocketId | undefined;
|
|
326
|
-
isCurrentUser?: boolean | undefined;
|
|
327
|
-
isInCall?: boolean | undefined;
|
|
328
|
-
isSpeaking?: boolean | undefined;
|
|
329
|
-
isMuted?: boolean | undefined;
|
|
330
|
-
}>>;
|
|
331
|
-
stats: {
|
|
332
|
-
open: boolean;
|
|
333
|
-
panels: number;
|
|
334
|
-
};
|
|
335
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
336
|
-
pasteDialog: {
|
|
337
|
-
shown: false;
|
|
338
|
-
data: null;
|
|
339
|
-
} | {
|
|
340
|
-
shown: true;
|
|
341
|
-
data: import("../charts").Spreadsheet;
|
|
342
|
-
};
|
|
343
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
344
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
345
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
346
|
-
originSnapOffset: {
|
|
347
|
-
x: number;
|
|
348
|
-
y: number;
|
|
349
|
-
} | null;
|
|
350
|
-
objectsSnapModeEnabled: boolean;
|
|
351
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
352
|
-
followedBy: Set<import("../types").SocketId>;
|
|
353
|
-
isCropping: boolean;
|
|
354
|
-
croppingElementId: string | null;
|
|
355
|
-
searchMatches: Readonly<{
|
|
356
|
-
focusedId: string | null;
|
|
357
|
-
matches: readonly import("../types").SearchMatch[];
|
|
358
|
-
}> | null;
|
|
359
|
-
activeLockedId: string | null;
|
|
360
|
-
lockedMultiSelections: {
|
|
361
|
-
[groupId: string]: true;
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
captureUpdate: "EVENTUALLY";
|
|
365
|
-
};
|
|
366
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
367
|
-
} & {
|
|
368
|
-
keyTest?: undefined;
|
|
369
|
-
};
|
|
370
2
|
export declare const actionShortcuts: {
|
|
371
3
|
name: "toggleShortcuts";
|
|
372
4
|
label: string;
|
|
@@ -381,6 +13,8 @@ export declare const actionShortcuts: {
|
|
|
381
13
|
openDialog: {
|
|
382
14
|
name: "help";
|
|
383
15
|
} | null;
|
|
16
|
+
openMenu: null;
|
|
17
|
+
openPopup: null;
|
|
384
18
|
contextMenu: {
|
|
385
19
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
386
20
|
top: number;
|
|
@@ -410,12 +44,15 @@ export declare const actionShortcuts: {
|
|
|
410
44
|
editingFrame: string | null;
|
|
411
45
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
412
46
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
413
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
414
47
|
activeTool: {
|
|
415
48
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
416
49
|
locked: boolean;
|
|
417
50
|
fromSelection: boolean;
|
|
418
51
|
} & import("../types").ActiveTool;
|
|
52
|
+
preferredSelectionTool: {
|
|
53
|
+
type: "selection" | "lasso";
|
|
54
|
+
initialized: boolean;
|
|
55
|
+
};
|
|
419
56
|
penMode: boolean;
|
|
420
57
|
penDetected: boolean;
|
|
421
58
|
exportBackground: boolean;
|
|
@@ -448,8 +85,6 @@ export declare const actionShortcuts: {
|
|
|
448
85
|
zoom: Readonly<{
|
|
449
86
|
value: import("../types").NormalizedZoomValue;
|
|
450
87
|
}>;
|
|
451
|
-
openMenu: "canvas" | "shape" | null;
|
|
452
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
453
88
|
openSidebar: {
|
|
454
89
|
name: string;
|
|
455
90
|
tab?: string | undefined;
|
|
@@ -519,7 +154,7 @@ export declare const actionShortcuts: {
|
|
|
519
154
|
shown: true;
|
|
520
155
|
data: import("../charts").Spreadsheet;
|
|
521
156
|
};
|
|
522
|
-
showHyperlinkPopup: false | "
|
|
157
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
523
158
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
524
159
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
525
160
|
originSnapOffset: {
|
|
@@ -39,12 +39,15 @@ export declare const actionGoToCollaborator: {
|
|
|
39
39
|
editingFrame: string | null;
|
|
40
40
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
41
41
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
43
42
|
activeTool: {
|
|
44
43
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
44
|
locked: boolean;
|
|
46
45
|
fromSelection: boolean;
|
|
47
46
|
} & import("../types").ActiveTool;
|
|
47
|
+
preferredSelectionTool: {
|
|
48
|
+
type: "selection" | "lasso";
|
|
49
|
+
initialized: boolean;
|
|
50
|
+
};
|
|
48
51
|
penMode: boolean;
|
|
49
52
|
penDetected: boolean;
|
|
50
53
|
exportBackground: boolean;
|
|
@@ -77,8 +80,8 @@ export declare const actionGoToCollaborator: {
|
|
|
77
80
|
zoom: Readonly<{
|
|
78
81
|
value: import("../types").NormalizedZoomValue;
|
|
79
82
|
}>;
|
|
80
|
-
openMenu: "canvas" |
|
|
81
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
83
|
+
openMenu: "canvas" | null;
|
|
84
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
82
85
|
openSidebar: {
|
|
83
86
|
name: string;
|
|
84
87
|
tab?: string | undefined;
|
|
@@ -159,7 +162,7 @@ export declare const actionGoToCollaborator: {
|
|
|
159
162
|
shown: true;
|
|
160
163
|
data: import("../charts").Spreadsheet;
|
|
161
164
|
};
|
|
162
|
-
showHyperlinkPopup: false | "
|
|
165
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
163
166
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
164
167
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
165
168
|
originSnapOffset: {
|
|
@@ -186,7 +189,7 @@ export declare const actionGoToCollaborator: {
|
|
|
186
189
|
socketId: import("../types").SocketId;
|
|
187
190
|
username: string;
|
|
188
191
|
};
|
|
189
|
-
openMenu:
|
|
192
|
+
openMenu: null;
|
|
190
193
|
contextMenu: {
|
|
191
194
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
192
195
|
top: number;
|
|
@@ -216,12 +219,15 @@ export declare const actionGoToCollaborator: {
|
|
|
216
219
|
editingFrame: string | null;
|
|
217
220
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
218
221
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
219
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
220
222
|
activeTool: {
|
|
221
223
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
222
224
|
locked: boolean;
|
|
223
225
|
fromSelection: boolean;
|
|
224
226
|
} & import("../types").ActiveTool;
|
|
227
|
+
preferredSelectionTool: {
|
|
228
|
+
type: "selection" | "lasso";
|
|
229
|
+
initialized: boolean;
|
|
230
|
+
};
|
|
225
231
|
penMode: boolean;
|
|
226
232
|
penDetected: boolean;
|
|
227
233
|
exportBackground: boolean;
|
|
@@ -254,7 +260,7 @@ export declare const actionGoToCollaborator: {
|
|
|
254
260
|
zoom: Readonly<{
|
|
255
261
|
value: import("../types").NormalizedZoomValue;
|
|
256
262
|
}>;
|
|
257
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
263
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
258
264
|
openSidebar: {
|
|
259
265
|
name: string;
|
|
260
266
|
tab?: string | undefined;
|
|
@@ -335,7 +341,7 @@ export declare const actionGoToCollaborator: {
|
|
|
335
341
|
shown: true;
|
|
336
342
|
data: import("../charts").Spreadsheet;
|
|
337
343
|
};
|
|
338
|
-
showHyperlinkPopup: false | "
|
|
344
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
339
345
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
340
346
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
341
347
|
originSnapOffset: {
|