@dwelle/excalidraw 0.6.0-rc.1 → 0.6.0-rc.3
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/README.md +3 -4
- package/dist/dev/{chunk-EFVS2MI5.js → chunk-FCTATTEX.js} +2 -2
- package/dist/dev/{chunk-EFVS2MI5.js.map → chunk-FCTATTEX.js.map} +1 -1
- package/dist/dev/chunk-GPAPUEH7.js +25914 -0
- package/dist/dev/chunk-GPAPUEH7.js.map +7 -0
- package/dist/dev/data/image-KIZE4OBD.js +13 -0
- package/dist/dev/index.css.map +1 -1
- package/dist/dev/index.js +33243 -37
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-P7457GAF.js → chunk-DZ7HA6XS.js} +1 -1
- package/dist/prod/chunk-TQDSDB2B.js +46 -0
- package/dist/prod/data/image-SCXWNX5A.js +1 -0
- package/dist/prod/index.js +108 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionAlign.d.ts +18 -18
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +31 -31
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +17 -17
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +5 -5
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionExport.d.ts +30 -30
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +9 -9
- package/dist/types/excalidraw/actions/actionGroup.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionMenu.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionProperties.d.ts +31 -31
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +5 -5
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionZindex.d.ts +14 -14
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +2 -2
- package/dist/types/excalidraw/appState.d.ts +9 -9
- package/dist/types/excalidraw/clipboard.d.ts +4 -4
- package/dist/types/excalidraw/components/Actions.d.ts +6 -7
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/App.d.ts +13 -3
- package/dist/types/excalidraw/components/Avatar.d.ts +1 -1
- package/dist/types/excalidraw/components/BraveMeasureTextError.d.ts +1 -2
- package/dist/types/excalidraw/components/Button.d.ts +1 -1
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -1
- package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +2 -2
- package/dist/types/excalidraw/components/ButtonIconSelect.d.ts +2 -2
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +1 -2
- package/dist/types/excalidraw/components/ButtonSeparator.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -2
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -2
- package/dist/types/excalidraw/components/ConfirmDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/ContextMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -2
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Dialog.d.ts +1 -1
- package/dist/types/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -2
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/HandButton.d.ts +1 -2
- package/dist/types/excalidraw/components/HelpButton.d.ts +1 -2
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/HintViewer.d.ts +1 -2
- package/dist/types/excalidraw/components/IconPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +2 -3
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/InlineIcon.d.ts +1 -2
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +1 -2
- package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +2 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +1 -2
- package/dist/types/excalidraw/components/MagicButton.d.ts +2 -2
- package/dist/types/excalidraw/components/MobileMenu.d.ts +2 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +4 -4
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmActions.d.ts +6 -6
- package/dist/types/excalidraw/components/Paragraph.d.ts +1 -2
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/PenModeButton.d.ts +1 -2
- package/dist/types/excalidraw/components/Popover.d.ts +1 -1
- package/dist/types/excalidraw/components/ProjectName.d.ts +1 -2
- package/dist/types/excalidraw/components/PublishLibrary.d.ts +1 -2
- package/dist/types/excalidraw/components/RadioGroup.d.ts +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +1 -2
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -2
- package/dist/types/excalidraw/components/ScrollableList.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -2
- package/dist/types/excalidraw/components/ShareableLinkDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +6 -6
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/common.d.ts +1 -0
- package/dist/types/excalidraw/components/Spinner.d.ts +1 -2
- package/dist/types/excalidraw/components/Stack.d.ts +2 -3
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -2
- package/dist/types/excalidraw/components/Stats/index.d.ts +4 -4
- package/dist/types/excalidraw/components/Switch.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogSubmitShortcut.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/Toast.d.ts +1 -1
- package/dist/types/excalidraw/components/Tooltip.d.ts +1 -1
- package/dist/types/excalidraw/components/UserList.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -2
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +11 -11
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +4 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSeparator.d.ts +1 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -2
- package/dist/types/excalidraw/components/footer/Footer.d.ts +1 -2
- package/dist/types/excalidraw/components/footer/FooterCenter.d.ts +1 -2
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -2
- package/dist/types/excalidraw/components/icons.d.ts +178 -178
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -13
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +9 -9
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +10 -10
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Hints.d.ts +3 -4
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -15
- package/dist/types/excalidraw/constants.d.ts +1 -0
- package/dist/types/excalidraw/data/blob.d.ts +1 -1
- package/dist/types/excalidraw/element/ElementCanvasButtons.d.ts +1 -2
- package/dist/types/excalidraw/element/binding.d.ts +1 -2
- package/dist/types/excalidraw/element/collision.d.ts +10 -1
- package/dist/types/excalidraw/element/distance.d.ts +3 -0
- package/dist/types/excalidraw/element/embeddable.d.ts +1 -1
- package/dist/types/excalidraw/element/newElement.d.ts +1 -1
- package/dist/types/excalidraw/element/transformHandles.d.ts +2 -2
- package/dist/types/excalidraw/element/types.d.ts +1 -1
- package/dist/types/excalidraw/element/utils.d.ts +21 -0
- package/dist/types/excalidraw/fonts/FontMetadata.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +2 -4
- package/dist/types/excalidraw/shapes.d.ts +11 -12
- package/dist/types/excalidraw/store.d.ts +6 -6
- package/dist/types/excalidraw/types.d.ts +3 -2
- package/dist/types/excalidraw/utils.d.ts +3 -3
- package/dist/types/excalidraw/visualdebug.d.ts +7 -8
- package/dist/types/excalidraw/zindex.d.ts +2 -2
- package/dist/types/math/curve.d.ts +22 -14
- package/dist/types/math/ellipse.d.ts +44 -0
- package/dist/types/math/index.d.ts +1 -1
- package/dist/types/math/line.d.ts +2 -30
- package/dist/types/math/point.d.ts +1 -29
- package/dist/types/math/rectangle.d.ts +3 -0
- package/dist/types/math/segment.d.ts +8 -1
- package/dist/types/math/types.d.ts +15 -6
- package/dist/types/math/vector.d.ts +0 -4
- package/dist/types/utils/export.d.ts +1 -1
- package/package.json +6 -14
- package/dist/dev/chunk-637CAVTS.js +0 -57639
- package/dist/dev/chunk-637CAVTS.js.map +0 -7
- package/dist/dev/data/image-N6Y7BWW6.css +0 -6753
- package/dist/dev/data/image-N6Y7BWW6.css.map +0 -7
- package/dist/dev/data/image-QMQX6YR5.js +0 -15
- package/dist/prod/chunk-PEDHHNBJ.js +0 -153
- package/dist/prod/data/image-IP6M4LZC.js +0 -1
- package/dist/prod/data/image-KGQIL6Y4.css +0 -1
- package/dist/types/math/arc.d.ts +0 -6
- package/dist/types/math/ga/ga.d.ts +0 -63
- package/dist/types/math/ga/gadirections.d.ts +0 -8
- package/dist/types/math/ga/galines.d.ts +0 -22
- package/dist/types/math/ga/gapoints.d.ts +0 -7
- package/dist/types/math/ga/gatransforms.d.ts +0 -10
- /package/dist/dev/data/{image-QMQX6YR5.js.map → image-KIZE4OBD.js.map} +0 -0
|
@@ -4,19 +4,19 @@ import type { AppState } from "../types";
|
|
|
4
4
|
export declare const actionDuplicateSelection: {
|
|
5
5
|
name: "duplicateSelection";
|
|
6
6
|
label: string;
|
|
7
|
-
icon: JSX.Element;
|
|
7
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
trackEvent: {
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
12
|
-
|
|
12
|
+
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
elements?: readonly ExcalidrawElement[] | null | undefined;
|
|
14
14
|
appState?: Partial<AppState> | null | undefined;
|
|
15
15
|
files?: import("../types").BinaryFiles | null | undefined;
|
|
16
16
|
replaceFiles?: boolean | undefined;
|
|
17
17
|
};
|
|
18
18
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
19
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
19
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
} & {
|
|
21
21
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
22
22
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const actionCopyElementLink: {
|
|
3
3
|
name: "copyElementLink";
|
|
4
4
|
label: string;
|
|
5
|
-
icon: JSX.Element;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
@@ -13,14 +13,14 @@ export declare const actionCopyElementLink: {
|
|
|
13
13
|
closable: true;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
captureUpdate: "EVENTUALLY";
|
|
17
17
|
elements?: undefined;
|
|
18
18
|
app?: undefined;
|
|
19
19
|
} | {
|
|
20
20
|
appState: Readonly<import("../types").AppState>;
|
|
21
21
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
22
22
|
app: import("../types").AppClassProperties;
|
|
23
|
-
|
|
23
|
+
captureUpdate: "EVENTUALLY";
|
|
24
24
|
}>;
|
|
25
25
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
26
26
|
} & {
|
|
@@ -29,12 +29,12 @@ export declare const actionCopyElementLink: {
|
|
|
29
29
|
export declare const actionLinkToElement: {
|
|
30
30
|
name: "linkToElement";
|
|
31
31
|
label: string;
|
|
32
|
-
icon: JSX.Element;
|
|
32
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
34
34
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
35
35
|
appState: Readonly<import("../types").AppState>;
|
|
36
36
|
app: import("../types").AppClassProperties;
|
|
37
|
-
|
|
37
|
+
captureUpdate: "EVENTUALLY";
|
|
38
38
|
} | {
|
|
39
39
|
appState: {
|
|
40
40
|
openDialog: {
|
|
@@ -202,7 +202,7 @@ export declare const actionLinkToElement: {
|
|
|
202
202
|
}[];
|
|
203
203
|
}[];
|
|
204
204
|
};
|
|
205
|
-
|
|
205
|
+
captureUpdate: "IMMEDIATELY";
|
|
206
206
|
elements?: undefined;
|
|
207
207
|
app?: undefined;
|
|
208
208
|
};
|
|
@@ -3,7 +3,7 @@ import type { ExcalidrawElement } from "../element/types";
|
|
|
3
3
|
export declare const actionToggleElementLock: {
|
|
4
4
|
name: "toggleElementLock";
|
|
5
5
|
label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
|
|
6
|
-
icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => JSX.Element;
|
|
6
|
+
icon: (appState: import("../types").UIAppState, elements: readonly ExcalidrawElement[]) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
@@ -183,7 +183,7 @@ export declare const actionToggleElementLock: {
|
|
|
183
183
|
}[];
|
|
184
184
|
}[];
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
captureUpdate: "IMMEDIATELY";
|
|
187
187
|
};
|
|
188
188
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
189
189
|
} & {
|
|
@@ -196,7 +196,7 @@ export declare const actionUnlockAllElements: {
|
|
|
196
196
|
category: "canvas";
|
|
197
197
|
};
|
|
198
198
|
viewMode: false;
|
|
199
|
-
icon: JSX.Element;
|
|
199
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
200
200
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
201
201
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
202
202
|
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
@@ -373,7 +373,7 @@ export declare const actionUnlockAllElements: {
|
|
|
373
373
|
}[];
|
|
374
374
|
}[];
|
|
375
375
|
};
|
|
376
|
-
|
|
376
|
+
captureUpdate: "IMMEDIATELY";
|
|
377
377
|
};
|
|
378
378
|
label: string;
|
|
379
379
|
} & {
|
|
@@ -179,9 +179,9 @@ export declare const actionChangeProjectName: {
|
|
|
179
179
|
}[];
|
|
180
180
|
}[];
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
captureUpdate: "EVENTUALLY";
|
|
183
183
|
};
|
|
184
|
-
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
184
|
+
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
185
185
|
} & {
|
|
186
186
|
keyTest?: undefined;
|
|
187
187
|
};
|
|
@@ -366,9 +366,9 @@ export declare const actionChangeExportScale: {
|
|
|
366
366
|
}[];
|
|
367
367
|
}[];
|
|
368
368
|
};
|
|
369
|
-
|
|
369
|
+
captureUpdate: "EVENTUALLY";
|
|
370
370
|
};
|
|
371
|
-
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
371
|
+
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
372
372
|
} & {
|
|
373
373
|
keyTest?: undefined;
|
|
374
374
|
};
|
|
@@ -553,9 +553,9 @@ export declare const actionChangeExportBackground: {
|
|
|
553
553
|
}[];
|
|
554
554
|
}[];
|
|
555
555
|
};
|
|
556
|
-
|
|
556
|
+
captureUpdate: "EVENTUALLY";
|
|
557
557
|
};
|
|
558
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
558
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
559
559
|
} & {
|
|
560
560
|
keyTest?: undefined;
|
|
561
561
|
};
|
|
@@ -740,22 +740,22 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
740
740
|
}[];
|
|
741
741
|
}[];
|
|
742
742
|
};
|
|
743
|
-
|
|
743
|
+
captureUpdate: "EVENTUALLY";
|
|
744
744
|
};
|
|
745
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
745
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
746
746
|
} & {
|
|
747
747
|
keyTest?: undefined;
|
|
748
748
|
};
|
|
749
749
|
export declare const actionSaveToActiveFile: {
|
|
750
750
|
name: "saveToActiveFile";
|
|
751
751
|
label: string;
|
|
752
|
-
icon: JSX.Element;
|
|
752
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
753
753
|
trackEvent: {
|
|
754
754
|
category: "export";
|
|
755
755
|
};
|
|
756
756
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
757
757
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
758
|
-
|
|
758
|
+
captureUpdate: "EVENTUALLY";
|
|
759
759
|
appState: {
|
|
760
760
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
761
761
|
toast: {
|
|
@@ -928,7 +928,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
928
928
|
}[];
|
|
929
929
|
};
|
|
930
930
|
} | {
|
|
931
|
-
|
|
931
|
+
captureUpdate: "EVENTUALLY";
|
|
932
932
|
appState?: undefined;
|
|
933
933
|
}>;
|
|
934
934
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -938,13 +938,13 @@ export declare const actionSaveToActiveFile: {
|
|
|
938
938
|
export declare const actionSaveFileToDisk: {
|
|
939
939
|
name: "saveFileToDisk";
|
|
940
940
|
label: string;
|
|
941
|
-
icon: JSX.Element;
|
|
941
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
942
942
|
viewMode: true;
|
|
943
943
|
trackEvent: {
|
|
944
944
|
category: "export";
|
|
945
945
|
};
|
|
946
946
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
947
|
-
|
|
947
|
+
captureUpdate: "EVENTUALLY";
|
|
948
948
|
appState: {
|
|
949
949
|
openDialog: null;
|
|
950
950
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -1107,11 +1107,11 @@ export declare const actionSaveFileToDisk: {
|
|
|
1107
1107
|
}[];
|
|
1108
1108
|
};
|
|
1109
1109
|
} | {
|
|
1110
|
-
|
|
1110
|
+
captureUpdate: "EVENTUALLY";
|
|
1111
1111
|
appState?: undefined;
|
|
1112
1112
|
}>;
|
|
1113
1113
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1114
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1114
|
+
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1115
1115
|
} & {
|
|
1116
1116
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1117
1117
|
};
|
|
@@ -1125,6 +1125,17 @@ export declare const actionLoadScene: {
|
|
|
1125
1125
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1126
1126
|
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
1127
1127
|
appState: {
|
|
1128
|
+
viewModeEnabled: boolean;
|
|
1129
|
+
zenModeEnabled: boolean;
|
|
1130
|
+
gridModeEnabled: boolean;
|
|
1131
|
+
objectsSnapModeEnabled: boolean;
|
|
1132
|
+
theme: Theme;
|
|
1133
|
+
name: string | null;
|
|
1134
|
+
activeTool: {
|
|
1135
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
1136
|
+
locked: boolean;
|
|
1137
|
+
} & import("../types").ActiveTool;
|
|
1138
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1128
1139
|
contextMenu: {
|
|
1129
1140
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1130
1141
|
top: number;
|
|
@@ -1155,10 +1166,6 @@ export declare const actionLoadScene: {
|
|
|
1155
1166
|
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
1156
1167
|
editingTextElement: NonDeletedExcalidrawElement | null;
|
|
1157
1168
|
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
1158
|
-
activeTool: {
|
|
1159
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1160
|
-
locked: boolean;
|
|
1161
|
-
} & import("../types").ActiveTool;
|
|
1162
1169
|
penMode: boolean;
|
|
1163
1170
|
penDetected: boolean;
|
|
1164
1171
|
exportBackground: boolean;
|
|
@@ -1179,13 +1186,11 @@ export declare const actionLoadScene: {
|
|
|
1179
1186
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
1180
1187
|
currentHoveredFontFamily: number | null;
|
|
1181
1188
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
1182
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1183
1189
|
viewBackgroundColor: string;
|
|
1184
1190
|
scrollX: number;
|
|
1185
1191
|
scrollY: number;
|
|
1186
1192
|
cursorButton: "up" | "down";
|
|
1187
1193
|
scrolledOutside: boolean;
|
|
1188
|
-
name: string | null;
|
|
1189
1194
|
isResizing: boolean;
|
|
1190
1195
|
isRotating: boolean;
|
|
1191
1196
|
zoom: Readonly<{
|
|
@@ -1226,12 +1231,8 @@ export declare const actionLoadScene: {
|
|
|
1226
1231
|
closable?: boolean | undefined;
|
|
1227
1232
|
duration?: number | undefined;
|
|
1228
1233
|
} | null;
|
|
1229
|
-
zenModeEnabled: boolean;
|
|
1230
|
-
theme: Theme;
|
|
1231
1234
|
gridSize: number;
|
|
1232
1235
|
gridStep: number;
|
|
1233
|
-
gridModeEnabled: boolean;
|
|
1234
|
-
viewModeEnabled: boolean;
|
|
1235
1236
|
selectedGroupIds: {
|
|
1236
1237
|
[groupId: string]: boolean;
|
|
1237
1238
|
};
|
|
@@ -1277,7 +1278,6 @@ export declare const actionLoadScene: {
|
|
|
1277
1278
|
x: number;
|
|
1278
1279
|
y: number;
|
|
1279
1280
|
} | null;
|
|
1280
|
-
objectsSnapModeEnabled: boolean;
|
|
1281
1281
|
userToFollow: import("../types").UserToFollow | null;
|
|
1282
1282
|
followedBy: Set<import("../types").SocketId>;
|
|
1283
1283
|
isCropping: boolean;
|
|
@@ -1294,7 +1294,7 @@ export declare const actionLoadScene: {
|
|
|
1294
1294
|
}[];
|
|
1295
1295
|
};
|
|
1296
1296
|
files: import("../types").BinaryFiles;
|
|
1297
|
-
|
|
1297
|
+
captureUpdate: "IMMEDIATELY";
|
|
1298
1298
|
} | {
|
|
1299
1299
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
1300
1300
|
appState: {
|
|
@@ -1471,7 +1471,7 @@ export declare const actionLoadScene: {
|
|
|
1471
1471
|
}[];
|
|
1472
1472
|
};
|
|
1473
1473
|
files: import("../types").BinaryFiles;
|
|
1474
|
-
|
|
1474
|
+
captureUpdate: "EVENTUALLY";
|
|
1475
1475
|
}>;
|
|
1476
1476
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1477
1477
|
} & {
|
|
@@ -1658,9 +1658,9 @@ export declare const actionExportWithDarkMode: {
|
|
|
1658
1658
|
}[];
|
|
1659
1659
|
}[];
|
|
1660
1660
|
};
|
|
1661
|
-
|
|
1661
|
+
captureUpdate: "EVENTUALLY";
|
|
1662
1662
|
};
|
|
1663
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1663
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1664
1664
|
} & {
|
|
1665
1665
|
keyTest?: undefined;
|
|
1666
1666
|
};
|
|
@@ -180,7 +180,7 @@ export declare const actionFinalize: {
|
|
|
180
180
|
}[];
|
|
181
181
|
}[];
|
|
182
182
|
};
|
|
183
|
-
|
|
183
|
+
captureUpdate: "IMMEDIATELY";
|
|
184
184
|
} | {
|
|
185
185
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
186
186
|
appState: {
|
|
@@ -353,10 +353,10 @@ export declare const actionFinalize: {
|
|
|
353
353
|
}[];
|
|
354
354
|
}[];
|
|
355
355
|
};
|
|
356
|
-
|
|
356
|
+
captureUpdate: "IMMEDIATELY";
|
|
357
357
|
};
|
|
358
358
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
359
|
-
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
359
|
+
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
360
360
|
} & {
|
|
361
361
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
362
362
|
};
|
|
@@ -4,14 +4,14 @@ import type { AppClassProperties, AppState } from "../types";
|
|
|
4
4
|
export declare const actionFlipHorizontal: {
|
|
5
5
|
name: "flipHorizontal";
|
|
6
6
|
label: string;
|
|
7
|
-
icon: JSX.Element;
|
|
7
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
trackEvent: {
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
|
-
|
|
14
|
+
captureUpdate: "IMMEDIATELY";
|
|
15
15
|
};
|
|
16
16
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
17
17
|
} & {
|
|
@@ -20,14 +20,14 @@ export declare const actionFlipHorizontal: {
|
|
|
20
20
|
export declare const actionFlipVertical: {
|
|
21
21
|
name: "flipVertical";
|
|
22
22
|
label: string;
|
|
23
|
-
icon: JSX.Element;
|
|
23
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
trackEvent: {
|
|
25
25
|
category: "element";
|
|
26
26
|
};
|
|
27
27
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
appState: Readonly<AppState>;
|
|
30
|
-
|
|
30
|
+
captureUpdate: "IMMEDIATELY";
|
|
31
31
|
};
|
|
32
32
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
33
33
|
} & {
|
|
@@ -180,11 +180,11 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
180
180
|
}[];
|
|
181
181
|
}[];
|
|
182
182
|
};
|
|
183
|
-
|
|
183
|
+
captureUpdate: "IMMEDIATELY";
|
|
184
184
|
} | {
|
|
185
185
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
186
186
|
appState: Readonly<AppState>;
|
|
187
|
-
|
|
187
|
+
captureUpdate: "EVENTUALLY";
|
|
188
188
|
};
|
|
189
189
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
190
190
|
} & {
|
|
@@ -371,11 +371,11 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
371
371
|
}[];
|
|
372
372
|
}[];
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
captureUpdate: "IMMEDIATELY";
|
|
375
375
|
} | {
|
|
376
376
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
377
377
|
appState: Readonly<AppState>;
|
|
378
|
-
|
|
378
|
+
captureUpdate: "EVENTUALLY";
|
|
379
379
|
};
|
|
380
380
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
381
381
|
} & {
|
|
@@ -563,7 +563,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
563
563
|
}[];
|
|
564
564
|
}[];
|
|
565
565
|
};
|
|
566
|
-
|
|
566
|
+
captureUpdate: "EVENTUALLY";
|
|
567
567
|
};
|
|
568
568
|
checked: (appState: AppState) => boolean;
|
|
569
569
|
} & {
|
|
@@ -575,7 +575,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
575
575
|
trackEvent: {
|
|
576
576
|
category: "toolbar";
|
|
577
577
|
};
|
|
578
|
-
icon: JSX.Element;
|
|
578
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
579
579
|
viewMode: false;
|
|
580
580
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
581
581
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
@@ -752,7 +752,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
752
752
|
}[];
|
|
753
753
|
}[];
|
|
754
754
|
};
|
|
755
|
-
|
|
755
|
+
captureUpdate: "EVENTUALLY";
|
|
756
756
|
};
|
|
757
757
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
758
758
|
} & {
|
|
@@ -1082,7 +1082,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1082
1082
|
}> & Readonly<{
|
|
1083
1083
|
type: "image";
|
|
1084
1084
|
fileId: import("../element/types").FileId | null;
|
|
1085
|
-
status: "
|
|
1085
|
+
status: "error" | "pending" | "saved";
|
|
1086
1086
|
scale: [number, number];
|
|
1087
1087
|
crop: import("../element/types").ImageCrop | null;
|
|
1088
1088
|
}> & {
|
|
@@ -1246,7 +1246,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1246
1246
|
[x: string]: true;
|
|
1247
1247
|
};
|
|
1248
1248
|
};
|
|
1249
|
-
|
|
1249
|
+
captureUpdate: "IMMEDIATELY";
|
|
1250
1250
|
};
|
|
1251
1251
|
} & {
|
|
1252
1252
|
keyTest?: undefined;
|
|
@@ -4,14 +4,14 @@ import type { AppClassProperties, AppState } from "../types";
|
|
|
4
4
|
export declare const actionGroup: {
|
|
5
5
|
name: "group";
|
|
6
6
|
label: string;
|
|
7
|
-
icon: (appState: import("../types").UIAppState) => JSX.Element;
|
|
7
|
+
icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
trackEvent: {
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
12
12
|
appState: Readonly<AppState>;
|
|
13
13
|
elements: readonly OrderedExcalidrawElement[];
|
|
14
|
-
|
|
14
|
+
captureUpdate: "EVENTUALLY";
|
|
15
15
|
} | {
|
|
16
16
|
appState: {
|
|
17
17
|
selectedElementIds: Readonly<{
|
|
@@ -187,25 +187,25 @@ export declare const actionGroup: {
|
|
|
187
187
|
}[];
|
|
188
188
|
};
|
|
189
189
|
elements: OrderedExcalidrawElement[];
|
|
190
|
-
|
|
190
|
+
captureUpdate: "IMMEDIATELY";
|
|
191
191
|
};
|
|
192
192
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
193
193
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
194
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
194
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
195
195
|
} & {
|
|
196
196
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
197
197
|
};
|
|
198
198
|
export declare const actionUngroup: {
|
|
199
199
|
name: "ungroup";
|
|
200
200
|
label: string;
|
|
201
|
-
icon: (appState: import("../types").UIAppState) => JSX.Element;
|
|
201
|
+
icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
202
202
|
trackEvent: {
|
|
203
203
|
category: "element";
|
|
204
204
|
};
|
|
205
205
|
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
206
206
|
appState: Readonly<AppState>;
|
|
207
207
|
elements: readonly OrderedExcalidrawElement[];
|
|
208
|
-
|
|
208
|
+
captureUpdate: "EVENTUALLY";
|
|
209
209
|
} | {
|
|
210
210
|
appState: {
|
|
211
211
|
selectedElementIds: Readonly<{
|
|
@@ -381,11 +381,11 @@ export declare const actionUngroup: {
|
|
|
381
381
|
}[];
|
|
382
382
|
};
|
|
383
383
|
elements: OrderedExcalidrawElement[];
|
|
384
|
-
|
|
384
|
+
captureUpdate: "IMMEDIATELY";
|
|
385
385
|
};
|
|
386
386
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
387
387
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
388
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
388
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
389
389
|
} & {
|
|
390
390
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
391
391
|
};
|
|
@@ -184,9 +184,9 @@ export declare const actionToggleLinearEditor: {
|
|
|
184
184
|
}[];
|
|
185
185
|
}[];
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
captureUpdate: "IMMEDIATELY";
|
|
188
188
|
};
|
|
189
|
-
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
189
|
+
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
190
190
|
} & {
|
|
191
191
|
keyTest?: undefined;
|
|
192
192
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const actionLink: {
|
|
3
3
|
name: "hyperlink";
|
|
4
4
|
label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
|
|
5
|
-
icon: JSX.Element;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
7
7
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
8
8
|
appState: {
|
|
@@ -178,7 +178,7 @@ export declare const actionLink: {
|
|
|
178
178
|
}[];
|
|
179
179
|
}[];
|
|
180
180
|
};
|
|
181
|
-
|
|
181
|
+
captureUpdate: "IMMEDIATELY";
|
|
182
182
|
};
|
|
183
183
|
trackEvent: {
|
|
184
184
|
category: "hyperlink";
|
|
@@ -186,7 +186,7 @@ export declare const actionLink: {
|
|
|
186
186
|
};
|
|
187
187
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
188
188
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
189
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
189
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
190
190
|
} & {
|
|
191
191
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
192
192
|
};
|
|
@@ -179,9 +179,9 @@ export declare const actionToggleCanvasMenu: {
|
|
|
179
179
|
}[];
|
|
180
180
|
}[];
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
captureUpdate: "EVENTUALLY";
|
|
183
183
|
};
|
|
184
|
-
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
184
|
+
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
185
185
|
} & {
|
|
186
186
|
keyTest?: undefined;
|
|
187
187
|
};
|
|
@@ -365,16 +365,16 @@ export declare const actionToggleEditMenu: {
|
|
|
365
365
|
}[];
|
|
366
366
|
}[];
|
|
367
367
|
};
|
|
368
|
-
|
|
368
|
+
captureUpdate: "EVENTUALLY";
|
|
369
369
|
};
|
|
370
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
370
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
371
371
|
} & {
|
|
372
372
|
keyTest?: undefined;
|
|
373
373
|
};
|
|
374
374
|
export declare const actionShortcuts: {
|
|
375
375
|
name: "toggleShortcuts";
|
|
376
376
|
label: string;
|
|
377
|
-
icon: JSX.Element;
|
|
377
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
378
378
|
viewMode: true;
|
|
379
379
|
trackEvent: {
|
|
380
380
|
category: "menu";
|
|
@@ -546,7 +546,7 @@ export declare const actionShortcuts: {
|
|
|
546
546
|
}[];
|
|
547
547
|
}[];
|
|
548
548
|
};
|
|
549
|
-
|
|
549
|
+
captureUpdate: "EVENTUALLY";
|
|
550
550
|
};
|
|
551
551
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
552
552
|
} & {
|
|
@@ -181,7 +181,7 @@ export declare const actionGoToCollaborator: {
|
|
|
181
181
|
}[];
|
|
182
182
|
}[];
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
captureUpdate: "EVENTUALLY";
|
|
185
185
|
} | {
|
|
186
186
|
appState: {
|
|
187
187
|
userToFollow: {
|
|
@@ -359,9 +359,9 @@ export declare const actionGoToCollaborator: {
|
|
|
359
359
|
}[];
|
|
360
360
|
}[];
|
|
361
361
|
};
|
|
362
|
-
|
|
362
|
+
captureUpdate: "EVENTUALLY";
|
|
363
363
|
};
|
|
364
|
-
PanelComponent: ({ updateData, data, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
364
|
+
PanelComponent: ({ updateData, data, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
365
365
|
} & {
|
|
366
366
|
keyTest?: undefined;
|
|
367
367
|
};
|