@excalidraw/excalidraw 0.17.1-1ed53b1 → 0.17.1-22b3927
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/browser/dev/excalidraw-assets-dev/{chunk-JKPJV7MZ.js → chunk-Q6A4M3MN.js} +4 -2
- package/dist/browser/dev/excalidraw-assets-dev/chunk-Q6A4M3MN.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{chunk-OKAZAA6U.js → chunk-VC7RRIDZ.js} +230 -93
- package/dist/browser/dev/excalidraw-assets-dev/chunk-VC7RRIDZ.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{dist-ITJNUBZF.js → dist-6QVAH5JA.js} +36 -14
- package/dist/browser/dev/excalidraw-assets-dev/dist-6QVAH5JA.js.map +7 -0
- package/dist/browser/dev/excalidraw-assets-dev/{en-BF4XUPIZ.js → en-Y27YPU72.js} +2 -2
- package/dist/browser/dev/excalidraw-assets-dev/{image-LVS32KQQ.js → image-J7S3ALXP.js} +2 -2
- package/dist/browser/dev/index.js +335 -116
- package/dist/browser/dev/index.js.map +4 -4
- package/dist/browser/prod/excalidraw-assets/chunk-CWO763YJ.js +55 -0
- package/dist/browser/prod/excalidraw-assets/{chunk-O4AI3NNG.js → chunk-IZMZ6RPD.js} +1 -1
- package/dist/browser/prod/excalidraw-assets/dist-567JAXHK.js +7 -0
- package/dist/browser/prod/excalidraw-assets/{en-N7CLNF6C.js → en-GSUSWMSH.js} +1 -1
- package/dist/browser/prod/excalidraw-assets/image-SZBFRCU2.js +1 -0
- package/dist/browser/prod/index.js +24 -24
- package/dist/dev/{en-UQDDYCH7.json → en-OIPCBIOA.json} +3 -1
- package/dist/dev/index.js +576 -207
- package/dist/dev/index.js.map +4 -4
- package/dist/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
- package/dist/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/excalidraw/actions/actionBoundText.d.ts +3 -3
- package/dist/excalidraw/actions/actionBoundText.js +3 -1
- package/dist/excalidraw/actions/actionCanvas.d.ts +13 -13
- package/dist/excalidraw/actions/actionClipboard.d.ts +12 -12
- package/dist/excalidraw/actions/actionDeleteSelected.d.ts +3 -3
- package/dist/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/dist/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/dist/excalidraw/actions/actionExport.d.ts +11 -11
- package/dist/excalidraw/actions/actionFinalize.d.ts +2 -2
- package/dist/excalidraw/actions/actionFlip.d.ts +2 -2
- package/dist/excalidraw/actions/actionFrame.d.ts +312 -4
- package/dist/excalidraw/actions/actionGroup.d.ts +312 -2
- package/dist/excalidraw/actions/actionHistory.js +4 -4
- package/dist/excalidraw/actions/actionLinearEditor.d.ts +1 -1
- package/dist/excalidraw/actions/actionLink.d.ts +1 -1
- package/dist/excalidraw/actions/actionMenu.d.ts +3 -3
- package/dist/excalidraw/actions/actionNavigate.d.ts +2 -2
- package/dist/excalidraw/actions/actionProperties.d.ts +13 -13
- package/dist/excalidraw/actions/actionProperties.js +1 -1
- package/dist/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/dist/excalidraw/actions/actionStyles.d.ts +5 -2
- package/dist/excalidraw/actions/actionTextAutoResize.d.ts +17 -0
- package/dist/excalidraw/actions/actionTextAutoResize.js +38 -0
- package/dist/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
- package/dist/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
- package/dist/excalidraw/actions/actionToggleStats.d.ts +1 -1
- package/dist/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
- package/dist/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
- package/dist/excalidraw/actions/actionZindex.d.ts +4 -4
- package/dist/excalidraw/actions/types.d.ts +1 -1
- package/dist/excalidraw/change.js +13 -6
- package/dist/excalidraw/components/Actions.js +1 -1
- package/dist/excalidraw/components/App.d.ts +2 -2
- package/dist/excalidraw/components/App.js +133 -51
- package/dist/excalidraw/components/ButtonIconSelect.js +1 -1
- package/dist/excalidraw/components/CheckboxItem.js +1 -1
- package/dist/excalidraw/components/CommandPalette/CommandPalette.js +2 -2
- package/dist/excalidraw/components/ContextMenu.js +1 -1
- package/dist/excalidraw/components/Dialog.js +1 -1
- package/dist/excalidraw/components/FollowMode/FollowMode.js +1 -1
- package/dist/excalidraw/components/IconPicker.js +2 -2
- package/dist/excalidraw/components/LayerUI.js +2 -2
- package/dist/excalidraw/components/MobileMenu.js +1 -1
- package/dist/excalidraw/components/PasteChartDialog.js +1 -1
- package/dist/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/dist/excalidraw/components/canvases/InteractiveCanvas.js +4 -2
- package/dist/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/excalidraw/components/canvases/StaticCanvas.js +2 -2
- package/dist/excalidraw/components/icons.js +6 -2
- package/dist/excalidraw/constants.d.ts +1 -0
- package/dist/excalidraw/constants.js +5 -0
- package/dist/excalidraw/data/restore.js +3 -0
- package/dist/excalidraw/element/dragElements.d.ts +2 -2
- package/dist/excalidraw/element/dragElements.js +27 -3
- package/dist/excalidraw/element/embeddable.d.ts +1 -1
- package/dist/excalidraw/element/index.d.ts +1 -1
- package/dist/excalidraw/element/index.js +1 -1
- package/dist/excalidraw/element/mutateElement.d.ts +1 -1
- package/dist/excalidraw/element/mutateElement.js +5 -3
- package/dist/excalidraw/element/newElement.d.ts +2 -5
- package/dist/excalidraw/element/newElement.js +16 -14
- package/dist/excalidraw/element/resizeElements.js +73 -21
- package/dist/excalidraw/element/resizeTest.js +2 -4
- package/dist/excalidraw/element/textElement.d.ts +1 -0
- package/dist/excalidraw/element/textElement.js +11 -3
- package/dist/excalidraw/element/textWysiwyg.d.ts +10 -4
- package/dist/excalidraw/element/textWysiwyg.js +38 -17
- package/dist/excalidraw/element/transformHandles.js +0 -10
- package/dist/excalidraw/element/types.d.ts +7 -0
- package/dist/excalidraw/fractionalIndex.js +2 -4
- package/dist/excalidraw/locales/en.json +3 -1
- package/dist/excalidraw/mermaid.d.ts +2 -0
- package/dist/excalidraw/mermaid.js +28 -0
- package/dist/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/dist/excalidraw/renderer/interactiveScene.js +31 -5
- package/dist/excalidraw/renderer/renderElement.d.ts +2 -2
- package/dist/excalidraw/renderer/renderElement.js +2 -2
- package/dist/excalidraw/scene/Fonts.d.ts +1 -3
- package/dist/excalidraw/scene/Fonts.js +6 -12
- package/dist/excalidraw/scene/Renderer.d.ts +1 -1
- package/dist/excalidraw/scene/Renderer.js +2 -3
- package/dist/excalidraw/scene/Scene.d.ts +10 -4
- package/dist/excalidraw/scene/Scene.js +14 -8
- package/dist/excalidraw/scene/export.js +1 -1
- package/dist/excalidraw/scene/types.d.ts +2 -1
- package/dist/excalidraw/snapping.js +2 -1
- package/dist/excalidraw/store.d.ts +32 -2
- package/dist/excalidraw/store.js +27 -0
- package/dist/excalidraw/types.d.ts +1 -0
- package/dist/prod/{en-UQDDYCH7.json → en-OIPCBIOA.json} +3 -1
- package/dist/prod/index.js +42 -42
- package/package.json +2 -2
- package/dist/browser/dev/excalidraw-assets-dev/chunk-JKPJV7MZ.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/chunk-OKAZAA6U.js.map +0 -7
- package/dist/browser/dev/excalidraw-assets-dev/dist-ITJNUBZF.js.map +0 -7
- package/dist/browser/prod/excalidraw-assets/chunk-SXBDZOS3.js +0 -55
- package/dist/browser/prod/excalidraw-assets/dist-54276HPL.js +0 -6
- package/dist/browser/prod/excalidraw-assets/image-VAGBVQ3G.js +0 -1
- /package/dist/browser/dev/excalidraw-assets-dev/{en-BF4XUPIZ.js.map → en-Y27YPU72.js.map} +0 -0
- /package/dist/browser/dev/excalidraw-assets-dev/{image-LVS32KQQ.js.map → image-J7S3ALXP.js.map} +0 -0
|
@@ -5,7 +5,7 @@ export declare const actionAddToLibrary: {
|
|
|
5
5
|
category: "element";
|
|
6
6
|
};
|
|
7
7
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
8
|
-
storeAction:
|
|
8
|
+
storeAction: "none";
|
|
9
9
|
appState: {
|
|
10
10
|
toast: {
|
|
11
11
|
message: string;
|
|
@@ -157,7 +157,7 @@ export declare const actionAddToLibrary: {
|
|
|
157
157
|
followedBy: Set<import("../types").SocketId>;
|
|
158
158
|
};
|
|
159
159
|
} | {
|
|
160
|
-
storeAction:
|
|
160
|
+
storeAction: "none";
|
|
161
161
|
appState: {
|
|
162
162
|
errorMessage: any;
|
|
163
163
|
contextMenu: {
|
|
@@ -311,7 +311,7 @@ export declare const actionAddToLibrary: {
|
|
|
311
311
|
followedBy: Set<import("../types").SocketId>;
|
|
312
312
|
};
|
|
313
313
|
}> | {
|
|
314
|
-
storeAction:
|
|
314
|
+
storeAction: "none";
|
|
315
315
|
appState: {
|
|
316
316
|
errorMessage: string;
|
|
317
317
|
contextMenu: {
|
|
@@ -12,7 +12,7 @@ export declare const actionAlignTop: {
|
|
|
12
12
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
elements: ExcalidrawElement[];
|
|
15
|
-
storeAction:
|
|
15
|
+
storeAction: "capture";
|
|
16
16
|
};
|
|
17
17
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
18
18
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -30,7 +30,7 @@ export declare const actionAlignBottom: {
|
|
|
30
30
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
31
31
|
appState: Readonly<AppState>;
|
|
32
32
|
elements: ExcalidrawElement[];
|
|
33
|
-
storeAction:
|
|
33
|
+
storeAction: "capture";
|
|
34
34
|
};
|
|
35
35
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
36
36
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -48,7 +48,7 @@ export declare const actionAlignLeft: {
|
|
|
48
48
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
49
49
|
appState: Readonly<AppState>;
|
|
50
50
|
elements: ExcalidrawElement[];
|
|
51
|
-
storeAction:
|
|
51
|
+
storeAction: "capture";
|
|
52
52
|
};
|
|
53
53
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
54
54
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -66,7 +66,7 @@ export declare const actionAlignRight: {
|
|
|
66
66
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
67
67
|
appState: Readonly<AppState>;
|
|
68
68
|
elements: ExcalidrawElement[];
|
|
69
|
-
storeAction:
|
|
69
|
+
storeAction: "capture";
|
|
70
70
|
};
|
|
71
71
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
72
72
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -84,7 +84,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
84
84
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
85
85
|
appState: Readonly<AppState>;
|
|
86
86
|
elements: ExcalidrawElement[];
|
|
87
|
-
storeAction:
|
|
87
|
+
storeAction: "capture";
|
|
88
88
|
};
|
|
89
89
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
90
90
|
} & {
|
|
@@ -101,7 +101,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
101
101
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
102
102
|
appState: Readonly<AppState>;
|
|
103
103
|
elements: ExcalidrawElement[];
|
|
104
|
-
storeAction:
|
|
104
|
+
storeAction: "capture";
|
|
105
105
|
};
|
|
106
106
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
107
107
|
} & {
|
|
@@ -12,7 +12,7 @@ export declare const actionUnbindText: {
|
|
|
12
12
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
13
13
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
|
-
storeAction:
|
|
15
|
+
storeAction: "capture";
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
18
|
keyTest?: undefined;
|
|
@@ -178,7 +178,7 @@ export declare const actionBindText: {
|
|
|
178
178
|
userToFollow: import("../types").UserToFollow | null;
|
|
179
179
|
followedBy: Set<import("../types").SocketId>;
|
|
180
180
|
};
|
|
181
|
-
storeAction:
|
|
181
|
+
storeAction: "capture";
|
|
182
182
|
};
|
|
183
183
|
} & {
|
|
184
184
|
keyTest?: undefined;
|
|
@@ -344,7 +344,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
344
344
|
userToFollow: import("../types").UserToFollow | null;
|
|
345
345
|
followedBy: Set<import("../types").SocketId>;
|
|
346
346
|
};
|
|
347
|
-
storeAction:
|
|
347
|
+
storeAction: "capture";
|
|
348
348
|
};
|
|
349
349
|
} & {
|
|
350
350
|
keyTest?: undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BOUND_TEXT_PADDING, ROUNDNESS,
|
|
1
|
+
import { BOUND_TEXT_PADDING, ROUNDNESS, TEXT_ALIGN, VERTICAL_ALIGN, } from "../constants";
|
|
2
2
|
import { isTextElement, newElement } from "../element";
|
|
3
3
|
import { mutateElement } from "../element/mutateElement";
|
|
4
4
|
import { computeBoundTextPosition, computeContainerDimensionForBoundText, getBoundTextElement, measureText, redrawTextBoundingBox, } from "../element/textElement";
|
|
@@ -90,6 +90,7 @@ export const actionBindText = register({
|
|
|
90
90
|
containerId: container.id,
|
|
91
91
|
verticalAlign: VERTICAL_ALIGN.MIDDLE,
|
|
92
92
|
textAlign: TEXT_ALIGN.CENTER,
|
|
93
|
+
autoResize: true,
|
|
93
94
|
});
|
|
94
95
|
mutateElement(container, {
|
|
95
96
|
boundElements: (container.boundElements || []).concat({
|
|
@@ -199,6 +200,7 @@ export const actionWrapTextInContainer = register({
|
|
|
199
200
|
verticalAlign: VERTICAL_ALIGN.MIDDLE,
|
|
200
201
|
boundElements: null,
|
|
201
202
|
textAlign: TEXT_ALIGN.CENTER,
|
|
203
|
+
autoResize: true,
|
|
202
204
|
}, false);
|
|
203
205
|
redrawTextBoundingBox(textElement, container, app.scene.getNonDeletedElementsMap());
|
|
204
206
|
updatedElements = pushContainerBelowText([...updatedElements, container], container, textElement);
|
|
@@ -10,7 +10,7 @@ export declare const actionChangeViewBackgroundColor: {
|
|
|
10
10
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
11
|
perform: (_: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
12
12
|
appState: any;
|
|
13
|
-
storeAction:
|
|
13
|
+
storeAction: "none" | "capture";
|
|
14
14
|
};
|
|
15
15
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => JSX.Element;
|
|
16
16
|
} & {
|
|
@@ -176,7 +176,7 @@ export declare const actionClearCanvas: {
|
|
|
176
176
|
userToFollow: import("../types").UserToFollow | null;
|
|
177
177
|
followedBy: Set<import("../types").SocketId>;
|
|
178
178
|
};
|
|
179
|
-
storeAction:
|
|
179
|
+
storeAction: "capture";
|
|
180
180
|
};
|
|
181
181
|
} & {
|
|
182
182
|
keyTest?: undefined;
|
|
@@ -342,7 +342,7 @@ export declare const actionZoomIn: {
|
|
|
342
342
|
objectsSnapModeEnabled: boolean;
|
|
343
343
|
followedBy: Set<import("../types").SocketId>;
|
|
344
344
|
};
|
|
345
|
-
storeAction:
|
|
345
|
+
storeAction: "none";
|
|
346
346
|
};
|
|
347
347
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
348
348
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -510,7 +510,7 @@ export declare const actionZoomOut: {
|
|
|
510
510
|
objectsSnapModeEnabled: boolean;
|
|
511
511
|
followedBy: Set<import("../types").SocketId>;
|
|
512
512
|
};
|
|
513
|
-
storeAction:
|
|
513
|
+
storeAction: "none";
|
|
514
514
|
};
|
|
515
515
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
516
516
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -678,7 +678,7 @@ export declare const actionResetZoom: {
|
|
|
678
678
|
objectsSnapModeEnabled: boolean;
|
|
679
679
|
followedBy: Set<import("../types").SocketId>;
|
|
680
680
|
};
|
|
681
|
-
storeAction:
|
|
681
|
+
storeAction: "none";
|
|
682
682
|
};
|
|
683
683
|
PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => JSX.Element;
|
|
684
684
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -845,7 +845,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, fitToViewport, viewpo
|
|
|
845
845
|
userToFollow: import("../types").UserToFollow | null;
|
|
846
846
|
followedBy: Set<import("../types").SocketId>;
|
|
847
847
|
};
|
|
848
|
-
storeAction:
|
|
848
|
+
storeAction: "none";
|
|
849
849
|
};
|
|
850
850
|
export declare const zoomToFit: ({ targetElements, appState, fitToViewport, viewportZoomFactor, }: {
|
|
851
851
|
targetElements: readonly ExcalidrawElement[];
|
|
@@ -1007,7 +1007,7 @@ export declare const zoomToFit: ({ targetElements, appState, fitToViewport, view
|
|
|
1007
1007
|
userToFollow: import("../types").UserToFollow | null;
|
|
1008
1008
|
followedBy: Set<import("../types").SocketId>;
|
|
1009
1009
|
};
|
|
1010
|
-
storeAction:
|
|
1010
|
+
storeAction: "none";
|
|
1011
1011
|
};
|
|
1012
1012
|
export declare const actionZoomToFitSelectionInViewport: {
|
|
1013
1013
|
name: "zoomToFitSelectionInViewport";
|
|
@@ -1169,7 +1169,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1169
1169
|
userToFollow: import("../types").UserToFollow | null;
|
|
1170
1170
|
followedBy: Set<import("../types").SocketId>;
|
|
1171
1171
|
};
|
|
1172
|
-
storeAction:
|
|
1172
|
+
storeAction: "none";
|
|
1173
1173
|
};
|
|
1174
1174
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1175
1175
|
} & {
|
|
@@ -1335,7 +1335,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1335
1335
|
userToFollow: import("../types").UserToFollow | null;
|
|
1336
1336
|
followedBy: Set<import("../types").SocketId>;
|
|
1337
1337
|
};
|
|
1338
|
-
storeAction:
|
|
1338
|
+
storeAction: "none";
|
|
1339
1339
|
};
|
|
1340
1340
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1341
1341
|
} & {
|
|
@@ -1502,7 +1502,7 @@ export declare const actionZoomToFit: {
|
|
|
1502
1502
|
userToFollow: import("../types").UserToFollow | null;
|
|
1503
1503
|
followedBy: Set<import("../types").SocketId>;
|
|
1504
1504
|
};
|
|
1505
|
-
storeAction:
|
|
1505
|
+
storeAction: "none";
|
|
1506
1506
|
};
|
|
1507
1507
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1508
1508
|
} & {
|
|
@@ -1670,7 +1670,7 @@ export declare const actionToggleTheme: {
|
|
|
1670
1670
|
userToFollow: import("../types").UserToFollow | null;
|
|
1671
1671
|
followedBy: Set<import("../types").SocketId>;
|
|
1672
1672
|
};
|
|
1673
|
-
storeAction:
|
|
1673
|
+
storeAction: "none";
|
|
1674
1674
|
};
|
|
1675
1675
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1676
1676
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
@@ -1829,7 +1829,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1829
1829
|
userToFollow: import("../types").UserToFollow | null;
|
|
1830
1830
|
followedBy: Set<import("../types").SocketId>;
|
|
1831
1831
|
};
|
|
1832
|
-
storeAction:
|
|
1832
|
+
storeAction: "capture";
|
|
1833
1833
|
};
|
|
1834
1834
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1835
1835
|
} & {
|
|
@@ -1990,7 +1990,7 @@ export declare const actionToggleHandTool: {
|
|
|
1990
1990
|
userToFollow: import("../types").UserToFollow | null;
|
|
1991
1991
|
followedBy: Set<import("../types").SocketId>;
|
|
1992
1992
|
};
|
|
1993
|
-
storeAction:
|
|
1993
|
+
storeAction: "capture";
|
|
1994
1994
|
};
|
|
1995
1995
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1996
1996
|
} & {
|
|
@@ -7,7 +7,7 @@ export declare const actionCopy: {
|
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
9
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, event: ClipboardEvent | null, app: import("../types").AppClassProperties) => Promise<{
|
|
10
|
-
storeAction:
|
|
10
|
+
storeAction: "none";
|
|
11
11
|
appState: {
|
|
12
12
|
errorMessage: any;
|
|
13
13
|
contextMenu: {
|
|
@@ -161,7 +161,7 @@ export declare const actionCopy: {
|
|
|
161
161
|
followedBy: Set<import("../types").SocketId>;
|
|
162
162
|
};
|
|
163
163
|
} | {
|
|
164
|
-
storeAction:
|
|
164
|
+
storeAction: "none";
|
|
165
165
|
appState?: undefined;
|
|
166
166
|
}>;
|
|
167
167
|
keyTest: undefined;
|
|
@@ -175,7 +175,7 @@ export declare const actionPaste: {
|
|
|
175
175
|
category: "element";
|
|
176
176
|
};
|
|
177
177
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, data: any, app: import("../types").AppClassProperties) => Promise<false | {
|
|
178
|
-
storeAction:
|
|
178
|
+
storeAction: "none";
|
|
179
179
|
appState: {
|
|
180
180
|
errorMessage: string;
|
|
181
181
|
contextMenu: {
|
|
@@ -329,7 +329,7 @@ export declare const actionPaste: {
|
|
|
329
329
|
followedBy: Set<import("../types").SocketId>;
|
|
330
330
|
};
|
|
331
331
|
} | {
|
|
332
|
-
storeAction:
|
|
332
|
+
storeAction: "none";
|
|
333
333
|
appState?: undefined;
|
|
334
334
|
}>;
|
|
335
335
|
keyTest: undefined;
|
|
@@ -497,7 +497,7 @@ export declare const actionCut: {
|
|
|
497
497
|
userToFollow: import("../types").UserToFollow | null;
|
|
498
498
|
followedBy: Set<import("../types").SocketId>;
|
|
499
499
|
};
|
|
500
|
-
storeAction:
|
|
500
|
+
storeAction: "capture";
|
|
501
501
|
} | {
|
|
502
502
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
503
503
|
appState: {
|
|
@@ -680,7 +680,7 @@ export declare const actionCut: {
|
|
|
680
680
|
userToFollow: import("../types").UserToFollow | null;
|
|
681
681
|
followedBy: Set<import("../types").SocketId>;
|
|
682
682
|
};
|
|
683
|
-
storeAction:
|
|
683
|
+
storeAction: "capture";
|
|
684
684
|
} | {
|
|
685
685
|
elements: import("../element/types").ExcalidrawElement[];
|
|
686
686
|
appState: {
|
|
@@ -828,7 +828,7 @@ export declare const actionCut: {
|
|
|
828
828
|
userToFollow: import("../types").UserToFollow | null;
|
|
829
829
|
followedBy: Set<import("../types").SocketId>;
|
|
830
830
|
};
|
|
831
|
-
storeAction:
|
|
831
|
+
storeAction: "none" | "capture";
|
|
832
832
|
};
|
|
833
833
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
834
834
|
} & {
|
|
@@ -842,7 +842,7 @@ export declare const actionCopyAsSvg: {
|
|
|
842
842
|
category: "element";
|
|
843
843
|
};
|
|
844
844
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
845
|
-
storeAction:
|
|
845
|
+
storeAction: "none";
|
|
846
846
|
appState?: undefined;
|
|
847
847
|
} | {
|
|
848
848
|
appState: {
|
|
@@ -997,7 +997,7 @@ export declare const actionCopyAsSvg: {
|
|
|
997
997
|
userToFollow: import("../types").UserToFollow | null;
|
|
998
998
|
followedBy: Set<import("../types").SocketId>;
|
|
999
999
|
};
|
|
1000
|
-
storeAction:
|
|
1000
|
+
storeAction: "none";
|
|
1001
1001
|
}>;
|
|
1002
1002
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1003
1003
|
keywords: string[];
|
|
@@ -1012,7 +1012,7 @@ export declare const actionCopyAsPng: {
|
|
|
1012
1012
|
category: "element";
|
|
1013
1013
|
};
|
|
1014
1014
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _data: any, app: import("../types").AppClassProperties) => Promise<{
|
|
1015
|
-
storeAction:
|
|
1015
|
+
storeAction: "none";
|
|
1016
1016
|
appState?: undefined;
|
|
1017
1017
|
} | {
|
|
1018
1018
|
appState: {
|
|
@@ -1167,7 +1167,7 @@ export declare const actionCopyAsPng: {
|
|
|
1167
1167
|
userToFollow: import("../types").UserToFollow | null;
|
|
1168
1168
|
followedBy: Set<import("../types").SocketId>;
|
|
1169
1169
|
};
|
|
1170
|
-
storeAction:
|
|
1170
|
+
storeAction: "none";
|
|
1171
1171
|
}>;
|
|
1172
1172
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[]) => boolean;
|
|
1173
1173
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -1182,7 +1182,7 @@ export declare const copyText: {
|
|
|
1182
1182
|
category: "element";
|
|
1183
1183
|
};
|
|
1184
1184
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
1185
|
-
storeAction:
|
|
1185
|
+
storeAction: "none";
|
|
1186
1186
|
};
|
|
1187
1187
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1188
1188
|
keywords: string[];
|
|
@@ -164,7 +164,7 @@ export declare const actionDeleteSelected: {
|
|
|
164
164
|
userToFollow: import("../types").UserToFollow | null;
|
|
165
165
|
followedBy: Set<import("../types").SocketId>;
|
|
166
166
|
};
|
|
167
|
-
storeAction:
|
|
167
|
+
storeAction: "capture";
|
|
168
168
|
} | {
|
|
169
169
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
170
170
|
appState: {
|
|
@@ -347,7 +347,7 @@ export declare const actionDeleteSelected: {
|
|
|
347
347
|
userToFollow: import("../types").UserToFollow | null;
|
|
348
348
|
followedBy: Set<import("../types").SocketId>;
|
|
349
349
|
};
|
|
350
|
-
storeAction:
|
|
350
|
+
storeAction: "capture";
|
|
351
351
|
} | {
|
|
352
352
|
elements: ExcalidrawElement[];
|
|
353
353
|
appState: {
|
|
@@ -495,7 +495,7 @@ export declare const actionDeleteSelected: {
|
|
|
495
495
|
userToFollow: import("../types").UserToFollow | null;
|
|
496
496
|
followedBy: Set<import("../types").SocketId>;
|
|
497
497
|
};
|
|
498
|
-
storeAction:
|
|
498
|
+
storeAction: "none" | "capture";
|
|
499
499
|
};
|
|
500
500
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
501
501
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -10,7 +10,7 @@ export declare const distributeHorizontally: {
|
|
|
10
10
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
11
11
|
appState: Readonly<AppState>;
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
|
-
storeAction:
|
|
13
|
+
storeAction: "capture";
|
|
14
14
|
};
|
|
15
15
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
16
16
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -26,7 +26,7 @@ export declare const distributeVertically: {
|
|
|
26
26
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
27
27
|
appState: Readonly<AppState>;
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
|
-
storeAction:
|
|
29
|
+
storeAction: "capture";
|
|
30
30
|
};
|
|
31
31
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
32
32
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -9,7 +9,7 @@ export declare const actionDuplicateSelection: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
12
|
-
storeAction:
|
|
12
|
+
storeAction: "capture";
|
|
13
13
|
elements?: readonly ExcalidrawElement[] | null | undefined;
|
|
14
14
|
appState?: import("../utility-types").MarkOptional<AppState, "width" | "height" | "offsetTop" | "offsetLeft"> | null | undefined;
|
|
15
15
|
files?: import("../types").BinaryFiles | null | undefined;
|
|
@@ -162,7 +162,7 @@ export declare const actionToggleElementLock: {
|
|
|
162
162
|
userToFollow: import("../types").UserToFollow | null;
|
|
163
163
|
followedBy: Set<import("../types").SocketId>;
|
|
164
164
|
};
|
|
165
|
-
storeAction:
|
|
165
|
+
storeAction: "capture";
|
|
166
166
|
};
|
|
167
167
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
168
168
|
} & {
|
|
@@ -331,7 +331,7 @@ export declare const actionUnlockAllElements: {
|
|
|
331
331
|
userToFollow: import("../types").UserToFollow | null;
|
|
332
332
|
followedBy: Set<import("../types").SocketId>;
|
|
333
333
|
};
|
|
334
|
-
storeAction:
|
|
334
|
+
storeAction: "capture";
|
|
335
335
|
};
|
|
336
336
|
label: string;
|
|
337
337
|
} & {
|
|
@@ -158,7 +158,7 @@ export declare const actionChangeProjectName: {
|
|
|
158
158
|
userToFollow: import("../types").UserToFollow | null;
|
|
159
159
|
followedBy: Set<import("../types").SocketId>;
|
|
160
160
|
};
|
|
161
|
-
storeAction:
|
|
161
|
+
storeAction: "none";
|
|
162
162
|
};
|
|
163
163
|
PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => JSX.Element;
|
|
164
164
|
} & {
|
|
@@ -324,7 +324,7 @@ export declare const actionChangeExportScale: {
|
|
|
324
324
|
userToFollow: import("../types").UserToFollow | null;
|
|
325
325
|
followedBy: Set<import("../types").SocketId>;
|
|
326
326
|
};
|
|
327
|
-
storeAction:
|
|
327
|
+
storeAction: "none";
|
|
328
328
|
};
|
|
329
329
|
PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
330
330
|
} & {
|
|
@@ -490,7 +490,7 @@ export declare const actionChangeExportBackground: {
|
|
|
490
490
|
userToFollow: import("../types").UserToFollow | null;
|
|
491
491
|
followedBy: Set<import("../types").SocketId>;
|
|
492
492
|
};
|
|
493
|
-
storeAction:
|
|
493
|
+
storeAction: "none";
|
|
494
494
|
};
|
|
495
495
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
496
496
|
} & {
|
|
@@ -656,7 +656,7 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
656
656
|
userToFollow: import("../types").UserToFollow | null;
|
|
657
657
|
followedBy: Set<import("../types").SocketId>;
|
|
658
658
|
};
|
|
659
|
-
storeAction:
|
|
659
|
+
storeAction: "none";
|
|
660
660
|
};
|
|
661
661
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
662
662
|
} & {
|
|
@@ -671,7 +671,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
671
671
|
};
|
|
672
672
|
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
673
673
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
674
|
-
storeAction:
|
|
674
|
+
storeAction: "none";
|
|
675
675
|
appState: {
|
|
676
676
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
677
677
|
toast: {
|
|
@@ -823,7 +823,7 @@ export declare const actionSaveToActiveFile: {
|
|
|
823
823
|
followedBy: Set<import("../types").SocketId>;
|
|
824
824
|
};
|
|
825
825
|
} | {
|
|
826
|
-
storeAction:
|
|
826
|
+
storeAction: "none";
|
|
827
827
|
appState?: undefined;
|
|
828
828
|
}>;
|
|
829
829
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -839,7 +839,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
839
839
|
category: "export";
|
|
840
840
|
};
|
|
841
841
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
|
|
842
|
-
storeAction:
|
|
842
|
+
storeAction: "none";
|
|
843
843
|
appState: {
|
|
844
844
|
openDialog: null;
|
|
845
845
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
@@ -980,7 +980,7 @@ export declare const actionSaveFileToDisk: {
|
|
|
980
980
|
followedBy: Set<import("../types").SocketId>;
|
|
981
981
|
};
|
|
982
982
|
} | {
|
|
983
|
-
storeAction:
|
|
983
|
+
storeAction: "none";
|
|
984
984
|
appState?: undefined;
|
|
985
985
|
}>;
|
|
986
986
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -1146,7 +1146,7 @@ export declare const actionLoadScene: {
|
|
|
1146
1146
|
followedBy: Set<import("../types").SocketId>;
|
|
1147
1147
|
};
|
|
1148
1148
|
files: import("../types").BinaryFiles;
|
|
1149
|
-
storeAction:
|
|
1149
|
+
storeAction: "capture";
|
|
1150
1150
|
} | {
|
|
1151
1151
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
1152
1152
|
appState: {
|
|
@@ -1302,7 +1302,7 @@ export declare const actionLoadScene: {
|
|
|
1302
1302
|
followedBy: Set<import("../types").SocketId>;
|
|
1303
1303
|
};
|
|
1304
1304
|
files: import("../types").BinaryFiles;
|
|
1305
|
-
storeAction:
|
|
1305
|
+
storeAction: "none";
|
|
1306
1306
|
}>;
|
|
1307
1307
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1308
1308
|
} & {
|
|
@@ -1468,7 +1468,7 @@ export declare const actionExportWithDarkMode: {
|
|
|
1468
1468
|
userToFollow: import("../types").UserToFollow | null;
|
|
1469
1469
|
followedBy: Set<import("../types").SocketId>;
|
|
1470
1470
|
};
|
|
1471
|
-
storeAction:
|
|
1471
|
+
storeAction: "none";
|
|
1472
1472
|
};
|
|
1473
1473
|
PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => JSX.Element;
|
|
1474
1474
|
} & {
|
|
@@ -159,7 +159,7 @@ export declare const actionFinalize: {
|
|
|
159
159
|
userToFollow: import("../types").UserToFollow | null;
|
|
160
160
|
followedBy: Set<import("../types").SocketId>;
|
|
161
161
|
};
|
|
162
|
-
storeAction:
|
|
162
|
+
storeAction: "capture";
|
|
163
163
|
} | {
|
|
164
164
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
165
165
|
appState: {
|
|
@@ -311,7 +311,7 @@ export declare const actionFinalize: {
|
|
|
311
311
|
userToFollow: import("../types").UserToFollow | null;
|
|
312
312
|
followedBy: Set<import("../types").SocketId>;
|
|
313
313
|
};
|
|
314
|
-
storeAction:
|
|
314
|
+
storeAction: "capture";
|
|
315
315
|
};
|
|
316
316
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState) => boolean;
|
|
317
317
|
PanelComponent: ({ appState, updateData, data }: import("./types").PanelComponentProps) => JSX.Element;
|
|
@@ -11,7 +11,7 @@ export declare const actionFlipHorizontal: {
|
|
|
11
11
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
|
-
storeAction:
|
|
14
|
+
storeAction: "capture";
|
|
15
15
|
};
|
|
16
16
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
17
17
|
} & {
|
|
@@ -27,7 +27,7 @@ export declare const actionFlipVertical: {
|
|
|
27
27
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
appState: Readonly<AppState>;
|
|
30
|
-
storeAction:
|
|
30
|
+
storeAction: "capture";
|
|
31
31
|
};
|
|
32
32
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
33
33
|
} & {
|