@myoc/common 0.19.502-d9d5eeb32 → 0.19.503
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 +313 -21
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/colors.d.ts +13 -13
- package/dist/types/common/src/constants.d.ts +3 -0
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/utils.d.ts +4 -7
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +2 -0
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/arrows/focus.d.ts +27 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +13 -8
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/collision.d.ts +4 -3
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/elbowArrow.d.ts +2 -0
- package/dist/types/element/src/index.d.ts +3 -0
- package/dist/types/element/src/linearElementEditor.d.ts +5 -0
- package/dist/types/element/src/mutateElement.d.ts +2 -0
- package/dist/types/element/src/selection.d.ts +6 -2
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/textWrapping.d.ts +26 -0
- package/dist/types/element/src/types.d.ts +5 -2
- package/dist/types/element/src/utils.d.ts +5 -3
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +38 -35
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +27 -25
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +143 -132
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +42 -37
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +26 -24
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionExport.d.ts +112 -405
- package/dist/types/excalidraw/actions/actionFrame.d.ts +52 -48
- package/dist/types/excalidraw/actions/actionGroup.d.ts +29 -27
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -12
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionProperties.d.ts +29 -27
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +14 -13
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -11
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +181 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +181 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +9 -12
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -12
- package/dist/types/excalidraw/actions/index.d.ts +2 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +34 -32
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +32 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +7 -0
- package/dist/types/excalidraw/clipboard.d.ts +8 -9
- package/dist/types/excalidraw/components/App.d.ts +55 -13
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -17
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -13
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/icons.d.ts +23 -9
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +17 -0
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -13
- package/dist/types/excalidraw/data/blob.d.ts +163 -162
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +2 -3
- package/dist/types/excalidraw/data/json.d.ts +92 -83
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/index.d.ts +25 -3
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +93 -16
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +5 -1
- package/dist/types/math/src/point.d.ts +7 -2
- package/dist/types/math/src/types.d.ts +25 -1
- package/package.json +1 -1
- package/dist/types/excalidraw/charts.d.ts +0 -27
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { Theme } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, Theme } from "@excalidraw/element/types";
|
|
2
2
|
import "../components/ToolIcon.scss";
|
|
3
|
-
import type { AppState } from "../types";
|
|
3
|
+
import type { AppClassProperties, AppState, BinaryFiles, ExcalidrawProps } from "../types";
|
|
4
4
|
export declare const actionChangeProjectName: import("./types").Action<string | null> & {
|
|
5
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
5
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
6
6
|
};
|
|
7
7
|
export declare const actionChangeExportScale: import("./types").Action<number> & {
|
|
8
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
8
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
9
9
|
};
|
|
10
10
|
export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
|
|
11
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
11
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
12
12
|
};
|
|
13
13
|
export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
|
|
14
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
14
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
15
15
|
};
|
|
16
16
|
export declare const actionSaveToActiveFile: {
|
|
17
17
|
name: "saveToActiveFile";
|
|
@@ -20,175 +20,22 @@ export declare const actionSaveToActiveFile: {
|
|
|
20
20
|
trackEvent: {
|
|
21
21
|
category: "export";
|
|
22
22
|
};
|
|
23
|
-
predicate: (elements: readonly
|
|
24
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app:
|
|
25
|
-
captureUpdate: "
|
|
23
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
24
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
|
|
25
|
+
captureUpdate: "NEVER";
|
|
26
26
|
appState: {
|
|
27
|
-
fileHandle:
|
|
27
|
+
fileHandle: FileSystemFileHandle | null;
|
|
28
28
|
toast: {
|
|
29
29
|
message: string;
|
|
30
|
-
|
|
31
|
-
contextMenu: {
|
|
32
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
33
|
-
top: number;
|
|
34
|
-
left: number;
|
|
35
|
-
} | null;
|
|
36
|
-
showWelcomeScreen: boolean;
|
|
37
|
-
isLoading: boolean;
|
|
38
|
-
myocSimplifiedMode: boolean;
|
|
39
|
-
dontResizeLimitMBs: number;
|
|
40
|
-
hideMainMenus: boolean;
|
|
41
|
-
wheelZoomsOnDefault?: boolean;
|
|
42
|
-
arrangeConfiguration: {
|
|
43
|
-
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
44
|
-
gap: number;
|
|
45
|
-
};
|
|
46
|
-
normaliseConfiguration: {
|
|
47
|
-
mode: import("../types").NormaliseMode;
|
|
48
|
-
metric: import("../types").NormaliseMetric;
|
|
49
|
-
};
|
|
50
|
-
errorMessage: React.ReactNode;
|
|
51
|
-
activeEmbeddable: {
|
|
52
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
53
|
-
state: "hover" | "active";
|
|
54
|
-
} | null;
|
|
55
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
56
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
57
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
58
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
59
|
-
isBindingEnabled: boolean;
|
|
60
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
61
|
-
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
62
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
63
|
-
frameRendering: {
|
|
64
|
-
enabled: boolean;
|
|
65
|
-
name: boolean;
|
|
66
|
-
outline: boolean;
|
|
67
|
-
clip: boolean;
|
|
68
|
-
};
|
|
69
|
-
editingFrame: string | null;
|
|
70
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
71
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
72
|
-
activeTool: {
|
|
73
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
74
|
-
locked: boolean;
|
|
75
|
-
fromSelection: boolean;
|
|
76
|
-
} & import("../types").ActiveTool;
|
|
77
|
-
preferredSelectionTool: {
|
|
78
|
-
type: "selection" | "lasso";
|
|
79
|
-
initialized: boolean;
|
|
80
|
-
};
|
|
81
|
-
penMode: boolean;
|
|
82
|
-
penDetected: boolean;
|
|
83
|
-
exportBackground: boolean;
|
|
84
|
-
exportEmbedScene: boolean;
|
|
85
|
-
exportWithDarkMode: boolean;
|
|
86
|
-
exportScale: number;
|
|
87
|
-
currentItemStrokeColor: string;
|
|
88
|
-
currentItemBackgroundColor: string;
|
|
89
|
-
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
90
|
-
currentItemStrokeWidth: number;
|
|
91
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
92
|
-
currentItemRoughness: number;
|
|
93
|
-
currentItemOpacity: number;
|
|
94
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
95
|
-
currentItemFontSize: number;
|
|
96
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
97
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
98
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
99
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
100
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
101
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
102
|
-
viewBackgroundColor: string;
|
|
103
|
-
scrollX: number;
|
|
104
|
-
scrollY: number;
|
|
105
|
-
cursorButton: "up" | "down";
|
|
106
|
-
scrolledOutside: boolean;
|
|
107
|
-
name: string | null;
|
|
108
|
-
isResizing: boolean;
|
|
109
|
-
isRotating: boolean;
|
|
110
|
-
zoom: import("../types").Zoom;
|
|
111
|
-
openMenu: "canvas" | null;
|
|
112
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
113
|
-
openSidebar: {
|
|
114
|
-
name: import("../types").SidebarName;
|
|
115
|
-
tab?: import("../types").SidebarTabName;
|
|
116
|
-
} | null;
|
|
117
|
-
openDialog: null | {
|
|
118
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
119
|
-
} | {
|
|
120
|
-
name: "commandPalette";
|
|
121
|
-
} | {
|
|
122
|
-
name: "settings";
|
|
123
|
-
} | {
|
|
124
|
-
name: "elementLinkSelector";
|
|
125
|
-
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
126
|
-
};
|
|
127
|
-
defaultSidebarDockedPreference: boolean;
|
|
128
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
129
|
-
selectedElementIds: Readonly<{
|
|
130
|
-
[id: string]: true;
|
|
131
|
-
}>;
|
|
132
|
-
hoveredElementIds: Readonly<{
|
|
133
|
-
[id: string]: true;
|
|
134
|
-
}>;
|
|
135
|
-
previousSelectedElementIds: {
|
|
136
|
-
[id: string]: true;
|
|
30
|
+
duration: number;
|
|
137
31
|
};
|
|
138
|
-
selectedElementsAreBeingDragged: boolean;
|
|
139
|
-
shouldCacheIgnoreZoom: boolean;
|
|
140
|
-
zenModeEnabled: boolean;
|
|
141
|
-
theme: Theme;
|
|
142
|
-
gridSize: number;
|
|
143
|
-
gridStep: number;
|
|
144
|
-
gridModeEnabled: boolean;
|
|
145
|
-
viewModeEnabled: boolean;
|
|
146
|
-
selectedGroupIds: {
|
|
147
|
-
[groupId: string]: boolean;
|
|
148
|
-
};
|
|
149
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
150
|
-
width: number;
|
|
151
|
-
height: number;
|
|
152
|
-
offsetTop: number;
|
|
153
|
-
offsetLeft: number;
|
|
154
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
155
|
-
stats: {
|
|
156
|
-
open: boolean;
|
|
157
|
-
panels: number;
|
|
158
|
-
};
|
|
159
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
160
|
-
pasteDialog: {
|
|
161
|
-
shown: false;
|
|
162
|
-
data: null;
|
|
163
|
-
} | {
|
|
164
|
-
shown: true;
|
|
165
|
-
data: import("../charts").Spreadsheet;
|
|
166
|
-
};
|
|
167
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
168
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
169
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
|
-
originSnapOffset: {
|
|
171
|
-
x: number;
|
|
172
|
-
y: number;
|
|
173
|
-
} | null;
|
|
174
|
-
objectsSnapModeEnabled: boolean;
|
|
175
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
176
|
-
followedBy: Set<import("../types").SocketId>;
|
|
177
|
-
isCropping: boolean;
|
|
178
|
-
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
179
|
-
searchMatches: Readonly<{
|
|
180
|
-
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
181
|
-
matches: readonly import("../types").SearchMatch[];
|
|
182
|
-
}> | null;
|
|
183
|
-
activeLockedId: string | null;
|
|
184
|
-
lockedMultiSelections: {
|
|
185
|
-
[groupId: string]: true;
|
|
186
|
-
};
|
|
187
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
188
32
|
};
|
|
189
33
|
} | {
|
|
190
|
-
captureUpdate: "
|
|
191
|
-
appState
|
|
34
|
+
captureUpdate: "NEVER";
|
|
35
|
+
appState: {
|
|
36
|
+
toast: null;
|
|
37
|
+
fileHandle?: undefined;
|
|
38
|
+
};
|
|
192
39
|
}>;
|
|
193
40
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false;
|
|
194
41
|
} & {
|
|
@@ -202,14 +49,53 @@ export declare const actionSaveFileToDisk: {
|
|
|
202
49
|
trackEvent: {
|
|
203
50
|
category: "export";
|
|
204
51
|
};
|
|
205
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app:
|
|
206
|
-
captureUpdate: "
|
|
52
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: AppClassProperties) => Promise<false | {
|
|
53
|
+
captureUpdate: "NEVER";
|
|
207
54
|
appState: {
|
|
208
55
|
openDialog: null;
|
|
209
|
-
fileHandle:
|
|
56
|
+
fileHandle: FileSystemFileHandle | null;
|
|
210
57
|
toast: {
|
|
211
58
|
message: string;
|
|
59
|
+
duration: number;
|
|
212
60
|
};
|
|
61
|
+
};
|
|
62
|
+
} | {
|
|
63
|
+
captureUpdate: "NEVER";
|
|
64
|
+
appState: {
|
|
65
|
+
toast: null;
|
|
66
|
+
openDialog?: undefined;
|
|
67
|
+
fileHandle?: undefined;
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
71
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
} & {
|
|
73
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
74
|
+
};
|
|
75
|
+
export declare const actionLoadScene: {
|
|
76
|
+
name: "loadScene";
|
|
77
|
+
label: string;
|
|
78
|
+
trackEvent: {
|
|
79
|
+
category: "export";
|
|
80
|
+
};
|
|
81
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
82
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => Promise<false | {
|
|
83
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
84
|
+
appState: {
|
|
85
|
+
viewModeEnabled: boolean;
|
|
86
|
+
zenModeEnabled: boolean;
|
|
87
|
+
gridModeEnabled: boolean;
|
|
88
|
+
objectsSnapModeEnabled: boolean;
|
|
89
|
+
theme: Theme;
|
|
90
|
+
name: string | null;
|
|
91
|
+
wheelZoomsOnDefault?: boolean | undefined;
|
|
92
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
93
|
+
gridSize: number;
|
|
94
|
+
activeTool: {
|
|
95
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
96
|
+
locked: boolean;
|
|
97
|
+
fromSelection: boolean;
|
|
98
|
+
} & import("../types").ActiveTool;
|
|
213
99
|
contextMenu: {
|
|
214
100
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
215
101
|
top: number;
|
|
@@ -220,7 +106,6 @@ export declare const actionSaveFileToDisk: {
|
|
|
220
106
|
myocSimplifiedMode: boolean;
|
|
221
107
|
dontResizeLimitMBs: number;
|
|
222
108
|
hideMainMenus: boolean;
|
|
223
|
-
wheelZoomsOnDefault?: boolean;
|
|
224
109
|
arrangeConfiguration: {
|
|
225
110
|
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
226
111
|
gap: number;
|
|
@@ -239,8 +124,13 @@ export declare const actionSaveFileToDisk: {
|
|
|
239
124
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
240
125
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
241
126
|
isBindingEnabled: boolean;
|
|
127
|
+
bindingPreference: "enabled" | "disabled";
|
|
128
|
+
isMidpointSnappingEnabled: boolean;
|
|
242
129
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
243
|
-
suggestedBinding:
|
|
130
|
+
suggestedBinding: {
|
|
131
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
132
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
133
|
+
} | null;
|
|
244
134
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
245
135
|
frameRendering: {
|
|
246
136
|
enabled: boolean;
|
|
@@ -249,13 +139,8 @@ export declare const actionSaveFileToDisk: {
|
|
|
249
139
|
clip: boolean;
|
|
250
140
|
};
|
|
251
141
|
editingFrame: string | null;
|
|
252
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
253
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
254
|
-
activeTool: {
|
|
255
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
256
|
-
locked: boolean;
|
|
257
|
-
fromSelection: boolean;
|
|
258
|
-
} & import("../types").ActiveTool;
|
|
142
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
143
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
259
144
|
preferredSelectionTool: {
|
|
260
145
|
type: "selection" | "lasso";
|
|
261
146
|
initialized: boolean;
|
|
@@ -268,9 +153,9 @@ export declare const actionSaveFileToDisk: {
|
|
|
268
153
|
exportScale: number;
|
|
269
154
|
currentItemStrokeColor: string;
|
|
270
155
|
currentItemBackgroundColor: string;
|
|
271
|
-
currentItemFillStyle:
|
|
156
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
272
157
|
currentItemStrokeWidth: number;
|
|
273
|
-
currentItemStrokeStyle:
|
|
158
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
274
159
|
currentItemRoughness: number;
|
|
275
160
|
currentItemOpacity: number;
|
|
276
161
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
@@ -280,13 +165,11 @@ export declare const actionSaveFileToDisk: {
|
|
|
280
165
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
281
166
|
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
282
167
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
283
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
284
168
|
viewBackgroundColor: string;
|
|
285
169
|
scrollX: number;
|
|
286
170
|
scrollY: number;
|
|
287
171
|
cursorButton: "up" | "down";
|
|
288
172
|
scrolledOutside: boolean;
|
|
289
|
-
name: string | null;
|
|
290
173
|
isResizing: boolean;
|
|
291
174
|
isRotating: boolean;
|
|
292
175
|
zoom: import("../types").Zoom;
|
|
@@ -296,6 +179,20 @@ export declare const actionSaveFileToDisk: {
|
|
|
296
179
|
name: import("../types").SidebarName;
|
|
297
180
|
tab?: import("../types").SidebarTabName;
|
|
298
181
|
} | null;
|
|
182
|
+
openDialog: null | {
|
|
183
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
184
|
+
} | {
|
|
185
|
+
name: "commandPalette";
|
|
186
|
+
} | {
|
|
187
|
+
name: "settings";
|
|
188
|
+
} | {
|
|
189
|
+
name: "elementLinkSelector";
|
|
190
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
191
|
+
} | {
|
|
192
|
+
name: "charts";
|
|
193
|
+
data: import("../charts").Spreadsheet;
|
|
194
|
+
rawText: string;
|
|
195
|
+
};
|
|
299
196
|
defaultSidebarDockedPreference: boolean;
|
|
300
197
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
301
198
|
selectedElementIds: Readonly<{
|
|
@@ -309,33 +206,22 @@ export declare const actionSaveFileToDisk: {
|
|
|
309
206
|
};
|
|
310
207
|
selectedElementsAreBeingDragged: boolean;
|
|
311
208
|
shouldCacheIgnoreZoom: boolean;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
209
|
+
toast: {
|
|
210
|
+
message: React.ReactNode;
|
|
211
|
+
closable?: boolean;
|
|
212
|
+
duration?: number;
|
|
213
|
+
} | null;
|
|
315
214
|
gridStep: number;
|
|
316
|
-
gridModeEnabled: boolean;
|
|
317
|
-
viewModeEnabled: boolean;
|
|
318
215
|
selectedGroupIds: {
|
|
319
216
|
[groupId: string]: boolean;
|
|
320
217
|
};
|
|
321
218
|
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
322
|
-
|
|
323
|
-
height: number;
|
|
324
|
-
offsetTop: number;
|
|
325
|
-
offsetLeft: number;
|
|
219
|
+
fileHandle: FileSystemFileHandle | null;
|
|
326
220
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
327
221
|
stats: {
|
|
328
222
|
open: boolean;
|
|
329
223
|
panels: number;
|
|
330
224
|
};
|
|
331
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
332
|
-
pasteDialog: {
|
|
333
|
-
shown: false;
|
|
334
|
-
data: null;
|
|
335
|
-
} | {
|
|
336
|
-
shown: true;
|
|
337
|
-
data: import("../charts").Spreadsheet;
|
|
338
|
-
};
|
|
339
225
|
showHyperlinkPopup: false | "info" | "editor";
|
|
340
226
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
341
227
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -343,13 +229,12 @@ export declare const actionSaveFileToDisk: {
|
|
|
343
229
|
x: number;
|
|
344
230
|
y: number;
|
|
345
231
|
} | null;
|
|
346
|
-
objectsSnapModeEnabled: boolean;
|
|
347
232
|
userToFollow: import("../types").UserToFollow | null;
|
|
348
233
|
followedBy: Set<import("../types").SocketId>;
|
|
349
234
|
isCropping: boolean;
|
|
350
|
-
croppingElementId:
|
|
235
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
351
236
|
searchMatches: Readonly<{
|
|
352
|
-
focusedId:
|
|
237
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
353
238
|
matches: readonly import("../types").SearchMatch[];
|
|
354
239
|
}> | null;
|
|
355
240
|
activeLockedId: string | null;
|
|
@@ -358,186 +243,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
358
243
|
};
|
|
359
244
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
360
245
|
};
|
|
361
|
-
|
|
362
|
-
captureUpdate: "EVENTUALLY";
|
|
363
|
-
appState?: undefined;
|
|
364
|
-
}>;
|
|
365
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
366
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
367
|
-
} & {
|
|
368
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
369
|
-
};
|
|
370
|
-
export declare const actionLoadScene: {
|
|
371
|
-
name: "loadScene";
|
|
372
|
-
label: string;
|
|
373
|
-
trackEvent: {
|
|
374
|
-
category: "export";
|
|
375
|
-
};
|
|
376
|
-
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
377
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
|
|
378
|
-
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
379
|
-
appState: {
|
|
380
|
-
viewBackgroundColor: string;
|
|
381
|
-
theme: Theme;
|
|
382
|
-
frameRendering: {
|
|
383
|
-
enabled: boolean;
|
|
384
|
-
name: boolean;
|
|
385
|
-
outline: boolean;
|
|
386
|
-
clip: boolean;
|
|
387
|
-
};
|
|
388
|
-
name: string | null;
|
|
389
|
-
zoom: import("../types").Zoom;
|
|
390
|
-
scrollX: number;
|
|
391
|
-
scrollY: number;
|
|
392
|
-
viewModeEnabled: boolean;
|
|
393
|
-
openDialog: null | {
|
|
394
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
395
|
-
} | {
|
|
396
|
-
name: "commandPalette";
|
|
397
|
-
} | {
|
|
398
|
-
name: "settings";
|
|
399
|
-
} | {
|
|
400
|
-
name: "elementLinkSelector";
|
|
401
|
-
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
402
|
-
};
|
|
403
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
404
|
-
selectedElementIds: Readonly<{
|
|
405
|
-
[id: string]: true;
|
|
406
|
-
}>;
|
|
407
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
408
|
-
activeEmbeddable: {
|
|
409
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
410
|
-
state: "hover" | "active";
|
|
411
|
-
} | null;
|
|
412
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
413
|
-
selectedGroupIds: {
|
|
414
|
-
[groupId: string]: boolean;
|
|
415
|
-
};
|
|
416
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
417
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
418
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
419
|
-
isBindingEnabled: boolean;
|
|
420
|
-
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
421
|
-
isRotating: boolean;
|
|
422
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
423
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
424
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
425
|
-
zenModeEnabled: boolean;
|
|
426
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
427
|
-
isCropping: boolean;
|
|
428
|
-
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
429
|
-
searchMatches: Readonly<{
|
|
430
|
-
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
431
|
-
matches: readonly import("../types").SearchMatch[];
|
|
432
|
-
}> | null;
|
|
433
|
-
activeLockedId: string | null;
|
|
434
|
-
hoveredElementIds: Readonly<{
|
|
435
|
-
[id: string]: true;
|
|
436
|
-
}>;
|
|
437
|
-
shouldCacheIgnoreZoom: boolean;
|
|
438
|
-
exportScale: number;
|
|
439
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
440
|
-
gridSize: number;
|
|
441
|
-
contextMenu: {
|
|
442
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
443
|
-
top: number;
|
|
444
|
-
left: number;
|
|
445
|
-
} | null;
|
|
446
|
-
showWelcomeScreen: boolean;
|
|
447
|
-
isLoading: boolean;
|
|
448
|
-
myocSimplifiedMode: boolean;
|
|
449
|
-
dontResizeLimitMBs: number;
|
|
450
|
-
hideMainMenus: boolean;
|
|
451
|
-
wheelZoomsOnDefault?: boolean | undefined;
|
|
452
|
-
arrangeConfiguration: {
|
|
453
|
-
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
454
|
-
gap: number;
|
|
455
|
-
};
|
|
456
|
-
normaliseConfiguration: {
|
|
457
|
-
mode: import("../types").NormaliseMode;
|
|
458
|
-
metric: import("../types").NormaliseMetric;
|
|
459
|
-
};
|
|
460
|
-
errorMessage: React.ReactNode;
|
|
461
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
462
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
463
|
-
editingFrame: string | null;
|
|
464
|
-
activeTool: {
|
|
465
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
466
|
-
locked: boolean;
|
|
467
|
-
fromSelection: boolean;
|
|
468
|
-
} & import("../types").ActiveTool;
|
|
469
|
-
preferredSelectionTool: {
|
|
470
|
-
type: "selection" | "lasso";
|
|
471
|
-
initialized: boolean;
|
|
472
|
-
};
|
|
473
|
-
penMode: boolean;
|
|
474
|
-
penDetected: boolean;
|
|
475
|
-
exportBackground: boolean;
|
|
476
|
-
exportEmbedScene: boolean;
|
|
477
|
-
exportWithDarkMode: boolean;
|
|
478
|
-
currentItemStrokeColor: string;
|
|
479
|
-
currentItemBackgroundColor: string;
|
|
480
|
-
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
481
|
-
currentItemStrokeWidth: number;
|
|
482
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
483
|
-
currentItemRoughness: number;
|
|
484
|
-
currentItemOpacity: number;
|
|
485
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
486
|
-
currentItemFontSize: number;
|
|
487
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
488
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
489
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
490
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
491
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
492
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
493
|
-
cursorButton: "up" | "down";
|
|
494
|
-
scrolledOutside: boolean;
|
|
495
|
-
isResizing: boolean;
|
|
496
|
-
openMenu: "canvas" | null;
|
|
497
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
498
|
-
openSidebar: {
|
|
499
|
-
name: import("../types").SidebarName;
|
|
500
|
-
tab?: import("../types").SidebarTabName;
|
|
501
|
-
} | null;
|
|
502
|
-
defaultSidebarDockedPreference: boolean;
|
|
503
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
504
|
-
previousSelectedElementIds: {
|
|
505
|
-
[id: string]: true;
|
|
506
|
-
};
|
|
507
|
-
selectedElementsAreBeingDragged: boolean;
|
|
508
|
-
toast: {
|
|
509
|
-
message: string;
|
|
510
|
-
closable?: boolean;
|
|
511
|
-
duration?: number;
|
|
512
|
-
} | null;
|
|
513
|
-
gridStep: number;
|
|
514
|
-
gridModeEnabled: boolean;
|
|
515
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
516
|
-
stats: {
|
|
517
|
-
open: boolean;
|
|
518
|
-
panels: number;
|
|
519
|
-
};
|
|
520
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
521
|
-
pasteDialog: {
|
|
522
|
-
shown: false;
|
|
523
|
-
data: null;
|
|
524
|
-
} | {
|
|
525
|
-
shown: true;
|
|
526
|
-
data: import("../charts").Spreadsheet;
|
|
527
|
-
};
|
|
528
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
529
|
-
originSnapOffset: {
|
|
530
|
-
x: number;
|
|
531
|
-
y: number;
|
|
532
|
-
} | null;
|
|
533
|
-
objectsSnapModeEnabled: boolean;
|
|
534
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
535
|
-
followedBy: Set<import("../types").SocketId>;
|
|
536
|
-
lockedMultiSelections: {
|
|
537
|
-
[groupId: string]: true;
|
|
538
|
-
};
|
|
539
|
-
};
|
|
540
|
-
files: import("../types").BinaryFiles;
|
|
246
|
+
files: BinaryFiles;
|
|
541
247
|
captureUpdate: "IMMEDIATELY";
|
|
542
248
|
} | {
|
|
543
249
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
@@ -571,8 +277,13 @@ export declare const actionLoadScene: {
|
|
|
571
277
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
572
278
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
573
279
|
isBindingEnabled: boolean;
|
|
280
|
+
bindingPreference: "enabled" | "disabled";
|
|
281
|
+
isMidpointSnappingEnabled: boolean;
|
|
574
282
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
575
|
-
suggestedBinding:
|
|
283
|
+
suggestedBinding: {
|
|
284
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
285
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
286
|
+
} | null;
|
|
576
287
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
577
288
|
frameRendering: {
|
|
578
289
|
enabled: boolean;
|
|
@@ -581,8 +292,8 @@ export declare const actionLoadScene: {
|
|
|
581
292
|
clip: boolean;
|
|
582
293
|
};
|
|
583
294
|
editingFrame: string | null;
|
|
584
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<
|
|
585
|
-
editingTextElement: import("@excalidraw/element/types").
|
|
295
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
296
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
586
297
|
activeTool: {
|
|
587
298
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
588
299
|
locked: boolean;
|
|
@@ -600,9 +311,9 @@ export declare const actionLoadScene: {
|
|
|
600
311
|
exportScale: number;
|
|
601
312
|
currentItemStrokeColor: string;
|
|
602
313
|
currentItemBackgroundColor: string;
|
|
603
|
-
currentItemFillStyle:
|
|
314
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
604
315
|
currentItemStrokeWidth: number;
|
|
605
|
-
currentItemStrokeStyle:
|
|
316
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
606
317
|
currentItemRoughness: number;
|
|
607
318
|
currentItemOpacity: number;
|
|
608
319
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
@@ -636,7 +347,11 @@ export declare const actionLoadScene: {
|
|
|
636
347
|
name: "settings";
|
|
637
348
|
} | {
|
|
638
349
|
name: "elementLinkSelector";
|
|
639
|
-
sourceElementId:
|
|
350
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
351
|
+
} | {
|
|
352
|
+
name: "charts";
|
|
353
|
+
data: import("../charts").Spreadsheet;
|
|
354
|
+
rawText: string;
|
|
640
355
|
};
|
|
641
356
|
defaultSidebarDockedPreference: boolean;
|
|
642
357
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -652,7 +367,7 @@ export declare const actionLoadScene: {
|
|
|
652
367
|
selectedElementsAreBeingDragged: boolean;
|
|
653
368
|
shouldCacheIgnoreZoom: boolean;
|
|
654
369
|
toast: {
|
|
655
|
-
message:
|
|
370
|
+
message: React.ReactNode;
|
|
656
371
|
closable?: boolean;
|
|
657
372
|
duration?: number;
|
|
658
373
|
} | null;
|
|
@@ -670,20 +385,12 @@ export declare const actionLoadScene: {
|
|
|
670
385
|
height: number;
|
|
671
386
|
offsetTop: number;
|
|
672
387
|
offsetLeft: number;
|
|
673
|
-
fileHandle:
|
|
388
|
+
fileHandle: FileSystemFileHandle | null;
|
|
674
389
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
675
390
|
stats: {
|
|
676
391
|
open: boolean;
|
|
677
392
|
panels: number;
|
|
678
393
|
};
|
|
679
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
680
|
-
pasteDialog: {
|
|
681
|
-
shown: false;
|
|
682
|
-
data: null;
|
|
683
|
-
} | {
|
|
684
|
-
shown: true;
|
|
685
|
-
data: import("../charts").Spreadsheet;
|
|
686
|
-
};
|
|
687
394
|
showHyperlinkPopup: false | "info" | "editor";
|
|
688
395
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
689
396
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
@@ -695,9 +402,9 @@ export declare const actionLoadScene: {
|
|
|
695
402
|
userToFollow: import("../types").UserToFollow | null;
|
|
696
403
|
followedBy: Set<import("../types").SocketId>;
|
|
697
404
|
isCropping: boolean;
|
|
698
|
-
croppingElementId:
|
|
405
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
699
406
|
searchMatches: Readonly<{
|
|
700
|
-
focusedId:
|
|
407
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
701
408
|
matches: readonly import("../types").SearchMatch[];
|
|
702
409
|
}> | null;
|
|
703
410
|
activeLockedId: string | null;
|
|
@@ -706,7 +413,7 @@ export declare const actionLoadScene: {
|
|
|
706
413
|
};
|
|
707
414
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
708
415
|
};
|
|
709
|
-
files:
|
|
416
|
+
files: BinaryFiles;
|
|
710
417
|
captureUpdate: "EVENTUALLY";
|
|
711
418
|
}>;
|
|
712
419
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -714,5 +421,5 @@ export declare const actionLoadScene: {
|
|
|
714
421
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
715
422
|
};
|
|
716
423
|
export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
|
|
717
|
-
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly
|
|
424
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
718
425
|
};
|