@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
|
@@ -9,7 +9,7 @@ export declare const actionChangeStrokeColor: {
|
|
|
9
9
|
label: string;
|
|
10
10
|
trackEvent: false;
|
|
11
11
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
12
|
-
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
12
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
} & {
|
|
14
14
|
keyTest?: undefined;
|
|
15
15
|
};
|
|
@@ -18,7 +18,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
18
18
|
label: string;
|
|
19
19
|
trackEvent: false;
|
|
20
20
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
21
|
-
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
21
|
+
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
} & {
|
|
23
23
|
keyTest?: undefined;
|
|
24
24
|
};
|
|
@@ -201,9 +201,9 @@ export declare const actionChangeFillStyle: {
|
|
|
201
201
|
}[];
|
|
202
202
|
}[];
|
|
203
203
|
};
|
|
204
|
-
|
|
204
|
+
captureUpdate: "IMMEDIATELY";
|
|
205
205
|
};
|
|
206
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
206
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
207
207
|
} & {
|
|
208
208
|
keyTest?: undefined;
|
|
209
209
|
};
|
|
@@ -386,9 +386,9 @@ export declare const actionChangeStrokeWidth: {
|
|
|
386
386
|
}[];
|
|
387
387
|
}[];
|
|
388
388
|
};
|
|
389
|
-
|
|
389
|
+
captureUpdate: "IMMEDIATELY";
|
|
390
390
|
};
|
|
391
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
391
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
392
392
|
} & {
|
|
393
393
|
keyTest?: undefined;
|
|
394
394
|
};
|
|
@@ -571,9 +571,9 @@ export declare const actionChangeSloppiness: {
|
|
|
571
571
|
}[];
|
|
572
572
|
}[];
|
|
573
573
|
};
|
|
574
|
-
|
|
574
|
+
captureUpdate: "IMMEDIATELY";
|
|
575
575
|
};
|
|
576
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
576
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
577
577
|
} & {
|
|
578
578
|
keyTest?: undefined;
|
|
579
579
|
};
|
|
@@ -756,9 +756,9 @@ export declare const actionChangeStrokeStyle: {
|
|
|
756
756
|
}[];
|
|
757
757
|
}[];
|
|
758
758
|
};
|
|
759
|
-
|
|
759
|
+
captureUpdate: "IMMEDIATELY";
|
|
760
760
|
};
|
|
761
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
761
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
762
762
|
} & {
|
|
763
763
|
keyTest?: undefined;
|
|
764
764
|
};
|
|
@@ -941,9 +941,9 @@ export declare const actionChangeOpacity: {
|
|
|
941
941
|
}[];
|
|
942
942
|
}[];
|
|
943
943
|
};
|
|
944
|
-
|
|
944
|
+
captureUpdate: "IMMEDIATELY";
|
|
945
945
|
};
|
|
946
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
946
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
947
947
|
} & {
|
|
948
948
|
keyTest?: undefined;
|
|
949
949
|
};
|
|
@@ -1126,16 +1126,16 @@ export declare const actionChangeFontSize: {
|
|
|
1126
1126
|
}[];
|
|
1127
1127
|
}[];
|
|
1128
1128
|
};
|
|
1129
|
-
|
|
1129
|
+
captureUpdate: "IMMEDIATELY";
|
|
1130
1130
|
};
|
|
1131
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1131
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1132
1132
|
} & {
|
|
1133
1133
|
keyTest?: undefined;
|
|
1134
1134
|
};
|
|
1135
1135
|
export declare const actionDecreaseFontSize: {
|
|
1136
1136
|
name: "decreaseFontSize";
|
|
1137
1137
|
label: string;
|
|
1138
|
-
icon: JSX.Element;
|
|
1138
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1139
1139
|
trackEvent: false;
|
|
1140
1140
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1141
1141
|
elements: ExcalidrawElement[];
|
|
@@ -1312,7 +1312,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1312
1312
|
}[];
|
|
1313
1313
|
}[];
|
|
1314
1314
|
};
|
|
1315
|
-
|
|
1315
|
+
captureUpdate: "IMMEDIATELY";
|
|
1316
1316
|
};
|
|
1317
1317
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1318
1318
|
} & {
|
|
@@ -1321,7 +1321,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1321
1321
|
export declare const actionIncreaseFontSize: {
|
|
1322
1322
|
name: "increaseFontSize";
|
|
1323
1323
|
label: string;
|
|
1324
|
-
icon: JSX.Element;
|
|
1324
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
1325
1325
|
trackEvent: false;
|
|
1326
1326
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1327
1327
|
elements: ExcalidrawElement[];
|
|
@@ -1498,7 +1498,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1498
1498
|
}[];
|
|
1499
1499
|
}[];
|
|
1500
1500
|
};
|
|
1501
|
-
|
|
1501
|
+
captureUpdate: "IMMEDIATELY";
|
|
1502
1502
|
};
|
|
1503
1503
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1504
1504
|
} & {
|
|
@@ -1682,7 +1682,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1682
1682
|
}[];
|
|
1683
1683
|
}[];
|
|
1684
1684
|
};
|
|
1685
|
-
|
|
1685
|
+
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
1686
1686
|
} | {
|
|
1687
1687
|
elements: ExcalidrawElement[];
|
|
1688
1688
|
appState: {
|
|
@@ -1858,9 +1858,9 @@ export declare const actionChangeFontFamily: {
|
|
|
1858
1858
|
}[];
|
|
1859
1859
|
}[];
|
|
1860
1860
|
};
|
|
1861
|
-
|
|
1861
|
+
captureUpdate: "NEVER";
|
|
1862
1862
|
};
|
|
1863
|
-
PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1863
|
+
PanelComponent: ({ elements, appState, app, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1864
1864
|
} & {
|
|
1865
1865
|
keyTest?: undefined;
|
|
1866
1866
|
};
|
|
@@ -2043,9 +2043,9 @@ export declare const actionChangeTextAlign: {
|
|
|
2043
2043
|
}[];
|
|
2044
2044
|
}[];
|
|
2045
2045
|
};
|
|
2046
|
-
|
|
2046
|
+
captureUpdate: "IMMEDIATELY";
|
|
2047
2047
|
};
|
|
2048
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2048
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2049
2049
|
} & {
|
|
2050
2050
|
keyTest?: undefined;
|
|
2051
2051
|
};
|
|
@@ -2230,9 +2230,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2230
2230
|
}[];
|
|
2231
2231
|
}[];
|
|
2232
2232
|
};
|
|
2233
|
-
|
|
2233
|
+
captureUpdate: "IMMEDIATELY";
|
|
2234
2234
|
};
|
|
2235
|
-
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2235
|
+
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2236
2236
|
} & {
|
|
2237
2237
|
keyTest?: undefined;
|
|
2238
2238
|
};
|
|
@@ -2415,9 +2415,9 @@ export declare const actionChangeRoundness: {
|
|
|
2415
2415
|
}[];
|
|
2416
2416
|
}[];
|
|
2417
2417
|
};
|
|
2418
|
-
|
|
2418
|
+
captureUpdate: "IMMEDIATELY";
|
|
2419
2419
|
};
|
|
2420
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2420
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2421
2421
|
} & {
|
|
2422
2422
|
keyTest?: undefined;
|
|
2423
2423
|
};
|
|
@@ -2603,9 +2603,9 @@ export declare const actionChangeArrowhead: {
|
|
|
2603
2603
|
}[];
|
|
2604
2604
|
}[];
|
|
2605
2605
|
};
|
|
2606
|
-
|
|
2606
|
+
captureUpdate: "IMMEDIATELY";
|
|
2607
2607
|
};
|
|
2608
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2608
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2609
2609
|
} & {
|
|
2610
2610
|
keyTest?: undefined;
|
|
2611
2611
|
};
|
|
@@ -2788,9 +2788,9 @@ export declare const actionChangeArrowType: {
|
|
|
2788
2788
|
}[];
|
|
2789
2789
|
}[];
|
|
2790
2790
|
};
|
|
2791
|
-
|
|
2791
|
+
captureUpdate: "IMMEDIATELY";
|
|
2792
2792
|
};
|
|
2793
|
-
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
2793
|
+
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2794
2794
|
} & {
|
|
2795
2795
|
keyTest?: undefined;
|
|
2796
2796
|
};
|
|
@@ -4,7 +4,7 @@ import { LinearElementEditor } from "../element/linearElementEditor";
|
|
|
4
4
|
export declare const actionSelectAll: {
|
|
5
5
|
name: "selectAll";
|
|
6
6
|
label: string;
|
|
7
|
-
icon: JSX.Element;
|
|
7
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
trackEvent: {
|
|
9
9
|
category: "canvas";
|
|
10
10
|
};
|
|
@@ -183,7 +183,7 @@ export declare const actionSelectAll: {
|
|
|
183
183
|
}[];
|
|
184
184
|
}[];
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
captureUpdate: "IMMEDIATELY";
|
|
187
187
|
};
|
|
188
188
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
189
189
|
} & {
|
|
@@ -3,7 +3,7 @@ export declare let copiedStyles: string;
|
|
|
3
3
|
export declare const actionCopyStyles: {
|
|
4
4
|
name: "copyStyles";
|
|
5
5
|
label: string;
|
|
6
|
-
icon: JSX.Element;
|
|
6
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
@@ -179,7 +179,7 @@ export declare const actionCopyStyles: {
|
|
|
179
179
|
}[];
|
|
180
180
|
}[];
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
captureUpdate: "EVENTUALLY";
|
|
183
183
|
};
|
|
184
184
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
185
185
|
} & {
|
|
@@ -188,16 +188,16 @@ export declare const actionCopyStyles: {
|
|
|
188
188
|
export declare const actionPasteStyles: {
|
|
189
189
|
name: "pasteStyles";
|
|
190
190
|
label: string;
|
|
191
|
-
icon: JSX.Element;
|
|
191
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
192
192
|
trackEvent: {
|
|
193
193
|
category: "element";
|
|
194
194
|
};
|
|
195
195
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => {
|
|
196
196
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
197
|
-
|
|
197
|
+
captureUpdate: "EVENTUALLY";
|
|
198
198
|
} | {
|
|
199
199
|
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
200
|
-
|
|
200
|
+
captureUpdate: "IMMEDIATELY";
|
|
201
201
|
};
|
|
202
202
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
203
203
|
} & {
|
|
@@ -10,7 +10,7 @@ export declare const actionTextAutoResize: {
|
|
|
10
10
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: AppClassProperties) => {
|
|
11
11
|
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
13
|
-
|
|
13
|
+
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
15
|
} & {
|
|
16
16
|
keyTest?: undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { AppState } from "../types";
|
|
3
3
|
export declare const actionToggleGridMode: {
|
|
4
4
|
name: "gridMode";
|
|
5
|
-
icon: JSX.Element;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
keywords: string[];
|
|
7
7
|
label: string;
|
|
8
8
|
viewMode: true;
|
|
@@ -184,7 +184,7 @@ export declare const actionToggleGridMode: {
|
|
|
184
184
|
}[];
|
|
185
185
|
}[];
|
|
186
186
|
};
|
|
187
|
-
|
|
187
|
+
captureUpdate: "EVENTUALLY";
|
|
188
188
|
};
|
|
189
189
|
checked: (appState: AppState) => boolean;
|
|
190
190
|
predicate: (element: readonly import("../element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const actionToggleObjectsSnapMode: {
|
|
3
3
|
name: "objectsSnapMode";
|
|
4
4
|
label: string;
|
|
5
|
-
icon: JSX.Element;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
viewMode: false;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "canvas";
|
|
@@ -182,7 +182,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
182
182
|
}[];
|
|
183
183
|
}[];
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
captureUpdate: "EVENTUALLY";
|
|
186
186
|
};
|
|
187
187
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
188
188
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { AppState } from "../types";
|
|
3
3
|
export declare const actionToggleSearchMenu: {
|
|
4
4
|
name: "searchMenu";
|
|
5
|
-
icon: JSX.Element;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
keywords: string[];
|
|
7
7
|
label: string;
|
|
8
8
|
viewMode: true;
|
|
@@ -182,7 +182,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
182
182
|
}[];
|
|
183
183
|
}[];
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
captureUpdate: "EVENTUALLY";
|
|
186
186
|
} | {
|
|
187
187
|
appState: {
|
|
188
188
|
openSidebar: {
|
|
@@ -347,7 +347,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
347
347
|
}[];
|
|
348
348
|
}[];
|
|
349
349
|
};
|
|
350
|
-
|
|
350
|
+
captureUpdate: "EVENTUALLY";
|
|
351
351
|
};
|
|
352
352
|
checked: (appState: AppState) => boolean;
|
|
353
353
|
predicate: (element: readonly import("../element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const actionToggleStats: {
|
|
3
3
|
name: "stats";
|
|
4
4
|
label: string;
|
|
5
|
-
icon: JSX.Element;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
paletteName: string;
|
|
7
7
|
viewMode: true;
|
|
8
8
|
trackEvent: {
|
|
@@ -183,7 +183,7 @@ export declare const actionToggleStats: {
|
|
|
183
183
|
}[];
|
|
184
184
|
}[];
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
captureUpdate: "EVENTUALLY";
|
|
187
187
|
};
|
|
188
188
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
189
189
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -3,7 +3,7 @@ export declare const actionToggleViewMode: {
|
|
|
3
3
|
name: "viewMode";
|
|
4
4
|
label: string;
|
|
5
5
|
paletteName: string;
|
|
6
|
-
icon: JSX.Element;
|
|
6
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
viewMode: true;
|
|
8
8
|
trackEvent: {
|
|
9
9
|
category: "canvas";
|
|
@@ -183,7 +183,7 @@ export declare const actionToggleViewMode: {
|
|
|
183
183
|
}[];
|
|
184
184
|
}[];
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
captureUpdate: "EVENTUALLY";
|
|
187
187
|
};
|
|
188
188
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
189
189
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const actionToggleZenMode: {
|
|
3
3
|
name: "zenMode";
|
|
4
4
|
label: string;
|
|
5
|
-
icon: JSX.Element;
|
|
5
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
paletteName: string;
|
|
7
7
|
viewMode: true;
|
|
8
8
|
trackEvent: {
|
|
@@ -183,7 +183,7 @@ export declare const actionToggleZenMode: {
|
|
|
183
183
|
}[];
|
|
184
184
|
}[];
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
captureUpdate: "EVENTUALLY";
|
|
187
187
|
};
|
|
188
188
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
189
189
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
@@ -3,18 +3,18 @@ export declare const actionSendBackward: {
|
|
|
3
3
|
name: "sendBackward";
|
|
4
4
|
label: string;
|
|
5
5
|
keywords: string[];
|
|
6
|
-
icon: JSX.Element;
|
|
6
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
10
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
11
11
|
elements: readonly import("../element/types").ExcalidrawElement[];
|
|
12
12
|
appState: Readonly<import("../types").AppState>;
|
|
13
|
-
|
|
13
|
+
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
15
|
keyPriority: number;
|
|
16
16
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
17
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
17
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
} & {
|
|
19
19
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
20
20
|
};
|
|
@@ -22,18 +22,18 @@ export declare const actionBringForward: {
|
|
|
22
22
|
name: "bringForward";
|
|
23
23
|
label: string;
|
|
24
24
|
keywords: string[];
|
|
25
|
-
icon: JSX.Element;
|
|
25
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
trackEvent: {
|
|
27
27
|
category: "element";
|
|
28
28
|
};
|
|
29
29
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
30
30
|
elements: readonly import("../element/types").ExcalidrawElement[];
|
|
31
31
|
appState: Readonly<import("../types").AppState>;
|
|
32
|
-
|
|
32
|
+
captureUpdate: "IMMEDIATELY";
|
|
33
33
|
};
|
|
34
34
|
keyPriority: number;
|
|
35
35
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
36
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
36
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
} & {
|
|
38
38
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
39
39
|
};
|
|
@@ -41,17 +41,17 @@ export declare const actionSendToBack: {
|
|
|
41
41
|
name: "sendToBack";
|
|
42
42
|
label: string;
|
|
43
43
|
keywords: string[];
|
|
44
|
-
icon: JSX.Element;
|
|
44
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
45
45
|
trackEvent: {
|
|
46
46
|
category: "element";
|
|
47
47
|
};
|
|
48
48
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
49
|
-
elements: import("../element/types").ExcalidrawElement[] |
|
|
49
|
+
elements: readonly import("../element/types").ExcalidrawElement[] | import("../element/types").ExcalidrawElement[];
|
|
50
50
|
appState: Readonly<import("../types").AppState>;
|
|
51
|
-
|
|
51
|
+
captureUpdate: "IMMEDIATELY";
|
|
52
52
|
};
|
|
53
53
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
54
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
54
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
} & {
|
|
56
56
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
57
57
|
};
|
|
@@ -59,17 +59,17 @@ export declare const actionBringToFront: {
|
|
|
59
59
|
name: "bringToFront";
|
|
60
60
|
label: string;
|
|
61
61
|
keywords: string[];
|
|
62
|
-
icon: JSX.Element;
|
|
62
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
trackEvent: {
|
|
64
64
|
category: "element";
|
|
65
65
|
};
|
|
66
66
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
67
|
-
elements: import("../element/types").ExcalidrawElement[] |
|
|
67
|
+
elements: readonly import("../element/types").ExcalidrawElement[] | import("../element/types").ExcalidrawElement[];
|
|
68
68
|
appState: Readonly<import("../types").AppState>;
|
|
69
|
-
|
|
69
|
+
captureUpdate: "IMMEDIATELY";
|
|
70
70
|
};
|
|
71
71
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
72
|
-
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
72
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
73
73
|
} & {
|
|
74
74
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
75
75
|
};
|
|
@@ -16,6 +16,6 @@ export declare class ActionManager {
|
|
|
16
16
|
/**
|
|
17
17
|
* @param data additional data sent to the PanelComponent
|
|
18
18
|
*/
|
|
19
|
-
renderAction: (name: ActionName, data?: PanelComponentProps["data"]) => JSX.Element | null;
|
|
19
|
+
renderAction: (name: ActionName, data?: PanelComponentProps["data"]) => import("react/jsx-runtime").JSX.Element | null;
|
|
20
20
|
isActionEnabled: (action: Action) => boolean;
|
|
21
21
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { ExcalidrawElement, OrderedExcalidrawElement } from "../element/types";
|
|
3
3
|
import type { AppClassProperties, AppState, ExcalidrawProps, BinaryFiles, UIAppState } from "../types";
|
|
4
|
-
import type {
|
|
4
|
+
import type { CaptureUpdateActionType } from "../store";
|
|
5
5
|
export type ActionSource = "ui" | "keyboard" | "contextMenu" | "api" | "commandPalette";
|
|
6
6
|
/** if false, the action should be prevented */
|
|
7
7
|
export type ActionResult = {
|
|
8
8
|
elements?: readonly ExcalidrawElement[] | null;
|
|
9
9
|
appState?: Partial<AppState> | null;
|
|
10
10
|
files?: BinaryFiles | null;
|
|
11
|
-
|
|
11
|
+
captureUpdate: CaptureUpdateActionType;
|
|
12
12
|
replaceFiles?: boolean;
|
|
13
13
|
} | false;
|
|
14
14
|
type ActionFn = (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import type { AppState } from "./types";
|
|
2
2
|
export declare const getDefaultAppState: () => Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
3
3
|
export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>) => {
|
|
4
|
-
|
|
4
|
+
zenModeEnabled?: boolean | undefined;
|
|
5
|
+
gridModeEnabled?: boolean | undefined;
|
|
6
|
+
objectsSnapModeEnabled?: boolean | undefined;
|
|
7
|
+
theme?: import("./element/types").Theme | undefined;
|
|
8
|
+
name?: string | null | undefined;
|
|
5
9
|
activeTool?: ({
|
|
6
10
|
lastActiveTool: import("./types").ActiveTool | null;
|
|
7
11
|
locked: boolean;
|
|
8
12
|
} & import("./types").ActiveTool) | undefined;
|
|
13
|
+
currentItemArrowType?: "round" | "sharp" | "elbow" | undefined;
|
|
14
|
+
showWelcomeScreen?: boolean | undefined;
|
|
9
15
|
penMode?: boolean | undefined;
|
|
10
16
|
penDetected?: boolean | undefined;
|
|
11
17
|
exportBackground?: boolean | undefined;
|
|
@@ -25,13 +31,11 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
25
31
|
currentItemStartArrowhead?: import("./element/types").Arrowhead | null | undefined;
|
|
26
32
|
currentItemEndArrowhead?: import("./element/types").Arrowhead | null | undefined;
|
|
27
33
|
currentItemRoundness?: import("./element/types").StrokeRoundness | undefined;
|
|
28
|
-
currentItemArrowType?: "round" | "sharp" | "elbow" | undefined;
|
|
29
34
|
viewBackgroundColor?: string | undefined;
|
|
30
35
|
scrollX?: number | undefined;
|
|
31
36
|
scrollY?: number | undefined;
|
|
32
37
|
cursorButton?: "up" | "down" | undefined;
|
|
33
38
|
scrolledOutside?: boolean | undefined;
|
|
34
|
-
name?: string | null | undefined;
|
|
35
39
|
zoom?: Readonly<{
|
|
36
40
|
value: import("./types").NormalizedZoomValue;
|
|
37
41
|
}> | undefined;
|
|
@@ -49,11 +53,8 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
49
53
|
[id: string]: true;
|
|
50
54
|
} | undefined;
|
|
51
55
|
shouldCacheIgnoreZoom?: boolean | undefined;
|
|
52
|
-
zenModeEnabled?: boolean | undefined;
|
|
53
|
-
theme?: import("./element/types").Theme | undefined;
|
|
54
56
|
gridSize?: number | undefined;
|
|
55
57
|
gridStep?: number | undefined;
|
|
56
|
-
gridModeEnabled?: boolean | undefined;
|
|
57
58
|
selectedGroupIds?: {
|
|
58
59
|
[groupId: string]: boolean;
|
|
59
60
|
} | undefined;
|
|
@@ -64,19 +65,18 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
64
65
|
} | undefined;
|
|
65
66
|
currentChartType?: import("./element/types").ChartType | undefined;
|
|
66
67
|
selectedLinearElement?: import("./element/linearElementEditor").LinearElementEditor | null | undefined;
|
|
67
|
-
objectsSnapModeEnabled?: boolean | undefined;
|
|
68
68
|
};
|
|
69
69
|
export declare const cleanAppStateForExport: (appState: Partial<AppState>) => {
|
|
70
|
+
gridModeEnabled?: boolean | undefined;
|
|
70
71
|
viewBackgroundColor?: string | undefined;
|
|
71
72
|
gridSize?: number | undefined;
|
|
72
73
|
gridStep?: number | undefined;
|
|
73
|
-
gridModeEnabled?: boolean | undefined;
|
|
74
74
|
};
|
|
75
75
|
export declare const clearAppStateForDatabase: (appState: Partial<AppState>) => {
|
|
76
|
+
gridModeEnabled?: boolean | undefined;
|
|
76
77
|
viewBackgroundColor?: string | undefined;
|
|
77
78
|
gridSize?: number | undefined;
|
|
78
79
|
gridStep?: number | undefined;
|
|
79
|
-
gridModeEnabled?: boolean | undefined;
|
|
80
80
|
};
|
|
81
81
|
export declare const isEraserActive: ({ activeTool, }: {
|
|
82
82
|
activeTool: AppState["activeTool"];
|
|
@@ -21,8 +21,6 @@ export declare const probablySupportsClipboardWriteText: boolean;
|
|
|
21
21
|
export declare const probablySupportsClipboardBlob: boolean;
|
|
22
22
|
export declare const createPasteEvent: ({ types, files, }: {
|
|
23
23
|
types?: {
|
|
24
|
-
"text/plain"?: string | File | undefined;
|
|
25
|
-
"text/html"?: string | File | undefined;
|
|
26
24
|
"image/svg+xml"?: string | File | undefined;
|
|
27
25
|
"image/png"?: string | File | undefined;
|
|
28
26
|
"image/jpeg"?: string | File | undefined;
|
|
@@ -32,6 +30,8 @@ export declare const createPasteEvent: ({ types, files, }: {
|
|
|
32
30
|
"image/x-icon"?: string | File | undefined;
|
|
33
31
|
"image/avif"?: string | File | undefined;
|
|
34
32
|
"image/jfif"?: string | File | undefined;
|
|
33
|
+
"text/plain"?: string | File | undefined;
|
|
34
|
+
"text/html"?: string | File | undefined;
|
|
35
35
|
} | undefined;
|
|
36
36
|
files?: File[] | undefined;
|
|
37
37
|
}) => ClipboardEvent;
|
|
@@ -45,8 +45,6 @@ export declare const copyToClipboard: (elements: readonly NonDeletedExcalidrawEl
|
|
|
45
45
|
* Will prompt user for permission if not granted.
|
|
46
46
|
*/
|
|
47
47
|
export declare const readSystemClipboard: () => Promise<{
|
|
48
|
-
"text/plain"?: string | File | undefined;
|
|
49
|
-
"text/html"?: string | File | undefined;
|
|
50
48
|
"image/svg+xml"?: string | File | undefined;
|
|
51
49
|
"image/png"?: string | File | undefined;
|
|
52
50
|
"image/jpeg"?: string | File | undefined;
|
|
@@ -56,6 +54,8 @@ export declare const readSystemClipboard: () => Promise<{
|
|
|
56
54
|
"image/x-icon"?: string | File | undefined;
|
|
57
55
|
"image/avif"?: string | File | undefined;
|
|
58
56
|
"image/jfif"?: string | File | undefined;
|
|
57
|
+
"text/plain"?: string | File | undefined;
|
|
58
|
+
"text/html"?: string | File | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
/**
|
|
61
61
|
* Attempts to parse clipboard event.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ActionManager } from "../actions/manager";
|
|
3
2
|
import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from "../element/types";
|
|
4
3
|
import type { AppClassProperties, AppProps, UIAppState, Zoom } from "../types";
|
|
@@ -10,26 +9,26 @@ export declare const SelectedShapeActions: ({ appState, elementsMap, renderActio
|
|
|
10
9
|
elementsMap: NonDeletedElementsMap | NonDeletedSceneElementsMap;
|
|
11
10
|
renderAction: ActionManager["renderAction"];
|
|
12
11
|
app: AppClassProperties;
|
|
13
|
-
}) => JSX.Element;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export declare const ShapesSwitcher: ({ activeTool, appState, app, UIOptions, }: {
|
|
15
14
|
activeTool: UIAppState["activeTool"];
|
|
16
15
|
appState: UIAppState;
|
|
17
16
|
app: AppClassProperties;
|
|
18
17
|
UIOptions: AppProps["UIOptions"];
|
|
19
|
-
}) => JSX.Element;
|
|
18
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
export declare const ZoomActions: ({ renderAction, zoom, }: {
|
|
21
20
|
renderAction: ActionManager["renderAction"];
|
|
22
21
|
zoom: Zoom;
|
|
23
|
-
}) => JSX.Element;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
23
|
export declare const UndoRedoActions: ({ renderAction, className, }: {
|
|
25
24
|
renderAction: ActionManager["renderAction"];
|
|
26
25
|
className?: string | undefined;
|
|
27
|
-
}) => JSX.Element;
|
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
export declare const ExitZenModeAction: ({ actionManager, showExitZenModeBtn, }: {
|
|
29
28
|
actionManager: ActionManager;
|
|
30
29
|
showExitZenModeBtn: boolean;
|
|
31
|
-
}) => JSX.Element;
|
|
30
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
32
31
|
export declare const FinalizeAction: ({ renderAction, className, }: {
|
|
33
32
|
renderAction: ActionManager["renderAction"];
|
|
34
33
|
className?: string | undefined;
|
|
35
|
-
}) => JSX.Element;
|
|
34
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const activeConfirmDialogAtom: import("jotai/vanilla/atom").PrimitiveAtom<"clearCanvas" | null> & {
|
|
3
2
|
init: "clearCanvas" | null;
|
|
4
3
|
};
|
|
5
|
-
export declare const ActiveConfirmDialog: () => JSX.Element | null;
|
|
4
|
+
export declare const ActiveConfirmDialog: () => import("react/jsx-runtime").JSX.Element | null;
|