@excalidraw/common 0.18.0-abeeaeb → 0.18.0-afa3a65
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 +91 -10
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/colors.d.ts +8 -0
- package/dist/types/common/src/constants.d.ts +44 -0
- package/dist/types/common/src/keys.d.ts +2 -0
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/comparisons.d.ts +5 -3
- package/dist/types/element/src/delta.d.ts +23 -1
- package/dist/types/element/src/flowchart.d.ts +5 -1
- package/dist/types/element/src/frame.d.ts +2 -2
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +10 -0
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +24 -2
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/stickyNote.d.ts +183 -0
- package/dist/types/element/src/textElement.d.ts +2 -1
- package/dist/types/element/src/transform.d.ts +25 -6
- package/dist/types/element/src/typeChecks.d.ts +3 -2
- package/dist/types/element/src/types.d.ts +35 -6
- package/dist/types/element/src/utils.d.ts +7 -3
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +8 -0
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +28 -0
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +8 -0
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +13 -1
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +8 -0
- package/dist/types/excalidraw/actions/actionExport.d.ts +8 -0
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +63 -1
- package/dist/types/excalidraw/actions/actionGroup.d.ts +8 -0
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +55 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionMenu.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionProperties.d.ts +18 -6
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionStyles.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -0
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/appState.d.ts +4 -0
- package/dist/types/excalidraw/components/App.arrowText.d.ts +40 -8
- package/dist/types/excalidraw/components/App.cursor.d.ts +8 -0
- package/dist/types/excalidraw/components/App.d.ts +92 -6
- package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/IconButton.d.ts +2 -0
- package/dist/types/excalidraw/components/Tools.d.ts +7 -2
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
- package/dist/types/excalidraw/components/icons.d.ts +1 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +2 -2
- package/dist/types/excalidraw/data/blob.d.ts +8 -0
- package/dist/types/excalidraw/data/json.d.ts +4 -0
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +50 -1
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +30 -2
- package/dist/types/excalidraw/viewport.d.ts +4 -0
- package/dist/types/math/src/curve.d.ts +19 -12
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/utils/src/export.d.ts +1 -0
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +1 -1
|
@@ -83,6 +83,8 @@ export declare const actionBindText: {
|
|
|
83
83
|
exportWithDarkMode: boolean;
|
|
84
84
|
exportScale: number;
|
|
85
85
|
currentItemStrokeColor: string;
|
|
86
|
+
currentItemStickynoteStrokeColor: string;
|
|
87
|
+
currentItemStickynoteBackgroundColor: string;
|
|
86
88
|
currentItemBackgroundColor: string;
|
|
87
89
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
88
90
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -189,6 +191,8 @@ export declare const actionBindText: {
|
|
|
189
191
|
elementStroke: readonly string[] | null;
|
|
190
192
|
elementBackground: readonly string[] | null;
|
|
191
193
|
bucketFill: readonly string[] | null;
|
|
194
|
+
stickyNoteStroke: readonly string[] | null;
|
|
195
|
+
stickyNoteBackground: readonly string[] | null;
|
|
192
196
|
};
|
|
193
197
|
};
|
|
194
198
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -263,6 +267,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
263
267
|
exportWithDarkMode: boolean;
|
|
264
268
|
exportScale: number;
|
|
265
269
|
currentItemStrokeColor: string;
|
|
270
|
+
currentItemStickynoteStrokeColor: string;
|
|
271
|
+
currentItemStickynoteBackgroundColor: string;
|
|
266
272
|
currentItemBackgroundColor: string;
|
|
267
273
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
268
274
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -369,6 +375,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
369
375
|
elementStroke: readonly string[] | null;
|
|
370
376
|
elementBackground: readonly string[] | null;
|
|
371
377
|
bucketFill: readonly string[] | null;
|
|
378
|
+
stickyNoteStroke: readonly string[] | null;
|
|
379
|
+
stickyNoteBackground: readonly string[] | null;
|
|
372
380
|
};
|
|
373
381
|
};
|
|
374
382
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -30,6 +30,8 @@ export declare const actionClearCanvas: {
|
|
|
30
30
|
elementStroke: readonly string[] | null;
|
|
31
31
|
elementBackground: readonly string[] | null;
|
|
32
32
|
bucketFill: readonly string[] | null;
|
|
33
|
+
stickyNoteStroke: readonly string[] | null;
|
|
34
|
+
stickyNoteBackground: readonly string[] | null;
|
|
33
35
|
};
|
|
34
36
|
activeTool: {
|
|
35
37
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -86,6 +88,8 @@ export declare const actionClearCanvas: {
|
|
|
86
88
|
exportWithDarkMode: boolean;
|
|
87
89
|
exportScale: number;
|
|
88
90
|
currentItemStrokeColor: string;
|
|
91
|
+
currentItemStickynoteStrokeColor: string;
|
|
92
|
+
currentItemStickynoteBackgroundColor: string;
|
|
89
93
|
currentItemBackgroundColor: string;
|
|
90
94
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
91
95
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -249,6 +253,8 @@ export declare const actionZoomIn: {
|
|
|
249
253
|
exportWithDarkMode: boolean;
|
|
250
254
|
exportScale: number;
|
|
251
255
|
currentItemStrokeColor: string;
|
|
256
|
+
currentItemStickynoteStrokeColor: string;
|
|
257
|
+
currentItemStickynoteBackgroundColor: string;
|
|
252
258
|
currentItemBackgroundColor: string;
|
|
253
259
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
254
260
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -355,6 +361,8 @@ export declare const actionZoomIn: {
|
|
|
355
361
|
elementStroke: readonly string[] | null;
|
|
356
362
|
elementBackground: readonly string[] | null;
|
|
357
363
|
bucketFill: readonly string[] | null;
|
|
364
|
+
stickyNoteStroke: readonly string[] | null;
|
|
365
|
+
stickyNoteBackground: readonly string[] | null;
|
|
358
366
|
};
|
|
359
367
|
};
|
|
360
368
|
captureUpdate: "EVENTUALLY";
|
|
@@ -433,6 +441,8 @@ export declare const actionZoomOut: {
|
|
|
433
441
|
exportWithDarkMode: boolean;
|
|
434
442
|
exportScale: number;
|
|
435
443
|
currentItemStrokeColor: string;
|
|
444
|
+
currentItemStickynoteStrokeColor: string;
|
|
445
|
+
currentItemStickynoteBackgroundColor: string;
|
|
436
446
|
currentItemBackgroundColor: string;
|
|
437
447
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
438
448
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -539,6 +549,8 @@ export declare const actionZoomOut: {
|
|
|
539
549
|
elementStroke: readonly string[] | null;
|
|
540
550
|
elementBackground: readonly string[] | null;
|
|
541
551
|
bucketFill: readonly string[] | null;
|
|
552
|
+
stickyNoteStroke: readonly string[] | null;
|
|
553
|
+
stickyNoteBackground: readonly string[] | null;
|
|
542
554
|
};
|
|
543
555
|
};
|
|
544
556
|
captureUpdate: "EVENTUALLY";
|
|
@@ -617,6 +629,8 @@ export declare const actionResetZoom: {
|
|
|
617
629
|
exportWithDarkMode: boolean;
|
|
618
630
|
exportScale: number;
|
|
619
631
|
currentItemStrokeColor: string;
|
|
632
|
+
currentItemStickynoteStrokeColor: string;
|
|
633
|
+
currentItemStickynoteBackgroundColor: string;
|
|
620
634
|
currentItemBackgroundColor: string;
|
|
621
635
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
622
636
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -723,6 +737,8 @@ export declare const actionResetZoom: {
|
|
|
723
737
|
elementStroke: readonly string[] | null;
|
|
724
738
|
elementBackground: readonly string[] | null;
|
|
725
739
|
bucketFill: readonly string[] | null;
|
|
740
|
+
stickyNoteStroke: readonly string[] | null;
|
|
741
|
+
stickyNoteBackground: readonly string[] | null;
|
|
726
742
|
};
|
|
727
743
|
};
|
|
728
744
|
captureUpdate: "EVENTUALLY";
|
|
@@ -801,6 +817,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
801
817
|
exportWithDarkMode: boolean;
|
|
802
818
|
exportScale: number;
|
|
803
819
|
currentItemStrokeColor: string;
|
|
820
|
+
currentItemStickynoteStrokeColor: string;
|
|
821
|
+
currentItemStickynoteBackgroundColor: string;
|
|
804
822
|
currentItemBackgroundColor: string;
|
|
805
823
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
806
824
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -907,6 +925,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
907
925
|
elementStroke: readonly string[] | null;
|
|
908
926
|
elementBackground: readonly string[] | null;
|
|
909
927
|
bucketFill: readonly string[] | null;
|
|
928
|
+
stickyNoteStroke: readonly string[] | null;
|
|
929
|
+
stickyNoteBackground: readonly string[] | null;
|
|
910
930
|
};
|
|
911
931
|
};
|
|
912
932
|
captureUpdate: "EVENTUALLY";
|
|
@@ -984,6 +1004,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
984
1004
|
exportWithDarkMode: boolean;
|
|
985
1005
|
exportScale: number;
|
|
986
1006
|
currentItemStrokeColor: string;
|
|
1007
|
+
currentItemStickynoteStrokeColor: string;
|
|
1008
|
+
currentItemStickynoteBackgroundColor: string;
|
|
987
1009
|
currentItemBackgroundColor: string;
|
|
988
1010
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
989
1011
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -1090,6 +1112,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1090
1112
|
elementStroke: readonly string[] | null;
|
|
1091
1113
|
elementBackground: readonly string[] | null;
|
|
1092
1114
|
bucketFill: readonly string[] | null;
|
|
1115
|
+
stickyNoteStroke: readonly string[] | null;
|
|
1116
|
+
stickyNoteBackground: readonly string[] | null;
|
|
1093
1117
|
};
|
|
1094
1118
|
};
|
|
1095
1119
|
captureUpdate: "EVENTUALLY";
|
|
@@ -1167,6 +1191,8 @@ export declare const actionZoomToFit: {
|
|
|
1167
1191
|
exportWithDarkMode: boolean;
|
|
1168
1192
|
exportScale: number;
|
|
1169
1193
|
currentItemStrokeColor: string;
|
|
1194
|
+
currentItemStickynoteStrokeColor: string;
|
|
1195
|
+
currentItemStickynoteBackgroundColor: string;
|
|
1170
1196
|
currentItemBackgroundColor: string;
|
|
1171
1197
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
1172
1198
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -1273,6 +1299,8 @@ export declare const actionZoomToFit: {
|
|
|
1273
1299
|
elementStroke: readonly string[] | null;
|
|
1274
1300
|
elementBackground: readonly string[] | null;
|
|
1275
1301
|
bucketFill: readonly string[] | null;
|
|
1302
|
+
stickyNoteStroke: readonly string[] | null;
|
|
1303
|
+
stickyNoteBackground: readonly string[] | null;
|
|
1276
1304
|
};
|
|
1277
1305
|
};
|
|
1278
1306
|
captureUpdate: "EVENTUALLY";
|
|
@@ -64,6 +64,8 @@ export declare const actionPaste: {
|
|
|
64
64
|
exportWithDarkMode: boolean;
|
|
65
65
|
exportScale: number;
|
|
66
66
|
currentItemStrokeColor: string;
|
|
67
|
+
currentItemStickynoteStrokeColor: string;
|
|
68
|
+
currentItemStickynoteBackgroundColor: string;
|
|
67
69
|
currentItemBackgroundColor: string;
|
|
68
70
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
69
71
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -173,6 +175,8 @@ export declare const actionPaste: {
|
|
|
173
175
|
elementStroke: readonly string[] | null;
|
|
174
176
|
elementBackground: readonly string[] | null;
|
|
175
177
|
bucketFill: readonly string[] | null;
|
|
178
|
+
stickyNoteStroke: readonly string[] | null;
|
|
179
|
+
stickyNoteBackground: readonly string[] | null;
|
|
176
180
|
};
|
|
177
181
|
};
|
|
178
182
|
} | {
|
|
@@ -282,6 +286,8 @@ export declare const actionCopyAsPng: {
|
|
|
282
286
|
exportWithDarkMode: boolean;
|
|
283
287
|
exportScale: number;
|
|
284
288
|
currentItemStrokeColor: string;
|
|
289
|
+
currentItemStickynoteStrokeColor: string;
|
|
290
|
+
currentItemStickynoteBackgroundColor: string;
|
|
285
291
|
currentItemBackgroundColor: string;
|
|
286
292
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
287
293
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -391,6 +397,8 @@ export declare const actionCopyAsPng: {
|
|
|
391
397
|
elementStroke: readonly string[] | null;
|
|
392
398
|
elementBackground: readonly string[] | null;
|
|
393
399
|
bucketFill: readonly string[] | null;
|
|
400
|
+
stickyNoteStroke: readonly string[] | null;
|
|
401
|
+
stickyNoteBackground: readonly string[] | null;
|
|
394
402
|
};
|
|
395
403
|
};
|
|
396
404
|
captureUpdate: "EVENTUALLY";
|
|
@@ -65,6 +65,8 @@ export declare const actionToggleCropEditor: {
|
|
|
65
65
|
exportWithDarkMode: boolean;
|
|
66
66
|
exportScale: number;
|
|
67
67
|
currentItemStrokeColor: string;
|
|
68
|
+
currentItemStickynoteStrokeColor: string;
|
|
69
|
+
currentItemStickynoteBackgroundColor: string;
|
|
68
70
|
currentItemBackgroundColor: string;
|
|
69
71
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
70
72
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -172,6 +174,8 @@ export declare const actionToggleCropEditor: {
|
|
|
172
174
|
elementStroke: readonly string[] | null;
|
|
173
175
|
elementBackground: readonly string[] | null;
|
|
174
176
|
bucketFill: readonly string[] | null;
|
|
177
|
+
stickyNoteStroke: readonly string[] | null;
|
|
178
|
+
stickyNoteBackground: readonly string[] | null;
|
|
175
179
|
};
|
|
176
180
|
};
|
|
177
181
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -66,6 +66,8 @@ export declare const actionDeleteSelected: {
|
|
|
66
66
|
exportWithDarkMode: boolean;
|
|
67
67
|
exportScale: number;
|
|
68
68
|
currentItemStrokeColor: string;
|
|
69
|
+
currentItemStickynoteStrokeColor: string;
|
|
70
|
+
currentItemStickynoteBackgroundColor: string;
|
|
69
71
|
currentItemBackgroundColor: string;
|
|
70
72
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
71
73
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -174,6 +176,8 @@ export declare const actionDeleteSelected: {
|
|
|
174
176
|
elementStroke: readonly string[] | null;
|
|
175
177
|
elementBackground: readonly string[] | null;
|
|
176
178
|
bucketFill: readonly string[] | null;
|
|
179
|
+
stickyNoteStroke: readonly string[] | null;
|
|
180
|
+
stickyNoteBackground: readonly string[] | null;
|
|
177
181
|
};
|
|
178
182
|
};
|
|
179
183
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -268,6 +272,8 @@ export declare const actionDeleteSelected: {
|
|
|
268
272
|
exportWithDarkMode: boolean;
|
|
269
273
|
exportScale: number;
|
|
270
274
|
currentItemStrokeColor: string;
|
|
275
|
+
currentItemStickynoteStrokeColor: string;
|
|
276
|
+
currentItemStickynoteBackgroundColor: string;
|
|
271
277
|
currentItemBackgroundColor: string;
|
|
272
278
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
273
279
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -376,11 +382,13 @@ export declare const actionDeleteSelected: {
|
|
|
376
382
|
elementStroke: readonly string[] | null;
|
|
377
383
|
elementBackground: readonly string[] | null;
|
|
378
384
|
bucketFill: readonly string[] | null;
|
|
385
|
+
stickyNoteStroke: readonly string[] | null;
|
|
386
|
+
stickyNoteBackground: readonly string[] | null;
|
|
379
387
|
};
|
|
380
388
|
};
|
|
381
389
|
captureUpdate: "IMMEDIATELY";
|
|
382
390
|
} | {
|
|
383
|
-
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
391
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
384
392
|
appState: {
|
|
385
393
|
activeTool: {
|
|
386
394
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -437,6 +445,8 @@ export declare const actionDeleteSelected: {
|
|
|
437
445
|
exportWithDarkMode: boolean;
|
|
438
446
|
exportScale: number;
|
|
439
447
|
currentItemStrokeColor: string;
|
|
448
|
+
currentItemStickynoteStrokeColor: string;
|
|
449
|
+
currentItemStickynoteBackgroundColor: string;
|
|
440
450
|
currentItemBackgroundColor: string;
|
|
441
451
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
442
452
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -538,6 +548,8 @@ export declare const actionDeleteSelected: {
|
|
|
538
548
|
elementStroke: readonly string[] | null;
|
|
539
549
|
elementBackground: readonly string[] | null;
|
|
540
550
|
bucketFill: readonly string[] | null;
|
|
551
|
+
stickyNoteStroke: readonly string[] | null;
|
|
552
|
+
stickyNoteBackground: readonly string[] | null;
|
|
541
553
|
};
|
|
542
554
|
};
|
|
543
555
|
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
@@ -55,6 +55,8 @@ export declare const actionDeselect: {
|
|
|
55
55
|
exportWithDarkMode: boolean;
|
|
56
56
|
exportScale: number;
|
|
57
57
|
currentItemStrokeColor: string;
|
|
58
|
+
currentItemStickynoteStrokeColor: string;
|
|
59
|
+
currentItemStickynoteBackgroundColor: string;
|
|
58
60
|
currentItemBackgroundColor: string;
|
|
59
61
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
60
62
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -155,6 +157,8 @@ export declare const actionDeselect: {
|
|
|
155
157
|
elementStroke: readonly string[] | null;
|
|
156
158
|
elementBackground: readonly string[] | null;
|
|
157
159
|
bucketFill: readonly string[] | null;
|
|
160
|
+
stickyNoteStroke: readonly string[] | null;
|
|
161
|
+
stickyNoteBackground: readonly string[] | null;
|
|
158
162
|
};
|
|
159
163
|
};
|
|
160
164
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -7,7 +7,7 @@ export declare const distributeHorizontally: {
|
|
|
7
7
|
};
|
|
8
8
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
9
9
|
appState: Readonly<AppState>;
|
|
10
|
-
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
10
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
11
11
|
captureUpdate: "IMMEDIATELY";
|
|
12
12
|
};
|
|
13
13
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -23,7 +23,7 @@ export declare const distributeVertically: {
|
|
|
23
23
|
};
|
|
24
24
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
25
25
|
appState: Readonly<AppState>;
|
|
26
|
-
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
26
|
+
elements: (import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawStickyNoteElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement)[];
|
|
27
27
|
captureUpdate: "IMMEDIATELY";
|
|
28
28
|
};
|
|
29
29
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -94,6 +94,8 @@ export declare const actionLinkToElement: {
|
|
|
94
94
|
exportWithDarkMode: boolean;
|
|
95
95
|
exportScale: number;
|
|
96
96
|
currentItemStrokeColor: string;
|
|
97
|
+
currentItemStickynoteStrokeColor: string;
|
|
98
|
+
currentItemStickynoteBackgroundColor: string;
|
|
97
99
|
currentItemBackgroundColor: string;
|
|
98
100
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
99
101
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -186,6 +188,8 @@ export declare const actionLinkToElement: {
|
|
|
186
188
|
elementStroke: readonly string[] | null;
|
|
187
189
|
elementBackground: readonly string[] | null;
|
|
188
190
|
bucketFill: readonly string[] | null;
|
|
191
|
+
stickyNoteStroke: readonly string[] | null;
|
|
192
|
+
stickyNoteBackground: readonly string[] | null;
|
|
189
193
|
};
|
|
190
194
|
};
|
|
191
195
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -76,6 +76,8 @@ export declare const actionToggleElementLock: {
|
|
|
76
76
|
exportWithDarkMode: boolean;
|
|
77
77
|
exportScale: number;
|
|
78
78
|
currentItemStrokeColor: string;
|
|
79
|
+
currentItemStickynoteStrokeColor: string;
|
|
80
|
+
currentItemStickynoteBackgroundColor: string;
|
|
79
81
|
currentItemBackgroundColor: string;
|
|
80
82
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
81
83
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -174,6 +176,8 @@ export declare const actionToggleElementLock: {
|
|
|
174
176
|
elementStroke: readonly string[] | null;
|
|
175
177
|
elementBackground: readonly string[] | null;
|
|
176
178
|
bucketFill: readonly string[] | null;
|
|
179
|
+
stickyNoteStroke: readonly string[] | null;
|
|
180
|
+
stickyNoteBackground: readonly string[] | null;
|
|
177
181
|
};
|
|
178
182
|
};
|
|
179
183
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -255,6 +259,8 @@ export declare const actionUnlockAllElements: {
|
|
|
255
259
|
exportWithDarkMode: boolean;
|
|
256
260
|
exportScale: number;
|
|
257
261
|
currentItemStrokeColor: string;
|
|
262
|
+
currentItemStickynoteStrokeColor: string;
|
|
263
|
+
currentItemStickynoteBackgroundColor: string;
|
|
258
264
|
currentItemBackgroundColor: string;
|
|
259
265
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
260
266
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -354,6 +360,8 @@ export declare const actionUnlockAllElements: {
|
|
|
354
360
|
elementStroke: readonly string[] | null;
|
|
355
361
|
elementBackground: readonly string[] | null;
|
|
356
362
|
bucketFill: readonly string[] | null;
|
|
363
|
+
stickyNoteStroke: readonly string[] | null;
|
|
364
|
+
stickyNoteBackground: readonly string[] | null;
|
|
357
365
|
};
|
|
358
366
|
};
|
|
359
367
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -144,6 +144,8 @@ export declare const actionLoadScene: {
|
|
|
144
144
|
exportWithDarkMode: boolean;
|
|
145
145
|
exportScale: number;
|
|
146
146
|
currentItemStrokeColor: string;
|
|
147
|
+
currentItemStickynoteStrokeColor: string;
|
|
148
|
+
currentItemStickynoteBackgroundColor: string;
|
|
147
149
|
currentItemBackgroundColor: string;
|
|
148
150
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
149
151
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -241,6 +243,8 @@ export declare const actionLoadScene: {
|
|
|
241
243
|
elementStroke: readonly string[] | null;
|
|
242
244
|
elementBackground: readonly string[] | null;
|
|
243
245
|
bucketFill: readonly string[] | null;
|
|
246
|
+
stickyNoteStroke: readonly string[] | null;
|
|
247
|
+
stickyNoteBackground: readonly string[] | null;
|
|
244
248
|
};
|
|
245
249
|
};
|
|
246
250
|
files: BinaryFiles;
|
|
@@ -302,6 +306,8 @@ export declare const actionLoadScene: {
|
|
|
302
306
|
exportWithDarkMode: boolean;
|
|
303
307
|
exportScale: number;
|
|
304
308
|
currentItemStrokeColor: string;
|
|
309
|
+
currentItemStickynoteStrokeColor: string;
|
|
310
|
+
currentItemStickynoteBackgroundColor: string;
|
|
305
311
|
currentItemBackgroundColor: string;
|
|
306
312
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
307
313
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -411,6 +417,8 @@ export declare const actionLoadScene: {
|
|
|
411
417
|
elementStroke: readonly string[] | null;
|
|
412
418
|
elementBackground: readonly string[] | null;
|
|
413
419
|
bucketFill: readonly string[] | null;
|
|
420
|
+
stickyNoteStroke: readonly string[] | null;
|
|
421
|
+
stickyNoteBackground: readonly string[] | null;
|
|
414
422
|
};
|
|
415
423
|
};
|
|
416
424
|
files: BinaryFiles;
|
|
@@ -6,6 +6,7 @@ type FormData = {
|
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
8
8
|
};
|
|
9
|
+
hitBoundText?: boolean;
|
|
9
10
|
};
|
|
10
11
|
export declare const actionFinalize: import("./types").Action<FormData> & {
|
|
11
12
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
@@ -64,6 +64,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
64
64
|
exportWithDarkMode: boolean;
|
|
65
65
|
exportScale: number;
|
|
66
66
|
currentItemStrokeColor: string;
|
|
67
|
+
currentItemStickynoteStrokeColor: string;
|
|
68
|
+
currentItemStickynoteBackgroundColor: string;
|
|
67
69
|
currentItemBackgroundColor: string;
|
|
68
70
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
69
71
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -170,6 +172,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
170
172
|
elementStroke: readonly string[] | null;
|
|
171
173
|
elementBackground: readonly string[] | null;
|
|
172
174
|
bucketFill: readonly string[] | null;
|
|
175
|
+
stickyNoteStroke: readonly string[] | null;
|
|
176
|
+
stickyNoteBackground: readonly string[] | null;
|
|
173
177
|
};
|
|
174
178
|
};
|
|
175
179
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -248,6 +252,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
248
252
|
exportWithDarkMode: boolean;
|
|
249
253
|
exportScale: number;
|
|
250
254
|
currentItemStrokeColor: string;
|
|
255
|
+
currentItemStickynoteStrokeColor: string;
|
|
256
|
+
currentItemStickynoteBackgroundColor: string;
|
|
251
257
|
currentItemBackgroundColor: string;
|
|
252
258
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
253
259
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -354,6 +360,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
354
360
|
elementStroke: readonly string[] | null;
|
|
355
361
|
elementBackground: readonly string[] | null;
|
|
356
362
|
bucketFill: readonly string[] | null;
|
|
363
|
+
stickyNoteStroke: readonly string[] | null;
|
|
364
|
+
stickyNoteBackground: readonly string[] | null;
|
|
357
365
|
};
|
|
358
366
|
};
|
|
359
367
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -430,6 +438,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
430
438
|
exportWithDarkMode: boolean;
|
|
431
439
|
exportScale: number;
|
|
432
440
|
currentItemStrokeColor: string;
|
|
441
|
+
currentItemStickynoteStrokeColor: string;
|
|
442
|
+
currentItemStickynoteBackgroundColor: string;
|
|
433
443
|
currentItemBackgroundColor: string;
|
|
434
444
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
435
445
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -539,6 +549,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
539
549
|
elementStroke: readonly string[] | null;
|
|
540
550
|
elementBackground: readonly string[] | null;
|
|
541
551
|
bucketFill: readonly string[] | null;
|
|
552
|
+
stickyNoteStroke: readonly string[] | null;
|
|
553
|
+
stickyNoteBackground: readonly string[] | null;
|
|
542
554
|
};
|
|
543
555
|
};
|
|
544
556
|
captureUpdate: "EVENTUALLY";
|
|
@@ -582,6 +594,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
582
594
|
frameId: string | null;
|
|
583
595
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
584
596
|
updated: number;
|
|
597
|
+
created: number | null;
|
|
585
598
|
link: string | null;
|
|
586
599
|
locked: boolean;
|
|
587
600
|
customData?: Record<string, any>;
|
|
@@ -621,6 +634,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
621
634
|
frameId: string | null;
|
|
622
635
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
623
636
|
updated: number;
|
|
637
|
+
created: number | null;
|
|
624
638
|
link: string | null;
|
|
625
639
|
locked: boolean;
|
|
626
640
|
customData?: Record<string, any>;
|
|
@@ -655,6 +669,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
655
669
|
frameId: string | null;
|
|
656
670
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
657
671
|
updated: number;
|
|
672
|
+
created: number | null;
|
|
658
673
|
link: string | null;
|
|
659
674
|
locked: boolean;
|
|
660
675
|
customData?: Record<string, any>;
|
|
@@ -689,6 +704,43 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
689
704
|
frameId: string | null;
|
|
690
705
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
691
706
|
updated: number;
|
|
707
|
+
created: number | null;
|
|
708
|
+
link: string | null;
|
|
709
|
+
locked: boolean;
|
|
710
|
+
customData?: Record<string, any>;
|
|
711
|
+
}> & Readonly<{
|
|
712
|
+
type: "stickynote";
|
|
713
|
+
baseHeight: number;
|
|
714
|
+
}> & {
|
|
715
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
716
|
+
}) | (Readonly<{
|
|
717
|
+
id: string;
|
|
718
|
+
x: number;
|
|
719
|
+
y: number;
|
|
720
|
+
strokeColor: string;
|
|
721
|
+
backgroundColor: string;
|
|
722
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
723
|
+
strokeWidth: number;
|
|
724
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
725
|
+
roundness: null | {
|
|
726
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
727
|
+
value?: number;
|
|
728
|
+
};
|
|
729
|
+
roughness: number;
|
|
730
|
+
opacity: number;
|
|
731
|
+
width: number;
|
|
732
|
+
height: number;
|
|
733
|
+
angle: import("@excalidraw/math").Radians;
|
|
734
|
+
seed: number;
|
|
735
|
+
version: number;
|
|
736
|
+
versionNonce: number;
|
|
737
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
738
|
+
isDeleted: boolean;
|
|
739
|
+
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
740
|
+
frameId: string | null;
|
|
741
|
+
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
742
|
+
updated: number;
|
|
743
|
+
created: number | null;
|
|
692
744
|
link: string | null;
|
|
693
745
|
locked: boolean;
|
|
694
746
|
customData?: Record<string, any>;
|
|
@@ -723,6 +775,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
723
775
|
frameId: string | null;
|
|
724
776
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
725
777
|
updated: number;
|
|
778
|
+
created: number | null;
|
|
726
779
|
link: string | null;
|
|
727
780
|
locked: boolean;
|
|
728
781
|
customData?: Record<string, any>;
|
|
@@ -757,6 +810,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
757
810
|
frameId: string | null;
|
|
758
811
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
759
812
|
updated: number;
|
|
813
|
+
created: number | null;
|
|
760
814
|
link: string | null;
|
|
761
815
|
locked: boolean;
|
|
762
816
|
customData?: Record<string, any>;
|
|
@@ -791,6 +845,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
791
845
|
frameId: string | null;
|
|
792
846
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
793
847
|
updated: number;
|
|
848
|
+
created: number | null;
|
|
794
849
|
link: string | null;
|
|
795
850
|
locked: boolean;
|
|
796
851
|
customData?: Record<string, any>;
|
|
@@ -828,6 +883,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
828
883
|
frameId: string | null;
|
|
829
884
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
830
885
|
updated: number;
|
|
886
|
+
created: number | null;
|
|
831
887
|
link: string | null;
|
|
832
888
|
locked: boolean;
|
|
833
889
|
customData?: Record<string, any>;
|
|
@@ -866,6 +922,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
866
922
|
frameId: string | null;
|
|
867
923
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
868
924
|
updated: number;
|
|
925
|
+
created: number | null;
|
|
869
926
|
link: string | null;
|
|
870
927
|
locked: boolean;
|
|
871
928
|
customData?: Record<string, any>;
|
|
@@ -901,6 +958,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
901
958
|
frameId: string | null;
|
|
902
959
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
903
960
|
updated: number;
|
|
961
|
+
created: number | null;
|
|
904
962
|
link: string | null;
|
|
905
963
|
locked: boolean;
|
|
906
964
|
customData?: Record<string, any>;
|
|
@@ -936,6 +994,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
936
994
|
frameId: string | null;
|
|
937
995
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
938
996
|
updated: number;
|
|
997
|
+
created: number | null;
|
|
939
998
|
link: string | null;
|
|
940
999
|
locked: boolean;
|
|
941
1000
|
customData?: Record<string, any>;
|
|
@@ -943,15 +1002,17 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
943
1002
|
type: "text";
|
|
944
1003
|
fontSize: number;
|
|
945
1004
|
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1005
|
+
baseFontSize: number | null;
|
|
946
1006
|
text: string;
|
|
947
1007
|
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
948
1008
|
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
949
|
-
containerId: import("@excalidraw/element/types").
|
|
1009
|
+
containerId: import("@excalidraw/element/types").ExcalidrawTextContainer["id"] | null;
|
|
950
1010
|
originalText: string;
|
|
951
1011
|
autoResize: boolean;
|
|
952
1012
|
lineHeight: number & {
|
|
953
1013
|
_brand: "unitlessLineHeight";
|
|
954
1014
|
};
|
|
1015
|
+
labelPosition?: number | null;
|
|
955
1016
|
}> & {
|
|
956
1017
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
957
1018
|
}) | (Readonly<{
|
|
@@ -981,6 +1042,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
981
1042
|
frameId: string | null;
|
|
982
1043
|
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
983
1044
|
updated: number;
|
|
1045
|
+
created: number | null;
|
|
984
1046
|
link: string | null;
|
|
985
1047
|
locked: boolean;
|
|
986
1048
|
customData?: Record<string, any>;
|
|
@@ -70,6 +70,8 @@ export declare const actionGroup: {
|
|
|
70
70
|
exportWithDarkMode: boolean;
|
|
71
71
|
exportScale: number;
|
|
72
72
|
currentItemStrokeColor: string;
|
|
73
|
+
currentItemStickynoteStrokeColor: string;
|
|
74
|
+
currentItemStickynoteBackgroundColor: string;
|
|
73
75
|
currentItemBackgroundColor: string;
|
|
74
76
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
75
77
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -172,6 +174,8 @@ export declare const actionGroup: {
|
|
|
172
174
|
elementStroke: readonly string[] | null;
|
|
173
175
|
elementBackground: readonly string[] | null;
|
|
174
176
|
bucketFill: readonly string[] | null;
|
|
177
|
+
stickyNoteStroke: readonly string[] | null;
|
|
178
|
+
stickyNoteBackground: readonly string[] | null;
|
|
175
179
|
};
|
|
176
180
|
};
|
|
177
181
|
elements: OrderedExcalidrawElement[];
|
|
@@ -253,6 +257,8 @@ export declare const actionUngroup: {
|
|
|
253
257
|
exportWithDarkMode: boolean;
|
|
254
258
|
exportScale: number;
|
|
255
259
|
currentItemStrokeColor: string;
|
|
260
|
+
currentItemStickynoteStrokeColor: string;
|
|
261
|
+
currentItemStickynoteBackgroundColor: string;
|
|
256
262
|
currentItemBackgroundColor: string;
|
|
257
263
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
258
264
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -355,6 +361,8 @@ export declare const actionUngroup: {
|
|
|
355
361
|
elementStroke: readonly string[] | null;
|
|
356
362
|
elementBackground: readonly string[] | null;
|
|
357
363
|
bucketFill: readonly string[] | null;
|
|
364
|
+
stickyNoteStroke: readonly string[] | null;
|
|
365
|
+
stickyNoteBackground: readonly string[] | null;
|
|
358
366
|
};
|
|
359
367
|
};
|
|
360
368
|
elements: OrderedExcalidrawElement[];
|