@misenkashari/excalidraw-common 1.0.3 → 1.10.0
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/dev/index.js +5 -5
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +2 -2
- package/dist/types/common/src/emitter.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +1 -1
- package/dist/types/common/src/points.d.ts +2 -2
- package/dist/types/common/src/utils.d.ts +2 -2
- package/dist/types/common/src/visualdebug.d.ts +3 -3
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/align.d.ts +1 -1
- package/dist/types/element/src/binding.d.ts +4 -4
- package/dist/types/element/src/bounds.d.ts +3 -3
- package/dist/types/element/src/collision.d.ts +2 -2
- package/dist/types/element/src/comparisons.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +3 -3
- package/dist/types/element/src/distance.d.ts +1 -1
- package/dist/types/element/src/distribute.d.ts +1 -1
- package/dist/types/element/src/dragElements.d.ts +2 -2
- package/dist/types/element/src/duplicate.d.ts +2 -2
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/elementLink.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +1 -1
- package/dist/types/element/src/frame.d.ts +2 -2
- package/dist/types/element/src/groups.d.ts +2 -2
- package/dist/types/element/src/heading.d.ts +2 -2
- package/dist/types/element/src/image.d.ts +2 -2
- package/dist/types/element/src/linearElementEditor.d.ts +4 -4
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +1 -1
- package/dist/types/element/src/renderElement.d.ts +4 -4
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/resizeTest.d.ts +4 -4
- package/dist/types/element/src/selection.d.ts +1 -1
- package/dist/types/element/src/shape.d.ts +5 -5
- package/dist/types/element/src/showSelectedShapeActions.d.ts +1 -1
- package/dist/types/element/src/sizeHelpers.d.ts +1 -1
- package/dist/types/element/src/store.d.ts +4 -4
- package/dist/types/element/src/textElement.d.ts +3 -3
- package/dist/types/element/src/transform.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +4 -4
- package/dist/types/element/src/typeChecks.d.ts +2 -2
- package/dist/types/element/src/types.d.ts +3 -3
- package/dist/types/element/src/utils.d.ts +3 -3
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +82 -82
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +50 -50
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +275 -275
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +63 -63
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +69 -69
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +32 -32
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +49 -49
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionExport.d.ts +116 -116
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +242 -242
- package/dist/types/excalidraw/actions/actionGroup.d.ts +43 -43
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +181 -181
- package/dist/types/excalidraw/actions/actionLink.d.ts +31 -31
- package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -27
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +39 -39
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +23 -23
- package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -31
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +2 -2
- package/dist/types/excalidraw/appState.d.ts +10 -10
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +4 -4
- package/dist/types/excalidraw/components/Actions.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +10 -10
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -3
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/dist/types/excalidraw/components/icons.d.ts +1 -1
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +2 -4
- package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +49 -49
- package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
- package/dist/types/excalidraw/data/index.d.ts +1 -1
- package/dist/types/excalidraw/data/json.d.ts +24 -24
- package/dist/types/excalidraw/data/library.d.ts +2 -2
- package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/restore.d.ts +2 -2
- package/dist/types/excalidraw/data/types.d.ts +2 -2
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -3
- package/dist/types/excalidraw/history.d.ts +4 -4
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +12 -12
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -2
- package/dist/types/excalidraw/renderer/staticScene.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
- package/dist/types/excalidraw/scene/export.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -3
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/types.d.ts +6 -6
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +1 -1
- package/dist/types/utils/src/bbox.d.ts +2 -2
- package/dist/types/utils/src/export.d.ts +3 -3
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/shape.d.ts +4 -4
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import type { AppClassProperties, AppState, UIAppState } from "../types";
|
|
3
3
|
export declare const alignActionsPredicate: (appState: UIAppState, app: AppClassProperties) => boolean;
|
|
4
4
|
export declare const actionAlignTop: {
|
|
@@ -9,7 +9,7 @@ export declare const actionAlignTop: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
12
|
-
perform: (elements: readonly import("@excalidraw
|
|
12
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
elements: ExcalidrawElement[];
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -27,7 +27,7 @@ export declare const actionAlignBottom: {
|
|
|
27
27
|
category: "element";
|
|
28
28
|
};
|
|
29
29
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
30
|
-
perform: (elements: readonly import("@excalidraw
|
|
30
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
31
31
|
appState: Readonly<AppState>;
|
|
32
32
|
elements: ExcalidrawElement[];
|
|
33
33
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -45,7 +45,7 @@ export declare const actionAlignLeft: {
|
|
|
45
45
|
category: "element";
|
|
46
46
|
};
|
|
47
47
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
48
|
-
perform: (elements: readonly import("@excalidraw
|
|
48
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
49
49
|
appState: Readonly<AppState>;
|
|
50
50
|
elements: ExcalidrawElement[];
|
|
51
51
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -63,7 +63,7 @@ export declare const actionAlignRight: {
|
|
|
63
63
|
category: "element";
|
|
64
64
|
};
|
|
65
65
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
66
|
-
perform: (elements: readonly import("@excalidraw
|
|
66
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
67
67
|
appState: Readonly<AppState>;
|
|
68
68
|
elements: ExcalidrawElement[];
|
|
69
69
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -81,7 +81,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
81
81
|
category: "element";
|
|
82
82
|
};
|
|
83
83
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
84
|
-
perform: (elements: readonly import("@excalidraw
|
|
84
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
85
85
|
appState: Readonly<AppState>;
|
|
86
86
|
elements: ExcalidrawElement[];
|
|
87
87
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -98,7 +98,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
98
98
|
category: "element";
|
|
99
99
|
};
|
|
100
100
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
101
|
-
perform: (elements: readonly import("@excalidraw
|
|
101
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
102
102
|
appState: Readonly<AppState>;
|
|
103
103
|
elements: ExcalidrawElement[];
|
|
104
104
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw
|
|
2
|
-
import type { Mutable } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Mutable } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
3
|
import type { AppState } from "../types";
|
|
4
4
|
export declare const actionUnbindText: {
|
|
5
5
|
name: "unbindText";
|
|
@@ -8,8 +8,8 @@ export declare const actionUnbindText: {
|
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
10
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
-
perform: (elements: readonly import("@excalidraw
|
|
12
|
-
elements: readonly import("@excalidraw
|
|
11
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
12
|
+
elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
captureUpdate: "IMMEDIATELY";
|
|
15
15
|
};
|
|
@@ -23,7 +23,7 @@ export declare const actionBindText: {
|
|
|
23
23
|
category: "element";
|
|
24
24
|
};
|
|
25
25
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
26
|
-
perform: (elements: readonly import("@excalidraw
|
|
26
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
appState: {
|
|
29
29
|
selectedElementIds: {
|
|
@@ -38,17 +38,17 @@ export declare const actionBindText: {
|
|
|
38
38
|
isLoading: boolean;
|
|
39
39
|
errorMessage: React.ReactNode;
|
|
40
40
|
activeEmbeddable: {
|
|
41
|
-
element: import("@excalidraw
|
|
41
|
+
element: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement;
|
|
42
42
|
state: "hover" | "active";
|
|
43
43
|
} | null;
|
|
44
|
-
newElement: import("@excalidraw
|
|
45
|
-
resizingElement: import("@excalidraw
|
|
46
|
-
multiElement: import("@excalidraw
|
|
47
|
-
selectionElement: import("@excalidraw
|
|
44
|
+
newElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawNonSelectionElement> | null;
|
|
45
|
+
resizingElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
+
multiElement: import("@misenkashari/excalidraw-element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
47
|
+
selectionElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
48
48
|
isBindingEnabled: boolean;
|
|
49
|
-
startBoundElement: import("@excalidraw
|
|
50
|
-
suggestedBinding: import("@excalidraw
|
|
51
|
-
frameToHighlight: import("@excalidraw
|
|
49
|
+
startBoundElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
50
|
+
suggestedBinding: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
51
|
+
frameToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
52
|
frameRendering: {
|
|
53
53
|
enabled: boolean;
|
|
54
54
|
name: boolean;
|
|
@@ -56,8 +56,8 @@ export declare const actionBindText: {
|
|
|
56
56
|
clip: boolean;
|
|
57
57
|
};
|
|
58
58
|
editingFrame: string | null;
|
|
59
|
-
elementsToHighlight: import("@excalidraw
|
|
60
|
-
editingTextElement: import("@excalidraw
|
|
59
|
+
elementsToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
|
+
editingTextElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
61
61
|
activeTool: {
|
|
62
62
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
63
63
|
locked: boolean;
|
|
@@ -80,13 +80,13 @@ export declare const actionBindText: {
|
|
|
80
80
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
81
81
|
currentItemRoughness: number;
|
|
82
82
|
currentItemOpacity: number;
|
|
83
|
-
currentItemFontFamily: import("@excalidraw
|
|
83
|
+
currentItemFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues;
|
|
84
84
|
currentItemFontSize: number;
|
|
85
|
-
currentItemTextAlign: import("@excalidraw
|
|
86
|
-
currentItemStartArrowhead: import("@excalidraw
|
|
87
|
-
currentItemEndArrowhead: import("@excalidraw
|
|
88
|
-
currentHoveredFontFamily: import("@excalidraw
|
|
89
|
-
currentItemRoundness: import("@excalidraw
|
|
85
|
+
currentItemTextAlign: import("@misenkashari/excalidraw-element/types").TextAlign;
|
|
86
|
+
currentItemStartArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
87
|
+
currentItemEndArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
88
|
+
currentHoveredFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues | null;
|
|
89
|
+
currentItemRoundness: import("@misenkashari/excalidraw-element/types").StrokeRoundness;
|
|
90
90
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
91
91
|
viewBackgroundColor: string;
|
|
92
92
|
scrollX: number;
|
|
@@ -117,7 +117,7 @@ export declare const actionBindText: {
|
|
|
117
117
|
sourceElementId: ExcalidrawElement["id"];
|
|
118
118
|
};
|
|
119
119
|
defaultSidebarDockedPreference: boolean;
|
|
120
|
-
lastPointerDownWith: import("@excalidraw
|
|
120
|
+
lastPointerDownWith: import("@misenkashari/excalidraw-element/types").PointerType;
|
|
121
121
|
hoveredElementIds: Readonly<{
|
|
122
122
|
[id: string]: true;
|
|
123
123
|
}>;
|
|
@@ -132,7 +132,7 @@ export declare const actionBindText: {
|
|
|
132
132
|
duration?: number;
|
|
133
133
|
} | null;
|
|
134
134
|
zenModeEnabled: boolean;
|
|
135
|
-
theme: import("@excalidraw
|
|
135
|
+
theme: import("@misenkashari/excalidraw-element/types").Theme;
|
|
136
136
|
gridSize: number;
|
|
137
137
|
gridStep: number;
|
|
138
138
|
gridModeEnabled: boolean;
|
|
@@ -140,7 +140,7 @@ export declare const actionBindText: {
|
|
|
140
140
|
selectedGroupIds: {
|
|
141
141
|
[groupId: string]: boolean;
|
|
142
142
|
};
|
|
143
|
-
editingGroupId: import("@excalidraw
|
|
143
|
+
editingGroupId: import("@misenkashari/excalidraw-element/types").GroupId | null;
|
|
144
144
|
width: number;
|
|
145
145
|
height: number;
|
|
146
146
|
offsetTop: number;
|
|
@@ -151,7 +151,7 @@ export declare const actionBindText: {
|
|
|
151
151
|
open: boolean;
|
|
152
152
|
panels: number;
|
|
153
153
|
};
|
|
154
|
-
currentChartType: import("@excalidraw
|
|
154
|
+
currentChartType: import("@misenkashari/excalidraw-element/types").ChartType;
|
|
155
155
|
pasteDialog: {
|
|
156
156
|
shown: false;
|
|
157
157
|
data: null;
|
|
@@ -160,7 +160,7 @@ export declare const actionBindText: {
|
|
|
160
160
|
data: import("../charts").Spreadsheet;
|
|
161
161
|
};
|
|
162
162
|
showHyperlinkPopup: false | "info" | "editor";
|
|
163
|
-
selectedLinearElement: import("@excalidraw
|
|
163
|
+
selectedLinearElement: import("@misenkashari/excalidraw-element").LinearElementEditor | null;
|
|
164
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
165
165
|
originSnapOffset: {
|
|
166
166
|
x: number;
|
|
@@ -179,7 +179,7 @@ export declare const actionBindText: {
|
|
|
179
179
|
lockedMultiSelections: {
|
|
180
180
|
[groupId: string]: true;
|
|
181
181
|
};
|
|
182
|
-
bindMode: import("@excalidraw
|
|
182
|
+
bindMode: import("@misenkashari/excalidraw-element/types").BindMode;
|
|
183
183
|
};
|
|
184
184
|
captureUpdate: "IMMEDIATELY";
|
|
185
185
|
};
|
|
@@ -193,7 +193,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
193
193
|
category: "element";
|
|
194
194
|
};
|
|
195
195
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
196
|
-
perform: (elements: readonly import("@excalidraw
|
|
196
|
+
perform: (elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
197
197
|
elements: readonly ExcalidrawElement[];
|
|
198
198
|
appState: {
|
|
199
199
|
selectedElementIds: Mutable<Readonly<{
|
|
@@ -208,17 +208,17 @@ export declare const actionWrapTextInContainer: {
|
|
|
208
208
|
isLoading: boolean;
|
|
209
209
|
errorMessage: React.ReactNode;
|
|
210
210
|
activeEmbeddable: {
|
|
211
|
-
element: import("@excalidraw
|
|
211
|
+
element: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement;
|
|
212
212
|
state: "hover" | "active";
|
|
213
213
|
} | null;
|
|
214
|
-
newElement: import("@excalidraw
|
|
215
|
-
resizingElement: import("@excalidraw
|
|
216
|
-
multiElement: import("@excalidraw
|
|
217
|
-
selectionElement: import("@excalidraw
|
|
214
|
+
newElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawNonSelectionElement> | null;
|
|
215
|
+
resizingElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
216
|
+
multiElement: import("@misenkashari/excalidraw-element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
217
|
+
selectionElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
218
218
|
isBindingEnabled: boolean;
|
|
219
|
-
startBoundElement: import("@excalidraw
|
|
220
|
-
suggestedBinding: import("@excalidraw
|
|
221
|
-
frameToHighlight: import("@excalidraw
|
|
219
|
+
startBoundElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
220
|
+
suggestedBinding: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
221
|
+
frameToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawFrameLikeElement> | null;
|
|
222
222
|
frameRendering: {
|
|
223
223
|
enabled: boolean;
|
|
224
224
|
name: boolean;
|
|
@@ -226,8 +226,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
226
226
|
clip: boolean;
|
|
227
227
|
};
|
|
228
228
|
editingFrame: string | null;
|
|
229
|
-
elementsToHighlight: import("@excalidraw
|
|
230
|
-
editingTextElement: import("@excalidraw
|
|
229
|
+
elementsToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
230
|
+
editingTextElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
231
231
|
activeTool: {
|
|
232
232
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
233
233
|
locked: boolean;
|
|
@@ -250,13 +250,13 @@ export declare const actionWrapTextInContainer: {
|
|
|
250
250
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
251
251
|
currentItemRoughness: number;
|
|
252
252
|
currentItemOpacity: number;
|
|
253
|
-
currentItemFontFamily: import("@excalidraw
|
|
253
|
+
currentItemFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues;
|
|
254
254
|
currentItemFontSize: number;
|
|
255
|
-
currentItemTextAlign: import("@excalidraw
|
|
256
|
-
currentItemStartArrowhead: import("@excalidraw
|
|
257
|
-
currentItemEndArrowhead: import("@excalidraw
|
|
258
|
-
currentHoveredFontFamily: import("@excalidraw
|
|
259
|
-
currentItemRoundness: import("@excalidraw
|
|
255
|
+
currentItemTextAlign: import("@misenkashari/excalidraw-element/types").TextAlign;
|
|
256
|
+
currentItemStartArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
257
|
+
currentItemEndArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
258
|
+
currentHoveredFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues | null;
|
|
259
|
+
currentItemRoundness: import("@misenkashari/excalidraw-element/types").StrokeRoundness;
|
|
260
260
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
261
261
|
viewBackgroundColor: string;
|
|
262
262
|
scrollX: number;
|
|
@@ -287,7 +287,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
287
287
|
sourceElementId: ExcalidrawElement["id"];
|
|
288
288
|
};
|
|
289
289
|
defaultSidebarDockedPreference: boolean;
|
|
290
|
-
lastPointerDownWith: import("@excalidraw
|
|
290
|
+
lastPointerDownWith: import("@misenkashari/excalidraw-element/types").PointerType;
|
|
291
291
|
hoveredElementIds: Readonly<{
|
|
292
292
|
[id: string]: true;
|
|
293
293
|
}>;
|
|
@@ -302,7 +302,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
302
302
|
duration?: number;
|
|
303
303
|
} | null;
|
|
304
304
|
zenModeEnabled: boolean;
|
|
305
|
-
theme: import("@excalidraw
|
|
305
|
+
theme: import("@misenkashari/excalidraw-element/types").Theme;
|
|
306
306
|
gridSize: number;
|
|
307
307
|
gridStep: number;
|
|
308
308
|
gridModeEnabled: boolean;
|
|
@@ -310,7 +310,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
310
310
|
selectedGroupIds: {
|
|
311
311
|
[groupId: string]: boolean;
|
|
312
312
|
};
|
|
313
|
-
editingGroupId: import("@excalidraw
|
|
313
|
+
editingGroupId: import("@misenkashari/excalidraw-element/types").GroupId | null;
|
|
314
314
|
width: number;
|
|
315
315
|
height: number;
|
|
316
316
|
offsetTop: number;
|
|
@@ -321,7 +321,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
321
321
|
open: boolean;
|
|
322
322
|
panels: number;
|
|
323
323
|
};
|
|
324
|
-
currentChartType: import("@excalidraw
|
|
324
|
+
currentChartType: import("@misenkashari/excalidraw-element/types").ChartType;
|
|
325
325
|
pasteDialog: {
|
|
326
326
|
shown: false;
|
|
327
327
|
data: null;
|
|
@@ -330,7 +330,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
330
330
|
data: import("../charts").Spreadsheet;
|
|
331
331
|
};
|
|
332
332
|
showHyperlinkPopup: false | "info" | "editor";
|
|
333
|
-
selectedLinearElement: import("@excalidraw
|
|
333
|
+
selectedLinearElement: import("@misenkashari/excalidraw-element").LinearElementEditor | null;
|
|
334
334
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
335
335
|
originSnapOffset: {
|
|
336
336
|
x: number;
|
|
@@ -349,7 +349,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
349
349
|
lockedMultiSelections: {
|
|
350
350
|
[groupId: string]: true;
|
|
351
351
|
};
|
|
352
|
-
bindMode: import("@excalidraw
|
|
352
|
+
bindMode: import("@misenkashari/excalidraw-element/types").BindMode;
|
|
353
353
|
};
|
|
354
354
|
captureUpdate: "IMMEDIATELY";
|
|
355
355
|
};
|