@myoc/excalidraw 0.18.19 → 0.18.20
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-5IFOUNFV.js +5684 -0
- package/dist/dev/chunk-5IFOUNFV.js.map +7 -0
- package/dist/dev/{chunk-WD4YVUU4.js → chunk-GR6GZQQD.js} +2 -2
- package/dist/dev/data/{image-CW7TABKC.js → image-QMTJGSU7.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-PPT7KBS3.js} +1 -1
- package/dist/prod/chunk-SHSFPXHA.js +4 -0
- package/dist/prod/data/image-TZAIFXB2.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 +4 -1
- 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-GR6GZQQD.js.map} +0 -0
- /package/dist/dev/data/{image-CW7TABKC.js.map → image-QMTJGSU7.js.map} +0 -0
|
@@ -41,7 +41,7 @@ export declare const actionToggleElementLock: {
|
|
|
41
41
|
errorMessage: import("react").ReactNode;
|
|
42
42
|
activeEmbeddable: {
|
|
43
43
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
44
|
-
state: "
|
|
44
|
+
state: "active" | "hover";
|
|
45
45
|
} | null;
|
|
46
46
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
47
47
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -60,7 +60,6 @@ export declare const actionToggleElementLock: {
|
|
|
60
60
|
editingFrame: string | null;
|
|
61
61
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
62
62
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
63
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
64
63
|
activeTool: {
|
|
65
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
66
65
|
locked: boolean;
|
|
@@ -86,7 +85,7 @@ export declare const actionToggleElementLock: {
|
|
|
86
85
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
87
86
|
currentHoveredFontFamily: number | null;
|
|
88
87
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
89
|
-
currentItemArrowType: "
|
|
88
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
90
89
|
viewBackgroundColor: string;
|
|
91
90
|
scrollX: number;
|
|
92
91
|
scrollY: number;
|
|
@@ -108,7 +107,7 @@ export declare const actionToggleElementLock: {
|
|
|
108
107
|
name: "imageExport" | "help" | "jsonExport";
|
|
109
108
|
} | {
|
|
110
109
|
name: "ttd";
|
|
111
|
-
tab: "text-to-diagram"
|
|
110
|
+
tab: "mermaid" | "text-to-diagram";
|
|
112
111
|
} | {
|
|
113
112
|
name: "commandPalette";
|
|
114
113
|
} | {
|
|
@@ -174,7 +173,7 @@ export declare const actionToggleElementLock: {
|
|
|
174
173
|
shown: true;
|
|
175
174
|
data: import("../charts").Spreadsheet;
|
|
176
175
|
};
|
|
177
|
-
showHyperlinkPopup: false | "
|
|
176
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
178
177
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
179
178
|
originSnapOffset: {
|
|
180
179
|
x: number;
|
|
@@ -192,9 +191,9 @@ export declare const actionToggleElementLock: {
|
|
|
192
191
|
};
|
|
193
192
|
captureUpdate: "IMMEDIATELY";
|
|
194
193
|
};
|
|
195
|
-
keyTest: (event: import("react").KeyboardEvent<Element
|
|
194
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
196
195
|
} & {
|
|
197
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element
|
|
196
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
198
197
|
};
|
|
199
198
|
export declare const actionUnlockAllElements: {
|
|
200
199
|
name: "unlockAllElements";
|
|
@@ -233,7 +232,7 @@ export declare const actionUnlockAllElements: {
|
|
|
233
232
|
errorMessage: import("react").ReactNode;
|
|
234
233
|
activeEmbeddable: {
|
|
235
234
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
236
|
-
state: "
|
|
235
|
+
state: "active" | "hover";
|
|
237
236
|
} | null;
|
|
238
237
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
239
238
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -252,7 +251,6 @@ export declare const actionUnlockAllElements: {
|
|
|
252
251
|
editingFrame: string | null;
|
|
253
252
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
254
253
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
255
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
256
254
|
activeTool: {
|
|
257
255
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
258
256
|
locked: boolean;
|
|
@@ -278,7 +276,7 @@ export declare const actionUnlockAllElements: {
|
|
|
278
276
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
279
277
|
currentHoveredFontFamily: number | null;
|
|
280
278
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
281
|
-
currentItemArrowType: "
|
|
279
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
282
280
|
viewBackgroundColor: string;
|
|
283
281
|
scrollX: number;
|
|
284
282
|
scrollY: number;
|
|
@@ -300,7 +298,7 @@ export declare const actionUnlockAllElements: {
|
|
|
300
298
|
name: "imageExport" | "help" | "jsonExport";
|
|
301
299
|
} | {
|
|
302
300
|
name: "ttd";
|
|
303
|
-
tab: "text-to-diagram"
|
|
301
|
+
tab: "mermaid" | "text-to-diagram";
|
|
304
302
|
} | {
|
|
305
303
|
name: "commandPalette";
|
|
306
304
|
} | {
|
|
@@ -366,7 +364,7 @@ export declare const actionUnlockAllElements: {
|
|
|
366
364
|
shown: true;
|
|
367
365
|
data: import("../charts").Spreadsheet;
|
|
368
366
|
};
|
|
369
|
-
showHyperlinkPopup: false | "
|
|
367
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
370
368
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
371
369
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
372
370
|
originSnapOffset: {
|
|
@@ -32,7 +32,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
32
32
|
errorMessage: import("react").ReactNode;
|
|
33
33
|
activeEmbeddable: {
|
|
34
34
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
35
|
-
state: "
|
|
35
|
+
state: "active" | "hover";
|
|
36
36
|
} | null;
|
|
37
37
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
38
38
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -51,7 +51,6 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
51
51
|
editingFrame: string | null;
|
|
52
52
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
53
53
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
54
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
55
54
|
penMode: boolean;
|
|
56
55
|
penDetected: boolean;
|
|
57
56
|
exportBackground: boolean;
|
|
@@ -72,7 +71,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
72
71
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
73
72
|
currentHoveredFontFamily: number | null;
|
|
74
73
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
75
|
-
currentItemArrowType: "
|
|
74
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
76
75
|
viewBackgroundColor: string;
|
|
77
76
|
scrollX: number;
|
|
78
77
|
scrollY: number;
|
|
@@ -94,7 +93,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
94
93
|
name: "imageExport" | "help" | "jsonExport";
|
|
95
94
|
} | {
|
|
96
95
|
name: "ttd";
|
|
97
|
-
tab: "text-to-diagram"
|
|
96
|
+
tab: "mermaid" | "text-to-diagram";
|
|
98
97
|
} | {
|
|
99
98
|
name: "commandPalette";
|
|
100
99
|
} | {
|
|
@@ -166,7 +165,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
166
165
|
shown: true;
|
|
167
166
|
data: import("../charts").Spreadsheet;
|
|
168
167
|
};
|
|
169
|
-
showHyperlinkPopup: false | "
|
|
168
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
170
169
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
171
170
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
172
171
|
originSnapOffset: {
|