@zsviczian/excalidraw 0.17.1-obsidian-20 → 0.17.1-obsidian-22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/excalidraw.development.js +217 -96
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +88 -63
- package/dist/styles.production.css +6 -6
- package/package.json +2 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +4 -4
- package/types/excalidraw/actions/actionAlign.d.ts +22 -22
- package/types/excalidraw/actions/actionBoundText.d.ts +10 -10
- package/types/excalidraw/actions/actionCanvas.d.ts +68 -68
- package/types/excalidraw/actions/actionClipboard.d.ts +24 -24
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +10 -10
- package/types/excalidraw/actions/actionDistribute.d.ts +10 -10
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +7 -8
- package/types/excalidraw/actions/actionElementLock.d.ts +9 -9
- package/types/excalidraw/actions/actionExport.d.ts +33 -33
- package/types/excalidraw/actions/actionFinalize.d.ts +9 -9
- package/types/excalidraw/actions/actionFlip.d.ts +10 -10
- package/types/excalidraw/actions/actionFrame.d.ts +16 -204
- package/types/excalidraw/actions/actionGroup.d.ts +12 -388
- package/types/excalidraw/actions/actionHistory.d.ts +4 -3
- package/types/excalidraw/actions/actionLinearEditor.d.ts +6 -4
- package/types/excalidraw/actions/actionLink.d.ts +5 -5
- package/types/excalidraw/actions/actionMenu.d.ts +8 -8
- package/types/excalidraw/actions/actionNavigate.d.ts +4 -4
- package/types/excalidraw/actions/actionProperties.d.ts +34 -34
- package/types/excalidraw/actions/actionSelectAll.d.ts +5 -5
- package/types/excalidraw/actions/actionStyles.d.ts +9 -12
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -5
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +4 -4
- package/types/excalidraw/actions/actionToggleStats.d.ts +4 -4
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +4 -4
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +4 -4
- package/types/excalidraw/actions/actionZindex.d.ts +22 -19
- package/types/excalidraw/actions/manager.d.ts +5 -5
- package/types/excalidraw/actions/register.d.ts +1 -1
- package/types/excalidraw/actions/shortcuts.d.ts +2 -2
- package/types/excalidraw/actions/types.d.ts +8 -8
- package/types/excalidraw/align.d.ts +1 -1
- package/types/excalidraw/animated-trail.d.ts +2 -2
- package/types/excalidraw/appState.d.ts +5 -5
- package/types/excalidraw/change.d.ts +191 -0
- package/types/excalidraw/charts.d.ts +1 -1
- package/types/excalidraw/clients.d.ts +2 -2
- package/types/excalidraw/clipboard.d.ts +3 -3
- package/types/excalidraw/colors.d.ts +1 -1
- package/types/excalidraw/components/Actions.d.ts +3 -3
- package/types/excalidraw/components/App.d.ts +28 -14
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -3
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/PickerHeading.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -2
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/types.d.ts +3 -3
- package/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/types/excalidraw/components/ContextMenu.d.ts +2 -2
- package/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/types/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/types/excalidraw/components/EyeDropper.d.ts +2 -2
- package/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/types/excalidraw/components/InitializeApp.d.ts +2 -2
- package/types/excalidraw/components/JSONExportDialog.d.ts +3 -3
- package/types/excalidraw/components/LayerUI.d.ts +4 -4
- package/types/excalidraw/components/LibraryMenu.d.ts +2 -2
- package/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +2 -2
- package/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuSection.d.ts +5 -4
- package/types/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/types/excalidraw/components/MobileMenu.d.ts +3 -3
- package/types/excalidraw/components/Modal.d.ts +1 -1
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/types/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/types/excalidraw/components/RadioGroup.d.ts +2 -1
- package/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/types/excalidraw/components/Stats.d.ts +2 -2
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -2
- package/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogPanels.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTabs.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/common.d.ts +4 -4
- package/types/excalidraw/components/TextField.d.ts +1 -1
- package/types/excalidraw/components/Toast.d.ts +1 -1
- package/types/excalidraw/components/ToolButton.d.ts +4 -2
- package/types/excalidraw/components/Trans.d.ts +1 -1
- package/types/excalidraw/components/UserList.d.ts +1 -1
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/types/excalidraw/components/canvases/StaticCanvas.d.ts +2 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +17 -0
- package/types/excalidraw/components/footer/Footer.d.ts +2 -2
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/types/excalidraw/components/icons.d.ts +6 -1
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +12 -2
- package/types/excalidraw/constants.d.ts +5 -2
- package/types/excalidraw/context/ui-appState.d.ts +1 -1
- package/types/excalidraw/cursor.d.ts +1 -1
- package/types/excalidraw/data/EditorLocalStorage.d.ts +2 -2
- package/types/excalidraw/data/blob.d.ts +5 -5
- package/types/excalidraw/data/filesystem.d.ts +2 -1
- package/types/excalidraw/data/index.d.ts +4 -4
- package/types/excalidraw/data/json.d.ts +3 -3
- package/types/excalidraw/data/library.d.ts +3 -3
- package/types/excalidraw/data/magic.d.ts +3 -3
- package/types/excalidraw/data/reconcile.d.ts +6 -0
- package/types/excalidraw/data/resave.d.ts +2 -2
- package/types/excalidraw/data/restore.d.ts +5 -5
- package/types/excalidraw/data/transform.d.ts +4 -4
- package/types/excalidraw/data/types.d.ts +3 -3
- package/types/excalidraw/data/url.d.ts +1 -0
- package/types/excalidraw/element/ElementCanvasButtons.d.ts +1 -1
- package/types/excalidraw/element/binding.d.ts +52 -9
- package/types/excalidraw/element/bounds.d.ts +3 -4
- package/types/excalidraw/element/collision.d.ts +14 -19
- package/types/excalidraw/element/containerCache.d.ts +1 -1
- package/types/excalidraw/element/dragElements.d.ts +3 -3
- package/types/excalidraw/element/embeddable.d.ts +9 -6
- package/types/excalidraw/element/image.d.ts +2 -2
- package/types/excalidraw/element/index.d.ts +2 -3
- package/types/excalidraw/element/linearElementEditor.d.ts +12 -12
- package/types/excalidraw/element/mutateElement.d.ts +4 -5
- package/types/excalidraw/element/newElement.d.ts +4 -11
- package/types/excalidraw/element/resizeElements.d.ts +4 -4
- package/types/excalidraw/element/resizeTest.d.ts +7 -7
- package/types/excalidraw/element/showSelectedShapeActions.d.ts +2 -2
- package/types/excalidraw/element/sizeHelpers.d.ts +2 -2
- package/types/excalidraw/element/sortElements.d.ts +1 -1
- package/types/excalidraw/element/textElement.d.ts +5 -6
- package/types/excalidraw/element/textWysiwyg.d.ts +10 -5
- package/types/excalidraw/element/transformHandles.d.ts +24 -6
- package/types/excalidraw/element/typeChecks.d.ts +4 -4
- package/types/excalidraw/element/types.d.ts +33 -10
- package/types/excalidraw/emitter.d.ts +1 -1
- package/types/excalidraw/errors.d.ts +3 -0
- package/types/excalidraw/fractionalIndex.d.ts +40 -0
- package/types/excalidraw/frame.d.ts +4 -4
- package/types/excalidraw/gatransforms.d.ts +1 -1
- package/types/excalidraw/gesture.d.ts +1 -1
- package/types/excalidraw/groups.d.ts +5 -3
- package/types/excalidraw/history.d.ts +35 -47
- package/types/excalidraw/hooks/useEmitter.d.ts +2 -0
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/types/excalidraw/i18n.d.ts +1 -1
- package/types/excalidraw/index.d.ts +5 -1
- package/types/excalidraw/jotai.d.ts +1 -1
- package/types/excalidraw/laser-trails.d.ts +3 -2
- package/types/excalidraw/math.d.ts +2 -2
- package/types/excalidraw/points.d.ts +1 -1
- package/types/excalidraw/queue.d.ts +1 -1
- package/types/excalidraw/renderer/helpers.d.ts +2 -2
- package/types/excalidraw/renderer/interactiveScene.d.ts +2 -2
- package/types/excalidraw/renderer/renderElement.d.ts +3 -3
- package/types/excalidraw/renderer/renderSnaps.d.ts +1 -1
- package/types/excalidraw/renderer/staticScene.d.ts +1 -1
- package/types/excalidraw/renderer/staticSvgScene.d.ts +4 -4
- package/types/excalidraw/scene/Fonts.d.ts +2 -4
- package/types/excalidraw/scene/Renderer.d.ts +4 -4
- package/types/excalidraw/scene/Scene.d.ts +19 -12
- package/types/excalidraw/scene/Shape.d.ts +1 -1
- package/types/excalidraw/scene/ShapeCache.d.ts +4 -4
- package/types/excalidraw/scene/comparisons.d.ts +2 -2
- package/types/excalidraw/scene/export.d.ts +2 -2
- package/types/excalidraw/scene/scroll.d.ts +2 -2
- package/types/excalidraw/scene/scrollbars.d.ts +3 -3
- package/types/excalidraw/scene/selection.d.ts +2 -2
- package/types/excalidraw/scene/types.d.ts +5 -4
- package/types/excalidraw/scene/zoom.d.ts +1 -1
- package/types/excalidraw/snapping.d.ts +4 -4
- package/types/excalidraw/store.d.ts +99 -0
- package/types/excalidraw/types.d.ts +38 -20
- package/types/excalidraw/utils.d.ts +11 -4
- package/types/excalidraw/webpack.prod.config.d.ts +1 -1
- package/types/excalidraw/zindex.d.ts +4 -4
- package/types/utils/bbox.d.ts +2 -2
- package/types/utils/collision.d.ts +4 -0
- package/types/utils/export.d.ts +4 -4
- package/types/utils/geometry/geometry.d.ts +71 -0
- package/types/utils/geometry/shape.d.ts +56 -0
- package/types/utils/withinBounds.d.ts +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AppClassProperties, AppState, Primitive } from "../types";
|
|
2
|
-
import { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
1
|
+
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
2
|
+
import type { Arrowhead, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
3
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
4
4
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
5
5
|
export declare const actionChangeStrokeColor: {
|
|
6
6
|
name: "changeStrokeColor";
|
|
7
7
|
label: string;
|
|
8
8
|
trackEvent: false;
|
|
9
|
-
perform: (elements: readonly
|
|
9
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => any;
|
|
10
10
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
} & {
|
|
12
12
|
keyTest?: undefined;
|
|
@@ -15,7 +15,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
15
15
|
name: "changeBackgroundColor";
|
|
16
16
|
label: string;
|
|
17
17
|
trackEvent: false;
|
|
18
|
-
perform: (elements: readonly
|
|
18
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
19
19
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
} & {
|
|
21
21
|
keyTest?: undefined;
|
|
@@ -24,7 +24,7 @@ export declare const actionChangeFillStyle: {
|
|
|
24
24
|
name: "changeFillStyle";
|
|
25
25
|
label: string;
|
|
26
26
|
trackEvent: false;
|
|
27
|
-
perform: (elements: readonly
|
|
27
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
appState: {
|
|
30
30
|
currentItemFillStyle: any;
|
|
@@ -211,7 +211,7 @@ export declare const actionChangeFillStyle: {
|
|
|
211
211
|
userToFollow: import("../types").UserToFollow | null;
|
|
212
212
|
followedBy: Set<import("../types").SocketId>;
|
|
213
213
|
};
|
|
214
|
-
|
|
214
|
+
storeAction: import("../store").StoreActionType;
|
|
215
215
|
};
|
|
216
216
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
217
217
|
} & {
|
|
@@ -221,7 +221,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
221
221
|
name: "changeStrokeWidth";
|
|
222
222
|
label: string;
|
|
223
223
|
trackEvent: false;
|
|
224
|
-
perform: (elements: readonly
|
|
224
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
225
225
|
elements: ExcalidrawElement[];
|
|
226
226
|
appState: {
|
|
227
227
|
currentItemStrokeWidth: any;
|
|
@@ -408,7 +408,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
408
408
|
userToFollow: import("../types").UserToFollow | null;
|
|
409
409
|
followedBy: Set<import("../types").SocketId>;
|
|
410
410
|
};
|
|
411
|
-
|
|
411
|
+
storeAction: import("../store").StoreActionType;
|
|
412
412
|
};
|
|
413
413
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
414
414
|
} & {
|
|
@@ -418,7 +418,7 @@ export declare const actionChangeSloppiness: {
|
|
|
418
418
|
name: "changeSloppiness";
|
|
419
419
|
label: string;
|
|
420
420
|
trackEvent: false;
|
|
421
|
-
perform: (elements: readonly
|
|
421
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
422
422
|
elements: ExcalidrawElement[];
|
|
423
423
|
appState: {
|
|
424
424
|
currentItemRoughness: any;
|
|
@@ -605,7 +605,7 @@ export declare const actionChangeSloppiness: {
|
|
|
605
605
|
userToFollow: import("../types").UserToFollow | null;
|
|
606
606
|
followedBy: Set<import("../types").SocketId>;
|
|
607
607
|
};
|
|
608
|
-
|
|
608
|
+
storeAction: import("../store").StoreActionType;
|
|
609
609
|
};
|
|
610
610
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
611
611
|
} & {
|
|
@@ -615,7 +615,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
615
615
|
name: "changeStrokeStyle";
|
|
616
616
|
label: string;
|
|
617
617
|
trackEvent: false;
|
|
618
|
-
perform: (elements: readonly
|
|
618
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
619
619
|
elements: ExcalidrawElement[];
|
|
620
620
|
appState: {
|
|
621
621
|
currentItemStrokeStyle: any;
|
|
@@ -802,7 +802,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
802
802
|
userToFollow: import("../types").UserToFollow | null;
|
|
803
803
|
followedBy: Set<import("../types").SocketId>;
|
|
804
804
|
};
|
|
805
|
-
|
|
805
|
+
storeAction: import("../store").StoreActionType;
|
|
806
806
|
};
|
|
807
807
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
808
808
|
} & {
|
|
@@ -812,7 +812,7 @@ export declare const actionChangeOpacity: {
|
|
|
812
812
|
name: "changeOpacity";
|
|
813
813
|
label: string;
|
|
814
814
|
trackEvent: false;
|
|
815
|
-
perform: (elements: readonly
|
|
815
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
816
816
|
elements: ExcalidrawElement[];
|
|
817
817
|
appState: {
|
|
818
818
|
currentItemOpacity: any;
|
|
@@ -999,7 +999,7 @@ export declare const actionChangeOpacity: {
|
|
|
999
999
|
userToFollow: import("../types").UserToFollow | null;
|
|
1000
1000
|
followedBy: Set<import("../types").SocketId>;
|
|
1001
1001
|
};
|
|
1002
|
-
|
|
1002
|
+
storeAction: import("../store").StoreActionType;
|
|
1003
1003
|
};
|
|
1004
1004
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1005
1005
|
} & {
|
|
@@ -1010,7 +1010,7 @@ export declare const actionChangeFontSize: {
|
|
|
1010
1010
|
name: "changeFontSize";
|
|
1011
1011
|
label: string;
|
|
1012
1012
|
trackEvent: false;
|
|
1013
|
-
perform: (elements: readonly
|
|
1013
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1014
1014
|
elements: ExcalidrawElement[];
|
|
1015
1015
|
appState: {
|
|
1016
1016
|
currentItemFontSize: number;
|
|
@@ -1197,7 +1197,7 @@ export declare const actionChangeFontSize: {
|
|
|
1197
1197
|
userToFollow: import("../types").UserToFollow | null;
|
|
1198
1198
|
followedBy: Set<import("../types").SocketId>;
|
|
1199
1199
|
};
|
|
1200
|
-
|
|
1200
|
+
storeAction: import("../store").StoreActionType;
|
|
1201
1201
|
};
|
|
1202
1202
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1203
1203
|
} & {
|
|
@@ -1208,7 +1208,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1208
1208
|
label: string;
|
|
1209
1209
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1210
1210
|
trackEvent: false;
|
|
1211
|
-
perform: (elements: readonly
|
|
1211
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1212
1212
|
elements: ExcalidrawElement[];
|
|
1213
1213
|
appState: {
|
|
1214
1214
|
currentItemFontSize: number;
|
|
@@ -1395,18 +1395,18 @@ export declare const actionDecreaseFontSize: {
|
|
|
1395
1395
|
userToFollow: import("../types").UserToFollow | null;
|
|
1396
1396
|
followedBy: Set<import("../types").SocketId>;
|
|
1397
1397
|
};
|
|
1398
|
-
|
|
1398
|
+
storeAction: import("../store").StoreActionType;
|
|
1399
1399
|
};
|
|
1400
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1400
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1401
1401
|
} & {
|
|
1402
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1402
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1403
1403
|
};
|
|
1404
1404
|
export declare const actionIncreaseFontSize: {
|
|
1405
1405
|
name: "increaseFontSize";
|
|
1406
1406
|
label: string;
|
|
1407
1407
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1408
1408
|
trackEvent: false;
|
|
1409
|
-
perform: (elements: readonly
|
|
1409
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1410
1410
|
elements: ExcalidrawElement[];
|
|
1411
1411
|
appState: {
|
|
1412
1412
|
currentItemFontSize: number;
|
|
@@ -1593,17 +1593,17 @@ export declare const actionIncreaseFontSize: {
|
|
|
1593
1593
|
userToFollow: import("../types").UserToFollow | null;
|
|
1594
1594
|
followedBy: Set<import("../types").SocketId>;
|
|
1595
1595
|
};
|
|
1596
|
-
|
|
1596
|
+
storeAction: import("../store").StoreActionType;
|
|
1597
1597
|
};
|
|
1598
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1598
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1599
1599
|
} & {
|
|
1600
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1600
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1601
1601
|
};
|
|
1602
1602
|
export declare const actionChangeFontFamily: {
|
|
1603
1603
|
name: "changeFontFamily";
|
|
1604
1604
|
label: string;
|
|
1605
1605
|
trackEvent: false;
|
|
1606
|
-
perform: (elements: readonly
|
|
1606
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1607
1607
|
elements: ExcalidrawElement[];
|
|
1608
1608
|
appState: {
|
|
1609
1609
|
currentItemFontFamily: any;
|
|
@@ -1790,7 +1790,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1790
1790
|
userToFollow: import("../types").UserToFollow | null;
|
|
1791
1791
|
followedBy: Set<import("../types").SocketId>;
|
|
1792
1792
|
};
|
|
1793
|
-
|
|
1793
|
+
storeAction: import("../store").StoreActionType;
|
|
1794
1794
|
};
|
|
1795
1795
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1796
1796
|
} & {
|
|
@@ -1800,7 +1800,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1800
1800
|
name: "changeTextAlign";
|
|
1801
1801
|
label: string;
|
|
1802
1802
|
trackEvent: false;
|
|
1803
|
-
perform: (elements: readonly
|
|
1803
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1804
1804
|
elements: ExcalidrawElement[];
|
|
1805
1805
|
appState: {
|
|
1806
1806
|
currentItemTextAlign: any;
|
|
@@ -1987,7 +1987,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1987
1987
|
userToFollow: import("../types").UserToFollow | null;
|
|
1988
1988
|
followedBy: Set<import("../types").SocketId>;
|
|
1989
1989
|
};
|
|
1990
|
-
|
|
1990
|
+
storeAction: import("../store").StoreActionType;
|
|
1991
1991
|
};
|
|
1992
1992
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1993
1993
|
} & {
|
|
@@ -1999,7 +1999,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
1999
1999
|
trackEvent: {
|
|
2000
2000
|
category: "element";
|
|
2001
2001
|
};
|
|
2002
|
-
perform: (elements: readonly
|
|
2002
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2003
2003
|
elements: ExcalidrawElement[];
|
|
2004
2004
|
appState: {
|
|
2005
2005
|
contextMenu: {
|
|
@@ -2186,7 +2186,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2186
2186
|
userToFollow: import("../types").UserToFollow | null;
|
|
2187
2187
|
followedBy: Set<import("../types").SocketId>;
|
|
2188
2188
|
};
|
|
2189
|
-
|
|
2189
|
+
storeAction: import("../store").StoreActionType;
|
|
2190
2190
|
};
|
|
2191
2191
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2192
2192
|
} & {
|
|
@@ -2196,7 +2196,7 @@ export declare const actionChangeRoundness: {
|
|
|
2196
2196
|
name: "changeRoundness";
|
|
2197
2197
|
label: string;
|
|
2198
2198
|
trackEvent: false;
|
|
2199
|
-
perform: (elements: readonly
|
|
2199
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
2200
2200
|
elements: ExcalidrawElement[];
|
|
2201
2201
|
appState: {
|
|
2202
2202
|
currentItemRoundness: any;
|
|
@@ -2383,7 +2383,7 @@ export declare const actionChangeRoundness: {
|
|
|
2383
2383
|
userToFollow: import("../types").UserToFollow | null;
|
|
2384
2384
|
followedBy: Set<import("../types").SocketId>;
|
|
2385
2385
|
};
|
|
2386
|
-
|
|
2386
|
+
storeAction: import("../store").StoreActionType;
|
|
2387
2387
|
};
|
|
2388
2388
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2389
2389
|
} & {
|
|
@@ -2393,7 +2393,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2393
2393
|
name: "changeArrowhead";
|
|
2394
2394
|
label: string;
|
|
2395
2395
|
trackEvent: false;
|
|
2396
|
-
perform: (elements: readonly
|
|
2396
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
|
|
2397
2397
|
position: "start" | "end";
|
|
2398
2398
|
type: Arrowhead;
|
|
2399
2399
|
}) => {
|
|
@@ -2583,7 +2583,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2583
2583
|
userToFollow: import("../types").UserToFollow | null;
|
|
2584
2584
|
followedBy: Set<import("../types").SocketId>;
|
|
2585
2585
|
};
|
|
2586
|
-
|
|
2586
|
+
storeAction: import("../store").StoreActionType;
|
|
2587
2587
|
};
|
|
2588
2588
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2589
2589
|
} & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExcalidrawElement } from "../element/types";
|
|
1
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
2
2
|
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
3
3
|
export declare const actionSelectAll: {
|
|
4
4
|
name: "selectAll";
|
|
@@ -8,7 +8,7 @@ export declare const actionSelectAll: {
|
|
|
8
8
|
category: "canvas";
|
|
9
9
|
};
|
|
10
10
|
viewMode: false;
|
|
11
|
-
perform: (elements: readonly
|
|
11
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => false | {
|
|
12
12
|
appState: {
|
|
13
13
|
selectedLinearElement: LinearElementEditor | null;
|
|
14
14
|
selectedElementIds: Readonly<{
|
|
@@ -194,9 +194,9 @@ export declare const actionSelectAll: {
|
|
|
194
194
|
userToFollow: import("../types").UserToFollow | null;
|
|
195
195
|
followedBy: Set<import("../types").SocketId>;
|
|
196
196
|
};
|
|
197
|
-
|
|
197
|
+
storeAction: import("../store").StoreActionType;
|
|
198
198
|
};
|
|
199
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
199
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
200
200
|
} & {
|
|
201
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
201
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
202
202
|
};
|
|
@@ -6,7 +6,7 @@ export declare const actionCopyStyles: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("../element/types").
|
|
9
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => {
|
|
10
10
|
appState: {
|
|
11
11
|
toast: {
|
|
12
12
|
message: string;
|
|
@@ -190,11 +190,11 @@ export declare const actionCopyStyles: {
|
|
|
190
190
|
userToFollow: import("../types").UserToFollow | null;
|
|
191
191
|
followedBy: Set<import("../types").SocketId>;
|
|
192
192
|
};
|
|
193
|
-
|
|
193
|
+
storeAction: import("../store").StoreActionType;
|
|
194
194
|
};
|
|
195
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
195
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
196
196
|
} & {
|
|
197
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
197
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
198
198
|
};
|
|
199
199
|
export declare const actionPasteStyles: {
|
|
200
200
|
name: "pasteStyles";
|
|
@@ -203,14 +203,11 @@ export declare const actionPasteStyles: {
|
|
|
203
203
|
trackEvent: {
|
|
204
204
|
category: "element";
|
|
205
205
|
};
|
|
206
|
-
perform: (elements: readonly import("../element/types").
|
|
207
|
-
elements: readonly import("../element/types").
|
|
208
|
-
|
|
209
|
-
} | {
|
|
210
|
-
elements: import("../element/types").ExcalidrawElement[];
|
|
211
|
-
commitToHistory: true;
|
|
206
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => {
|
|
207
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
208
|
+
storeAction: import("../store").StoreActionType;
|
|
212
209
|
};
|
|
213
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
210
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
214
211
|
} & {
|
|
215
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
212
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
216
213
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AppClassProperties } from "../types";
|
|
2
|
+
export declare const actionTextAutoResize: {
|
|
3
|
+
name: "autoResize";
|
|
4
|
+
label: string;
|
|
5
|
+
icon: null;
|
|
6
|
+
trackEvent: {
|
|
7
|
+
category: "element";
|
|
8
|
+
};
|
|
9
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: unknown, app: AppClassProperties) => boolean;
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: AppClassProperties) => {
|
|
11
|
+
appState: Readonly<import("../types").AppState>;
|
|
12
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
13
|
+
storeAction: import("../store").StoreActionType;
|
|
14
|
+
};
|
|
15
|
+
} & {
|
|
16
|
+
keyTest?: undefined;
|
|
17
|
+
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { AppState } from "../types";
|
|
1
|
+
import type { AppState } from "../types";
|
|
2
2
|
export declare const actionToggleGridMode: {
|
|
3
3
|
name: "gridMode";
|
|
4
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
keywords: string[];
|
|
4
6
|
label: string;
|
|
5
7
|
viewMode: true;
|
|
6
8
|
trackEvent: {
|
|
7
9
|
category: "canvas";
|
|
8
10
|
predicate: (appState: Readonly<AppState>) => boolean;
|
|
9
11
|
};
|
|
10
|
-
perform(elements: readonly import("../element/types").
|
|
12
|
+
perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>): {
|
|
11
13
|
appState: {
|
|
12
14
|
gridSize: number | null;
|
|
13
15
|
objectsSnapModeEnabled: false;
|
|
@@ -193,11 +195,11 @@ export declare const actionToggleGridMode: {
|
|
|
193
195
|
userToFollow: import("../types").UserToFollow | null;
|
|
194
196
|
followedBy: Set<import("../types").SocketId>;
|
|
195
197
|
};
|
|
196
|
-
|
|
198
|
+
storeAction: import("../store").StoreActionType;
|
|
197
199
|
};
|
|
198
200
|
checked: (appState: AppState) => boolean;
|
|
199
201
|
predicate: (element: readonly import("../element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
200
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
202
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
201
203
|
} & {
|
|
202
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
204
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
203
205
|
};
|
|
@@ -7,7 +7,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
7
7
|
category: "canvas";
|
|
8
8
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("../element/types").
|
|
10
|
+
perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
objectsSnapModeEnabled: boolean;
|
|
13
13
|
gridSize: null;
|
|
@@ -193,11 +193,11 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
193
193
|
userToFollow: import("../types").UserToFollow | null;
|
|
194
194
|
followedBy: Set<import("../types").SocketId>;
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
storeAction: import("../store").StoreActionType;
|
|
197
197
|
};
|
|
198
198
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
199
199
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
200
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
200
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
201
201
|
} & {
|
|
202
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
202
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
203
203
|
};
|
|
@@ -7,7 +7,7 @@ export declare const actionToggleStats: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "menu";
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("../element/types").
|
|
10
|
+
perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
showStats: boolean;
|
|
13
13
|
contextMenu: {
|
|
@@ -193,10 +193,10 @@ export declare const actionToggleStats: {
|
|
|
193
193
|
userToFollow: import("../types").UserToFollow | null;
|
|
194
194
|
followedBy: Set<import("../types").SocketId>;
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
storeAction: import("../store").StoreActionType;
|
|
197
197
|
};
|
|
198
198
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
199
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
199
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
200
200
|
} & {
|
|
201
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
201
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
202
202
|
};
|
|
@@ -8,7 +8,7 @@ export declare const actionToggleViewMode: {
|
|
|
8
8
|
category: "canvas";
|
|
9
9
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
10
10
|
};
|
|
11
|
-
perform(elements: readonly import("../element/types").
|
|
11
|
+
perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
|
|
12
12
|
appState: {
|
|
13
13
|
viewModeEnabled: boolean;
|
|
14
14
|
contextMenu: {
|
|
@@ -194,11 +194,11 @@ export declare const actionToggleViewMode: {
|
|
|
194
194
|
userToFollow: import("../types").UserToFollow | null;
|
|
195
195
|
followedBy: Set<import("../types").SocketId>;
|
|
196
196
|
};
|
|
197
|
-
|
|
197
|
+
storeAction: import("../store").StoreActionType;
|
|
198
198
|
};
|
|
199
199
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
200
200
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
201
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
201
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
202
202
|
} & {
|
|
203
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
203
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
204
204
|
};
|
|
@@ -8,7 +8,7 @@ export declare const actionToggleZenMode: {
|
|
|
8
8
|
category: "canvas";
|
|
9
9
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
10
10
|
};
|
|
11
|
-
perform(elements: readonly import("../element/types").
|
|
11
|
+
perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
12
12
|
appState: {
|
|
13
13
|
zenModeEnabled: boolean;
|
|
14
14
|
contextMenu: {
|
|
@@ -194,11 +194,11 @@ export declare const actionToggleZenMode: {
|
|
|
194
194
|
userToFollow: import("../types").UserToFollow | null;
|
|
195
195
|
followedBy: Set<import("../types").SocketId>;
|
|
196
196
|
};
|
|
197
|
-
|
|
197
|
+
storeAction: import("../store").StoreActionType;
|
|
198
198
|
};
|
|
199
199
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
200
200
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
201
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
201
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
202
202
|
} & {
|
|
203
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
203
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
204
204
|
};
|
|
@@ -1,71 +1,74 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
export declare const actionSendBackward: {
|
|
3
2
|
name: "sendBackward";
|
|
4
3
|
label: string;
|
|
4
|
+
keywords: string[];
|
|
5
5
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("../element/types").
|
|
10
|
-
elements: import("../element/types").ExcalidrawElement[];
|
|
9
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
10
|
+
elements: readonly import("../element/types").ExcalidrawElement[];
|
|
11
11
|
appState: Readonly<import("../types").AppState>;
|
|
12
|
-
|
|
12
|
+
storeAction: import("../store").StoreActionType;
|
|
13
13
|
};
|
|
14
14
|
keyPriority: number;
|
|
15
|
-
keyTest: (event:
|
|
15
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
16
16
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
} & {
|
|
18
|
-
keyTest?: ((event:
|
|
18
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
19
19
|
};
|
|
20
20
|
export declare const actionBringForward: {
|
|
21
21
|
name: "bringForward";
|
|
22
22
|
label: string;
|
|
23
|
+
keywords: string[];
|
|
23
24
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
24
25
|
trackEvent: {
|
|
25
26
|
category: "element";
|
|
26
27
|
};
|
|
27
|
-
perform: (elements: readonly import("../element/types").
|
|
28
|
-
elements: import("../element/types").ExcalidrawElement[];
|
|
28
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
29
|
+
elements: readonly import("../element/types").ExcalidrawElement[];
|
|
29
30
|
appState: Readonly<import("../types").AppState>;
|
|
30
|
-
|
|
31
|
+
storeAction: import("../store").StoreActionType;
|
|
31
32
|
};
|
|
32
33
|
keyPriority: number;
|
|
33
|
-
keyTest: (event:
|
|
34
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
34
35
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
36
|
} & {
|
|
36
|
-
keyTest?: ((event:
|
|
37
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
37
38
|
};
|
|
38
39
|
export declare const actionSendToBack: {
|
|
39
40
|
name: "sendToBack";
|
|
40
41
|
label: string;
|
|
42
|
+
keywords: string[];
|
|
41
43
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
42
44
|
trackEvent: {
|
|
43
45
|
category: "element";
|
|
44
46
|
};
|
|
45
|
-
perform: (elements: readonly import("../element/types").
|
|
47
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
46
48
|
elements: readonly import("../element/types").ExcalidrawElement[] | import("../element/types").ExcalidrawElement[];
|
|
47
49
|
appState: Readonly<import("../types").AppState>;
|
|
48
|
-
|
|
50
|
+
storeAction: import("../store").StoreActionType;
|
|
49
51
|
};
|
|
50
|
-
keyTest: (event:
|
|
52
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
51
53
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
54
|
} & {
|
|
53
|
-
keyTest?: ((event:
|
|
55
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
54
56
|
};
|
|
55
57
|
export declare const actionBringToFront: {
|
|
56
58
|
name: "bringToFront";
|
|
57
59
|
label: string;
|
|
60
|
+
keywords: string[];
|
|
58
61
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
59
62
|
trackEvent: {
|
|
60
63
|
category: "element";
|
|
61
64
|
};
|
|
62
|
-
perform: (elements: readonly import("../element/types").
|
|
65
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
63
66
|
elements: readonly import("../element/types").ExcalidrawElement[] | import("../element/types").ExcalidrawElement[];
|
|
64
67
|
appState: Readonly<import("../types").AppState>;
|
|
65
|
-
|
|
68
|
+
storeAction: import("../store").StoreActionType;
|
|
66
69
|
};
|
|
67
|
-
keyTest: (event:
|
|
70
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
68
71
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
69
72
|
} & {
|
|
70
|
-
keyTest?: ((event:
|
|
73
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
71
74
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Action, UpdaterFn, ActionName, ActionResult, PanelComponentProps, ActionSource } from "./types";
|
|
3
|
-
import {
|
|
4
|
-
import { AppClassProperties, AppState } from "../types";
|
|
2
|
+
import type { Action, UpdaterFn, ActionName, ActionResult, PanelComponentProps, ActionSource } from "./types";
|
|
3
|
+
import type { OrderedExcalidrawElement } from "../element/types";
|
|
4
|
+
import type { AppClassProperties, AppState } from "../types";
|
|
5
5
|
export declare class ActionManager {
|
|
6
6
|
actions: Record<ActionName, Action>;
|
|
7
7
|
updater: (actionResult: ActionResult | Promise<ActionResult>) => void;
|
|
8
8
|
getAppState: () => Readonly<AppState>;
|
|
9
|
-
getElementsIncludingDeleted: () => readonly
|
|
9
|
+
getElementsIncludingDeleted: () => readonly OrderedExcalidrawElement[];
|
|
10
10
|
app: AppClassProperties;
|
|
11
|
-
constructor(updater: UpdaterFn, getAppState: () => AppState, getElementsIncludingDeleted: () => readonly
|
|
11
|
+
constructor(updater: UpdaterFn, getAppState: () => AppState, getElementsIncludingDeleted: () => readonly OrderedExcalidrawElement[], app: AppClassProperties);
|
|
12
12
|
registerAction(action: Action): void;
|
|
13
13
|
registerAll(actions: readonly Action[]): void;
|
|
14
14
|
handleKeyDown(event: React.KeyboardEvent | KeyboardEvent): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Action } from "./types";
|
|
1
|
+
import type { Action } from "./types";
|
|
2
2
|
export declare let actions: readonly Action[];
|
|
3
3
|
export declare const register: <T extends Action>(action: T) => T & {
|
|
4
4
|
keyTest?: (unknown extends T["keyTest"] ? never : T["keyTest"]) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubtypeOf } from "../utility-types";
|
|
2
|
-
import { ActionName } from "./types";
|
|
1
|
+
import type { SubtypeOf } from "../utility-types";
|
|
2
|
+
import type { ActionName } from "./types";
|
|
3
3
|
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "clearCanvas" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "copyAsSvg" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "addToLibrary" | "viewMode" | "flipHorizontal" | "flipVertical" | "hyperlink" | "toggleElementLock" | "toggleLaserPointerTool" | "resetZoom" | "zoomOut" | "zoomIn" | "zoomToFit" | "zoomToFitSelectionInViewport" | "zoomToFitSelection" | "toggleEraserTool" | "toggleHandTool" | "setFrameAsActiveTool" | "saveFileToDisk" | "saveToActiveFile" | "toggleShortcuts"> | "saveScene" | "imageExport" | "commandPalette";
|
|
4
4
|
export declare const getShortcutFromShortcutName: (name: ShortcutName, idx?: number) => string;
|