@zsviczian/excalidraw 0.14.2-obsidian-5 → 0.15.2-obsidian-1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.14.2-obsidian-5",
3
+ "version": "0.15.2-obsidian-1",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -121,6 +121,7 @@ export declare const actionAddToLibrary: {
121
121
  resetCustomPen?: any;
122
122
  gridColor: string;
123
123
  dynamicStyle: string;
124
+ invertBindingBehaviour: boolean;
124
125
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
125
126
  };
126
127
  } | {
@@ -242,6 +243,7 @@ export declare const actionAddToLibrary: {
242
243
  resetCustomPen?: any;
243
244
  gridColor: string;
244
245
  dynamicStyle: string;
246
+ invertBindingBehaviour: boolean;
245
247
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
246
248
  };
247
249
  }> | {
@@ -363,6 +365,7 @@ export declare const actionAddToLibrary: {
363
365
  resetCustomPen?: any;
364
366
  gridColor: string;
365
367
  dynamicStyle: string;
368
+ invertBindingBehaviour: boolean;
366
369
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
367
370
  };
368
371
  };
@@ -142,6 +142,7 @@ export declare const actionBindText: {
142
142
  resetCustomPen?: any;
143
143
  gridColor: string;
144
144
  dynamicStyle: string;
145
+ invertBindingBehaviour: boolean;
145
146
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
146
147
  };
147
148
  commitToHistory: true;
@@ -149,8 +150,8 @@ export declare const actionBindText: {
149
150
  } & {
150
151
  keyTest?: undefined;
151
152
  };
