@zsviczian/excalidraw 0.18.0-30-printFrame-test-1 → 0.18.0-31

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 (37) hide show
  1. package/dist/excalidraw.development.js +20 -20
  2. package/dist/excalidraw.production.min.js +1 -1
  3. package/package.json +1 -1
  4. package/types/element/src/newElement.d.ts +1 -0
  5. package/types/element/src/types.d.ts +8 -1
  6. package/types/excalidraw/actions/actionAddToLibrary.d.ts +9 -0
  7. package/types/excalidraw/actions/actionBoundText.d.ts +6 -0
  8. package/types/excalidraw/actions/actionCanvas.d.ts +60 -15
  9. package/types/excalidraw/actions/actionClipboard.d.ts +18 -0
  10. package/types/excalidraw/actions/actionCropEditor.d.ts +3 -0
  11. package/types/excalidraw/actions/actionDeleteSelected.d.ts +9 -0
  12. package/types/excalidraw/actions/actionElementLink.d.ts +3 -0
  13. package/types/excalidraw/actions/actionElementLock.d.ts +6 -0
  14. package/types/excalidraw/actions/actionEmbeddable.d.ts +3 -0
  15. package/types/excalidraw/actions/actionExport.d.ts +27 -0
  16. package/types/excalidraw/actions/actionFinalize.d.ts +9 -0
  17. package/types/excalidraw/actions/actionFrame.d.ts +19 -1
  18. package/types/excalidraw/actions/actionGroup.d.ts +6 -0
  19. package/types/excalidraw/actions/actionLinearEditor.d.ts +10 -1
  20. package/types/excalidraw/actions/actionLink.d.ts +3 -0
  21. package/types/excalidraw/actions/actionMenu.d.ts +9 -0
  22. package/types/excalidraw/actions/actionNavigate.d.ts +6 -0
  23. package/types/excalidraw/actions/actionProperties.d.ts +275 -0
  24. package/types/excalidraw/actions/actionSelectAll.d.ts +3 -0
  25. package/types/excalidraw/actions/actionStyles.d.ts +3 -0
  26. package/types/excalidraw/actions/actionToggleGridMode.d.ts +3 -0
  27. package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +3 -0
  28. package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -0
  29. package/types/excalidraw/actions/actionToggleStats.d.ts +3 -0
  30. package/types/excalidraw/actions/actionToggleViewMode.d.ts +3 -0
  31. package/types/excalidraw/actions/actionToggleZenMode.d.ts +3 -0
  32. package/types/excalidraw/actions/index.d.ts +1 -0
  33. package/types/excalidraw/actions/types.d.ts +1 -1
  34. package/types/excalidraw/appState.d.ts +1 -0
  35. package/types/excalidraw/components/App.d.ts +2 -0
  36. package/types/excalidraw/components/icons.d.ts +1 -0
  37. package/types/excalidraw/types.d.ts +3 -0
@@ -62,6 +62,8 @@ export declare const actionChangeFillStyle: {
62
62
  name: boolean;
63
63
  outline: boolean;
64
64
  clip: boolean;
65
+ markerName: boolean;
66
+ markerEnabled: boolean;
65
67
  };
66
68
  editingFrame: string | null;
