@myoc/excalidraw 0.19.518 → 0.19.520
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/CHANGELOG.md +166 -0
- package/dist/dev/{chunk-36IX6I7U.js → chunk-FQHULQ5P.js} +86 -31
- package/dist/dev/chunk-FQHULQ5P.js.map +7 -0
- package/dist/dev/{chunk-ZGRXNVW4.js → chunk-IU2VFRFU.js} +4 -1
- package/dist/dev/chunk-IU2VFRFU.js.map +7 -0
- package/dist/dev/{chunk-2ZDXTNY7.js → chunk-SJJUXTTF.js} +2 -2
- package/dist/dev/data/{image-VHQDH63K.js → image-X3JCQEUX.js} +3 -3
- package/dist/dev/index.css +14 -3
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +1853 -981
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-RQFAMS2U.js → en-25BPHB4T.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-VW4XDTQW.js → chunk-3QXZ5NQO.js} +1 -1
- package/dist/prod/{chunk-VHQT4IVX.js → chunk-3UXKIWVY.js} +2 -2
- package/dist/prod/chunk-YJSNILE6.js +4 -0
- package/dist/prod/data/image-OBEPGJLJ.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +20 -20
- package/dist/prod/locales/{en-6UCVDQQ7.js → en-AH5BYWXT.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/colors.d.ts +1 -1
- package/dist/types/common/src/constants.d.ts +8 -5
- package/dist/types/common/src/utils.d.ts +0 -42
- package/dist/types/element/src/bounds.d.ts +18 -1
- package/dist/types/element/src/comparisons.d.ts +1 -0
- package/dist/types/element/src/image.d.ts +5 -0
- package/dist/types/element/src/newElement.d.ts +2 -0
- package/dist/types/element/src/types.d.ts +8 -0
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +6 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +33 -11
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +6 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +9 -3
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +6 -2
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionExport.d.ts +6 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +14 -4
- package/dist/types/excalidraw/actions/actionGroup.d.ts +6 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +5 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +18 -5
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +3 -1
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +2 -1
- package/dist/types/excalidraw/components/App.d.ts +13 -28
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +2 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +7 -4
- package/dist/types/excalidraw/data/blob.d.ts +3 -1
- package/dist/types/excalidraw/data/json.d.ts +3 -1
- package/dist/types/excalidraw/index.d.ts +3 -1
- package/dist/types/excalidraw/renderer/animation.d.ts +1 -0
- package/dist/types/excalidraw/scene/Renderer.d.ts +2 -0
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +1 -0
- package/dist/types/excalidraw/scroll.d.ts +46 -0
- package/dist/types/excalidraw/types.d.ts +24 -3
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +35 -0
- package/dist/types/utils/src/index.d.ts +1 -2
- package/package.json +4 -4
- package/dist/dev/chunk-36IX6I7U.js.map +0 -7
- package/dist/dev/chunk-ZGRXNVW4.js.map +0 -7
- package/dist/prod/chunk-B67RJXF2.js +0 -4
- package/dist/prod/data/image-YRR6RGIN.js +0 -1
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
- /package/dist/dev/{chunk-2ZDXTNY7.js.map → chunk-SJJUXTTF.js.map} +0 -0
- /package/dist/dev/data/{image-VHQDH63K.js.map → image-X3JCQEUX.js.map} +0 -0
- /package/dist/dev/locales/{en-RQFAMS2U.js.map → en-25BPHB4T.js.map} +0 -0
|
@@ -86,9 +86,10 @@ export declare const actionToggleElementLock: {
|
|
|
86
86
|
currentItemStrokeColor: string;
|
|
87
87
|
currentItemBackgroundColor: string;
|
|
88
88
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
89
|
-
|
|
89
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
90
90
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
91
91
|
currentItemRoughness: number;
|
|
92
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
92
93
|
currentItemOpacity: number;
|
|
93
94
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
94
95
|
currentItemFontSize: number;
|
|
@@ -146,6 +147,7 @@ export declare const actionToggleElementLock: {
|
|
|
146
147
|
gridStep: number;
|
|
147
148
|
gridModeEnabled: boolean;
|
|
148
149
|
viewModeEnabled: boolean;
|
|
150
|
+
viewModeOnly: boolean;
|
|
149
151
|
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
150
152
|
width: number;
|
|
151
153
|
height: number;
|
|
@@ -263,9 +265,10 @@ export declare const actionUnlockAllElements: {
|
|
|
263
265
|
currentItemStrokeColor: string;
|
|
264
266
|
currentItemBackgroundColor: string;
|
|
265
267
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
266
|
-
|
|
268
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
267
269
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
268
270
|
currentItemRoughness: number;
|
|
271
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
269
272
|
currentItemOpacity: number;
|
|
270
273
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
271
274
|
currentItemFontSize: number;
|
|
@@ -323,6 +326,7 @@ export declare const actionUnlockAllElements: {
|
|
|
323
326
|
gridStep: number;
|
|
324
327
|
gridModeEnabled: boolean;
|
|
325
328
|
viewModeEnabled: boolean;
|
|
329
|
+
viewModeOnly: boolean;
|
|
326
330
|
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
327
331
|
width: number;
|
|
328
332
|
height: number;
|
|
@@ -72,9 +72,10 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
72
72
|
currentItemStrokeColor: string;
|
|
73
73
|
currentItemBackgroundColor: string;
|
|
74
74
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
75
|
-
|
|
75
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
76
76
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
77
77
|
currentItemRoughness: number;
|
|
78
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
78
79
|
currentItemOpacity: number;
|
|
79
80
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
80
81
|
currentItemFontSize: number;
|
|
@@ -135,6 +136,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
135
136
|
gridStep: number;
|
|
136
137
|
gridModeEnabled: boolean;
|
|
137
138
|
viewModeEnabled: boolean;
|
|
139
|
+
viewModeOnly: boolean;
|
|
138
140
|
selectedGroupIds: {
|
|
139
141
|
[groupId: string]: boolean;
|
|
140
142
|
};
|
|
@@ -155,6 +155,7 @@ export declare const actionLoadScene: {
|
|
|
155
155
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
156
156
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
157
157
|
gridSize: number;
|
|
158
|
+
viewModeOnly: boolean;
|
|
158
159
|
gridModeEnabled: boolean;
|
|
159
160
|
objectsSnapModeEnabled: boolean;
|
|
160
161
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
@@ -196,9 +197,10 @@ export declare const actionLoadScene: {
|
|
|
196
197
|
currentItemStrokeColor: string;
|
|
197
198
|
currentItemBackgroundColor: string;
|
|
198
199
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
199
|
-
|
|
200
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
200
201
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
201
202
|
currentItemRoughness: number;
|
|
203
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
202
204
|
currentItemOpacity: number;
|
|
203
205
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
204
206
|
currentItemFontSize: number;
|
|
@@ -310,9 +312,10 @@ export declare const actionLoadScene: {
|
|
|
310
312
|
currentItemStrokeColor: string;
|
|
311
313
|
currentItemBackgroundColor: string;
|
|
312
314
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
313
|
-
|
|
315
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
314
316
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
315
317
|
currentItemRoughness: number;
|
|
318
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
316
319
|
currentItemOpacity: number;
|
|
317
320
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
318
321
|
currentItemFontSize: number;
|
|
@@ -373,6 +376,7 @@ export declare const actionLoadScene: {
|
|
|
373
376
|
gridStep: number;
|
|
374
377
|
gridModeEnabled: boolean;
|
|
375
378
|
viewModeEnabled: boolean;
|
|
379
|
+
viewModeOnly: boolean;
|
|
376
380
|
selectedGroupIds: {
|
|
377
381
|
[groupId: string]: boolean;
|
|
378
382
|
};
|
|
@@ -74,9 +74,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
74
74
|
currentItemStrokeColor: string;
|
|
75
75
|
currentItemBackgroundColor: string;
|
|
76
76
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
77
|
-
|
|
77
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
78
78
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
79
79
|
currentItemRoughness: number;
|
|
80
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
80
81
|
currentItemOpacity: number;
|
|
81
82
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
82
83
|
currentItemFontSize: number;
|
|
@@ -134,6 +135,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
134
135
|
gridStep: number;
|
|
135
136
|
gridModeEnabled: boolean;
|
|
136
137
|
viewModeEnabled: boolean;
|
|
138
|
+
viewModeOnly: boolean;
|
|
137
139
|
selectedGroupIds: {
|
|
138
140
|
[groupId: string]: boolean;
|
|
139
141
|
};
|
|
@@ -256,9 +258,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
256
258
|
currentItemStrokeColor: string;
|
|
257
259
|
currentItemBackgroundColor: string;
|
|
258
260
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
259
|
-
|
|
261
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
260
262
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
261
263
|
currentItemRoughness: number;
|
|
264
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
262
265
|
currentItemOpacity: number;
|
|
263
266
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
264
267
|
currentItemFontSize: number;
|
|
@@ -316,6 +319,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
316
319
|
gridStep: number;
|
|
317
320
|
gridModeEnabled: boolean;
|
|
318
321
|
viewModeEnabled: boolean;
|
|
322
|
+
viewModeOnly: boolean;
|
|
319
323
|
selectedGroupIds: {
|
|
320
324
|
[groupId: string]: boolean;
|
|
321
325
|
};
|
|
@@ -436,9 +440,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
436
440
|
currentItemStrokeColor: string;
|
|
437
441
|
currentItemBackgroundColor: string;
|
|
438
442
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
439
|
-
|
|
443
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
440
444
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
441
445
|
currentItemRoughness: number;
|
|
446
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
442
447
|
currentItemOpacity: number;
|
|
443
448
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
444
449
|
currentItemFontSize: number;
|
|
@@ -499,6 +504,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
499
504
|
gridStep: number;
|
|
500
505
|
gridModeEnabled: boolean;
|
|
501
506
|
viewModeEnabled: boolean;
|
|
507
|
+
viewModeOnly: boolean;
|
|
502
508
|
selectedGroupIds: {
|
|
503
509
|
[groupId: string]: boolean;
|
|
504
510
|
};
|
|
@@ -616,9 +622,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
616
622
|
currentItemStrokeColor: string;
|
|
617
623
|
currentItemBackgroundColor: string;
|
|
618
624
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
619
|
-
|
|
625
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
620
626
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
621
627
|
currentItemRoughness: number;
|
|
628
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
622
629
|
currentItemOpacity: number;
|
|
623
630
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
624
631
|
currentItemFontSize: number;
|
|
@@ -679,6 +686,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
679
686
|
gridStep: number;
|
|
680
687
|
gridModeEnabled: boolean;
|
|
681
688
|
viewModeEnabled: boolean;
|
|
689
|
+
viewModeOnly: boolean;
|
|
682
690
|
selectedGroupIds: {
|
|
683
691
|
[groupId: string]: boolean;
|
|
684
692
|
};
|
|
@@ -1009,6 +1017,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1009
1017
|
type: "image";
|
|
1010
1018
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1011
1019
|
fileName: string | null;
|
|
1020
|
+
thumbHash: string | null;
|
|
1012
1021
|
status: "pending" | "saved" | "error";
|
|
1013
1022
|
scale: [number, number];
|
|
1014
1023
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
@@ -1164,6 +1173,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1164
1173
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1165
1174
|
pressures: readonly number[];
|
|
1166
1175
|
simulatePressure: boolean;
|
|
1176
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
1167
1177
|
}> & {
|
|
1168
1178
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1169
1179
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|
|
@@ -80,9 +80,10 @@ export declare const actionGroup: {
|
|
|
80
80
|
currentItemStrokeColor: string;
|
|
81
81
|
currentItemBackgroundColor: string;
|
|
82
82
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
83
|
-
|
|
83
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
84
84
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
85
85
|
currentItemRoughness: number;
|
|
86
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
86
87
|
currentItemOpacity: number;
|
|
87
88
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
88
89
|
currentItemFontSize: number;
|
|
@@ -140,6 +141,7 @@ export declare const actionGroup: {
|
|
|
140
141
|
gridStep: number;
|
|
141
142
|
gridModeEnabled: boolean;
|
|
142
143
|
viewModeEnabled: boolean;
|
|
144
|
+
viewModeOnly: boolean;
|
|
143
145
|
width: number;
|
|
144
146
|
height: number;
|
|
145
147
|
offsetTop: number;
|
|
@@ -261,9 +263,10 @@ export declare const actionUngroup: {
|
|
|
261
263
|
currentItemStrokeColor: string;
|
|
262
264
|
currentItemBackgroundColor: string;
|
|
263
265
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
264
|
-
|
|
266
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
265
267
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
266
268
|
currentItemRoughness: number;
|
|
269
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
267
270
|
currentItemOpacity: number;
|
|
268
271
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
269
272
|
currentItemFontSize: number;
|
|
@@ -321,6 +324,7 @@ export declare const actionUngroup: {
|
|
|
321
324
|
gridStep: number;
|
|
322
325
|
gridModeEnabled: boolean;
|
|
323
326
|
viewModeEnabled: boolean;
|
|
327
|
+
viewModeOnly: boolean;
|
|
324
328
|
width: number;
|
|
325
329
|
height: number;
|
|
326
330
|
offsetTop: number;
|
|
@@ -106,9 +106,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
106
106
|
currentItemStrokeColor: string;
|
|
107
107
|
currentItemBackgroundColor: string;
|
|
108
108
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
109
|
-
|
|
109
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
110
110
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
111
111
|
currentItemRoughness: number;
|
|
112
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
112
113
|
currentItemOpacity: number;
|
|
113
114
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
114
115
|
currentItemFontSize: number;
|
|
@@ -169,6 +170,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
169
170
|
gridStep: number;
|
|
170
171
|
gridModeEnabled: boolean;
|
|
171
172
|
viewModeEnabled: boolean;
|
|
173
|
+
viewModeOnly: boolean;
|
|
172
174
|
selectedGroupIds: {
|
|
173
175
|
[groupId: string]: boolean;
|
|
174
176
|
};
|
|
@@ -500,6 +502,7 @@ export declare const actionTogglePolygon: {
|
|
|
500
502
|
type: "image";
|
|
501
503
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
502
504
|
fileName: string | null;
|
|
505
|
+
thumbHash: string | null;
|
|
503
506
|
status: "pending" | "saved" | "error";
|
|
504
507
|
scale: [number, number];
|
|
505
508
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
@@ -655,6 +658,7 @@ export declare const actionTogglePolygon: {
|
|
|
655
658
|
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
656
659
|
pressures: readonly number[];
|
|
657
660
|
simulatePressure: boolean;
|
|
661
|
+
strokeOptions: import("@excalidraw/element/types").StrokeOptions;
|
|
658
662
|
}> & {
|
|
659
663
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
660
664
|
}))[];
|
|
@@ -71,9 +71,10 @@ export declare const actionLink: {
|
|
|
71
71
|
currentItemStrokeColor: string;
|
|
72
72
|
currentItemBackgroundColor: string;
|
|
73
73
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
74
|
-
|
|
74
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
75
75
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
76
76
|
currentItemRoughness: number;
|
|
77
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
77
78
|
currentItemOpacity: number;
|
|
78
79
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
79
80
|
currentItemFontSize: number;
|
|
@@ -133,6 +134,7 @@ export declare const actionLink: {
|
|
|
133
134
|
gridStep: number;
|
|
134
135
|
gridModeEnabled: boolean;
|
|
135
136
|
viewModeEnabled: boolean;
|
|
137
|
+
viewModeOnly: boolean;
|
|
136
138
|
selectedGroupIds: {
|
|
137
139
|
[groupId: string]: boolean;
|
|
138
140
|
};
|
|
@@ -78,9 +78,10 @@ export declare const actionShortcuts: {
|
|
|
78
78
|
currentItemStrokeColor: string;
|
|
79
79
|
currentItemBackgroundColor: string;
|
|
80
80
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
81
|
-
|
|
81
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
82
82
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
83
83
|
currentItemRoughness: number;
|
|
84
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
84
85
|
currentItemOpacity: number;
|
|
85
86
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
86
87
|
currentItemFontSize: number;
|
|
@@ -127,6 +128,7 @@ export declare const actionShortcuts: {
|
|
|
127
128
|
gridStep: number;
|
|
128
129
|
gridModeEnabled: boolean;
|
|
129
130
|
viewModeEnabled: boolean;
|
|
131
|
+
viewModeOnly: boolean;
|
|
130
132
|
selectedGroupIds: {
|
|
131
133
|
[groupId: string]: boolean;
|
|
132
134
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import { type StrokeWidthKey } from "@excalidraw/common";
|
|
1
2
|
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
2
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, TextAlign } from "@excalidraw/element/types";
|
|
3
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, TextAlign } from "@excalidraw/element/types";
|
|
3
4
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
4
5
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
5
|
-
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
|
|
6
|
+
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
|
|
7
|
+
/**
|
|
8
|
+
* input value (usually the element attribute value,
|
|
9
|
+
* but depends on what the action's PanelComponent input expects)
|
|
10
|
+
*/
|
|
11
|
+
getValue: (element: ExcalidrawElement) => T, elementPredicate: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
6
12
|
export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppState, "currentItemStrokeColor">> & {
|
|
7
13
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
8
14
|
};
|
|
@@ -12,12 +18,15 @@ export declare const actionChangeBackgroundColor: import("./types").Action<Pick<
|
|
|
12
18
|
export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
|
|
13
19
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
14
20
|
};
|
|
15
|
-
export declare const actionChangeStrokeWidth: import("./types").Action<
|
|
21
|
+
export declare const actionChangeStrokeWidth: import("./types").Action<StrokeWidthKey> & {
|
|
16
22
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
17
23
|
};
|
|
18
24
|
export declare const actionChangeSloppiness: import("./types").Action<number> & {
|
|
19
25
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
20
26
|
};
|
|
27
|
+
export declare const actionChangeFreedrawMode: import("./types").Action<StrokeVariability> & {
|
|
28
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
29
|
+
};
|
|
21
30
|
export declare const actionChangeStrokeStyle: import("./types").Action<import("@excalidraw/element/types").StrokeStyle> & {
|
|
22
31
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
23
32
|
};
|
|
@@ -100,9 +109,10 @@ export declare const actionDecreaseFontSize: {
|
|
|
100
109
|
currentItemStrokeColor: string;
|
|
101
110
|
currentItemBackgroundColor: string;
|
|
102
111
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
103
|
-
|
|
112
|
+
currentItemStrokeWidthKey: StrokeWidthKey;
|
|
104
113
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
105
114
|
currentItemRoughness: number;
|
|
115
|
+
currentItemStrokeVariability: StrokeVariability;
|
|
106
116
|
currentItemOpacity: number;
|
|
107
117
|
currentItemFontFamily: FontFamilyValues;
|
|
108
118
|
currentItemTextAlign: TextAlign;
|
|
@@ -162,6 +172,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
162
172
|
gridStep: number;
|
|
163
173
|
gridModeEnabled: boolean;
|
|
164
174
|
viewModeEnabled: boolean;
|
|
175
|
+
viewModeOnly: boolean;
|
|
165
176
|
selectedGroupIds: {
|
|
166
177
|
[groupId: string]: boolean;
|
|
167
178
|
};
|
|
@@ -277,9 +288,10 @@ export declare const actionIncreaseFontSize: {
|
|
|
277
288
|
currentItemStrokeColor: string;
|
|
278
289
|
currentItemBackgroundColor: string;
|
|
279
290
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
280
|
-
|
|
291
|
+
currentItemStrokeWidthKey: StrokeWidthKey;
|
|
281
292
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
282
293
|
currentItemRoughness: number;
|
|
294
|
+
currentItemStrokeVariability: StrokeVariability;
|
|
283
295
|
currentItemOpacity: number;
|
|
284
296
|
currentItemFontFamily: FontFamilyValues;
|
|
285
297
|
currentItemTextAlign: TextAlign;
|
|
@@ -339,6 +351,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
339
351
|
gridStep: number;
|
|
340
352
|
gridModeEnabled: boolean;
|
|
341
353
|
viewModeEnabled: boolean;
|
|
354
|
+
viewModeOnly: boolean;
|
|
342
355
|
selectedGroupIds: {
|
|
343
356
|
[groupId: string]: boolean;
|
|
344
357
|
};
|
|
@@ -78,9 +78,10 @@ export declare const actionSelectAll: {
|
|
|
78
78
|
currentItemStrokeColor: string;
|
|
79
79
|
currentItemBackgroundColor: string;
|
|
80
80
|
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
81
|
-
|
|
81
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
82
82
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
83
83
|
currentItemRoughness: number;
|
|
84
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
84
85
|
currentItemOpacity: number;
|
|
85
86
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
86
87
|
currentItemFontSize: number;
|
|
@@ -138,6 +139,7 @@ export declare const actionSelectAll: {
|
|
|
138
139
|
gridStep: number;
|
|
139
140
|
gridModeEnabled: boolean;
|
|
140
141
|
viewModeEnabled: boolean;
|
|
142
|
+
viewModeOnly: boolean;
|
|
141
143
|
width: number;
|
|
142
144
|
height: number;
|
|
143
145
|
offsetTop: number;
|
|
@@ -76,9 +76,10 @@ export declare const actionCopyStyles: {
|
|
|
76
76
|
currentItemStrokeColor: string;
|
|
77
77
|
currentItemBackgroundColor: string;
|
|
78
78
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
79
|
-
|
|
79
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
80
80
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
81
81
|
currentItemRoughness: number;
|
|
82
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
82
83
|
currentItemOpacity: number;
|
|
83
84
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
84
85
|
currentItemFontSize: number;
|
|
@@ -134,6 +135,7 @@ export declare const actionCopyStyles: {
|
|
|
134
135
|
gridStep: number;
|
|
135
136
|
gridModeEnabled: boolean;
|
|
136
137
|
viewModeEnabled: boolean;
|
|
138
|
+
viewModeOnly: boolean;
|
|
137
139
|
selectedGroupIds: {
|
|
138
140
|
[groupId: string]: boolean;
|
|
139
141
|
};
|
|
@@ -72,9 +72,10 @@ export declare const actionToggleArrowBinding: {
|
|
|
72
72
|
currentItemStrokeColor: string;
|
|
73
73
|
currentItemBackgroundColor: string;
|
|
74
74
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
75
|
-
|
|
75
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
76
76
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
77
77
|
currentItemRoughness: number;
|
|
78
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
78
79
|
currentItemOpacity: number;
|
|
79
80
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
80
81
|
currentItemFontSize: number;
|
|
@@ -135,6 +136,7 @@ export declare const actionToggleArrowBinding: {
|
|
|
135
136
|
gridStep: number;
|
|
136
137
|
gridModeEnabled: boolean;
|
|
137
138
|
viewModeEnabled: boolean;
|
|
139
|
+
viewModeOnly: boolean;
|
|
138
140
|
selectedGroupIds: {
|
|
139
141
|
[groupId: string]: boolean;
|
|
140
142
|
};
|
|
@@ -77,9 +77,10 @@ export declare const actionToggleGridMode: {
|
|
|
77
77
|
currentItemStrokeColor: string;
|
|
78
78
|
currentItemBackgroundColor: string;
|
|
79
79
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
80
|
-
|
|
80
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
81
81
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
82
82
|
currentItemRoughness: number;
|
|
83
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
83
84
|
currentItemOpacity: number;
|
|
84
85
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
85
86
|
currentItemFontSize: number;
|
|
@@ -139,6 +140,7 @@ export declare const actionToggleGridMode: {
|
|
|
139
140
|
gridSize: number;
|
|
140
141
|
gridStep: number;
|
|
141
142
|
viewModeEnabled: boolean;
|
|
143
|
+
viewModeOnly: boolean;
|
|
142
144
|
selectedGroupIds: {
|
|
143
145
|
[groupId: string]: boolean;
|
|
144
146
|
};
|
|
@@ -72,9 +72,10 @@ export declare const actionToggleMidpointSnapping: {
|
|
|
72
72
|
currentItemStrokeColor: string;
|
|
73
73
|
currentItemBackgroundColor: string;
|
|
74
74
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
75
|
-
|
|
75
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
76
76
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
77
77
|
currentItemRoughness: number;
|
|
78
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
78
79
|
currentItemOpacity: number;
|
|
79
80
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
80
81
|
currentItemFontSize: number;
|
|
@@ -135,6 +136,7 @@ export declare const actionToggleMidpointSnapping: {
|
|
|
135
136
|
gridStep: number;
|
|
136
137
|
gridModeEnabled: boolean;
|
|
137
138
|
viewModeEnabled: boolean;
|
|
139
|
+
viewModeOnly: boolean;
|
|
138
140
|
selectedGroupIds: {
|
|
139
141
|
[groupId: string]: boolean;
|
|
140
142
|
};
|
|
@@ -75,9 +75,10 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
75
75
|
currentItemStrokeColor: string;
|
|
76
76
|
currentItemBackgroundColor: string;
|
|
77
77
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
78
|
-
|
|
78
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
79
79
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
80
80
|
currentItemRoughness: number;
|
|
81
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
81
82
|
currentItemOpacity: number;
|
|
82
83
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
83
84
|
currentItemFontSize: number;
|
|
@@ -137,6 +138,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
137
138
|
gridSize: number;
|
|
138
139
|
gridStep: number;
|
|
139
140
|
viewModeEnabled: boolean;
|
|
141
|
+
viewModeOnly: boolean;
|
|
140
142
|
selectedGroupIds: {
|
|
141
143
|
[groupId: string]: boolean;
|
|
142
144
|
};
|
|
@@ -81,9 +81,10 @@ export declare const actionToggleSearchMenu: {
|
|
|
81
81
|
currentItemStrokeColor: string;
|
|
82
82
|
currentItemBackgroundColor: string;
|
|
83
83
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
84
|
-
|
|
84
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
85
85
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
86
86
|
currentItemRoughness: number;
|
|
87
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
87
88
|
currentItemOpacity: number;
|
|
88
89
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
89
90
|
currentItemFontSize: number;
|
|
@@ -128,6 +129,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
128
129
|
gridStep: number;
|
|
129
130
|
gridModeEnabled: boolean;
|
|
130
131
|
viewModeEnabled: boolean;
|
|
132
|
+
viewModeOnly: boolean;
|
|
131
133
|
selectedGroupIds: {
|
|
132
134
|
[groupId: string]: boolean;
|
|
133
135
|
};
|
|
@@ -77,9 +77,10 @@ export declare const actionToggleStats: {
|
|
|
77
77
|
currentItemStrokeColor: string;
|
|
78
78
|
currentItemBackgroundColor: string;
|
|
79
79
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
80
|
-
|
|
80
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
81
81
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
82
82
|
currentItemRoughness: number;
|
|
83
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
83
84
|
currentItemOpacity: number;
|
|
84
85
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
85
86
|
currentItemFontSize: number;
|
|
@@ -140,6 +141,7 @@ export declare const actionToggleStats: {
|
|
|
140
141
|
gridStep: number;
|
|
141
142
|
gridModeEnabled: boolean;
|
|
142
143
|
viewModeEnabled: boolean;
|
|
144
|
+
viewModeOnly: boolean;
|
|
143
145
|
selectedGroupIds: {
|
|
144
146
|
[groupId: string]: boolean;
|
|
145
147
|
};
|
|
@@ -7,7 +7,7 @@ export declare const actionToggleViewMode: {
|
|
|
7
7
|
category: "canvas";
|
|
8
8
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
10
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): false | {
|
|
11
11
|
appState: {
|
|
12
12
|
viewModeEnabled: boolean;
|
|
13
13
|
contextMenu: {
|
|
@@ -74,9 +74,10 @@ export declare const actionToggleViewMode: {
|
|
|
74
74
|
currentItemStrokeColor: string;
|
|
75
75
|
currentItemBackgroundColor: string;
|
|
76
76
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
77
|
-
|
|
77
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
78
78
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
79
79
|
currentItemRoughness: number;
|
|
80
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
80
81
|
currentItemOpacity: number;
|
|
81
82
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
82
83
|
currentItemFontSize: number;
|
|
@@ -136,6 +137,7 @@ export declare const actionToggleViewMode: {
|
|
|
136
137
|
gridSize: number;
|
|
137
138
|
gridStep: number;
|
|
138
139
|
gridModeEnabled: boolean;
|
|
140
|
+
viewModeOnly: boolean;
|
|
139
141
|
selectedGroupIds: {
|
|
140
142
|
[groupId: string]: boolean;
|
|
141
143
|
};
|
|
@@ -177,7 +179,7 @@ export declare const actionToggleViewMode: {
|
|
|
177
179
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
178
180
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
179
181
|
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
180
|
-
PanelComponent: ({ data, updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
182
|
+
PanelComponent: ({ data, updateData, appState, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
181
183
|
} & {
|
|
182
184
|
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
183
185
|
};
|
|
@@ -74,9 +74,10 @@ export declare const actionToggleZenMode: {
|
|
|
74
74
|
currentItemStrokeColor: string;
|
|
75
75
|
currentItemBackgroundColor: string;
|
|
76
76
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
77
|
-
|
|
77
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
78
78
|
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
79
79
|
currentItemRoughness: number;
|
|
80
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
80
81
|
currentItemOpacity: number;
|
|
81
82
|
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
82
83
|
currentItemFontSize: number;
|
|
@@ -136,6 +137,7 @@ export declare const actionToggleZenMode: {
|
|
|
136
137
|
gridStep: number;
|
|
137
138
|
gridModeEnabled: boolean;
|
|
138
139
|
viewModeEnabled: boolean;
|
|
140
|
+
viewModeOnly: boolean;
|
|
139
141
|
selectedGroupIds: {
|
|
140
142
|
[groupId: string]: boolean;
|
|
141
143
|
};
|
|
@@ -2,7 +2,7 @@ export { actionDeleteSelected } from "./actionDeleteSelected";
|
|
|
2
2
|
export { actionBringForward, actionBringToFront, actionSendBackward, actionSendToBack, } from "./actionZindex";
|
|
3
3
|
export { actionSelectAll } from "./actionSelectAll";
|
|
4
4
|
export { actionDuplicateSelection } from "./actionDuplicateSelection";
|
|
5
|
-
export { actionChangeStrokeColor, actionChangeBackgroundColor, actionChangeStrokeWidth, actionChangeFillStyle, actionChangeSloppiness, actionChangeOpacity, actionChangeFontSize, actionChangeFontFamily, actionChangeTextAlign, actionChangeVerticalAlign, actionChangeArrowProperties, } from "./actionProperties";
|
|
5
|
+
export { actionChangeStrokeColor, actionChangeBackgroundColor, actionChangeStrokeWidth, actionChangeFillStyle, actionChangeSloppiness, actionChangeFreedrawMode, actionChangeOpacity, actionChangeFontSize, actionChangeFontFamily, actionChangeTextAlign, actionChangeVerticalAlign, actionChangeArrowProperties, } from "./actionProperties";
|
|
6
6
|
export { actionChangeViewBackgroundColor, actionZoomIn, actionZoomOut, actionResetZoom, actionZoomToFit, actionToggleTheme, } from "./actionCanvas";
|
|
7
7
|
export { actionSetEmbeddableAsActiveTool } from "./actionEmbeddable";
|
|
8
8
|
export { actionFinalize } from "./actionFinalize";
|