@excalidraw/excalidraw 0.16.1-4765f55 → 0.16.1-4c35eba
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 +51 -18
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +18 -0
- package/types/actions/actionBoundText.d.ts +12 -0
- package/types/actions/actionCanvas.d.ts +66 -0
- package/types/actions/actionClipboard.d.ts +30 -0
- package/types/actions/actionDeleteSelected.d.ts +18 -0
- package/types/actions/actionElementLock.d.ts +12 -0
- package/types/actions/actionExport.d.ts +54 -0
- package/types/actions/actionFinalize.d.ts +12 -0
- package/types/actions/actionFrame.d.ts +18 -0
- package/types/actions/actionGroup.d.ts +12 -0
- package/types/actions/actionLinearEditor.d.ts +6 -0
- package/types/actions/actionMenu.d.ts +18 -0
- package/types/actions/actionProperties.d.ts +78 -0
- package/types/actions/actionSelectAll.d.ts +6 -0
- package/types/actions/actionStyles.d.ts +6 -0
- package/types/actions/actionToggleGridMode.d.ts +6 -0
- package/types/actions/actionToggleObjectsSnapMode.d.ts +143 -0
- package/types/actions/actionToggleStats.d.ts +6 -0
- package/types/actions/actionToggleViewMode.d.ts +6 -0
- package/types/actions/actionToggleZenMode.d.ts +6 -0
- package/types/actions/index.d.ts +1 -0
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +1 -0
- package/types/components/App.d.ts +2 -0
- package/types/element/Hyperlink.d.ts +6 -0
- package/types/element/bounds.d.ts +4 -5
- package/types/element/dragElements.d.ts +11 -2
- package/types/element/embeddable.d.ts +6 -0
- package/types/element/linearElementEditor.d.ts +6 -0
- package/types/element/resizeElements.d.ts +2 -2
- package/types/keys.d.ts +1 -0
- package/types/math.d.ts +2 -0
- package/types/renderer/renderSnaps.d.ts +2 -0
- package/types/scene/selection.d.ts +1 -0
- package/types/snapping.d.ts +108 -0
- package/types/types.d.ts +16 -0
package/package.json
CHANGED
|
@@ -122,6 +122,12 @@ export declare const actionAddToLibrary: {
|
|
|
122
122
|
pendingImageElementId: string | null;
|
|
123
123
|
showHyperlinkPopup: false | "editor" | "info";
|
|
124
124
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
125
|
+
snapLines: import("../snapping").SnapLine[];
|
|
126
|
+
originSnapOffset: {
|
|
127
|
+
x: number;
|
|
128
|
+
y: number;
|
|
129
|
+
} | null;
|
|
130
|
+
objectsSnapModeEnabled: boolean;
|
|
125
131
|
};
|
|
126
132
|
} | {
|
|
127
133
|
commitToHistory: false;
|
|
@@ -244,6 +250,12 @@ export declare const actionAddToLibrary: {
|
|
|
244
250
|
pendingImageElementId: string | null;
|
|
245
251
|
showHyperlinkPopup: false | "editor" | "info";
|
|
246
252
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
253
|
+
snapLines: import("../snapping").SnapLine[];
|
|
254
|
+
originSnapOffset: {
|
|
255
|
+
x: number;
|
|
256
|
+
y: number;
|
|
257
|
+
} | null;
|
|
258
|
+
objectsSnapModeEnabled: boolean;
|
|
247
259
|
};
|
|
248
260
|
}> | {
|
|
249
261
|
commitToHistory: false;
|
|
@@ -366,6 +378,12 @@ export declare const actionAddToLibrary: {
|
|
|
366
378
|
pendingImageElementId: string | null;
|
|
367
379
|
showHyperlinkPopup: false | "editor" | "info";
|
|
368
380
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
381
|
+
snapLines: import("../snapping").SnapLine[];
|
|
382
|
+
originSnapOffset: {
|
|
383
|
+
x: number;
|
|
384
|
+
y: number;
|
|
385
|
+
} | null;
|
|
386
|
+
objectsSnapModeEnabled: boolean;
|
|
369
387
|
};
|
|
370
388
|
};
|
|
371
389
|
contextItemLabel: string;
|
|
@@ -144,6 +144,12 @@ export declare const actionBindText: {
|
|
|
144
144
|
pendingImageElementId: string | null;
|
|
145
145
|
showHyperlinkPopup: false | "editor" | "info";
|
|
146
146
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
147
|
+
snapLines: import("../snapping").SnapLine[];
|
|
148
|
+
originSnapOffset: {
|
|
149
|
+
x: number;
|
|
150
|
+
y: number;
|
|
151
|
+
} | null;
|
|
152
|
+
objectsSnapModeEnabled: boolean;
|
|
147
153
|
};
|
|
148
154
|
commitToHistory: true;
|
|
149
155
|
};
|
|
@@ -278,6 +284,12 @@ export declare const actionWrapTextInContainer: {
|
|
|
278
284
|
pendingImageElementId: string | null;
|
|
279
285
|
showHyperlinkPopup: false | "editor" | "info";
|
|
280
286
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
287
|
+
snapLines: import("../snapping").SnapLine[];
|
|
288
|
+
originSnapOffset: {
|
|
289
|
+
x: number;
|
|
290
|
+
y: number;
|
|
291
|
+
} | null;
|
|
292
|
+
objectsSnapModeEnabled: boolean;
|
|
281
293
|
};
|
|
282
294
|
commitToHistory: true;
|
|
283
295
|
};
|
|
@@ -136,6 +136,12 @@ export declare const actionClearCanvas: {
|
|
|
136
136
|
pendingImageElementId: string | null;
|
|
137
137
|
showHyperlinkPopup: false | "editor" | "info";
|
|
138
138
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
139
|
+
snapLines: import("../snapping").SnapLine[];
|
|
140
|
+
originSnapOffset: {
|
|
141
|
+
x: number;
|
|
142
|
+
y: number;
|
|
143
|
+
} | null;
|
|
144
|
+
objectsSnapModeEnabled: boolean;
|
|
139
145
|
};
|
|
140
146
|
commitToHistory: true;
|
|
141
147
|
};
|
|
@@ -268,6 +274,12 @@ export declare const actionZoomIn: {
|
|
|
268
274
|
pendingImageElementId: string | null;
|
|
269
275
|
showHyperlinkPopup: false | "editor" | "info";
|
|
270
276
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
277
|
+
snapLines: import("../snapping").SnapLine[];
|
|
278
|
+
originSnapOffset: {
|
|
279
|
+
x: number;
|
|
280
|
+
y: number;
|
|
281
|
+
} | null;
|
|
282
|
+
objectsSnapModeEnabled: boolean;
|
|
271
283
|
};
|
|
272
284
|
commitToHistory: false;
|
|
273
285
|
};
|
|
@@ -402,6 +414,12 @@ export declare const actionZoomOut: {
|
|
|
402
414
|
pendingImageElementId: string | null;
|
|
403
415
|
showHyperlinkPopup: false | "editor" | "info";
|
|
404
416
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
417
|
+
snapLines: import("../snapping").SnapLine[];
|
|
418
|
+
originSnapOffset: {
|
|
419
|
+
x: number;
|
|
420
|
+
y: number;
|
|
421
|
+
} | null;
|
|
422
|
+
objectsSnapModeEnabled: boolean;
|
|
405
423
|
};
|
|
406
424
|
commitToHistory: false;
|
|
407
425
|
};
|
|
@@ -536,6 +554,12 @@ export declare const actionResetZoom: {
|
|
|
536
554
|
pendingImageElementId: string | null;
|
|
537
555
|
showHyperlinkPopup: false | "editor" | "info";
|
|
538
556
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
557
|
+
snapLines: import("../snapping").SnapLine[];
|
|
558
|
+
originSnapOffset: {
|
|
559
|
+
x: number;
|
|
560
|
+
y: number;
|
|
561
|
+
} | null;
|
|
562
|
+
objectsSnapModeEnabled: boolean;
|
|
539
563
|
};
|
|
540
564
|
commitToHistory: false;
|
|
541
565
|
};
|
|
@@ -671,6 +695,12 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
671
695
|
pendingImageElementId: string | null;
|
|
672
696
|
showHyperlinkPopup: false | "editor" | "info";
|
|
673
697
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
698
|
+
snapLines: import("../snapping").SnapLine[];
|
|
699
|
+
originSnapOffset: {
|
|
700
|
+
x: number;
|
|
701
|
+
y: number;
|
|
702
|
+
} | null;
|
|
703
|
+
objectsSnapModeEnabled: boolean;
|
|
674
704
|
};
|
|
675
705
|
commitToHistory: boolean;
|
|
676
706
|
};
|
|
@@ -799,6 +829,12 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
799
829
|
pendingImageElementId: string | null;
|
|
800
830
|
showHyperlinkPopup: false | "editor" | "info";
|
|
801
831
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
832
|
+
snapLines: import("../snapping").SnapLine[];
|
|
833
|
+
originSnapOffset: {
|
|
834
|
+
x: number;
|
|
835
|
+
y: number;
|
|
836
|
+
} | null;
|
|
837
|
+
objectsSnapModeEnabled: boolean;
|
|
802
838
|
};
|
|
803
839
|
commitToHistory: boolean;
|
|
804
840
|
};
|
|
@@ -931,6 +967,12 @@ export declare const actionZoomToFitSelection: {
|
|
|
931
967
|
pendingImageElementId: string | null;
|
|
932
968
|
showHyperlinkPopup: false | "editor" | "info";
|
|
933
969
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
970
|
+
snapLines: import("../snapping").SnapLine[];
|
|
971
|
+
originSnapOffset: {
|
|
972
|
+
x: number;
|
|
973
|
+
y: number;
|
|
974
|
+
} | null;
|
|
975
|
+
objectsSnapModeEnabled: boolean;
|
|
934
976
|
};
|
|
935
977
|
commitToHistory: boolean;
|
|
936
978
|
};
|
|
@@ -1064,6 +1106,12 @@ export declare const actionZoomToFit: {
|
|
|
1064
1106
|
pendingImageElementId: string | null;
|
|
1065
1107
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1066
1108
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1109
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1110
|
+
originSnapOffset: {
|
|
1111
|
+
x: number;
|
|
1112
|
+
y: number;
|
|
1113
|
+
} | null;
|
|
1114
|
+
objectsSnapModeEnabled: boolean;
|
|
1067
1115
|
};
|
|
1068
1116
|
commitToHistory: boolean;
|
|
1069
1117
|
};
|
|
@@ -1197,6 +1245,12 @@ export declare const actionToggleTheme: {
|
|
|
1197
1245
|
pendingImageElementId: string | null;
|
|
1198
1246
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1199
1247
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1248
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1249
|
+
originSnapOffset: {
|
|
1250
|
+
x: number;
|
|
1251
|
+
y: number;
|
|
1252
|
+
} | null;
|
|
1253
|
+
objectsSnapModeEnabled: boolean;
|
|
1200
1254
|
};
|
|
1201
1255
|
commitToHistory: false;
|
|
1202
1256
|
};
|
|
@@ -1323,6 +1377,12 @@ export declare const actionToggleEraserTool: {
|
|
|
1323
1377
|
pendingImageElementId: string | null;
|
|
1324
1378
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1325
1379
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1380
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1381
|
+
originSnapOffset: {
|
|
1382
|
+
x: number;
|
|
1383
|
+
y: number;
|
|
1384
|
+
} | null;
|
|
1385
|
+
objectsSnapModeEnabled: boolean;
|
|
1326
1386
|
};
|
|
1327
1387
|
commitToHistory: true;
|
|
1328
1388
|
};
|
|
@@ -1448,6 +1508,12 @@ export declare const actionToggleHandTool: {
|
|
|
1448
1508
|
pendingImageElementId: string | null;
|
|
1449
1509
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1450
1510
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1511
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1512
|
+
originSnapOffset: {
|
|
1513
|
+
x: number;
|
|
1514
|
+
y: number;
|
|
1515
|
+
} | null;
|
|
1516
|
+
objectsSnapModeEnabled: boolean;
|
|
1451
1517
|
};
|
|
1452
1518
|
commitToHistory: true;
|
|
1453
1519
|
};
|
|
@@ -152,6 +152,12 @@ export declare const actionCut: {
|
|
|
152
152
|
pendingImageElementId: string | null;
|
|
153
153
|
showHyperlinkPopup: false | "editor" | "info";
|
|
154
154
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
155
|
+
snapLines: import("../snapping").SnapLine[];
|
|
156
|
+
originSnapOffset: {
|
|
157
|
+
x: number;
|
|
158
|
+
y: number;
|
|
159
|
+
} | null;
|
|
160
|
+
objectsSnapModeEnabled: boolean;
|
|
155
161
|
};
|
|
156
162
|
commitToHistory: false;
|
|
157
163
|
} | {
|
|
@@ -303,6 +309,12 @@ export declare const actionCut: {
|
|
|
303
309
|
pendingImageElementId: string | null;
|
|
304
310
|
showHyperlinkPopup: false | "editor" | "info";
|
|
305
311
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
312
|
+
snapLines: import("../snapping").SnapLine[];
|
|
313
|
+
originSnapOffset: {
|
|
314
|
+
x: number;
|
|
315
|
+
y: number;
|
|
316
|
+
} | null;
|
|
317
|
+
objectsSnapModeEnabled: boolean;
|
|
306
318
|
};
|
|
307
319
|
commitToHistory: true;
|
|
308
320
|
} | {
|
|
@@ -421,6 +433,12 @@ export declare const actionCut: {
|
|
|
421
433
|
pendingImageElementId: string | null;
|
|
422
434
|
showHyperlinkPopup: false | "editor" | "info";
|
|
423
435
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
436
|
+
snapLines: import("../snapping").SnapLine[];
|
|
437
|
+
originSnapOffset: {
|
|
438
|
+
x: number;
|
|
439
|
+
y: number;
|
|
440
|
+
} | null;
|
|
441
|
+
objectsSnapModeEnabled: boolean;
|
|
424
442
|
};
|
|
425
443
|
commitToHistory: boolean;
|
|
426
444
|
};
|
|
@@ -558,6 +576,12 @@ export declare const actionCopyAsSvg: {
|
|
|
558
576
|
pendingImageElementId: string | null;
|
|
559
577
|
showHyperlinkPopup: false | "editor" | "info";
|
|
560
578
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
579
|
+
snapLines: import("../snapping").SnapLine[];
|
|
580
|
+
originSnapOffset: {
|
|
581
|
+
x: number;
|
|
582
|
+
y: number;
|
|
583
|
+
} | null;
|
|
584
|
+
objectsSnapModeEnabled: boolean;
|
|
561
585
|
};
|
|
562
586
|
commitToHistory: false;
|
|
563
587
|
}>;
|
|
@@ -694,6 +718,12 @@ export declare const actionCopyAsPng: {
|
|
|
694
718
|
pendingImageElementId: string | null;
|
|
695
719
|
showHyperlinkPopup: false | "editor" | "info";
|
|
696
720
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
721
|
+
snapLines: import("../snapping").SnapLine[];
|
|
722
|
+
originSnapOffset: {
|
|
723
|
+
x: number;
|
|
724
|
+
y: number;
|
|
725
|
+
} | null;
|
|
726
|
+
objectsSnapModeEnabled: boolean;
|
|
697
727
|
};
|
|
698
728
|
commitToHistory: false;
|
|
699
729
|
}>;
|
|
@@ -128,6 +128,12 @@ export declare const actionDeleteSelected: {
|
|
|
128
128
|
pendingImageElementId: string | null;
|
|
129
129
|
showHyperlinkPopup: false | "editor" | "info";
|
|
130
130
|
selectedLinearElement: LinearElementEditor | null;
|
|
131
|
+
snapLines: import("../snapping").SnapLine[];
|
|
132
|
+
originSnapOffset: {
|
|
133
|
+
x: number;
|
|
134
|
+
y: number;
|
|
135
|
+
} | null;
|
|
136
|
+
objectsSnapModeEnabled: boolean;
|
|
131
137
|
};
|
|
132
138
|
commitToHistory: false;
|
|
133
139
|
} | {
|
|
@@ -279,6 +285,12 @@ export declare const actionDeleteSelected: {
|
|
|
279
285
|
pendingImageElementId: string | null;
|
|
280
286
|
showHyperlinkPopup: false | "editor" | "info";
|
|
281
287
|
selectedLinearElement: LinearElementEditor | null;
|
|
288
|
+
snapLines: import("../snapping").SnapLine[];
|
|
289
|
+
originSnapOffset: {
|
|
290
|
+
x: number;
|
|
291
|
+
y: number;
|
|
292
|
+
} | null;
|
|
293
|
+
objectsSnapModeEnabled: boolean;
|
|
282
294
|
};
|
|
283
295
|
commitToHistory: true;
|
|
284
296
|
} | {
|
|
@@ -397,6 +409,12 @@ export declare const actionDeleteSelected: {
|
|
|
397
409
|
pendingImageElementId: string | null;
|
|
398
410
|
showHyperlinkPopup: false | "editor" | "info";
|
|
399
411
|
selectedLinearElement: LinearElementEditor | null;
|
|
412
|
+
snapLines: import("../snapping").SnapLine[];
|
|
413
|
+
originSnapOffset: {
|
|
414
|
+
x: number;
|
|
415
|
+
y: number;
|
|
416
|
+
} | null;
|
|
417
|
+
objectsSnapModeEnabled: boolean;
|
|
400
418
|
};
|
|
401
419
|
commitToHistory: boolean;
|
|
402
420
|
};
|
|
@@ -126,6 +126,12 @@ export declare const actionToggleElementLock: {
|
|
|
126
126
|
};
|
|
127
127
|
pendingImageElementId: string | null;
|
|
128
128
|
showHyperlinkPopup: false | "editor" | "info";
|
|
129
|
+
snapLines: import("../snapping").SnapLine[];
|
|
130
|
+
originSnapOffset: {
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
} | null;
|
|
134
|
+
objectsSnapModeEnabled: boolean;
|
|
129
135
|
};
|
|
130
136
|
commitToHistory: true;
|
|
131
137
|
};
|
|
@@ -262,6 +268,12 @@ export declare const actionUnlockAllElements: {
|
|
|
262
268
|
pendingImageElementId: string | null;
|
|
263
269
|
showHyperlinkPopup: false | "editor" | "info";
|
|
264
270
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
271
|
+
snapLines: import("../snapping").SnapLine[];
|
|
272
|
+
originSnapOffset: {
|
|
273
|
+
x: number;
|
|
274
|
+
y: number;
|
|
275
|
+
} | null;
|
|
276
|
+
objectsSnapModeEnabled: boolean;
|
|
265
277
|
};
|
|
266
278
|
commitToHistory: true;
|
|
267
279
|
};
|
|
@@ -123,6 +123,12 @@ export declare const actionChangeProjectName: {
|
|
|
123
123
|
pendingImageElementId: string | null;
|
|
124
124
|
showHyperlinkPopup: false | "editor" | "info";
|
|
125
125
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
126
|
+
snapLines: import("../snapping").SnapLine[];
|
|
127
|
+
originSnapOffset: {
|
|
128
|
+
x: number;
|
|
129
|
+
y: number;
|
|
130
|
+
} | null;
|
|
131
|
+
objectsSnapModeEnabled: boolean;
|
|
126
132
|
};
|
|
127
133
|
commitToHistory: false;
|
|
128
134
|
};
|
|
@@ -256,6 +262,12 @@ export declare const actionChangeExportScale: {
|
|
|
256
262
|
pendingImageElementId: string | null;
|
|
257
263
|
showHyperlinkPopup: false | "editor" | "info";
|
|
258
264
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
265
|
+
snapLines: import("../snapping").SnapLine[];
|
|
266
|
+
originSnapOffset: {
|
|
267
|
+
x: number;
|
|
268
|
+
y: number;
|
|
269
|
+
} | null;
|
|
270
|
+
objectsSnapModeEnabled: boolean;
|
|
259
271
|
};
|
|
260
272
|
commitToHistory: false;
|
|
261
273
|
};
|
|
@@ -389,6 +401,12 @@ export declare const actionChangeExportBackground: {
|
|
|
389
401
|
pendingImageElementId: string | null;
|
|
390
402
|
showHyperlinkPopup: false | "editor" | "info";
|
|
391
403
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
404
|
+
snapLines: import("../snapping").SnapLine[];
|
|
405
|
+
originSnapOffset: {
|
|
406
|
+
x: number;
|
|
407
|
+
y: number;
|
|
408
|
+
} | null;
|
|
409
|
+
objectsSnapModeEnabled: boolean;
|
|
392
410
|
};
|
|
393
411
|
commitToHistory: false;
|
|
394
412
|
};
|
|
@@ -522,6 +540,12 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
522
540
|
pendingImageElementId: string | null;
|
|
523
541
|
showHyperlinkPopup: false | "editor" | "info";
|
|
524
542
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
543
|
+
snapLines: import("../snapping").SnapLine[];
|
|
544
|
+
originSnapOffset: {
|
|
545
|
+
x: number;
|
|
546
|
+
y: number;
|
|
547
|
+
} | null;
|
|
548
|
+
objectsSnapModeEnabled: boolean;
|
|
525
549
|
};
|
|
526
550
|
commitToHistory: false;
|
|
527
551
|
};
|
|
@@ -654,6 +678,12 @@ export declare const actionSaveToActiveFile: {
|
|
|
654
678
|
pendingImageElementId: string | null;
|
|
655
679
|
showHyperlinkPopup: false | "editor" | "info";
|
|
656
680
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
681
|
+
snapLines: import("../snapping").SnapLine[];
|
|
682
|
+
originSnapOffset: {
|
|
683
|
+
x: number;
|
|
684
|
+
y: number;
|
|
685
|
+
} | null;
|
|
686
|
+
objectsSnapModeEnabled: boolean;
|
|
657
687
|
};
|
|
658
688
|
} | {
|
|
659
689
|
commitToHistory: false;
|
|
@@ -790,6 +820,12 @@ export declare const actionSaveFileToDisk: {
|
|
|
790
820
|
pendingImageElementId: string | null;
|
|
791
821
|
showHyperlinkPopup: false | "editor" | "info";
|
|
792
822
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
823
|
+
snapLines: import("../snapping").SnapLine[];
|
|
824
|
+
originSnapOffset: {
|
|
825
|
+
x: number;
|
|
826
|
+
y: number;
|
|
827
|
+
} | null;
|
|
828
|
+
objectsSnapModeEnabled: boolean;
|
|
793
829
|
};
|
|
794
830
|
} | {
|
|
795
831
|
commitToHistory: false;
|
|
@@ -923,6 +959,12 @@ export declare const actionLoadScene: {
|
|
|
923
959
|
pendingImageElementId: string | null;
|
|
924
960
|
showHyperlinkPopup: false | "editor" | "info";
|
|
925
961
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
962
|
+
snapLines: import("../snapping").SnapLine[];
|
|
963
|
+
originSnapOffset: {
|
|
964
|
+
x: number;
|
|
965
|
+
y: number;
|
|
966
|
+
} | null;
|
|
967
|
+
objectsSnapModeEnabled: boolean;
|
|
926
968
|
};
|
|
927
969
|
files: import("../types").BinaryFiles;
|
|
928
970
|
commitToHistory: true;
|
|
@@ -1047,6 +1089,12 @@ export declare const actionLoadScene: {
|
|
|
1047
1089
|
pendingImageElementId: string | null;
|
|
1048
1090
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1049
1091
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1092
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1093
|
+
originSnapOffset: {
|
|
1094
|
+
x: number;
|
|
1095
|
+
y: number;
|
|
1096
|
+
} | null;
|
|
1097
|
+
objectsSnapModeEnabled: boolean;
|
|
1050
1098
|
};
|
|
1051
1099
|
files: import("../types").BinaryFiles;
|
|
1052
1100
|
commitToHistory: false;
|
|
@@ -1181,6 +1229,12 @@ export declare const actionExportWithDarkMode: {
|
|
|
1181
1229
|
pendingImageElementId: string | null;
|
|
1182
1230
|
showHyperlinkPopup: false | "editor" | "info";
|
|
1183
1231
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1232
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1233
|
+
originSnapOffset: {
|
|
1234
|
+
x: number;
|
|
1235
|
+
y: number;
|
|
1236
|
+
} | null;
|
|
1237
|
+
objectsSnapModeEnabled: boolean;
|
|
1184
1238
|
};
|
|
1185
1239
|
commitToHistory: false;
|
|
1186
1240
|
};
|
|
@@ -124,6 +124,12 @@ export declare const actionFinalize: {
|
|
|
124
124
|
pendingImageElementId: string | null;
|
|
125
125
|
showHyperlinkPopup: false | "editor" | "info";
|
|
126
126
|
selectedLinearElement: LinearElementEditor | null;
|
|
127
|
+
snapLines: import("../snapping").SnapLine[];
|
|
128
|
+
originSnapOffset: {
|
|
129
|
+
x: number;
|
|
130
|
+
y: number;
|
|
131
|
+
} | null;
|
|
132
|
+
objectsSnapModeEnabled: boolean;
|
|
127
133
|
};
|
|
128
134
|
commitToHistory: true;
|
|
129
135
|
} | {
|
|
@@ -244,6 +250,12 @@ export declare const actionFinalize: {
|
|
|
244
250
|
data: import("../charts").Spreadsheet;
|
|
245
251
|
};
|
|
246
252
|
showHyperlinkPopup: false | "editor" | "info";
|
|
253
|
+
snapLines: import("../snapping").SnapLine[];
|
|
254
|
+
originSnapOffset: {
|
|
255
|
+
x: number;
|
|
256
|
+
y: number;
|
|
257
|
+
} | null;
|
|
258
|
+
objectsSnapModeEnabled: boolean;
|
|
247
259
|
};
|
|
248
260
|
commitToHistory: boolean;
|
|
249
261
|
};
|
|
@@ -141,6 +141,12 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
141
141
|
pendingImageElementId: string | null;
|
|
142
142
|
showHyperlinkPopup: false | "editor" | "info";
|
|
143
143
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
144
|
+
snapLines: import("../snapping").SnapLine[];
|
|
145
|
+
originSnapOffset: {
|
|
146
|
+
x: number;
|
|
147
|
+
y: number;
|
|
148
|
+
} | null;
|
|
149
|
+
objectsSnapModeEnabled: boolean;
|
|
144
150
|
};
|
|
145
151
|
commitToHistory: true;
|
|
146
152
|
} | {
|
|
@@ -280,6 +286,12 @@ export declare const actionupdateFrameRendering: {
|
|
|
280
286
|
pendingImageElementId: string | null;
|
|
281
287
|
showHyperlinkPopup: false | "editor" | "info";
|
|
282
288
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
289
|
+
snapLines: import("../snapping").SnapLine[];
|
|
290
|
+
originSnapOffset: {
|
|
291
|
+
x: number;
|
|
292
|
+
y: number;
|
|
293
|
+
} | null;
|
|
294
|
+
objectsSnapModeEnabled: boolean;
|
|
283
295
|
};
|
|
284
296
|
commitToHistory: false;
|
|
285
297
|
};
|
|
@@ -414,6 +426,12 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
414
426
|
pendingImageElementId: string | null;
|
|
415
427
|
showHyperlinkPopup: false | "editor" | "info";
|
|
416
428
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
429
|
+
snapLines: import("../snapping").SnapLine[];
|
|
430
|
+
originSnapOffset: {
|
|
431
|
+
x: number;
|
|
432
|
+
y: number;
|
|
433
|
+
} | null;
|
|
434
|
+
objectsSnapModeEnabled: boolean;
|
|
417
435
|
};
|
|
418
436
|
commitToHistory: false;
|
|
419
437
|
};
|
|
@@ -129,6 +129,12 @@ export declare const actionGroup: {
|
|
|
129
129
|
pendingImageElementId: string | null;
|
|
130
130
|
showHyperlinkPopup: false | "editor" | "info";
|
|
131
131
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
132
|
+
snapLines: import("../snapping").SnapLine[];
|
|
133
|
+
originSnapOffset: {
|
|
134
|
+
x: number;
|
|
135
|
+
y: number;
|
|
136
|
+
} | null;
|
|
137
|
+
objectsSnapModeEnabled: boolean;
|
|
132
138
|
};
|
|
133
139
|
elements: ExcalidrawElement[];
|
|
134
140
|
commitToHistory: true;
|
|
@@ -269,6 +275,12 @@ export declare const actionUngroup: {
|
|
|
269
275
|
pendingImageElementId: string | null;
|
|
270
276
|
showHyperlinkPopup: false | "editor" | "info";
|
|
271
277
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
278
|
+
snapLines: import("../snapping").SnapLine[];
|
|
279
|
+
originSnapOffset: {
|
|
280
|
+
x: number;
|
|
281
|
+
y: number;
|
|
282
|
+
} | null;
|
|
283
|
+
objectsSnapModeEnabled: boolean;
|
|
272
284
|
};
|
|
273
285
|
elements: ExcalidrawElement[];
|
|
274
286
|
commitToHistory: true;
|
|
@@ -126,6 +126,12 @@ export declare const actionToggleLinearEditor: {
|
|
|
126
126
|
pendingImageElementId: string | null;
|
|
127
127
|
showHyperlinkPopup: false | "editor" | "info";
|
|
128
128
|
selectedLinearElement: LinearElementEditor | null;
|
|
129
|
+
snapLines: import("../snapping").SnapLine[];
|
|
130
|
+
originSnapOffset: {
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
} | null;
|
|
134
|
+
objectsSnapModeEnabled: boolean;
|
|
129
135
|
};
|
|
130
136
|
commitToHistory: false;
|
|
131
137
|
};
|
|
@@ -123,6 +123,12 @@ export declare const actionToggleCanvasMenu: {
|
|
|
123
123
|
pendingImageElementId: string | null;
|
|
124
124
|
showHyperlinkPopup: false | "editor" | "info";
|
|
125
125
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
126
|
+
snapLines: import("../snapping").SnapLine[];
|
|
127
|
+
originSnapOffset: {
|
|
128
|
+
x: number;
|
|
129
|
+
y: number;
|
|
130
|
+
} | null;
|
|
131
|
+
objectsSnapModeEnabled: boolean;
|
|
126
132
|
};
|
|
127
133
|
commitToHistory: false;
|
|
128
134
|
};
|
|
@@ -255,6 +261,12 @@ export declare const actionToggleEditMenu: {
|
|
|
255
261
|
pendingImageElementId: string | null;
|
|
256
262
|
showHyperlinkPopup: false | "editor" | "info";
|
|
257
263
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
264
|
+
snapLines: import("../snapping").SnapLine[];
|
|
265
|
+
originSnapOffset: {
|
|
266
|
+
x: number;
|
|
267
|
+
y: number;
|
|
268
|
+
} | null;
|
|
269
|
+
objectsSnapModeEnabled: boolean;
|
|
258
270
|
};
|
|
259
271
|
commitToHistory: false;
|
|
260
272
|
};
|
|
@@ -402,6 +414,12 @@ export declare const actionShortcuts: {
|
|
|
402
414
|
pendingImageElementId: string | null;
|
|
403
415
|
showHyperlinkPopup: false | "editor" | "info";
|
|
404
416
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
417
|
+
snapLines: import("../snapping").SnapLine[];
|
|
418
|
+
originSnapOffset: {
|
|
419
|
+
x: number;
|
|
420
|
+
y: number;
|
|
421
|
+
} | null;
|
|
422
|
+
objectsSnapModeEnabled: boolean;
|
|
405
423
|
};
|
|
406
424
|
commitToHistory: false;
|
|
407
425
|
};
|