@zsviczian/excalidraw 0.16.1-obsidian-8 → 0.17.0-obsidian-2

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.
Files changed (87) hide show
  1. package/dist/excalidraw.development.js +407 -110
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/dist/excalidraw.production.min.js.LICENSE.txt +1 -1
  4. package/main.js +7 -1
  5. package/package.json +1 -1
  6. package/types/actions/actionAddToLibrary.d.ts +33 -6
  7. package/types/actions/actionBoundText.d.ts +22 -4
  8. package/types/actions/actionCanvas.d.ts +144 -27
  9. package/types/actions/actionClipboard.d.ts +77 -14
  10. package/types/actions/actionDeleteSelected.d.ts +33 -6
  11. package/types/actions/actionElementLock.d.ts +22 -4
  12. package/types/actions/actionExport.d.ts +96 -23
  13. package/types/actions/actionFinalize.d.ts +22 -4
  14. package/types/actions/actionFrame.d.ts +33 -6
  15. package/types/actions/actionGroup.d.ts +23 -5
  16. package/types/actions/actionLinearEditor.d.ts +11 -2
  17. package/types/actions/actionMenu.d.ts +27 -20
  18. package/types/actions/actionProperties.d.ts +143 -26
  19. package/types/actions/actionSelectAll.d.ts +11 -2
  20. package/types/actions/actionStyles.d.ts +11 -2
  21. package/types/actions/actionToggleGridMode.d.ts +11 -2
  22. package/types/actions/actionToggleObjectsSnapMode.d.ts +11 -2
  23. package/types/actions/actionToggleStats.d.ts +11 -2
  24. package/types/actions/actionToggleViewMode.d.ts +11 -2
  25. package/types/actions/actionToggleZenMode.d.ts +11 -2
  26. package/types/actions/index.d.ts +1 -1
  27. package/types/appState.d.ts +3 -3
  28. package/types/components/Actions.d.ts +3 -2
  29. package/types/components/App.d.ts +43 -13
  30. package/types/components/Button.d.ts +1 -1
  31. package/types/components/ImageExportDialog.d.ts +1 -1
  32. package/types/components/InlineIcon.d.ts +3 -0
  33. package/types/components/LayerUI.d.ts +6 -2
  34. package/types/components/MagicButton.d.ts +9 -0
  35. package/types/components/MagicSettings.d.ts +8 -0
  36. package/types/components/MobileMenu.d.ts +4 -3
  37. package/types/components/Paragraph.d.ts +4 -0
  38. package/types/components/TTDDialog/MermaidToExcalidraw.d.ts +13 -0
  39. package/types/components/TTDDialog/TTDDialog.d.ts +29 -0
  40. package/types/components/TTDDialog/TTDDialogInput.d.ts +9 -0
  41. package/types/components/TTDDialog/TTDDialogOutput.d.ts +7 -0
  42. package/types/components/TTDDialog/TTDDialogPanel.d.ts +16 -0
  43. package/types/components/TTDDialog/TTDDialogPanels.d.ts +4 -0
  44. package/types/components/TTDDialog/TTDDialogTab.d.ts +7 -0
  45. package/types/components/TTDDialog/TTDDialogTabTrigger.d.ts +8 -0
  46. package/types/components/TTDDialog/TTDDialogTabTriggers.d.ts +6 -0
  47. package/types/components/TTDDialog/TTDDialogTabs.d.ts +9 -0
  48. package/types/components/TTDDialog/TTDDialogTrigger.d.ts +8 -0
  49. package/types/components/TTDDialog/common.d.ts +33 -0
  50. package/types/components/TextField.d.ts +16 -0
  51. package/types/components/dropdownMenu/DropdownMenu.d.ts +6 -0
  52. package/types/components/dropdownMenu/DropdownMenuItem.d.ts +12 -0
  53. package/types/components/icons.d.ts +6 -0
  54. package/types/components/main-menu/MainMenu.d.ts +6 -0
  55. package/types/constants.d.ts +30 -3
  56. package/types/context/tunnels.d.ts +1 -0
  57. package/types/data/EditorLocalStorage.d.ts +8 -0
  58. package/types/data/ai/types.d.ts +242 -0
  59. package/types/data/index.d.ts +10 -2
  60. package/types/data/magic.d.ts +23 -0
  61. package/types/data/transform.d.ts +11 -7
  62. package/types/element/ElementCanvasButtons.d.ts +6 -0
  63. package/types/element/Hyperlink.d.ts +11 -2
  64. package/types/element/collision.d.ts +2 -2
  65. package/types/element/embeddable.d.ts +17 -21
  66. package/types/element/index.d.ts +3 -4
  67. package/types/element/linearElementEditor.d.ts +11 -2
  68. package/types/element/newElement.d.ts +7 -1
  69. package/types/element/textElement.d.ts +2 -2
  70. package/types/element/typeChecks.d.ts +10 -7
  71. package/types/element/types.d.ts +31 -2
  72. package/types/errors.d.ts +5 -0
  73. package/types/frame.d.ts +31 -20
  74. package/types/packages/excalidraw/index.d.ts +5 -3
  75. package/types/packages/excalidraw/webpack.preact.config.d.ts +170 -0
  76. package/types/packages/utils.d.ts +5 -4
  77. package/types/packages/withinBounds.d.ts +2 -2
  78. package/types/renderer/renderElement.d.ts +6 -1
  79. package/types/renderer/renderScene.d.ts +10 -5
  80. package/types/scene/Scene.d.ts +11 -6
  81. package/types/scene/ShapeCache.d.ts +1 -1
  82. package/types/scene/comparisons.d.ts +7 -6
  83. package/types/scene/export.d.ts +6 -5
  84. package/types/scene/types.d.ts +2 -0
  85. package/types/shapes.d.ts +1 -1
  86. package/types/types.d.ts +42 -25
  87. package/types/utils.d.ts +8 -3
