@myoc/excalidraw 0.18.19 → 0.18.21
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/{chunk-WD4YVUU4.js → chunk-DUURZLYX.js} +2 -2
- package/dist/dev/chunk-XJGMBAJT.js +5684 -0
- package/dist/dev/chunk-XJGMBAJT.js.map +7 -0
- package/dist/dev/data/{image-CW7TABKC.js → image-NCRXXRJW.js} +3 -3
- package/dist/dev/index.css +4 -0
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +6055 -4020
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-W655L563.js → chunk-4UANJTGP.js} +1 -1
- package/dist/prod/chunk-ESVIN3T7.js +4 -0
- package/dist/prod/data/image-7MUHAX25.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +24 -17
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/constants.d.ts +2 -1
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +2 -2
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +4 -0
- package/dist/types/element/src/bounds.d.ts +3 -1
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/frame.d.ts +2 -2
- package/dist/types/element/src/groups.d.ts +1 -0
- package/dist/types/element/src/heading.d.ts +2 -2
- package/dist/types/element/src/linearElementEditor.d.ts +3 -5
- package/dist/types/element/src/resizeTest.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +1 -1
- package/dist/types/element/src/shape.d.ts +2 -2
- package/dist/types/element/src/shapes.d.ts +8 -8
- package/dist/types/element/src/store.d.ts +3 -2
- package/dist/types/element/src/utils.d.ts +11 -5
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -15
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionArrange.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +8 -10
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +63 -75
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +31 -36
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +4 -5
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +17 -20
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +3 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +10 -12
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +4 -5
- package/dist/types/excalidraw/actions/actionExport.d.ts +121 -130
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +11 -12
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +66 -70
- package/dist/types/excalidraw/actions/actionGroup.d.ts +14 -16
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +85 -55
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -6
- package/dist/types/excalidraw/actions/actionMenu.d.ts +13 -16
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +8 -10
- package/dist/types/excalidraw/actions/actionProperties.d.ts +63 -78
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +7 -8
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +8 -9
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +5 -6
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/appState.d.ts +21 -21
- package/dist/types/excalidraw/components/Actions.d.ts +0 -4
- package/dist/types/excalidraw/components/App.d.ts +12 -6
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
- package/dist/types/excalidraw/components/shapes.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +1 -0
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/types.d.ts +2 -4
- package/dist/types/math/src/angle.d.ts +1 -1
- package/dist/types/math/src/curve.d.ts +1 -1
- package/dist/types/math/src/ellipse.d.ts +3 -3
- package/dist/types/math/src/point.d.ts +2 -2
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/rectangle.d.ts +2 -0
- package/dist/types/math/src/segment.d.ts +5 -5
- package/dist/types/math/src/utils.d.ts +0 -2
- package/dist/types/utils/src/shape.d.ts +12 -12
- package/package.json +7 -4
- package/dist/dev/chunk-HDRNCSTL.js +0 -23870
- package/dist/dev/chunk-HDRNCSTL.js.map +0 -7
- package/dist/prod/chunk-23G2JOF5.js +0 -33
- package/dist/prod/data/image-TLNQ4QKS.js +0 -1
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- /package/dist/dev/{chunk-WD4YVUU4.js.map → chunk-DUURZLYX.js.map} +0 -0
- /package/dist/dev/data/{image-CW7TABKC.js.map → image-NCRXXRJW.js.map} +0 -0
|
@@ -14,13 +14,13 @@ export declare const actionGroup: {
|
|
|
14
14
|
captureUpdate: "EVENTUALLY";
|
|
15
15
|
} | {
|
|
16
16
|
appState: {
|
|
17
|
+
editingGroupId: string | null;
|
|
17
18
|
selectedElementIds: Readonly<{
|
|
18
19
|
[id: string]: true;
|
|
19
20
|
}>;
|
|
20
21
|
selectedGroupIds: {
|
|
21
22
|
[groupId: string]: boolean;
|
|
22
23
|
};
|
|
23
|
-
editingGroupId: string | null;
|
|
24
24
|
contextMenu: {
|
|
25
25
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
26
26
|
top: number;
|
|
@@ -39,7 +39,7 @@ export declare const actionGroup: {
|
|
|
39
39
|
errorMessage: import("react").ReactNode;
|
|
40
40
|
activeEmbeddable: {
|
|
41
41
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
42
|
-
state: "
|
|
42
|
+
state: "active" | "hover";
|
|
43
43
|
} | null;
|
|
44
44
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
45
45
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -58,7 +58,6 @@ export declare const actionGroup: {
|
|
|
58
58
|
editingFrame: string | null;
|
|
59
59
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
60
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
61
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
62
61
|
activeTool: {
|
|
63
62
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
63
|
locked: boolean;
|
|
@@ -84,7 +83,7 @@ export declare const actionGroup: {
|
|
|
84
83
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
85
84
|
currentHoveredFontFamily: number | null;
|
|
86
85
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
87
|
-
currentItemArrowType: "
|
|
86
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
88
87
|
viewBackgroundColor: string;
|
|
89
88
|
scrollX: number;
|
|
90
89
|
scrollY: number;
|
|
@@ -106,7 +105,7 @@ export declare const actionGroup: {
|
|
|
106
105
|
name: "imageExport" | "help" | "jsonExport";
|
|
107
106
|
} | {
|
|
108
107
|
name: "ttd";
|
|
109
|
-
tab: "text-to-diagram"
|
|
108
|
+
tab: "mermaid" | "text-to-diagram";
|
|
110
109
|
} | {
|
|
111
110
|
name: "commandPalette";
|
|
112
111
|
} | {
|
|
@@ -171,7 +170,7 @@ export declare const actionGroup: {
|
|
|
171
170
|
shown: true;
|
|
172
171
|
data: import("../charts").Spreadsheet;
|
|
173
172
|
};
|
|
174
|
-
showHyperlinkPopup: false | "
|
|
173
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
175
174
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
176
175
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
177
176
|
originSnapOffset: {
|
|
@@ -196,10 +195,10 @@ export declare const actionGroup: {
|
|
|
196
195
|
captureUpdate: "IMMEDIATELY";
|
|
197
196
|
};
|
|
198
197
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
199
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
198
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
200
199
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
201
200
|
} & {
|
|
202
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
201
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
203
202
|
};
|
|
204
203
|
export declare const actionUngroup: {
|
|
205
204
|
name: "ungroup";
|
|
@@ -214,13 +213,13 @@ export declare const actionUngroup: {
|
|
|
214
213
|
captureUpdate: "EVENTUALLY";
|
|
215
214
|
} | {
|
|
216
215
|
appState: {
|
|
216
|
+
editingGroupId: string | null;
|
|
217
217
|
selectedElementIds: Readonly<{
|
|
218
218
|
[id: string]: true;
|
|
219
219
|
}>;
|
|
220
220
|
selectedGroupIds: {
|
|
221
221
|
[groupId: string]: boolean;
|
|
222
222
|
};
|
|
223
|
-
editingGroupId: string | null;
|
|
224
223
|
contextMenu: {
|
|
225
224
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
226
225
|
top: number;
|
|
@@ -239,7 +238,7 @@ export declare const actionUngroup: {
|
|
|
239
238
|
errorMessage: import("react").ReactNode;
|
|
240
239
|
activeEmbeddable: {
|
|
241
240
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
242
|
-
state: "
|
|
241
|
+
state: "active" | "hover";
|
|
243
242
|
} | null;
|
|
244
243
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
245
244
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -258,7 +257,6 @@ export declare const actionUngroup: {
|
|
|
258
257
|
editingFrame: string | null;
|
|
259
258
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
260
259
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
261
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
262
260
|
activeTool: {
|
|
263
261
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
264
262
|
locked: boolean;
|
|
@@ -284,7 +282,7 @@ export declare const actionUngroup: {
|
|
|
284
282
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
285
283
|
currentHoveredFontFamily: number | null;
|
|
286
284
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
287
|
-
currentItemArrowType: "
|
|
285
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
288
286
|
viewBackgroundColor: string;
|
|
289
287
|
scrollX: number;
|
|
290
288
|
scrollY: number;
|
|
@@ -306,7 +304,7 @@ export declare const actionUngroup: {
|
|
|
306
304
|
name: "imageExport" | "help" | "jsonExport";
|
|
307
305
|
} | {
|
|
308
306
|
name: "ttd";
|
|
309
|
-
tab: "text-to-diagram"
|
|
307
|
+
tab: "mermaid" | "text-to-diagram";
|
|
310
308
|
} | {
|
|
311
309
|
name: "commandPalette";
|
|
312
310
|
} | {
|
|
@@ -371,7 +369,7 @@ export declare const actionUngroup: {
|
|
|
371
369
|
shown: true;
|
|
372
370
|
data: import("../charts").Spreadsheet;
|
|
373
371
|
};
|
|
374
|
-
showHyperlinkPopup: false | "
|
|
372
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
375
373
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
376
374
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
377
375
|
originSnapOffset: {
|
|
@@ -395,9 +393,9 @@ export declare const actionUngroup: {
|
|
|
395
393
|
elements: OrderedExcalidrawElement[];
|
|
396
394
|
captureUpdate: "IMMEDIATELY";
|
|
397
395
|
};
|
|
398
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
396
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
399
397
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
400
398
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
401
399
|
} & {
|
|
402
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
400
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
403
401
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
2
|
import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
4
3
|
export declare const actionToggleLinearEditor: {
|
|
5
4
|
name: "toggleLinearEditor";
|
|
@@ -12,7 +11,39 @@ export declare const actionToggleLinearEditor: {
|
|
|
12
11
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
13
12
|
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
|
|
14
13
|
appState: {
|
|
15
|
-
|
|
14
|
+
selectedLinearElement: {
|
|
15
|
+
isEditing: boolean;
|
|
16
|
+
elementId: string & {
|
|
17
|
+
_brand: "excalidrawLinearElementId";
|
|
18
|
+
};
|
|
19
|
+
selectedPointsIndices: readonly number[] | null;
|
|
20
|
+
pointerDownState: Readonly<{
|
|
21
|
+
prevSelectedPointsIndices: readonly number[] | null;
|
|
22
|
+
lastClickedPoint: number;
|
|
23
|
+
lastClickedIsEndPoint: boolean;
|
|
24
|
+
origin: Readonly<{
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
}> | null;
|
|
28
|
+
segmentMidpoint: {
|
|
29
|
+
value: import("@excalidraw/math").GlobalPoint | null;
|
|
30
|
+
index: number | null;
|
|
31
|
+
added: boolean;
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
34
|
+
isDragging: boolean;
|
|
35
|
+
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
36
|
+
pointerOffset: Readonly<{
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
}>;
|
|
40
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
41
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
42
|
+
hoverPointIndex: number;
|
|
43
|
+
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
44
|
+
elbowed: boolean;
|
|
45
|
+
customLineAngle: number | null;
|
|
46
|
+
};
|
|
16
47
|
contextMenu: {
|
|
17
48
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
18
49
|
top: number;
|
|
@@ -31,7 +62,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
31
62
|
errorMessage: import("react").ReactNode;
|
|
32
63
|
activeEmbeddable: {
|
|
33
64
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
34
|
-
state: "
|
|
65
|
+
state: "active" | "hover";
|
|
35
66
|
} | null;
|
|
36
67
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
37
68
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -75,7 +106,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
75
106
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
76
107
|
currentHoveredFontFamily: number | null;
|
|
77
108
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
78
|
-
currentItemArrowType: "
|
|
109
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
79
110
|
viewBackgroundColor: string;
|
|
80
111
|
scrollX: number;
|
|
81
112
|
scrollY: number;
|
|
@@ -97,7 +128,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
97
128
|
name: "imageExport" | "help" | "jsonExport";
|
|
98
129
|
} | {
|
|
99
130
|
name: "ttd";
|
|
100
|
-
tab: "text-to-diagram"
|
|
131
|
+
tab: "mermaid" | "text-to-diagram";
|
|
101
132
|
} | {
|
|
102
133
|
name: "commandPalette";
|
|
103
134
|
} | {
|
|
@@ -169,8 +200,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
169
200
|
shown: true;
|
|
170
201
|
data: import("../charts").Spreadsheet;
|
|
171
202
|
};
|
|
172
|
-
showHyperlinkPopup: false | "
|
|
173
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
203
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
174
204
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
175
205
|
originSnapOffset: {
|
|
176
206
|
x: number;
|
|
@@ -234,15 +264,21 @@ export declare const actionTogglePolygon: {
|
|
|
234
264
|
frameId: string | null;
|
|
235
265
|
boundElements: readonly Readonly<{
|
|
236
266
|
id: string;
|
|
237
|
-
type: "
|
|
267
|
+
type: "arrow" | "text";
|
|
238
268
|
}>[] | null;
|
|
239
269
|
updated: number;
|
|
240
270
|
link: string | null;
|
|
241
271
|
locked: boolean;
|
|
242
272
|
customData?: Record<string, any> | undefined;
|
|
273
|
+
}> & Readonly<{
|
|
274
|
+
type: "line" | "arrow";
|
|
275
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
276
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
277
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
278
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
279
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
280
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
243
281
|
}> & {
|
|
244
|
-
type: "selection";
|
|
245
|
-
} & {
|
|
246
282
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
247
283
|
}) | (Readonly<{
|
|
248
284
|
id: string;
|
|
@@ -271,14 +307,14 @@ export declare const actionTogglePolygon: {
|
|
|
271
307
|
frameId: string | null;
|
|
272
308
|
boundElements: readonly Readonly<{
|
|
273
309
|
id: string;
|
|
274
|
-
type: "
|
|
310
|
+
type: "arrow" | "text";
|
|
275
311
|
}>[] | null;
|
|
276
312
|
updated: number;
|
|
277
313
|
link: string | null;
|
|
278
314
|
locked: boolean;
|
|
279
315
|
customData?: Record<string, any> | undefined;
|
|
280
316
|
}> & {
|
|
281
|
-
type: "
|
|
317
|
+
type: "selection";
|
|
282
318
|
} & {
|
|
283
319
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
284
320
|
}) | (Readonly<{
|
|
@@ -308,14 +344,14 @@ export declare const actionTogglePolygon: {
|
|
|
308
344
|
frameId: string | null;
|
|
309
345
|
boundElements: readonly Readonly<{
|
|
310
346
|
id: string;
|
|
311
|
-
type: "
|
|
347
|
+
type: "arrow" | "text";
|
|
312
348
|
}>[] | null;
|
|
313
349
|
updated: number;
|
|
314
350
|
link: string | null;
|
|
315
351
|
locked: boolean;
|
|
316
352
|
customData?: Record<string, any> | undefined;
|
|
317
353
|
}> & {
|
|
318
|
-
type: "
|
|
354
|
+
type: "rectangle";
|
|
319
355
|
} & {
|
|
320
356
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
321
357
|
}) | (Readonly<{
|
|
@@ -345,14 +381,14 @@ export declare const actionTogglePolygon: {
|
|
|
345
381
|
frameId: string | null;
|
|
346
382
|
boundElements: readonly Readonly<{
|
|
347
383
|
id: string;
|
|
348
|
-
type: "
|
|
384
|
+
type: "arrow" | "text";
|
|
349
385
|
}>[] | null;
|
|
350
386
|
updated: number;
|
|
351
387
|
link: string | null;
|
|
352
388
|
locked: boolean;
|
|
353
389
|
customData?: Record<string, any> | undefined;
|
|
354
390
|
}> & {
|
|
355
|
-
type: "
|
|
391
|
+
type: "diamond";
|
|
356
392
|
} & {
|
|
357
393
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
358
394
|
}) | (Readonly<{
|
|
@@ -382,26 +418,15 @@ export declare const actionTogglePolygon: {
|
|
|
382
418
|
frameId: string | null;
|
|
383
419
|
boundElements: readonly Readonly<{
|
|
384
420
|
id: string;
|
|
385
|
-
type: "
|
|
421
|
+
type: "arrow" | "text";
|
|
386
422
|
}>[] | null;
|
|
387
423
|
updated: number;
|
|
388
424
|
link: string | null;
|
|
389
425
|
locked: boolean;
|
|
390
426
|
customData?: Record<string, any> | undefined;
|
|
391
|
-
}> & Readonly<{
|
|
392
|
-
type: "text";
|
|
393
|
-
fontSize: number;
|
|
394
|
-
fontFamily: number;
|
|
395
|
-
text: string;
|
|
396
|
-
textAlign: string;
|
|
397
|
-
verticalAlign: string;
|
|
398
|
-
containerId: string | null;
|
|
399
|
-
originalText: string;
|
|
400
|
-
autoResize: boolean;
|
|
401
|
-
lineHeight: number & {
|
|
402
|
-
_brand: "unitlessLineHeight";
|
|
403
|
-
};
|
|
404
427
|
}> & {
|
|
428
|
+
type: "ellipse";
|
|
429
|
+
} & {
|
|
405
430
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
406
431
|
}) | (Readonly<{
|
|
407
432
|
id: string;
|
|
@@ -430,20 +455,14 @@ export declare const actionTogglePolygon: {
|
|
|
430
455
|
frameId: string | null;
|
|
431
456
|
boundElements: readonly Readonly<{
|
|
432
457
|
id: string;
|
|
433
|
-
type: "
|
|
458
|
+
type: "arrow" | "text";
|
|
434
459
|
}>[] | null;
|
|
435
460
|
updated: number;
|
|
436
461
|
link: string | null;
|
|
437
462
|
locked: boolean;
|
|
438
463
|
customData?: Record<string, any> | undefined;
|
|
439
464
|
}> & Readonly<{
|
|
440
|
-
type: "
|
|
441
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
442
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
443
|
-
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
444
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
445
|
-
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
446
|
-
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
465
|
+
type: "embeddable";
|
|
447
466
|
}> & {
|
|
448
467
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
449
468
|
}) | (Readonly<{
|
|
@@ -473,18 +492,17 @@ export declare const actionTogglePolygon: {
|
|
|
473
492
|
frameId: string | null;
|
|
474
493
|
boundElements: readonly Readonly<{
|
|
475
494
|
id: string;
|
|
476
|
-
type: "
|
|
495
|
+
type: "arrow" | "text";
|
|
477
496
|
}>[] | null;
|
|
478
497
|
updated: number;
|
|
479
498
|
link: string | null;
|
|
480
499
|
locked: boolean;
|
|
481
500
|
customData?: Record<string, any> | undefined;
|
|
482
501
|
}> & Readonly<{
|
|
483
|
-
type: "
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
502
|
+
type: "iframe";
|
|
503
|
+
customData?: {
|
|
504
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
505
|
+
} | undefined;
|
|
488
506
|
}> & {
|
|
489
507
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
490
508
|
}) | (Readonly<{
|
|
@@ -514,7 +532,7 @@ export declare const actionTogglePolygon: {
|
|
|
514
532
|
frameId: string | null;
|
|
515
533
|
boundElements: readonly Readonly<{
|
|
516
534
|
id: string;
|
|
517
|
-
type: "
|
|
535
|
+
type: "arrow" | "text";
|
|
518
536
|
}>[] | null;
|
|
519
537
|
updated: number;
|
|
520
538
|
link: string | null;
|
|
@@ -523,7 +541,7 @@ export declare const actionTogglePolygon: {
|
|
|
523
541
|
}> & Readonly<{
|
|
524
542
|
type: "image";
|
|
525
543
|
fileId: import("@excalidraw/element/types").FileId | null;
|
|
526
|
-
status: "
|
|
544
|
+
status: "pending" | "error" | "saved";
|
|
527
545
|
scale: [number, number];
|
|
528
546
|
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
529
547
|
}> & {
|
|
@@ -555,7 +573,7 @@ export declare const actionTogglePolygon: {
|
|
|
555
573
|
frameId: string | null;
|
|
556
574
|
boundElements: readonly Readonly<{
|
|
557
575
|
id: string;
|
|
558
|
-
type: "
|
|
576
|
+
type: "arrow" | "text";
|
|
559
577
|
}>[] | null;
|
|
560
578
|
updated: number;
|
|
561
579
|
link: string | null;
|
|
@@ -593,7 +611,7 @@ export declare const actionTogglePolygon: {
|
|
|
593
611
|
frameId: string | null;
|
|
594
612
|
boundElements: readonly Readonly<{
|
|
595
613
|
id: string;
|
|
596
|
-
type: "
|
|
614
|
+
type: "arrow" | "text";
|
|
597
615
|
}>[] | null;
|
|
598
616
|
updated: number;
|
|
599
617
|
link: string | null;
|
|
@@ -631,17 +649,25 @@ export declare const actionTogglePolygon: {
|
|
|
631
649
|
frameId: string | null;
|
|
632
650
|
boundElements: readonly Readonly<{
|
|
633
651
|
id: string;
|
|
634
|
-
type: "
|
|
652
|
+
type: "arrow" | "text";
|
|
635
653
|
}>[] | null;
|
|
636
654
|
updated: number;
|
|
637
655
|
link: string | null;
|
|
638
656
|
locked: boolean;
|
|
639
657
|
customData?: Record<string, any> | undefined;
|
|
640
658
|
}> & Readonly<{
|
|
641
|
-
type: "
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
659
|
+
type: "text";
|
|
660
|
+
fontSize: number;
|
|
661
|
+
fontFamily: number;
|
|
662
|
+
text: string;
|
|
663
|
+
textAlign: string;
|
|
664
|
+
verticalAlign: string;
|
|
665
|
+
containerId: string | null;
|
|
666
|
+
originalText: string;
|
|
667
|
+
autoResize: boolean;
|
|
668
|
+
lineHeight: number & {
|
|
669
|
+
_brand: "unitlessLineHeight";
|
|
670
|
+
};
|
|
645
671
|
}> & {
|
|
646
672
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
647
673
|
}) | (Readonly<{
|
|
@@ -671,14 +697,18 @@ export declare const actionTogglePolygon: {
|
|
|
671
697
|
frameId: string | null;
|
|
672
698
|
boundElements: readonly Readonly<{
|
|
673
699
|
id: string;
|
|
674
|
-
type: "
|
|
700
|
+
type: "arrow" | "text";
|
|
675
701
|
}>[] | null;
|
|
676
702
|
updated: number;
|
|
677
703
|
link: string | null;
|
|
678
704
|
locked: boolean;
|
|
679
705
|
customData?: Record<string, any> | undefined;
|
|
680
706
|
}> & Readonly<{
|
|
681
|
-
type: "
|
|
707
|
+
type: "freedraw";
|
|
708
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
709
|
+
pressures: readonly number[];
|
|
710
|
+
simulatePressure: boolean;
|
|
711
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
682
712
|
}> & {
|
|
683
713
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
684
714
|
}))[];
|
|
@@ -26,7 +26,7 @@ export declare const actionLink: {
|
|
|
26
26
|
errorMessage: import("react").ReactNode;
|
|
27
27
|
activeEmbeddable: {
|
|
28
28
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
29
|
-
state: "
|
|
29
|
+
state: "active" | "hover";
|
|
30
30
|
} | null;
|
|
31
31
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
32
32
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -45,7 +45,6 @@ export declare const actionLink: {
|
|
|
45
45
|
editingFrame: string | null;
|
|
46
46
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
47
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
49
48
|
activeTool: {
|
|
50
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
50
|
locked: boolean;
|
|
@@ -71,7 +70,7 @@ export declare const actionLink: {
|
|
|
71
70
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
71
|
currentHoveredFontFamily: number | null;
|
|
73
72
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
74
|
-
currentItemArrowType: "
|
|
73
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
75
74
|
viewBackgroundColor: string;
|
|
76
75
|
scrollX: number;
|
|
77
76
|
scrollY: number;
|
|
@@ -92,7 +91,7 @@ export declare const actionLink: {
|
|
|
92
91
|
name: "imageExport" | "help" | "jsonExport";
|
|
93
92
|
} | {
|
|
94
93
|
name: "ttd";
|
|
95
|
-
tab: "text-to-diagram"
|
|
94
|
+
tab: "mermaid" | "text-to-diagram";
|
|
96
95
|
} | {
|
|
97
96
|
name: "commandPalette";
|
|
98
97
|
} | {
|
|
@@ -190,9 +189,9 @@ export declare const actionLink: {
|
|
|
190
189
|
category: "hyperlink";
|
|
191
190
|
action: string;
|
|
192
191
|
};
|
|
193
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
192
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
194
193
|
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
195
194
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
196
195
|
} & {
|
|
197
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
196
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
198
197
|
};
|
|
@@ -26,7 +26,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
26
26
|
errorMessage: import("react").ReactNode;
|
|
27
27
|
activeEmbeddable: {
|
|
28
28
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
29
|
-
state: "
|
|
29
|
+
state: "active" | "hover";
|
|
30
30
|
} | null;
|
|
31
31
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
32
32
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -45,7 +45,6 @@ export declare const actionToggleCanvasMenu: {
|
|
|
45
45
|
editingFrame: string | null;
|
|
46
46
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
47
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
49
48
|
activeTool: {
|
|
50
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
50
|
locked: boolean;
|
|
@@ -71,7 +70,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
71
70
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
71
|
currentHoveredFontFamily: number | null;
|
|
73
72
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
74
|
-
currentItemArrowType: "
|
|
73
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
75
74
|
viewBackgroundColor: string;
|
|
76
75
|
scrollX: number;
|
|
77
76
|
scrollY: number;
|
|
@@ -92,7 +91,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
92
91
|
name: "imageExport" | "help" | "jsonExport";
|
|
93
92
|
} | {
|
|
94
93
|
name: "ttd";
|
|
95
|
-
tab: "text-to-diagram"
|
|
94
|
+
tab: "mermaid" | "text-to-diagram";
|
|
96
95
|
} | {
|
|
97
96
|
name: "commandPalette";
|
|
98
97
|
} | {
|
|
@@ -164,7 +163,7 @@ export declare const actionToggleCanvasMenu: {
|
|
|
164
163
|
shown: true;
|
|
165
164
|
data: import("../charts").Spreadsheet;
|
|
166
165
|
};
|
|
167
|
-
showHyperlinkPopup: false | "
|
|
166
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
168
167
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
169
168
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
169
|
originSnapOffset: {
|
|
@@ -218,7 +217,7 @@ export declare const actionToggleEditMenu: {
|
|
|
218
217
|
errorMessage: import("react").ReactNode;
|
|
219
218
|
activeEmbeddable: {
|
|
220
219
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
221
|
-
state: "
|
|
220
|
+
state: "active" | "hover";
|
|
222
221
|
} | null;
|
|
223
222
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
224
223
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -237,7 +236,6 @@ export declare const actionToggleEditMenu: {
|
|
|
237
236
|
editingFrame: string | null;
|
|
238
237
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
239
238
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
240
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
241
239
|
activeTool: {
|
|
242
240
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
243
241
|
locked: boolean;
|
|
@@ -263,7 +261,7 @@ export declare const actionToggleEditMenu: {
|
|
|
263
261
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
264
262
|
currentHoveredFontFamily: number | null;
|
|
265
263
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
266
|
-
currentItemArrowType: "
|
|
264
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
267
265
|
viewBackgroundColor: string;
|
|
268
266
|
scrollX: number;
|
|
269
267
|
scrollY: number;
|
|
@@ -284,7 +282,7 @@ export declare const actionToggleEditMenu: {
|
|
|
284
282
|
name: "imageExport" | "help" | "jsonExport";
|
|
285
283
|
} | {
|
|
286
284
|
name: "ttd";
|
|
287
|
-
tab: "text-to-diagram"
|
|
285
|
+
tab: "mermaid" | "text-to-diagram";
|
|
288
286
|
} | {
|
|
289
287
|
name: "commandPalette";
|
|
290
288
|
} | {
|
|
@@ -356,7 +354,7 @@ export declare const actionToggleEditMenu: {
|
|
|
356
354
|
shown: true;
|
|
357
355
|
data: import("../charts").Spreadsheet;
|
|
358
356
|
};
|
|
359
|
-
showHyperlinkPopup: false | "
|
|
357
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
360
358
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
361
359
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
362
360
|
originSnapOffset: {
|
|
@@ -415,7 +413,7 @@ export declare const actionShortcuts: {
|
|
|
415
413
|
errorMessage: import("react").ReactNode;
|
|
416
414
|
activeEmbeddable: {
|
|
417
415
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
418
|
-
state: "
|
|
416
|
+
state: "active" | "hover";
|
|
419
417
|
} | null;
|
|
420
418
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
421
419
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -434,7 +432,6 @@ export declare const actionShortcuts: {
|
|
|
434
432
|
editingFrame: string | null;
|
|
435
433
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
436
434
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
437
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
438
435
|
activeTool: {
|
|
439
436
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
440
437
|
locked: boolean;
|
|
@@ -460,7 +457,7 @@ export declare const actionShortcuts: {
|
|
|
460
457
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
461
458
|
currentHoveredFontFamily: number | null;
|
|
462
459
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
463
|
-
currentItemArrowType: "
|
|
460
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
464
461
|
viewBackgroundColor: string;
|
|
465
462
|
scrollX: number;
|
|
466
463
|
scrollY: number;
|
|
@@ -543,7 +540,7 @@ export declare const actionShortcuts: {
|
|
|
543
540
|
shown: true;
|
|
544
541
|
data: import("../charts").Spreadsheet;
|
|
545
542
|
};
|
|
546
|
-
showHyperlinkPopup: false | "
|
|
543
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
547
544
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
548
545
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
549
546
|
originSnapOffset: {
|
|
@@ -566,7 +563,7 @@ export declare const actionShortcuts: {
|
|
|
566
563
|
};
|
|
567
564
|
captureUpdate: "EVENTUALLY";
|
|
568
565
|
};
|
|
569
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
566
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
570
567
|
} & {
|
|
571
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
568
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
572
569
|
};
|