@misenkashari/excalidraw-common 1.0.3 → 1.0.6
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 +1 -1
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +1 -1
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +1 -1
- 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/binding.d.ts +3 -3
- package/dist/types/element/src/bounds.d.ts +2 -2
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +2 -2
- package/dist/types/element/src/distance.d.ts +1 -1
- package/dist/types/element/src/dragElements.d.ts +1 -1
- package/dist/types/element/src/duplicate.d.ts +1 -1
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +1 -1
- package/dist/types/element/src/frame.d.ts +1 -1
- package/dist/types/element/src/groups.d.ts +1 -1
- package/dist/types/element/src/heading.d.ts +2 -2
- package/dist/types/element/src/image.d.ts +1 -1
- package/dist/types/element/src/linearElementEditor.d.ts +3 -3
- 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 +2 -2
- package/dist/types/element/src/resizeElements.d.ts +1 -1
- package/dist/types/element/src/resizeTest.d.ts +3 -3
- package/dist/types/element/src/shape.d.ts +3 -3
- package/dist/types/element/src/store.d.ts +2 -2
- package/dist/types/element/src/textElement.d.ts +2 -2
- package/dist/types/element/src/transform.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +3 -3
- package/dist/types/element/src/typeChecks.d.ts +1 -1
- package/dist/types/element/src/types.d.ts +3 -3
- package/dist/types/element/src/utils.d.ts +2 -2
- package/dist/types/element/src/zindex.d.ts +1 -1
- 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 +9 -9
- 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 +2 -2
- 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 +2 -2
- 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,42 +1,42 @@
|
|
|
1
|
-
import type { ExcalidrawLinearElement } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawLinearElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
export declare const actionToggleLinearEditor: {
|
|
3
3
|
name: "toggleLinearEditor";
|
|
4
4
|
category: string;
|
|
5
|
-
label: (elements: readonly import("@excalidraw
|
|
5
|
+
label: (elements: readonly import("@misenkashari/excalidraw-element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
6
6
|
keywords: string[];
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
predicate: (elements: readonly import("@excalidraw
|
|
11
|
-
perform(elements: readonly import("@excalidraw
|
|
10
|
+
predicate: (elements: readonly import("@misenkashari/excalidraw-element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
+
perform(elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
|
|
12
12
|
appState: {
|
|
13
13
|
selectedLinearElement: {
|
|
14
14
|
isEditing: boolean;
|
|
15
|
-
elementId: import("@excalidraw
|
|
15
|
+
elementId: import("@misenkashari/excalidraw-element/types").ExcalidrawElement["id"] & {
|
|
16
16
|
_brand: "excalidrawLinearElementId";
|
|
17
17
|
};
|
|
18
18
|
selectedPointsIndices: readonly number[] | null;
|
|
19
19
|
initialState: Readonly<{
|
|
20
20
|
prevSelectedPointsIndices: readonly number[] | null;
|
|
21
21
|
lastClickedPoint: number;
|
|
22
|
-
origin: Readonly<import("@excalidraw
|
|
22
|
+
origin: Readonly<import("@misenkashari/excalidraw-math").GlobalPoint> | null;
|
|
23
23
|
segmentMidpoint: {
|
|
24
|
-
value: import("@excalidraw
|
|
24
|
+
value: import("@misenkashari/excalidraw-math").GlobalPoint | null;
|
|
25
25
|
index: number | null;
|
|
26
26
|
added: boolean;
|
|
27
27
|
};
|
|
28
28
|
arrowStartIsInside: boolean;
|
|
29
|
-
altFocusPoint: Readonly<import("@excalidraw
|
|
29
|
+
altFocusPoint: Readonly<import("@misenkashari/excalidraw-math").GlobalPoint> | null;
|
|
30
30
|
}>;
|
|
31
31
|
isDragging: boolean;
|
|
32
|
-
lastUncommittedPoint: import("@excalidraw
|
|
33
|
-
lastCommittedPoint: import("@excalidraw
|
|
32
|
+
lastUncommittedPoint: import("@misenkashari/excalidraw-math").LocalPoint | null;
|
|
33
|
+
lastCommittedPoint: import("@misenkashari/excalidraw-math").LocalPoint | null;
|
|
34
34
|
pointerOffset: Readonly<{
|
|
35
35
|
x: number;
|
|
36
36
|
y: number;
|
|
37
37
|
}>;
|
|
38
38
|
hoverPointIndex: number;
|
|
39
|
-
segmentMidPointHoveredCoords: import("@excalidraw
|
|
39
|
+
segmentMidPointHoveredCoords: import("@misenkashari/excalidraw-math").GlobalPoint | null;
|
|
40
40
|
elbowed: boolean;
|
|
41
41
|
customLineAngle: number | null;
|
|
42
42
|
pointerDownState: never;
|
|
@@ -50,17 +50,17 @@ export declare const actionToggleLinearEditor: {
|
|
|
50
50
|
isLoading: boolean;
|
|
51
51
|
errorMessage: React.ReactNode;
|
|
52
52
|
activeEmbeddable: {
|
|
53
|
-
element: import("@excalidraw
|
|
53
|
+
element: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement;
|
|
54
54
|
state: "hover" | "active";
|
|
55
55
|
} | null;
|
|
56
|
-
newElement: import("@excalidraw
|
|
57
|
-
resizingElement: import("@excalidraw
|
|
58
|
-
multiElement: import("@excalidraw
|
|
59
|
-
selectionElement: import("@excalidraw
|
|
56
|
+
newElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawNonSelectionElement> | null;
|
|
57
|
+
resizingElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
58
|
+
multiElement: import("@misenkashari/excalidraw-element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
59
|
+
selectionElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
60
60
|
isBindingEnabled: boolean;
|
|
61
|
-
startBoundElement: import("@excalidraw
|
|
62
|
-
suggestedBinding: import("@excalidraw
|
|
63
|
-
frameToHighlight: import("@excalidraw
|
|
61
|
+
startBoundElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
62
|
+
suggestedBinding: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
63
|
+
frameToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawFrameLikeElement> | null;
|
|
64
64
|
frameRendering: {
|
|
65
65
|
enabled: boolean;
|
|
66
66
|
name: boolean;
|
|
@@ -68,8 +68,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
68
68
|
clip: boolean;
|
|
69
69
|
};
|
|
70
70
|
editingFrame: string | null;
|
|
71
|
-
elementsToHighlight: import("@excalidraw
|
|
72
|
-
editingTextElement: import("@excalidraw
|
|
71
|
+
elementsToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawElement>[] | null;
|
|
72
|
+
editingTextElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
73
73
|
activeTool: {
|
|
74
74
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
75
|
locked: boolean;
|
|
@@ -87,18 +87,18 @@ export declare const actionToggleLinearEditor: {
|
|
|
87
87
|
exportScale: number;
|
|
88
88
|
currentItemStrokeColor: string;
|
|
89
89
|
currentItemBackgroundColor: string;
|
|
90
|
-
currentItemFillStyle: import("@excalidraw
|
|
90
|
+
currentItemFillStyle: import("@misenkashari/excalidraw-element/types").ExcalidrawElement["fillStyle"];
|
|
91
91
|
currentItemStrokeWidth: number;
|
|
92
|
-
currentItemStrokeStyle: import("@excalidraw
|
|
92
|
+
currentItemStrokeStyle: import("@misenkashari/excalidraw-element/types").ExcalidrawElement["strokeStyle"];
|
|
93
93
|
currentItemRoughness: number;
|
|
94
94
|
currentItemOpacity: number;
|
|
95
|
-
currentItemFontFamily: import("@excalidraw
|
|
95
|
+
currentItemFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues;
|
|
96
96
|
currentItemFontSize: number;
|
|
97
|
-
currentItemTextAlign: import("@excalidraw
|
|
98
|
-
currentItemStartArrowhead: import("@excalidraw
|
|
99
|
-
currentItemEndArrowhead: import("@excalidraw
|
|
100
|
-
currentHoveredFontFamily: import("@excalidraw
|
|
101
|
-
currentItemRoundness: import("@excalidraw
|
|
97
|
+
currentItemTextAlign: import("@misenkashari/excalidraw-element/types").TextAlign;
|
|
98
|
+
currentItemStartArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
99
|
+
currentItemEndArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
100
|
+
currentHoveredFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues | null;
|
|
101
|
+
currentItemRoundness: import("@misenkashari/excalidraw-element/types").StrokeRoundness;
|
|
102
102
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
103
103
|
viewBackgroundColor: string;
|
|
104
104
|
scrollX: number;
|
|
@@ -126,10 +126,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
126
126
|
name: "settings";
|
|
127
127
|
} | {
|
|
128
128
|
name: "elementLinkSelector";
|
|
129
|
-
sourceElementId: import("@excalidraw
|
|
129
|
+
sourceElementId: import("@misenkashari/excalidraw-element/types").ExcalidrawElement["id"];
|
|
130
130
|
};
|
|
131
131
|
defaultSidebarDockedPreference: boolean;
|
|
132
|
-
lastPointerDownWith: import("@excalidraw
|
|
132
|
+
lastPointerDownWith: import("@misenkashari/excalidraw-element/types").PointerType;
|
|
133
133
|
selectedElementIds: Readonly<{
|
|
134
134
|
[id: string]: true;
|
|
135
135
|
}>;
|
|
@@ -147,7 +147,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
147
147
|
duration?: number;
|
|
148
148
|
} | null;
|
|
149
149
|
zenModeEnabled: boolean;
|
|
150
|
-
theme: import("@excalidraw
|
|
150
|
+
theme: import("@misenkashari/excalidraw-element/types").Theme;
|
|
151
151
|
gridSize: number;
|
|
152
152
|
gridStep: number;
|
|
153
153
|
gridModeEnabled: boolean;
|
|
@@ -155,7 +155,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
155
155
|
selectedGroupIds: {
|
|
156
156
|
[groupId: string]: boolean;
|
|
157
157
|
};
|
|
158
|
-
editingGroupId: import("@excalidraw
|
|
158
|
+
editingGroupId: import("@misenkashari/excalidraw-element/types").GroupId | null;
|
|
159
159
|
width: number;
|
|
160
160
|
height: number;
|
|
161
161
|
offsetTop: number;
|
|
@@ -166,7 +166,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
166
166
|
open: boolean;
|
|
167
167
|
panels: number;
|
|
168
168
|
};
|
|
169
|
-
currentChartType: import("@excalidraw
|
|
169
|
+
currentChartType: import("@misenkashari/excalidraw-element/types").ChartType;
|
|
170
170
|
pasteDialog: {
|
|
171
171
|
shown: false;
|
|
172
172
|
data: null;
|
|
@@ -184,16 +184,16 @@ export declare const actionToggleLinearEditor: {
|
|
|
184
184
|
userToFollow: import("../types").UserToFollow | null;
|
|
185
185
|
followedBy: Set<import("../types").SocketId>;
|
|
186
186
|
isCropping: boolean;
|
|
187
|
-
croppingElementId: import("@excalidraw
|
|
187
|
+
croppingElementId: import("@misenkashari/excalidraw-element/types").ExcalidrawElement["id"] | null;
|
|
188
188
|
searchMatches: Readonly<{
|
|
189
|
-
focusedId: import("@excalidraw
|
|
189
|
+
focusedId: import("@misenkashari/excalidraw-element/types").ExcalidrawElement["id"] | null;
|
|
190
190
|
matches: readonly import("../types").SearchMatch[];
|
|
191
191
|
}> | null;
|
|
192
192
|
activeLockedId: string | null;
|
|
193
193
|
lockedMultiSelections: {
|
|
194
194
|
[groupId: string]: true;
|
|
195
195
|
};
|
|
196
|
-
bindMode: import("@excalidraw
|
|
196
|
+
bindMode: import("@misenkashari/excalidraw-element/types").BindMode;
|
|
197
197
|
};
|
|
198
198
|
captureUpdate: "IMMEDIATELY";
|
|
199
199
|
};
|
|
@@ -206,77 +206,77 @@ export declare const actionTogglePolygon: {
|
|
|
206
206
|
category: string;
|
|
207
207
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
208
208
|
keywords: string[];
|
|
209
|
-
label: (elements: readonly import("@excalidraw
|
|
209
|
+
label: (elements: readonly import("@misenkashari/excalidraw-element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
210
210
|
trackEvent: {
|
|
211
211
|
category: "element";
|
|
212
212
|
};
|
|
213
|
-
predicate: (elements: readonly import("@excalidraw
|
|
214
|
-
perform(elements: readonly import("@excalidraw
|
|
213
|
+
predicate: (elements: readonly import("@misenkashari/excalidraw-element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
214
|
+
perform(elements: readonly import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
|
|
215
215
|
elements: ((Readonly<{
|
|
216
216
|
id: string;
|
|
217
217
|
x: number;
|
|
218
218
|
y: number;
|
|
219
219
|
strokeColor: string;
|
|
220
220
|
backgroundColor: string;
|
|
221
|
-
fillStyle: import("@excalidraw
|
|
221
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
222
222
|
strokeWidth: number;
|
|
223
|
-
strokeStyle: import("@excalidraw
|
|
223
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
224
224
|
roundness: null | {
|
|
225
|
-
type: import("@excalidraw
|
|
225
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
226
226
|
value?: number;
|
|
227
227
|
};
|
|
228
228
|
roughness: number;
|
|
229
229
|
opacity: number;
|
|
230
230
|
width: number;
|
|
231
231
|
height: number;
|
|
232
|
-
angle: import("@excalidraw
|
|
232
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
233
233
|
seed: number;
|
|
234
234
|
version: number;
|
|
235
235
|
versionNonce: number;
|
|
236
|
-
index: import("@excalidraw
|
|
236
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
237
237
|
isDeleted: boolean;
|
|
238
|
-
groupIds: readonly import("@excalidraw
|
|
238
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
239
239
|
frameId: string | null;
|
|
240
|
-
boundElements: readonly import("@excalidraw
|
|
240
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
241
241
|
updated: number;
|
|
242
242
|
link: string | null;
|
|
243
243
|
locked: boolean;
|
|
244
244
|
customData?: Record<string, any>;
|
|
245
245
|
}> & Readonly<{
|
|
246
246
|
type: "line" | "arrow";
|
|
247
|
-
points: readonly import("@excalidraw
|
|
248
|
-
startBinding: import("@excalidraw
|
|
249
|
-
endBinding: import("@excalidraw
|
|
250
|
-
startArrowhead: import("@excalidraw
|
|
251
|
-
endArrowhead: import("@excalidraw
|
|
247
|
+
points: readonly import("@misenkashari/excalidraw-math").LocalPoint[];
|
|
248
|
+
startBinding: import("@misenkashari/excalidraw-element/types").FixedPointBinding | null;
|
|
249
|
+
endBinding: import("@misenkashari/excalidraw-element/types").FixedPointBinding | null;
|
|
250
|
+
startArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
251
|
+
endArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
252
252
|
}> & {
|
|
253
|
-
index: import("@excalidraw
|
|
253
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
254
254
|
}) | (Readonly<{
|
|
255
255
|
id: string;
|
|
256
256
|
x: number;
|
|
257
257
|
y: number;
|
|
258
258
|
strokeColor: string;
|
|
259
259
|
backgroundColor: string;
|
|
260
|
-
fillStyle: import("@excalidraw
|
|
260
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
261
261
|
strokeWidth: number;
|
|
262
|
-
strokeStyle: import("@excalidraw
|
|
262
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
263
263
|
roundness: null | {
|
|
264
|
-
type: import("@excalidraw
|
|
264
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
265
265
|
value?: number;
|
|
266
266
|
};
|
|
267
267
|
roughness: number;
|
|
268
268
|
opacity: number;
|
|
269
269
|
width: number;
|
|
270
270
|
height: number;
|
|
271
|
-
angle: import("@excalidraw
|
|
271
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
272
272
|
seed: number;
|
|
273
273
|
version: number;
|
|
274
274
|
versionNonce: number;
|
|
275
|
-
index: import("@excalidraw
|
|
275
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
276
276
|
isDeleted: boolean;
|
|
277
|
-
groupIds: readonly import("@excalidraw
|
|
277
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
278
278
|
frameId: string | null;
|
|
279
|
-
boundElements: readonly import("@excalidraw
|
|
279
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
280
280
|
updated: number;
|
|
281
281
|
link: string | null;
|
|
282
282
|
locked: boolean;
|
|
@@ -284,33 +284,33 @@ export declare const actionTogglePolygon: {
|
|
|
284
284
|
}> & {
|
|
285
285
|
type: "selection";
|
|
286
286
|
} & {
|
|
287
|
-
index: import("@excalidraw
|
|
287
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
288
288
|
}) | (Readonly<{
|
|
289
289
|
id: string;
|
|
290
290
|
x: number;
|
|
291
291
|
y: number;
|
|
292
292
|
strokeColor: string;
|
|
293
293
|
backgroundColor: string;
|
|
294
|
-
fillStyle: import("@excalidraw
|
|
294
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
295
295
|
strokeWidth: number;
|
|
296
|
-
strokeStyle: import("@excalidraw
|
|
296
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
297
297
|
roundness: null | {
|
|
298
|
-
type: import("@excalidraw
|
|
298
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
299
299
|
value?: number;
|
|
300
300
|
};
|
|
301
301
|
roughness: number;
|
|
302
302
|
opacity: number;
|
|
303
303
|
width: number;
|
|
304
304
|
height: number;
|
|
305
|
-
angle: import("@excalidraw
|
|
305
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
306
306
|
seed: number;
|
|
307
307
|
version: number;
|
|
308
308
|
versionNonce: number;
|
|
309
|
-
index: import("@excalidraw
|
|
309
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
310
310
|
isDeleted: boolean;
|
|
311
|
-
groupIds: readonly import("@excalidraw
|
|
311
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
312
312
|
frameId: string | null;
|
|
313
|
-
boundElements: readonly import("@excalidraw
|
|
313
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
314
314
|
updated: number;
|
|
315
315
|
link: string | null;
|
|
316
316
|
locked: boolean;
|
|
@@ -318,33 +318,33 @@ export declare const actionTogglePolygon: {
|
|
|
318
318
|
}> & {
|
|
319
319
|
type: "rectangle";
|
|
320
320
|
} & {
|
|
321
|
-
index: import("@excalidraw
|
|
321
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
322
322
|
}) | (Readonly<{
|
|
323
323
|
id: string;
|
|
324
324
|
x: number;
|
|
325
325
|
y: number;
|
|
326
326
|
strokeColor: string;
|
|
327
327
|
backgroundColor: string;
|
|
328
|
-
fillStyle: import("@excalidraw
|
|
328
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
329
329
|
strokeWidth: number;
|
|
330
|
-
strokeStyle: import("@excalidraw
|
|
330
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
331
331
|
roundness: null | {
|
|
332
|
-
type: import("@excalidraw
|
|
332
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
333
333
|
value?: number;
|
|
334
334
|
};
|
|
335
335
|
roughness: number;
|
|
336
336
|
opacity: number;
|
|
337
337
|
width: number;
|
|
338
338
|
height: number;
|
|
339
|
-
angle: import("@excalidraw
|
|
339
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
340
340
|
seed: number;
|
|
341
341
|
version: number;
|
|
342
342
|
versionNonce: number;
|
|
343
|
-
index: import("@excalidraw
|
|
343
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
344
344
|
isDeleted: boolean;
|
|
345
|
-
groupIds: readonly import("@excalidraw
|
|
345
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
346
346
|
frameId: string | null;
|
|
347
|
-
boundElements: readonly import("@excalidraw
|
|
347
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
348
348
|
updated: number;
|
|
349
349
|
link: string | null;
|
|
350
350
|
locked: boolean;
|
|
@@ -352,33 +352,33 @@ export declare const actionTogglePolygon: {
|
|
|
352
352
|
}> & {
|
|
353
353
|
type: "diamond";
|
|
354
354
|
} & {
|
|
355
|
-
index: import("@excalidraw
|
|
355
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
356
356
|
}) | (Readonly<{
|
|
357
357
|
id: string;
|
|
358
358
|
x: number;
|
|
359
359
|
y: number;
|
|
360
360
|
strokeColor: string;
|
|
361
361
|
backgroundColor: string;
|
|
362
|
-
fillStyle: import("@excalidraw
|
|
362
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
363
363
|
strokeWidth: number;
|
|
364
|
-
strokeStyle: import("@excalidraw
|
|
364
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
365
365
|
roundness: null | {
|
|
366
|
-
type: import("@excalidraw
|
|
366
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
367
367
|
value?: number;
|
|
368
368
|
};
|
|
369
369
|
roughness: number;
|
|
370
370
|
opacity: number;
|
|
371
371
|
width: number;
|
|
372
372
|
height: number;
|
|
373
|
-
angle: import("@excalidraw
|
|
373
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
374
374
|
seed: number;
|
|
375
375
|
version: number;
|
|
376
376
|
versionNonce: number;
|
|
377
|
-
index: import("@excalidraw
|
|
377
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
378
378
|
isDeleted: boolean;
|
|
379
|
-
groupIds: readonly import("@excalidraw
|
|
379
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
380
380
|
frameId: string | null;
|
|
381
|
-
boundElements: readonly import("@excalidraw
|
|
381
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
382
382
|
updated: number;
|
|
383
383
|
link: string | null;
|
|
384
384
|
locked: boolean;
|
|
@@ -386,33 +386,33 @@ export declare const actionTogglePolygon: {
|
|
|
386
386
|
}> & {
|
|
387
387
|
type: "ellipse";
|
|
388
388
|
} & {
|
|
389
|
-
index: import("@excalidraw
|
|
389
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
390
390
|
}) | (Readonly<{
|
|
391
391
|
id: string;
|
|
392
392
|
x: number;
|
|
393
393
|
y: number;
|
|
394
394
|
strokeColor: string;
|
|
395
395
|
backgroundColor: string;
|
|
396
|
-
fillStyle: import("@excalidraw
|
|
396
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
397
397
|
strokeWidth: number;
|
|
398
|
-
strokeStyle: import("@excalidraw
|
|
398
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
399
399
|
roundness: null | {
|
|
400
|
-
type: import("@excalidraw
|
|
400
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
401
401
|
value?: number;
|
|
402
402
|
};
|
|
403
403
|
roughness: number;
|
|
404
404
|
opacity: number;
|
|
405
405
|
width: number;
|
|
406
406
|
height: number;
|
|
407
|
-
angle: import("@excalidraw
|
|
407
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
408
408
|
seed: number;
|
|
409
409
|
version: number;
|
|
410
410
|
versionNonce: number;
|
|
411
|
-
index: import("@excalidraw
|
|
411
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
412
412
|
isDeleted: boolean;
|
|
413
|
-
groupIds: readonly import("@excalidraw
|
|
413
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
414
414
|
frameId: string | null;
|
|
415
|
-
boundElements: readonly import("@excalidraw
|
|
415
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
416
416
|
updated: number;
|
|
417
417
|
link: string | null;
|
|
418
418
|
locked: boolean;
|
|
@@ -420,33 +420,33 @@ export declare const actionTogglePolygon: {
|
|
|
420
420
|
}> & {
|
|
421
421
|
type: "triangle";
|
|
422
422
|
} & {
|
|
423
|
-
index: import("@excalidraw
|
|
423
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
424
424
|
}) | (Readonly<{
|
|
425
425
|
id: string;
|
|
426
426
|
x: number;
|
|
427
427
|
y: number;
|
|
428
428
|
strokeColor: string;
|
|
429
429
|
backgroundColor: string;
|
|
430
|
-
fillStyle: import("@excalidraw
|
|
430
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
431
431
|
strokeWidth: number;
|
|
432
|
-
strokeStyle: import("@excalidraw
|
|
432
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
433
433
|
roundness: null | {
|
|
434
|
-
type: import("@excalidraw
|
|
434
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
435
435
|
value?: number;
|
|
436
436
|
};
|
|
437
437
|
roughness: number;
|
|
438
438
|
opacity: number;
|
|
439
439
|
width: number;
|
|
440
440
|
height: number;
|
|
441
|
-
angle: import("@excalidraw
|
|
441
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
442
442
|
seed: number;
|
|
443
443
|
version: number;
|
|
444
444
|
versionNonce: number;
|
|
445
|
-
index: import("@excalidraw
|
|
445
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
446
446
|
isDeleted: boolean;
|
|
447
|
-
groupIds: readonly import("@excalidraw
|
|
447
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
448
448
|
frameId: string | null;
|
|
449
|
-
boundElements: readonly import("@excalidraw
|
|
449
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
450
450
|
updated: number;
|
|
451
451
|
link: string | null;
|
|
452
452
|
locked: boolean;
|
|
@@ -454,33 +454,33 @@ export declare const actionTogglePolygon: {
|
|
|
454
454
|
}> & {
|
|
455
455
|
type: "hexagon";
|
|
456
456
|
} & {
|
|
457
|
-
index: import("@excalidraw
|
|
457
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
458
458
|
}) | (Readonly<{
|
|
459
459
|
id: string;
|
|
460
460
|
x: number;
|
|
461
461
|
y: number;
|
|
462
462
|
strokeColor: string;
|
|
463
463
|
backgroundColor: string;
|
|
464
|
-
fillStyle: import("@excalidraw
|
|
464
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
465
465
|
strokeWidth: number;
|
|
466
|
-
strokeStyle: import("@excalidraw
|
|
466
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
467
467
|
roundness: null | {
|
|
468
|
-
type: import("@excalidraw
|
|
468
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
469
469
|
value?: number;
|
|
470
470
|
};
|
|
471
471
|
roughness: number;
|
|
472
472
|
opacity: number;
|
|
473
473
|
width: number;
|
|
474
474
|
height: number;
|
|
475
|
-
angle: import("@excalidraw
|
|
475
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
476
476
|
seed: number;
|
|
477
477
|
version: number;
|
|
478
478
|
versionNonce: number;
|
|
479
|
-
index: import("@excalidraw
|
|
479
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
480
480
|
isDeleted: boolean;
|
|
481
|
-
groupIds: readonly import("@excalidraw
|
|
481
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
482
482
|
frameId: string | null;
|
|
483
|
-
boundElements: readonly import("@excalidraw
|
|
483
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
484
484
|
updated: number;
|
|
485
485
|
link: string | null;
|
|
486
486
|
locked: boolean;
|
|
@@ -488,33 +488,33 @@ export declare const actionTogglePolygon: {
|
|
|
488
488
|
}> & {
|
|
489
489
|
type: "heart";
|
|
490
490
|
} & {
|
|
491
|
-
index: import("@excalidraw
|
|
491
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
492
492
|
}) | (Readonly<{
|
|
493
493
|
id: string;
|
|
494
494
|
x: number;
|
|
495
495
|
y: number;
|
|
496
496
|
strokeColor: string;
|
|
497
497
|
backgroundColor: string;
|
|
498
|
-
fillStyle: import("@excalidraw
|
|
498
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
499
499
|
strokeWidth: number;
|
|
500
|
-
strokeStyle: import("@excalidraw
|
|
500
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
501
501
|
roundness: null | {
|
|
502
|
-
type: import("@excalidraw
|
|
502
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
503
503
|
value?: number;
|
|
504
504
|
};
|
|
505
505
|
roughness: number;
|
|
506
506
|
opacity: number;
|
|
507
507
|
width: number;
|
|
508
508
|
height: number;
|
|
509
|
-
angle: import("@excalidraw
|
|
509
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
510
510
|
seed: number;
|
|
511
511
|
version: number;
|
|
512
512
|
versionNonce: number;
|
|
513
|
-
index: import("@excalidraw
|
|
513
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
514
514
|
isDeleted: boolean;
|
|
515
|
-
groupIds: readonly import("@excalidraw
|
|
515
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
516
516
|
frameId: string | null;
|
|
517
|
-
boundElements: readonly import("@excalidraw
|
|
517
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
518
518
|
updated: number;
|
|
519
519
|
link: string | null;
|
|
520
520
|
locked: boolean;
|
|
@@ -522,33 +522,33 @@ export declare const actionTogglePolygon: {
|
|
|
522
522
|
}> & {
|
|
523
523
|
type: "star";
|
|
524
524
|
} & {
|
|
525
|
-
index: import("@excalidraw
|
|
525
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
526
526
|
}) | (Readonly<{
|
|
527
527
|
id: string;
|
|
528
528
|
x: number;
|
|
529
529
|
y: number;
|
|
530
530
|
strokeColor: string;
|
|
531
531
|
backgroundColor: string;
|
|
532
|
-
fillStyle: import("@excalidraw
|
|
532
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
533
533
|
strokeWidth: number;
|
|
534
|
-
strokeStyle: import("@excalidraw
|
|
534
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
535
535
|
roundness: null | {
|
|
536
|
-
type: import("@excalidraw
|
|
536
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
537
537
|
value?: number;
|
|
538
538
|
};
|
|
539
539
|
roughness: number;
|
|
540
540
|
opacity: number;
|
|
541
541
|
width: number;
|
|
542
542
|
height: number;
|
|
543
|
-
angle: import("@excalidraw
|
|
543
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
544
544
|
seed: number;
|
|
545
545
|
version: number;
|
|
546
546
|
versionNonce: number;
|
|
547
|
-
index: import("@excalidraw
|
|
547
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
548
548
|
isDeleted: boolean;
|
|
549
|
-
groupIds: readonly import("@excalidraw
|
|
549
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
550
550
|
frameId: string | null;
|
|
551
|
-
boundElements: readonly import("@excalidraw
|
|
551
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
552
552
|
updated: number;
|
|
553
553
|
link: string | null;
|
|
554
554
|
locked: boolean;
|
|
@@ -556,33 +556,33 @@ export declare const actionTogglePolygon: {
|
|
|
556
556
|
}> & Readonly<{
|
|
557
557
|
type: "embeddable";
|
|
558
558
|
}> & {
|
|
559
|
-
index: import("@excalidraw
|
|
559
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
560
560
|
}) | (Readonly<{
|
|
561
561
|
id: string;
|
|
562
562
|
x: number;
|
|
563
563
|
y: number;
|
|
564
564
|
strokeColor: string;
|
|
565
565
|
backgroundColor: string;
|
|
566
|
-
fillStyle: import("@excalidraw
|
|
566
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
567
567
|
strokeWidth: number;
|
|
568
|
-
strokeStyle: import("@excalidraw
|
|
568
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
569
569
|
roundness: null | {
|
|
570
|
-
type: import("@excalidraw
|
|
570
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
571
571
|
value?: number;
|
|
572
572
|
};
|
|
573
573
|
roughness: number;
|
|
574
574
|
opacity: number;
|
|
575
575
|
width: number;
|
|
576
576
|
height: number;
|
|
577
|
-
angle: import("@excalidraw
|
|
577
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
578
578
|
seed: number;
|
|
579
579
|
version: number;
|
|
580
580
|
versionNonce: number;
|
|
581
|
-
index: import("@excalidraw
|
|
581
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
582
582
|
isDeleted: boolean;
|
|
583
|
-
groupIds: readonly import("@excalidraw
|
|
583
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
584
584
|
frameId: string | null;
|
|
585
|
-
boundElements: readonly import("@excalidraw
|
|
585
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
586
586
|
updated: number;
|
|
587
587
|
link: string | null;
|
|
588
588
|
locked: boolean;
|
|
@@ -590,74 +590,74 @@ export declare const actionTogglePolygon: {
|
|
|
590
590
|
}> & Readonly<{
|
|
591
591
|
type: "iframe";
|
|
592
592
|
customData?: {
|
|
593
|
-
generationData?: import("@excalidraw
|
|
593
|
+
generationData?: import("@misenkashari/excalidraw-element/types").MagicGenerationData;
|
|
594
594
|
};
|
|
595
595
|
}> & {
|
|
596
|
-
index: import("@excalidraw
|
|
596
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
597
597
|
}) | (Readonly<{
|
|
598
598
|
id: string;
|
|
599
599
|
x: number;
|
|
600
600
|
y: number;
|
|
601
601
|
strokeColor: string;
|
|
602
602
|
backgroundColor: string;
|
|
603
|
-
fillStyle: import("@excalidraw
|
|
603
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
604
604
|
strokeWidth: number;
|
|
605
|
-
strokeStyle: import("@excalidraw
|
|
605
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
606
606
|
roundness: null | {
|
|
607
|
-
type: import("@excalidraw
|
|
607
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
608
608
|
value?: number;
|
|
609
609
|
};
|
|
610
610
|
roughness: number;
|
|
611
611
|
opacity: number;
|
|
612
612
|
width: number;
|
|
613
613
|
height: number;
|
|
614
|
-
angle: import("@excalidraw
|
|
614
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
615
615
|
seed: number;
|
|
616
616
|
version: number;
|
|
617
617
|
versionNonce: number;
|
|
618
|
-
index: import("@excalidraw
|
|
618
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
619
619
|
isDeleted: boolean;
|
|
620
|
-
groupIds: readonly import("@excalidraw
|
|
620
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
621
621
|
frameId: string | null;
|
|
622
|
-
boundElements: readonly import("@excalidraw
|
|
622
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
623
623
|
updated: number;
|
|
624
624
|
link: string | null;
|
|
625
625
|
locked: boolean;
|
|
626
626
|
customData?: Record<string, any>;
|
|
627
627
|
}> & Readonly<{
|
|
628
628
|
type: "image";
|
|
629
|
-
fileId: import("@excalidraw
|
|
629
|
+
fileId: import("@misenkashari/excalidraw-element/types").FileId | null;
|
|
630
630
|
status: "pending" | "saved" | "error";
|
|
631
631
|
scale: [number, number];
|
|
632
|
-
crop: import("@excalidraw
|
|
632
|
+
crop: import("@misenkashari/excalidraw-element/types").ImageCrop | null;
|
|
633
633
|
}> & {
|
|
634
|
-
index: import("@excalidraw
|
|
634
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
635
635
|
}) | (Readonly<{
|
|
636
636
|
id: string;
|
|
637
637
|
x: number;
|
|
638
638
|
y: number;
|
|
639
639
|
strokeColor: string;
|
|
640
640
|
backgroundColor: string;
|
|
641
|
-
fillStyle: import("@excalidraw
|
|
641
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
642
642
|
strokeWidth: number;
|
|
643
|
-
strokeStyle: import("@excalidraw
|
|
643
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
644
644
|
roundness: null | {
|
|
645
|
-
type: import("@excalidraw
|
|
645
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
646
646
|
value?: number;
|
|
647
647
|
};
|
|
648
648
|
roughness: number;
|
|
649
649
|
opacity: number;
|
|
650
650
|
width: number;
|
|
651
651
|
height: number;
|
|
652
|
-
angle: import("@excalidraw
|
|
652
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
653
653
|
seed: number;
|
|
654
654
|
version: number;
|
|
655
655
|
versionNonce: number;
|
|
656
|
-
index: import("@excalidraw
|
|
656
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
657
657
|
isDeleted: boolean;
|
|
658
|
-
groupIds: readonly import("@excalidraw
|
|
658
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
659
659
|
frameId: string | null;
|
|
660
|
-
boundElements: readonly import("@excalidraw
|
|
660
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
661
661
|
updated: number;
|
|
662
662
|
link: string | null;
|
|
663
663
|
locked: boolean;
|
|
@@ -666,33 +666,33 @@ export declare const actionTogglePolygon: {
|
|
|
666
666
|
type: "frame";
|
|
667
667
|
name: string | null;
|
|
668
668
|
} & {
|
|
669
|
-
index: import("@excalidraw
|
|
669
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
670
670
|
}) | (Readonly<{
|
|
671
671
|
id: string;
|
|
672
672
|
x: number;
|
|
673
673
|
y: number;
|
|
674
674
|
strokeColor: string;
|
|
675
675
|
backgroundColor: string;
|
|
676
|
-
fillStyle: import("@excalidraw
|
|
676
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
677
677
|
strokeWidth: number;
|
|
678
|
-
strokeStyle: import("@excalidraw
|
|
678
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
679
679
|
roundness: null | {
|
|
680
|
-
type: import("@excalidraw
|
|
680
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
681
681
|
value?: number;
|
|
682
682
|
};
|
|
683
683
|
roughness: number;
|
|
684
684
|
opacity: number;
|
|
685
685
|
width: number;
|
|
686
686
|
height: number;
|
|
687
|
-
angle: import("@excalidraw
|
|
687
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
688
688
|
seed: number;
|
|
689
689
|
version: number;
|
|
690
690
|
versionNonce: number;
|
|
691
|
-
index: import("@excalidraw
|
|
691
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
692
692
|
isDeleted: boolean;
|
|
693
|
-
groupIds: readonly import("@excalidraw
|
|
693
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
694
694
|
frameId: string | null;
|
|
695
|
-
boundElements: readonly import("@excalidraw
|
|
695
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
696
696
|
updated: number;
|
|
697
697
|
link: string | null;
|
|
698
698
|
locked: boolean;
|
|
@@ -701,33 +701,33 @@ export declare const actionTogglePolygon: {
|
|
|
701
701
|
type: "magicframe";
|
|
702
702
|
name: string | null;
|
|
703
703
|
} & {
|
|
704
|
-
index: import("@excalidraw
|
|
704
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
705
705
|
}) | (Readonly<{
|
|
706
706
|
id: string;
|
|
707
707
|
x: number;
|
|
708
708
|
y: number;
|
|
709
709
|
strokeColor: string;
|
|
710
710
|
backgroundColor: string;
|
|
711
|
-
fillStyle: import("@excalidraw
|
|
711
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
712
712
|
strokeWidth: number;
|
|
713
|
-
strokeStyle: import("@excalidraw
|
|
713
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
714
714
|
roundness: null | {
|
|
715
|
-
type: import("@excalidraw
|
|
715
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
716
716
|
value?: number;
|
|
717
717
|
};
|
|
718
718
|
roughness: number;
|
|
719
719
|
opacity: number;
|
|
720
720
|
width: number;
|
|
721
721
|
height: number;
|
|
722
|
-
angle: import("@excalidraw
|
|
722
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
723
723
|
seed: number;
|
|
724
724
|
version: number;
|
|
725
725
|
versionNonce: number;
|
|
726
|
-
index: import("@excalidraw
|
|
726
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
727
727
|
isDeleted: boolean;
|
|
728
|
-
groupIds: readonly import("@excalidraw
|
|
728
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
729
729
|
frameId: string | null;
|
|
730
|
-
boundElements: readonly import("@excalidraw
|
|
730
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
731
731
|
updated: number;
|
|
732
732
|
link: string | null;
|
|
733
733
|
locked: boolean;
|
|
@@ -735,55 +735,55 @@ export declare const actionTogglePolygon: {
|
|
|
735
735
|
}> & Readonly<{
|
|
736
736
|
type: "text";
|
|
737
737
|
fontSize: number;
|
|
738
|
-
fontFamily: import("@excalidraw
|
|
738
|
+
fontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues;
|
|
739
739
|
text: string;
|
|
740
|
-
textAlign: import("@excalidraw
|
|
741
|
-
verticalAlign: import("@excalidraw
|
|
742
|
-
containerId: import("@excalidraw
|
|
740
|
+
textAlign: import("@misenkashari/excalidraw-element/types").TextAlign;
|
|
741
|
+
verticalAlign: import("@misenkashari/excalidraw-element/types").VerticalAlign;
|
|
742
|
+
containerId: import("@misenkashari/excalidraw-element/types").ExcalidrawGenericElement["id"] | null;
|
|
743
743
|
originalText: string;
|
|
744
744
|
autoResize: boolean;
|
|
745
745
|
lineHeight: number & {
|
|
746
746
|
_brand: "unitlessLineHeight";
|
|
747
747
|
};
|
|
748
748
|
}> & {
|
|
749
|
-
index: import("@excalidraw
|
|
749
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
750
750
|
}) | (Readonly<{
|
|
751
751
|
id: string;
|
|
752
752
|
x: number;
|
|
753
753
|
y: number;
|
|
754
754
|
strokeColor: string;
|
|
755
755
|
backgroundColor: string;
|
|
756
|
-
fillStyle: import("@excalidraw
|
|
756
|
+
fillStyle: import("@misenkashari/excalidraw-element/types").FillStyle;
|
|
757
757
|
strokeWidth: number;
|
|
758
|
-
strokeStyle: import("@excalidraw
|
|
758
|
+
strokeStyle: import("@misenkashari/excalidraw-element/types").StrokeStyle;
|
|
759
759
|
roundness: null | {
|
|
760
|
-
type: import("@excalidraw
|
|
760
|
+
type: import("@misenkashari/excalidraw-element/types").RoundnessType;
|
|
761
761
|
value?: number;
|
|
762
762
|
};
|
|
763
763
|
roughness: number;
|
|
764
764
|
opacity: number;
|
|
765
765
|
width: number;
|
|
766
766
|
height: number;
|
|
767
|
-
angle: import("@excalidraw
|
|
767
|
+
angle: import("@misenkashari/excalidraw-math").Radians;
|
|
768
768
|
seed: number;
|
|
769
769
|
version: number;
|
|
770
770
|
versionNonce: number;
|
|
771
|
-
index: import("@excalidraw
|
|
771
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex | null;
|
|
772
772
|
isDeleted: boolean;
|
|
773
|
-
groupIds: readonly import("@excalidraw
|
|
773
|
+
groupIds: readonly import("@misenkashari/excalidraw-element/types").GroupId[];
|
|
774
774
|
frameId: string | null;
|
|
775
|
-
boundElements: readonly import("@excalidraw
|
|
775
|
+
boundElements: readonly import("@misenkashari/excalidraw-element/types").BoundElement[] | null;
|
|
776
776
|
updated: number;
|
|
777
777
|
link: string | null;
|
|
778
778
|
locked: boolean;
|
|
779
779
|
customData?: Record<string, any>;
|
|
780
780
|
}> & Readonly<{
|
|
781
781
|
type: "freedraw";
|
|
782
|
-
points: readonly import("@excalidraw
|
|
782
|
+
points: readonly import("@misenkashari/excalidraw-math").LocalPoint[];
|
|
783
783
|
pressures: readonly number[];
|
|
784
784
|
simulatePressure: boolean;
|
|
785
785
|
}> & {
|
|
786
|
-
index: import("@excalidraw
|
|
786
|
+
index: import("@misenkashari/excalidraw-element/types").FractionalIndex;
|
|
787
787
|
}))[];
|
|
788
788
|
appState: Readonly<import("../types").AppState>;
|
|
789
789
|
captureUpdate: "IMMEDIATELY";
|