@@ -43,4 +43,4 @@ https://github.com/nodeca/pica
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
45
 
46
- //!device.isMobile && //zsviczian
46
+ //!device.editor.isMobile && //zsviczian
package/main.js CHANGED
@@ -1,4 +1,10 @@
1
- if (process.env.NODE_ENV === "production") {
1
+ if (process.env.IS_PREACT === "true") {
2
+ if (process.env.NODE_ENV === "production") {
3
+ module.exports = require("./dist/excalidraw-with-preact.production.min.js");
4
+ } else {
5
+ module.exports = require("./dist/excalidraw-with-preact.development.js");
6
+ }
7
+ } else if (process.env.NODE_ENV === "production") {
2
8
  module.exports = require("./dist/excalidraw.production.min.js");
3
9
  } else {
4
10
  module.exports = require("./dist/excalidraw.development.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.16.1-obsidian-8",
3
+ "version": "0.17.0-obsidian-2",
4
4
  "main": "main.js",
5
5
  "types": "types/packages/excalidraw/index.d.ts",
6
6
  "files": [
@@ -28,7 +28,7 @@ export declare const actionAddToLibrary: {
28
28
  isBindingEnabled: boolean;
29
29
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
30
30
  suggestedBindings: import("../element/binding").SuggestedBinding[];
31
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
31
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
32
32
  frameRendering: {
33
33
  enabled: boolean;
34
34
  name: boolean;
@@ -79,7 +79,15 @@ export declare const actionAddToLibrary: {
79
79
  name: string;
80
80
  tab?: string | undefined;
81
81
  } | null;
82
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
82
+ openDialog: {
83
+ name: "imageExport" | "help" | "jsonExport";
84
+ } | {
85
+ name: "magicSettings";
86
+ source: "tool" | "generation" | "settings";
87
+ } | {
88
+ name: "ttd";
89
+ tab: string;
90
+ } | null;
83
91
  defaultSidebarDockedPreference: boolean;
84
92
  lastPointerDownWith: import("../element/types").PointerType;
85
93
  selectedElementIds: Readonly<{
@@ -145,6 +153,7 @@ export declare const actionAddToLibrary: {
145
153
  frameColor: {
146
154
  stroke: string;
147
155
  fill: string;
156
+ nameColor: string;
148
157
  };
149
158
  invertBindingBehaviour: boolean;
150
159
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -177,7 +186,7 @@ export declare const actionAddToLibrary: {
177
186
  isBindingEnabled: boolean;
178
187
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
179
188
  suggestedBindings: import("../element/binding").SuggestedBinding[];
180
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
189
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
181
190
  frameRendering: {
182
191
  enabled: boolean;
183
192
  name: boolean;
@@ -228,7 +237,15 @@ export declare const actionAddToLibrary: {
228
237
  name: string;
229
238
  tab?: string | undefined;
230
239
  } | null;
231
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
240
+ openDialog: {
241
+ name: "imageExport" | "help" | "jsonExport";
242
+ } | {
243
+ name: "magicSettings";
244
+ source: "tool" | "generation" | "settings";
245
+ } | {
246
+ name: "ttd";
247
+ tab: string;
248
+ } | null;
232
249
  defaultSidebarDockedPreference: boolean;
233
250
  lastPointerDownWith: import("../element/types").PointerType;
234
251
  selectedElementIds: Readonly<{
@@ -299,6 +316,7 @@ export declare const actionAddToLibrary: {
299
316
  frameColor: {
300
317
  stroke: string;
301
318
  fill: string;
319
+ nameColor: string;
302
320
  };
303
321
  invertBindingBehaviour: boolean;
304
322
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -331,7 +349,7 @@ export declare const actionAddToLibrary: {
331
349
  isBindingEnabled: boolean;
332
350
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
333
351
  suggestedBindings: import("../element/binding").SuggestedBinding[];
334
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
352
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
335
353
  frameRendering: {
336
354
  enabled: boolean;
337
355
  name: boolean;
@@ -382,7 +400,15 @@ export declare const actionAddToLibrary: {
382
400
  name: string;
383
401
  tab?: string | undefined;
384
402
  } | null;
385
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
403
+ openDialog: {
404
+ name: "imageExport" | "help" | "jsonExport";
405
+ } | {
406
+ name: "magicSettings";
407
+ source: "tool" | "generation" | "settings";
408
+ } | {
409
+ name: "ttd";
410
+ tab: string;
411
+ } | null;
386
412
  defaultSidebarDockedPreference: boolean;
387
413
  lastPointerDownWith: import("../element/types").PointerType;
388
414
  selectedElementIds: Readonly<{
@@ -453,6 +479,7 @@ export declare const actionAddToLibrary: {
453
479
  frameColor: {
454
480
  stroke: string;
455
481
  fill: string;
482
+ nameColor: string;
456
483
  };
457
484
  invertBindingBehaviour: boolean;
458
485
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -48,7 +48,7 @@ export declare const actionBindText: {
48
48
  isBindingEnabled: boolean;
49
49
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
50
50
  suggestedBindings: import("../element/binding").SuggestedBinding[];
51
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
51
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
52
52
  frameRendering: {
53
53
  enabled: boolean;
54
54
  name: boolean;
@@ -99,7 +99,15 @@ export declare const actionBindText: {
99
99
  name: string;
100
100
  tab?: string | undefined;
101
101
  } | null;
102
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
102
+ openDialog: {
103
+ name: "imageExport" | "help" | "jsonExport";
104
+ } | {
105
+ name: "magicSettings";
106
+ source: "tool" | "generation" | "settings";
107
+ } | {
108
+ name: "ttd";
109
+ tab: string;
110
+ } | null;
103
111
  defaultSidebarDockedPreference: boolean;
104
112
  lastPointerDownWith: import("../element/types").PointerType;
105
113
  previousSelectedElementIds: {
@@ -167,6 +175,7 @@ export declare const actionBindText: {
167
175
  frameColor: {
168
176
  stroke: string;
169
177
  fill: string;
178
+ nameColor: string;
170
179
  };
171
180
  invertBindingBehaviour: boolean;
172
181
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -214,7 +223,7 @@ export declare const actionWrapTextInContainer: {
214
223
  isBindingEnabled: boolean;
215
224
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
216
225
  suggestedBindings: import("../element/binding").SuggestedBinding[];
217
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
226
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
218
227
  frameRendering: {
219
228
  enabled: boolean;
220
229
  name: boolean;
@@ -265,7 +274,15 @@ export declare const actionWrapTextInContainer: {
265
274
  name: string;
266
275
  tab?: string | undefined;
267
276
  } | null;
268
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
277
+ openDialog: {
278
+ name: "imageExport" | "help" | "jsonExport";
279
+ } | {
280
+ name: "magicSettings";
281
+ source: "tool" | "generation" | "settings";
282
+ } | {
283
+ name: "ttd";
284
+ tab: string;
285
+ } | null;
269
286
  defaultSidebarDockedPreference: boolean;
270
287
  lastPointerDownWith: import("../element/types").PointerType;
271
288
  previousSelectedElementIds: {
@@ -333,6 +350,7 @@ export declare const actionWrapTextInContainer: {
333
350
  frameColor: {
334
351
  stroke: string;
335
352
  fill: string;
353
+ nameColor: string;
336
354
  };
337
355
  invertBindingBehaviour: boolean;
338
356
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -55,7 +55,6 @@ export declare const actionClearCanvas: {
55
55
  allowWheelZoom: boolean | undefined;
56
56
  pinnedScripts: string[] | undefined;
57
57
  customPens: any[] | undefined;
58
- name: string;
59
58
  contextMenu: {
60
59
  items: import("../components/ContextMenu").ContextMenuItems;
61
60
  top: number;
@@ -75,7 +74,7 @@ export declare const actionClearCanvas: {
75
74
  isBindingEnabled: boolean;
76
75
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
77
76
  suggestedBindings: import("../element/binding").SuggestedBinding[];
78
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
77
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
79
78
  frameRendering: {
80
79
  enabled: boolean;
81
80
  name: boolean;
@@ -106,6 +105,7 @@ export declare const actionClearCanvas: {
106
105
  scrollY: number;
107
106
  cursorButton: "up" | "down";
108
107
  scrolledOutside: boolean;
108
+ name: string;
109
109
  isResizing: boolean;
110
110
  isRotating: boolean;
111
111
  zoom: Readonly<{
@@ -117,7 +117,15 @@ export declare const actionClearCanvas: {
117
117
  name: string;
118
118
  tab?: string | undefined;
119
119
  } | null;
120
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
120
+ openDialog: {
121
+ name: "imageExport" | "help" | "jsonExport";
122
+ } | {
123
+ name: "magicSettings";
124
+ source: "tool" | "generation" | "settings";
125
+ } | {
126
+ name: "ttd";
127
+ tab: string;
128
+ } | null;
121
129
  defaultSidebarDockedPreference: boolean;
122
130
  lastPointerDownWith: import("../element/types").PointerType;
123
131
  selectedElementIds: Readonly<{
@@ -159,6 +167,7 @@ export declare const actionClearCanvas: {
159
167
  frameColor: {
160
168
  stroke: string;
161
169
  fill: string;
170
+ nameColor: string;
162
171
  };
163
172
  invertBindingBehaviour: boolean;
164
173
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -206,7 +215,7 @@ export declare const actionZoomIn: {
206
215
  isBindingEnabled: boolean;
207
216
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
208
217
  suggestedBindings: import("../element/binding").SuggestedBinding[];
209
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
218
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
210
219
  frameRendering: {
211
220
  enabled: boolean;
212
221
  name: boolean;
@@ -252,7 +261,15 @@ export declare const actionZoomIn: {
252
261
  name: string;
253
262
  tab?: string | undefined;
254
263
  } | null;
255
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
264
+ openDialog: {
265
+ name: "imageExport" | "help" | "jsonExport";
266
+ } | {
267
+ name: "magicSettings";
268
+ source: "tool" | "generation" | "settings";
269
+ } | {
270
+ name: "ttd";
271
+ tab: string;
272
+ } | null;
256
273
  defaultSidebarDockedPreference: boolean;
257
274
  lastPointerDownWith: import("../element/types").PointerType;
258
275
  selectedElementIds: Readonly<{
@@ -323,6 +340,7 @@ export declare const actionZoomIn: {
323
340
  frameColor: {
324
341
  stroke: string;
325
342
  fill: string;
343
+ nameColor: string;
326
344
  };
327
345
  invertBindingBehaviour: boolean;
328
346
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -372,7 +390,7 @@ export declare const actionZoomOut: {
372
390
  isBindingEnabled: boolean;
373
391
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
374
392
  suggestedBindings: import("../element/binding").SuggestedBinding[];
375
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
393
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
376
394
  frameRendering: {
377
395
  enabled: boolean;
378
396
  name: boolean;
@@ -418,7 +436,15 @@ export declare const actionZoomOut: {
418
436
  name: string;
419
437
  tab?: string | undefined;
420
438
  } | null;
421
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
439
+ openDialog: {
440
+ name: "imageExport" | "help" | "jsonExport";
441
+ } | {
442
+ name: "magicSettings";
443
+ source: "tool" | "generation" | "settings";
444
+ } | {
445
+ name: "ttd";
446
+ tab: string;
447
+ } | null;
422
448
  defaultSidebarDockedPreference: boolean;
423
449
  lastPointerDownWith: import("../element/types").PointerType;
424
450
  selectedElementIds: Readonly<{
@@ -489,6 +515,7 @@ export declare const actionZoomOut: {
489
515
  frameColor: {
490
516
  stroke: string;
491
517
  fill: string;
518
+ nameColor: string;
492
519
  };
493
520
  invertBindingBehaviour: boolean;
494
521
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -538,7 +565,7 @@ export declare const actionResetZoom: {
538
565
  isBindingEnabled: boolean;
539
566
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
540
567
  suggestedBindings: import("../element/binding").SuggestedBinding[];
541
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
568
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
542
569
  frameRendering: {
543
570
  enabled: boolean;
544
571
  name: boolean;
@@ -584,7 +611,15 @@ export declare const actionResetZoom: {
584
611
  name: string;
585
612
  tab?: string | undefined;
586
613
  } | null;
587
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
614
+ openDialog: {
615
+ name: "imageExport" | "help" | "jsonExport";
616
+ } | {
617
+ name: "magicSettings";
618
+ source: "tool" | "generation" | "settings";
619
+ } | {
620
+ name: "ttd";
621
+ tab: string;
622
+ } | null;
588
623
  defaultSidebarDockedPreference: boolean;
589
624
  lastPointerDownWith: import("../element/types").PointerType;
590
625
  selectedElementIds: Readonly<{
@@ -655,6 +690,7 @@ export declare const actionResetZoom: {
655
690
  frameColor: {
656
691
  stroke: string;
657
692
  fill: string;
693
+ nameColor: string;
658
694
  };
659
695
  invertBindingBehaviour: boolean;
660
696
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -705,7 +741,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
705
741
  isBindingEnabled: boolean;
706
742
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
707
743
  suggestedBindings: import("../element/binding").SuggestedBinding[];
708
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
744
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
709
745
  frameRendering: {
710
746
  enabled: boolean;
711
747
  name: boolean;
@@ -751,7 +787,15 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
751
787
  name: string;
752
788
  tab?: string | undefined;
753
789
  } | null;
754
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
790
+ openDialog: {
791
+ name: "imageExport" | "help" | "jsonExport";
792
+ } | {
793
+ name: "magicSettings";
794
+ source: "tool" | "generation" | "settings";
795
+ } | {
796
+ name: "ttd";
797
+ tab: string;
798
+ } | null;
755
799
  defaultSidebarDockedPreference: boolean;
756
800
  lastPointerDownWith: import("../element/types").PointerType;
757
801
  selectedElementIds: Readonly<{
@@ -822,6 +866,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
822
866
  frameColor: {
823
867
  stroke: string;
824
868
  fill: string;
869
+ nameColor: string;
825
870
  };
826
871
  invertBindingBehaviour: boolean;
827
872
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -865,7 +910,7 @@ export declare const actionZoomToFitSelectionInViewport: {
865
910
  isBindingEnabled: boolean;
866
911
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
867
912
  suggestedBindings: import("../element/binding").SuggestedBinding[];
868
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
913
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
869
914
  frameRendering: {
870
915
  enabled: boolean;
871
916
  name: boolean;
@@ -911,7 +956,15 @@ export declare const actionZoomToFitSelectionInViewport: {
911
956
  name: string;
912
957
  tab?: string | undefined;
913
958
  } | null;
914
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
959
+ openDialog: {
960
+ name: "imageExport" | "help" | "jsonExport";
961
+ } | {
962
+ name: "magicSettings";
963
+ source: "tool" | "generation" | "settings";
964
+ } | {
965
+ name: "ttd";
966
+ tab: string;
967
+ } | null;
915
968
  defaultSidebarDockedPreference: boolean;
916
969
  lastPointerDownWith: import("../element/types").PointerType;
917
970
  selectedElementIds: Readonly<{
@@ -982,6 +1035,7 @@ export declare const actionZoomToFitSelectionInViewport: {
982
1035
  frameColor: {
983
1036
  stroke: string;
984
1037
  fill: string;
1038
+ nameColor: string;
985
1039
  };
986
1040
  invertBindingBehaviour: boolean;
987
1041
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1029,7 +1083,7 @@ export declare const actionZoomToFitSelection: {
1029
1083
  isBindingEnabled: boolean;
1030
1084
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1031
1085
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1032
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1086
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1033
1087
  frameRendering: {
1034
1088
  enabled: boolean;
1035
1089
  name: boolean;
@@ -1075,7 +1129,15 @@ export declare const actionZoomToFitSelection: {
1075
1129
  name: string;
1076
1130
  tab?: string | undefined;
1077
1131
  } | null;
1078
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1132
+ openDialog: {
1133
+ name: "imageExport" | "help" | "jsonExport";
1134
+ } | {
1135
+ name: "magicSettings";
1136
+ source: "tool" | "generation" | "settings";
1137
+ } | {
1138
+ name: "ttd";
1139
+ tab: string;
1140
+ } | null;
1079
1141
  defaultSidebarDockedPreference: boolean;
1080
1142
  lastPointerDownWith: import("../element/types").PointerType;
1081
1143
  selectedElementIds: Readonly<{
@@ -1146,6 +1208,7 @@ export declare const actionZoomToFitSelection: {
1146
1208
  frameColor: {
1147
1209
  stroke: string;
1148
1210
  fill: string;
1211
+ nameColor: string;
1149
1212
  };
1150
1213
  invertBindingBehaviour: boolean;
1151
1214
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1194,7 +1257,7 @@ export declare const actionZoomToFit: {
1194
1257
  isBindingEnabled: boolean;
1195
1258
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1196
1259
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1197
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1260
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1198
1261
  frameRendering: {
1199
1262
  enabled: boolean;
1200
1263
  name: boolean;
@@ -1240,7 +1303,15 @@ export declare const actionZoomToFit: {
1240
1303
  name: string;
1241
1304
  tab?: string | undefined;
1242
1305
  } | null;
1243
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1306
+ openDialog: {
1307
+ name: "imageExport" | "help" | "jsonExport";
1308
+ } | {
1309
+ name: "magicSettings";
1310
+ source: "tool" | "generation" | "settings";
1311
+ } | {
1312
+ name: "ttd";
1313
+ tab: string;
1314
+ } | null;
1244
1315
  defaultSidebarDockedPreference: boolean;
1245
1316
  lastPointerDownWith: import("../element/types").PointerType;
1246
1317
  selectedElementIds: Readonly<{
@@ -1311,6 +1382,7 @@ export declare const actionZoomToFit: {
1311
1382
  frameColor: {
1312
1383
  stroke: string;
1313
1384
  fill: string;
1385
+ nameColor: string;
1314
1386
  };
1315
1387
  invertBindingBehaviour: boolean;
1316
1388
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1355,7 +1427,7 @@ export declare const actionToggleTheme: {
1355
1427
  isBindingEnabled: boolean;
1356
1428
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1357
1429
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1358
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1430
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1359
1431
  frameRendering: {
1360
1432
  enabled: boolean;
1361
1433
  name: boolean;
@@ -1406,7 +1478,15 @@ export declare const actionToggleTheme: {
1406
1478
  name: string;
1407
1479
  tab?: string | undefined;
1408
1480
  } | null;
1409
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1481
+ openDialog: {
1482
+ name: "imageExport" | "help" | "jsonExport";
1483
+ } | {
1484
+ name: "magicSettings";
1485
+ source: "tool" | "generation" | "settings";
1486
+ } | {
1487
+ name: "ttd";
1488
+ tab: string;
1489
+ } | null;
1410
1490
  defaultSidebarDockedPreference: boolean;
1411
1491
  lastPointerDownWith: import("../element/types").PointerType;
1412
1492
  selectedElementIds: Readonly<{
@@ -1476,6 +1556,7 @@ export declare const actionToggleTheme: {
1476
1556
  frameColor: {
1477
1557
  stroke: string;
1478
1558
  fill: string;
1559
+ nameColor: string;
1479
1560
  };
1480
1561
  invertBindingBehaviour: boolean;
1481
1562
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1522,7 +1603,7 @@ export declare const actionToggleEraserTool: {
1522
1603
  isBindingEnabled: boolean;
1523
1604
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1524
1605
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1525
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1606
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1526
1607
  frameRendering: {
1527
1608
  enabled: boolean;
1528
1609
  name: boolean;
@@ -1569,7 +1650,15 @@ export declare const actionToggleEraserTool: {
1569
1650
  name: string;
1570
1651
  tab?: string | undefined;
1571
1652
  } | null;
1572
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1653
+ openDialog: {
1654
+ name: "imageExport" | "help" | "jsonExport";
1655
+ } | {
1656
+ name: "magicSettings";
1657
+ source: "tool" | "generation" | "settings";
1658
+ } | {
1659
+ name: "ttd";
1660
+ tab: string;
1661
+ } | null;
1573
1662
  defaultSidebarDockedPreference: boolean;
1574
1663
  lastPointerDownWith: import("../element/types").PointerType;
1575
1664
  previousSelectedElementIds: {
@@ -1634,6 +1723,7 @@ export declare const actionToggleEraserTool: {
1634
1723
  frameColor: {
1635
1724
  stroke: string;
1636
1725
  fill: string;
1726
+ nameColor: string;
1637
1727
  };
1638
1728
  invertBindingBehaviour: boolean;
1639
1729
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1679,7 +1769,7 @@ export declare const actionToggleHandTool: {
1679
1769
  isBindingEnabled: boolean;
1680
1770
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1681
1771
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1682
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1772
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1683
1773
  frameRendering: {
1684
1774
  enabled: boolean;
1685
1775
  name: boolean;
@@ -1726,7 +1816,15 @@ export declare const actionToggleHandTool: {
1726
1816
  name: string;
1727
1817
  tab?: string | undefined;
1728
1818
  } | null;
1729
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1819
+ openDialog: {
1820
+ name: "imageExport" | "help" | "jsonExport";
1821
+ } | {
1822
+ name: "magicSettings";
1823
+ source: "tool" | "generation" | "settings";
1824
+ } | {
1825
+ name: "ttd";
1826
+ tab: string;
1827
+ } | null;
1730
1828
  defaultSidebarDockedPreference: boolean;
1731
1829
  lastPointerDownWith: import("../element/types").PointerType;
1732
1830
  previousSelectedElementIds: {
@@ -1791,6 +1889,7 @@ export declare const actionToggleHandTool: {
1791
1889
  frameColor: {
1792
1890
  stroke: string;
1793
1891
  fill: string;
1892
+ nameColor: string;
1794
1893
  };
1795
1894
  invertBindingBehaviour: boolean;
1796
1895
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1837,7 +1936,7 @@ export declare const actionToggleLaserPointer: {
1837
1936
  isBindingEnabled: boolean;
1838
1937
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1839
1938
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1840
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
1939
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1841
1940
  frameRendering: {
1842
1941
  enabled: boolean;
1843
1942
  name: boolean;
@@ -1884,7 +1983,15 @@ export declare const actionToggleLaserPointer: {
1884
1983
  name: string;
1885
1984
  tab?: string | undefined;
1886
1985
  } | null;
1887
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
1986
+ openDialog: {
1987
+ name: "imageExport" | "help" | "jsonExport";
1988
+ } | {
1989
+ name: "magicSettings";
1990
+ source: "tool" | "generation" | "settings";
1991
+ } | {
1992
+ name: "ttd";
1993
+ tab: string;
1994
+ } | null;
1888
1995
  defaultSidebarDockedPreference: boolean;
1889
1996
  lastPointerDownWith: import("../element/types").PointerType;
1890
1997
  previousSelectedElementIds: {
@@ -1949,6 +2056,7 @@ export declare const actionToggleLaserPointer: {
1949
2056
  frameColor: {
1950
2057
  stroke: string;
1951
2058
  fill: string;
2059
+ nameColor: string;
1952
2060
  };
1953
2061
  invertBindingBehaviour: boolean;
1954
2062
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
@@ -1992,7 +2100,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
1992
2100
  isBindingEnabled: boolean;
1993
2101
  startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
1994
2102
  suggestedBindings: import("../element/binding").SuggestedBinding[];
1995
- frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
2103
+ frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
1996
2104
  frameRendering: {
1997
2105
  enabled: boolean;
1998
2106
  name: boolean;
@@ -2038,7 +2146,15 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2038
2146
  name: string;
2039
2147
  tab?: string | undefined;
2040
2148
  } | null;
2041
- openDialog: "mermaid" | "imageExport" | "help" | "jsonExport" | null;
2149
+ openDialog: {
2150
+ name: "imageExport" | "help" | "jsonExport";
2151
+ } | {
2152
+ name: "magicSettings";
2153
+ source: "tool" | "generation" | "settings";
2154
+ } | {
2155
+ name: "ttd";
2156
+ tab: string;
2157
+ } | null;
2042
2158
  defaultSidebarDockedPreference: boolean;
2043
2159
  lastPointerDownWith: import("../element/types").PointerType;
2044
2160
  selectedElementIds: Readonly<{
@@ -2109,6 +2225,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
2109
2225
  frameColor: {
2110
2226
  stroke: string;
2111
2227
  fill: string;
2228
+ nameColor: string;
2112
2229
  };
2113
2230
  invertBindingBehaviour: boolean;
2114
2231
  selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;