152
- export declare const actionCreateContainerFromText: {
153
- name: "createContainerFromText";
153
+ export declare const actionWrapTextInContainer: {
154
+ name: "wrapTextInContainer";
154
155
  contextItemLabel: string;
155
156
  trackEvent: {
156
157
  category: "element";
@@ -275,6 +276,7 @@ export declare const actionCreateContainerFromText: {
275
276
  resetCustomPen?: any;
276
277
  gridColor: string;
277
278
  dynamicStyle: string;
279
+ invertBindingBehaviour: boolean;
278
280
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
279
281
  };
280
282
  commitToHistory: true;
@@ -135,6 +135,7 @@ export declare const actionClearCanvas: {
135
135
  resetCustomPen?: any;
136
136
  gridColor: string;
137
137
  dynamicStyle: string;
138
+ invertBindingBehaviour: boolean;
138
139
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
139
140
  };
140
141
  commitToHistory: true;
@@ -266,6 +267,7 @@ export declare const actionZoomIn: {
266
267
  resetCustomPen?: any;
267
268
  gridColor: string;
268
269
  dynamicStyle: string;
270
+ invertBindingBehaviour: boolean;
269
271
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
270
272
  };
271
273
  commitToHistory: false;
@@ -399,6 +401,7 @@ export declare const actionZoomOut: {
399
401
  resetCustomPen?: any;
400
402
  gridColor: string;
401
403
  dynamicStyle: string;
404
+ invertBindingBehaviour: boolean;
402
405
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
403
406
  };
404
407
  commitToHistory: false;
@@ -532,6 +535,7 @@ export declare const actionResetZoom: {
532
535
  resetCustomPen?: any;
533
536
  gridColor: string;
534
537
  dynamicStyle: string;
538
+ invertBindingBehaviour: boolean;
535
539
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
536
540
  };
537
541
  commitToHistory: false;
@@ -659,6 +663,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
659
663
  resetCustomPen?: any;
660
664
  gridColor: string;
661
665
  dynamicStyle: string;
666
+ invertBindingBehaviour: boolean;
662
667
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
663
668
  };
664
669
  commitToHistory: boolean;
@@ -786,6 +791,7 @@ export declare const actionZoomToSelected: {
786
791
  resetCustomPen?: any;
787
792
  gridColor: string;
788
793
  dynamicStyle: string;
794
+ invertBindingBehaviour: boolean;
789
795
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
790
796
  };
791
797
  commitToHistory: boolean;
@@ -918,6 +924,7 @@ export declare const actionZoomToFit: {
918
924
  resetCustomPen?: any;
919
925
  gridColor: string;
920
926
  dynamicStyle: string;
927
+ invertBindingBehaviour: boolean;
921
928
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
922
929
  };
923
930
  commitToHistory: boolean;
@@ -1050,6 +1057,7 @@ export declare const actionToggleTheme: {
1050
1057
  resetCustomPen?: any;
1051
1058
  gridColor: string;
1052
1059
  dynamicStyle: string;
1060
+ invertBindingBehaviour: boolean;
1053
1061
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1054
1062
  };
1055
1063
  commitToHistory: false;
@@ -1178,6 +1186,7 @@ export declare const actionToggleEraserTool: {
1178
1186
  resetCustomPen?: any;
1179
1187
  gridColor: string;
1180
1188
  dynamicStyle: string;
1189
+ invertBindingBehaviour: boolean;
1181
1190
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1182
1191
  };
1183
1192
  commitToHistory: true;
@@ -1305,6 +1314,7 @@ export declare const actionToggleHandTool: {
1305
1314
  resetCustomPen?: any;
1306
1315
  gridColor: string;
1307
1316
  dynamicStyle: string;
1317
+ invertBindingBehaviour: boolean;
1308
1318
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1309
1319
  };
1310
1320
  commitToHistory: true;
@@ -151,6 +151,7 @@ export declare const actionCut: {
151
151
  resetCustomPen?: any;
152
152
  gridColor: string;
153
153
  dynamicStyle: string;
154
+ invertBindingBehaviour: boolean;
154
155
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
155
156
  };
156
157
  commitToHistory: false;
@@ -301,6 +302,7 @@ export declare const actionCut: {
301
302
  resetCustomPen?: any;
302
303
  gridColor: string;
303
304
  dynamicStyle: string;
305
+ invertBindingBehaviour: boolean;
304
306
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
305
307
  };
306
308
  commitToHistory: true;
@@ -421,6 +423,7 @@ export declare const actionCut: {
421
423
  resetCustomPen?: any;
422
424
  gridColor: string;
423
425
  dynamicStyle: string;
426
+ invertBindingBehaviour: boolean;
424
427
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
425
428
  };
426
429
  commitToHistory: boolean;
@@ -557,6 +560,7 @@ export declare const actionCopyAsSvg: {
557
560
  resetCustomPen?: any;
558
561
  gridColor: string;
559
562
  dynamicStyle: string;
563
+ invertBindingBehaviour: boolean;
560
564
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
561
565
  };
562
566
  commitToHistory: false;
@@ -692,6 +696,7 @@ export declare const actionCopyAsPng: {
692
696
  resetCustomPen?: any;
693
697
  gridColor: string;
694
698
  dynamicStyle: string;
699
+ invertBindingBehaviour: boolean;
695
700
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
696
701
  };
697
702
  commitToHistory: false;
@@ -127,6 +127,7 @@ export declare const actionDeleteSelected: {
127
127
  resetCustomPen?: any;
128
128
  gridColor: string;
129
129
  dynamicStyle: string;
130
+ invertBindingBehaviour: boolean;
130
131
  selectedLinearElement: LinearElementEditor | null;
131
132
  };
132
133
  commitToHistory: false;
@@ -277,6 +278,7 @@ export declare const actionDeleteSelected: {
277
278
  resetCustomPen?: any;
278
279
  gridColor: string;
279
280
  dynamicStyle: string;
281
+ invertBindingBehaviour: boolean;
280
282
  selectedLinearElement: LinearElementEditor | null;
281
283
  };
282
284
  commitToHistory: true;
@@ -397,6 +399,7 @@ export declare const actionDeleteSelected: {
397
399
  resetCustomPen?: any;
398
400
  gridColor: string;
399
401
  dynamicStyle: string;
402
+ invertBindingBehaviour: boolean;
400
403
  selectedLinearElement: LinearElementEditor | null;
401
404
  };
402
405
  commitToHistory: boolean;
@@ -121,6 +121,7 @@ export declare const actionChangeProjectName: {
121
121
  resetCustomPen?: any;
122
122
  gridColor: string;
123
123
  dynamicStyle: string;
124
+ invertBindingBehaviour: boolean;
124
125
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
125
126
  };
126
127
  commitToHistory: false;
@@ -253,6 +254,7 @@ export declare const actionChangeExportScale: {
253
254
  resetCustomPen?: any;
254
255
  gridColor: string;
255
256
  dynamicStyle: string;
257
+ invertBindingBehaviour: boolean;
256
258
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
257
259
  };
258
260
  commitToHistory: false;
@@ -385,6 +387,7 @@ export declare const actionChangeExportBackground: {
385
387
  resetCustomPen?: any;
386
388
  gridColor: string;
387
389
  dynamicStyle: string;
390
+ invertBindingBehaviour: boolean;
388
391
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
389
392
  };
390
393
  commitToHistory: false;
@@ -517,6 +520,7 @@ export declare const actionChangeExportEmbedScene: {
517
520
  resetCustomPen?: any;
518
521
  gridColor: string;
519
522
  dynamicStyle: string;
523
+ invertBindingBehaviour: boolean;
520
524
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
521
525
  };
522
526
  commitToHistory: false;
@@ -648,6 +652,7 @@ export declare const actionSaveToActiveFile: {
648
652
  resetCustomPen?: any;
649
653
  gridColor: string;
650
654
  dynamicStyle: string;
655
+ invertBindingBehaviour: boolean;
651
656
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
652
657
  };
653
658
  } | {
@@ -783,6 +788,7 @@ export declare const actionSaveFileToDisk: {
783
788
  resetCustomPen?: any;
784
789
  gridColor: string;
785
790
  dynamicStyle: string;
791
+ invertBindingBehaviour: boolean;
786
792
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
787
793
  };
788
794
  } | {
@@ -915,6 +921,7 @@ export declare const actionLoadScene: {
915
921
  resetCustomPen?: any;
916
922
  gridColor: string;
917
923
  dynamicStyle: string;
924
+ invertBindingBehaviour: boolean;
918
925
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
919
926
  };
920
927
  files: import("../types").BinaryFiles;
@@ -1038,6 +1045,7 @@ export declare const actionLoadScene: {
1038
1045
  resetCustomPen?: any;
1039
1046
  gridColor: string;
1040
1047
  dynamicStyle: string;
1048
+ invertBindingBehaviour: boolean;
1041
1049
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1042
1050
  };
1043
1051
  files: import("../types").BinaryFiles;
@@ -1171,6 +1179,7 @@ export declare const actionExportWithDarkMode: {
1171
1179
  resetCustomPen?: any;
1172
1180
  gridColor: string;
1173
1181
  dynamicStyle: string;
1182
+ invertBindingBehaviour: boolean;
1174
1183
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1175
1184
  };
1176
1185
  commitToHistory: false;
@@ -123,6 +123,7 @@ export declare const actionFinalize: {
123
123
  resetCustomPen?: any;
124
124
  gridColor: string;
125
125
  dynamicStyle: string;
126
+ invertBindingBehaviour: boolean;
126
127
  selectedLinearElement: LinearElementEditor | null;
127
128
  };
128
129
  commitToHistory: true;
@@ -246,6 +247,7 @@ export declare const actionFinalize: {
246
247
  resetCustomPen?: any;
247
248
  gridColor: string;
248
249
  dynamicStyle: string;
250
+ invertBindingBehaviour: boolean;
249
251
  };
250
252
  commitToHistory: boolean;
251
253
  };
@@ -125,6 +125,7 @@ export declare const actionToggleLinearEditor: {
125
125
  resetCustomPen?: any;
126
126
  gridColor: string;
127
127
  dynamicStyle: string;
128
+ invertBindingBehaviour: boolean;
128
129
  selectedLinearElement: LinearElementEditor | null;
129
130
  };
130
131
  commitToHistory: false;
@@ -122,6 +122,7 @@ export declare const actionToggleCanvasMenu: {
122
122
  resetCustomPen?: any;
123
123
  gridColor: string;
124
124
  dynamicStyle: string;
125
+ invertBindingBehaviour: boolean;
125
126
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
126
127
  };
127
128
  commitToHistory: false;
@@ -253,6 +254,7 @@ export declare const actionToggleEditMenu: {
253
254
  resetCustomPen?: any;
254
255
  gridColor: string;
255
256
  dynamicStyle: string;
257
+ invertBindingBehaviour: boolean;
256
258
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
257
259
  };
258
260
  commitToHistory: false;
@@ -271,9 +273,9 @@ export declare const actionFullScreen: {
271
273
  perform: () => {
272
274
  commitToHistory: false;
273
275
  };
274
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
276
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false;
275
277
  } & {
276
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
278
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => false) | undefined;
277
279
  };
