@myoc/excalidraw 0.18.15 → 0.18.17
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-O7OUZ7ZJ.js → chunk-FQEIAL75.js} +14874 -9982
- package/dist/dev/chunk-FQEIAL75.js.map +7 -0
- package/dist/dev/{chunk-PEI7EPYO.js → chunk-KJKC5BJI.js} +10 -4
- package/dist/dev/chunk-KJKC5BJI.js.map +7 -0
- package/dist/dev/{chunk-DJKQZ4KD.js → chunk-XL2I4W52.js} +2 -2
- package/dist/dev/data/{image-NJWLICAS.js → image-WMF622SS.js} +3 -3
- package/dist/dev/index.css +69 -22
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +3104 -6547
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-R455UJTM.js → en-UQFCZXHO.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-NJOW7IOK.js → chunk-5JAQX5EH.js} +1 -1
- package/dist/prod/{chunk-KZWZ7WHC.js → chunk-EJLAYNAE.js} +4 -4
- package/dist/prod/chunk-LSNMPGNI.js +33 -0
- package/dist/prod/data/image-Z433FUMH.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +17 -16
- package/dist/prod/locales/{en-YWERZJD6.js → en-7EHYHCIL.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 +3 -1
- package/dist/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +4 -2
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/utility-types.d.ts +5 -0
- package/dist/types/common/src/utils.d.ts +16 -4
- package/dist/types/{excalidraw/scene → element/src}/Scene.d.ts +11 -14
- package/dist/types/element/src/ShapeCache.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +3 -3
- package/dist/types/element/src/arrange.d.ts +2 -1
- package/dist/types/element/src/binding.d.ts +18 -10
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +40 -35
- package/dist/types/element/src/dragElements.d.ts +3 -2
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/flowchart.d.ts +3 -2
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +4 -3
- package/dist/types/element/src/index.d.ts +45 -2
- package/dist/types/element/src/linearElementEditor.d.ts +14 -18
- package/dist/types/element/src/mutateElement.d.ts +10 -2
- package/dist/types/element/src/newElement.d.ts +3 -3
- package/dist/types/element/src/resizeElements.d.ts +4 -4
- package/dist/types/element/src/selection.d.ts +1 -6
- package/dist/types/element/src/shapes.d.ts +1 -1
- package/dist/types/element/src/sizeHelpers.d.ts +0 -1
- package/dist/types/element/src/store.d.ts +227 -0
- package/dist/types/element/src/textElement.d.ts +4 -3
- package/dist/types/element/src/typeChecks.d.ts +5 -1
- package/dist/types/element/src/types.d.ts +8 -0
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -48
- 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 +20 -32
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +139 -211
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +62 -98
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +28 -46
- 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 +10 -16
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +22 -34
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionExport.d.ts +184 -238
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +18 -30
- package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +84 -108
- package/dist/types/excalidraw/actions/actionGroup.d.ts +26 -38
- package/dist/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +9 -15
- package/dist/types/excalidraw/actions/actionLink.d.ts +10 -16
- package/dist/types/excalidraw/actions/actionMenu.d.ts +30 -48
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +19 -31
- package/dist/types/excalidraw/actions/actionProperties.d.ts +138 -228
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +14 -20
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +12 -199
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -18
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +31 -31
- package/dist/types/excalidraw/components/App.d.ts +13 -8
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -3
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- package/dist/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/dist/types/excalidraw/components/Range.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +1 -0
- package/dist/types/excalidraw/components/shapes.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +1 -1
- package/dist/types/excalidraw/data/transform.d.ts +1 -1
- package/dist/types/excalidraw/editor-jotai.d.ts +6 -6
- package/dist/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/dist/types/excalidraw/history.d.ts +14 -22
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +9 -9
- package/dist/types/excalidraw/lasso/index.d.ts +1 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +16 -9
- package/dist/types/excalidraw/visualdebug.d.ts +1 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/dist/types/math/src/curve.d.ts +2 -0
- package/dist/types/math/src/vector.d.ts +4 -0
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/withinBounds.d.ts +1 -1
- package/history.ts +68 -94
- package/package.json +5 -4
- package/dist/dev/chunk-O7OUZ7ZJ.js.map +0 -7
- package/dist/dev/chunk-PEI7EPYO.js.map +0 -7
- package/dist/prod/chunk-WGXUBJ4X.js +0 -33
- package/dist/prod/data/image-EKW6RBW7.js +0 -1
- package/dist/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/dist/types/excalidraw/store.d.ts +0 -129
- /package/dist/dev/{chunk-DJKQZ4KD.js.map → chunk-XL2I4W52.js.map} +0 -0
- /package/dist/dev/data/{image-NJWLICAS.js.map → image-WMF622SS.js.map} +0 -0
- /package/dist/dev/locales/{en-R455UJTM.js.map → en-UQFCZXHO.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
2
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
3
|
import type { AppState } from "../types";
|
|
4
4
|
export declare const actionFinalize: {
|
|
5
5
|
name: "finalize";
|
|
@@ -18,9 +18,9 @@ export declare const actionFinalize: {
|
|
|
18
18
|
showWelcomeScreen: boolean;
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
myocSimplifiedMode: boolean;
|
|
21
|
+
dontResizeLimitMBs: number;
|
|
21
22
|
hideMainMenus: boolean;
|
|
22
23
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
23
|
-
dontResizeLimitMBs: number;
|
|
24
24
|
arrangeConfiguration: {
|
|
25
25
|
algorithm: "bin-packing";
|
|
26
26
|
gap: number;
|
|
@@ -36,7 +36,7 @@ export declare const actionFinalize: {
|
|
|
36
36
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
37
37
|
isBindingEnabled: boolean;
|
|
38
38
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
39
|
-
suggestedBindings: import("@excalidraw/element
|
|
39
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
40
40
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
41
41
|
frameRendering: {
|
|
42
42
|
enabled: boolean;
|
|
@@ -83,7 +83,7 @@ export declare const actionFinalize: {
|
|
|
83
83
|
zoom: Readonly<{
|
|
84
84
|
value: import("../types").NormalizedZoomValue;
|
|
85
85
|
}>;
|
|
86
|
-
openMenu: "
|
|
86
|
+
openMenu: "canvas" | "shape" | null;
|
|
87
87
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
88
88
|
openSidebar: {
|
|
89
89
|
name: string;
|
|
@@ -166,7 +166,7 @@ export declare const actionFinalize: {
|
|
|
166
166
|
data: import("../charts").Spreadsheet;
|
|
167
167
|
};
|
|
168
168
|
pendingImageElementId: string | null;
|
|
169
|
-
showHyperlinkPopup: false | "
|
|
169
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
170
170
|
selectedLinearElement: LinearElementEditor | null;
|
|
171
171
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
172
172
|
originSnapOffset: {
|
|
@@ -178,16 +178,10 @@ export declare const actionFinalize: {
|
|
|
178
178
|
followedBy: Set<import("../types").SocketId>;
|
|
179
179
|
isCropping: boolean;
|
|
180
180
|
croppingElementId: string | null;
|
|
181
|
-
searchMatches:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
offsetX: number;
|
|
186
|
-
offsetY: number;
|
|
187
|
-
width: number;
|
|
188
|
-
height: number;
|
|
189
|
-
}[];
|
|
190
|
-
}[];
|
|
181
|
+
searchMatches: Readonly<{
|
|
182
|
+
focusedId: string | null;
|
|
183
|
+
matches: readonly import("../types").SearchMatch[];
|
|
184
|
+
}> | null;
|
|
191
185
|
};
|
|
192
186
|
captureUpdate: "IMMEDIATELY";
|
|
193
187
|
} | {
|
|
@@ -219,9 +213,9 @@ export declare const actionFinalize: {
|
|
|
219
213
|
showWelcomeScreen: boolean;
|
|
220
214
|
isLoading: boolean;
|
|
221
215
|
myocSimplifiedMode: boolean;
|
|
216
|
+
dontResizeLimitMBs: number;
|
|
222
217
|
hideMainMenus: boolean;
|
|
223
218
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
224
|
-
dontResizeLimitMBs: number;
|
|
225
219
|
arrangeConfiguration: {
|
|
226
220
|
algorithm: "bin-packing";
|
|
227
221
|
gap: number;
|
|
@@ -270,7 +264,7 @@ export declare const actionFinalize: {
|
|
|
270
264
|
zoom: Readonly<{
|
|
271
265
|
value: import("../types").NormalizedZoomValue;
|
|
272
266
|
}>;
|
|
273
|
-
openMenu: "
|
|
267
|
+
openMenu: "canvas" | "shape" | null;
|
|
274
268
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
275
269
|
openSidebar: {
|
|
276
270
|
name: string;
|
|
@@ -349,7 +343,7 @@ export declare const actionFinalize: {
|
|
|
349
343
|
shown: true;
|
|
350
344
|
data: import("../charts").Spreadsheet;
|
|
351
345
|
};
|
|
352
|
-
showHyperlinkPopup: false | "
|
|
346
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
353
347
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
354
348
|
originSnapOffset: {
|
|
355
349
|
x: number;
|
|
@@ -360,21 +354,15 @@ export declare const actionFinalize: {
|
|
|
360
354
|
followedBy: Set<import("../types").SocketId>;
|
|
361
355
|
isCropping: boolean;
|
|
362
356
|
croppingElementId: string | null;
|
|
363
|
-
searchMatches:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
offsetX: number;
|
|
368
|
-
offsetY: number;
|
|
369
|
-
width: number;
|
|
370
|
-
height: number;
|
|
371
|
-
}[];
|
|
372
|
-
}[];
|
|
357
|
+
searchMatches: Readonly<{
|
|
358
|
+
focusedId: string | null;
|
|
359
|
+
matches: readonly import("../types").SearchMatch[];
|
|
360
|
+
}> | null;
|
|
373
361
|
};
|
|
374
362
|
captureUpdate: "IMMEDIATELY";
|
|
375
363
|
};
|
|
376
|
-
keyTest: (event:
|
|
364
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean;
|
|
377
365
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
378
366
|
} & {
|
|
379
|
-
keyTest?: ((event:
|
|
367
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent, appState: AppState) => boolean) | undefined;
|
|
380
368
|
};
|
|
@@ -13,9 +13,9 @@ export declare const actionFlipHorizontal: {
|
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
captureUpdate: "IMMEDIATELY";
|
|
15
15
|
};
|
|
16
|
-
keyTest: (event:
|
|
16
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
17
17
|
} & {
|
|
18
|
-
keyTest?: ((event:
|
|
18
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
19
19
|
};
|
|
20
20
|
export declare const actionFlipVertical: {
|
|
21
21
|
name: "flipVertical";
|
|
@@ -29,7 +29,7 @@ export declare const actionFlipVertical: {
|
|
|
29
29
|
appState: Readonly<AppState>;
|
|
30
30
|
captureUpdate: "IMMEDIATELY";
|
|
31
31
|
};
|
|
32
|
-
keyTest: (event:
|
|
32
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
|
|
33
33
|
} & {
|
|
34
|
-
keyTest?: ((event:
|
|
34
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
|
|
35
35
|
};
|
|
@@ -19,9 +19,9 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
19
19
|
showWelcomeScreen: boolean;
|
|
20
20
|
isLoading: boolean;
|
|
21
21
|
myocSimplifiedMode: boolean;
|
|
22
|
+
dontResizeLimitMBs: number;
|
|
22
23
|
hideMainMenus: boolean;
|
|
23
24
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
24
|
-
dontResizeLimitMBs: number;
|
|
25
25
|
arrangeConfiguration: {
|
|
26
26
|
algorithm: "bin-packing";
|
|
27
27
|
gap: number;
|
|
@@ -37,7 +37,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
37
37
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
38
38
|
isBindingEnabled: boolean;
|
|
39
39
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
40
|
-
suggestedBindings: import("@excalidraw/element
|
|
40
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
41
41
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
42
42
|
frameRendering: {
|
|
43
43
|
enabled: boolean;
|
|
@@ -48,7 +48,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
48
48
|
editingFrame: string | null;
|
|
49
49
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
50
50
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
51
|
-
editingLinearElement: import("@excalidraw/element
|
|
51
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
52
52
|
activeTool: {
|
|
53
53
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
54
54
|
locked: boolean;
|
|
@@ -86,7 +86,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
86
86
|
zoom: Readonly<{
|
|
87
87
|
value: import("../types").NormalizedZoomValue;
|
|
88
88
|
}>;
|
|
89
|
-
openMenu: "
|
|
89
|
+
openMenu: "canvas" | "shape" | null;
|
|
90
90
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
91
91
|
openSidebar: {
|
|
92
92
|
name: string;
|
|
@@ -166,8 +166,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
166
166
|
data: import("../charts").Spreadsheet;
|
|
167
167
|
};
|
|
168
168
|
pendingImageElementId: string | null;
|
|
169
|
-
showHyperlinkPopup: false | "
|
|
170
|
-
selectedLinearElement: import("@excalidraw/element
|
|
169
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
170
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
171
171
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
172
172
|
originSnapOffset: {
|
|
173
173
|
x: number;
|
|
@@ -178,16 +178,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
178
178
|
followedBy: Set<import("../types").SocketId>;
|
|
179
179
|
isCropping: boolean;
|
|
180
180
|
croppingElementId: string | null;
|
|
181
|
-
searchMatches:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
offsetX: number;
|
|
186
|
-
offsetY: number;
|
|
187
|
-
width: number;
|
|
188
|
-
height: number;
|
|
189
|
-
}[];
|
|
190
|
-
}[];
|
|
181
|
+
searchMatches: Readonly<{
|
|
182
|
+
focusedId: string | null;
|
|
183
|
+
matches: readonly import("../types").SearchMatch[];
|
|
184
|
+
}> | null;
|
|
191
185
|
};
|
|
192
186
|
captureUpdate: "IMMEDIATELY";
|
|
193
187
|
} | {
|
|
@@ -219,9 +213,9 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
219
213
|
showWelcomeScreen: boolean;
|
|
220
214
|
isLoading: boolean;
|
|
221
215
|
myocSimplifiedMode: boolean;
|
|
216
|
+
dontResizeLimitMBs: number;
|
|
222
217
|
hideMainMenus: boolean;
|
|
223
218
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
224
|
-
dontResizeLimitMBs: number;
|
|
225
219
|
arrangeConfiguration: {
|
|
226
220
|
algorithm: "bin-packing";
|
|
227
221
|
gap: number;
|
|
@@ -237,7 +231,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
237
231
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
238
232
|
isBindingEnabled: boolean;
|
|
239
233
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
240
|
-
suggestedBindings: import("@excalidraw/element
|
|
234
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
241
235
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
242
236
|
frameRendering: {
|
|
243
237
|
enabled: boolean;
|
|
@@ -248,7 +242,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
248
242
|
editingFrame: string | null;
|
|
249
243
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
250
244
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
251
|
-
editingLinearElement: import("@excalidraw/element
|
|
245
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
252
246
|
activeTool: {
|
|
253
247
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
254
248
|
locked: boolean;
|
|
@@ -286,7 +280,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
286
280
|
zoom: Readonly<{
|
|
287
281
|
value: import("../types").NormalizedZoomValue;
|
|
288
282
|
}>;
|
|
289
|
-
openMenu: "
|
|
283
|
+
openMenu: "canvas" | "shape" | null;
|
|
290
284
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
291
285
|
openSidebar: {
|
|
292
286
|
name: string;
|
|
@@ -366,8 +360,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
366
360
|
data: import("../charts").Spreadsheet;
|
|
367
361
|
};
|
|
368
362
|
pendingImageElementId: string | null;
|
|
369
|
-
showHyperlinkPopup: false | "
|
|
370
|
-
selectedLinearElement: import("@excalidraw/element
|
|
363
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
364
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
371
365
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
372
366
|
originSnapOffset: {
|
|
373
367
|
x: number;
|
|
@@ -378,16 +372,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
378
372
|
followedBy: Set<import("../types").SocketId>;
|
|
379
373
|
isCropping: boolean;
|
|
380
374
|
croppingElementId: string | null;
|
|
381
|
-
searchMatches:
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
offsetX: number;
|
|
386
|
-
offsetY: number;
|
|
387
|
-
width: number;
|
|
388
|
-
height: number;
|
|
389
|
-
}[];
|
|
390
|
-
}[];
|
|
375
|
+
searchMatches: Readonly<{
|
|
376
|
+
focusedId: string | null;
|
|
377
|
+
matches: readonly import("../types").SearchMatch[];
|
|
378
|
+
}> | null;
|
|
391
379
|
};
|
|
392
380
|
captureUpdate: "IMMEDIATELY";
|
|
393
381
|
} | {
|
|
@@ -423,9 +411,9 @@ export declare const actionupdateFrameRendering: {
|
|
|
423
411
|
showWelcomeScreen: boolean;
|
|
424
412
|
isLoading: boolean;
|
|
425
413
|
myocSimplifiedMode: boolean;
|
|
414
|
+
dontResizeLimitMBs: number;
|
|
426
415
|
hideMainMenus: boolean;
|
|
427
416
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
428
|
-
dontResizeLimitMBs: number;
|
|
429
417
|
arrangeConfiguration: {
|
|
430
418
|
algorithm: "bin-packing";
|
|
431
419
|
gap: number;
|
|
@@ -441,12 +429,12 @@ export declare const actionupdateFrameRendering: {
|
|
|
441
429
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
442
430
|
isBindingEnabled: boolean;
|
|
443
431
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
444
|
-
suggestedBindings: import("@excalidraw/element
|
|
432
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
445
433
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
446
434
|
editingFrame: string | null;
|
|
447
435
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
448
436
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
449
|
-
editingLinearElement: import("@excalidraw/element
|
|
437
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
450
438
|
activeTool: {
|
|
451
439
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
452
440
|
locked: boolean;
|
|
@@ -484,7 +472,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
484
472
|
zoom: Readonly<{
|
|
485
473
|
value: import("../types").NormalizedZoomValue;
|
|
486
474
|
}>;
|
|
487
|
-
openMenu: "
|
|
475
|
+
openMenu: "canvas" | "shape" | null;
|
|
488
476
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
489
477
|
openSidebar: {
|
|
490
478
|
name: string;
|
|
@@ -567,8 +555,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
567
555
|
data: import("../charts").Spreadsheet;
|
|
568
556
|
};
|
|
569
557
|
pendingImageElementId: string | null;
|
|
570
|
-
showHyperlinkPopup: false | "
|
|
571
|
-
selectedLinearElement: import("@excalidraw/element
|
|
558
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
559
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
572
560
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
573
561
|
originSnapOffset: {
|
|
574
562
|
x: number;
|
|
@@ -579,16 +567,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
579
567
|
followedBy: Set<import("../types").SocketId>;
|
|
580
568
|
isCropping: boolean;
|
|
581
569
|
croppingElementId: string | null;
|
|
582
|
-
searchMatches:
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
offsetX: number;
|
|
587
|
-
offsetY: number;
|
|
588
|
-
width: number;
|
|
589
|
-
height: number;
|
|
590
|
-
}[];
|
|
591
|
-
}[];
|
|
570
|
+
searchMatches: Readonly<{
|
|
571
|
+
focusedId: string | null;
|
|
572
|
+
matches: readonly import("../types").SearchMatch[];
|
|
573
|
+
}> | null;
|
|
592
574
|
};
|
|
593
575
|
captureUpdate: "EVENTUALLY";
|
|
594
576
|
};
|
|
@@ -620,9 +602,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
620
602
|
showWelcomeScreen: boolean;
|
|
621
603
|
isLoading: boolean;
|
|
622
604
|
myocSimplifiedMode: boolean;
|
|
605
|
+
dontResizeLimitMBs: number;
|
|
623
606
|
hideMainMenus: boolean;
|
|
624
607
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
625
|
-
dontResizeLimitMBs: number;
|
|
626
608
|
arrangeConfiguration: {
|
|
627
609
|
algorithm: "bin-packing";
|
|
628
610
|
gap: number;
|
|
@@ -638,7 +620,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
638
620
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
639
621
|
isBindingEnabled: boolean;
|
|
640
622
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
641
|
-
suggestedBindings: import("@excalidraw/element
|
|
623
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
642
624
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
643
625
|
frameRendering: {
|
|
644
626
|
enabled: boolean;
|
|
@@ -649,7 +631,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
649
631
|
editingFrame: string | null;
|
|
650
632
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
651
633
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
652
|
-
editingLinearElement: import("@excalidraw/element
|
|
634
|
+
editingLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
653
635
|
penMode: boolean;
|
|
654
636
|
penDetected: boolean;
|
|
655
637
|
exportBackground: boolean;
|
|
@@ -682,7 +664,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
682
664
|
zoom: Readonly<{
|
|
683
665
|
value: import("../types").NormalizedZoomValue;
|
|
684
666
|
}>;
|
|
685
|
-
openMenu: "
|
|
667
|
+
openMenu: "canvas" | "shape" | null;
|
|
686
668
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
687
669
|
openSidebar: {
|
|
688
670
|
name: string;
|
|
@@ -765,8 +747,8 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
765
747
|
data: import("../charts").Spreadsheet;
|
|
766
748
|
};
|
|
767
749
|
pendingImageElementId: string | null;
|
|
768
|
-
showHyperlinkPopup: false | "
|
|
769
|
-
selectedLinearElement: import("@excalidraw/element
|
|
750
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
751
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
770
752
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
771
753
|
originSnapOffset: {
|
|
772
754
|
x: number;
|
|
@@ -777,22 +759,16 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
777
759
|
followedBy: Set<import("../types").SocketId>;
|
|
778
760
|
isCropping: boolean;
|
|
779
761
|
croppingElementId: string | null;
|
|
780
|
-
searchMatches:
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
offsetX: number;
|
|
785
|
-
offsetY: number;
|
|
786
|
-
width: number;
|
|
787
|
-
height: number;
|
|
788
|
-
}[];
|
|
789
|
-
}[];
|
|
762
|
+
searchMatches: Readonly<{
|
|
763
|
+
focusedId: string | null;
|
|
764
|
+
matches: readonly import("../types").SearchMatch[];
|
|
765
|
+
}> | null;
|
|
790
766
|
};
|
|
791
767
|
captureUpdate: "EVENTUALLY";
|
|
792
768
|
};
|
|
793
|
-
keyTest: (event:
|
|
769
|
+
keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false;
|
|
794
770
|
} & {
|
|
795
|
-
keyTest?: ((event:
|
|
771
|
+
keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => false) | undefined;
|
|
796
772
|
};
|
|
797
773
|
export declare const actionWrapSelectionInFrame: {
|
|
798
774
|
name: "wrapSelectionInFrame";
|
|
@@ -836,7 +812,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
836
812
|
locked: boolean;
|
|
837
813
|
customData?: Record<string, any> | undefined;
|
|
838
814
|
}> & {
|
|
839
|
-
type: "
|
|
815
|
+
type: "selection";
|
|
840
816
|
} & {
|
|
841
817
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
842
818
|
}) | (Readonly<{
|
|
@@ -873,7 +849,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
873
849
|
locked: boolean;
|
|
874
850
|
customData?: Record<string, any> | undefined;
|
|
875
851
|
}> & {
|
|
876
|
-
type: "
|
|
852
|
+
type: "rectangle";
|
|
877
853
|
} & {
|
|
878
854
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
879
855
|
}) | (Readonly<{
|
|
@@ -910,8 +886,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
910
886
|
locked: boolean;
|
|
911
887
|
customData?: Record<string, any> | undefined;
|
|
912
888
|
}> & {
|
|
913
|
-
type: "
|
|
914
|
-
name: string | null;
|
|
889
|
+
type: "diamond";
|
|
915
890
|
} & {
|
|
916
891
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
917
892
|
}) | (Readonly<{
|
|
@@ -948,8 +923,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
948
923
|
locked: boolean;
|
|
949
924
|
customData?: Record<string, any> | undefined;
|
|
950
925
|
}> & {
|
|
951
|
-
type: "
|
|
952
|
-
name: string | null;
|
|
926
|
+
type: "ellipse";
|
|
953
927
|
} & {
|
|
954
928
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
955
929
|
}) | (Readonly<{
|
|
@@ -986,7 +960,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
986
960
|
locked: boolean;
|
|
987
961
|
customData?: Record<string, any> | undefined;
|
|
988
962
|
}> & Readonly<{
|
|
989
|
-
type: "
|
|
963
|
+
type: "text";
|
|
964
|
+
fontSize: number;
|
|
965
|
+
fontFamily: number;
|
|
966
|
+
text: string;
|
|
967
|
+
textAlign: string;
|
|
968
|
+
verticalAlign: string;
|
|
969
|
+
containerId: string | null;
|
|
970
|
+
originalText: string;
|
|
971
|
+
autoResize: boolean;
|
|
972
|
+
lineHeight: number & {
|
|
973
|
+
_brand: "unitlessLineHeight";
|
|
974
|
+
};
|
|
990
975
|
}> & {
|
|
991
976
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
992
977
|
}) | (Readonly<{
|
|
@@ -1023,11 +1008,13 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1023
1008
|
locked: boolean;
|
|
1024
1009
|
customData?: Record<string, any> | undefined;
|
|
1025
1010
|
}> & Readonly<{
|
|
1026
|
-
type: "
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1011
|
+
type: "line" | "arrow";
|
|
1012
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1013
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1014
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1015
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1016
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1017
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1031
1018
|
}> & {
|
|
1032
1019
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1033
1020
|
}) | (Readonly<{
|
|
@@ -1064,10 +1051,11 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1064
1051
|
locked: boolean;
|
|
1065
1052
|
customData?: Record<string, any> | undefined;
|
|
1066
1053
|
}> & Readonly<{
|
|
1067
|
-
type: "
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1054
|
+
type: "freedraw";
|
|
1055
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1056
|
+
pressures: readonly number[];
|
|
1057
|
+
simulatePressure: boolean;
|
|
1058
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1071
1059
|
}> & {
|
|
1072
1060
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1073
1061
|
}) | (Readonly<{
|
|
@@ -1104,18 +1092,11 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1104
1092
|
locked: boolean;
|
|
1105
1093
|
customData?: Record<string, any> | undefined;
|
|
1106
1094
|
}> & Readonly<{
|
|
1107
|
-
type: "
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
verticalAlign: string;
|
|
1113
|
-
containerId: string | null;
|
|
1114
|
-
originalText: string;
|
|
1115
|
-
autoResize: boolean;
|
|
1116
|
-
lineHeight: number & {
|
|
1117
|
-
_brand: "unitlessLineHeight";
|
|
1118
|
-
};
|
|
1095
|
+
type: "image";
|
|
1096
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1097
|
+
status: "error" | "pending" | "saved";
|
|
1098
|
+
scale: [number, number];
|
|
1099
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1119
1100
|
}> & {
|
|
1120
1101
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1121
1102
|
}) | (Readonly<{
|
|
@@ -1152,7 +1133,8 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1152
1133
|
locked: boolean;
|
|
1153
1134
|
customData?: Record<string, any> | undefined;
|
|
1154
1135
|
}> & {
|
|
1155
|
-
type: "
|
|
1136
|
+
type: "frame";
|
|
1137
|
+
name: string | null;
|
|
1156
1138
|
} & {
|
|
1157
1139
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1158
1140
|
}) | (Readonly<{
|
|
@@ -1189,7 +1171,8 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1189
1171
|
locked: boolean;
|
|
1190
1172
|
customData?: Record<string, any> | undefined;
|
|
1191
1173
|
}> & {
|
|
1192
|
-
type: "
|
|
1174
|
+
type: "magicframe";
|
|
1175
|
+
name: string | null;
|
|
1193
1176
|
} & {
|
|
1194
1177
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1195
1178
|
}) | (Readonly<{
|
|
@@ -1226,13 +1209,10 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1226
1209
|
locked: boolean;
|
|
1227
1210
|
customData?: Record<string, any> | undefined;
|
|
1228
1211
|
}> & Readonly<{
|
|
1229
|
-
type: "
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1234
|
-
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1235
|
-
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1212
|
+
type: "iframe";
|
|
1213
|
+
customData?: {
|
|
1214
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
1215
|
+
} | undefined;
|
|
1236
1216
|
}> & {
|
|
1237
1217
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1238
1218
|
}) | (Readonly<{
|
|
@@ -1269,11 +1249,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1269
1249
|
locked: boolean;
|
|
1270
1250
|
customData?: Record<string, any> | undefined;
|
|
1271
1251
|
}> & Readonly<{
|
|
1272
|
-
type: "
|
|
1273
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1274
|
-
pressures: readonly number[];
|
|
1275
|
-
simulatePressure: boolean;
|
|
1276
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1252
|
+
type: "embeddable";
|
|
1277
1253
|
}> & {
|
|
1278
1254
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1279
1255
|
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|