@excalidraw/excalidraw 0.18.0-298812e → 0.18.0-3085f4a
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-5EDE7GFX.js +5677 -0
- package/dist/dev/chunk-5EDE7GFX.js.map +7 -0
- package/dist/dev/chunk-CP5DND7P.js +7 -0
- package/dist/dev/chunk-CP5DND7P.js.map +7 -0
- package/dist/dev/{chunk-JCUIYZXF.js → chunk-QF5FRM6O.js} +6 -2
- package/dist/dev/chunk-QF5FRM6O.js.map +7 -0
- package/dist/dev/data/{image-CB4ZYE3A.js → image-7AP4KED2.js} +3 -3
- package/dist/dev/index.css +51 -20
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +7101 -4376
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-ZDTPSZNL.js → en-SMAPCEOQ.js} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-A66AFZZU.js +7 -0
- package/dist/prod/{chunk-GCFVWREF.js → chunk-I4UNSFV6.js} +4 -4
- package/dist/prod/chunk-YHEOD47Q.js +4 -0
- package/dist/prod/data/image-G3CCQ4CB.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +25 -18
- package/dist/prod/locales/{en-MHZ26NAR.js → en-TYY6KWIJ.js} +1 -1
- 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 +21 -3
- package/dist/types/common/src/utils.d.ts +3 -5
- package/dist/types/element/src/Scene.d.ts +7 -3
- package/dist/types/element/src/align.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +10 -7
- package/dist/types/element/src/bounds.d.ts +11 -3
- package/dist/types/element/src/collision.d.ts +18 -12
- package/dist/types/element/src/cropElement.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +41 -9
- package/dist/types/element/src/distance.d.ts +2 -2
- package/dist/types/element/src/distribute.d.ts +2 -1
- package/dist/types/element/src/fractionalIndex.d.ts +8 -2
- 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/index.d.ts +1 -3
- package/dist/types/element/src/linearElementEditor.d.ts +14 -23
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +2 -1
- package/dist/types/element/src/resizeElements.d.ts +1 -0
- package/dist/types/element/src/selection.d.ts +1 -1
- package/dist/types/element/src/shape.d.ts +42 -0
- package/dist/types/element/src/sizeHelpers.d.ts +2 -1
- package/dist/types/element/src/store.d.ts +19 -9
- package/dist/types/element/src/transformHandles.d.ts +4 -4
- package/dist/types/element/src/typeChecks.d.ts +15 -1
- package/dist/types/element/src/types.d.ts +8 -3
- package/dist/types/element/src/utils.d.ts +16 -6
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +21 -15
- package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +14 -10
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +195 -155
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +50 -36
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +7 -5
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +27 -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 +6 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +29 -26
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +7 -5
- package/dist/types/excalidraw/actions/actionExport.d.ts +147 -129
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +65 -20
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +78 -70
- package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -16
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +533 -7
- package/dist/types/excalidraw/actions/actionLink.d.ts +8 -6
- package/dist/types/excalidraw/actions/actionMenu.d.ts +22 -16
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -10
- package/dist/types/excalidraw/actions/actionProperties.d.ts +119 -81
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -8
- package/dist/types/excalidraw/actions/actionStyles.d.ts +11 -9
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -6
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/types.d.ts +2 -1
- package/dist/types/excalidraw/appState.d.ts +29 -20
- package/dist/types/excalidraw/components/Actions.d.ts +0 -4
- package/dist/types/excalidraw/components/App.d.ts +19 -16
- package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
- package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
- package/dist/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
- package/dist/types/excalidraw/components/icons.d.ts +2 -0
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +1 -1
- package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
- package/dist/types/excalidraw/data/restore.d.ts +6 -1
- package/dist/types/excalidraw/eraser/index.d.ts +0 -2
- package/dist/types/excalidraw/history.d.ts +21 -5
- package/dist/types/excalidraw/index.d.ts +2 -1
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
- package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
- package/dist/types/excalidraw/types.d.ts +17 -8
- package/dist/types/math/src/angle.d.ts +2 -0
- package/dist/types/math/src/constants.d.ts +3 -0
- package/dist/types/math/src/curve.d.ts +32 -0
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/point.d.ts +1 -1
- package/dist/types/math/src/rectangle.d.ts +2 -0
- package/dist/types/math/src/vector.d.ts +4 -2
- package/history.ts +107 -44
- package/package.json +13 -10
- package/dist/dev/chunk-JCUIYZXF.js.map +0 -7
- package/dist/dev/chunk-RQWTCZLD.js +0 -7
- package/dist/dev/chunk-RQWTCZLD.js.map +0 -7
- package/dist/dev/chunk-ZPGIVNNG.js +0 -23482
- package/dist/dev/chunk-ZPGIVNNG.js.map +0 -7
- package/dist/prod/chunk-7TMLMBQX.js +0 -7
- package/dist/prod/chunk-WFJFO6F4.js +0 -33
- package/dist/prod/data/image-XJI4SWH2.js +0 -1
- package/dist/types/element/src/Shape.d.ts +0 -17
- package/dist/types/element/src/ShapeCache.d.ts +0 -25
- package/dist/types/element/src/shapes.d.ts +0 -23
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/visualdebug.d.ts +0 -41
- package/dist/types/utils/src/collision.d.ts +0 -8
- /package/dist/dev/data/{image-CB4ZYE3A.js.map → image-7AP4KED2.js.map} +0 -0
- /package/dist/dev/locales/{en-ZDTPSZNL.js.map → en-SMAPCEOQ.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;
|
|
@@ -31,7 +31,7 @@ export declare const actionGroup: {
|
|
|
31
31
|
errorMessage: import("react").ReactNode;
|
|
32
32
|
activeEmbeddable: {
|
|
33
33
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
34
|
-
state: "
|
|
34
|
+
state: "active" | "hover";
|
|
35
35
|
} | null;
|
|
36
36
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
37
37
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -50,7 +50,6 @@ export declare const actionGroup: {
|
|
|
50
50
|
editingFrame: string | null;
|
|
51
51
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
52
52
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
53
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
54
53
|
activeTool: {
|
|
55
54
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
56
55
|
locked: boolean;
|
|
@@ -98,7 +97,7 @@ export declare const actionGroup: {
|
|
|
98
97
|
name: "imageExport" | "help" | "jsonExport";
|
|
99
98
|
} | {
|
|
100
99
|
name: "ttd";
|
|
101
|
-
tab: "text-to-diagram"
|
|
100
|
+
tab: "mermaid" | "text-to-diagram";
|
|
102
101
|
} | {
|
|
103
102
|
name: "commandPalette";
|
|
104
103
|
} | {
|
|
@@ -163,8 +162,7 @@ export declare const actionGroup: {
|
|
|
163
162
|
shown: true;
|
|
164
163
|
data: import("../charts").Spreadsheet;
|
|
165
164
|
};
|
|
166
|
-
|
|
167
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
165
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
168
166
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
169
167
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
168
|
originSnapOffset: {
|
|
@@ -180,15 +178,19 @@ export declare const actionGroup: {
|
|
|
180
178
|
focusedId: string | null;
|
|
181
179
|
matches: readonly import("../types").SearchMatch[];
|
|
182
180
|
}> | null;
|
|
181
|
+
activeLockedId: string | null;
|
|
182
|
+
lockedMultiSelections: {
|
|
183
|
+
[groupId: string]: true;
|
|
184
|
+
};
|
|
183
185
|
};
|
|
184
186
|
elements: OrderedExcalidrawElement[];
|
|
185
187
|
captureUpdate: "IMMEDIATELY";
|
|
186
188
|
};
|
|
187
189
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
188
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
190
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
189
191
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
190
192
|
} & {
|
|
191
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
193
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
192
194
|
};
|
|
193
195
|
export declare const actionUngroup: {
|
|
194
196
|
name: "ungroup";
|
|
@@ -203,13 +205,13 @@ export declare const actionUngroup: {
|
|
|
203
205
|
captureUpdate: "EVENTUALLY";
|
|
204
206
|
} | {
|
|
205
207
|
appState: {
|
|
208
|
+
editingGroupId: string | null;
|
|
206
209
|
selectedElementIds: Readonly<{
|
|
207
210
|
[id: string]: true;
|
|
208
211
|
}>;
|
|
209
212
|
selectedGroupIds: {
|
|
210
213
|
[groupId: string]: boolean;
|
|
211
214
|
};
|
|
212
|
-
editingGroupId: string | null;
|
|
213
215
|
contextMenu: {
|
|
214
216
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
215
217
|
top: number;
|
|
@@ -220,7 +222,7 @@ export declare const actionUngroup: {
|
|
|
220
222
|
errorMessage: import("react").ReactNode;
|
|
221
223
|
activeEmbeddable: {
|
|
222
224
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
223
|
-
state: "
|
|
225
|
+
state: "active" | "hover";
|
|
224
226
|
} | null;
|
|
225
227
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
226
228
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -239,7 +241,6 @@ export declare const actionUngroup: {
|
|
|
239
241
|
editingFrame: string | null;
|
|
240
242
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
241
243
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
242
|
-
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
243
244
|
activeTool: {
|
|
244
245
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
245
246
|
locked: boolean;
|
|
@@ -287,7 +288,7 @@ export declare const actionUngroup: {
|
|
|
287
288
|
name: "imageExport" | "help" | "jsonExport";
|
|
288
289
|
} | {
|
|
289
290
|
name: "ttd";
|
|
290
|
-
tab: "text-to-diagram"
|
|
291
|
+
tab: "mermaid" | "text-to-diagram";
|
|
291
292
|
} | {
|
|
292
293
|
name: "commandPalette";
|
|
293
294
|
} | {
|
|
@@ -352,8 +353,7 @@ export declare const actionUngroup: {
|
|
|
352
353
|
shown: true;
|
|
353
354
|
data: import("../charts").Spreadsheet;
|
|
354
355
|
};
|
|
355
|
-
|
|
356
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
356
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
357
357
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
358
358
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
359
359
|
originSnapOffset: {
|
|
@@ -369,13 +369,17 @@ export declare const actionUngroup: {
|
|
|
369
369
|
focusedId: string | null;
|
|
370
370
|
matches: readonly import("../types").SearchMatch[];
|
|
371
371
|
}> | null;
|
|
372
|
+
activeLockedId: string | null;
|
|
373
|
+
lockedMultiSelections: {
|
|
374
|
+
[groupId: string]: true;
|
|
375
|
+
};
|
|
372
376
|
};
|
|
373
377
|
elements: OrderedExcalidrawElement[];
|
|
374
378
|
captureUpdate: "IMMEDIATELY";
|
|
375
379
|
};
|
|
376
|
-
keyTest: (event: import("react").KeyboardEvent<Element>
|
|
380
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
377
381
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
378
382
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
379
383
|
} & {
|
|
380
|
-
keyTest?: ((event: import("react").KeyboardEvent<Element>
|
|
384
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
381
385
|
};
|