@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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-EIO257PC.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-EIO257PC.js";import"./chunk-DZ7HA6XS.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,c as t}from"./chunk-EIO257PC.js";import"./chunk-
|
|
1
|
+
import{a as r,c as t}from"./chunk-EIO257PC.js";import"./chunk-DZ7HA6XS.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
|
|
@@ -5,7 +5,7 @@ export declare const actionAddToLibrary: {
|
|
|
5
5
|
category: "element";
|
|
6
6
|
};
|
|
7
7
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
8
|
-
|
|
8
|
+
captureUpdate: "EVENTUALLY";
|
|
9
9
|
appState: {
|
|
10
10
|
toast: {
|
|
11
11
|
message: string;
|
|
@@ -178,7 +178,7 @@ export declare const actionAddToLibrary: {
|
|
|
178
178
|
}[];
|
|
179
179
|
};
|
|
180
180
|
} | {
|
|
181
|
-
|
|
181
|
+
captureUpdate: "EVENTUALLY";
|
|
182
182
|
appState: {
|
|
183
183
|
errorMessage: any;
|
|
184
184
|
contextMenu: {
|
|
@@ -353,7 +353,7 @@ export declare const actionAddToLibrary: {
|
|
|
353
353
|
}[];
|
|
354
354
|
};
|
|
355
355
|
}> | {
|
|
356
|
-
|
|
356
|
+
captureUpdate: "EVENTUALLY";
|
|
357
357
|
appState: {
|
|
358
358
|
errorMessage: string;
|
|
359
359
|
contextMenu: {
|
|
@@ -5,7 +5,7 @@ export declare const alignActionsPredicate: (appState: UIAppState, app: AppClass
|
|
|
5
5
|
export declare const actionAlignTop: {
|
|
6
6
|
name: "alignTop";
|
|
7
7
|
label: string;
|
|
8
|
-
icon: JSX.Element;
|
|
8
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
trackEvent: {
|
|
10
10
|
category: "element";
|
|
11
11
|
};
|
|
@@ -13,17 +13,17 @@ export declare const actionAlignTop: {
|
|
|
13
13
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
15
|
elements: ExcalidrawElement[];
|
|
16
|
-
|
|
16
|
+
captureUpdate: "IMMEDIATELY";
|
|
17
17
|
};
|
|
18
18
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
19
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
19
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
} & {
|
|
21
21
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
22
22
|
};
|
|
23
23
|
export declare const actionAlignBottom: {
|
|
24
24
|
name: "alignBottom";
|
|
25
25
|
label: string;
|
|
26
|
-
icon: JSX.Element;
|
|
26
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
trackEvent: {
|
|
28
28
|
category: "element";
|
|
29
29
|
};
|
|
@@ -31,17 +31,17 @@ export declare const actionAlignBottom: {
|
|
|
31
31
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
32
32
|
appState: Readonly<AppState>;
|
|
33
33
|
elements: ExcalidrawElement[];
|
|
34
|
-
|
|
34
|
+
captureUpdate: "IMMEDIATELY";
|
|
35
35
|
};
|
|
36
36
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
37
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
37
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
38
|
} & {
|
|
39
39
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
40
40
|
};
|
|
41
41
|
export declare const actionAlignLeft: {
|
|
42
42
|
name: "alignLeft";
|
|
43
43
|
label: string;
|
|
44
|
-
icon: JSX.Element;
|
|
44
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
45
45
|
trackEvent: {
|
|
46
46
|
category: "element";
|
|
47
47
|
};
|
|
@@ -49,17 +49,17 @@ export declare const actionAlignLeft: {
|
|
|
49
49
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
50
50
|
appState: Readonly<AppState>;
|
|
51
51
|
elements: ExcalidrawElement[];
|
|
52
|
-
|
|
52
|
+
captureUpdate: "IMMEDIATELY";
|
|
53
53
|
};
|
|
54
54
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
55
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
55
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
56
56
|
} & {
|
|
57
57
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
58
58
|
};
|
|
59
59
|
export declare const actionAlignRight: {
|
|
60
60
|
name: "alignRight";
|
|
61
61
|
label: string;
|
|
62
|
-
icon: JSX.Element;
|
|
62
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
trackEvent: {
|
|
64
64
|
category: "element";
|
|
65
65
|
};
|
|
@@ -67,17 +67,17 @@ export declare const actionAlignRight: {
|
|
|
67
67
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
68
68
|
appState: Readonly<AppState>;
|
|
69
69
|
elements: ExcalidrawElement[];
|
|
70
|
-
|
|
70
|
+
captureUpdate: "IMMEDIATELY";
|
|
71
71
|
};
|
|
72
72
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
73
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
73
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
74
74
|
} & {
|
|
75
75
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
76
76
|
};
|
|
77
77
|
export declare const actionAlignVerticallyCentered: {
|
|
78
78
|
name: "alignVerticallyCentered";
|
|
79
79
|
label: string;
|
|
80
|
-
icon: JSX.Element;
|
|
80
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
81
81
|
trackEvent: {
|
|
82
82
|
category: "element";
|
|
83
83
|
};
|
|
@@ -85,16 +85,16 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
85
85
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
86
86
|
appState: Readonly<AppState>;
|
|
87
87
|
elements: ExcalidrawElement[];
|
|
88
|
-
|
|
88
|
+
captureUpdate: "IMMEDIATELY";
|
|
89
89
|
};
|
|
90
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
90
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
91
91
|
} & {
|
|
92
92
|
keyTest?: undefined;
|
|
93
93
|
};
|
|
94
94
|
export declare const actionAlignHorizontallyCentered: {
|
|
95
95
|
name: "alignHorizontallyCentered";
|
|
96
96
|
label: string;
|
|
97
|
-
icon: JSX.Element;
|
|
97
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
98
98
|
trackEvent: {
|
|
99
99
|
category: "element";
|
|
100
100
|
};
|
|
@@ -102,9 +102,9 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
102
102
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
103
103
|
appState: Readonly<AppState>;
|
|
104
104
|
elements: ExcalidrawElement[];
|
|
105
|
-
|
|
105
|
+
captureUpdate: "IMMEDIATELY";
|
|
106
106
|
};
|
|
107
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
107
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
108
108
|
} & {
|
|
109
109
|
keyTest?: undefined;
|
|
110
110
|
};
|
|
@@ -12,7 +12,7 @@ export declare const actionUnbindText: {
|
|
|
12
12
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
13
13
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
|
-
|
|
15
|
+
captureUpdate: "IMMEDIATELY";
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
@@ -199,7 +199,7 @@ export declare const actionBindText: {
|
|
|
199
199
|
}[];
|
|
200
200
|
}[];
|
|
201
201
|
};
|
|
202
|
-
|
|
202
|
+
captureUpdate: "IMMEDIATELY";
|
|
203
203
|
};
|
|
204
204
|
} & {
|
|
205
205
|
keyTest?: undefined;
|
|
@@ -386,7 +386,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
386
386
|
}[];
|
|
387
387
|
}[];
|
|
388
388
|
};
|
|
389
|
-
|
|
389
|
+
captureUpdate: "IMMEDIATELY";
|
|
390
390
|
};
|
|
391
391
|
} & {
|
|
392
392
|
keyTest?: undefined;
|
|
@@ -10,9 +10,9 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
10
10
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
11
|
perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
12
12
|
appState: any;
|
|
13
|
-
|
|
13
|
+
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
14
14
|
};
|
|
15
|
-
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
15
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
17
|
keyTest?: undefined;
|
|
18
18
|
};
|
|
@@ -20,7 +20,7 @@ export declare const actionClearCanvas: {
|
|
|
20
20
|
name: "clearCanvas";
|
|
21
21
|
label: string;
|
|
22
22
|
paletteName: string;
|
|
23
|
-
icon: JSX.Element;
|
|
23
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
trackEvent: {
|
|
25
25
|
category: "canvas";
|
|
26
26
|
};
|
|
@@ -52,6 +52,11 @@ export declare const actionClearCanvas: {
|
|
|
52
52
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
53
53
|
locked: boolean;
|
|
54
54
|
} & import("../types").ActiveTool;
|
|
55
|
+
viewModeEnabled: boolean;
|
|
56
|
+
zenModeEnabled: boolean;
|
|
57
|
+
objectsSnapModeEnabled: boolean;
|
|
58
|
+
name: string | null;
|
|
59
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
55
60
|
contextMenu: {
|
|
56
61
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
57
62
|
top: number;
|
|
@@ -98,13 +103,11 @@ export declare const actionClearCanvas: {
|
|
|
98
103
|
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
99
104
|
currentHoveredFontFamily: number | null;
|
|
100
105
|
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
101
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
102
106
|
viewBackgroundColor: string;
|
|
103
107
|
scrollX: number;
|
|
104
108
|
scrollY: number;
|
|
105
109
|
cursorButton: "up" | "down";
|
|
106
110
|
scrolledOutside: boolean;
|
|
107
|
-
name: string | null;
|
|
108
111
|
isResizing: boolean;
|
|
109
112
|
isRotating: boolean;
|
|
110
113
|
zoom: Readonly<{
|
|
@@ -145,8 +148,6 @@ export declare const actionClearCanvas: {
|
|
|
145
148
|
closable?: boolean | undefined;
|
|
146
149
|
duration?: number | undefined;
|
|
147
150
|
} | null;
|
|
148
|
-
zenModeEnabled: boolean;
|
|
149
|
-
viewModeEnabled: boolean;
|
|
150
151
|
selectedGroupIds: {
|
|
151
152
|
[groupId: string]: boolean;
|
|
152
153
|
};
|
|
@@ -181,7 +182,6 @@ export declare const actionClearCanvas: {
|
|
|
181
182
|
x: number;
|
|
182
183
|
y: number;
|
|
183
184
|
} | null;
|
|
184
|
-
objectsSnapModeEnabled: boolean;
|
|
185
185
|
userToFollow: import("../types").UserToFollow | null;
|
|
186
186
|
followedBy: Set<import("../types").SocketId>;
|
|
187
187
|
isCropping: boolean;
|
|
@@ -197,7 +197,7 @@ export declare const actionClearCanvas: {
|
|
|
197
197
|
}[];
|
|
198
198
|
}[];
|
|
199
199
|
};
|
|
200
|
-
|
|
200
|
+
captureUpdate: "IMMEDIATELY";
|
|
201
201
|
};
|
|
202
202
|
} & {
|
|
203
203
|
keyTest?: undefined;
|
|
@@ -206,7 +206,7 @@ export declare const actionZoomIn: {
|
|
|
206
206
|
name: "zoomIn";
|
|
207
207
|
label: string;
|
|
208
208
|
viewMode: true;
|
|
209
|
-
icon: JSX.Element;
|
|
209
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
210
210
|
trackEvent: {
|
|
211
211
|
category: "canvas";
|
|
212
212
|
};
|
|
@@ -384,9 +384,9 @@ export declare const actionZoomIn: {
|
|
|
384
384
|
}[];
|
|
385
385
|
}[];
|
|
386
386
|
};
|
|
387
|
-
|
|
387
|
+
captureUpdate: "EVENTUALLY";
|
|
388
388
|
};
|
|
389
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
389
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
390
390
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
391
391
|
} & {
|
|
392
392
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -394,7 +394,7 @@ export declare const actionZoomIn: {
|
|
|
394
394
|
export declare const actionZoomOut: {
|
|
395
395
|
name: "zoomOut";
|
|
396
396
|
label: string;
|
|
397
|
-
icon: JSX.Element;
|
|
397
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
398
398
|
viewMode: true;
|
|
399
399
|
trackEvent: {
|
|
400
400
|
category: "canvas";
|
|
@@ -573,9 +573,9 @@ export declare const actionZoomOut: {
|
|
|
573
573
|
}[];
|
|
574
574
|
}[];
|
|
575
575
|
};
|
|
576
|
-
|
|
576
|
+
captureUpdate: "EVENTUALLY";
|
|
577
577
|
};
|
|
578
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
578
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
579
579
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
580
580
|
} & {
|
|
581
581
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -583,7 +583,7 @@ export declare const actionZoomOut: {
|
|
|
583
583
|
export declare const actionResetZoom: {
|
|
584
584
|
name: "resetZoom";
|
|
585
585
|
label: string;
|
|
586
|
-
icon: JSX.Element;
|
|
586
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
587
587
|
viewMode: true;
|
|
588
588
|
trackEvent: {
|
|
589
589
|
category: "canvas";
|
|
@@ -762,9 +762,9 @@ export declare const actionResetZoom: {
|
|
|
762
762
|
}[];
|
|
763
763
|
}[];
|
|
764
764
|
};
|
|
765
|
-
|
|
765
|
+
captureUpdate: "EVENTUALLY";
|
|
766
766
|
};
|
|
767
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
767
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
768
768
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
769
769
|
} & {
|
|
770
770
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -958,7 +958,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
958
958
|
}[];
|
|
959
959
|
}[];
|
|
960
960
|
};
|
|
961
|
-
|
|
961
|
+
captureUpdate: "EVENTUALLY";
|
|
962
962
|
};
|
|
963
963
|
export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
964
964
|
canvasOffsets?: Partial<{
|
|
@@ -1149,12 +1149,12 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1149
1149
|
}[];
|
|
1150
1150
|
}[];
|
|
1151
1151
|
};
|
|
1152
|
-
|
|
1152
|
+
captureUpdate: "EVENTUALLY";
|
|
1153
1153
|
};
|
|
1154
1154
|
export declare const actionZoomToFitSelectionInViewport: {
|
|
1155
1155
|
name: "zoomToFitSelectionInViewport";
|
|
1156
1156
|
label: string;
|
|
1157
|
-
icon: JSX.Element;
|
|
1157
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1158
1158
|
trackEvent: {
|
|
1159
1159
|
category: "canvas";
|
|
1160
1160
|
};
|
|
@@ -1332,7 +1332,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1332
1332
|
}[];
|
|
1333
1333
|
}[];
|
|
1334
1334
|
};
|
|
1335
|
-
|
|
1335
|
+
captureUpdate: "EVENTUALLY";
|
|
1336
1336
|
};
|
|
1337
1337
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1338
1338
|
} & {
|
|
@@ -1341,7 +1341,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1341
1341
|
export declare const actionZoomToFitSelection: {
|
|
1342
1342
|
name: "zoomToFitSelection";
|
|
1343
1343
|
label: string;
|
|
1344
|
-
icon: JSX.Element;
|
|
1344
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1345
1345
|
trackEvent: {
|
|
1346
1346
|
category: "canvas";
|
|
1347
1347
|
};
|
|
@@ -1519,7 +1519,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1519
1519
|
}[];
|
|
1520
1520
|
}[];
|
|
1521
1521
|
};
|
|
1522
|
-
|
|
1522
|
+
captureUpdate: "EVENTUALLY";
|
|
1523
1523
|
};
|
|
1524
1524
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1525
1525
|
} & {
|
|
@@ -1528,7 +1528,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1528
1528
|
export declare const actionZoomToFit: {
|
|
1529
1529
|
name: "zoomToFit";
|
|
1530
1530
|
label: string;
|
|
1531
|
-
icon: JSX.Element;
|
|
1531
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1532
1532
|
viewMode: true;
|
|
1533
1533
|
trackEvent: {
|
|
1534
1534
|
category: "canvas";
|
|
@@ -1707,7 +1707,7 @@ export declare const actionZoomToFit: {
|
|
|
1707
1707
|
}[];
|
|
1708
1708
|
}[];
|
|
1709
1709
|
};
|
|
1710
|
-
|
|
1710
|
+
captureUpdate: "EVENTUALLY";
|
|
1711
1711
|
};
|
|
1712
1712
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1713
1713
|
} & {
|
|
@@ -1717,7 +1717,7 @@ export declare const actionToggleTheme: {
|
|
|
1717
1717
|
name: "toggleTheme";
|
|
1718
1718
|
label: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>) => "buttons.lightMode" | "buttons.darkMode";
|
|
1719
1719
|
keywords: string[];
|
|
1720
|
-
icon: (appState: import("../types").UIAppState) => JSX.Element;
|
|
1720
|
+
icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
1721
1721
|
viewMode: true;
|
|
1722
1722
|
trackEvent: {
|
|
1723
1723
|
category: "canvas";
|
|
@@ -1896,7 +1896,7 @@ export declare const actionToggleTheme: {
|
|
|
1896
1896
|
}[];
|
|
1897
1897
|
}[];
|
|
1898
1898
|
};
|
|
1899
|
-
|
|
1899
|
+
captureUpdate: "EVENTUALLY";
|
|
1900
1900
|
};
|
|
1901
1901
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1902
1902
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
@@ -2076,7 +2076,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2076
2076
|
}[];
|
|
2077
2077
|
}[];
|
|
2078
2078
|
};
|
|
2079
|
-
|
|
2079
|
+
captureUpdate: "IMMEDIATELY";
|
|
2080
2080
|
};
|
|
2081
2081
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
2082
2082
|
} & {
|
|
@@ -2089,7 +2089,7 @@ export declare const actionToggleHandTool: {
|
|
|
2089
2089
|
trackEvent: {
|
|
2090
2090
|
category: "toolbar";
|
|
2091
2091
|
};
|
|
2092
|
-
icon: JSX.Element;
|
|
2092
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
2093
2093
|
viewMode: false;
|
|
2094
2094
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
2095
2095
|
appState: {
|
|
@@ -2258,7 +2258,7 @@ export declare const actionToggleHandTool: {
|
|
|
2258
2258
|
}[];
|
|
2259
2259
|
}[];
|
|
2260
2260
|
};
|
|
2261
|
-
|
|
2261
|
+
captureUpdate: "IMMEDIATELY";
|
|
2262
2262
|
};
|
|
2263
2263
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
2264
2264
|
} & {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
export declare const actionCopy: {
|
|
3
3
|
name: "copy";
|
|
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
|
};
|
|
9
9
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
10
|
-
|
|
10
|
+
captureUpdate: "EVENTUALLY";
|
|
11
11
|
appState: {
|
|
12
12
|
errorMessage: any;
|
|
13
13
|
contextMenu: {
|
|
@@ -182,7 +182,7 @@ export declare const actionCopy: {
|
|
|
182
182
|
}[];
|
|
183
183
|
};
|
|
184
184
|
} | {
|
|
185
|
-
|
|
185
|
+
captureUpdate: "EVENTUALLY";
|
|
186
186
|
appState?: undefined;
|
|
187
187
|
}>;
|
|
188
188
|
keyTest: undefined;
|
|
@@ -196,7 +196,7 @@ export declare const actionPaste: {
|
|
|
196
196
|
category: "element";
|
|
197
197
|
};
|
|
198
198
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
199
|
-
|
|
199
|
+
captureUpdate: "EVENTUALLY";
|
|
200
200
|
appState: {
|
|
201
201
|
errorMessage: string;
|
|
202
202
|
contextMenu: {
|
|
@@ -371,7 +371,7 @@ export declare const actionPaste: {
|
|
|
371
371
|
}[];
|
|
372
372
|
};
|
|
373
373
|
} | {
|
|
374
|
-
|
|
374
|
+
captureUpdate: "EVENTUALLY";
|
|
375
375
|
appState?: undefined;
|
|
376
376
|
}>;
|
|
377
377
|
keyTest: undefined;
|
|
@@ -381,7 +381,7 @@ export declare const actionPaste: {
|
|
|
381
381
|
export declare const actionCut: {
|
|
382
382
|
name: "cut";
|
|
383
383
|
label: string;
|
|
384
|
-
icon: JSX.Element;
|
|
384
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
385
385
|
trackEvent: {
|
|
386
386
|
category: "element";
|
|
387
387
|
};
|
|
@@ -560,7 +560,7 @@ export declare const actionCut: {
|
|
|
560
560
|
}[];
|
|
561
561
|
}[];
|
|
562
562
|
};
|
|
563
|
-
|
|
563
|
+
captureUpdate: "IMMEDIATELY";
|
|
564
564
|
} | {
|
|
565
565
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
566
566
|
appState: {
|
|
@@ -766,7 +766,7 @@ export declare const actionCut: {
|
|
|
766
766
|
}[];
|
|
767
767
|
}[];
|
|
768
768
|
};
|
|
769
|
-
|
|
769
|
+
captureUpdate: "IMMEDIATELY";
|
|
770
770
|
} | {
|
|
771
771
|
elements: import("../element/types").ExcalidrawElement[];
|
|
772
772
|
appState: {
|
|
@@ -939,7 +939,7 @@ export declare const actionCut: {
|
|
|
939
939
|
}[];
|
|
940
940
|
}[];
|
|
941
941
|
};
|
|
942
|
-
|
|
942
|
+
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
943
943
|
};
|
|
944
944
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
945
945
|
} & {
|
|
@@ -948,12 +948,12 @@ export declare const actionCut: {
|
|
|
948
948
|
export declare const actionCopyAsSvg: {
|
|
949
949
|
name: "copyAsSvg";
|
|
950
950
|
label: string;
|
|
951
|
-
icon: JSX.Element;
|
|
951
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
952
952
|
trackEvent: {
|
|
953
953
|
category: "element";
|
|
954
954
|
};
|
|
955
955
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
956
|
-
|
|
956
|
+
captureUpdate: "EVENTUALLY";
|
|
957
957
|
appState?: undefined;
|
|
958
958
|
} | {
|
|
959
959
|
appState: {
|
|
@@ -962,13 +962,13 @@ export declare const actionCopyAsSvg: {
|
|
|
962
962
|
};
|
|
963
963
|
errorMessage?: undefined;
|
|
964
964
|
};
|
|
965
|
-
|
|
965
|
+
captureUpdate: "EVENTUALLY";
|
|
966
966
|
} | {
|
|
967
967
|
appState: {
|
|
968
968
|
errorMessage: any;
|
|
969
969
|
toast?: undefined;
|
|
970
970
|
};
|
|
971
|
-
|
|
971
|
+
captureUpdate: "EVENTUALLY";
|
|
972
972
|
}>;
|
|
973
973
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
974
974
|
keywords: string[];
|
|
@@ -978,12 +978,12 @@ export declare const actionCopyAsSvg: {
|
|
|
978
978
|
export declare const actionCopyAsPng: {
|
|
979
979
|
name: "copyAsPng";
|
|
980
980
|
label: string;
|
|
981
|
-
icon: JSX.Element;
|
|
981
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
982
982
|
trackEvent: {
|
|
983
983
|
category: "element";
|
|
984
984
|
};
|
|
985
985
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
986
|
-
|
|
986
|
+
captureUpdate: "EVENTUALLY";
|
|
987
987
|
appState?: undefined;
|
|
988
988
|
} | {
|
|
989
989
|
appState: {
|
|
@@ -1159,7 +1159,7 @@ export declare const actionCopyAsPng: {
|
|
|
1159
1159
|
}[];
|
|
1160
1160
|
}[];
|
|
1161
1161
|
};
|
|
1162
|
-
|
|
1162
|
+
captureUpdate: "EVENTUALLY";
|
|
1163
1163
|
}>;
|
|
1164
1164
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1165
1165
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -1174,7 +1174,7 @@ export declare const copyText: {
|
|
|
1174
1174
|
category: "element";
|
|
1175
1175
|
};
|
|
1176
1176
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1177
|
-
|
|
1177
|
+
captureUpdate: "EVENTUALLY";
|
|
1178
1178
|
};
|
|
1179
1179
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1180
1180
|
keywords: string[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const actionToggleCropEditor: {
|
|
3
3
|
name: "cropEditor";
|
|
4
4
|
label: string;
|
|
5
|
-
icon: JSX.Element;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
viewMode: true;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "menu";
|
|
@@ -182,10 +182,10 @@ export declare const actionToggleCropEditor: {
|
|
|
182
182
|
}[];
|
|
183
183
|
}[];
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
captureUpdate: "IMMEDIATELY";
|
|
186
186
|
};
|
|
187
187
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
188
|
-
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
188
|
+
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
189
189
|
} & {
|
|
190
190
|
keyTest?: undefined;
|
|
191
191
|
};
|
|
@@ -5,7 +5,7 @@ import { LinearElementEditor } from "../element/linearElementEditor";
|
|
|
5
5
|
export declare const actionDeleteSelected: {
|
|
6
6
|
name: "deleteSelectedElements";
|
|
7
7
|
label: string;
|
|
8
|
-
icon: JSX.Element;
|
|
8
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
trackEvent: {
|
|
10
10
|
category: "element";
|
|
11
11
|
action: string;
|
|
@@ -185,7 +185,7 @@ export declare const actionDeleteSelected: {
|
|
|
185
185
|
}[];
|
|
186
186
|
}[];
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
captureUpdate: "IMMEDIATELY";
|
|
189
189
|
} | {
|
|
190
190
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
191
191
|
appState: {
|
|
@@ -391,7 +391,7 @@ export declare const actionDeleteSelected: {
|
|
|
391
391
|
}[];
|
|
392
392
|
}[];
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
captureUpdate: "IMMEDIATELY";
|
|
395
395
|
} | {
|
|
396
396
|
elements: ExcalidrawElement[];
|
|
397
397
|
appState: {
|
|
@@ -564,10 +564,10 @@ export declare const actionDeleteSelected: {
|
|
|
564
564
|
}[];
|
|
565
565
|
}[];
|
|
566
566
|
};
|
|
567
|
-
|
|
567
|
+
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
568
568
|
};
|
|
569
569
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
570
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
570
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
571
571
|
} & {
|
|
572
572
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
573
573
|
};
|
|
@@ -10,10 +10,10 @@ export declare const distributeHorizontally: {
|
|
|
10
10
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
11
11
|
appState: Readonly<AppState>;
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
|
-
|
|
13
|
+
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
15
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
16
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
16
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
19
19
|
};
|
|
@@ -26,10 +26,10 @@ export declare const distributeVertically: {
|
|
|
26
26
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
27
27
|
appState: Readonly<AppState>;
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
|
-
|
|
29
|
+
captureUpdate: "IMMEDIATELY";
|
|
30
30
|
};
|
|
31
31
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
32
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
32
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
} & {
|
|
34
34
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
35
35
|
};
|