@zsviczian/excalidraw 0.17.1-obsidian-14 → 0.17.1-obsidian-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/excalidraw.development.js +118 -96
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +405 -357
- package/dist/styles.production.css +12 -12
- package/package.json +2 -2
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +6 -6
- package/types/excalidraw/actions/actionBoundText.d.ts +4 -4
- package/types/excalidraw/actions/actionCanvas.d.ts +28 -28
- package/types/excalidraw/actions/actionClipboard.d.ts +14 -14
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +7 -7
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/excalidraw/actions/actionElementLock.d.ts +4 -4
- package/types/excalidraw/actions/actionExport.d.ts +18 -18
- package/types/excalidraw/actions/actionFinalize.d.ts +4 -4
- package/types/excalidraw/actions/actionFrame.d.ts +6 -6
- package/types/excalidraw/actions/actionGroup.d.ts +4 -4
- package/types/excalidraw/actions/actionLinearEditor.d.ts +2 -2
- package/types/excalidraw/actions/actionLink.d.ts +197 -0
- package/types/excalidraw/actions/actionMenu.d.ts +6 -6
- package/types/excalidraw/actions/actionNavigate.d.ts +4 -4
- package/types/excalidraw/actions/actionProperties.d.ts +26 -26
- package/types/excalidraw/actions/actionSelectAll.d.ts +2 -2
- package/types/excalidraw/actions/actionStyles.d.ts +2 -2
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +2 -2
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +2 -2
- package/types/excalidraw/actions/actionToggleStats.d.ts +2 -2
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +2 -2
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -2
- package/types/excalidraw/actions/index.d.ts +1 -1
- package/types/excalidraw/animated-trail.d.ts +1 -1
- package/types/excalidraw/appState.d.ts +1 -1
- package/types/excalidraw/components/App.d.ts +3 -0
- package/types/excalidraw/components/Button.d.ts +1 -0
- package/types/excalidraw/components/FilledButton.d.ts +2 -2
- package/types/excalidraw/components/ImageExportDialog.d.ts +2 -1
- package/types/excalidraw/components/LaserTool/LaserPathManager.d.ts +28 -0
- package/types/excalidraw/components/LaserTool/LaserPointerButton.d.ts +10 -0
- package/types/excalidraw/components/LaserTool/LaserTool.d.ts +7 -0
- package/types/excalidraw/components/ProjectName.d.ts +0 -1
- package/types/excalidraw/components/TextField.d.ts +5 -2
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +18 -0
- package/types/excalidraw/components/hyperlink/helpers.d.ts +7 -0
- package/types/excalidraw/constants.d.ts +5 -0
- package/types/excalidraw/data/filesystem.d.ts +1 -1
- package/types/excalidraw/data/index.d.ts +2 -1
- package/types/excalidraw/data/json.d.ts +1 -1
- package/types/excalidraw/data/resave.d.ts +1 -1
- package/types/excalidraw/element/ElementCanvasButtons.d.ts +3 -2
- package/types/excalidraw/element/binding.d.ts +9 -9
- package/types/excalidraw/element/bounds.d.ts +6 -6
- package/types/excalidraw/element/collision.d.ts +8 -8
- package/types/excalidraw/element/embeddable.d.ts +2 -2
- package/types/excalidraw/element/linearElementEditor.d.ts +30 -30
- package/types/excalidraw/element/newElement.d.ts +4 -4
- package/types/excalidraw/element/resizeElements.d.ts +1 -1
- package/types/excalidraw/element/resizeTest.d.ts +3 -3
- package/types/excalidraw/element/sizeHelpers.d.ts +2 -2
- package/types/excalidraw/element/textElement.d.ts +5 -5
- package/types/excalidraw/element/transformHandles.d.ts +2 -2
- package/types/excalidraw/example/App.d.ts +14 -0
- package/types/excalidraw/example/CustomFooter.d.ts +5 -0
- package/types/excalidraw/example/MobileFooter.d.ts +5 -0
- package/types/excalidraw/example/index.d.ts +1 -0
- package/types/excalidraw/example/initialData.d.ts +290 -0
- package/types/excalidraw/example/sidebar/ExampleSidebar.d.ts +4 -0
- package/types/excalidraw/frame.d.ts +11 -11
- package/types/excalidraw/history.d.ts +1 -1
- package/types/excalidraw/scene/Scene.d.ts +2 -7
- package/types/excalidraw/scene/scrollbars.d.ts +3 -2
- package/types/excalidraw/scene/selection.d.ts +3 -3
- package/types/excalidraw/snapping.d.ts +7 -7
- package/types/excalidraw/types.d.ts +5 -3
- package/types/excalidraw/vite.config.d.mts +2 -0
- package/types/utils/index.d.ts +1 -0
|
@@ -141,7 +141,7 @@ export declare const actionChangeProjectName: {
|
|
|
141
141
|
data: import("../charts").Spreadsheet;
|
|
142
142
|
};
|
|
143
143
|
pendingImageElementId: string | null;
|
|
144
|
-
showHyperlinkPopup: false | "
|
|
144
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
145
145
|
linkOpacity: number;
|
|
146
146
|
trayModeEnabled: boolean;
|
|
147
147
|
colorPalette?: {
|
|
@@ -186,7 +186,7 @@ export declare const actionChangeProjectName: {
|
|
|
186
186
|
};
|
|
187
187
|
commitToHistory: false;
|
|
188
188
|
};
|
|
189
|
-
PanelComponent: ({ appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
189
|
+
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
190
190
|
} & {
|
|
191
191
|
keyTest?: undefined;
|
|
192
192
|
};
|
|
@@ -256,7 +256,7 @@ export declare const actionChangeExportScale: {
|
|
|
256
256
|
scrollY: number;
|
|
257
257
|
cursorButton: "up" | "down";
|
|
258
258
|
scrolledOutside: boolean;
|
|
259
|
-
name: string;
|
|
259
|
+
name: string | null;
|
|
260
260
|
isResizing: boolean;
|
|
261
261
|
isRotating: boolean;
|
|
262
262
|
zoom: Readonly<{
|
|
@@ -334,7 +334,7 @@ export declare const actionChangeExportScale: {
|
|
|
334
334
|
data: import("../charts").Spreadsheet;
|
|
335
335
|
};
|
|
336
336
|
pendingImageElementId: string | null;
|
|
337
|
-
showHyperlinkPopup: false | "
|
|
337
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
338
338
|
linkOpacity: number;
|
|
339
339
|
trayModeEnabled: boolean;
|
|
340
340
|
colorPalette?: {
|
|
@@ -449,7 +449,7 @@ export declare const actionChangeExportBackground: {
|
|
|
449
449
|
scrollY: number;
|
|
450
450
|
cursorButton: "up" | "down";
|
|
451
451
|
scrolledOutside: boolean;
|
|
452
|
-
name: string;
|
|
452
|
+
name: string | null;
|
|
453
453
|
isResizing: boolean;
|
|
454
454
|
isRotating: boolean;
|
|
455
455
|
zoom: Readonly<{
|
|
@@ -527,7 +527,7 @@ export declare const actionChangeExportBackground: {
|
|
|
527
527
|
data: import("../charts").Spreadsheet;
|
|
528
528
|
};
|
|
529
529
|
pendingImageElementId: string | null;
|
|
530
|
-
showHyperlinkPopup: false | "
|
|
530
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
531
531
|
linkOpacity: number;
|
|
532
532
|
trayModeEnabled: boolean;
|
|
533
533
|
colorPalette?: {
|
|
@@ -642,7 +642,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
642
642
|
scrollY: number;
|
|
643
643
|
cursorButton: "up" | "down";
|
|
644
644
|
scrolledOutside: boolean;
|
|
645
|
-
name: string;
|
|
645
|
+
name: string | null;
|
|
646
646
|
isResizing: boolean;
|
|
647
647
|
isRotating: boolean;
|
|
648
648
|
zoom: Readonly<{
|
|
@@ -720,7 +720,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
720
720
|
data: import("../charts").Spreadsheet;
|
|
721
721
|
};
|
|
722
722
|
pendingImageElementId: string | null;
|
|
723
|
-
showHyperlinkPopup: false | "
|
|
723
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
724
724
|
linkOpacity: number;
|
|
725
725
|
trayModeEnabled: boolean;
|
|
726
726
|
colorPalette?: {
|
|
@@ -840,7 +840,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
840
840
|
scrollY: number;
|
|
841
841
|
cursorButton: "up" | "down";
|
|
842
842
|
scrolledOutside: boolean;
|
|
843
|
-
name: string;
|
|
843
|
+
name: string | null;
|
|
844
844
|
isResizing: boolean;
|
|
845
845
|
isRotating: boolean;
|
|
846
846
|
zoom: Readonly<{
|
|
@@ -912,7 +912,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
912
912
|
data: import("../charts").Spreadsheet;
|
|
913
913
|
};
|
|
914
914
|
pendingImageElementId: string | null;
|
|
915
|
-
showHyperlinkPopup: false | "
|
|
915
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
916
916
|
linkOpacity: number;
|
|
917
917
|
trayModeEnabled: boolean;
|
|
918
918
|
colorPalette?: {
|
|
@@ -1035,7 +1035,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1035
1035
|
scrollY: number;
|
|
1036
1036
|
cursorButton: "up" | "down";
|
|
1037
1037
|
scrolledOutside: boolean;
|
|
1038
|
-
name: string;
|
|
1038
|
+
name: string | null;
|
|
1039
1039
|
isResizing: boolean;
|
|
1040
1040
|
isRotating: boolean;
|
|
1041
1041
|
zoom: Readonly<{
|
|
@@ -1097,7 +1097,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
1097
1097
|
data: import("../charts").Spreadsheet;
|
|
1098
1098
|
};
|
|
1099
1099
|
pendingImageElementId: string | null;
|
|
1100
|
-
showHyperlinkPopup: false | "
|
|
1100
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1101
1101
|
linkOpacity: number;
|
|
1102
1102
|
trayModeEnabled: boolean;
|
|
1103
1103
|
colorPalette?: {
|
|
@@ -1216,7 +1216,7 @@ export declare const actionLoadScene: {
|
|
|
1216
1216
|
scrollY: number;
|
|
1217
1217
|
cursorButton: "up" | "down";
|
|
1218
1218
|
scrolledOutside: boolean;
|
|
1219
|
-
name: string;
|
|
1219
|
+
name: string | null;
|
|
1220
1220
|
isResizing: boolean;
|
|
1221
1221
|
isRotating: boolean;
|
|
1222
1222
|
zoom: Readonly<{
|
|
@@ -1290,7 +1290,7 @@ export declare const actionLoadScene: {
|
|
|
1290
1290
|
data: import("../charts").Spreadsheet;
|
|
1291
1291
|
};
|
|
1292
1292
|
pendingImageElementId: string | null;
|
|
1293
|
-
showHyperlinkPopup: false | "
|
|
1293
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1294
1294
|
linkOpacity: number;
|
|
1295
1295
|
trayModeEnabled: boolean;
|
|
1296
1296
|
colorPalette?: {
|
|
@@ -1396,7 +1396,7 @@ export declare const actionLoadScene: {
|
|
|
1396
1396
|
scrollY: number;
|
|
1397
1397
|
cursorButton: "up" | "down";
|
|
1398
1398
|
scrolledOutside: boolean;
|
|
1399
|
-
name: string;
|
|
1399
|
+
name: string | null;
|
|
1400
1400
|
isResizing: boolean;
|
|
1401
1401
|
isRotating: boolean;
|
|
1402
1402
|
zoom: Readonly<{
|
|
@@ -1474,7 +1474,7 @@ export declare const actionLoadScene: {
|
|
|
1474
1474
|
data: import("../charts").Spreadsheet;
|
|
1475
1475
|
};
|
|
1476
1476
|
pendingImageElementId: string | null;
|
|
1477
|
-
showHyperlinkPopup: false | "
|
|
1477
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1478
1478
|
linkOpacity: number;
|
|
1479
1479
|
trayModeEnabled: boolean;
|
|
1480
1480
|
colorPalette?: {
|
|
@@ -1590,7 +1590,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1590
1590
|
scrollY: number;
|
|
1591
1591
|
cursorButton: "up" | "down";
|
|
1592
1592
|
scrolledOutside: boolean;
|
|
1593
|
-
name: string;
|
|
1593
|
+
name: string | null;
|
|
1594
1594
|
isResizing: boolean;
|
|
1595
1595
|
isRotating: boolean;
|
|
1596
1596
|
zoom: Readonly<{
|
|
@@ -1668,7 +1668,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1668
1668
|
data: import("../charts").Spreadsheet;
|
|
1669
1669
|
};
|
|
1670
1670
|
pendingImageElementId: string | null;
|
|
1671
|
-
showHyperlinkPopup: false | "
|
|
1671
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1672
1672
|
linkOpacity: number;
|
|
1673
1673
|
trayModeEnabled: boolean;
|
|
1674
1674
|
colorPalette?: {
|
|
@@ -64,7 +64,7 @@ export declare const actionFinalize: {
|
|
|
64
64
|
scrollX: number;
|
|
65
65
|
scrollY: number;
|
|
66
66
|
scrolledOutside: boolean;
|
|
67
|
-
name: string;
|
|
67
|
+
name: string | null;
|
|
68
68
|
isResizing: boolean;
|
|
69
69
|
isRotating: boolean;
|
|
70
70
|
zoom: Readonly<{
|
|
@@ -142,7 +142,7 @@ export declare const actionFinalize: {
|
|
|
142
142
|
data: import("../charts").Spreadsheet;
|
|
143
143
|
};
|
|
144
144
|
pendingImageElementId: string | null;
|
|
145
|
-
showHyperlinkPopup: false | "
|
|
145
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
146
146
|
linkOpacity: number;
|
|
147
147
|
trayModeEnabled: boolean;
|
|
148
148
|
colorPalette?: {
|
|
@@ -249,7 +249,7 @@ export declare const actionFinalize: {
|
|
|
249
249
|
scrollX: number;
|
|
250
250
|
scrollY: number;
|
|
251
251
|
scrolledOutside: boolean;
|
|
252
|
-
name: string;
|
|
252
|
+
name: string | null;
|
|
253
253
|
isResizing: boolean;
|
|
254
254
|
isRotating: boolean;
|
|
255
255
|
zoom: Readonly<{
|
|
@@ -323,7 +323,7 @@ export declare const actionFinalize: {
|
|
|
323
323
|
shown: true;
|
|
324
324
|
data: import("../charts").Spreadsheet;
|
|
325
325
|
};
|
|
326
|
-
showHyperlinkPopup: false | "
|
|
326
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
327
327
|
linkOpacity: number;
|
|
328
328
|
trayModeEnabled: boolean;
|
|
329
329
|
colorPalette?: {
|
|
@@ -84,7 +84,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
84
84
|
scrollY: number;
|
|
85
85
|
cursorButton: "up" | "down";
|
|
86
86
|
scrolledOutside: boolean;
|
|
87
|
-
name: string;
|
|
87
|
+
name: string | null;
|
|
88
88
|
isResizing: boolean;
|
|
89
89
|
isRotating: boolean;
|
|
90
90
|
zoom: Readonly<{
|
|
@@ -159,7 +159,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
159
159
|
data: import("../charts").Spreadsheet;
|
|
160
160
|
};
|
|
161
161
|
pendingImageElementId: string | null;
|
|
162
|
-
showHyperlinkPopup: false | "
|
|
162
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
163
163
|
linkOpacity: number;
|
|
164
164
|
trayModeEnabled: boolean;
|
|
165
165
|
colorPalette?: {
|
|
@@ -280,7 +280,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
280
280
|
scrollY: number;
|
|
281
281
|
cursorButton: "up" | "down";
|
|
282
282
|
scrolledOutside: boolean;
|
|
283
|
-
name: string;
|
|
283
|
+
name: string | null;
|
|
284
284
|
isResizing: boolean;
|
|
285
285
|
isRotating: boolean;
|
|
286
286
|
zoom: Readonly<{
|
|
@@ -358,7 +358,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
358
358
|
data: import("../charts").Spreadsheet;
|
|
359
359
|
};
|
|
360
360
|
pendingImageElementId: string | null;
|
|
361
|
-
showHyperlinkPopup: false | "
|
|
361
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
362
362
|
linkOpacity: number;
|
|
363
363
|
trayModeEnabled: boolean;
|
|
364
364
|
colorPalette?: {
|
|
@@ -474,7 +474,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
474
474
|
scrollY: number;
|
|
475
475
|
cursorButton: "up" | "down";
|
|
476
476
|
scrolledOutside: boolean;
|
|
477
|
-
name: string;
|
|
477
|
+
name: string | null;
|
|
478
478
|
isResizing: boolean;
|
|
479
479
|
isRotating: boolean;
|
|
480
480
|
zoom: Readonly<{
|
|
@@ -552,7 +552,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
552
552
|
data: import("../charts").Spreadsheet;
|
|
553
553
|
};
|
|
554
554
|
pendingImageElementId: string | null;
|
|
555
|
-
showHyperlinkPopup: false | "
|
|
555
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
556
556
|
linkOpacity: number;
|
|
557
557
|
trayModeEnabled: boolean;
|
|
558
558
|
colorPalette?: {
|
|
@@ -76,7 +76,7 @@ export declare const actionGroup: {
|
|
|
76
76
|
scrollY: number;
|
|
77
77
|
cursorButton: "up" | "down";
|
|
78
78
|
scrolledOutside: boolean;
|
|
79
|
-
name: string;
|
|
79
|
+
name: string | null;
|
|
80
80
|
isResizing: boolean;
|
|
81
81
|
isRotating: boolean;
|
|
82
82
|
zoom: Readonly<{
|
|
@@ -147,7 +147,7 @@ export declare const actionGroup: {
|
|
|
147
147
|
data: import("../charts").Spreadsheet;
|
|
148
148
|
};
|
|
149
149
|
pendingImageElementId: string | null;
|
|
150
|
-
showHyperlinkPopup: false | "
|
|
150
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
151
151
|
linkOpacity: number;
|
|
152
152
|
trayModeEnabled: boolean;
|
|
153
153
|
colorPalette?: {
|
|
@@ -276,7 +276,7 @@ export declare const actionUngroup: {
|
|
|
276
276
|
scrollY: number;
|
|
277
277
|
cursorButton: "up" | "down";
|
|
278
278
|
scrolledOutside: boolean;
|
|
279
|
-
name: string;
|
|
279
|
+
name: string | null;
|
|
280
280
|
isResizing: boolean;
|
|
281
281
|
isRotating: boolean;
|
|
282
282
|
zoom: Readonly<{
|
|
@@ -347,7 +347,7 @@ export declare const actionUngroup: {
|
|
|
347
347
|
data: import("../charts").Spreadsheet;
|
|
348
348
|
};
|
|
349
349
|
pendingImageElementId: string | null;
|
|
350
|
-
showHyperlinkPopup: false | "
|
|
350
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
351
351
|
linkOpacity: number;
|
|
352
352
|
trayModeEnabled: boolean;
|
|
353
353
|
colorPalette?: {
|
|
@@ -66,7 +66,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
66
66
|
scrollY: number;
|
|
67
67
|
cursorButton: "up" | "down";
|
|
68
68
|
scrolledOutside: boolean;
|
|
69
|
-
name: string;
|
|
69
|
+
name: string | null;
|
|
70
70
|
isResizing: boolean;
|
|
71
71
|
isRotating: boolean;
|
|
72
72
|
zoom: Readonly<{
|
|
@@ -144,7 +144,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
144
144
|
data: import("../charts").Spreadsheet;
|
|
145
145
|
};
|
|
146
146
|
pendingImageElementId: string | null;
|
|
147
|
-
showHyperlinkPopup: false | "
|
|
147
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
148
148
|
linkOpacity: number;
|
|
149
149
|
trayModeEnabled: boolean;
|
|
150
150
|
colorPalette?: {
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
export declare const actionLink: {
|
|
2
|
+
name: "hyperlink";
|
|
3
|
+
perform: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
4
|
+
elements: readonly import("../element/types").ExcalidrawElement[];
|
|
5
|
+
appState: {
|
|
6
|
+
showHyperlinkPopup: "editor";
|
|
7
|
+
openMenu: null;
|
|
8
|
+
contextMenu: {
|
|
9
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
10
|
+
top: number;
|
|
11
|
+
left: number;
|
|
12
|
+
} | null;
|
|
13
|
+
showWelcomeScreen: boolean;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
errorMessage: import("react").ReactNode;
|
|
16
|
+
activeEmbeddable: {
|
|
17
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
18
|
+
state: "active" | "hover";
|
|
19
|
+
} | null;
|
|
20
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
21
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
23
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
24
|
+
isBindingEnabled: boolean;
|
|
25
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
26
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
27
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
28
|
+
frameRendering: {
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
name: boolean;
|
|
31
|
+
outline: boolean;
|
|
32
|
+
clip: boolean;
|
|
33
|
+
};
|
|
34
|
+
editingFrame: string | null;
|
|
35
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
36
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
37
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
38
|
+
activeTool: {
|
|
39
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
40
|
+
locked: boolean;
|
|
41
|
+
} & import("../types").ActiveTool;
|
|
42
|
+
penMode: boolean;
|
|
43
|
+
penDetected: boolean;
|
|
44
|
+
exportBackground: boolean;
|
|
45
|
+
exportEmbedScene: boolean;
|
|
46
|
+
exportWithDarkMode: boolean;
|
|
47
|
+
exportScale: number;
|
|
48
|
+
currentItemStrokeColor: string;
|
|
49
|
+
currentItemBackgroundColor: string;
|
|
50
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
51
|
+
currentItemStrokeWidth: number;
|
|
52
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
53
|
+
currentItemRoughness: number;
|
|
54
|
+
currentItemOpacity: number;
|
|
55
|
+
currentItemFontFamily: number;
|
|
56
|
+
currentItemFontSize: number;
|
|
57
|
+
currentItemTextAlign: string;
|
|
58
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
59
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
60
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
61
|
+
viewBackgroundColor: string;
|
|
62
|
+
scrollX: number;
|
|
63
|
+
scrollY: number;
|
|
64
|
+
cursorButton: "up" | "down";
|
|
65
|
+
scrolledOutside: boolean;
|
|
66
|
+
name: string | null;
|
|
67
|
+
isResizing: boolean;
|
|
68
|
+
isRotating: boolean;
|
|
69
|
+
zoom: Readonly<{
|
|
70
|
+
value: import("../types").NormalizedZoomValue;
|
|
71
|
+
}>;
|
|
72
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
73
|
+
openSidebar: {
|
|
74
|
+
name: string;
|
|
75
|
+
tab?: string | undefined;
|
|
76
|
+
} | null;
|
|
77
|
+
openDialog: {
|
|
78
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
79
|
+
} | {
|
|
80
|
+
name: "settings";
|
|
81
|
+
source: "settings" | "tool" | "generation";
|
|
82
|
+
tab: "text-to-diagram" | "diagram-to-code";
|
|
83
|
+
} | {
|
|
84
|
+
name: "ttd";
|
|
85
|
+
tab: "mermaid" | "text-to-diagram";
|
|
86
|
+
} | null;
|
|
87
|
+
defaultSidebarDockedPreference: boolean;
|
|
88
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
89
|
+
selectedElementIds: Readonly<{
|
|
90
|
+
[id: string]: true;
|
|
91
|
+
}>;
|
|
92
|
+
previousSelectedElementIds: {
|
|
93
|
+
[id: string]: true;
|
|
94
|
+
};
|
|
95
|
+
selectedElementsAreBeingDragged: boolean;
|
|
96
|
+
shouldCacheIgnoreZoom: boolean;
|
|
97
|
+
toast: {
|
|
98
|
+
message: string;
|
|
99
|
+
closable?: boolean | undefined;
|
|
100
|
+
duration?: number | undefined;
|
|
101
|
+
} | null;
|
|
102
|
+
zenModeEnabled: boolean;
|
|
103
|
+
theme: import("../element/types").Theme;
|
|
104
|
+
gridSize: number | null;
|
|
105
|
+
previousGridSize: number | null;
|
|
106
|
+
viewModeEnabled: boolean;
|
|
107
|
+
selectedGroupIds: {
|
|
108
|
+
[groupId: string]: boolean;
|
|
109
|
+
};
|
|
110
|
+
editingGroupId: string | null;
|
|
111
|
+
width: number;
|
|
112
|
+
height: number;
|
|
113
|
+
offsetTop: number;
|
|
114
|
+
offsetLeft: number;
|
|
115
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
116
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
117
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
118
|
+
button?: "up" | "down" | undefined;
|
|
119
|
+
selectedElementIds?: Readonly<{
|
|
120
|
+
[id: string]: true;
|
|
121
|
+
}> | undefined;
|
|
122
|
+
username?: string | null | undefined;
|
|
123
|
+
userState?: import("../types").UserIdleState | undefined;
|
|
124
|
+
color?: {
|
|
125
|
+
background: string;
|
|
126
|
+
stroke: string;
|
|
127
|
+
} | undefined;
|
|
128
|
+
avatarUrl?: string | undefined;
|
|
129
|
+
id?: string | undefined;
|
|
130
|
+
socketId?: import("../types").SocketId | undefined;
|
|
131
|
+
isCurrentUser?: boolean | undefined;
|
|
132
|
+
}>>;
|
|
133
|
+
showStats: boolean;
|
|
134
|
+
currentChartType: import("../element/types").ChartType;
|
|
135
|
+
pasteDialog: {
|
|
136
|
+
shown: false;
|
|
137
|
+
data: null;
|
|
138
|
+
} | {
|
|
139
|
+
shown: true;
|
|
140
|
+
data: import("../charts").Spreadsheet;
|
|
141
|
+
};
|
|
142
|
+
pendingImageElementId: string | null;
|
|
143
|
+
linkOpacity: number;
|
|
144
|
+
trayModeEnabled: boolean;
|
|
145
|
+
colorPalette?: {
|
|
146
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
147
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
148
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
149
|
+
topPicks: {
|
|
150
|
+
canvasBackground: [string, string, string, string, string];
|
|
151
|
+
elementStroke: [string, string, string, string, string];
|
|
152
|
+
elementBackground: [string, string, string, string, string];
|
|
153
|
+
};
|
|
154
|
+
} | undefined;
|
|
155
|
+
allowWheelZoom?: boolean | undefined;
|
|
156
|
+
allowPinchZoom?: boolean | undefined;
|
|
157
|
+
pinnedScripts?: string[] | undefined;
|
|
158
|
+
customPens?: any[] | undefined;
|
|
159
|
+
currentStrokeOptions?: any;
|
|
160
|
+
resetCustomPen?: any;
|
|
161
|
+
gridColor: {
|
|
162
|
+
Bold: string;
|
|
163
|
+
Regular: string;
|
|
164
|
+
MajorGridFrequency?: number | undefined;
|
|
165
|
+
};
|
|
166
|
+
dynamicStyle: {
|
|
167
|
+
[x: string]: string;
|
|
168
|
+
};
|
|
169
|
+
frameColor: {
|
|
170
|
+
stroke: string;
|
|
171
|
+
fill: string;
|
|
172
|
+
nameColor: string;
|
|
173
|
+
};
|
|
174
|
+
invertBindingBehaviour: boolean;
|
|
175
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
176
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
177
|
+
originSnapOffset: {
|
|
178
|
+
x: number;
|
|
179
|
+
y: number;
|
|
180
|
+
} | null;
|
|
181
|
+
objectsSnapModeEnabled: boolean;
|
|
182
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
183
|
+
followedBy: Set<import("../types").SocketId>;
|
|
184
|
+
};
|
|
185
|
+
commitToHistory: true;
|
|
186
|
+
};
|
|
187
|
+
trackEvent: {
|
|
188
|
+
category: "hyperlink";
|
|
189
|
+
action: string;
|
|
190
|
+
};
|
|
191
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
192
|
+
contextItemLabel: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.createEmbed" | "labels.link.create";
|
|
193
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
194
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
195
|
+
} & {
|
|
196
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
197
|
+
};
|
|
@@ -64,7 +64,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
64
64
|
scrollY: number;
|
|
65
65
|
cursorButton: "up" | "down";
|
|
66
66
|
scrolledOutside: boolean;
|
|
67
|
-
name: string;
|
|
67
|
+
name: string | null;
|
|
68
68
|
isResizing: boolean;
|
|
69
69
|
isRotating: boolean;
|
|
70
70
|
zoom: Readonly<{
|
|
@@ -141,7 +141,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
141
141
|
data: import("../charts").Spreadsheet;
|
|
142
142
|
};
|
|
143
143
|
pendingImageElementId: string | null;
|
|
144
|
-
showHyperlinkPopup: false | "
|
|
144
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
145
145
|
linkOpacity: number;
|
|
146
146
|
trayModeEnabled: boolean;
|
|
147
147
|
colorPalette?: {
|
|
@@ -256,7 +256,7 @@ export declare const actionToggleEditMenu: {
|
|
|
256
256
|
scrollY: number;
|
|
257
257
|
cursorButton: "up" | "down";
|
|
258
258
|
scrolledOutside: boolean;
|
|
259
|
-
name: string;
|
|
259
|
+
name: string | null;
|
|
260
260
|
isResizing: boolean;
|
|
261
261
|
isRotating: boolean;
|
|
262
262
|
zoom: Readonly<{
|
|
@@ -333,7 +333,7 @@ export declare const actionToggleEditMenu: {
|
|
|
333
333
|
data: import("../charts").Spreadsheet;
|
|
334
334
|
};
|
|
335
335
|
pendingImageElementId: string | null;
|
|
336
|
-
showHyperlinkPopup: false | "
|
|
336
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
337
337
|
linkOpacity: number;
|
|
338
338
|
trayModeEnabled: boolean;
|
|
339
339
|
colorPalette?: {
|
|
@@ -452,7 +452,7 @@ export declare const actionShortcuts: {
|
|
|
452
452
|
scrollY: number;
|
|
453
453
|
cursorButton: "up" | "down";
|
|
454
454
|
scrolledOutside: boolean;
|
|
455
|
-
name: string;
|
|
455
|
+
name: string | null;
|
|
456
456
|
isResizing: boolean;
|
|
457
457
|
isRotating: boolean;
|
|
458
458
|
zoom: Readonly<{
|
|
@@ -520,7 +520,7 @@ export declare const actionShortcuts: {
|
|
|
520
520
|
data: import("../charts").Spreadsheet;
|
|
521
521
|
};
|
|
522
522
|
pendingImageElementId: string | null;
|
|
523
|
-
showHyperlinkPopup: false | "
|
|
523
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
524
524
|
linkOpacity: number;
|
|
525
525
|
trayModeEnabled: boolean;
|
|
526
526
|
colorPalette?: {
|
|
@@ -66,7 +66,7 @@ export declare const actionGoToCollaborator: {
|
|
|
66
66
|
scrollY: number;
|
|
67
67
|
cursorButton: "up" | "down";
|
|
68
68
|
scrolledOutside: boolean;
|
|
69
|
-
name: string;
|
|
69
|
+
name: string | null;
|
|
70
70
|
isResizing: boolean;
|
|
71
71
|
isRotating: boolean;
|
|
72
72
|
zoom: Readonly<{
|
|
@@ -144,7 +144,7 @@ export declare const actionGoToCollaborator: {
|
|
|
144
144
|
data: import("../charts").Spreadsheet;
|
|
145
145
|
};
|
|
146
146
|
pendingImageElementId: string | null;
|
|
147
|
-
showHyperlinkPopup: false | "
|
|
147
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
148
148
|
linkOpacity: number;
|
|
149
149
|
trayModeEnabled: boolean;
|
|
150
150
|
colorPalette?: {
|
|
@@ -252,7 +252,7 @@ export declare const actionGoToCollaborator: {
|
|
|
252
252
|
scrollY: number;
|
|
253
253
|
cursorButton: "up" | "down";
|
|
254
254
|
scrolledOutside: boolean;
|
|
255
|
-
name: string;
|
|
255
|
+
name: string | null;
|
|
256
256
|
isResizing: boolean;
|
|
257
257
|
isRotating: boolean;
|
|
258
258
|
zoom: Readonly<{
|
|
@@ -329,7 +329,7 @@ export declare const actionGoToCollaborator: {
|
|
|
329
329
|
data: import("../charts").Spreadsheet;
|
|
330
330
|
};
|
|
331
331
|
pendingImageElementId: string | null;
|
|
332
|
-
showHyperlinkPopup: false | "
|
|
332
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
333
333
|
linkOpacity: number;
|
|
334
334
|
trayModeEnabled: boolean;
|
|
335
335
|
colorPalette?: {
|