67
69
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -91,6 +93,7 @@ export declare const actionChangeFillStyle: {
91
93
  currentHoveredFontFamily: number | null;
92
94
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
93
95
  currentItemArrowType: "round" | "sharp" | "elbow";
96
+ currentItemFrameRole: ("marker" | null) | undefined;
94
97
  viewBackgroundColor: string;
95
98
  scrollX: number;
96
99
  scrollY: number;
@@ -280,6 +283,8 @@ export declare const actionChangeStrokeWidth: {
280
283
  name: boolean;
281
284
  outline: boolean;
282
285
  clip: boolean;
286
+ markerName: boolean;
287
+ markerEnabled: boolean;
283
288
  };
284
289
  editingFrame: string | null;
285
290
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -309,6 +314,7 @@ export declare const actionChangeStrokeWidth: {
309
314
  currentHoveredFontFamily: number | null;
310
315
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
311
316
  currentItemArrowType: "round" | "sharp" | "elbow";
317
+ currentItemFrameRole: ("marker" | null) | undefined;
312
318
  viewBackgroundColor: string;
313
319
  scrollX: number;
314
320
  scrollY: number;
@@ -498,6 +504,8 @@ export declare const actionChangeSloppiness: {
498
504
  name: boolean;
499
505
  outline: boolean;
500
506
  clip: boolean;
507
+ markerName: boolean;
508
+ markerEnabled: boolean;
501
509
  };
502
510
  editingFrame: string | null;
503
511
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -527,6 +535,7 @@ export declare const actionChangeSloppiness: {
527
535
  currentHoveredFontFamily: number | null;
528
536
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
529
537
  currentItemArrowType: "round" | "sharp" | "elbow";
538
+ currentItemFrameRole: ("marker" | null) | undefined;
530
539
  viewBackgroundColor: string;
531
540
  scrollX: number;
532
541
  scrollY: number;
@@ -716,6 +725,8 @@ export declare const actionChangeStrokeStyle: {
716
725
  name: boolean;
717
726
  outline: boolean;
718
727
  clip: boolean;
728
+ markerName: boolean;
729
+ markerEnabled: boolean;
719
730
  };
720
731
  editingFrame: string | null;
721
732
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -745,6 +756,7 @@ export declare const actionChangeStrokeStyle: {
745
756
  currentHoveredFontFamily: number | null;
746
757
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
747
758
  currentItemArrowType: "round" | "sharp" | "elbow";
759
+ currentItemFrameRole: ("marker" | null) | undefined;
748
760
  viewBackgroundColor: string;
749
761
  scrollX: number;
750
762
  scrollY: number;
@@ -934,6 +946,8 @@ export declare const actionChangeOpacity: {
934
946
  name: boolean;
935
947
  outline: boolean;
936
948
  clip: boolean;
949
+ markerName: boolean;
950
+ markerEnabled: boolean;
937
951
  };
938
952
  editingFrame: string | null;
939
953
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -963,6 +977,7 @@ export declare const actionChangeOpacity: {
963
977
  currentHoveredFontFamily: number | null;
964
978
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
965
979
  currentItemArrowType: "round" | "sharp" | "elbow";
980
+ currentItemFrameRole: ("marker" | null) | undefined;
966
981
  viewBackgroundColor: string;
967
982
  scrollX: number;
968
983
  scrollY: number;
@@ -1153,6 +1168,8 @@ export declare const actionChangeFontSize: {
1153
1168
  name: boolean;
1154
1169
  outline: boolean;
1155
1170
  clip: boolean;
1171
+ markerName: boolean;
1172
+ markerEnabled: boolean;
1156
1173
  };
1157
1174
  editingFrame: string | null;
1158
1175
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -1182,6 +1199,7 @@ export declare const actionChangeFontSize: {
1182
1199
  currentHoveredFontFamily: number | null;
1183
1200
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1184
1201
  currentItemArrowType: "round" | "sharp" | "elbow";
1202
+ currentItemFrameRole: ("marker" | null) | undefined;
1185
1203
  viewBackgroundColor: string;
1186
1204
  scrollX: number;
1187
1205
  scrollY: number;
@@ -1372,6 +1390,8 @@ export declare const actionDecreaseFontSize: {
1372
1390
  name: boolean;
1373
1391
  outline: boolean;
1374
1392
  clip: boolean;
1393
+ markerName: boolean;
1394
+ markerEnabled: boolean;
1375
1395
  };
1376
1396
  editingFrame: string | null;
1377
1397
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -1401,6 +1421,7 @@ export declare const actionDecreaseFontSize: {
1401
1421
  currentHoveredFontFamily: number | null;
1402
1422
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1403
1423
  currentItemArrowType: "round" | "sharp" | "elbow";
1424
+ currentItemFrameRole: ("marker" | null) | undefined;
1404
1425
  viewBackgroundColor: string;
1405
1426
  scrollX: number;
1406
1427
  scrollY: number;
@@ -1591,6 +1612,8 @@ export declare const actionIncreaseFontSize: {
1591
1612
  name: boolean;
1592
1613
  outline: boolean;
1593
1614
  clip: boolean;
1615
+ markerName: boolean;
1616
+ markerEnabled: boolean;
1594
1617
  };
1595
1618
  editingFrame: string | null;
1596
1619
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -1620,6 +1643,7 @@ export declare const actionIncreaseFontSize: {
1620
1643
  currentHoveredFontFamily: number | null;
1621
1644
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1622
1645
  currentItemArrowType: "round" | "sharp" | "elbow";
1646
+ currentItemFrameRole: ("marker" | null) | undefined;
1623
1647
  viewBackgroundColor: string;
1624
1648
  scrollX: number;
1625
1649
  scrollY: number;
@@ -1810,6 +1834,8 @@ export declare const actionChangeFontFamily: {
1810
1834
  name: boolean;
1811
1835
  outline: boolean;
1812
1836
  clip: boolean;
1837
+ markerName: boolean;
1838
+ markerEnabled: boolean;
1813
1839
  };
1814
1840
  editingFrame: string | null;
1815
1841
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -1838,6 +1864,7 @@ export declare const actionChangeFontFamily: {
1838
1864
  currentItemEndArrowhead: Arrowhead | null;
1839
1865
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1840
1866
  currentItemArrowType: "round" | "sharp" | "elbow";
1867
+ currentItemFrameRole: ("marker" | null) | undefined;
1841
1868
  viewBackgroundColor: string;
1842
1869
  scrollX: number;
1843
1870
  scrollY: number;
@@ -2019,6 +2046,8 @@ export declare const actionChangeFontFamily: {
2019
2046
  name: boolean;
2020
2047
  outline: boolean;
2021
2048
  clip: boolean;
2049
+ markerName: boolean;
2050
+ markerEnabled: boolean;
2022
2051
  };
2023
2052
  editingFrame: string | null;
2024
2053
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -2047,6 +2076,7 @@ export declare const actionChangeFontFamily: {
2047
2076
  currentItemEndArrowhead: Arrowhead | null;
2048
2077
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2049
2078
  currentItemArrowType: "round" | "sharp" | "elbow";
2079
+ currentItemFrameRole: ("marker" | null) | undefined;
2050
2080
  viewBackgroundColor: string;
2051
2081
  scrollX: number;
2052
2082
  scrollY: number;
@@ -2235,6 +2265,8 @@ export declare const actionChangeTextAlign: {
2235
2265
  name: boolean;
2236
2266
  outline: boolean;
2237
2267
  clip: boolean;
2268
+ markerName: boolean;
2269
+ markerEnabled: boolean;
2238
2270
  };
2239
2271
  editingFrame: string | null;
2240
2272
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -2264,6 +2296,7 @@ export declare const actionChangeTextAlign: {
2264
2296
  currentHoveredFontFamily: number | null;
2265
2297
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2266
2298
  currentItemArrowType: "round" | "sharp" | "elbow";
2299
+ currentItemFrameRole: ("marker" | null) | undefined;
2267
2300
  viewBackgroundColor: string;
2268
2301
  scrollX: number;
2269
2302
  scrollY: number;
@@ -2454,6 +2487,8 @@ export declare const actionChangeVerticalAlign: {
2454
2487
  name: boolean;
2455
2488
  outline: boolean;
2456
2489
  clip: boolean;
2490
+ markerName: boolean;
2491
+ markerEnabled: boolean;
2457
2492
  };
2458
2493
  editingFrame: string | null;
2459
2494
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -2484,6 +2519,7 @@ export declare const actionChangeVerticalAlign: {
2484
2519
  currentHoveredFontFamily: number | null;
2485
2520
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2486
2521
  currentItemArrowType: "round" | "sharp" | "elbow";
2522
+ currentItemFrameRole: ("marker" | null) | undefined;
2487
2523
  viewBackgroundColor: string;
2488
2524
  scrollX: number;
2489
2525
  scrollY: number;
@@ -2673,6 +2709,8 @@ export declare const actionChangeRoundness: {
2673
2709
  name: boolean;
2674
2710
  outline: boolean;
2675
2711
  clip: boolean;
2712
+ markerName: boolean;
2713
+ markerEnabled: boolean;
2676
2714
  };
2677
2715
  editingFrame: string | null;
2678
2716
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -2702,6 +2740,7 @@ export declare const actionChangeRoundness: {
2702
2740
  currentItemEndArrowhead: Arrowhead | null;
2703
2741
  currentHoveredFontFamily: number | null;
2704
2742
  currentItemArrowType: "round" | "sharp" | "elbow";
2743
+ currentItemFrameRole: ("marker" | null) | undefined;
2705
2744
  viewBackgroundColor: string;
2706
2745
  scrollX: number;
2707
2746
  scrollY: number;
@@ -2893,6 +2932,8 @@ export declare const actionChangeArrowhead: {
2893
2932
  name: boolean;
2894
2933
  outline: boolean;
2895
2934
  clip: boolean;
2935
+ markerName: boolean;
2936
+ markerEnabled: boolean;
2896
2937
  };
2897
2938
  editingFrame: string | null;
2898
2939
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -2923,6 +2964,7 @@ export declare const actionChangeArrowhead: {
2923
2964
  currentHoveredFontFamily: number | null;
2924
2965
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2925
2966
  currentItemArrowType: "round" | "sharp" | "elbow";
2967
+ currentItemFrameRole: ("marker" | null) | undefined;
2926
2968
  viewBackgroundColor: string;
2927
2969
  scrollX: number;
2928
2970
  scrollY: number;
@@ -3112,6 +3154,8 @@ export declare const actionChangeArrowType: {
3112
3154
  name: boolean;
3113
3155
  outline: boolean;
3114
3156
  clip: boolean;
3157
+ markerName: boolean;
3158
+ markerEnabled: boolean;
3115
3159
  };
3116
3160
  editingFrame: string | null;
3117
3161
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -3141,6 +3185,7 @@ export declare const actionChangeArrowType: {
3141
3185
  currentItemEndArrowhead: Arrowhead | null;
3142
3186
  currentHoveredFontFamily: number | null;
3143
3187
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
3188
+ currentItemFrameRole: ("marker" | null) | undefined;
3144
3189
  viewBackgroundColor: string;
3145
3190
  scrollX: number;
3146
3191
  scrollY: number;
@@ -3297,3 +3342,233 @@ export declare const actionChangeArrowType: {
3297
3342
  } & {
3298
3343
  keyTest?: undefined;
3299
3344
  };
3345
+ export declare const actionToggleFrameRole: {
3346
+ name: "toggleFrameRole";
3347
+ label: string;
3348
+ icon: import("react/jsx-runtime").JSX.Element;
3349
+ trackEvent: {
3350
+ category: "element";
3351
+ };
3352
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
3353
+ elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
3354
+ appState: Readonly<AppState>;
3355
+ captureUpdate: "IMMEDIATELY";
3356
+ } | {
3357
+ elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
3358
+ appState: {
3359
+ currentItemFrameRole: "marker" | null;
3360
+ contextMenu: {
3361
+ items: import("../components/ContextMenu").ContextMenuItems;
3362
+ top: number;
3363
+ left: number;
3364
+ } | null;
3365
+ showWelcomeScreen: boolean;
3366
+ isLoading: boolean;
3367
+ errorMessage: import("react").ReactNode;
3368
+ activeEmbeddable: {
3369
+ element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
3370
+ state: "active" | "hover";
3371
+ } | null;
3372
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
3373
+ resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3374
+ multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
3375
+ selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3376
+ isBindingEnabled: boolean;
3377
+ startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
3378
+ suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
3379
+ frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
3380
+ frameRendering: {
3381
+ enabled: boolean;
3382
+ name: boolean;
3383
+ outline: boolean;
3384
+ clip: boolean;
3385
+ markerName: boolean;
3386
+ markerEnabled: boolean;
3387
+ };
3388
+ editingFrame: string | null;
3389
+ elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
3390
+ editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
3391
+ activeTool: {
3392
+ lastActiveTool: import("../types").ActiveTool | null;
3393
+ locked: boolean;
3394
+ fromSelection: boolean;
3395
+ } & import("../types").ActiveTool;
3396
+ penMode: boolean;
3397
+ penDetected: boolean;
3398
+ exportBackground: boolean;
3399
+ exportEmbedScene: boolean;
3400
+ exportWithDarkMode: boolean;
3401
+ exportScale: number;
3402
+ currentItemStrokeColor: string;
3403
+ currentItemBackgroundColor: string;
3404
+ currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
3405
+ currentItemStrokeWidth: number;
3406
+ currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
3407
+ currentItemRoughness: number;
3408
+ currentItemOpacity: number;
3409
+ currentItemFontFamily: number;
3410
+ currentItemFontSize: number;
3411
+ currentItemTextAlign: string;
3412
+ currentItemStartArrowhead: Arrowhead | null;
3413
+ currentItemEndArrowhead: Arrowhead | null;
3414
+ currentHoveredFontFamily: number | null;
3415
+ currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
3416
+ currentItemArrowType: "round" | "sharp" | "elbow";
3417
+ viewBackgroundColor: string;
3418
+ scrollX: number;
3419
+ scrollY: number;
3420
+ cursorButton: "up" | "down";
3421
+ scrolledOutside: boolean;
3422
+ name: string | null;
3423
+ isResizing: boolean;
3424
+ isRotating: boolean;
3425
+ zoom: Readonly<{
3426
+ value: import("../types").NormalizedZoomValue;
3427
+ }>;
3428
+ openMenu: "canvas" | "shape" | null;
3429
+ openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
3430
+ openSidebar: {
3431
+ name: string;
3432
+ tab?: string | undefined;
3433
+ } | null;
3434
+ openDialog: {
3435
+ name: "help" | "imageExport" | "jsonExport";
3436
+ } | {
3437
+ name: "ttd";
3438
+ tab: "mermaid" | "text-to-diagram";
3439
+ } | {
3440
+ name: "commandPalette";
3441
+ } | {
3442
+ name: "elementLinkSelector";
3443
+ sourceElementId: string;
3444
+ } | null;
3445
+ defaultSidebarDockedPreference: boolean;
3446
+ lastPointerDownWith: import("@excalidraw/element/types").PointerType;
3447
+ selectedElementIds: Readonly<{
3448
+ [id: string]: true;
3449
+ }>;
3450
+ hoveredElementIds: Readonly<{
3451
+ [id: string]: true;
3452
+ }>;
3453
+ previousSelectedElementIds: {
3454
+ [id: string]: true;
3455
+ };
3456
+ selectedElementsAreBeingDragged: boolean;
3457
+ shouldCacheIgnoreZoom: boolean;
3458
+ toast: {
3459
+ message: string;
3460
+ closable?: boolean | undefined;
3461
+ duration?: number | undefined;
3462
+ } | null;
3463
+ zenModeEnabled: boolean;
3464
+ theme: import("@excalidraw/element/types").Theme;
3465
+ gridSize: number;
3466
+ gridStep: number;
3467
+ gridModeEnabled: boolean;
3468
+ viewModeEnabled: boolean;
3469
+ selectedGroupIds: {
3470
+ [groupId: string]: boolean;
3471
+ };
3472
+ editingGroupId: string | null;
3473
+ width: number;
3474
+ height: number;
3475
+ offsetTop: number;
3476
+ offsetLeft: number;
3477
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
3478
+ collaborators: Map<import("../types").SocketId, Readonly<{
3479
+ pointer?: import("../types").CollaboratorPointer | undefined;
3480
+ button?: "up" | "down" | undefined;
3481
+ selectedElementIds?: Readonly<{
3482
+ [id: string]: true;
3483
+ }> | undefined;
3484
+ username?: string | null | undefined;
3485
+ userState?: import("@excalidraw/common").UserIdleState | undefined;
3486
+ color?: {
3487
+ background: string;
3488
+ stroke: string;
3489
+ } | undefined;
3490
+ avatarUrl?: string | undefined;
3491
+ id?: string | undefined;
3492
+ socketId?: import("../types").SocketId | undefined;
3493
+ isCurrentUser?: boolean | undefined;
3494
+ isInCall?: boolean | undefined;
3495
+ isSpeaking?: boolean | undefined;
3496
+ isMuted?: boolean | undefined;
3497
+ }>>;
3498
+ stats: {
3499
+ open: boolean;
3500
+ panels: number;
3501
+ };
3502
+ currentChartType: import("@excalidraw/element/types").ChartType;
3503
+ pasteDialog: {
3504
+ shown: false;
3505
+ data: null;
3506
+ } | {
3507
+ shown: true;
3508
+ data: import("../charts").Spreadsheet;
3509
+ };
3510
+ showHyperlinkPopup: false | "editor" | "info";
3511
+ linkOpacity: number;
3512
+ trayModeEnabled: boolean;
3513
+ colorPalette?: {
3514
+ canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
3515
+ elementBackground: import("@excalidraw/common").ColorPaletteCustom;
3516
+ elementStroke: import("@excalidraw/common").ColorPaletteCustom;
3517
+ topPicks: {
3518
+ canvasBackground: [string, string, string, string, string];
3519
+ elementStroke: [string, string, string, string, string];
3520
+ elementBackground: [string, string, string, string, string];
3521
+ };
3522
+ } | undefined;
3523
+ allowWheelZoom?: boolean | undefined;
3524
+ allowPinchZoom?: boolean | undefined;
3525
+ pinnedScripts?: string[] | undefined;
3526
+ customPens?: any[] | undefined;
3527
+ currentStrokeOptions?: any;
3528
+ resetCustomPen?: any;
3529
+ gridColor: {
3530
+ Bold: string;
3531
+ Regular: string;
3532
+ };
3533
+ gridDirection: {
3534
+ horizontal: boolean;
3535
+ vertical: boolean;
3536
+ };
3537
+ highlightSearchResult: boolean;
3538
+ dynamicStyle: {
3539
+ [x: string]: string;
3540
+ };
3541
+ frameColor: {
3542
+ stroke: string;
3543
+ fill: string;
3544
+ nameColor: string;
3545
+ };
3546
+ invertBindingBehaviour: boolean;
3547
+ selectedLinearElement: LinearElementEditor | null;
3548
+ snapLines: readonly import("../snapping").SnapLine[];
3549
+ originSnapOffset: {
3550
+ x: number;
3551
+ y: number;
3552
+ } | null;
3553
+ objectsSnapModeEnabled: boolean;
3554
+ userToFollow: import("../types").UserToFollow | null;
3555
+ followedBy: Set<import("../types").SocketId>;
3556
+ isCropping: boolean;
3557
+ croppingElementId: string | null;
3558
+ searchMatches: Readonly<{
3559
+ focusedId: string | null;
3560
+ matches: readonly import("../types").SearchMatch[];
3561
+ }> | null;
3562
+ activeLockedId: string | null;
3563
+ lockedMultiSelections: {
3564
+ [groupId: string]: true;
3565
+ };
3566
+ };
3567
+ captureUpdate: "IMMEDIATELY";
3568
+ };
3569
+ predicate: (_elements: readonly ExcalidrawElement[], appState: AppState, _props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
3570
+ checked: (appState: Readonly<AppState>) => boolean;
3571
+ PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
3572
+ } & {
3573
+ keyTest?: undefined;
3574
+ };
@@ -43,6 +43,8 @@ export declare const actionSelectAll: {
43
43
  name: boolean;
44
44
  outline: boolean;
45
45
  clip: boolean;
46
+ markerName: boolean;
47
+ markerEnabled: boolean;
46
48
  };
47
49
  editingFrame: string | null;
48
50
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
@@ -73,6 +75,7 @@ export declare const actionSelectAll: {
73
75
  currentHoveredFontFamily: number | null;
74
76
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
75
77
  currentItemArrowType: "round" | "sharp" | "elbow";
78
+ currentItemFrameRole: ("marker" | null) | undefined;
76
79
  viewBackgroundColor: string;
77
80
  scrollX: number;
78
81
  scrollY: number;
@@ -36,6 +36,8 @@ export declare const actionCopyStyles: {
36
36
  name: boolean;
37
37
  outline: boolean;
38
38
  clip: boolean;
39
+ markerName: boolean;
40
+ markerEnabled: boolean;
39
41
  };
40
42
  editingFrame: string | null;
41
43
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -66,6 +68,7 @@ export declare const actionCopyStyles: {
66
68
  currentHoveredFontFamily: number | null;
67
69
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
70
  currentItemArrowType: "round" | "sharp" | "elbow";
71
+ currentItemFrameRole: ("marker" | null) | undefined;
69
72
  viewBackgroundColor: string;
70
73
  scrollX: number;
71
74
  scrollY: number;
@@ -38,6 +38,8 @@ export declare const actionToggleGridMode: {
38
38
  name: boolean;
39
39
  outline: boolean;
40
40
  clip: boolean;
41
+ markerName: boolean;
42
+ markerEnabled: boolean;
41
43
  };
42
44
  editingFrame: string | null;
43
45
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -68,6 +70,7 @@ export declare const actionToggleGridMode: {
68
70
  currentHoveredFontFamily: number | null;
69
71
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
70
72
  currentItemArrowType: "round" | "sharp" | "elbow";
73
+ currentItemFrameRole: ("marker" | null) | undefined;
71
74
  viewBackgroundColor: string;
72
75
  scrollX: number;
73
76
  scrollY: number;
@@ -36,6 +36,8 @@ export declare const actionToggleObjectsSnapMode: {
36
36
  name: boolean;
37
37
  outline: boolean;
38
38
  clip: boolean;
39
+ markerName: boolean;
40
+ markerEnabled: boolean;
39
41
  };
40
42
  editingFrame: string | null;
41
43
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -66,6 +68,7 @@ export declare const actionToggleObjectsSnapMode: {
66
68
  currentHoveredFontFamily: number | null;
67
69
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
68
70
  currentItemArrowType: "round" | "sharp" | "elbow";
71
+ currentItemFrameRole: ("marker" | null) | undefined;
69
72
  viewBackgroundColor: string;
70
73
  scrollX: number;
71
74
  scrollY: number;
@@ -42,6 +42,8 @@ export declare const actionToggleSearchMenu: {
42
42
  name: boolean;
43
43
  outline: boolean;
44
44
  clip: boolean;
45
+ markerName: boolean;
46
+ markerEnabled: boolean;
45
47
  };
46
48
  editingFrame: string | null;
47
49
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -72,6 +74,7 @@ export declare const actionToggleSearchMenu: {
72
74
  currentHoveredFontFamily: number | null;
73
75
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
74
76
  currentItemArrowType: "round" | "sharp" | "elbow";
77
+ currentItemFrameRole: ("marker" | null) | undefined;
75
78
  viewBackgroundColor: string;
76
79
  scrollX: number;
77
80
  scrollY: number;
@@ -38,6 +38,8 @@ export declare const actionToggleStats: {
38
38
  name: boolean;
39
39
  outline: boolean;
40
40
  clip: boolean;
41
+ markerName: boolean;
42
+ markerEnabled: boolean;
41
43
  };
42
44
  editingFrame: string | null;
43
45
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -68,6 +70,7 @@ export declare const actionToggleStats: {
68
70
  currentHoveredFontFamily: number | null;
69
71
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
70
72
  currentItemArrowType: "round" | "sharp" | "elbow";
73
+ currentItemFrameRole: ("marker" | null) | undefined;
71
74
  viewBackgroundColor: string;
72
75
  scrollX: number;
73
76
  scrollY: number;
@@ -35,6 +35,8 @@ export declare const actionToggleViewMode: {
35
35
  name: boolean;
36
36
  outline: boolean;
37
37
  clip: boolean;
38
+ markerName: boolean;
39
+ markerEnabled: boolean;
38
40
  };
39
41
  editingFrame: string | null;
40
42
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -65,6 +67,7 @@ export declare const actionToggleViewMode: {
65
67
  currentHoveredFontFamily: number | null;
66
68
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
69
  currentItemArrowType: "round" | "sharp" | "elbow";
70
+ currentItemFrameRole: ("marker" | null) | undefined;
68
71
  viewBackgroundColor: string;
69
72
  scrollX: number;
70
73
  scrollY: number;
@@ -35,6 +35,8 @@ export declare const actionToggleZenMode: {
35
35
  name: boolean;
36
36
  outline: boolean;
37
37
  clip: boolean;
38
+ markerName: boolean;
39
+ markerEnabled: boolean;
38
40
  };
39
41
  editingFrame: string | null;
40
42
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
@@ -65,6 +67,7 @@ export declare const actionToggleZenMode: {
65
67
  currentHoveredFontFamily: number | null;
66
68
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
67
69
  currentItemArrowType: "round" | "sharp" | "elbow";
70
+ currentItemFrameRole: ("marker" | null) | undefined;
68
71
  viewBackgroundColor: string;
69
72
  scrollX: number;
70
73
  scrollY: number;
@@ -7,6 +7,7 @@ export { actionChangeViewBackgroundColor, actionClearCanvas, actionZoomIn, actio
7
7
  export { actionSetEmbeddableAsActiveTool } from "./actionEmbeddable";
8
8
  export { actionFinalize } from "./actionFinalize";
9
9
  export { actionChangeProjectName, actionChangeExportBackground, actionSaveToActiveFile, actionSaveFileToDisk, actionLoadScene, } from "./actionExport";
10
+ export { actionToggleFrameRole } from "./actionProperties";
10
11
  export { actionCopyStyles, actionPasteStyles } from "./actionStyles";
11
12
  export { actionToggleCanvasMenu, actionToggleEditMenu, actionShortcuts, } from "./actionMenu";
12
13
  export { actionGroup, actionUngroup } from "./actionGroup";
@@ -14,7 +14,7 @@ export type ActionResult = {
14
14
  type ActionFn = (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
15
15
  export type UpdaterFn = (res: ActionResult) => void;
16
16
  export type ActionFilterFn = (action: Action) => void;
17
- export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeOpacity" | "changeFontSize" | "toggleCanvasMenu" | "toggleEditMenu" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "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" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "toggleLaserPointerTool" | "commandPalette" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "toggleLassoTool" | "toggleShapeSwitch" | "togglePolygon";
17
+ export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeOpacity" | "changeFontSize" | "toggleCanvasMenu" | "toggleEditMenu" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "clearCanvas" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "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" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "toggleLaserPointerTool" | "toggleFrameRole" | "commandPalette" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "toggleLassoTool" | "toggleShapeSwitch" | "togglePolygon";
18
18
  export type PanelComponentProps = {
19
19
  elements: readonly ExcalidrawElement[];
20
20
  appState: AppState;
@@ -44,6 +44,7 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
44
44
  currentItemEndArrowhead?: import("@excalidraw/element/types").Arrowhead | null | undefined;
45
45
  currentItemRoundness?: import("@excalidraw/element/types").StrokeRoundness | undefined;
46
46
  currentItemArrowType?: "round" | "sharp" | "elbow" | undefined;
47
+ currentItemFrameRole?: ("marker" | null) | undefined;
47
48
  cursorButton?: "up" | "down" | undefined;
48
49
  scrolledOutside?: boolean | undefined;
49
50
  openMenu?: "canvas" | "shape" | null | undefined;