278
280
  export declare const actionShortcuts: {
279
281
  name: "toggleShortcuts";
@@ -400,6 +402,7 @@ export declare const actionShortcuts: {
400
402
  resetCustomPen?: any;
401
403
  gridColor: string;
402
404
  dynamicStyle: string;
405
+ invertBindingBehaviour: boolean;
403
406
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
404
407
  };
405
408
  commitToHistory: false;
@@ -139,6 +139,7 @@ export declare const actionChangeFillStyle: {
139
139
  resetCustomPen?: any;
140
140
  gridColor: string;
141
141
  dynamicStyle: string;
142
+ invertBindingBehaviour: boolean;
142
143
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
143
144
  };
144
145
  commitToHistory: true;
@@ -269,6 +270,7 @@ export declare const actionChangeStrokeWidth: {
269
270
  resetCustomPen?: any;
270
271
  gridColor: string;
271
272
  dynamicStyle: string;
273
+ invertBindingBehaviour: boolean;
272
274
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
273
275
  };
274
276
  commitToHistory: true;
@@ -399,6 +401,7 @@ export declare const actionChangeSloppiness: {
399
401
  resetCustomPen?: any;
400
402
  gridColor: string;
401
403
  dynamicStyle: string;
404
+ invertBindingBehaviour: boolean;
402
405
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
403
406
  };
404
407
  commitToHistory: true;
@@ -529,6 +532,7 @@ export declare const actionChangeStrokeStyle: {
529
532
  resetCustomPen?: any;
530
533
  gridColor: string;
531
534
  dynamicStyle: string;
535
+ invertBindingBehaviour: boolean;
532
536
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
533
537
  };
534
538
  commitToHistory: true;
@@ -659,6 +663,7 @@ export declare const actionChangeOpacity: {
659
663
  resetCustomPen?: any;
660
664
  gridColor: string;
661
665
  dynamicStyle: string;
666
+ invertBindingBehaviour: boolean;
662
667
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
663
668
  };
664
669
  commitToHistory: true;
@@ -789,6 +794,7 @@ export declare const actionChangeFontSize: {
789
794
  resetCustomPen?: any;
790
795
  gridColor: string;
791
796
  dynamicStyle: string;
797
+ invertBindingBehaviour: boolean;
792
798
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
793
799
  };
794
800
  commitToHistory: boolean;
@@ -919,6 +925,7 @@ export declare const actionDecreaseFontSize: {
919
925
  resetCustomPen?: any;
920
926
  gridColor: string;
921
927
  dynamicStyle: string;
928
+ invertBindingBehaviour: boolean;
922
929
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
923
930
  };
924
931
  commitToHistory: boolean;
@@ -1049,6 +1056,7 @@ export declare const actionIncreaseFontSize: {
1049
1056
  resetCustomPen?: any;
1050
1057
  gridColor: string;
1051
1058
  dynamicStyle: string;
1059
+ invertBindingBehaviour: boolean;
1052
1060
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1053
1061
  };
1054
1062
  commitToHistory: boolean;
@@ -1179,6 +1187,7 @@ export declare const actionChangeFontFamily: {
1179
1187
  resetCustomPen?: any;
1180
1188
  gridColor: string;
1181
1189
  dynamicStyle: string;
1190
+ invertBindingBehaviour: boolean;
1182
1191
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1183
1192
  };
1184
1193
  commitToHistory: true;
@@ -1309,6 +1318,7 @@ export declare const actionChangeTextAlign: {
1309
1318
  resetCustomPen?: any;
1310
1319
  gridColor: string;
1311
1320
  dynamicStyle: string;
1321
+ invertBindingBehaviour: boolean;
1312
1322
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1313
1323
  };
1314
1324
  commitToHistory: true;
@@ -1441,6 +1451,7 @@ export declare const actionChangeVerticalAlign: {
1441
1451
  resetCustomPen?: any;
1442
1452
  gridColor: string;
1443
1453
  dynamicStyle: string;
1454
+ invertBindingBehaviour: boolean;
1444
1455
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1445
1456
  };
1446
1457
  commitToHistory: true;
@@ -1571,6 +1582,7 @@ export declare const actionChangeRoundness: {
1571
1582
  resetCustomPen?: any;
1572
1583
  gridColor: string;
1573
1584
  dynamicStyle: string;
1585
+ invertBindingBehaviour: boolean;
1574
1586
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1575
1587
  };
1576
1588
  commitToHistory: true;
@@ -1704,6 +1716,7 @@ export declare const actionChangeArrowhead: {
1704
1716
  resetCustomPen?: any;
1705
1717
  gridColor: string;
1706
1718
  dynamicStyle: string;
1719
+ invertBindingBehaviour: boolean;
1707
1720
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
1708
1721
  };
1709
1722
  commitToHistory: true;
@@ -121,6 +121,7 @@ export declare const actionCopyStyles: {
121
121
  resetCustomPen?: any;
122
122
  gridColor: string;
123
123
  dynamicStyle: string;
124
+ invertBindingBehaviour: boolean;
124
125
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
125
126
  };
126
127
  commitToHistory: false;
@@ -125,6 +125,7 @@ export declare const actionToggleGridMode: {
125
125
  resetCustomPen?: any;
126
126
  gridColor: string;
127
127
  dynamicStyle: string;
128
+ invertBindingBehaviour: boolean;
128
129
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
129
130
  };
130
131
  commitToHistory: false;
@@ -125,6 +125,7 @@ export declare const actionToggleLock: {
125
125
  resetCustomPen?: any;
126
126
  gridColor: string;
127
127
  dynamicStyle: string;
128
+ invertBindingBehaviour: boolean;
128
129
  };
129
130
  commitToHistory: true;
130
131
  };
