@myoc/math 0.19.510 → 0.19.511
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/types/common/src/constants.d.ts +1 -16
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +0 -22
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +0 -6
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +0 -8
- package/dist/types/excalidraw/actions/actionGroup.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionLink.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -2
- package/dist/types/excalidraw/actions/index.d.ts +0 -1
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +2 -2
- package/dist/types/excalidraw/components/App.d.ts +2 -4
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +3 -1
- package/dist/types/excalidraw/components/icons.d.ts +0 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -6
- package/dist/types/excalidraw/data/blob.d.ts +3 -184
- package/dist/types/excalidraw/data/json.d.ts +2 -7
- package/dist/types/excalidraw/data/restore.d.ts +1 -2
- package/dist/types/excalidraw/data/types.d.ts +1 -16
- package/dist/types/excalidraw/types.d.ts +3 -30
- package/package.json +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +0 -512
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +0 -19
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +0 -19
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -2
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +0 -24
- package/dist/types/excalidraw/components/ConfirmDialog.d.ts +0 -10
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +0 -10
- package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +0 -7
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +0 -9
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +0 -17
- package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +0 -14
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +0 -23
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +0 -14
- package/dist/types/excalidraw/components/PublishLibrary.d.ts +0 -17
- package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +0 -8
- package/dist/types/excalidraw/data/library.d.ts +0 -127
- package/dist/types/excalidraw/deburr.d.ts +0 -1
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +0 -11
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +0 -1
- package/dist/types/excalidraw/hooks/useStableCallback.d.ts +0 -4
- package/dist/types/excalidraw/hooks/useTransition.d.ts +0 -2
|
@@ -181,8 +181,6 @@ export declare const STRING_MIME_TYPES: {
|
|
|
181
181
|
readonly json: "application/json";
|
|
182
182
|
readonly excalidraw: "application/vnd.excalidraw+json";
|
|
183
183
|
readonly excalidrawClipboard: "application/vnd.excalidraw.clipboard+json";
|
|
184
|
-
readonly excalidrawlib: "application/vnd.excalidrawlib+json";
|
|
185
|
-
readonly excalidrawlibIds: "application/vnd.excalidrawlib.ids+json";
|
|
186
184
|
};
|
|
187
185
|
export declare const MIME_TYPES: {
|
|
188
186
|
readonly svg: "image/svg+xml";
|
|
@@ -202,8 +200,6 @@ export declare const MIME_TYPES: {
|
|
|
202
200
|
readonly json: "application/json";
|
|
203
201
|
readonly excalidraw: "application/vnd.excalidraw+json";
|
|
204
202
|
readonly excalidrawClipboard: "application/vnd.excalidraw.clipboard+json";
|
|
205
|
-
readonly excalidrawlib: "application/vnd.excalidrawlib+json";
|
|
206
|
-
readonly excalidrawlibIds: "application/vnd.excalidrawlib.ids+json";
|
|
207
203
|
};
|
|
208
204
|
export declare const ALLOWED_PASTE_MIME_TYPES: readonly ["text/plain", "text/html", ...("image/svg+xml" | "image/png" | "image/jpeg" | "image/gif" | "image/webp" | "image/bmp" | "image/x-icon" | "image/avif" | "image/jfif")[]];
|
|
209
205
|
export declare const EXPORT_IMAGE_TYPES: {
|
|
@@ -214,7 +210,6 @@ export declare const EXPORT_IMAGE_TYPES: {
|
|
|
214
210
|
export declare const EXPORT_DATA_TYPES: {
|
|
215
211
|
readonly excalidraw: "excalidraw";
|
|
216
212
|
readonly excalidrawClipboard: "excalidraw/clipboard";
|
|
217
|
-
readonly excalidrawLibrary: "excalidrawlib";
|
|
218
213
|
readonly excalidrawClipboardWithAPI: "excalidraw-api/clipboard";
|
|
219
214
|
};
|
|
220
215
|
export declare const getExportSource: () => string;
|
|
@@ -230,12 +225,6 @@ export declare const MAX_ZOOM = 30;
|
|
|
230
225
|
export declare const HYPERLINK_TOOLTIP_DELAY = 300;
|
|
231
226
|
export declare const IDLE_THRESHOLD = 60000;
|
|
232
227
|
export declare const ACTIVE_THRESHOLD = 3000;
|
|
233
|
-
export declare const URL_QUERY_KEYS: {
|
|
234
|
-
readonly addLibrary: "addLibrary";
|
|
235
|
-
};
|
|
236
|
-
export declare const URL_HASH_KEYS: {
|
|
237
|
-
readonly addLibrary: "addLibrary";
|
|
238
|
-
};
|
|
239
228
|
export declare const DEFAULT_UI_OPTIONS: AppProps["UIOptions"];
|
|
240
229
|
export declare const MAX_DECIMALS_FOR_SVG_EXPORT = 2;
|
|
241
230
|
export declare const EXPORT_SCALES: number[];
|
|
@@ -247,7 +236,6 @@ export declare const SVG_DOCUMENT_PREAMBLE = "<?xml version=\"1.0\" standalone=\
|
|
|
247
236
|
export declare const ENCRYPTION_KEY_BITS = 128;
|
|
248
237
|
export declare const VERSIONS: {
|
|
249
238
|
readonly excalidraw: 2;
|
|
250
|
-
readonly excalidrawLibrary: 2;
|
|
251
239
|
};
|
|
252
240
|
export declare const BOUND_TEXT_PADDING = 5;
|
|
253
241
|
export declare const ARROW_LABEL_WIDTH_FRACTION = 0.7;
|
|
@@ -290,13 +278,11 @@ export declare const DEFAULT_ELEMENT_PROPS: {
|
|
|
290
278
|
opacity: ExcalidrawElement["opacity"];
|
|
291
279
|
locked: ExcalidrawElement["locked"];
|
|
292
280
|
};
|
|
293
|
-
export declare const LIBRARY_SIDEBAR_TAB = "library";
|
|
294
281
|
export declare const CANVAS_SEARCH_TAB = "search";
|
|
295
282
|
export declare const DEFAULT_SIDEBAR: {
|
|
296
283
|
readonly name: "default";
|
|
297
|
-
readonly defaultTab: "
|
|
284
|
+
readonly defaultTab: "search";
|
|
298
285
|
};
|
|
299
|
-
export declare const LIBRARY_DISABLED_TYPES: Set<"embeddable" | "iframe" | "image">;
|
|
300
286
|
export declare const TOOL_TYPE: {
|
|
301
287
|
readonly selection: "selection";
|
|
302
288
|
readonly lasso: "lasso";
|
|
@@ -318,7 +304,6 @@ export declare const TOOL_TYPE: {
|
|
|
318
304
|
export declare const EDITOR_LS_KEYS: {
|
|
319
305
|
readonly OAI_API_KEY: "excalidraw-oai-api-key";
|
|
320
306
|
readonly MERMAID_TO_EXCALIDRAW: "mermaid-to-excalidraw";
|
|
321
|
-
readonly PUBLISH_LIBRARY: "publish-library-data";
|
|
322
307
|
};
|
|
323
308
|
/**
|
|
324
309
|
* not translated as this is used only in public, stateless API as default value
|
|
@@ -122,8 +122,6 @@ export declare const actionBindText: {
|
|
|
122
122
|
} | null;
|
|
123
123
|
openDialog: null | {
|
|
124
124
|
name: "imageExport" | "help" | "jsonExport";
|
|
125
|
-
} | {
|
|
126
|
-
name: "commandPalette";
|
|
127
125
|
} | {
|
|
128
126
|
name: "settings";
|
|
129
127
|
} | {
|
|
@@ -302,8 +300,6 @@ export declare const actionWrapTextInContainer: {
|
|
|
302
300
|
} | null;
|
|
303
301
|
openDialog: null | {
|
|
304
302
|
name: "imageExport" | "help" | "jsonExport";
|
|
305
|
-
} | {
|
|
306
|
-
name: "commandPalette";
|
|
307
303
|
} | {
|
|
308
304
|
name: "settings";
|
|
309
305
|
} | {
|
|
@@ -110,8 +110,6 @@ export declare const actionZoomIn: {
|
|
|
110
110
|
} | null;
|
|
111
111
|
openDialog: null | {
|
|
112
112
|
name: "imageExport" | "help" | "jsonExport";
|
|
113
|
-
} | {
|
|
114
|
-
name: "commandPalette";
|
|
115
113
|
} | {
|
|
116
114
|
name: "settings";
|
|
117
115
|
} | {
|
|
@@ -294,8 +292,6 @@ export declare const actionZoomOut: {
|
|
|
294
292
|
} | null;
|
|
295
293
|
openDialog: null | {
|
|
296
294
|
name: "imageExport" | "help" | "jsonExport";
|
|
297
|
-
} | {
|
|
298
|
-
name: "commandPalette";
|
|
299
295
|
} | {
|
|
300
296
|
name: "settings";
|
|
301
297
|
} | {
|
|
@@ -478,8 +474,6 @@ export declare const actionResetZoom: {
|
|
|
478
474
|
} | null;
|
|
479
475
|
openDialog: null | {
|
|
480
476
|
name: "imageExport" | "help" | "jsonExport";
|
|
481
|
-
} | {
|
|
482
|
-
name: "commandPalette";
|
|
483
477
|
} | {
|
|
484
478
|
name: "settings";
|
|
485
479
|
} | {
|
|
@@ -663,8 +657,6 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
663
657
|
} | null;
|
|
664
658
|
openDialog: null | {
|
|
665
659
|
name: "imageExport" | "help" | "jsonExport";
|
|
666
|
-
} | {
|
|
667
|
-
name: "commandPalette";
|
|
668
660
|
} | {
|
|
669
661
|
name: "settings";
|
|
670
662
|
} | {
|
|
@@ -844,8 +836,6 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
844
836
|
} | null;
|
|
845
837
|
openDialog: null | {
|
|
846
838
|
name: "imageExport" | "help" | "jsonExport";
|
|
847
|
-
} | {
|
|
848
|
-
name: "commandPalette";
|
|
849
839
|
} | {
|
|
850
840
|
name: "settings";
|
|
851
841
|
} | {
|
|
@@ -1022,8 +1012,6 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1022
1012
|
} | null;
|
|
1023
1013
|
openDialog: null | {
|
|
1024
1014
|
name: "imageExport" | "help" | "jsonExport";
|
|
1025
|
-
} | {
|
|
1026
|
-
name: "commandPalette";
|
|
1027
1015
|
} | {
|
|
1028
1016
|
name: "settings";
|
|
1029
1017
|
} | {
|
|
@@ -1204,8 +1192,6 @@ export declare const actionZoomToFitSelection: {
|
|
|
1204
1192
|
} | null;
|
|
1205
1193
|
openDialog: null | {
|
|
1206
1194
|
name: "imageExport" | "help" | "jsonExport";
|
|
1207
|
-
} | {
|
|
1208
|
-
name: "commandPalette";
|
|
1209
1195
|
} | {
|
|
1210
1196
|
name: "settings";
|
|
1211
1197
|
} | {
|
|
@@ -1387,8 +1373,6 @@ export declare const actionZoomToFit: {
|
|
|
1387
1373
|
} | null;
|
|
1388
1374
|
openDialog: null | {
|
|
1389
1375
|
name: "imageExport" | "help" | "jsonExport";
|
|
1390
|
-
} | {
|
|
1391
|
-
name: "commandPalette";
|
|
1392
1376
|
} | {
|
|
1393
1377
|
name: "settings";
|
|
1394
1378
|
} | {
|
|
@@ -1568,8 +1552,6 @@ export declare const actionToggleEraserTool: {
|
|
|
1568
1552
|
} | null;
|
|
1569
1553
|
openDialog: null | {
|
|
1570
1554
|
name: "imageExport" | "help" | "jsonExport";
|
|
1571
|
-
} | {
|
|
1572
|
-
name: "commandPalette";
|
|
1573
1555
|
} | {
|
|
1574
1556
|
name: "settings";
|
|
1575
1557
|
} | {
|
|
@@ -1742,8 +1724,6 @@ export declare const actionToggleLassoTool: {
|
|
|
1742
1724
|
} | null;
|
|
1743
1725
|
openDialog: null | {
|
|
1744
1726
|
name: "imageExport" | "help" | "jsonExport";
|
|
1745
|
-
} | {
|
|
1746
|
-
name: "commandPalette";
|
|
1747
1727
|
} | {
|
|
1748
1728
|
name: "settings";
|
|
1749
1729
|
} | {
|
|
@@ -1915,8 +1895,6 @@ export declare const actionToggleHandTool: {
|
|
|
1915
1895
|
} | null;
|
|
1916
1896
|
openDialog: null | {
|
|
1917
1897
|
name: "imageExport" | "help" | "jsonExport";
|
|
1918
|
-
} | {
|
|
1919
|
-
name: "commandPalette";
|
|
1920
1898
|
} | {
|
|
1921
1899
|
name: "settings";
|
|
1922
1900
|
} | {
|
|
@@ -103,8 +103,6 @@ export declare const actionPaste: {
|
|
|
103
103
|
} | null;
|
|
104
104
|
openDialog: null | {
|
|
105
105
|
name: "imageExport" | "help" | "jsonExport";
|
|
106
|
-
} | {
|
|
107
|
-
name: "commandPalette";
|
|
108
106
|
} | {
|
|
109
107
|
name: "settings";
|
|
110
108
|
} | {
|
|
@@ -321,8 +319,6 @@ export declare const actionCopyAsPng: {
|
|
|
321
319
|
} | null;
|
|
322
320
|
openDialog: null | {
|
|
323
321
|
name: "imageExport" | "help" | "jsonExport";
|
|
324
|
-
} | {
|
|
325
|
-
name: "commandPalette";
|
|
326
322
|
} | {
|
|
327
323
|
name: "settings";
|
|
328
324
|
} | {
|
|
@@ -105,8 +105,6 @@ export declare const actionDeleteSelected: {
|
|
|
105
105
|
} | null;
|
|
106
106
|
openDialog: null | {
|
|
107
107
|
name: "imageExport" | "help" | "jsonExport";
|
|
108
|
-
} | {
|
|
109
|
-
name: "commandPalette";
|
|
110
108
|
} | {
|
|
111
109
|
name: "settings";
|
|
112
110
|
} | {
|
|
@@ -306,8 +304,6 @@ export declare const actionDeleteSelected: {
|
|
|
306
304
|
} | null;
|
|
307
305
|
openDialog: null | {
|
|
308
306
|
name: "imageExport" | "help" | "jsonExport";
|
|
309
|
-
} | {
|
|
310
|
-
name: "commandPalette";
|
|
311
307
|
} | {
|
|
312
308
|
name: "settings";
|
|
313
309
|
} | {
|
|
@@ -475,8 +471,6 @@ export declare const actionDeleteSelected: {
|
|
|
475
471
|
} | null;
|
|
476
472
|
openDialog: null | {
|
|
477
473
|
name: "imageExport" | "help" | "jsonExport";
|
|
478
|
-
} | {
|
|
479
|
-
name: "commandPalette";
|
|
480
474
|
} | {
|
|
481
475
|
name: "settings";
|
|
482
476
|
} | {
|
|
@@ -115,8 +115,6 @@ export declare const actionToggleElementLock: {
|
|
|
115
115
|
} | null;
|
|
116
116
|
openDialog: null | {
|
|
117
117
|
name: "imageExport" | "help" | "jsonExport";
|
|
118
|
-
} | {
|
|
119
|
-
name: "commandPalette";
|
|
120
118
|
} | {
|
|
121
119
|
name: "settings";
|
|
122
120
|
} | {
|
|
@@ -294,8 +292,6 @@ export declare const actionUnlockAllElements: {
|
|
|
294
292
|
} | null;
|
|
295
293
|
openDialog: null | {
|
|
296
294
|
name: "imageExport" | "help" | "jsonExport";
|
|
297
|
-
} | {
|
|
298
|
-
name: "commandPalette";
|
|
299
295
|
} | {
|
|
300
296
|
name: "settings";
|
|
301
297
|
} | {
|
|
@@ -97,8 +97,6 @@ export declare const actionLoadScene: {
|
|
|
97
97
|
viewModeEnabled: boolean;
|
|
98
98
|
openDialog: null | {
|
|
99
99
|
name: "imageExport" | "help" | "jsonExport";
|
|
100
|
-
} | {
|
|
101
|
-
name: "commandPalette";
|
|
102
100
|
} | {
|
|
103
101
|
name: "settings";
|
|
104
102
|
} | {
|
|
@@ -341,8 +339,6 @@ export declare const actionLoadScene: {
|
|
|
341
339
|
} | null;
|
|
342
340
|
openDialog: null | {
|
|
343
341
|
name: "imageExport" | "help" | "jsonExport";
|
|
344
|
-
} | {
|
|
345
|
-
name: "commandPalette";
|
|
346
342
|
} | {
|
|
347
343
|
name: "settings";
|
|
348
344
|
} | {
|
|
@@ -103,8 +103,6 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
103
103
|
} | null;
|
|
104
104
|
openDialog: null | {
|
|
105
105
|
name: "imageExport" | "help" | "jsonExport";
|
|
106
|
-
} | {
|
|
107
|
-
name: "commandPalette";
|
|
108
106
|
} | {
|
|
109
107
|
name: "settings";
|
|
110
108
|
} | {
|
|
@@ -287,8 +285,6 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
287
285
|
} | null;
|
|
288
286
|
openDialog: null | {
|
|
289
287
|
name: "imageExport" | "help" | "jsonExport";
|
|
290
|
-
} | {
|
|
291
|
-
name: "commandPalette";
|
|
292
288
|
} | {
|
|
293
289
|
name: "settings";
|
|
294
290
|
} | {
|
|
@@ -469,8 +465,6 @@ export declare const actionupdateFrameRendering: {
|
|
|
469
465
|
} | null;
|
|
470
466
|
openDialog: null | {
|
|
471
467
|
name: "imageExport" | "help" | "jsonExport";
|
|
472
|
-
} | {
|
|
473
|
-
name: "commandPalette";
|
|
474
468
|
} | {
|
|
475
469
|
name: "settings";
|
|
476
470
|
} | {
|
|
@@ -651,8 +645,6 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
651
645
|
} | null;
|
|
652
646
|
openDialog: null | {
|
|
653
647
|
name: "imageExport" | "help" | "jsonExport";
|
|
654
|
-
} | {
|
|
655
|
-
name: "commandPalette";
|
|
656
648
|
} | {
|
|
657
649
|
name: "settings";
|
|
658
650
|
} | {
|
|
@@ -109,8 +109,6 @@ export declare const actionGroup: {
|
|
|
109
109
|
} | null;
|
|
110
110
|
openDialog: null | {
|
|
111
111
|
name: "imageExport" | "help" | "jsonExport";
|
|
112
|
-
} | {
|
|
113
|
-
name: "commandPalette";
|
|
114
112
|
} | {
|
|
115
113
|
name: "settings";
|
|
116
114
|
} | {
|
|
@@ -292,8 +290,6 @@ export declare const actionUngroup: {
|
|
|
292
290
|
} | null;
|
|
293
291
|
openDialog: null | {
|
|
294
292
|
name: "imageExport" | "help" | "jsonExport";
|
|
295
|
-
} | {
|
|
296
|
-
name: "commandPalette";
|
|
297
293
|
} | {
|
|
298
294
|
name: "settings";
|
|
299
295
|
} | {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
2
2
|
export declare const actionToggleLinearEditor: {
|
|
3
3
|
name: "toggleLinearEditor";
|
|
4
|
-
category: string;
|
|
5
4
|
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
6
5
|
keywords: string[];
|
|
7
6
|
trackEvent: {
|
|
@@ -136,8 +135,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
136
135
|
} | null;
|
|
137
136
|
openDialog: null | {
|
|
138
137
|
name: "imageExport" | "help" | "jsonExport";
|
|
139
|
-
} | {
|
|
140
|
-
name: "commandPalette";
|
|
141
138
|
} | {
|
|
142
139
|
name: "settings";
|
|
143
140
|
} | {
|
|
@@ -215,7 +212,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
215
212
|
};
|
|
216
213
|
export declare const actionTogglePolygon: {
|
|
217
214
|
name: "togglePolygon";
|
|
218
|
-
category: string;
|
|
219
215
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
220
216
|
keywords: string[];
|
|
221
217
|
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
@@ -128,8 +128,6 @@ export declare const actionDecreaseFontSize: {
|
|
|
128
128
|
} | null;
|
|
129
129
|
openDialog: null | {
|
|
130
130
|
name: "imageExport" | "help" | "jsonExport";
|
|
131
|
-
} | {
|
|
132
|
-
name: "commandPalette";
|
|
133
131
|
} | {
|
|
134
132
|
name: "settings";
|
|
135
133
|
} | {
|
|
@@ -307,8 +305,6 @@ export declare const actionIncreaseFontSize: {
|
|
|
307
305
|
} | null;
|
|
308
306
|
openDialog: null | {
|
|
309
307
|
name: "imageExport" | "help" | "jsonExport";
|
|
310
|
-
} | {
|
|
311
|
-
name: "commandPalette";
|
|
312
308
|
} | {
|
|
313
309
|
name: "settings";
|
|
314
310
|
} | {
|
|
@@ -12,7 +12,6 @@ export { actionCopyStyles, actionPasteStyles } from "./actionStyles";
|
|
|
12
12
|
export { actionShortcuts } from "./actionMenu";
|
|
13
13
|
export { actionGroup, actionUngroup } from "./actionGroup";
|
|
14
14
|
export { actionGoToCollaborator } from "./actionNavigate";
|
|
15
|
-
export { actionAddToLibrary } from "./actionAddToLibrary";
|
|
16
15
|
export { actionAlignTop, actionAlignBottom, actionAlignLeft, actionAlignRight, actionAlignVerticallyCentered, actionAlignHorizontallyCentered, } from "./actionAlign";
|
|
17
16
|
export { distributeHorizontally, distributeVertically, } from "./actionDistribute";
|
|
18
17
|
export { actionArrangeElements } from "./actionArrange";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { SubtypeOf } from "@excalidraw/common/utility-types";
|
|
2
2
|
import type { ActionName } from "./types";
|
|
3
|
-
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "
|
|
3
|
+
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "viewMode" | "flipHorizontal" | "flipVertical" | "hyperlink" | "toggleElementLock" | "resetZoom" | "zoomOut" | "zoomIn" | "zoomToFit" | "zoomToFitSelectionInViewport" | "zoomToFitSelection" | "toggleEraserTool" | "toggleHandTool" | "setFrameAsActiveTool" | "saveFileToDisk" | "saveToActiveFile" | "toggleShortcuts" | "wrapSelectionInFrame" | "arrangeElements"> | "saveScene" | "imageExport" | "searchMenu" | "toolLock";
|
|
4
4
|
export declare const getShortcutFromShortcutName: (name: ShortcutName, idx?: number) => string;
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/el
|
|
|
2
2
|
import type { CaptureUpdateActionType } from "@excalidraw/element";
|
|
3
3
|
import type { AppClassProperties, AppState, ExcalidrawProps, BinaryFiles, UIAppState } from "../types";
|
|
4
4
|
import type React from "react";
|
|
5
|
-
export type ActionSource = "ui" | "keyboard" | "contextMenu" | "api"
|
|
5
|
+
export type ActionSource = "ui" | "keyboard" | "contextMenu" | "api";
|
|
6
6
|
/** if false, the action should be prevented */
|
|
7
7
|
export type ActionResult = {
|
|
8
8
|
elements?: readonly ExcalidrawElement[] | null;
|
|
@@ -14,7 +14,7 @@ export type ActionResult = {
|
|
|
14
14
|
type ActionFn<TData = any> = (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: TData | undefined, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
|
|
15
15
|
export type UpdaterFn = (res: ActionResult) => void;
|
|
16
16
|
export type ActionFilterFn = (action: Action) => void;
|
|
17
|
-
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "arrowBinding" | "midpointSnapping" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeArrowProperties" | "changeOpacity" | "changeFontSize" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "
|
|
17
|
+
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "arrowBinding" | "midpointSnapping" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeArrowProperties" | "changeOpacity" | "changeFontSize" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "arrangeElements" | "normaliseElements" | "flipHorizontal" | "flipVertical" | "deselect" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "smartZoom" | "toggleLassoTool" | "toggleShapeSwitch" | "togglePolygon";
|
|
18
18
|
export type PanelComponentProps = {
|
|
19
19
|
elements: readonly ExcalidrawElement[];
|
|
20
20
|
appState: AppState;
|
|
@@ -16,7 +16,7 @@ import { LassoTrail } from "../lasso";
|
|
|
16
16
|
import { EraserTrail } from "../eraser";
|
|
17
17
|
import { type OnStateChange } from "./AppStateObserver";
|
|
18
18
|
import type { ExportedElements } from "../data";
|
|
19
|
-
import type { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles,
|
|
19
|
+
import type { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, SceneData, FrameNameBoundsCache, SidebarName, SidebarTabName, ToolType, OnUserFollowedPayload, ExcalidrawImperativeAPIEventMap, GenerateDiagramToCode, NullableGridSize, Offsets } from "../types";
|
|
20
20
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
21
21
|
import type { ActionResult } from "../actions/types";
|
|
22
22
|
declare const editorLifecycleEventBehavior: {
|
|
@@ -80,8 +80,6 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
80
80
|
renderer: Renderer;
|
|
81
81
|
visibleElements: readonly NonDeletedExcalidrawElement[];
|
|
82
82
|
private resizeObserver;
|
|
83
|
-
library: AppClassProperties["library"];
|
|
84
|
-
libraryItemsFromStorage: LibraryItems | undefined;
|
|
85
83
|
id: string;
|
|
86
84
|
private store;
|
|
87
85
|
private history;
|
|
@@ -354,7 +352,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
354
352
|
private onTouchEnd;
|
|
355
353
|
private insertClipboardContent;
|
|
356
354
|
pasteFromClipboard: (event: ClipboardEvent) => Promise<void>;
|
|
357
|
-
|
|
355
|
+
addElementsFromPaste: (opts: {
|
|
358
356
|
elements: readonly ExcalidrawElement[];
|
|
359
357
|
files: BinaryFiles | null;
|
|
360
358
|
position: {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import "./ToolIcon.scss";
|
|
2
2
|
import "./MobileToolBar.scss";
|
|
3
|
+
import type { ActionManager } from "../actions/manager";
|
|
3
4
|
import type { AppClassProperties, UIAppState } from "../types";
|
|
4
5
|
type MobileToolBarProps = {
|
|
5
6
|
app: AppClassProperties;
|
|
7
|
+
actionManager: ActionManager;
|
|
6
8
|
onHandToolToggle: () => void;
|
|
7
9
|
setAppState: React.Component<any, UIAppState>["setState"];
|
|
8
10
|
};
|
|
9
|
-
export declare const MobileToolBar: ({ app, onHandToolToggle, setAppState, }: MobileToolBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const MobileToolBar: ({ app, actionManager, onHandToolToggle, setAppState, }: MobileToolBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -8,7 +8,6 @@ type Opts = {
|
|
|
8
8
|
} & React.SVGProps<SVGSVGElement>;
|
|
9
9
|
export declare const createIcon: (d: string | React.ReactNode, opts?: number | Opts) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare const PlusPromoIcon: import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const LibraryIcon: import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export declare const PlusIcon: import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export declare const DotsIcon: import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export declare const DotsHorizontalIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,12 +12,6 @@ export declare const SaveAsImage: {
|
|
|
12
12
|
(): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
|
-
export declare const CommandPalette: {
|
|
16
|
-
(opts?: {
|
|
17
|
-
className?: string;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
15
|
export declare const SearchMenu: {
|
|
22
16
|
(opts?: {
|
|
23
17
|
className?: string;
|