@zsviczian/excalidraw 0.15.3-obsidian → 0.16.1-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/dist/excalidraw.development.js +318 -87
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -9
- package/package.json +3 -3
- package/types/actions/actionAddToLibrary.d.ts +24 -3
- package/types/actions/actionAlign.d.ts +6 -6
- package/types/actions/actionBoundText.d.ts +16 -2
- package/types/actions/actionCanvas.d.ts +100 -16
- package/types/actions/actionClipboard.d.ts +40 -5
- package/types/actions/actionDeleteSelected.d.ts +25 -4
- package/types/actions/actionDistribute.d.ts +2 -2
- package/types/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/actions/actionElementLock.d.ts +16 -2
- package/types/actions/actionExport.d.ts +78 -15
- package/types/actions/actionFinalize.d.ts +17 -3
- package/types/actions/actionFrame.d.ts +24 -3
- package/types/actions/actionGroup.d.ts +18 -4
- package/types/actions/actionLinearEditor.d.ts +8 -1
- package/types/actions/actionMenu.d.ts +26 -5
- package/types/actions/actionNavigate.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +119 -26
- package/types/actions/actionSelectAll.d.ts +8 -1
- package/types/actions/actionStyles.d.ts +8 -1
- package/types/actions/actionToggleGridMode.d.ts +8 -1
- package/types/actions/actionToggleObjectsSnapMode.d.ts +169 -0
- package/types/actions/actionToggleStats.d.ts +8 -1
- package/types/actions/actionToggleViewMode.d.ts +8 -1
- package/types/actions/actionToggleZenMode.d.ts +8 -1
- package/types/actions/actionZindex.d.ts +4 -4
- package/types/actions/index.d.ts +1 -0
- package/types/actions/manager.d.ts +1 -1
- package/types/actions/shortcuts.d.ts +1 -1
- package/types/actions/types.d.ts +1 -1
- package/types/appState.d.ts +2 -1
- package/types/components/Actions.d.ts +6 -6
- package/types/components/ActiveConfirmDialog.d.ts +1 -1
- package/types/components/App.d.ts +22 -4
- package/types/components/Avatar.d.ts +1 -1
- package/types/components/BraveMeasureTextError.d.ts +1 -1
- package/types/components/Button.d.ts +1 -1
- package/types/components/ButtonIconSelect.d.ts +1 -1
- package/types/components/ColorPicker/ColorInput.d.ts +3 -1
- package/types/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/types/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/components/ColorPicker/HotkeyLabel.d.ts +1 -1
- package/types/components/ColorPicker/Picker.d.ts +1 -1
- package/types/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/types/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/types/components/ColorPicker/ShadeList.d.ts +1 -1
- package/types/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/components/ConfirmDialog.d.ts +1 -1
- package/types/components/ContextMenu.d.ts +1 -1
- package/types/components/DarkModeToggle.d.ts +1 -1
- package/types/components/DefaultSidebar.d.ts +1 -1
- package/types/components/Dialog.d.ts +1 -1
- package/types/components/DialogActionButton.d.ts +1 -1
- package/types/components/ErrorDialog.d.ts +1 -1
- package/types/components/ExcalidrawLogo.d.ts +15 -0
- package/types/components/EyeDropper.d.ts +18 -7
- package/types/components/FixedSideContainer.d.ts +1 -1
- package/types/components/HandButton.d.ts +1 -1
- package/types/components/HelpButton.d.ts +1 -1
- package/types/components/HelpDialog.d.ts +1 -1
- package/types/components/HintViewer.d.ts +1 -1
- package/types/components/IconPicker.d.ts +1 -1
- package/types/components/ImageExportDialog.d.ts +2 -2
- package/types/components/InitializeApp.d.ts +1 -1
- package/types/components/JSONExportDialog.d.ts +1 -1
- package/types/components/LayerUI.d.ts +1 -1
- package/types/components/LibraryMenu.d.ts +2 -2
- package/types/components/LibraryMenuBrowseButton.d.ts +1 -1
- package/types/components/LibraryMenuControlButtons.d.ts +1 -1
- package/types/components/LibraryMenuHeaderContent.d.ts +1 -1
- package/types/components/LibraryMenuItems.d.ts +1 -1
- package/types/components/LibraryMenuSection.d.ts +2 -2
- package/types/components/LibraryUnit.d.ts +2 -2
- package/types/components/LockButton.d.ts +1 -1
- package/types/components/MermaidToExcalidraw.d.ts +12 -0
- package/types/components/MobileMenu.d.ts +1 -1
- package/types/components/OverwriteConfirm/OverwriteConfirm.d.ts +4 -4
- package/types/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +6 -6
- package/types/components/PasteChartDialog.d.ts +1 -1
- package/types/components/PenModeButton.d.ts +1 -1
- package/types/components/Popover.d.ts +1 -1
- package/types/components/ProjectName.d.ts +1 -1
- package/types/components/PublishLibrary.d.ts +1 -1
- package/types/components/RadioGroup.d.ts +1 -1
- package/types/components/Sidebar/Sidebar.d.ts +8 -8
- package/types/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/types/components/Sidebar/SidebarTab.d.ts +1 -1
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +1 -1
- package/types/components/Sidebar/SidebarTabs.d.ts +1 -1
- package/types/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/types/components/Spinner.d.ts +1 -1
- package/types/components/Stack.d.ts +2 -2
- package/types/components/Stats.d.ts +1 -1
- package/types/components/Switch.d.ts +1 -1
- package/types/components/Toast.d.ts +1 -1
- package/types/components/Tooltip.d.ts +1 -1
- package/types/components/canvases/InteractiveCanvas.d.ts +1 -1
- package/types/components/canvases/StaticCanvas.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenu.d.ts +8 -8
- package/types/components/dropdownMenu/DropdownMenuContent.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuGroup.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuItemContent.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuItemCustom.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuSeparator.d.ts +1 -1
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/types/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -2
- package/types/components/footer/Footer.d.ts +1 -1
- package/types/components/footer/FooterCenter.d.ts +1 -1
- package/types/components/icons.d.ts +128 -126
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/types/components/main-menu/DefaultItems.d.ts +10 -10
- package/types/components/main-menu/MainMenu.d.ts +6 -6
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +9 -9
- package/types/components/welcome-screen/WelcomeScreen.Hints.d.ts +3 -3
- package/types/components/welcome-screen/WelcomeScreen.d.ts +13 -13
- package/types/constants.d.ts +5 -0
- package/types/data/transform.d.ts +3 -1
- package/types/element/Hyperlink.d.ts +10 -3
- package/types/element/bounds.d.ts +4 -5
- package/types/element/dragElements.d.ts +11 -2
- package/types/element/embeddable.d.ts +8 -1
- package/types/element/linearElementEditor.d.ts +9 -2
- package/types/element/resizeElements.d.ts +2 -2
- package/types/frame.d.ts +1 -1
- package/types/hooks/useStable.d.ts +1 -0
- package/types/keys.d.ts +1 -0
- package/types/math.d.ts +2 -0
- package/types/packages/excalidraw/example/App.d.ts +1 -1
- package/types/packages/excalidraw/example/CustomFooter.d.ts +1 -1
- package/types/packages/excalidraw/example/MobileFooter.d.ts +1 -1
- package/types/packages/excalidraw/example/sidebar/ExampleSidebar.d.ts +1 -1
- package/types/packages/excalidraw/index.d.ts +1 -1
- package/types/packages/excalidraw/webpack.dev.config.d.ts +11 -0
- package/types/packages/excalidraw/webpack.prod.config.d.ts +11 -0
- package/types/packages/utils.d.ts +1 -0
- package/types/renderer/renderSnaps.d.ts +2 -0
- package/types/scene/selection.d.ts +1 -0
- package/types/shapes.d.ts +10 -10
- package/types/snapping.d.ts +108 -0
- package/types/types.d.ts +26 -3
- package/types/utils.d.ts +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { AppState } from "../../src/types";
|
|
2
2
|
import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
|
+
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
4
|
+
export declare const getFormValue: <T>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, defaultValue: T) => T;
|
|
3
5
|
export declare const actionChangeStrokeColor: {
|
|
4
6
|
name: "changeStrokeColor";
|
|
5
7
|
trackEvent: false;
|
|
6
8
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
7
|
-
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
9
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
} & {
|
|
9
11
|
keyTest?: undefined;
|
|
10
12
|
};
|
|
@@ -12,7 +14,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
12
14
|
name: "changeBackgroundColor";
|
|
13
15
|
trackEvent: false;
|
|
14
16
|
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
17
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
} & {
|
|
17
19
|
keyTest?: undefined;
|
|
18
20
|
};
|
|
@@ -57,7 +59,7 @@ export declare const actionChangeFillStyle: {
|
|
|
57
59
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
58
60
|
locked: boolean;
|
|
59
61
|
} & ({
|
|
60
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
62
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
61
63
|
customType: null;
|
|
62
64
|
} | {
|
|
63
65
|
type: "custom";
|
|
@@ -161,14 +163,21 @@ export declare const actionChangeFillStyle: {
|
|
|
161
163
|
gridColor: {
|
|
162
164
|
Bold: string;
|
|
163
165
|
Regular: string;
|
|
166
|
+
MajorGridFrequency?: number | undefined;
|
|
164
167
|
};
|
|
165
168
|
dynamicStyle: string;
|
|
166
169
|
invertBindingBehaviour: boolean;
|
|
167
170
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
171
|
+
snapLines: import("../snapping").SnapLine[];
|
|
172
|
+
originSnapOffset: {
|
|
173
|
+
x: number;
|
|
174
|
+
y: number;
|
|
175
|
+
} | null;
|
|
176
|
+
objectsSnapModeEnabled: boolean;
|
|
168
177
|
};
|
|
169
178
|
commitToHistory: true;
|
|
170
179
|
};
|
|
171
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
180
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
172
181
|
} & {
|
|
173
182
|
keyTest?: undefined;
|
|
174
183
|
};
|
|
@@ -213,7 +222,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
213
222
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
214
223
|
locked: boolean;
|
|
215
224
|
} & ({
|
|
216
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
225
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
217
226
|
customType: null;
|
|
218
227
|
} | {
|
|
219
228
|
type: "custom";
|
|
@@ -317,14 +326,21 @@ export declare const actionChangeStrokeWidth: {
|
|
|
317
326
|
gridColor: {
|
|
318
327
|
Bold: string;
|
|
319
328
|
Regular: string;
|
|
329
|
+
MajorGridFrequency?: number | undefined;
|
|
320
330
|
};
|
|
321
331
|
dynamicStyle: string;
|
|
322
332
|
invertBindingBehaviour: boolean;
|
|
323
333
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
334
|
+
snapLines: import("../snapping").SnapLine[];
|
|
335
|
+
originSnapOffset: {
|
|
336
|
+
x: number;
|
|
337
|
+
y: number;
|
|
338
|
+
} | null;
|
|
339
|
+
objectsSnapModeEnabled: boolean;
|
|
324
340
|
};
|
|
325
341
|
commitToHistory: true;
|
|
326
342
|
};
|
|
327
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
343
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
328
344
|
} & {
|
|
329
345
|
keyTest?: undefined;
|
|
330
346
|
};
|
|
@@ -369,7 +385,7 @@ export declare const actionChangeSloppiness: {
|
|
|
369
385
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
370
386
|
locked: boolean;
|
|
371
387
|
} & ({
|
|
372
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
388
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
373
389
|
customType: null;
|
|
374
390
|
} | {
|
|
375
391
|
type: "custom";
|
|
@@ -473,14 +489,21 @@ export declare const actionChangeSloppiness: {
|
|
|
473
489
|
gridColor: {
|
|
474
490
|
Bold: string;
|
|
475
491
|
Regular: string;
|
|
492
|
+
MajorGridFrequency?: number | undefined;
|
|
476
493
|
};
|
|
477
494
|
dynamicStyle: string;
|
|
478
495
|
invertBindingBehaviour: boolean;
|
|
479
496
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
497
|
+
snapLines: import("../snapping").SnapLine[];
|
|
498
|
+
originSnapOffset: {
|
|
499
|
+
x: number;
|
|
500
|
+
y: number;
|
|
501
|
+
} | null;
|
|
502
|
+
objectsSnapModeEnabled: boolean;
|
|
480
503
|
};
|
|
481
504
|
commitToHistory: true;
|
|
482
505
|
};
|
|
483
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
506
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
484
507
|
} & {
|
|
485
508
|
keyTest?: undefined;
|
|
486
509
|
};
|
|
@@ -525,7 +548,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
525
548
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
526
549
|
locked: boolean;
|
|
527
550
|
} & ({
|
|
528
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
551
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
529
552
|
customType: null;
|
|
530
553
|
} | {
|
|
531
554
|
type: "custom";
|
|
@@ -629,14 +652,21 @@ export declare const actionChangeStrokeStyle: {
|
|
|
629
652
|
gridColor: {
|
|
630
653
|
Bold: string;
|
|
631
654
|
Regular: string;
|
|
655
|
+
MajorGridFrequency?: number | undefined;
|
|
632
656
|
};
|
|
633
657
|
dynamicStyle: string;
|
|
634
658
|
invertBindingBehaviour: boolean;
|
|
635
659
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
660
|
+
snapLines: import("../snapping").SnapLine[];
|
|
661
|
+
originSnapOffset: {
|
|
662
|
+
x: number;
|
|
663
|
+
y: number;
|
|
664
|
+
} | null;
|
|
665
|
+
objectsSnapModeEnabled: boolean;
|
|
636
666
|
};
|
|
637
667
|
commitToHistory: true;
|
|
638
668
|
};
|
|
639
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
669
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
640
670
|
} & {
|
|
641
671
|
keyTest?: undefined;
|
|
642
672
|
};
|
|
@@ -681,7 +711,7 @@ export declare const actionChangeOpacity: {
|
|
|
681
711
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
682
712
|
locked: boolean;
|
|
683
713
|
} & ({
|
|
684
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
714
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
685
715
|
customType: null;
|
|
686
716
|
} | {
|
|
687
717
|
type: "custom";
|
|
@@ -785,14 +815,21 @@ export declare const actionChangeOpacity: {
|
|
|
785
815
|
gridColor: {
|
|
786
816
|
Bold: string;
|
|
787
817
|
Regular: string;
|
|
818
|
+
MajorGridFrequency?: number | undefined;
|
|
788
819
|
};
|
|
789
820
|
dynamicStyle: string;
|
|
790
821
|
invertBindingBehaviour: boolean;
|
|
791
822
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
823
|
+
snapLines: import("../snapping").SnapLine[];
|
|
824
|
+
originSnapOffset: {
|
|
825
|
+
x: number;
|
|
826
|
+
y: number;
|
|
827
|
+
} | null;
|
|
828
|
+
objectsSnapModeEnabled: boolean;
|
|
792
829
|
};
|
|
793
830
|
commitToHistory: true;
|
|
794
831
|
};
|
|
795
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
832
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
796
833
|
} & {
|
|
797
834
|
keyTest?: undefined;
|
|
798
835
|
};
|
|
@@ -837,7 +874,7 @@ export declare const actionChangeFontSize: {
|
|
|
837
874
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
838
875
|
locked: boolean;
|
|
839
876
|
} & ({
|
|
840
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
877
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
841
878
|
customType: null;
|
|
842
879
|
} | {
|
|
843
880
|
type: "custom";
|
|
@@ -941,14 +978,21 @@ export declare const actionChangeFontSize: {
|
|
|
941
978
|
gridColor: {
|
|
942
979
|
Bold: string;
|
|
943
980
|
Regular: string;
|
|
981
|
+
MajorGridFrequency?: number | undefined;
|
|
944
982
|
};
|
|
945
983
|
dynamicStyle: string;
|
|
946
984
|
invertBindingBehaviour: boolean;
|
|
947
985
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
986
|
+
snapLines: import("../snapping").SnapLine[];
|
|
987
|
+
originSnapOffset: {
|
|
988
|
+
x: number;
|
|
989
|
+
y: number;
|
|
990
|
+
} | null;
|
|
991
|
+
objectsSnapModeEnabled: boolean;
|
|
948
992
|
};
|
|
949
993
|
commitToHistory: boolean;
|
|
950
994
|
};
|
|
951
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
995
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
952
996
|
} & {
|
|
953
997
|
keyTest?: undefined;
|
|
954
998
|
};
|
|
@@ -993,7 +1037,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
993
1037
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
994
1038
|
locked: boolean;
|
|
995
1039
|
} & ({
|
|
996
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1040
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
997
1041
|
customType: null;
|
|
998
1042
|
} | {
|
|
999
1043
|
type: "custom";
|
|
@@ -1097,10 +1141,17 @@ export declare const actionDecreaseFontSize: {
|
|
|
1097
1141
|
gridColor: {
|
|
1098
1142
|
Bold: string;
|
|
1099
1143
|
Regular: string;
|
|
1144
|
+
MajorGridFrequency?: number | undefined;
|
|
1100
1145
|
};
|
|
1101
1146
|
dynamicStyle: string;
|
|
1102
1147
|
invertBindingBehaviour: boolean;
|
|
1103
1148
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1149
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1150
|
+
originSnapOffset: {
|
|
1151
|
+
x: number;
|
|
1152
|
+
y: number;
|
|
1153
|
+
} | null;
|
|
1154
|
+
objectsSnapModeEnabled: boolean;
|
|
1104
1155
|
};
|
|
1105
1156
|
commitToHistory: boolean;
|
|
1106
1157
|
};
|
|
@@ -1149,7 +1200,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1149
1200
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1150
1201
|
locked: boolean;
|
|
1151
1202
|
} & ({
|
|
1152
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1203
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1153
1204
|
customType: null;
|
|
1154
1205
|
} | {
|
|
1155
1206
|
type: "custom";
|
|
@@ -1253,10 +1304,17 @@ export declare const actionIncreaseFontSize: {
|
|
|
1253
1304
|
gridColor: {
|
|
1254
1305
|
Bold: string;
|
|
1255
1306
|
Regular: string;
|
|
1307
|
+
MajorGridFrequency?: number | undefined;
|
|
1256
1308
|
};
|
|
1257
1309
|
dynamicStyle: string;
|
|
1258
1310
|
invertBindingBehaviour: boolean;
|
|
1259
1311
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1312
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1313
|
+
originSnapOffset: {
|
|
1314
|
+
x: number;
|
|
1315
|
+
y: number;
|
|
1316
|
+
} | null;
|
|
1317
|
+
objectsSnapModeEnabled: boolean;
|
|
1260
1318
|
};
|
|
1261
1319
|
commitToHistory: boolean;
|
|
1262
1320
|
};
|
|
@@ -1305,7 +1363,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1305
1363
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1306
1364
|
locked: boolean;
|
|
1307
1365
|
} & ({
|
|
1308
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1366
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1309
1367
|
customType: null;
|
|
1310
1368
|
} | {
|
|
1311
1369
|
type: "custom";
|
|
@@ -1409,14 +1467,21 @@ export declare const actionChangeFontFamily: {
|
|
|
1409
1467
|
gridColor: {
|
|
1410
1468
|
Bold: string;
|
|
1411
1469
|
Regular: string;
|
|
1470
|
+
MajorGridFrequency?: number | undefined;
|
|
1412
1471
|
};
|
|
1413
1472
|
dynamicStyle: string;
|
|
1414
1473
|
invertBindingBehaviour: boolean;
|
|
1415
1474
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1475
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1476
|
+
originSnapOffset: {
|
|
1477
|
+
x: number;
|
|
1478
|
+
y: number;
|
|
1479
|
+
} | null;
|
|
1480
|
+
objectsSnapModeEnabled: boolean;
|
|
1416
1481
|
};
|
|
1417
1482
|
commitToHistory: true;
|
|
1418
1483
|
};
|
|
1419
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1484
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1420
1485
|
} & {
|
|
1421
1486
|
keyTest?: undefined;
|
|
1422
1487
|
};
|
|
@@ -1461,7 +1526,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1461
1526
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1462
1527
|
locked: boolean;
|
|
1463
1528
|
} & ({
|
|
1464
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1529
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1465
1530
|
customType: null;
|
|
1466
1531
|
} | {
|
|
1467
1532
|
type: "custom";
|
|
@@ -1565,14 +1630,21 @@ export declare const actionChangeTextAlign: {
|
|
|
1565
1630
|
gridColor: {
|
|
1566
1631
|
Bold: string;
|
|
1567
1632
|
Regular: string;
|
|
1633
|
+
MajorGridFrequency?: number | undefined;
|
|
1568
1634
|
};
|
|
1569
1635
|
dynamicStyle: string;
|
|
1570
1636
|
invertBindingBehaviour: boolean;
|
|
1571
1637
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1638
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1639
|
+
originSnapOffset: {
|
|
1640
|
+
x: number;
|
|
1641
|
+
y: number;
|
|
1642
|
+
} | null;
|
|
1643
|
+
objectsSnapModeEnabled: boolean;
|
|
1572
1644
|
};
|
|
1573
1645
|
commitToHistory: true;
|
|
1574
1646
|
};
|
|
1575
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1647
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1576
1648
|
} & {
|
|
1577
1649
|
keyTest?: undefined;
|
|
1578
1650
|
};
|
|
@@ -1618,7 +1690,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1618
1690
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1619
1691
|
locked: boolean;
|
|
1620
1692
|
} & ({
|
|
1621
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1693
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1622
1694
|
customType: null;
|
|
1623
1695
|
} | {
|
|
1624
1696
|
type: "custom";
|
|
@@ -1723,14 +1795,21 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1723
1795
|
gridColor: {
|
|
1724
1796
|
Bold: string;
|
|
1725
1797
|
Regular: string;
|
|
1798
|
+
MajorGridFrequency?: number | undefined;
|
|
1726
1799
|
};
|
|
1727
1800
|
dynamicStyle: string;
|
|
1728
1801
|
invertBindingBehaviour: boolean;
|
|
1729
1802
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1803
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1804
|
+
originSnapOffset: {
|
|
1805
|
+
x: number;
|
|
1806
|
+
y: number;
|
|
1807
|
+
} | null;
|
|
1808
|
+
objectsSnapModeEnabled: boolean;
|
|
1730
1809
|
};
|
|
1731
1810
|
commitToHistory: true;
|
|
1732
1811
|
};
|
|
1733
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1812
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1734
1813
|
} & {
|
|
1735
1814
|
keyTest?: undefined;
|
|
1736
1815
|
};
|
|
@@ -1775,7 +1854,7 @@ export declare const actionChangeRoundness: {
|
|
|
1775
1854
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1776
1855
|
locked: boolean;
|
|
1777
1856
|
} & ({
|
|
1778
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
1857
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1779
1858
|
customType: null;
|
|
1780
1859
|
} | {
|
|
1781
1860
|
type: "custom";
|
|
@@ -1879,14 +1958,21 @@ export declare const actionChangeRoundness: {
|
|
|
1879
1958
|
gridColor: {
|
|
1880
1959
|
Bold: string;
|
|
1881
1960
|
Regular: string;
|
|
1961
|
+
MajorGridFrequency?: number | undefined;
|
|
1882
1962
|
};
|
|
1883
1963
|
dynamicStyle: string;
|
|
1884
1964
|
invertBindingBehaviour: boolean;
|
|
1885
1965
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1966
|
+
snapLines: import("../snapping").SnapLine[];
|
|
1967
|
+
originSnapOffset: {
|
|
1968
|
+
x: number;
|
|
1969
|
+
y: number;
|
|
1970
|
+
} | null;
|
|
1971
|
+
objectsSnapModeEnabled: boolean;
|
|
1886
1972
|
};
|
|
1887
1973
|
commitToHistory: true;
|
|
1888
1974
|
};
|
|
1889
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1975
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1890
1976
|
} & {
|
|
1891
1977
|
keyTest?: undefined;
|
|
1892
1978
|
};
|
|
@@ -1933,7 +2019,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1933
2019
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1934
2020
|
locked: boolean;
|
|
1935
2021
|
} & ({
|
|
1936
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
2022
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
1937
2023
|
customType: null;
|
|
1938
2024
|
} | {
|
|
1939
2025
|
type: "custom";
|
|
@@ -2038,14 +2124,21 @@ export declare const actionChangeArrowhead: {
|
|
|
2038
2124
|
gridColor: {
|
|
2039
2125
|
Bold: string;
|
|
2040
2126
|
Regular: string;
|
|
2127
|
+
MajorGridFrequency?: number | undefined;
|
|
2041
2128
|
};
|
|
2042
2129
|
dynamicStyle: string;
|
|
2043
2130
|
invertBindingBehaviour: boolean;
|
|
2044
2131
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
2132
|
+
snapLines: import("../snapping").SnapLine[];
|
|
2133
|
+
originSnapOffset: {
|
|
2134
|
+
x: number;
|
|
2135
|
+
y: number;
|
|
2136
|
+
} | null;
|
|
2137
|
+
objectsSnapModeEnabled: boolean;
|
|
2045
2138
|
};
|
|
2046
2139
|
commitToHistory: true;
|
|
2047
2140
|
};
|
|
2048
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2141
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2049
2142
|
} & {
|
|
2050
2143
|
keyTest?: undefined;
|
|
2051
2144
|
};
|
|
@@ -49,7 +49,7 @@ export declare const actionSelectAll: {
|
|
|
49
49
|
lastActiveTool: import("../types").LastActiveTool;
|
|
50
50
|
locked: boolean;
|
|
51
51
|
} & ({
|
|
52
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
52
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
53
53
|
customType: null;
|
|
54
54
|
} | {
|
|
55
55
|
type: "custom";
|
|
@@ -147,9 +147,16 @@ export declare const actionSelectAll: {
|
|
|
147
147
|
gridColor: {
|
|
148
148
|
Bold: string;
|
|
149
149
|
Regular: string;
|
|
150
|
+
MajorGridFrequency?: number | undefined;
|
|
150
151
|
};
|
|
151
152
|
dynamicStyle: string;
|
|
152
153
|
invertBindingBehaviour: boolean;
|
|
154
|
+
snapLines: import("../snapping").SnapLine[];
|
|
155
|
+
originSnapOffset: {
|
|
156
|
+
x: number;
|
|
157
|
+
y: number;
|
|
158
|
+
} | null;
|
|
159
|
+
objectsSnapModeEnabled: boolean;
|
|
153
160
|
};
|
|
154
161
|
commitToHistory: true;
|
|
155
162
|
};
|
|
@@ -43,7 +43,7 @@ export declare const actionCopyStyles: {
|
|
|
43
43
|
lastActiveTool: import("../types").LastActiveTool;
|
|
44
44
|
locked: boolean;
|
|
45
45
|
} & ({
|
|
46
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
46
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
47
47
|
customType: null;
|
|
48
48
|
} | {
|
|
49
49
|
type: "custom";
|
|
@@ -143,10 +143,17 @@ export declare const actionCopyStyles: {
|
|
|
143
143
|
gridColor: {
|
|
144
144
|
Bold: string;
|
|
145
145
|
Regular: string;
|
|
146
|
+
MajorGridFrequency?: number | undefined;
|
|
146
147
|
};
|
|
147
148
|
dynamicStyle: string;
|
|
148
149
|
invertBindingBehaviour: boolean;
|
|
149
150
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
151
|
+
snapLines: import("../snapping").SnapLine[];
|
|
152
|
+
originSnapOffset: {
|
|
153
|
+
x: number;
|
|
154
|
+
y: number;
|
|
155
|
+
} | null;
|
|
156
|
+
objectsSnapModeEnabled: boolean;
|
|
150
157
|
};
|
|
151
158
|
commitToHistory: false;
|
|
152
159
|
};
|
|
@@ -9,6 +9,7 @@ export declare const actionToggleGridMode: {
|
|
|
9
9
|
perform(elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<AppState>): {
|
|
10
10
|
appState: {
|
|
11
11
|
gridSize: number | null;
|
|
12
|
+
objectsSnapModeEnabled: false;
|
|
12
13
|
contextMenu: {
|
|
13
14
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
14
15
|
top: number;
|
|
@@ -43,7 +44,7 @@ export declare const actionToggleGridMode: {
|
|
|
43
44
|
lastActiveTool: import("../types").LastActiveTool;
|
|
44
45
|
locked: boolean;
|
|
45
46
|
} & ({
|
|
46
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
47
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
47
48
|
customType: null;
|
|
48
49
|
} | {
|
|
49
50
|
type: "custom";
|
|
@@ -147,10 +148,16 @@ export declare const actionToggleGridMode: {
|
|
|
147
148
|
gridColor: {
|
|
148
149
|
Bold: string;
|
|
149
150
|
Regular: string;
|
|
151
|
+
MajorGridFrequency?: number | undefined;
|
|
150
152
|
};
|
|
151
153
|
dynamicStyle: string;
|
|
152
154
|
invertBindingBehaviour: boolean;
|
|
153
155
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
156
|
+
snapLines: import("../snapping").SnapLine[];
|
|
157
|
+
originSnapOffset: {
|
|
158
|
+
x: number;
|
|
159
|
+
y: number;
|
|
160
|
+
} | null;
|
|
154
161
|
};
|
|
155
162
|
commitToHistory: false;
|
|
156
163
|
};
|