@@ -123,6 +123,7 @@ export declare const actionToggleStats: {
123
123
  resetCustomPen?: any;
124
124
  gridColor: string;
125
125
  dynamicStyle: string;
126
+ invertBindingBehaviour: boolean;
126
127
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
127
128
  };
128
129
  commitToHistory: false;
@@ -124,6 +124,7 @@ export declare const actionToggleViewMode: {
124
124
  resetCustomPen?: any;
125
125
  gridColor: string;
126
126
  dynamicStyle: string;
127
+ invertBindingBehaviour: boolean;
127
128
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
128
129
  };
129
130
  commitToHistory: false;
@@ -124,6 +124,7 @@ export declare const actionToggleZenMode: {
124
124
  resetCustomPen?: any;
125
125
  gridColor: string;
126
126
  dynamicStyle: string;
127
+ invertBindingBehaviour: boolean;
127
128
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
128
129
  };
129
130
  commitToHistory: false;
@@ -15,7 +15,7 @@ export declare type ActionResult = {
15
15
  declare type ActionFn = (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
16
16
  export declare type UpdaterFn = (res: ActionResult) => void;
17
17
  export declare type ActionFilterFn = (action: Action) => void;
18
- export declare type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeOpacity" | "changeFontSize" | "toggleCanvasMenu" | "toggleEditMenu" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToSelection" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "addToLibrary" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "flipHorizontal" | "flipVertical" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "toggleLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "createContainerFromText";
18
+ export declare type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeOpacity" | "changeFontSize" | "toggleCanvasMenu" | "toggleEditMenu" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToSelection" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "addToLibrary" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "flipHorizontal" | "flipVertical" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "toggleLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "wrapTextInContainer";
19
19
  export declare type PanelComponentProps = {
20
20
  elements: readonly ExcalidrawElement[];
21
21
  appState: AppState;
@@ -1,5 +1,5 @@
1
1
  import { AppProps } from "./types";
2
- import { FontFamilyValues } from "./element/types";
2
+ import { ExcalidrawElement, FontFamilyValues } from "./element/types";
3
3
  export declare const isDarwin: boolean;
4
4
  export declare const isWindows: boolean;
5
5
  export declare const isAndroid: boolean;
@@ -85,19 +85,32 @@ export declare const DEFAULT_VERTICAL_ALIGN = "top";
85
85
  export declare const DEFAULT_VERSION = "{version}";
86
86
  export declare const CANVAS_ONLY_ACTIONS: string[];
87
87
  export declare const GRID_SIZE = 20;
88
+ export declare const IMAGE_MIME_TYPES: {
89
+ readonly svg: "image/svg+xml";
90
+ readonly png: "image/png";
91
+ readonly jpg: "image/jpeg";
92
+ readonly gif: "image/gif";
93
+ readonly webp: "image/webp";
94
+ readonly bmp: "image/bmp";
95
+ readonly ico: "image/x-icon";
96
+ readonly avif: "image/avif";
97
+ readonly jfif: "image/jfif";
98
+ };
88
99
  export declare const MIME_TYPES: {
89
- readonly excalidraw: "application/vnd.excalidraw+json";
90
- readonly excalidrawlib: "application/vnd.excalidrawlib+json";
91
- readonly json: "application/json";
92
100
  readonly svg: "image/svg+xml";
93
- readonly "excalidraw.svg": "image/svg+xml";
94
101
  readonly png: "image/png";
95
- readonly "excalidraw.png": "image/png";
96
102
  readonly jpg: "image/jpeg";
97
103
  readonly gif: "image/gif";
98
104
  readonly webp: "image/webp";
99
105
  readonly bmp: "image/bmp";
100
106
  readonly ico: "image/x-icon";
107
+ readonly avif: "image/avif";
108
+ readonly jfif: "image/jfif";
109
+ readonly json: "application/json";
110
+ readonly excalidraw: "application/vnd.excalidraw+json";
111
+ readonly excalidrawlib: "application/vnd.excalidrawlib+json";
112
+ readonly "excalidraw.svg": "image/svg+xml";
113
+ readonly "excalidraw.png": "image/png";
101
114
  readonly binary: "application/octet-stream";
102
115
  };
103
116
  export declare const EXPORT_DATA_TYPES: {
@@ -135,7 +148,6 @@ export declare const MAX_DECIMALS_FOR_SVG_EXPORT = 2;
135
148
  export declare const EXPORT_SCALES: number[];
136
149
  export declare const DEFAULT_EXPORT_PADDING = 10;
137
150
  export declare const DEFAULT_MAX_IMAGE_WIDTH_OR_HEIGHT = 1440;
138
- export declare const ALLOWED_IMAGE_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/svg+xml", "image/gif", "image/webp", "image/bmp", "image/x-icon"];
139
151
  export declare const MAX_ALLOWED_FILE_BYTES: number;
140
152
  export declare const SVG_NS = "http://www.w3.org/2000/svg";
141
153
  export declare const ENCRYPTION_KEY_BITS = 128;
@@ -168,3 +180,13 @@ export declare const PRECEDING_ELEMENT_KEY = "__precedingElement__";
168
180
  export declare const COLOR_NAMES: {
169
181
  [key: string]: string;
170
182
  };
183
+ export declare const DEFAULT_ELEMENT_PROPS: {
184
+ strokeColor: ExcalidrawElement["strokeColor"];
185
+ backgroundColor: ExcalidrawElement["backgroundColor"];
186
+ fillStyle: ExcalidrawElement["fillStyle"];
187
+ strokeWidth: ExcalidrawElement["strokeWidth"];
188
+ strokeStyle: ExcalidrawElement["strokeStyle"];
189
+ roughness: ExcalidrawElement["roughness"];
190
+ opacity: ExcalidrawElement["opacity"];
191
+ locked: ExcalidrawElement["locked"];
192
+ };
@@ -1,4 +1,4 @@
1
- import { ALLOWED_IMAGE_MIME_TYPES, MIME_TYPES } from "../constants";
1
+ import { IMAGE_MIME_TYPES, MIME_TYPES } from "../constants";
2
2
  import { ExcalidrawElement, FileId } from "../element/types";
3
3
  import { AppState, DataURL, LibraryItem } from "../types";
4
4
  import { ValueOf } from "../utility-types";
@@ -9,7 +9,7 @@ export declare const getFileHandleType: (handle: FileSystemHandle | null) => str
9
9
  export declare const isImageFileHandleType: (type: string | null) => type is "svg" | "png";
10
10
  export declare const isImageFileHandle: (handle: FileSystemHandle | null) => boolean;
11
11
  export declare const isSupportedImageFile: (blob: Blob | null | undefined) => blob is Blob & {
12
- type: (typeof ALLOWED_IMAGE_MIME_TYPES)[number];
12
+ type: ValueOf<typeof IMAGE_MIME_TYPES>;
13
13
  };
14
14
  export declare const loadSceneOrLibraryFromBlob: (blob: Blob | File, localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | null, fileHandle?: FileSystemHandle | null) => Promise<{
15
15
  type: "application/vnd.excalidraw+json";
@@ -1,5 +1,6 @@
1
1
  import { FileSystemHandle, supported as nativeFileSystemSupported } from "browser-fs-access";
2
- declare type FILE_EXTENSION = "gif" | "jpg" | "png" | "excalidraw.png" | "svg" | "excalidraw.svg" | "json" | "excalidraw" | "excalidrawlib";
2
+ import { MIME_TYPES } from "../constants";
3
+ declare type FILE_EXTENSION = Exclude<keyof typeof MIME_TYPES, "binary">;
3
4
  export declare const fileOpen: <M extends boolean | undefined = false>(opts: {
4
5
  extensions?: FILE_EXTENSION[] | undefined;
5
6
  description: string;
@@ -132,6 +132,7 @@ export declare const actionLink: {
132
132
  resetCustomPen?: any;
133
133
  gridColor: string;
134
134
  dynamicStyle: string;
135
+ invertBindingBehaviour: boolean;
135
136
  selectedLinearElement: import("./linearElementEditor").LinearElementEditor | null;
136
137
  };
137
138
  commitToHistory: true;
@@ -10,7 +10,17 @@ export declare const updateImageCache: ({ fileIds, files, imageCache, }: {
10
10
  }) => Promise<{
11
11
  imageCache: Map<FileId, {
12
12
  image: HTMLImageElement | Promise<HTMLImageElement>;
13
- mimeType: "image/svg+xml" | "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/bmp" | "image/x-icon";
13
+ mimeType: import("../utility-types").ValueOf<{
14
+ readonly svg: "image/svg+xml";
15
+ readonly png: "image/png";
16
+ readonly jpg: "image/jpeg";
17
+ readonly gif: "image/gif";
18
+ readonly webp: "image/webp";
19
+ readonly bmp: "image/bmp";
20
+ readonly ico: "image/x-icon";
21
+ readonly avif: "image/avif";
22
+ readonly jfif: "image/jfif";
23
+ }>;
14
24
  }>;
15
25
  /** includes errored files because they cache was updated nonetheless */
16
26
  updatedFiles: Map<FileId, true>;
@@ -138,10 +138,7 @@ export declare class LinearElementEditor {
138
138
  isBindingEnabled: boolean;
139
139
  startBoundElement: NonDeleted<ExcalidrawBindableElement> | null;
140
140
  suggestedBindings: import("./binding").SuggestedBinding[];
141
- editingElement: import("./types").NonDeletedExcalidrawElement | null; /**
142
- * @param id the `elementId` from the instance of this class (so that we can
143
- * statically guarantee this method returns an ExcalidrawLinearElement)
144
- */
141
+ editingElement: import("./types").NonDeletedExcalidrawElement | null;
145
142
  activeTool: {
146
143
  lastActiveTool: import("../types").LastActiveTool;
147
144
  locked: boolean;
@@ -241,6 +238,7 @@ export declare class LinearElementEditor {
241
238
  resetCustomPen?: any;
242
239
  gridColor: string;
243
240
  dynamicStyle: string;
241
+ invertBindingBehaviour: boolean;
244
242
  selectedLinearElement: LinearElementEditor | null;
245
243
  };
246
244
  };