@zsviczian/excalidraw 0.14.2-obsidian-3 → 0.14.2-obsidian-5
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 +37 -37
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/actions/actionAddToLibrary.d.ts +3 -0
- package/types/actions/actionBoundText.d.ts +129 -9
- package/types/actions/actionCanvas.d.ts +10 -0
- package/types/actions/actionClipboard.d.ts +5 -0
- package/types/actions/actionDeleteSelected.d.ts +3 -0
- package/types/actions/actionExport.d.ts +9 -0
- package/types/actions/actionFinalize.d.ts +2 -0
- package/types/actions/actionLinearEditor.d.ts +1 -0
- package/types/actions/actionMenu.d.ts +3 -0
- package/types/actions/actionProperties.d.ts +14 -1
- package/types/actions/actionStyles.d.ts +1 -0
- package/types/actions/actionToggleGridMode.d.ts +1 -0
- package/types/actions/actionToggleLock.d.ts +1 -0
- package/types/actions/actionToggleStats.d.ts +1 -0
- package/types/actions/actionToggleViewMode.d.ts +1 -0
- package/types/actions/actionToggleZenMode.d.ts +1 -0
- package/types/components/ButtonIconSelect.d.ts +11 -3
- package/types/components/Modal.d.ts +1 -0
- package/types/components/icons.d.ts +1 -0
- package/types/element/Hyperlink.d.ts +1 -0
- package/types/element/linearElementEditor.d.ts +1 -0
- package/types/element/newElement.d.ts +2 -1
- package/types/element/textElement.d.ts +6 -0
- package/types/element/types.d.ts +2 -1
- package/types/packages/common.webpack.dev.config.d.ts +1 -0
- package/types/packages/common.webpack.prod.config.d.ts +1 -0
- package/types/packages/excalidraw/webpack.dev.config.d.ts +1 -0
- package/types/packages/excalidraw/webpack.prod.config.d.ts +1 -0
- package/types/renderer/renderElement.d.ts +2 -2
- package/types/types.d.ts +1 -0
- package/types/utils.d.ts +0 -1
package/package.json
CHANGED
|
@@ -120,6 +120,7 @@ export declare const actionAddToLibrary: {
|
|
|
120
120
|
currentStrokeOptions?: any;
|
|
121
121
|
resetCustomPen?: any;
|
|
122
122
|
gridColor: string;
|
|
123
|
+
dynamicStyle: string;
|
|
123
124
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
124
125
|
};
|
|
125
126
|
} | {
|
|
@@ -240,6 +241,7 @@ export declare const actionAddToLibrary: {
|
|
|
240
241
|
currentStrokeOptions?: any;
|
|
241
242
|
resetCustomPen?: any;
|
|
242
243
|
gridColor: string;
|
|
244
|
+
dynamicStyle: string;
|
|
243
245
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
244
246
|
};
|
|
245
247
|
}> | {
|
|
@@ -360,6 +362,7 @@ export declare const actionAddToLibrary: {
|
|
|
360
362
|
currentStrokeOptions?: any;
|
|
361
363
|
resetCustomPen?: any;
|
|
362
364
|
gridColor: string;
|
|
365
|
+
dynamicStyle: string;
|
|
363
366
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
364
367
|
};
|
|
365
368
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
|
+
import { AppState } from "../types";
|
|
3
4
|
export declare const actionUnbindText: {
|
|
4
5
|
name: "unbindText";
|
|
5
6
|
contextItemLabel: string;
|
|
6
7
|
trackEvent: {
|
|
7
8
|
category: "element";
|
|
8
9
|
};
|
|
9
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
10
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<
|
|
10
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
11
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
11
12
|
elements: readonly ExcalidrawElement[];
|
|
12
|
-
appState: Readonly<
|
|
13
|
+
appState: Readonly<AppState>;
|
|
13
14
|
commitToHistory: true;
|
|
14
15
|
};
|
|
15
16
|
} & {
|
|
@@ -21,8 +22,8 @@ export declare const actionBindText: {
|
|
|
21
22
|
trackEvent: {
|
|
22
23
|
category: "element";
|
|
23
24
|
};
|
|
24
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
25
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<
|
|
25
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
26
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
26
27
|
elements: ExcalidrawElement[];
|
|
27
28
|
appState: {
|
|
28
29
|
selectedElementIds: {
|
|
@@ -140,6 +141,7 @@ export declare const actionBindText: {
|
|
|
140
141
|
currentStrokeOptions?: any;
|
|
141
142
|
resetCustomPen?: any;
|
|
142
143
|
gridColor: string;
|
|
144
|
+
dynamicStyle: string;
|
|
143
145
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
144
146
|
};
|
|
145
147
|
commitToHistory: true;
|
|
@@ -153,10 +155,128 @@ export declare const actionCreateContainerFromText: {
|
|
|
153
155
|
trackEvent: {
|
|
154
156
|
category: "element";
|
|
155
157
|
};
|
|
156
|
-
predicate: (elements: readonly ExcalidrawElement[], appState:
|
|
157
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<
|
|
158
|
-
elements: ExcalidrawElement[];
|
|
159
|
-
appState:
|
|
158
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
159
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
160
|
+
elements: readonly ExcalidrawElement[];
|
|
161
|
+
appState: {
|
|
162
|
+
selectedElementIds: {
|
|
163
|
+
[id: string]: boolean;
|
|
164
|
+
};
|
|
165
|
+
contextMenu: {
|
|
166
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
167
|
+
top: number;
|
|
168
|
+
left: number;
|
|
169
|
+
} | null;
|
|
170
|
+
showWelcomeScreen: boolean;
|
|
171
|
+
isLoading: boolean;
|
|
172
|
+
errorMessage: import("react").ReactNode;
|
|
173
|
+
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
174
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
175
|
+
multiElement: import("../element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
176
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
177
|
+
isBindingEnabled: boolean;
|
|
178
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
179
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
180
|
+
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
181
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
182
|
+
activeTool: {
|
|
183
|
+
lastActiveTool: import("../types").LastActiveTool;
|
|
184
|
+
locked: boolean;
|
|
185
|
+
} & ({
|
|
186
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser" | "hand";
|
|
187
|
+
customType: null;
|
|
188
|
+
} | {
|
|
189
|
+
type: "custom";
|
|
190
|
+
customType: string;
|
|
191
|
+
});
|
|
192
|
+
penMode: boolean;
|
|
193
|
+
penDetected: boolean;
|
|
194
|
+
exportBackground: boolean;
|
|
195
|
+
exportEmbedScene: boolean;
|
|
196
|
+
exportWithDarkMode: boolean;
|
|
197
|
+
exportScale: number;
|
|
198
|
+
currentItemStrokeColor: string;
|
|
199
|
+
currentItemBackgroundColor: string;
|
|
200
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
201
|
+
currentItemStrokeWidth: number;
|
|
202
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
203
|
+
currentItemRoughness: number;
|
|
204
|
+
currentItemOpacity: number;
|
|
205
|
+
currentItemFontFamily: number;
|
|
206
|
+
currentItemFontSize: number;
|
|
207
|
+
currentItemTextAlign: string;
|
|
208
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
209
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
210
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
211
|
+
viewBackgroundColor: string;
|
|
212
|
+
scrollX: number;
|
|
213
|
+
scrollY: number;
|
|
214
|
+
cursorButton: "up" | "down";
|
|
215
|
+
scrolledOutside: boolean;
|
|
216
|
+
name: string;
|
|
217
|
+
isResizing: boolean;
|
|
218
|
+
isRotating: boolean;
|
|
219
|
+
zoom: Readonly<{
|
|
220
|
+
value: import("../types").NormalizedZoomValue;
|
|
221
|
+
}>;
|
|
222
|
+
openMenu: "canvas" | "shape" | null;
|
|
223
|
+
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
224
|
+
openSidebar: "library" | "customSidebar" | null;
|
|
225
|
+
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
226
|
+
isSidebarDocked: boolean;
|
|
227
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
228
|
+
previousSelectedElementIds: {
|
|
229
|
+
[id: string]: boolean;
|
|
230
|
+
};
|
|
231
|
+
shouldCacheIgnoreZoom: boolean;
|
|
232
|
+
toast: {
|
|
233
|
+
message: string;
|
|
234
|
+
closable?: boolean | undefined;
|
|
235
|
+
duration?: number | undefined;
|
|
236
|
+
} | null;
|
|
237
|
+
zenModeEnabled: boolean;
|
|
238
|
+
theme: string;
|
|
239
|
+
gridSize: number | null;
|
|
240
|
+
previousGridSize: number | null;
|
|
241
|
+
viewModeEnabled: boolean;
|
|
242
|
+
selectedGroupIds: {
|
|
243
|
+
[groupId: string]: boolean;
|
|
244
|
+
};
|
|
245
|
+
editingGroupId: string | null;
|
|
246
|
+
width: number;
|
|
247
|
+
height: number;
|
|
248
|
+
offsetTop: number;
|
|
249
|
+
offsetLeft: number;
|
|
250
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
251
|
+
collaborators: Map<string, import("../types").Collaborator>;
|
|
252
|
+
showStats: boolean;
|
|
253
|
+
currentChartType: import("../element/types").ChartType;
|
|
254
|
+
pasteDialog: {
|
|
255
|
+
shown: false;
|
|
256
|
+
data: null;
|
|
257
|
+
} | {
|
|
258
|
+
shown: true;
|
|
259
|
+
data: import("../charts").Spreadsheet;
|
|
260
|
+
};
|
|
261
|
+
pendingImageElementId: string | null;
|
|
262
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
263
|
+
linkOpacity: number;
|
|
264
|
+
trayModeEnabled: boolean;
|
|
265
|
+
colorPalette: {
|
|
266
|
+
canvasBackground?: string[] | undefined;
|
|
267
|
+
elementBackground?: string[] | undefined;
|
|
268
|
+
elementStroke?: string[] | undefined;
|
|
269
|
+
};
|
|
270
|
+
allowWheelZoom?: boolean | undefined;
|
|
271
|
+
allowPinchZoom?: boolean | undefined;
|
|
272
|
+
pinnedScripts?: string[] | undefined;
|
|
273
|
+
customPens?: any[] | undefined;
|
|
274
|
+
currentStrokeOptions?: any;
|
|
275
|
+
resetCustomPen?: any;
|
|
276
|
+
gridColor: string;
|
|
277
|
+
dynamicStyle: string;
|
|
278
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
279
|
+
};
|
|
160
280
|
commitToHistory: true;
|
|
161
281
|
};
|
|
162
282
|
} & {
|
|
@@ -134,6 +134,7 @@ export declare const actionClearCanvas: {
|
|
|
134
134
|
currentStrokeOptions?: any;
|
|
135
135
|
resetCustomPen?: any;
|
|
136
136
|
gridColor: string;
|
|
137
|
+
dynamicStyle: string;
|
|
137
138
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
138
139
|
};
|
|
139
140
|
commitToHistory: true;
|
|
@@ -264,6 +265,7 @@ export declare const actionZoomIn: {
|
|
|
264
265
|
currentStrokeOptions?: any;
|
|
265
266
|
resetCustomPen?: any;
|
|
266
267
|
gridColor: string;
|
|
268
|
+
dynamicStyle: string;
|
|
267
269
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
268
270
|
};
|
|
269
271
|
commitToHistory: false;
|
|
@@ -396,6 +398,7 @@ export declare const actionZoomOut: {
|
|
|
396
398
|
currentStrokeOptions?: any;
|
|
397
399
|
resetCustomPen?: any;
|
|
398
400
|
gridColor: string;
|
|
401
|
+
dynamicStyle: string;
|
|
399
402
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
400
403
|
};
|
|
401
404
|
commitToHistory: false;
|
|
@@ -528,6 +531,7 @@ export declare const actionResetZoom: {
|
|
|
528
531
|
currentStrokeOptions?: any;
|
|
529
532
|
resetCustomPen?: any;
|
|
530
533
|
gridColor: string;
|
|
534
|
+
dynamicStyle: string;
|
|
531
535
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
532
536
|
};
|
|
533
537
|
commitToHistory: false;
|
|
@@ -654,6 +658,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
654
658
|
currentStrokeOptions?: any;
|
|
655
659
|
resetCustomPen?: any;
|
|
656
660
|
gridColor: string;
|
|
661
|
+
dynamicStyle: string;
|
|
657
662
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
658
663
|
};
|
|
659
664
|
commitToHistory: boolean;
|
|
@@ -780,6 +785,7 @@ export declare const actionZoomToSelected: {
|
|
|
780
785
|
currentStrokeOptions?: any;
|
|
781
786
|
resetCustomPen?: any;
|
|
782
787
|
gridColor: string;
|
|
788
|
+
dynamicStyle: string;
|
|
783
789
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
784
790
|
};
|
|
785
791
|
commitToHistory: boolean;
|
|
@@ -911,6 +917,7 @@ export declare const actionZoomToFit: {
|
|
|
911
917
|
currentStrokeOptions?: any;
|
|
912
918
|
resetCustomPen?: any;
|
|
913
919
|
gridColor: string;
|
|
920
|
+
dynamicStyle: string;
|
|
914
921
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
915
922
|
};
|
|
916
923
|
commitToHistory: boolean;
|
|
@@ -1042,6 +1049,7 @@ export declare const actionToggleTheme: {
|
|
|
1042
1049
|
currentStrokeOptions?: any;
|
|
1043
1050
|
resetCustomPen?: any;
|
|
1044
1051
|
gridColor: string;
|
|
1052
|
+
dynamicStyle: string;
|
|
1045
1053
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1046
1054
|
};
|
|
1047
1055
|
commitToHistory: false;
|
|
@@ -1169,6 +1177,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1169
1177
|
currentStrokeOptions?: any;
|
|
1170
1178
|
resetCustomPen?: any;
|
|
1171
1179
|
gridColor: string;
|
|
1180
|
+
dynamicStyle: string;
|
|
1172
1181
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1173
1182
|
};
|
|
1174
1183
|
commitToHistory: true;
|
|
@@ -1295,6 +1304,7 @@ export declare const actionToggleHandTool: {
|
|
|
1295
1304
|
currentStrokeOptions?: any;
|
|
1296
1305
|
resetCustomPen?: any;
|
|
1297
1306
|
gridColor: string;
|
|
1307
|
+
dynamicStyle: string;
|
|
1298
1308
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1299
1309
|
};
|
|
1300
1310
|
commitToHistory: true;
|
|
@@ -150,6 +150,7 @@ export declare const actionCut: {
|
|
|
150
150
|
currentStrokeOptions?: any;
|
|
151
151
|
resetCustomPen?: any;
|
|
152
152
|
gridColor: string;
|
|
153
|
+
dynamicStyle: string;
|
|
153
154
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
154
155
|
};
|
|
155
156
|
commitToHistory: false;
|
|
@@ -299,6 +300,7 @@ export declare const actionCut: {
|
|
|
299
300
|
currentStrokeOptions?: any;
|
|
300
301
|
resetCustomPen?: any;
|
|
301
302
|
gridColor: string;
|
|
303
|
+
dynamicStyle: string;
|
|
302
304
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
303
305
|
};
|
|
304
306
|
commitToHistory: true;
|
|
@@ -418,6 +420,7 @@ export declare const actionCut: {
|
|
|
418
420
|
currentStrokeOptions?: any;
|
|
419
421
|
resetCustomPen?: any;
|
|
420
422
|
gridColor: string;
|
|
423
|
+
dynamicStyle: string;
|
|
421
424
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
422
425
|
};
|
|
423
426
|
commitToHistory: boolean;
|
|
@@ -553,6 +556,7 @@ export declare const actionCopyAsSvg: {
|
|
|
553
556
|
currentStrokeOptions?: any;
|
|
554
557
|
resetCustomPen?: any;
|
|
555
558
|
gridColor: string;
|
|
559
|
+
dynamicStyle: string;
|
|
556
560
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
557
561
|
};
|
|
558
562
|
commitToHistory: false;
|
|
@@ -687,6 +691,7 @@ export declare const actionCopyAsPng: {
|
|
|
687
691
|
currentStrokeOptions?: any;
|
|
688
692
|
resetCustomPen?: any;
|
|
689
693
|
gridColor: string;
|
|
694
|
+
dynamicStyle: string;
|
|
690
695
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
691
696
|
};
|
|
692
697
|
commitToHistory: false;
|
|
@@ -126,6 +126,7 @@ export declare const actionDeleteSelected: {
|
|
|
126
126
|
currentStrokeOptions?: any;
|
|
127
127
|
resetCustomPen?: any;
|
|
128
128
|
gridColor: string;
|
|
129
|
+
dynamicStyle: string;
|
|
129
130
|
selectedLinearElement: LinearElementEditor | null;
|
|
130
131
|
};
|
|
131
132
|
commitToHistory: false;
|
|
@@ -275,6 +276,7 @@ export declare const actionDeleteSelected: {
|
|
|
275
276
|
currentStrokeOptions?: any;
|
|
276
277
|
resetCustomPen?: any;
|
|
277
278
|
gridColor: string;
|
|
279
|
+
dynamicStyle: string;
|
|
278
280
|
selectedLinearElement: LinearElementEditor | null;
|
|
279
281
|
};
|
|
280
282
|
commitToHistory: true;
|
|
@@ -394,6 +396,7 @@ export declare const actionDeleteSelected: {
|
|
|
394
396
|
currentStrokeOptions?: any;
|
|
395
397
|
resetCustomPen?: any;
|
|
396
398
|
gridColor: string;
|
|
399
|
+
dynamicStyle: string;
|
|
397
400
|
selectedLinearElement: LinearElementEditor | null;
|
|
398
401
|
};
|
|
399
402
|
commitToHistory: boolean;
|
|
@@ -120,6 +120,7 @@ export declare const actionChangeProjectName: {
|
|
|
120
120
|
currentStrokeOptions?: any;
|
|
121
121
|
resetCustomPen?: any;
|
|
122
122
|
gridColor: string;
|
|
123
|
+
dynamicStyle: string;
|
|
123
124
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
124
125
|
};
|
|
125
126
|
commitToHistory: false;
|
|
@@ -251,6 +252,7 @@ export declare const actionChangeExportScale: {
|
|
|
251
252
|
currentStrokeOptions?: any;
|
|
252
253
|
resetCustomPen?: any;
|
|
253
254
|
gridColor: string;
|
|
255
|
+
dynamicStyle: string;
|
|
254
256
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
255
257
|
};
|
|
256
258
|
commitToHistory: false;
|
|
@@ -382,6 +384,7 @@ export declare const actionChangeExportBackground: {
|
|
|
382
384
|
currentStrokeOptions?: any;
|
|
383
385
|
resetCustomPen?: any;
|
|
384
386
|
gridColor: string;
|
|
387
|
+
dynamicStyle: string;
|
|
385
388
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
386
389
|
};
|
|
387
390
|
commitToHistory: false;
|
|
@@ -513,6 +516,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
513
516
|
currentStrokeOptions?: any;
|
|
514
517
|
resetCustomPen?: any;
|
|
515
518
|
gridColor: string;
|
|
519
|
+
dynamicStyle: string;
|
|
516
520
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
517
521
|
};
|
|
518
522
|
commitToHistory: false;
|
|
@@ -643,6 +647,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
643
647
|
currentStrokeOptions?: any;
|
|
644
648
|
resetCustomPen?: any;
|
|
645
649
|
gridColor: string;
|
|
650
|
+
dynamicStyle: string;
|
|
646
651
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
647
652
|
};
|
|
648
653
|
} | {
|
|
@@ -777,6 +782,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
777
782
|
currentStrokeOptions?: any;
|
|
778
783
|
resetCustomPen?: any;
|
|
779
784
|
gridColor: string;
|
|
785
|
+
dynamicStyle: string;
|
|
780
786
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
781
787
|
};
|
|
782
788
|
} | {
|
|
@@ -908,6 +914,7 @@ export declare const actionLoadScene: {
|
|
|
908
914
|
currentStrokeOptions?: any;
|
|
909
915
|
resetCustomPen?: any;
|
|
910
916
|
gridColor: string;
|
|
917
|
+
dynamicStyle: string;
|
|
911
918
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
912
919
|
};
|
|
913
920
|
files: import("../types").BinaryFiles;
|
|
@@ -1030,6 +1037,7 @@ export declare const actionLoadScene: {
|
|
|
1030
1037
|
currentStrokeOptions?: any;
|
|
1031
1038
|
resetCustomPen?: any;
|
|
1032
1039
|
gridColor: string;
|
|
1040
|
+
dynamicStyle: string;
|
|
1033
1041
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1034
1042
|
};
|
|
1035
1043
|
files: import("../types").BinaryFiles;
|
|
@@ -1162,6 +1170,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1162
1170
|
currentStrokeOptions?: any;
|
|
1163
1171
|
resetCustomPen?: any;
|
|
1164
1172
|
gridColor: string;
|
|
1173
|
+
dynamicStyle: string;
|
|
1165
1174
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1166
1175
|
};
|
|
1167
1176
|
commitToHistory: false;
|
|
@@ -122,6 +122,7 @@ export declare const actionFinalize: {
|
|
|
122
122
|
currentStrokeOptions?: any;
|
|
123
123
|
resetCustomPen?: any;
|
|
124
124
|
gridColor: string;
|
|
125
|
+
dynamicStyle: string;
|
|
125
126
|
selectedLinearElement: LinearElementEditor | null;
|
|
126
127
|
};
|
|
127
128
|
commitToHistory: true;
|
|
@@ -244,6 +245,7 @@ export declare const actionFinalize: {
|
|
|
244
245
|
currentStrokeOptions?: any;
|
|
245
246
|
resetCustomPen?: any;
|
|
246
247
|
gridColor: string;
|
|
248
|
+
dynamicStyle: string;
|
|
247
249
|
};
|
|
248
250
|
commitToHistory: boolean;
|
|
249
251
|
};
|
|
@@ -121,6 +121,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
121
121
|
currentStrokeOptions?: any;
|
|
122
122
|
resetCustomPen?: any;
|
|
123
123
|
gridColor: string;
|
|
124
|
+
dynamicStyle: string;
|
|
124
125
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
125
126
|
};
|
|
126
127
|
commitToHistory: false;
|
|
@@ -251,6 +252,7 @@ export declare const actionToggleEditMenu: {
|
|
|
251
252
|
currentStrokeOptions?: any;
|
|
252
253
|
resetCustomPen?: any;
|
|
253
254
|
gridColor: string;
|
|
255
|
+
dynamicStyle: string;
|
|
254
256
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
255
257
|
};
|
|
256
258
|
commitToHistory: false;
|
|
@@ -397,6 +399,7 @@ export declare const actionShortcuts: {
|
|
|
397
399
|
currentStrokeOptions?: any;
|
|
398
400
|
resetCustomPen?: any;
|
|
399
401
|
gridColor: string;
|
|
402
|
+
dynamicStyle: string;
|
|
400
403
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
401
404
|
};
|
|
402
405
|
commitToHistory: false;
|
|
@@ -20,7 +20,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
20
20
|
export declare const actionChangeFillStyle: {
|
|
21
21
|
name: "changeFillStyle";
|
|
22
22
|
trackEvent: false;
|
|
23
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
23
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any, app: import("../../src/types").AppClassProperties) => {
|
|
24
24
|
elements: ExcalidrawElement[];
|
|
25
25
|
appState: {
|
|
26
26
|
currentItemFillStyle: any;
|
|
@@ -138,6 +138,7 @@ export declare const actionChangeFillStyle: {
|
|
|
138
138
|
currentStrokeOptions?: any;
|
|
139
139
|
resetCustomPen?: any;
|
|
140
140
|
gridColor: string;
|
|
141
|
+
dynamicStyle: string;
|
|
141
142
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
142
143
|
};
|
|
143
144
|
commitToHistory: true;
|
|
@@ -267,6 +268,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
267
268
|
currentStrokeOptions?: any;
|
|
268
269
|
resetCustomPen?: any;
|
|
269
270
|
gridColor: string;
|
|
271
|
+
dynamicStyle: string;
|
|
270
272
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
271
273
|
};
|
|
272
274
|
commitToHistory: true;
|
|
@@ -396,6 +398,7 @@ export declare const actionChangeSloppiness: {
|
|
|
396
398
|
currentStrokeOptions?: any;
|
|
397
399
|
resetCustomPen?: any;
|
|
398
400
|
gridColor: string;
|
|
401
|
+
dynamicStyle: string;
|
|
399
402
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
400
403
|
};
|
|
401
404
|
commitToHistory: true;
|
|
@@ -525,6 +528,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
525
528
|
currentStrokeOptions?: any;
|
|
526
529
|
resetCustomPen?: any;
|
|
527
530
|
gridColor: string;
|
|
531
|
+
dynamicStyle: string;
|
|
528
532
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
529
533
|
};
|
|
530
534
|
commitToHistory: true;
|
|
@@ -654,6 +658,7 @@ export declare const actionChangeOpacity: {
|
|
|
654
658
|
currentStrokeOptions?: any;
|
|
655
659
|
resetCustomPen?: any;
|
|
656
660
|
gridColor: string;
|
|
661
|
+
dynamicStyle: string;
|
|
657
662
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
658
663
|
};
|
|
659
664
|
commitToHistory: true;
|
|
@@ -783,6 +788,7 @@ export declare const actionChangeFontSize: {
|
|
|
783
788
|
currentStrokeOptions?: any;
|
|
784
789
|
resetCustomPen?: any;
|
|
785
790
|
gridColor: string;
|
|
791
|
+
dynamicStyle: string;
|
|
786
792
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
787
793
|
};
|
|
788
794
|
commitToHistory: boolean;
|
|
@@ -912,6 +918,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
912
918
|
currentStrokeOptions?: any;
|
|
913
919
|
resetCustomPen?: any;
|
|
914
920
|
gridColor: string;
|
|
921
|
+
dynamicStyle: string;
|
|
915
922
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
916
923
|
};
|
|
917
924
|
commitToHistory: boolean;
|
|
@@ -1041,6 +1048,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1041
1048
|
currentStrokeOptions?: any;
|
|
1042
1049
|
resetCustomPen?: any;
|
|
1043
1050
|
gridColor: string;
|
|
1051
|
+
dynamicStyle: string;
|
|
1044
1052
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1045
1053
|
};
|
|
1046
1054
|
commitToHistory: boolean;
|
|
@@ -1170,6 +1178,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1170
1178
|
currentStrokeOptions?: any;
|
|
1171
1179
|
resetCustomPen?: any;
|
|
1172
1180
|
gridColor: string;
|
|
1181
|
+
dynamicStyle: string;
|
|
1173
1182
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1174
1183
|
};
|
|
1175
1184
|
commitToHistory: true;
|
|
@@ -1299,6 +1308,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1299
1308
|
currentStrokeOptions?: any;
|
|
1300
1309
|
resetCustomPen?: any;
|
|
1301
1310
|
gridColor: string;
|
|
1311
|
+
dynamicStyle: string;
|
|
1302
1312
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1303
1313
|
};
|
|
1304
1314
|
commitToHistory: true;
|
|
@@ -1430,6 +1440,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1430
1440
|
currentStrokeOptions?: any;
|
|
1431
1441
|
resetCustomPen?: any;
|
|
1432
1442
|
gridColor: string;
|
|
1443
|
+
dynamicStyle: string;
|
|
1433
1444
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1434
1445
|
};
|
|
1435
1446
|
commitToHistory: true;
|
|
@@ -1559,6 +1570,7 @@ export declare const actionChangeRoundness: {
|
|
|
1559
1570
|
currentStrokeOptions?: any;
|
|
1560
1571
|
resetCustomPen?: any;
|
|
1561
1572
|
gridColor: string;
|
|
1573
|
+
dynamicStyle: string;
|
|
1562
1574
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1563
1575
|
};
|
|
1564
1576
|
commitToHistory: true;
|
|
@@ -1691,6 +1703,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1691
1703
|
currentStrokeOptions?: any;
|
|
1692
1704
|
resetCustomPen?: any;
|
|
1693
1705
|
gridColor: string;
|
|
1706
|
+
dynamicStyle: string;
|
|
1694
1707
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1695
1708
|
};
|
|
1696
1709
|
commitToHistory: true;
|
|
@@ -120,6 +120,7 @@ export declare const actionCopyStyles: {
|
|
|
120
120
|
currentStrokeOptions?: any;
|
|
121
121
|
resetCustomPen?: any;
|
|
122
122
|
gridColor: string;
|
|
123
|
+
dynamicStyle: string;
|
|
123
124
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
124
125
|
};
|
|
125
126
|
commitToHistory: false;
|
|
@@ -124,6 +124,7 @@ export declare const actionToggleGridMode: {
|
|
|
124
124
|
currentStrokeOptions?: any;
|
|
125
125
|
resetCustomPen?: any;
|
|
126
126
|
gridColor: string;
|
|
127
|
+
dynamicStyle: string;
|
|
127
128
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
128
129
|
};
|
|
129
130
|
commitToHistory: false;
|
|
@@ -122,6 +122,7 @@ export declare const actionToggleStats: {
|
|
|
122
122
|
currentStrokeOptions?: any;
|
|
123
123
|
resetCustomPen?: any;
|
|
124
124
|
gridColor: string;
|
|
125
|
+
dynamicStyle: string;
|
|
125
126
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
126
127
|
};
|
|
127
128
|
commitToHistory: false;
|
|
@@ -123,6 +123,7 @@ export declare const actionToggleViewMode: {
|
|
|
123
123
|
currentStrokeOptions?: any;
|
|
124
124
|
resetCustomPen?: any;
|
|
125
125
|
gridColor: string;
|
|
126
|
+
dynamicStyle: string;
|
|
126
127
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
127
128
|
};
|
|
128
129
|
commitToHistory: false;
|
|
@@ -123,6 +123,7 @@ export declare const actionToggleZenMode: {
|
|
|
123
123
|
currentStrokeOptions?: any;
|
|
124
124
|
resetCustomPen?: any;
|
|
125
125
|
gridColor: string;
|
|
126
|
+
dynamicStyle: string;
|
|
126
127
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
127
128
|
};
|
|
128
129
|
commitToHistory: false;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
export declare const ButtonIconSelect: <T extends Object>(
|
|
1
|
+
export declare const ButtonIconSelect: <T extends Object>(props: {
|
|
2
2
|
options: {
|
|
3
3
|
value: T;
|
|
4
4
|
text: string;
|
|
5
5
|
icon: JSX.Element;
|
|
6
6
|
testId?: string | undefined;
|
|
7
|
+
/** if not supplied, defaults to value identity check */
|
|
8
|
+
active?: boolean | undefined;
|
|
7
9
|
}[];
|
|
8
10
|
value: T | null;
|
|
9
|
-
|
|
11
|
+
type?: "button" | "radio" | undefined;
|
|
12
|
+
} & ({
|
|
13
|
+
type?: "radio" | undefined;
|
|
10
14
|
group: string;
|
|
11
|
-
|
|
15
|
+
onChange: (value: T) => void;
|
|
16
|
+
} | {
|
|
17
|
+
type: "button";
|
|
18
|
+
onClick: (value: T, event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
19
|
+
})) => JSX.Element;
|
|
@@ -87,6 +87,7 @@ export declare const GroupIcon: React.MemoExoticComponent<({ theme }: {
|
|
|
87
87
|
export declare const UngroupIcon: React.MemoExoticComponent<({ theme }: {
|
|
88
88
|
theme: Theme;
|
|
89
89
|
}) => JSX.Element>;
|
|
90
|
+
export declare const FillZigZagIcon: JSX.Element;
|
|
90
91
|
export declare const FillHachureIcon: JSX.Element;
|
|
91
92
|
export declare const FillCrossHatchIcon: JSX.Element;
|
|
92
93
|
export declare const FillSolidIcon: JSX.Element;
|