@zsviczian/excalidraw 0.15.3-obsidian-1 → 0.16.1-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.
- package/dist/excalidraw.development.js +329 -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 +21 -3
- package/types/actions/actionAlign.d.ts +6 -6
- package/types/actions/actionBoundText.d.ts +14 -2
- package/types/actions/actionCanvas.d.ts +88 -16
- package/types/actions/actionClipboard.d.ts +35 -5
- package/types/actions/actionDeleteSelected.d.ts +22 -4
- package/types/actions/actionDistribute.d.ts +2 -2
- package/types/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/actions/actionElementLock.d.ts +14 -2
- package/types/actions/actionExport.d.ts +69 -15
- package/types/actions/actionFinalize.d.ts +15 -3
- package/types/actions/actionFrame.d.ts +21 -3
- package/types/actions/actionGroup.d.ts +16 -4
- package/types/actions/actionLinearEditor.d.ts +7 -1
- package/types/actions/actionMenu.d.ts +23 -5
- package/types/actions/actionNavigate.d.ts +1 -1
- package/types/actions/actionProperties.d.ts +106 -26
- package/types/actions/actionSelectAll.d.ts +7 -1
- package/types/actions/actionStyles.d.ts +7 -1
- package/types/actions/actionToggleGridMode.d.ts +7 -1
- package/types/actions/actionToggleObjectsSnapMode.d.ts +169 -0
- package/types/actions/actionToggleStats.d.ts +7 -1
- package/types/actions/actionToggleViewMode.d.ts +7 -1
- package/types/actions/actionToggleZenMode.d.ts +7 -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 +9 -3
- package/types/element/bounds.d.ts +4 -5
- package/types/element/dragElements.d.ts +11 -2
- package/types/element/embeddable.d.ts +7 -1
- package/types/element/linearElementEditor.d.ts +8 -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
|
@@ -40,7 +40,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
40
40
|
lastActiveTool: import("../types").LastActiveTool;
|
|
41
41
|
locked: boolean;
|
|
42
42
|
} & ({
|
|
43
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
43
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
44
44
|
customType: null;
|
|
45
45
|
} | {
|
|
46
46
|
type: "custom";
|
|
@@ -149,10 +149,16 @@ export declare const actionToggleCanvasMenu: {
|
|
|
149
149
|
dynamicStyle: string;
|
|
150
150
|
invertBindingBehaviour: boolean;
|
|
151
151
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
152
|
+
snapLines: import("../snapping").SnapLine[];
|
|
153
|
+
originSnapOffset: {
|
|
154
|
+
x: number;
|
|
155
|
+
y: number;
|
|
156
|
+
} | null;
|
|
157
|
+
objectsSnapModeEnabled: boolean;
|
|
152
158
|
};
|
|
153
159
|
commitToHistory: false;
|
|
154
160
|
};
|
|
155
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
161
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
156
162
|
} & {
|
|
157
163
|
keyTest?: undefined;
|
|
158
164
|
};
|
|
@@ -198,7 +204,7 @@ export declare const actionToggleEditMenu: {
|
|
|
198
204
|
lastActiveTool: import("../types").LastActiveTool;
|
|
199
205
|
locked: boolean;
|
|
200
206
|
} & ({
|
|
201
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
207
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
202
208
|
customType: null;
|
|
203
209
|
} | {
|
|
204
210
|
type: "custom";
|
|
@@ -307,10 +313,16 @@ export declare const actionToggleEditMenu: {
|
|
|
307
313
|
dynamicStyle: string;
|
|
308
314
|
invertBindingBehaviour: boolean;
|
|
309
315
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
316
|
+
snapLines: import("../snapping").SnapLine[];
|
|
317
|
+
originSnapOffset: {
|
|
318
|
+
x: number;
|
|
319
|
+
y: number;
|
|
320
|
+
} | null;
|
|
321
|
+
objectsSnapModeEnabled: boolean;
|
|
310
322
|
};
|
|
311
323
|
commitToHistory: false;
|
|
312
324
|
};
|
|
313
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
325
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
314
326
|
} & {
|
|
315
327
|
keyTest?: undefined;
|
|
316
328
|
};
|
|
@@ -372,7 +384,7 @@ export declare const actionShortcuts: {
|
|
|
372
384
|
lastActiveTool: import("../types").LastActiveTool;
|
|
373
385
|
locked: boolean;
|
|
374
386
|
} & ({
|
|
375
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
387
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand" | "mermaid";
|
|
376
388
|
customType: null;
|
|
377
389
|
} | {
|
|
378
390
|
type: "custom";
|
|
@@ -481,6 +493,12 @@ export declare const actionShortcuts: {
|
|
|
481
493
|
dynamicStyle: string;
|
|
482
494
|
invertBindingBehaviour: boolean;
|
|
483
495
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
496
|
+
snapLines: import("../snapping").SnapLine[];
|
|
497
|
+
originSnapOffset: {
|
|
498
|
+
x: number;
|
|
499
|
+
y: number;
|
|
500
|
+
} | null;
|
|
501
|
+
objectsSnapModeEnabled: boolean;
|
|
484
502
|
};
|
|
485
503
|
commitToHistory: false;
|
|
486
504
|
};
|
|
@@ -8,7 +8,7 @@ export declare const actionGoToCollaborator: {
|
|
|
8
8
|
appState: Readonly<import("../types").AppState>;
|
|
9
9
|
commitToHistory: false;
|
|
10
10
|
};
|
|
11
|
-
PanelComponent: ({ updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
11
|
+
PanelComponent: ({ updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
} & {
|
|
13
13
|
keyTest?: undefined;
|
|
14
14
|
};
|
|
@@ -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";
|
|
@@ -166,10 +168,16 @@ export declare const actionChangeFillStyle: {
|
|
|
166
168
|
dynamicStyle: string;
|
|
167
169
|
invertBindingBehaviour: boolean;
|
|
168
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;
|
|
169
177
|
};
|
|
170
178
|
commitToHistory: true;
|
|
171
179
|
};
|
|
172
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
180
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
173
181
|
} & {
|
|
174
182
|
keyTest?: undefined;
|
|
175
183
|
};
|
|
@@ -214,7 +222,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
214
222
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
215
223
|
locked: boolean;
|
|
216
224
|
} & ({
|
|
217
|
-
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";
|
|
218
226
|
customType: null;
|
|
219
227
|
} | {
|
|
220
228
|
type: "custom";
|
|
@@ -323,10 +331,16 @@ export declare const actionChangeStrokeWidth: {
|
|
|
323
331
|
dynamicStyle: string;
|
|
324
332
|
invertBindingBehaviour: boolean;
|
|
325
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;
|
|
326
340
|
};
|
|
327
341
|
commitToHistory: true;
|
|
328
342
|
};
|
|
329
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
343
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
330
344
|
} & {
|
|
331
345
|
keyTest?: undefined;
|
|
332
346
|
};
|
|
@@ -371,7 +385,7 @@ export declare const actionChangeSloppiness: {
|
|
|
371
385
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
372
386
|
locked: boolean;
|
|
373
387
|
} & ({
|
|
374
|
-
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";
|
|
375
389
|
customType: null;
|
|
376
390
|
} | {
|
|
377
391
|
type: "custom";
|
|
@@ -480,10 +494,16 @@ export declare const actionChangeSloppiness: {
|
|
|
480
494
|
dynamicStyle: string;
|
|
481
495
|
invertBindingBehaviour: boolean;
|
|
482
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;
|
|
483
503
|
};
|
|
484
504
|
commitToHistory: true;
|
|
485
505
|
};
|
|
486
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
506
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
487
507
|
} & {
|
|
488
508
|
keyTest?: undefined;
|
|
489
509
|
};
|
|
@@ -528,7 +548,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
528
548
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
529
549
|
locked: boolean;
|
|
530
550
|
} & ({
|
|
531
|
-
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";
|
|
532
552
|
customType: null;
|
|
533
553
|
} | {
|
|
534
554
|
type: "custom";
|
|
@@ -637,10 +657,16 @@ export declare const actionChangeStrokeStyle: {
|
|
|
637
657
|
dynamicStyle: string;
|
|
638
658
|
invertBindingBehaviour: boolean;
|
|
639
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;
|
|
640
666
|
};
|
|
641
667
|
commitToHistory: true;
|
|
642
668
|
};
|
|
643
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
669
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
644
670
|
} & {
|
|
645
671
|
keyTest?: undefined;
|
|
646
672
|
};
|
|
@@ -685,7 +711,7 @@ export declare const actionChangeOpacity: {
|
|
|
685
711
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
686
712
|
locked: boolean;
|
|
687
713
|
} & ({
|
|
688
|
-
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";
|
|
689
715
|
customType: null;
|
|
690
716
|
} | {
|
|
691
717
|
type: "custom";
|
|
@@ -794,10 +820,16 @@ export declare const actionChangeOpacity: {
|
|
|
794
820
|
dynamicStyle: string;
|
|
795
821
|
invertBindingBehaviour: boolean;
|
|
796
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;
|
|
797
829
|
};
|
|
798
830
|
commitToHistory: true;
|
|
799
831
|
};
|
|
800
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
832
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
801
833
|
} & {
|
|
802
834
|
keyTest?: undefined;
|
|
803
835
|
};
|
|
@@ -842,7 +874,7 @@ export declare const actionChangeFontSize: {
|
|
|
842
874
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
843
875
|
locked: boolean;
|
|
844
876
|
} & ({
|
|
845
|
-
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";
|
|
846
878
|
customType: null;
|
|
847
879
|
} | {
|
|
848
880
|
type: "custom";
|
|
@@ -951,10 +983,16 @@ export declare const actionChangeFontSize: {
|
|
|
951
983
|
dynamicStyle: string;
|
|
952
984
|
invertBindingBehaviour: boolean;
|
|
953
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;
|
|
954
992
|
};
|
|
955
993
|
commitToHistory: boolean;
|
|
956
994
|
};
|
|
957
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
995
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
958
996
|
} & {
|
|
959
997
|
keyTest?: undefined;
|
|
960
998
|
};
|
|
@@ -999,7 +1037,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
999
1037
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1000
1038
|
locked: boolean;
|
|
1001
1039
|
} & ({
|
|
1002
|
-
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";
|
|
1003
1041
|
customType: null;
|
|
1004
1042
|
} | {
|
|
1005
1043
|
type: "custom";
|
|
@@ -1108,6 +1146,12 @@ export declare const actionDecreaseFontSize: {
|
|
|
1108
1146
|
dynamicStyle: string;
|
|
1109
1147
|
invertBindingBehaviour: boolean;
|
|
1110
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;
|
|
1111
1155
|
};
|
|
1112
1156
|
commitToHistory: boolean;
|
|
1113
1157
|
};
|
|
@@ -1156,7 +1200,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1156
1200
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1157
1201
|
locked: boolean;
|
|
1158
1202
|
} & ({
|
|
1159
|
-
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";
|
|
1160
1204
|
customType: null;
|
|
1161
1205
|
} | {
|
|
1162
1206
|
type: "custom";
|
|
@@ -1265,6 +1309,12 @@ export declare const actionIncreaseFontSize: {
|
|
|
1265
1309
|
dynamicStyle: string;
|
|
1266
1310
|
invertBindingBehaviour: boolean;
|
|
1267
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;
|
|
1268
1318
|
};
|
|
1269
1319
|
commitToHistory: boolean;
|
|
1270
1320
|
};
|
|
@@ -1313,7 +1363,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1313
1363
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1314
1364
|
locked: boolean;
|
|
1315
1365
|
} & ({
|
|
1316
|
-
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";
|
|
1317
1367
|
customType: null;
|
|
1318
1368
|
} | {
|
|
1319
1369
|
type: "custom";
|
|
@@ -1422,10 +1472,16 @@ export declare const actionChangeFontFamily: {
|
|
|
1422
1472
|
dynamicStyle: string;
|
|
1423
1473
|
invertBindingBehaviour: boolean;
|
|
1424
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;
|
|
1425
1481
|
};
|
|
1426
1482
|
commitToHistory: true;
|
|
1427
1483
|
};
|
|
1428
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1484
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1429
1485
|
} & {
|
|
1430
1486
|
keyTest?: undefined;
|
|
1431
1487
|
};
|
|
@@ -1470,7 +1526,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1470
1526
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1471
1527
|
locked: boolean;
|
|
1472
1528
|
} & ({
|
|
1473
|
-
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";
|
|
1474
1530
|
customType: null;
|
|
1475
1531
|
} | {
|
|
1476
1532
|
type: "custom";
|
|
@@ -1579,10 +1635,16 @@ export declare const actionChangeTextAlign: {
|
|
|
1579
1635
|
dynamicStyle: string;
|
|
1580
1636
|
invertBindingBehaviour: boolean;
|
|
1581
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;
|
|
1582
1644
|
};
|
|
1583
1645
|
commitToHistory: true;
|
|
1584
1646
|
};
|
|
1585
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1647
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1586
1648
|
} & {
|
|
1587
1649
|
keyTest?: undefined;
|
|
1588
1650
|
};
|
|
@@ -1628,7 +1690,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1628
1690
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1629
1691
|
locked: boolean;
|
|
1630
1692
|
} & ({
|
|
1631
|
-
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";
|
|
1632
1694
|
customType: null;
|
|
1633
1695
|
} | {
|
|
1634
1696
|
type: "custom";
|
|
@@ -1738,10 +1800,16 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1738
1800
|
dynamicStyle: string;
|
|
1739
1801
|
invertBindingBehaviour: boolean;
|
|
1740
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;
|
|
1741
1809
|
};
|
|
1742
1810
|
commitToHistory: true;
|
|
1743
1811
|
};
|
|
1744
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1812
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1745
1813
|
} & {
|
|
1746
1814
|
keyTest?: undefined;
|
|
1747
1815
|
};
|
|
@@ -1786,7 +1854,7 @@ export declare const actionChangeRoundness: {
|
|
|
1786
1854
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1787
1855
|
locked: boolean;
|
|
1788
1856
|
} & ({
|
|
1789
|
-
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";
|
|
1790
1858
|
customType: null;
|
|
1791
1859
|
} | {
|
|
1792
1860
|
type: "custom";
|
|
@@ -1895,10 +1963,16 @@ export declare const actionChangeRoundness: {
|
|
|
1895
1963
|
dynamicStyle: string;
|
|
1896
1964
|
invertBindingBehaviour: boolean;
|
|
1897
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;
|
|
1898
1972
|
};
|
|
1899
1973
|
commitToHistory: true;
|
|
1900
1974
|
};
|
|
1901
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1975
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1902
1976
|
} & {
|
|
1903
1977
|
keyTest?: undefined;
|
|
1904
1978
|
};
|
|
@@ -1945,7 +2019,7 @@ export declare const actionChangeArrowhead: {
|
|
|
1945
2019
|
lastActiveTool: import("../../src/types").LastActiveTool;
|
|
1946
2020
|
locked: boolean;
|
|
1947
2021
|
} & ({
|
|
1948
|
-
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";
|
|
1949
2023
|
customType: null;
|
|
1950
2024
|
} | {
|
|
1951
2025
|
type: "custom";
|
|
@@ -2055,10 +2129,16 @@ export declare const actionChangeArrowhead: {
|
|
|
2055
2129
|
dynamicStyle: string;
|
|
2056
2130
|
invertBindingBehaviour: boolean;
|
|
2057
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;
|
|
2058
2138
|
};
|
|
2059
2139
|
commitToHistory: true;
|
|
2060
2140
|
};
|
|
2061
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2141
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2062
2142
|
} & {
|
|
2063
2143
|
keyTest?: undefined;
|
|
2064
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";
|
|
@@ -151,6 +151,12 @@ export declare const actionSelectAll: {
|
|
|
151
151
|
};
|
|
152
152
|
dynamicStyle: string;
|
|
153
153
|
invertBindingBehaviour: boolean;
|
|
154
|
+
snapLines: import("../snapping").SnapLine[];
|
|
155
|
+
originSnapOffset: {
|
|
156
|
+
x: number;
|
|
157
|
+
y: number;
|
|
158
|
+
} | null;
|
|
159
|
+
objectsSnapModeEnabled: boolean;
|
|
154
160
|
};
|
|
155
161
|
commitToHistory: true;
|
|
156
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";
|
|
@@ -148,6 +148,12 @@ export declare const actionCopyStyles: {
|
|
|
148
148
|
dynamicStyle: string;
|
|
149
149
|
invertBindingBehaviour: boolean;
|
|
150
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;
|
|
151
157
|
};
|
|
152
158
|
commitToHistory: false;
|
|
153
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";
|
|
@@ -152,6 +153,11 @@ export declare const actionToggleGridMode: {
|
|
|
152
153
|
dynamicStyle: string;
|
|
153
154
|
invertBindingBehaviour: boolean;
|
|
154
155
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
156
|
+
snapLines: import("../snapping").SnapLine[];
|
|
157
|
+
originSnapOffset: {
|
|
158
|
+
x: number;
|
|
159
|
+
y: number;
|
|
160
|
+
} | null;
|
|
155
161
|
};
|
|
156
162
|
commitToHistory: false;
|
|
157
163
|
};
|