@excalidraw/common 0.18.0-c6f8ef9 → 0.18.0-d1f3982
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 +178 -44
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +18 -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/bounds.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +0 -1
- package/dist/types/element/src/index.d.ts +1 -0
- 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/textElement.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -9
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +94 -41
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +42 -18
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +22 -10
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionExport.d.ts +63 -27
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionFrame.d.ts +28 -12
- package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +8 -4
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +7 -369
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -53
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionStyles.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -3
- 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 +17 -3
- package/dist/types/excalidraw/components/App.d.ts +25 -21
- 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/ExcalidrawLogo.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 +5 -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/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -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 +18 -15
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +1 -1
|
@@ -47,6 +47,10 @@ export declare const actionDeleteSelected: {
|
|
|
47
47
|
locked: boolean;
|
|
48
48
|
fromSelection: boolean;
|
|
49
49
|
} & import("../types").ActiveTool;
|
|
50
|
+
preferredSelectionTool: {
|
|
51
|
+
type: "selection" | "lasso";
|
|
52
|
+
initialized: boolean;
|
|
53
|
+
};
|
|
50
54
|
penMode: boolean;
|
|
51
55
|
penDetected: boolean;
|
|
52
56
|
exportBackground: boolean;
|
|
@@ -79,8 +83,8 @@ export declare const actionDeleteSelected: {
|
|
|
79
83
|
zoom: Readonly<{
|
|
80
84
|
value: import("../types").NormalizedZoomValue;
|
|
81
85
|
}>;
|
|
82
|
-
openMenu: "canvas" |
|
|
83
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
86
|
+
openMenu: "canvas" | null;
|
|
87
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
84
88
|
openSidebar: {
|
|
85
89
|
name: string;
|
|
86
90
|
tab?: string | undefined;
|
|
@@ -161,7 +165,7 @@ export declare const actionDeleteSelected: {
|
|
|
161
165
|
shown: true;
|
|
162
166
|
data: import("../charts").Spreadsheet;
|
|
163
167
|
};
|
|
164
|
-
showHyperlinkPopup: false | "
|
|
168
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
165
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
166
170
|
originSnapOffset: {
|
|
167
171
|
x: number;
|
|
@@ -252,6 +256,10 @@ export declare const actionDeleteSelected: {
|
|
|
252
256
|
locked: boolean;
|
|
253
257
|
fromSelection: boolean;
|
|
254
258
|
} & import("../types").ActiveTool;
|
|
259
|
+
preferredSelectionTool: {
|
|
260
|
+
type: "selection" | "lasso";
|
|
261
|
+
initialized: boolean;
|
|
262
|
+
};
|
|
255
263
|
penMode: boolean;
|
|
256
264
|
penDetected: boolean;
|
|
257
265
|
exportBackground: boolean;
|
|
@@ -284,8 +292,8 @@ export declare const actionDeleteSelected: {
|
|
|
284
292
|
zoom: Readonly<{
|
|
285
293
|
value: import("../types").NormalizedZoomValue;
|
|
286
294
|
}>;
|
|
287
|
-
openMenu: "canvas" |
|
|
288
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
295
|
+
openMenu: "canvas" | null;
|
|
296
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
289
297
|
openSidebar: {
|
|
290
298
|
name: string;
|
|
291
299
|
tab?: string | undefined;
|
|
@@ -366,7 +374,7 @@ export declare const actionDeleteSelected: {
|
|
|
366
374
|
shown: true;
|
|
367
375
|
data: import("../charts").Spreadsheet;
|
|
368
376
|
};
|
|
369
|
-
showHyperlinkPopup: false | "
|
|
377
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
370
378
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
371
379
|
originSnapOffset: {
|
|
372
380
|
x: number;
|
|
@@ -429,6 +437,10 @@ export declare const actionDeleteSelected: {
|
|
|
429
437
|
editingFrame: string | null;
|
|
430
438
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
431
439
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
440
|
+
preferredSelectionTool: {
|
|
441
|
+
type: "selection" | "lasso";
|
|
442
|
+
initialized: boolean;
|
|
443
|
+
};
|
|
432
444
|
penMode: boolean;
|
|
433
445
|
penDetected: boolean;
|
|
434
446
|
exportBackground: boolean;
|
|
@@ -461,8 +473,8 @@ export declare const actionDeleteSelected: {
|
|
|
461
473
|
zoom: Readonly<{
|
|
462
474
|
value: import("../types").NormalizedZoomValue;
|
|
463
475
|
}>;
|
|
464
|
-
openMenu: "canvas" |
|
|
465
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
476
|
+
openMenu: "canvas" | null;
|
|
477
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
466
478
|
openSidebar: {
|
|
467
479
|
name: string;
|
|
468
480
|
tab?: string | undefined;
|
|
@@ -536,7 +548,7 @@ export declare const actionDeleteSelected: {
|
|
|
536
548
|
shown: true;
|
|
537
549
|
data: import("../charts").Spreadsheet;
|
|
538
550
|
};
|
|
539
|
-
showHyperlinkPopup: false | "
|
|
551
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
540
552
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
541
553
|
originSnapOffset: {
|
|
542
554
|
x: number;
|
|
@@ -559,7 +571,7 @@ export declare const actionDeleteSelected: {
|
|
|
559
571
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
560
572
|
};
|
|
561
573
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
562
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
574
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
563
575
|
} & {
|
|
564
576
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
565
577
|
};
|
|
@@ -12,7 +12,7 @@ export declare const actionDuplicateSelection: {
|
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
14
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
17
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
@@ -75,6 +75,10 @@ export declare const actionLinkToElement: {
|
|
|
75
75
|
locked: boolean;
|
|
76
76
|
fromSelection: boolean;
|
|
77
77
|
} & import("../types").ActiveTool;
|
|
78
|
+
preferredSelectionTool: {
|
|
79
|
+
type: "selection" | "lasso";
|
|
80
|
+
initialized: boolean;
|
|
81
|
+
};
|
|
78
82
|
penMode: boolean;
|
|
79
83
|
penDetected: boolean;
|
|
80
84
|
exportBackground: boolean;
|
|
@@ -107,8 +111,8 @@ export declare const actionLinkToElement: {
|
|
|
107
111
|
zoom: Readonly<{
|
|
108
112
|
value: import("../types").NormalizedZoomValue;
|
|
109
113
|
}>;
|
|
110
|
-
openMenu: "canvas" |
|
|
111
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
114
|
+
openMenu: "canvas" | null;
|
|
115
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
112
116
|
openSidebar: {
|
|
113
117
|
name: string;
|
|
114
118
|
tab?: string | undefined;
|
|
@@ -178,7 +182,7 @@ export declare const actionLinkToElement: {
|
|
|
178
182
|
shown: true;
|
|
179
183
|
data: import("../charts").Spreadsheet;
|
|
180
184
|
};
|
|
181
|
-
showHyperlinkPopup: false | "
|
|
185
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
182
186
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
183
187
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
184
188
|
originSnapOffset: {
|
|
@@ -57,6 +57,10 @@ export declare const actionToggleElementLock: {
|
|
|
57
57
|
locked: boolean;
|
|
58
58
|
fromSelection: boolean;
|
|
59
59
|
} & import("../types").ActiveTool;
|
|
60
|
+
preferredSelectionTool: {
|
|
61
|
+
type: "selection" | "lasso";
|
|
62
|
+
initialized: boolean;
|
|
63
|
+
};
|
|
60
64
|
penMode: boolean;
|
|
61
65
|
penDetected: boolean;
|
|
62
66
|
exportBackground: boolean;
|
|
@@ -89,8 +93,8 @@ export declare const actionToggleElementLock: {
|
|
|
89
93
|
zoom: Readonly<{
|
|
90
94
|
value: import("../types").NormalizedZoomValue;
|
|
91
95
|
}>;
|
|
92
|
-
openMenu: "canvas" |
|
|
93
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
96
|
+
openMenu: "canvas" | null;
|
|
97
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
94
98
|
openSidebar: {
|
|
95
99
|
name: string;
|
|
96
100
|
tab?: string | undefined;
|
|
@@ -165,7 +169,7 @@ export declare const actionToggleElementLock: {
|
|
|
165
169
|
shown: true;
|
|
166
170
|
data: import("../charts").Spreadsheet;
|
|
167
171
|
};
|
|
168
|
-
showHyperlinkPopup: false | "
|
|
172
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
169
173
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
174
|
originSnapOffset: {
|
|
171
175
|
x: number;
|
|
@@ -240,6 +244,10 @@ export declare const actionUnlockAllElements: {
|
|
|
240
244
|
locked: boolean;
|
|
241
245
|
fromSelection: boolean;
|
|
242
246
|
} & import("../types").ActiveTool;
|
|
247
|
+
preferredSelectionTool: {
|
|
248
|
+
type: "selection" | "lasso";
|
|
249
|
+
initialized: boolean;
|
|
250
|
+
};
|
|
243
251
|
penMode: boolean;
|
|
244
252
|
penDetected: boolean;
|
|
245
253
|
exportBackground: boolean;
|
|
@@ -272,8 +280,8 @@ export declare const actionUnlockAllElements: {
|
|
|
272
280
|
zoom: Readonly<{
|
|
273
281
|
value: import("../types").NormalizedZoomValue;
|
|
274
282
|
}>;
|
|
275
|
-
openMenu: "canvas" |
|
|
276
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
283
|
+
openMenu: "canvas" | null;
|
|
284
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
277
285
|
openSidebar: {
|
|
278
286
|
name: string;
|
|
279
287
|
tab?: string | undefined;
|
|
@@ -348,7 +356,7 @@ export declare const actionUnlockAllElements: {
|
|
|
348
356
|
shown: true;
|
|
349
357
|
data: import("../charts").Spreadsheet;
|
|
350
358
|
};
|
|
351
|
-
showHyperlinkPopup: false | "
|
|
359
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
352
360
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
353
361
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
354
362
|
originSnapOffset: {
|
|
@@ -43,6 +43,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
43
43
|
editingFrame: string | null;
|
|
44
44
|
elementsToHighlight: import("../../element/src/types").NonDeleted<import("../../element/src/types").ExcalidrawElement>[] | null;
|
|
45
45
|
editingTextElement: import("../../element/src/types").NonDeletedExcalidrawElement | null;
|
|
46
|
+
preferredSelectionTool: {
|
|
47
|
+
type: "selection" | "lasso";
|
|
48
|
+
initialized: boolean;
|
|
49
|
+
};
|
|
46
50
|
penMode: boolean;
|
|
47
51
|
penDetected: boolean;
|
|
48
52
|
exportBackground: boolean;
|
|
@@ -75,8 +79,8 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
75
79
|
zoom: Readonly<{
|
|
76
80
|
value: import("../types").NormalizedZoomValue;
|
|
77
81
|
}>;
|
|
78
|
-
openMenu: "canvas" |
|
|
79
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
|
+
openMenu: "canvas" | null;
|
|
83
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
80
84
|
openSidebar: {
|
|
81
85
|
name: string;
|
|
82
86
|
tab?: string | undefined;
|
|
@@ -157,7 +161,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
157
161
|
shown: true;
|
|
158
162
|
data: import("../charts").Spreadsheet;
|
|
159
163
|
};
|
|
160
|
-
showHyperlinkPopup: false | "
|
|
164
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
165
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
162
166
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
163
167
|
originSnapOffset: {
|
|
@@ -42,6 +42,10 @@ export declare const actionChangeProjectName: {
|
|
|
42
42
|
locked: boolean;
|
|
43
43
|
fromSelection: boolean;
|
|
44
44
|
} & import("../types").ActiveTool;
|
|
45
|
+
preferredSelectionTool: {
|
|
46
|
+
type: "selection" | "lasso";
|
|
47
|
+
initialized: boolean;
|
|
48
|
+
};
|
|
45
49
|
penMode: boolean;
|
|
46
50
|
penDetected: boolean;
|
|
47
51
|
exportBackground: boolean;
|
|
@@ -73,8 +77,8 @@ export declare const actionChangeProjectName: {
|
|
|
73
77
|
zoom: Readonly<{
|
|
74
78
|
value: import("../types").NormalizedZoomValue;
|
|
75
79
|
}>;
|
|
76
|
-
openMenu: "canvas" |
|
|
77
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
80
|
+
openMenu: "canvas" | null;
|
|
81
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
78
82
|
openSidebar: {
|
|
79
83
|
name: string;
|
|
80
84
|
tab?: string | undefined;
|
|
@@ -155,7 +159,7 @@ export declare const actionChangeProjectName: {
|
|
|
155
159
|
shown: true;
|
|
156
160
|
data: import("../charts").Spreadsheet;
|
|
157
161
|
};
|
|
158
|
-
showHyperlinkPopup: false | "
|
|
162
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
159
163
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
160
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
161
165
|
originSnapOffset: {
|
|
@@ -226,6 +230,10 @@ export declare const actionChangeExportScale: {
|
|
|
226
230
|
locked: boolean;
|
|
227
231
|
fromSelection: boolean;
|
|
228
232
|
} & import("../types").ActiveTool;
|
|
233
|
+
preferredSelectionTool: {
|
|
234
|
+
type: "selection" | "lasso";
|
|
235
|
+
initialized: boolean;
|
|
236
|
+
};
|
|
229
237
|
penMode: boolean;
|
|
230
238
|
penDetected: boolean;
|
|
231
239
|
exportBackground: boolean;
|
|
@@ -257,8 +265,8 @@ export declare const actionChangeExportScale: {
|
|
|
257
265
|
zoom: Readonly<{
|
|
258
266
|
value: import("../types").NormalizedZoomValue;
|
|
259
267
|
}>;
|
|
260
|
-
openMenu: "canvas" |
|
|
261
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
268
|
+
openMenu: "canvas" | null;
|
|
269
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
262
270
|
openSidebar: {
|
|
263
271
|
name: string;
|
|
264
272
|
tab?: string | undefined;
|
|
@@ -339,7 +347,7 @@ export declare const actionChangeExportScale: {
|
|
|
339
347
|
shown: true;
|
|
340
348
|
data: import("../charts").Spreadsheet;
|
|
341
349
|
};
|
|
342
|
-
showHyperlinkPopup: false | "
|
|
350
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
343
351
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
344
352
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
345
353
|
originSnapOffset: {
|
|
@@ -410,6 +418,10 @@ export declare const actionChangeExportBackground: {
|
|
|
410
418
|
locked: boolean;
|
|
411
419
|
fromSelection: boolean;
|
|
412
420
|
} & import("../types").ActiveTool;
|
|
421
|
+
preferredSelectionTool: {
|
|
422
|
+
type: "selection" | "lasso";
|
|
423
|
+
initialized: boolean;
|
|
424
|
+
};
|
|
413
425
|
penMode: boolean;
|
|
414
426
|
penDetected: boolean;
|
|
415
427
|
exportEmbedScene: boolean;
|
|
@@ -441,8 +453,8 @@ export declare const actionChangeExportBackground: {
|
|
|
441
453
|
zoom: Readonly<{
|
|
442
454
|
value: import("../types").NormalizedZoomValue;
|
|
443
455
|
}>;
|
|
444
|
-
openMenu: "canvas" |
|
|
445
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
456
|
+
openMenu: "canvas" | null;
|
|
457
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
446
458
|
openSidebar: {
|
|
447
459
|
name: string;
|
|
448
460
|
tab?: string | undefined;
|
|
@@ -523,7 +535,7 @@ export declare const actionChangeExportBackground: {
|
|
|
523
535
|
shown: true;
|
|
524
536
|
data: import("../charts").Spreadsheet;
|
|
525
537
|
};
|
|
526
|
-
showHyperlinkPopup: false | "
|
|
538
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
527
539
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
528
540
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
529
541
|
originSnapOffset: {
|
|
@@ -594,6 +606,10 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
594
606
|
locked: boolean;
|
|
595
607
|
fromSelection: boolean;
|
|
596
608
|
} & import("../types").ActiveTool;
|
|
609
|
+
preferredSelectionTool: {
|
|
610
|
+
type: "selection" | "lasso";
|
|
611
|
+
initialized: boolean;
|
|
612
|
+
};
|
|
597
613
|
penMode: boolean;
|
|
598
614
|
penDetected: boolean;
|
|
599
615
|
exportBackground: boolean;
|
|
@@ -625,8 +641,8 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
625
641
|
zoom: Readonly<{
|
|
626
642
|
value: import("../types").NormalizedZoomValue;
|
|
627
643
|
}>;
|
|
628
|
-
openMenu: "canvas" |
|
|
629
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
644
|
+
openMenu: "canvas" | null;
|
|
645
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
630
646
|
openSidebar: {
|
|
631
647
|
name: string;
|
|
632
648
|
tab?: string | undefined;
|
|
@@ -707,7 +723,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
707
723
|
shown: true;
|
|
708
724
|
data: import("../charts").Spreadsheet;
|
|
709
725
|
};
|
|
710
|
-
showHyperlinkPopup: false | "
|
|
726
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
711
727
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
712
728
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
713
729
|
originSnapOffset: {
|
|
@@ -783,6 +799,10 @@ export declare const actionSaveToActiveFile: {
|
|
|
783
799
|
locked: boolean;
|
|
784
800
|
fromSelection: boolean;
|
|
785
801
|
} & import("../types").ActiveTool;
|
|
802
|
+
preferredSelectionTool: {
|
|
803
|
+
type: "selection" | "lasso";
|
|
804
|
+
initialized: boolean;
|
|
805
|
+
};
|
|
786
806
|
penMode: boolean;
|
|
787
807
|
penDetected: boolean;
|
|
788
808
|
exportBackground: boolean;
|
|
@@ -815,8 +835,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
815
835
|
zoom: Readonly<{
|
|
816
836
|
value: import("../types").NormalizedZoomValue;
|
|
817
837
|
}>;
|
|
818
|
-
openMenu: "canvas" |
|
|
819
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
838
|
+
openMenu: "canvas" | null;
|
|
839
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
820
840
|
openSidebar: {
|
|
821
841
|
name: string;
|
|
822
842
|
tab?: string | undefined;
|
|
@@ -891,7 +911,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
891
911
|
shown: true;
|
|
892
912
|
data: import("../charts").Spreadsheet;
|
|
893
913
|
};
|
|
894
|
-
showHyperlinkPopup: false | "
|
|
914
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
895
915
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
896
916
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
897
917
|
originSnapOffset: {
|
|
@@ -970,6 +990,10 @@ export declare const actionSaveFileToDisk: {
|
|
|
970
990
|
locked: boolean;
|
|
971
991
|
fromSelection: boolean;
|
|
972
992
|
} & import("../types").ActiveTool;
|
|
993
|
+
preferredSelectionTool: {
|
|
994
|
+
type: "selection" | "lasso";
|
|
995
|
+
initialized: boolean;
|
|
996
|
+
};
|
|
973
997
|
penMode: boolean;
|
|
974
998
|
penDetected: boolean;
|
|
975
999
|
exportBackground: boolean;
|
|
@@ -1002,8 +1026,8 @@ export declare const actionSaveFileToDisk: {
|
|
|
1002
1026
|
zoom: Readonly<{
|
|
1003
1027
|
value: import("../types").NormalizedZoomValue;
|
|
1004
1028
|
}>;
|
|
1005
|
-
openMenu: "canvas" |
|
|
1006
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1029
|
+
openMenu: "canvas" | null;
|
|
1030
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1007
1031
|
openSidebar: {
|
|
1008
1032
|
name: string;
|
|
1009
1033
|
tab?: string | undefined;
|
|
@@ -1067,7 +1091,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1067
1091
|
shown: true;
|
|
1068
1092
|
data: import("../charts").Spreadsheet;
|
|
1069
1093
|
};
|
|
1070
|
-
showHyperlinkPopup: false | "
|
|
1094
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1071
1095
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1072
1096
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1073
1097
|
originSnapOffset: {
|
|
@@ -1199,6 +1223,10 @@ export declare const actionLoadScene: {
|
|
|
1199
1223
|
locked: boolean;
|
|
1200
1224
|
fromSelection: boolean;
|
|
1201
1225
|
} & import("../types").ActiveTool;
|
|
1226
|
+
preferredSelectionTool: {
|
|
1227
|
+
type: "selection" | "lasso";
|
|
1228
|
+
initialized: boolean;
|
|
1229
|
+
};
|
|
1202
1230
|
penMode: boolean;
|
|
1203
1231
|
penDetected: boolean;
|
|
1204
1232
|
exportBackground: boolean;
|
|
@@ -1223,8 +1251,8 @@ export declare const actionLoadScene: {
|
|
|
1223
1251
|
cursorButton: "up" | "down";
|
|
1224
1252
|
scrolledOutside: boolean;
|
|
1225
1253
|
isResizing: boolean;
|
|
1226
|
-
openMenu: "canvas" |
|
|
1227
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1254
|
+
openMenu: "canvas" | null;
|
|
1255
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1228
1256
|
openSidebar: {
|
|
1229
1257
|
name: string;
|
|
1230
1258
|
tab?: string | undefined;
|
|
@@ -1260,7 +1288,7 @@ export declare const actionLoadScene: {
|
|
|
1260
1288
|
shown: true;
|
|
1261
1289
|
data: import("../charts").Spreadsheet;
|
|
1262
1290
|
};
|
|
1263
|
-
showHyperlinkPopup: false | "
|
|
1291
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1264
1292
|
originSnapOffset: {
|
|
1265
1293
|
x: number;
|
|
1266
1294
|
y: number;
|
|
@@ -1311,6 +1339,10 @@ export declare const actionLoadScene: {
|
|
|
1311
1339
|
locked: boolean;
|
|
1312
1340
|
fromSelection: boolean;
|
|
1313
1341
|
} & import("../types").ActiveTool;
|
|
1342
|
+
preferredSelectionTool: {
|
|
1343
|
+
type: "selection" | "lasso";
|
|
1344
|
+
initialized: boolean;
|
|
1345
|
+
};
|
|
1314
1346
|
penMode: boolean;
|
|
1315
1347
|
penDetected: boolean;
|
|
1316
1348
|
exportBackground: boolean;
|
|
@@ -1343,8 +1375,8 @@ export declare const actionLoadScene: {
|
|
|
1343
1375
|
zoom: Readonly<{
|
|
1344
1376
|
value: import("../types").NormalizedZoomValue;
|
|
1345
1377
|
}>;
|
|
1346
|
-
openMenu: "canvas" |
|
|
1347
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1378
|
+
openMenu: "canvas" | null;
|
|
1379
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1348
1380
|
openSidebar: {
|
|
1349
1381
|
name: string;
|
|
1350
1382
|
tab?: string | undefined;
|
|
@@ -1425,7 +1457,7 @@ export declare const actionLoadScene: {
|
|
|
1425
1457
|
shown: true;
|
|
1426
1458
|
data: import("../charts").Spreadsheet;
|
|
1427
1459
|
};
|
|
1428
|
-
showHyperlinkPopup: false | "
|
|
1460
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1429
1461
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1430
1462
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1431
1463
|
originSnapOffset: {
|
|
@@ -1497,6 +1529,10 @@ export declare const actionExportWithDarkMode: {
|
|
|
1497
1529
|
locked: boolean;
|
|
1498
1530
|
fromSelection: boolean;
|
|
1499
1531
|
} & import("../types").ActiveTool;
|
|
1532
|
+
preferredSelectionTool: {
|
|
1533
|
+
type: "selection" | "lasso";
|
|
1534
|
+
initialized: boolean;
|
|
1535
|
+
};
|
|
1500
1536
|
penMode: boolean;
|
|
1501
1537
|
penDetected: boolean;
|
|
1502
1538
|
exportBackground: boolean;
|
|
@@ -1528,8 +1564,8 @@ export declare const actionExportWithDarkMode: {
|
|
|
1528
1564
|
zoom: Readonly<{
|
|
1529
1565
|
value: import("../types").NormalizedZoomValue;
|
|
1530
1566
|
}>;
|
|
1531
|
-
openMenu: "canvas" |
|
|
1532
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1567
|
+
openMenu: "canvas" | null;
|
|
1568
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1533
1569
|
openSidebar: {
|
|
1534
1570
|
name: string;
|
|
1535
1571
|
tab?: string | undefined;
|
|
@@ -1610,7 +1646,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1610
1646
|
shown: true;
|
|
1611
1647
|
data: import("../charts").Spreadsheet;
|
|
1612
1648
|
};
|
|
1613
|
-
showHyperlinkPopup: false | "
|
|
1649
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1614
1650
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1615
1651
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1616
1652
|
originSnapOffset: {
|
|
@@ -85,6 +85,10 @@ export declare const actionFinalize: {
|
|
|
85
85
|
locked: boolean;
|
|
86
86
|
fromSelection: boolean;
|
|
87
87
|
} & import("../types").ActiveTool;
|
|
88
|
+
preferredSelectionTool: {
|
|
89
|
+
type: "selection" | "lasso";
|
|
90
|
+
initialized: boolean;
|
|
91
|
+
};
|
|
88
92
|
penMode: boolean;
|
|
89
93
|
penDetected: boolean;
|
|
90
94
|
exportBackground: boolean;
|
|
@@ -116,8 +120,8 @@ export declare const actionFinalize: {
|
|
|
116
120
|
zoom: Readonly<{
|
|
117
121
|
value: import("../types").NormalizedZoomValue;
|
|
118
122
|
}>;
|
|
119
|
-
openMenu: "canvas" |
|
|
120
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
123
|
+
openMenu: "canvas" | null;
|
|
124
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
121
125
|
openSidebar: {
|
|
122
126
|
name: string;
|
|
123
127
|
tab?: string | undefined;
|
|
@@ -198,7 +202,7 @@ export declare const actionFinalize: {
|
|
|
198
202
|
shown: true;
|
|
199
203
|
data: import("../charts").Spreadsheet;
|
|
200
204
|
};
|
|
201
|
-
showHyperlinkPopup: false | "
|
|
205
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
202
206
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
203
207
|
originSnapOffset: {
|
|
204
208
|
x: number;
|
|
@@ -258,6 +262,10 @@ export declare const actionFinalize: {
|
|
|
258
262
|
};
|
|
259
263
|
editingFrame: string | null;
|
|
260
264
|
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
265
|
+
preferredSelectionTool: {
|
|
266
|
+
type: "selection" | "lasso";
|
|
267
|
+
initialized: boolean;
|
|
268
|
+
};
|
|
261
269
|
penMode: boolean;
|
|
262
270
|
penDetected: boolean;
|
|
263
271
|
exportBackground: boolean;
|
|
@@ -289,8 +297,8 @@ export declare const actionFinalize: {
|
|
|
289
297
|
zoom: Readonly<{
|
|
290
298
|
value: import("../types").NormalizedZoomValue;
|
|
291
299
|
}>;
|
|
292
|
-
openMenu: "canvas" |
|
|
293
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
300
|
+
openMenu: "canvas" | null;
|
|
301
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
294
302
|
openSidebar: {
|
|
295
303
|
name: string;
|
|
296
304
|
tab?: string | undefined;
|
|
@@ -368,7 +376,7 @@ export declare const actionFinalize: {
|
|
|
368
376
|
shown: true;
|
|
369
377
|
data: import("../charts").Spreadsheet;
|
|
370
378
|
};
|
|
371
|
-
showHyperlinkPopup: false | "
|
|
379
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
372
380
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
373
381
|
originSnapOffset: {
|
|
374
382
|
x: number;
|