@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,15 +1,15 @@
|
|
|
1
|
-
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppClassProperties, AppState, NormalizedZoomValue } from "../types";
|
|
3
|
-
import { SceneBounds } from "../element/bounds";
|
|
1
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
2
|
+
import type { AppClassProperties, AppState, NormalizedZoomValue } from "../types";
|
|
3
|
+
import type { SceneBounds } from "../element/bounds";
|
|
4
4
|
export declare const actionChangeViewBackgroundColor: {
|
|
5
5
|
name: "changeViewBackgroundColor";
|
|
6
6
|
label: string;
|
|
7
7
|
paletteName: string;
|
|
8
8
|
trackEvent: false;
|
|
9
9
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
10
|
-
perform: (_: readonly
|
|
10
|
+
perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
11
11
|
appState: any;
|
|
12
|
-
|
|
12
|
+
storeAction: import("../store").StoreActionType;
|
|
13
13
|
};
|
|
14
14
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
} & {
|
|
@@ -24,8 +24,8 @@ export declare const actionClearCanvas: {
|
|
|
24
24
|
category: "canvas";
|
|
25
25
|
};
|
|
26
26
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
27
|
-
perform: (elements: readonly
|
|
28
|
-
elements:
|
|
27
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
28
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
29
29
|
appState: {
|
|
30
30
|
files: {};
|
|
31
31
|
theme: import("../element/types").Theme;
|
|
@@ -49,7 +49,7 @@ export declare const actionClearCanvas: {
|
|
|
49
49
|
colorPalette: {
|
|
50
50
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
51
51
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
52
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
52
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
53
53
|
topPicks: {
|
|
54
54
|
canvasBackground: [string, string, string, string, string];
|
|
55
55
|
elementStroke: [string, string, string, string, string];
|
|
@@ -61,6 +61,10 @@ export declare const actionClearCanvas: {
|
|
|
61
61
|
allowWheelZoom: boolean | undefined;
|
|
62
62
|
pinnedScripts: string[] | undefined;
|
|
63
63
|
customPens: any[] | undefined;
|
|
64
|
+
viewModeEnabled: boolean;
|
|
65
|
+
zenModeEnabled: boolean;
|
|
66
|
+
objectsSnapModeEnabled: boolean;
|
|
67
|
+
name: string | null;
|
|
64
68
|
contextMenu: {
|
|
65
69
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
66
70
|
top: number;
|
|
@@ -111,7 +115,6 @@ export declare const actionClearCanvas: {
|
|
|
111
115
|
scrollY: number;
|
|
112
116
|
cursorButton: "up" | "down";
|
|
113
117
|
scrolledOutside: boolean;
|
|
114
|
-
name: string | null;
|
|
115
118
|
isResizing: boolean;
|
|
116
119
|
isRotating: boolean;
|
|
117
120
|
zoom: Readonly<{
|
|
@@ -150,9 +153,7 @@ export declare const actionClearCanvas: {
|
|
|
150
153
|
closable?: boolean | undefined;
|
|
151
154
|
duration?: number | undefined;
|
|
152
155
|
} | null;
|
|
153
|
-
zenModeEnabled: boolean;
|
|
154
156
|
previousGridSize: number | null;
|
|
155
|
-
viewModeEnabled: boolean;
|
|
156
157
|
selectedGroupIds: {
|
|
157
158
|
[groupId: string]: boolean;
|
|
158
159
|
};
|
|
@@ -204,11 +205,10 @@ export declare const actionClearCanvas: {
|
|
|
204
205
|
x: number;
|
|
205
206
|
y: number;
|
|
206
207
|
} | null;
|
|
207
|
-
objectsSnapModeEnabled: boolean;
|
|
208
208
|
userToFollow: import("../types").UserToFollow | null;
|
|
209
209
|
followedBy: Set<import("../types").SocketId>;
|
|
210
210
|
};
|
|
211
|
-
|
|
211
|
+
storeAction: import("../store").StoreActionType;
|
|
212
212
|
};
|
|
213
213
|
} & {
|
|
214
214
|
keyTest?: undefined;
|
|
@@ -221,7 +221,7 @@ export declare const actionZoomIn: {
|
|
|
221
221
|
trackEvent: {
|
|
222
222
|
category: "canvas";
|
|
223
223
|
};
|
|
224
|
-
perform: (_elements: readonly
|
|
224
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
225
225
|
appState: {
|
|
226
226
|
userToFollow: null;
|
|
227
227
|
scrollX: number;
|
|
@@ -371,7 +371,7 @@ export declare const actionZoomIn: {
|
|
|
371
371
|
colorPalette?: {
|
|
372
372
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
373
373
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
374
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
374
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
375
375
|
topPicks: {
|
|
376
376
|
canvasBackground: [string, string, string, string, string];
|
|
377
377
|
elementStroke: [string, string, string, string, string];
|
|
@@ -407,12 +407,12 @@ export declare const actionZoomIn: {
|
|
|
407
407
|
objectsSnapModeEnabled: boolean;
|
|
408
408
|
followedBy: Set<import("../types").SocketId>;
|
|
409
409
|
};
|
|
410
|
-
|
|
410
|
+
storeAction: import("../store").StoreActionType;
|
|
411
411
|
};
|
|
412
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
413
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
412
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
413
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
414
414
|
} & {
|
|
415
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
415
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
416
416
|
};
|
|
417
417
|
export declare const actionZoomOut: {
|
|
418
418
|
name: "zoomOut";
|
|
@@ -422,7 +422,7 @@ export declare const actionZoomOut: {
|
|
|
422
422
|
trackEvent: {
|
|
423
423
|
category: "canvas";
|
|
424
424
|
};
|
|
425
|
-
perform: (_elements: readonly
|
|
425
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
426
426
|
appState: {
|
|
427
427
|
userToFollow: null;
|
|
428
428
|
scrollX: number;
|
|
@@ -572,7 +572,7 @@ export declare const actionZoomOut: {
|
|
|
572
572
|
colorPalette?: {
|
|
573
573
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
574
574
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
575
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
575
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
576
576
|
topPicks: {
|
|
577
577
|
canvasBackground: [string, string, string, string, string];
|
|
578
578
|
elementStroke: [string, string, string, string, string];
|
|
@@ -608,12 +608,12 @@ export declare const actionZoomOut: {
|
|
|
608
608
|
objectsSnapModeEnabled: boolean;
|
|
609
609
|
followedBy: Set<import("../types").SocketId>;
|
|
610
610
|
};
|
|
611
|
-
|
|
611
|
+
storeAction: import("../store").StoreActionType;
|
|
612
612
|
};
|
|
613
|
-
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
614
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
613
|
+
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
614
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
615
615
|
} & {
|
|
616
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
616
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
617
617
|
};
|
|
618
618
|
export declare const actionResetZoom: {
|
|
619
619
|
name: "resetZoom";
|
|
@@ -623,7 +623,7 @@ export declare const actionResetZoom: {
|
|
|
623
623
|
trackEvent: {
|
|
624
624
|
category: "canvas";
|
|
625
625
|
};
|
|
626
|
-
perform: (_elements: readonly
|
|
626
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
627
627
|
appState: {
|
|
628
628
|
userToFollow: null;
|
|
629
629
|
scrollX: number;
|
|
@@ -773,7 +773,7 @@ export declare const actionResetZoom: {
|
|
|
773
773
|
colorPalette?: {
|
|
774
774
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
775
775
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
776
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
776
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
777
777
|
topPicks: {
|
|
778
778
|
canvasBackground: [string, string, string, string, string];
|
|
779
779
|
elementStroke: [string, string, string, string, string];
|
|
@@ -809,12 +809,12 @@ export declare const actionResetZoom: {
|
|
|
809
809
|
objectsSnapModeEnabled: boolean;
|
|
810
810
|
followedBy: Set<import("../types").SocketId>;
|
|
811
811
|
};
|
|
812
|
-
|
|
812
|
+
storeAction: import("../store").StoreActionType;
|
|
813
813
|
};
|
|
814
814
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
815
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
815
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
816
816
|
} & {
|
|
817
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
817
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
818
818
|
};
|
|
819
819
|
export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewportZoomFactor, }: {
|
|
820
820
|
bounds: SceneBounds;
|
|
@@ -972,7 +972,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
|
|
|
972
972
|
colorPalette?: {
|
|
973
973
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
974
974
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
975
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
975
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
976
976
|
topPicks: {
|
|
977
977
|
canvasBackground: [string, string, string, string, string];
|
|
978
978
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1009,7 +1009,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
|
|
|
1009
1009
|
userToFollow: import("../types").UserToFollow | null;
|
|
1010
1010
|
followedBy: Set<import("../types").SocketId>;
|
|
1011
1011
|
};
|
|
1012
|
-
|
|
1012
|
+
storeAction: import("../store").StoreActionType;
|
|
1013
1013
|
};
|
|
1014
1014
|
export declare const zoomToFit: ({ targetElements, appState, fitToViewport, viewportZoomFactor, }: {
|
|
1015
1015
|
targetElements: readonly ExcalidrawElement[];
|
|
@@ -1167,7 +1167,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
1167
1167
|
colorPalette?: {
|
|
1168
1168
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1169
1169
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1170
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1170
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1171
1171
|
topPicks: {
|
|
1172
1172
|
canvasBackground: [string, string, string, string, string];
|
|
1173
1173
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1204,7 +1204,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
1204
1204
|
userToFollow: import("../types").UserToFollow | null;
|
|
1205
1205
|
followedBy: Set<import("../types").SocketId>;
|
|
1206
1206
|
};
|
|
1207
|
-
|
|
1207
|
+
storeAction: import("../store").StoreActionType;
|
|
1208
1208
|
};
|
|
1209
1209
|
export declare const actionZoomToFitSelectionInViewport: {
|
|
1210
1210
|
name: "zoomToFitSelectionInViewport";
|
|
@@ -1213,7 +1213,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1213
1213
|
trackEvent: {
|
|
1214
1214
|
category: "canvas";
|
|
1215
1215
|
};
|
|
1216
|
-
perform: (elements: readonly
|
|
1216
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
1217
1217
|
appState: {
|
|
1218
1218
|
scrollX: number;
|
|
1219
1219
|
scrollY: number;
|
|
@@ -1362,7 +1362,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1362
1362
|
colorPalette?: {
|
|
1363
1363
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1364
1364
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1365
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1365
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1366
1366
|
topPicks: {
|
|
1367
1367
|
canvasBackground: [string, string, string, string, string];
|
|
1368
1368
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1399,11 +1399,11 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1399
1399
|
userToFollow: import("../types").UserToFollow | null;
|
|
1400
1400
|
followedBy: Set<import("../types").SocketId>;
|
|
1401
1401
|
};
|
|
1402
|
-
|
|
1402
|
+
storeAction: import("../store").StoreActionType;
|
|
1403
1403
|
};
|
|
1404
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1404
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1405
1405
|
} & {
|
|
1406
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1406
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1407
1407
|
};
|
|
1408
1408
|
export declare const actionZoomToFitSelection: {
|
|
1409
1409
|
name: "zoomToFitSelection";
|
|
@@ -1412,7 +1412,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1412
1412
|
trackEvent: {
|
|
1413
1413
|
category: "canvas";
|
|
1414
1414
|
};
|
|
1415
|
-
perform: (elements: readonly
|
|
1415
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
1416
1416
|
appState: {
|
|
1417
1417
|
scrollX: number;
|
|
1418
1418
|
scrollY: number;
|
|
@@ -1561,7 +1561,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1561
1561
|
colorPalette?: {
|
|
1562
1562
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1563
1563
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1564
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1564
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1565
1565
|
topPicks: {
|
|
1566
1566
|
canvasBackground: [string, string, string, string, string];
|
|
1567
1567
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1598,11 +1598,11 @@ export declare const actionZoomToFitSelection: {
|
|
|
1598
1598
|
userToFollow: import("../types").UserToFollow | null;
|
|
1599
1599
|
followedBy: Set<import("../types").SocketId>;
|
|
1600
1600
|
};
|
|
1601
|
-
|
|
1601
|
+
storeAction: import("../store").StoreActionType;
|
|
1602
1602
|
};
|
|
1603
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1603
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1604
1604
|
} & {
|
|
1605
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1605
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1606
1606
|
};
|
|
1607
1607
|
export declare const actionZoomToFit: {
|
|
1608
1608
|
name: "zoomToFit";
|
|
@@ -1612,7 +1612,7 @@ export declare const actionZoomToFit: {
|
|
|
1612
1612
|
trackEvent: {
|
|
1613
1613
|
category: "canvas";
|
|
1614
1614
|
};
|
|
1615
|
-
perform: (elements: readonly
|
|
1615
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
1616
1616
|
appState: {
|
|
1617
1617
|
scrollX: number;
|
|
1618
1618
|
scrollY: number;
|
|
@@ -1761,7 +1761,7 @@ export declare const actionZoomToFit: {
|
|
|
1761
1761
|
colorPalette?: {
|
|
1762
1762
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1763
1763
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1764
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1764
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1765
1765
|
topPicks: {
|
|
1766
1766
|
canvasBackground: [string, string, string, string, string];
|
|
1767
1767
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1798,11 +1798,11 @@ export declare const actionZoomToFit: {
|
|
|
1798
1798
|
userToFollow: import("../types").UserToFollow | null;
|
|
1799
1799
|
followedBy: Set<import("../types").SocketId>;
|
|
1800
1800
|
};
|
|
1801
|
-
|
|
1801
|
+
storeAction: import("../store").StoreActionType;
|
|
1802
1802
|
};
|
|
1803
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1803
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1804
1804
|
} & {
|
|
1805
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1805
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1806
1806
|
};
|
|
1807
1807
|
export declare const actionToggleTheme: {
|
|
1808
1808
|
name: "toggleTheme";
|
|
@@ -1813,7 +1813,7 @@ export declare const actionToggleTheme: {
|
|
|
1813
1813
|
trackEvent: {
|
|
1814
1814
|
category: "canvas";
|
|
1815
1815
|
};
|
|
1816
|
-
perform: (_: readonly
|
|
1816
|
+
perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1817
1817
|
appState: {
|
|
1818
1818
|
theme: any;
|
|
1819
1819
|
contextMenu: {
|
|
@@ -1962,7 +1962,7 @@ export declare const actionToggleTheme: {
|
|
|
1962
1962
|
colorPalette?: {
|
|
1963
1963
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
1964
1964
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
1965
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1965
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
1966
1966
|
topPicks: {
|
|
1967
1967
|
canvasBackground: [string, string, string, string, string];
|
|
1968
1968
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1999,12 +1999,12 @@ export declare const actionToggleTheme: {
|
|
|
1999
1999
|
userToFollow: import("../types").UserToFollow | null;
|
|
2000
2000
|
followedBy: Set<import("../types").SocketId>;
|
|
2001
2001
|
};
|
|
2002
|
-
|
|
2002
|
+
storeAction: import("../store").StoreActionType;
|
|
2003
2003
|
};
|
|
2004
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
2004
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
2005
2005
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
2006
2006
|
} & {
|
|
2007
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
2007
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
2008
2008
|
};
|
|
2009
2009
|
export declare const actionToggleEraserTool: {
|
|
2010
2010
|
name: "toggleEraserTool";
|
|
@@ -2012,7 +2012,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2012
2012
|
trackEvent: {
|
|
2013
2013
|
category: "toolbar";
|
|
2014
2014
|
};
|
|
2015
|
-
perform: (elements: readonly
|
|
2015
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
2016
2016
|
appState: {
|
|
2017
2017
|
selectedElementIds: {};
|
|
2018
2018
|
selectedGroupIds: {};
|
|
@@ -2154,7 +2154,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2154
2154
|
colorPalette?: {
|
|
2155
2155
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
2156
2156
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
2157
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2157
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2158
2158
|
topPicks: {
|
|
2159
2159
|
canvasBackground: [string, string, string, string, string];
|
|
2160
2160
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2191,11 +2191,11 @@ export declare const actionToggleEraserTool: {
|
|
|
2191
2191
|
userToFollow: import("../types").UserToFollow | null;
|
|
2192
2192
|
followedBy: Set<import("../types").SocketId>;
|
|
2193
2193
|
};
|
|
2194
|
-
|
|
2194
|
+
storeAction: import("../store").StoreActionType;
|
|
2195
2195
|
};
|
|
2196
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
2196
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
2197
2197
|
} & {
|
|
2198
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
2198
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
2199
2199
|
};
|
|
2200
2200
|
export declare const actionToggleHandTool: {
|
|
2201
2201
|
name: "toggleHandTool";
|
|
@@ -2206,7 +2206,7 @@ export declare const actionToggleHandTool: {
|
|
|
2206
2206
|
};
|
|
2207
2207
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
2208
2208
|
viewMode: false;
|
|
2209
|
-
perform: (elements: readonly
|
|
2209
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
2210
2210
|
appState: {
|
|
2211
2211
|
selectedElementIds: {};
|
|
2212
2212
|
selectedGroupIds: {};
|
|
@@ -2348,7 +2348,7 @@ export declare const actionToggleHandTool: {
|
|
|
2348
2348
|
colorPalette?: {
|
|
2349
2349
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
2350
2350
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
2351
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2351
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2352
2352
|
topPicks: {
|
|
2353
2353
|
canvasBackground: [string, string, string, string, string];
|
|
2354
2354
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2385,11 +2385,11 @@ export declare const actionToggleHandTool: {
|
|
|
2385
2385
|
userToFollow: import("../types").UserToFollow | null;
|
|
2386
2386
|
followedBy: Set<import("../types").SocketId>;
|
|
2387
2387
|
};
|
|
2388
|
-
|
|
2388
|
+
storeAction: import("../store").StoreActionType;
|
|
2389
2389
|
};
|
|
2390
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
2390
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
2391
2391
|
} & {
|
|
2392
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
2392
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
2393
2393
|
};
|
|
2394
2394
|
export declare const actionToggleLaserPointer: {
|
|
2395
2395
|
name: "toggleLaserPointerTool";
|
|
@@ -2397,7 +2397,7 @@ export declare const actionToggleLaserPointer: {
|
|
|
2397
2397
|
trackEvent: {
|
|
2398
2398
|
category: "menu";
|
|
2399
2399
|
};
|
|
2400
|
-
perform(elements: readonly
|
|
2400
|
+
perform(elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties): {
|
|
2401
2401
|
appState: {
|
|
2402
2402
|
selectedElementIds: {};
|
|
2403
2403
|
selectedGroupIds: {};
|
|
@@ -2539,7 +2539,7 @@ export declare const actionToggleLaserPointer: {
|
|
|
2539
2539
|
colorPalette?: {
|
|
2540
2540
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
2541
2541
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
2542
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2542
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2543
2543
|
topPicks: {
|
|
2544
2544
|
canvasBackground: [string, string, string, string, string];
|
|
2545
2545
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2576,7 +2576,7 @@ export declare const actionToggleLaserPointer: {
|
|
|
2576
2576
|
userToFollow: import("../types").UserToFollow | null;
|
|
2577
2577
|
followedBy: Set<import("../types").SocketId>;
|
|
2578
2578
|
};
|
|
2579
|
-
|
|
2579
|
+
storeAction: import("../store").StoreActionType;
|
|
2580
2580
|
};
|
|
2581
2581
|
checked: (appState: Readonly<AppState>) => boolean;
|
|
2582
2582
|
label: string;
|
|
@@ -2733,7 +2733,7 @@ export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[],
|
|
|
2733
2733
|
colorPalette?: {
|
|
2734
2734
|
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
2735
2735
|
elementBackground: import("../colors").ColorPaletteCustom;
|
|
2736
|
-
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2736
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
2737
2737
|
topPicks: {
|
|
2738
2738
|
canvasBackground: [string, string, string, string, string];
|
|
2739
2739
|
elementStroke: [string, string, string, string, string];
|
|
@@ -5,8 +5,8 @@ export declare const actionCopy: {
|
|
|
5
5
|
trackEvent: {
|
|
6
6
|
category: "element";
|
|
7
7
|
};
|
|
8
|
-
perform: (elements: readonly import("../element/types").
|
|
9
|
-
|
|
8
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
9
|
+
storeAction: import("../store").StoreActionType;
|
|
10
10
|
appState: {
|
|
11
11
|
errorMessage: any;
|
|
12
12
|
contextMenu: {
|
|
@@ -193,7 +193,7 @@ export declare const actionCopy: {
|
|
|
193
193
|
followedBy: Set<import("../types").SocketId>;
|
|
194
194
|
};
|
|
195
195
|
} | {
|
|
196
|
-
|
|
196
|
+
storeAction: import("../store").StoreActionType;
|
|
197
197
|
appState?: undefined;
|
|
198
198
|
}>;
|
|
199
199
|
keyTest: undefined;
|
|
@@ -206,8 +206,8 @@ export declare const actionPaste: {
|
|
|
206
206
|
trackEvent: {
|
|
207
207
|
category: "element";
|
|
208
208
|
};
|
|
209
|
-
perform: (elements: readonly import("../element/types").
|
|
210
|
-
|
|
209
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
210
|
+
storeAction: import("../store").StoreActionType;
|
|
211
211
|
appState: {
|
|
212
212
|
errorMessage: string;
|
|
213
213
|
contextMenu: {
|
|
@@ -394,7 +394,7 @@ export declare const actionPaste: {
|
|
|
394
394
|
followedBy: Set<import("../types").SocketId>;
|
|
395
395
|
};
|
|
396
396
|
} | {
|
|
397
|
-
|
|
397
|
+
storeAction: import("../store").StoreActionType;
|
|
398
398
|
appState?: undefined;
|
|
399
399
|
}>;
|
|
400
400
|
keyTest: undefined;
|
|
@@ -408,8 +408,8 @@ export declare const actionCut: {
|
|
|
408
408
|
trackEvent: {
|
|
409
409
|
category: "element";
|
|
410
410
|
};
|
|
411
|
-
perform: (elements: readonly import("../element/types").
|
|
412
|
-
elements: import("../element/types").
|
|
411
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => false | {
|
|
412
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
413
413
|
appState: {
|
|
414
414
|
editingLinearElement: null;
|
|
415
415
|
contextMenu: {
|
|
@@ -595,9 +595,9 @@ export declare const actionCut: {
|
|
|
595
595
|
userToFollow: import("../types").UserToFollow | null;
|
|
596
596
|
followedBy: Set<import("../types").SocketId>;
|
|
597
597
|
};
|
|
598
|
-
|
|
598
|
+
storeAction: import("../store").StoreActionType;
|
|
599
599
|
} | {
|
|
600
|
-
elements: readonly import("../element/types").
|
|
600
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
601
601
|
appState: {
|
|
602
602
|
editingLinearElement: {
|
|
603
603
|
selectedPointsIndices: number[];
|
|
@@ -811,7 +811,7 @@ export declare const actionCut: {
|
|
|
811
811
|
userToFollow: import("../types").UserToFollow | null;
|
|
812
812
|
followedBy: Set<import("../types").SocketId>;
|
|
813
813
|
};
|
|
814
|
-
|
|
814
|
+
storeAction: import("../store").StoreActionType;
|
|
815
815
|
} | {
|
|
816
816
|
elements: import("../element/types").ExcalidrawElement[];
|
|
817
817
|
appState: {
|
|
@@ -992,11 +992,11 @@ export declare const actionCut: {
|
|
|
992
992
|
userToFollow: import("../types").UserToFollow | null;
|
|
993
993
|
followedBy: Set<import("../types").SocketId>;
|
|
994
994
|
};
|
|
995
|
-
|
|
995
|
+
storeAction: import("../store").StoreActionType;
|
|
996
996
|
};
|
|
997
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
997
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
998
998
|
} & {
|
|
999
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
999
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1000
1000
|
};
|
|
1001
1001
|
export declare const actionCopyAsSvg: {
|
|
1002
1002
|
name: "copyAsSvg";
|
|
@@ -1005,8 +1005,8 @@ export declare const actionCopyAsSvg: {
|
|
|
1005
1005
|
trackEvent: {
|
|
1006
1006
|
category: "element";
|
|
1007
1007
|
};
|
|
1008
|
-
perform: (elements: readonly import("../element/types").
|
|
1009
|
-
|
|
1008
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1009
|
+
storeAction: import("../store").StoreActionType;
|
|
1010
1010
|
appState?: undefined;
|
|
1011
1011
|
} | {
|
|
1012
1012
|
appState: {
|
|
@@ -1194,7 +1194,7 @@ export declare const actionCopyAsSvg: {
|
|
|
1194
1194
|
userToFollow: import("../types").UserToFollow | null;
|
|
1195
1195
|
followedBy: Set<import("../types").SocketId>;
|
|
1196
1196
|
};
|
|
1197
|
-
|
|
1197
|
+
storeAction: import("../store").StoreActionType;
|
|
1198
1198
|
}>;
|
|
1199
1199
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1200
1200
|
keywords: string[];
|
|
@@ -1208,8 +1208,8 @@ export declare const actionCopyAsPng: {
|
|
|
1208
1208
|
trackEvent: {
|
|
1209
1209
|
category: "element";
|
|
1210
1210
|
};
|
|
1211
|
-
perform: (elements: readonly import("../element/types").
|
|
1212
|
-
|
|
1211
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1212
|
+
storeAction: import("../store").StoreActionType;
|
|
1213
1213
|
appState?: undefined;
|
|
1214
1214
|
} | {
|
|
1215
1215
|
appState: {
|
|
@@ -1397,13 +1397,13 @@ export declare const actionCopyAsPng: {
|
|
|
1397
1397
|
userToFollow: import("../types").UserToFollow | null;
|
|
1398
1398
|
followedBy: Set<import("../types").SocketId>;
|
|
1399
1399
|
};
|
|
1400
|
-
|
|
1400
|
+
storeAction: import("../store").StoreActionType;
|
|
1401
1401
|
}>;
|
|
1402
1402
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1403
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1403
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1404
1404
|
keywords: string[];
|
|
1405
1405
|
} & {
|
|
1406
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1406
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1407
1407
|
};
|
|
1408
1408
|
export declare const copyText: {
|
|
1409
1409
|
name: "copyText";
|
|
@@ -1411,8 +1411,8 @@ export declare const copyText: {
|
|
|
1411
1411
|
trackEvent: {
|
|
1412
1412
|
category: "element";
|
|
1413
1413
|
};
|
|
1414
|
-
perform: (elements: readonly import("../element/types").
|
|
1415
|
-
|
|
1414
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1415
|
+
storeAction: import("../store").StoreActionType;
|
|
1416
1416
|
};
|
|
1417
1417
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1418
1418
|
keywords: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppState } from "../types";
|
|
1
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
2
|
+
import type { AppState } from "../types";
|
|
3
3
|
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
4
4
|
export declare const actionDeleteSelected: {
|
|
5
5
|
name: "deleteSelectedElements";
|
|
@@ -9,8 +9,8 @@ export declare const actionDeleteSelected: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
action: string;
|
|
11
11
|
};
|
|
12
|
-
perform: (elements: readonly
|
|
13
|
-
elements:
|
|
12
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
13
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: {
|
|
15
15
|
editingLinearElement: null;
|
|
16
16
|
contextMenu: {
|
|
@@ -196,9 +196,9 @@ export declare const actionDeleteSelected: {
|
|
|
196
196
|
userToFollow: import("../types").UserToFollow | null;
|
|
197
197
|
followedBy: Set<import("../types").SocketId>;
|
|
198
198
|
};
|
|
199
|
-
|
|
199
|
+
storeAction: import("../store").StoreActionType;
|
|
200
200
|
} | {
|
|
201
|
-
elements: readonly
|
|
201
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
202
202
|
appState: {
|
|
203
203
|
editingLinearElement: {
|
|
204
204
|
selectedPointsIndices: number[];
|
|
@@ -412,7 +412,7 @@ export declare const actionDeleteSelected: {
|
|
|
412
412
|
userToFollow: import("../types").UserToFollow | null;
|
|
413
413
|
followedBy: Set<import("../types").SocketId>;
|
|
414
414
|
};
|
|
415
|
-
|
|
415
|
+
storeAction: import("../store").StoreActionType;
|
|
416
416
|
} | {
|
|
417
417
|
elements: ExcalidrawElement[];
|
|
418
418
|
appState: {
|
|
@@ -593,10 +593,10 @@ export declare const actionDeleteSelected: {
|
|
|
593
593
|
userToFollow: import("../types").UserToFollow | null;
|
|
594
594
|
followedBy: Set<import("../types").SocketId>;
|
|
595
595
|
};
|
|
596
|
-
|
|
596
|
+
storeAction: import("../store").StoreActionType;
|
|
597
597
|
};
|
|
598
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
598
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
599
599
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
600
600
|
} & {
|
|
601
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
601
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
602
602
|
};
|