@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,20 +1,20 @@
|
|
|
1
|
-
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppClassProperties, AppState } from "../types";
|
|
1
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
2
|
+
import type { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const distributeHorizontally: {
|
|
4
4
|
name: "distributeHorizontally";
|
|
5
5
|
label: string;
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly
|
|
9
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
10
10
|
appState: Readonly<AppState>;
|
|
11
11
|
elements: ExcalidrawElement[];
|
|
12
|
-
|
|
12
|
+
storeAction: import("../store").StoreActionType;
|
|
13
13
|
};
|
|
14
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
14
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
17
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const distributeVertically: {
|
|
20
20
|
name: "distributeVertically";
|
|
@@ -22,13 +22,13 @@ export declare const distributeVertically: {
|
|
|
22
22
|
trackEvent: {
|
|
23
23
|
category: "element";
|
|
24
24
|
};
|
|
25
|
-
perform: (elements: readonly
|
|
25
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
26
26
|
appState: Readonly<AppState>;
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
|
-
|
|
28
|
+
storeAction: import("../store").StoreActionType;
|
|
29
29
|
};
|
|
30
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
30
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
31
31
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
} & {
|
|
33
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
33
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
34
34
|
};
|
|
@@ -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
|
export declare const actionDuplicateSelection: {
|
|
4
4
|
name: "duplicateSelection";
|
|
5
5
|
label: string;
|
|
@@ -7,16 +7,15 @@ export declare const actionDuplicateSelection: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly
|
|
11
|
-
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
11
|
+
storeAction: import("../store").StoreActionType;
|
|
12
12
|
elements?: readonly ExcalidrawElement[] | null | undefined;
|
|
13
|
-
appState?: import("../utility-types").MarkOptional<AppState, "
|
|
13
|
+
appState?: import("../utility-types").MarkOptional<AppState, "width" | "height" | "offsetTop" | "offsetLeft"> | null | undefined;
|
|
14
14
|
files?: import("../types").BinaryFiles | null | undefined;
|
|
15
|
-
syncHistory?: boolean | undefined;
|
|
16
15
|
replaceFiles?: boolean | undefined;
|
|
17
16
|
};
|
|
18
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
17
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
19
18
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
19
|
} & {
|
|
21
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
20
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
22
21
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExcalidrawElement } from "../element/types";
|
|
1
|
+
import type { ExcalidrawElement } from "../element/types";
|
|
2
2
|
export declare const actionToggleElementLock: {
|
|
3
3
|
name: "toggleElementLock";
|
|
4
4
|
label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
|
|
@@ -7,8 +7,8 @@ export declare const actionToggleElementLock: {
|
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
9
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
10
|
-
perform: (elements: readonly
|
|
11
|
-
elements:
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
11
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
12
12
|
appState: {
|
|
13
13
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
14
14
|
contextMenu: {
|
|
@@ -194,11 +194,11 @@ export declare const actionToggleElementLock: {
|
|
|
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>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
200
200
|
} & {
|
|
201
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
201
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
202
202
|
};
|
|
203
203
|
export declare const actionUnlockAllElements: {
|
|
204
204
|
name: "unlockAllElements";
|
|
@@ -209,8 +209,8 @@ export declare const actionUnlockAllElements: {
|
|
|
209
209
|
viewMode: false;
|
|
210
210
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
211
211
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
212
|
-
perform: (elements: readonly
|
|
213
|
-
elements:
|
|
212
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
213
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
214
214
|
appState: {
|
|
215
215
|
selectedElementIds: {
|
|
216
216
|
[k: string]: true;
|
|
@@ -396,7 +396,7 @@ export declare const actionUnlockAllElements: {
|
|
|
396
396
|
userToFollow: import("../types").UserToFollow | null;
|
|
397
397
|
followedBy: Set<import("../types").SocketId>;
|
|
398
398
|
};
|
|
399
|
-
|
|
399
|
+
storeAction: import("../store").StoreActionType;
|
|
400
400
|
};
|
|
401
401
|
label: string;
|
|
402
402
|
} & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Theme } from "../element/types";
|
|
1
|
+
import type { Theme } from "../element/types";
|
|
2
2
|
import "../components/ToolIcon.scss";
|
|
3
3
|
export declare const actionChangeProjectName: {
|
|
4
4
|
name: "changeProjectName";
|
|
5
5
|
label: string;
|
|
6
6
|
trackEvent: false;
|
|
7
|
-
perform: (_elements: readonly import("../element/types").
|
|
7
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
8
8
|
appState: {
|
|
9
9
|
name: any;
|
|
10
10
|
contextMenu: {
|
|
@@ -190,7 +190,7 @@ export declare const actionChangeProjectName: {
|
|
|
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
195
|
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
196
196
|
} & {
|
|
@@ -203,7 +203,7 @@ export declare const actionChangeExportScale: {
|
|
|
203
203
|
category: "export";
|
|
204
204
|
action: string;
|
|
205
205
|
};
|
|
206
|
-
perform: (_elements: readonly import("../element/types").
|
|
206
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
207
207
|
appState: {
|
|
208
208
|
exportScale: any;
|
|
209
209
|
contextMenu: {
|
|
@@ -389,7 +389,7 @@ export declare const actionChangeExportScale: {
|
|
|
389
389
|
userToFollow: import("../types").UserToFollow | null;
|
|
390
390
|
followedBy: Set<import("../types").SocketId>;
|
|
391
391
|
};
|
|
392
|
-
|
|
392
|
+
storeAction: import("../store").StoreActionType;
|
|
393
393
|
};
|
|
394
394
|
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
395
395
|
} & {
|
|
@@ -402,7 +402,7 @@ export declare const actionChangeExportBackground: {
|
|
|
402
402
|
category: "export";
|
|
403
403
|
action: string;
|
|
404
404
|
};
|
|
405
|
-
perform: (_elements: readonly import("../element/types").
|
|
405
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
406
406
|
appState: {
|
|
407
407
|
exportBackground: any;
|
|
408
408
|
contextMenu: {
|
|
@@ -588,7 +588,7 @@ export declare const actionChangeExportBackground: {
|
|
|
588
588
|
userToFollow: import("../types").UserToFollow | null;
|
|
589
589
|
followedBy: Set<import("../types").SocketId>;
|
|
590
590
|
};
|
|
591
|
-
|
|
591
|
+
storeAction: import("../store").StoreActionType;
|
|
592
592
|
};
|
|
593
593
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
594
594
|
} & {
|
|
@@ -601,7 +601,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
601
601
|
category: "export";
|
|
602
602
|
action: string;
|
|
603
603
|
};
|
|
604
|
-
perform: (_elements: readonly import("../element/types").
|
|
604
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
605
605
|
appState: {
|
|
606
606
|
exportEmbedScene: any;
|
|
607
607
|
contextMenu: {
|
|
@@ -787,7 +787,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
787
787
|
userToFollow: import("../types").UserToFollow | null;
|
|
788
788
|
followedBy: Set<import("../types").SocketId>;
|
|
789
789
|
};
|
|
790
|
-
|
|
790
|
+
storeAction: import("../store").StoreActionType;
|
|
791
791
|
};
|
|
792
792
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
793
793
|
} & {
|
|
@@ -801,8 +801,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
801
801
|
category: "export";
|
|
802
802
|
};
|
|
803
803
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
804
|
-
perform: (elements: readonly import("../element/types").
|
|
805
|
-
|
|
804
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
805
|
+
storeAction: import("../store").StoreActionType;
|
|
806
806
|
appState: {
|
|
807
807
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
808
808
|
toast: {
|
|
@@ -987,12 +987,12 @@ export declare const actionSaveToActiveFile: {
|
|
|
987
987
|
followedBy: Set<import("../types").SocketId>;
|
|
988
988
|
};
|
|
989
989
|
} | {
|
|
990
|
-
|
|
990
|
+
storeAction: import("../store").StoreActionType;
|
|
991
991
|
appState?: undefined;
|
|
992
992
|
}>;
|
|
993
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
993
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
994
994
|
} & {
|
|
995
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
995
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
996
996
|
};
|
|
997
997
|
export declare const actionSaveFileToDisk: {
|
|
998
998
|
name: "saveFileToDisk";
|
|
@@ -1002,8 +1002,8 @@ export declare const actionSaveFileToDisk: {
|
|
|
1002
1002
|
trackEvent: {
|
|
1003
1003
|
category: "export";
|
|
1004
1004
|
};
|
|
1005
|
-
perform: (elements: readonly import("../element/types").
|
|
1006
|
-
|
|
1005
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1006
|
+
storeAction: import("../store").StoreActionType;
|
|
1007
1007
|
appState: {
|
|
1008
1008
|
openDialog: null;
|
|
1009
1009
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -1177,13 +1177,13 @@ export declare const actionSaveFileToDisk: {
|
|
|
1177
1177
|
followedBy: Set<import("../types").SocketId>;
|
|
1178
1178
|
};
|
|
1179
1179
|
} | {
|
|
1180
|
-
|
|
1180
|
+
storeAction: import("../store").StoreActionType;
|
|
1181
1181
|
appState?: undefined;
|
|
1182
1182
|
}>;
|
|
1183
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1183
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1184
1184
|
PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1185
1185
|
} & {
|
|
1186
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1186
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1187
1187
|
};
|
|
1188
1188
|
export declare const actionLoadScene: {
|
|
1189
1189
|
name: "loadScene";
|
|
@@ -1192,9 +1192,14 @@ export declare const actionLoadScene: {
|
|
|
1192
1192
|
category: "export";
|
|
1193
1193
|
};
|
|
1194
1194
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1195
|
-
perform: (elements: readonly import("../element/types").
|
|
1196
|
-
elements: import("../element/types").
|
|
1195
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
1196
|
+
elements: import("../element/types").OrderedExcalidrawElement[];
|
|
1197
1197
|
appState: {
|
|
1198
|
+
viewModeEnabled: boolean;
|
|
1199
|
+
zenModeEnabled: boolean;
|
|
1200
|
+
objectsSnapModeEnabled: boolean;
|
|
1201
|
+
theme: Theme;
|
|
1202
|
+
name: string | null;
|
|
1198
1203
|
contextMenu: {
|
|
1199
1204
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1200
1205
|
top: number;
|
|
@@ -1253,7 +1258,6 @@ export declare const actionLoadScene: {
|
|
|
1253
1258
|
scrollY: number;
|
|
1254
1259
|
cursorButton: "up" | "down";
|
|
1255
1260
|
scrolledOutside: boolean;
|
|
1256
|
-
name: string | null;
|
|
1257
1261
|
isResizing: boolean;
|
|
1258
1262
|
isRotating: boolean;
|
|
1259
1263
|
zoom: Readonly<{
|
|
@@ -1292,11 +1296,8 @@ export declare const actionLoadScene: {
|
|
|
1292
1296
|
closable?: boolean | undefined;
|
|
1293
1297
|
duration?: number | undefined;
|
|
1294
1298
|
} | null;
|
|
1295
|
-
zenModeEnabled: boolean;
|
|
1296
|
-
theme: Theme;
|
|
1297
1299
|
gridSize: number | null;
|
|
1298
1300
|
previousGridSize: number | null;
|
|
1299
|
-
viewModeEnabled: boolean;
|
|
1300
1301
|
selectedGroupIds: {
|
|
1301
1302
|
[groupId: string]: boolean;
|
|
1302
1303
|
};
|
|
@@ -1371,14 +1372,13 @@ export declare const actionLoadScene: {
|
|
|
1371
1372
|
x: number;
|
|
1372
1373
|
y: number;
|
|
1373
1374
|
} | null;
|
|
1374
|
-
objectsSnapModeEnabled: boolean;
|
|
1375
1375
|
userToFollow: import("../types").UserToFollow | null;
|
|
1376
1376
|
followedBy: Set<import("../types").SocketId>;
|
|
1377
1377
|
};
|
|
1378
1378
|
files: import("../types").BinaryFiles;
|
|
1379
|
-
|
|
1379
|
+
storeAction: import("../store").StoreActionType;
|
|
1380
1380
|
} | {
|
|
1381
|
-
elements: readonly import("../element/types").
|
|
1381
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
1382
1382
|
appState: {
|
|
1383
1383
|
errorMessage: any;
|
|
1384
1384
|
contextMenu: {
|
|
@@ -1565,11 +1565,11 @@ export declare const actionLoadScene: {
|
|
|
1565
1565
|
followedBy: Set<import("../types").SocketId>;
|
|
1566
1566
|
};
|
|
1567
1567
|
files: import("../types").BinaryFiles;
|
|
1568
|
-
|
|
1568
|
+
storeAction: import("../store").StoreActionType;
|
|
1569
1569
|
}>;
|
|
1570
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
1570
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1571
1571
|
} & {
|
|
1572
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
1572
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1573
1573
|
};
|
|
1574
1574
|
export declare const actionExportWithDarkMode: {
|
|
1575
1575
|
name: "exportWithDarkMode";
|
|
@@ -1578,7 +1578,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1578
1578
|
category: "export";
|
|
1579
1579
|
action: string;
|
|
1580
1580
|
};
|
|
1581
|
-
perform: (_elements: readonly import("../element/types").
|
|
1581
|
+
perform: (_elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
|
|
1582
1582
|
appState: {
|
|
1583
1583
|
exportWithDarkMode: any;
|
|
1584
1584
|
contextMenu: {
|
|
@@ -1764,7 +1764,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1764
1764
|
userToFollow: import("../types").UserToFollow | null;
|
|
1765
1765
|
followedBy: Set<import("../types").SocketId>;
|
|
1766
1766
|
};
|
|
1767
|
-
|
|
1767
|
+
storeAction: import("../store").StoreActionType;
|
|
1768
1768
|
};
|
|
1769
1769
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
1770
1770
|
} & {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
2
|
-
import { AppState } from "../types";
|
|
2
|
+
import type { AppState } from "../types";
|
|
3
3
|
export declare const actionFinalize: {
|
|
4
4
|
name: "finalize";
|
|
5
5
|
label: string;
|
|
6
6
|
trackEvent: false;
|
|
7
|
-
perform: (elements: readonly import("../element/types").
|
|
8
|
-
elements: import("../element/types").
|
|
7
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
8
|
+
elements: import("../element/types").OrderedExcalidrawElement[] | undefined;
|
|
9
9
|
appState: {
|
|
10
10
|
cursorButton: "up";
|
|
11
11
|
editingLinearElement: null;
|
|
12
|
+
selectedLinearElement: null;
|
|
12
13
|
contextMenu: {
|
|
13
14
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
14
15
|
top: number;
|
|
@@ -181,7 +182,6 @@ export declare const actionFinalize: {
|
|
|
181
182
|
nameColor: string;
|
|
182
183
|
};
|
|
183
184
|
invertBindingBehaviour: boolean;
|
|
184
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
185
185
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
186
186
|
originSnapOffset: {
|
|
187
187
|
x: number;
|
|
@@ -191,9 +191,9 @@ export declare const actionFinalize: {
|
|
|
191
191
|
userToFollow: import("../types").UserToFollow | null;
|
|
192
192
|
followedBy: Set<import("../types").SocketId>;
|
|
193
193
|
};
|
|
194
|
-
|
|
194
|
+
storeAction: import("../store").StoreActionType;
|
|
195
195
|
} | {
|
|
196
|
-
elements: readonly import("../element/types").
|
|
196
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
197
197
|
appState: {
|
|
198
198
|
cursorButton: "up";
|
|
199
199
|
activeTool: {
|
|
@@ -376,10 +376,10 @@ export declare const actionFinalize: {
|
|
|
376
376
|
userToFollow: import("../types").UserToFollow | null;
|
|
377
377
|
followedBy: Set<import("../types").SocketId>;
|
|
378
378
|
};
|
|
379
|
-
|
|
379
|
+
storeAction: import("../store").StoreActionType;
|
|
380
380
|
};
|
|
381
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
381
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
382
382
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
383
383
|
} & {
|
|
384
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
384
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean) | undefined;
|
|
385
385
|
};
|
|
@@ -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 { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const actionFlipHorizontal: {
|
|
4
4
|
name: "flipHorizontal";
|
|
5
5
|
label: string;
|
|
@@ -7,14 +7,14 @@ export declare const actionFlipHorizontal: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly
|
|
10
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
11
11
|
elements: ExcalidrawElement[];
|
|
12
12
|
appState: Readonly<AppState>;
|
|
13
|
-
|
|
13
|
+
storeAction: import("../store").StoreActionType;
|
|
14
14
|
};
|
|
15
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
15
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
16
16
|
} & {
|
|
17
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
17
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
18
18
|
};
|
|
19
19
|
export declare const actionFlipVertical: {
|
|
20
20
|
name: "flipVertical";
|
|
@@ -23,12 +23,12 @@ export declare const actionFlipVertical: {
|
|
|
23
23
|
trackEvent: {
|
|
24
24
|
category: "element";
|
|
25
25
|
};
|
|
26
|
-
perform: (elements: readonly
|
|
26
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
appState: Readonly<AppState>;
|
|
29
|
-
|
|
29
|
+
storeAction: import("../store").StoreActionType;
|
|
30
30
|
};
|
|
31
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
31
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
32
32
|
} & {
|
|
33
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
33
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
34
34
|
};
|