@excalidraw/common 0.18.0-508de2f3a → 0.18.0-51ad895
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/index.js +327 -46
- package/dist/dev/index.js.map +3 -3
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +20 -15
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/index.d.ts +2 -0
- package/dist/types/common/src/utils.d.ts +9 -3
- package/dist/types/common/src/visualdebug.d.ts +41 -0
- package/dist/types/element/src/binding.d.ts +55 -43
- package/dist/types/element/src/bounds.d.ts +1 -1
- package/dist/types/element/src/collision.d.ts +6 -2
- package/dist/types/element/src/delta.d.ts +4 -5
- package/dist/types/element/src/index.d.ts +1 -3
- package/dist/types/element/src/linearElementEditor.d.ts +15 -18
- package/dist/types/element/src/mutateElement.d.ts +0 -1
- package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/dist/types/element/src/renderElement.d.ts +5 -2
- package/dist/types/element/src/resizeTest.d.ts +5 -4
- package/dist/types/element/src/store.d.ts +5 -0
- package/dist/types/element/src/textElement.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +5 -4
- package/dist/types/element/src/typeChecks.d.ts +2 -3
- package/dist/types/element/src/types.d.ts +7 -11
- package/dist/types/element/src/utils.d.ts +2 -1
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +34 -13
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +25 -11
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +153 -262
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +46 -773
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -5
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +42 -23
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +11 -6
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +23 -9
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +12 -5
- package/dist/types/excalidraw/actions/actionExport.d.ts +68 -943
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -393
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +50 -24
- package/dist/types/excalidraw/actions/actionGroup.d.ts +24 -10
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +22 -19
- package/dist/types/excalidraw/actions/actionLink.d.ts +9 -2
- package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -371
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +21 -359
- package/dist/types/excalidraw/actions/actionProperties.d.ts +87 -2403
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +12 -5
- package/dist/types/excalidraw/actions/actionStyles.d.ts +13 -6
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +11 -4
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +11 -4
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -5
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +11 -4
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +11 -4
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +12 -5
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/index.d.ts +2 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/register.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -4
- package/dist/types/excalidraw/appState.d.ts +9 -4
- package/dist/types/excalidraw/clipboard.d.ts +64 -1
- package/dist/types/excalidraw/components/Actions.d.ts +21 -4
- package/dist/types/excalidraw/components/App.d.ts +36 -27
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/dist/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +11 -0
- package/dist/types/excalidraw/components/Popover.d.ts +2 -1
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TextField.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/dist/types/excalidraw/components/icons.d.ts +10 -0
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +13 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/data/blob.d.ts +3 -7
- package/dist/types/excalidraw/data/restore.d.ts +3 -3
- package/dist/types/excalidraw/data/types.d.ts +4 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/dist/types/excalidraw/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +2 -6
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
- package/dist/types/excalidraw/scene/types.d.ts +15 -3
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- package/dist/types/excalidraw/types.d.ts +32 -21
- package/dist/types/math/src/segment.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare const actionUnbindText: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
12
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
12
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
13
13
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -24,7 +24,7 @@ export declare const actionBindText: {
|
|
|
24
24
|
category: "element";
|
|
25
25
|
};
|
|
26
26
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
27
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
27
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
appState: {
|
|
30
30
|
selectedElementIds: {
|
|
@@ -48,7 +48,7 @@ export declare const actionBindText: {
|
|
|
48
48
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
49
|
isBindingEnabled: boolean;
|
|
50
50
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
51
|
-
|
|
51
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
52
52
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
53
53
|
frameRendering: {
|
|
54
54
|
enabled: boolean;
|
|
@@ -64,6 +64,10 @@ export declare const actionBindText: {
|
|
|
64
64
|
locked: boolean;
|
|
65
65
|
fromSelection: boolean;
|
|
66
66
|
} & import("../types").ActiveTool;
|
|
67
|
+
preferredSelectionTool: {
|
|
68
|
+
type: "selection" | "lasso";
|
|
69
|
+
initialized: boolean;
|
|
70
|
+
};
|
|
67
71
|
penMode: boolean;
|
|
68
72
|
penDetected: boolean;
|
|
69
73
|
exportBackground: boolean;
|
|
@@ -96,8 +100,8 @@ export declare const actionBindText: {
|
|
|
96
100
|
zoom: Readonly<{
|
|
97
101
|
value: import("../types").NormalizedZoomValue;
|
|
98
102
|
}>;
|
|
99
|
-
openMenu: "canvas" |
|
|
100
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
103
|
+
openMenu: "canvas" | null;
|
|
104
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
101
105
|
openSidebar: {
|
|
102
106
|
name: string;
|
|
103
107
|
tab?: string | undefined;
|
|
@@ -109,6 +113,8 @@ export declare const actionBindText: {
|
|
|
109
113
|
tab: "mermaid" | "text-to-diagram";
|
|
110
114
|
} | {
|
|
111
115
|
name: "commandPalette";
|
|
116
|
+
} | {
|
|
117
|
+
name: "settings";
|
|
112
118
|
} | {
|
|
113
119
|
name: "elementLinkSelector";
|
|
114
120
|
sourceElementId: string;
|
|
@@ -175,7 +181,7 @@ export declare const actionBindText: {
|
|
|
175
181
|
shown: true;
|
|
176
182
|
data: import("../charts").Spreadsheet;
|
|
177
183
|
};
|
|
178
|
-
showHyperlinkPopup: false | "
|
|
184
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
179
185
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
180
186
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
181
187
|
originSnapOffset: {
|
|
@@ -195,6 +201,7 @@ export declare const actionBindText: {
|
|
|
195
201
|
lockedMultiSelections: {
|
|
196
202
|
[groupId: string]: true;
|
|
197
203
|
};
|
|
204
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
198
205
|
};
|
|
199
206
|
captureUpdate: "IMMEDIATELY";
|
|
200
207
|
};
|
|
@@ -208,7 +215,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
208
215
|
category: "element";
|
|
209
216
|
};
|
|
210
217
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
211
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
218
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
212
219
|
elements: readonly ExcalidrawElement[];
|
|
213
220
|
appState: {
|
|
214
221
|
selectedElementIds: Mutable<Readonly<{
|
|
@@ -232,7 +239,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
232
239
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
233
240
|
isBindingEnabled: boolean;
|
|
234
241
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
235
|
-
|
|
242
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
236
243
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
237
244
|
frameRendering: {
|
|
238
245
|
enabled: boolean;
|
|
@@ -248,6 +255,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
248
255
|
locked: boolean;
|
|
249
256
|
fromSelection: boolean;
|
|
250
257
|
} & import("../types").ActiveTool;
|
|
258
|
+
preferredSelectionTool: {
|
|
259
|
+
type: "selection" | "lasso";
|
|
260
|
+
initialized: boolean;
|
|
261
|
+
};
|
|
251
262
|
penMode: boolean;
|
|
252
263
|
penDetected: boolean;
|
|
253
264
|
exportBackground: boolean;
|
|
@@ -280,8 +291,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
280
291
|
zoom: Readonly<{
|
|
281
292
|
value: import("../types").NormalizedZoomValue;
|
|
282
293
|
}>;
|
|
283
|
-
openMenu: "canvas" |
|
|
284
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
294
|
+
openMenu: "canvas" | null;
|
|
295
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
285
296
|
openSidebar: {
|
|
286
297
|
name: string;
|
|
287
298
|
tab?: string | undefined;
|
|
@@ -293,6 +304,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
293
304
|
tab: "mermaid" | "text-to-diagram";
|
|
294
305
|
} | {
|
|
295
306
|
name: "commandPalette";
|
|
307
|
+
} | {
|
|
308
|
+
name: "settings";
|
|
296
309
|
} | {
|
|
297
310
|
name: "elementLinkSelector";
|
|
298
311
|
sourceElementId: string;
|
|
@@ -359,7 +372,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
359
372
|
shown: true;
|
|
360
373
|
data: import("../charts").Spreadsheet;
|
|
361
374
|
};
|
|
362
|
-
showHyperlinkPopup: false | "
|
|
375
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
363
376
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
364
377
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
365
378
|
originSnapOffset: {
|
|
@@ -379,6 +392,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
379
392
|
lockedMultiSelections: {
|
|
380
393
|
[groupId: string]: true;
|
|
381
394
|
};
|
|
395
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
382
396
|
};
|
|
383
397
|
captureUpdate: "IMMEDIATELY";
|
|
384
398
|
};
|