@myoc/excalidraw 0.18.1 → 0.18.3
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-IVKGBVG7.js → chunk-3K6YEH7O.js} +2 -2
- package/dist/dev/{chunk-IVKGBVG7.js.map → chunk-3K6YEH7O.js.map} +1 -1
- package/dist/dev/{chunk-DYSQNY2T.js → chunk-6MXLCRC3.js} +2 -1
- package/dist/dev/chunk-6MXLCRC3.js.map +7 -0
- package/dist/dev/{chunk-ND5KUA7P.js → chunk-S4MA4GYT.js} +16541 -21170
- package/dist/dev/chunk-S4MA4GYT.js.map +7 -0
- package/dist/dev/data/{image-ZD4HK457.js → image-I5I3FC2R.js} +3 -3
- package/dist/dev/index.css +44 -47
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +6642 -1356
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-IW3FTNXY.js → en-FBYNI7ML.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-Y5S6JYT2.js → chunk-6NO4X5TH.js} +1 -1
- package/dist/prod/chunk-7TL427PR.js +31 -0
- package/dist/prod/{chunk-SIW4TYTH.js → chunk-ECENQK44.js} +1 -1
- package/dist/prod/data/image-TMH4UP47.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +17 -14
- package/dist/prod/locales/{en-3JJA6ONK.js → en-RF5UZHGV.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
- package/dist/types/{excalidraw → common/src}/colors.d.ts +1 -0
- package/dist/types/{excalidraw → common/src}/constants.d.ts +7 -6
- package/dist/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
- package/dist/types/common/src/index.d.ts +11 -0
- package/dist/types/{excalidraw → common/src}/points.d.ts +2 -0
- package/dist/types/common/src/promise-pool.d.ts +6 -0
- package/dist/types/{excalidraw → common/src}/utils.d.ts +9 -12
- package/dist/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
- package/dist/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
- package/dist/types/{excalidraw → element/src}/align.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/binding.d.ts +5 -4
- package/dist/types/{excalidraw/element → element/src}/bounds.d.ts +6 -1
- package/dist/types/{excalidraw/element → element/src}/collision.d.ts +2 -2
- package/dist/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
- package/dist/types/{excalidraw → element/src}/distribute.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +66 -0
- package/dist/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +10 -0
- package/dist/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
- package/dist/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
- package/dist/types/{excalidraw → element/src}/frame.d.ts +6 -6
- package/dist/types/{excalidraw → element/src}/groups.d.ts +5 -5
- package/dist/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
- package/dist/types/{excalidraw/element → element/src}/image.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/index.d.ts +0 -10
- package/dist/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +5 -5
- package/dist/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
- package/dist/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
- package/dist/types/{excalidraw/element → element/src}/resizeElements.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/resizeTest.d.ts +1 -1
- package/dist/types/{excalidraw/scene → element/src}/selection.d.ts +2 -2
- package/dist/types/{excalidraw → element/src}/shapes.d.ts +6 -6
- package/dist/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
- package/dist/types/{excalidraw/element → element/src}/textElement.d.ts +3 -4
- package/dist/types/{excalidraw/element → element/src}/transformHandles.d.ts +5 -5
- package/dist/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
- package/dist/types/{excalidraw/element → element/src}/types.d.ts +2 -2
- package/dist/types/{excalidraw → element/src}/zindex.d.ts +5 -4
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +54 -52
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +456 -264
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +155 -149
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +30 -29
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +53 -52
- package/dist/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +26 -35
- package/dist/types/excalidraw/actions/actionExport.d.ts +306 -297
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +41 -39
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +217 -213
- package/dist/types/excalidraw/actions/actionGroup.d.ts +51 -49
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +27 -26
- package/dist/types/excalidraw/actions/actionLink.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionMenu.d.ts +73 -70
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +48 -46
- package/dist/types/excalidraw/actions/actionProperties.d.ts +317 -302
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionSmartZoom.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +28 -27
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +26 -25
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +50 -48
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +25 -25
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +26 -26
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -26
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- package/dist/types/excalidraw/actions/manager.d.ts +1 -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/animated-trail.d.ts +7 -1
- package/dist/types/excalidraw/appState.d.ts +35 -34
- package/dist/types/excalidraw/change.d.ts +3 -3
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +2 -2
- package/dist/types/excalidraw/components/Actions.d.ts +2 -2
- package/dist/types/excalidraw/components/App.d.ts +14 -9
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +1 -1
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +1 -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/index.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +2 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
- package/dist/types/excalidraw/components/shapes.d.ts +62 -0
- package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
- package/dist/types/excalidraw/data/index.d.ts +1 -1
- package/dist/types/excalidraw/data/json.d.ts +1 -1
- package/dist/types/excalidraw/data/library.d.ts +2 -2
- package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/restore.d.ts +1 -1
- package/dist/types/excalidraw/data/transform.d.ts +4 -4
- package/dist/types/excalidraw/data/types.d.ts +2 -2
- package/dist/types/excalidraw/errors.d.ts +0 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +2 -12
- package/dist/types/excalidraw/history.d.ts +1 -1
- package/dist/types/excalidraw/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +11 -10
- package/dist/types/excalidraw/lasso/index.d.ts +15 -0
- package/dist/types/excalidraw/lasso/utils.d.ts +13 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
- package/dist/types/excalidraw/scene/Scene.d.ts +5 -5
- package/dist/types/excalidraw/scene/export.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
- package/dist/types/excalidraw/scene/scrollbars.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -3
- package/dist/types/excalidraw/snapping.d.ts +4 -5
- package/dist/types/excalidraw/store.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +10 -9
- package/dist/types/excalidraw/visualdebug.d.ts +1 -1
- package/dist/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
- package/dist/types/math/{point.d.ts → src/point.d.ts} +2 -2
- package/dist/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
- package/dist/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
- package/dist/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
- package/dist/types/utils/{collision.d.ts → src/collision.d.ts} +1 -2
- package/dist/types/utils/{export.d.ts → src/export.d.ts} +2 -2
- package/dist/types/utils/{index.d.ts → src/index.d.ts} +1 -1
- package/dist/types/utils/{geometry → src}/shape.d.ts +1 -14
- package/dist/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
- package/history.ts +2 -1
- package/package.json +14 -2
- package/dist/dev/chunk-DYSQNY2T.js.map +0 -7
- package/dist/dev/chunk-ND5KUA7P.js.map +0 -7
- package/dist/prod/chunk-45TA3AZW.js +0 -34
- package/dist/prod/data/image-YE6T6FOC.js +0 -1
- /package/dist/dev/data/{image-ZD4HK457.js.map → image-I5I3FC2R.js.map} +0 -0
- /package/dist/dev/locales/{en-IW3FTNXY.js.map → en-FBYNI7ML.js.map} +0 -0
- /package/dist/types/{excalidraw → common/src}/keys.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/queue.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/random.d.ts +0 -0
- /package/dist/types/{excalidraw/data → common/src}/url.d.ts +0 -0
- /package/dist/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/elbowArrow.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
- /package/dist/types/{excalidraw/element → element/src}/utils.d.ts +0 -0
- /package/dist/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
- /package/dist/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
- /package/dist/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
- /package/dist/types/math/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/types/math/{line.d.ts → src/line.d.ts} +0 -0
- /package/dist/types/math/{range.d.ts → src/range.d.ts} +0 -0
- /package/dist/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
- /package/dist/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
- /package/dist/types/math/{types.d.ts → src/types.d.ts} +0 -0
- /package/dist/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/dist/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
|
@@ -8,7 +8,7 @@ export declare const actionToggleCropEditor: {
|
|
|
8
8
|
category: "menu";
|
|
9
9
|
};
|
|
10
10
|
keywords: string[];
|
|
11
|
-
perform(elements: readonly import("
|
|
11
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
|
|
12
12
|
appState: {
|
|
13
13
|
isCropping: false;
|
|
14
14
|
croppingElementId: string;
|
|
@@ -24,17 +24,17 @@ export declare const actionToggleCropEditor: {
|
|
|
24
24
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
25
25
|
errorMessage: import("react").ReactNode;
|
|
26
26
|
activeEmbeddable: {
|
|
27
|
-
element: import("
|
|
27
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
28
28
|
state: "hover" | "active";
|
|
29
29
|
} | null;
|
|
30
|
-
newElement: import("
|
|
31
|
-
resizingElement: import("
|
|
32
|
-
multiElement: import("
|
|
33
|
-
selectionElement: import("
|
|
30
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
31
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
32
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
33
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
34
34
|
isBindingEnabled: boolean;
|
|
35
|
-
startBoundElement: import("
|
|
36
|
-
suggestedBindings: import("
|
|
37
|
-
frameToHighlight: import("
|
|
35
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
36
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
37
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
38
|
frameRendering: {
|
|
39
39
|
enabled: boolean;
|
|
40
40
|
name: boolean;
|
|
@@ -42,12 +42,13 @@ export declare const actionToggleCropEditor: {
|
|
|
42
42
|
clip: boolean;
|
|
43
43
|
};
|
|
44
44
|
editingFrame: string | null;
|
|
45
|
-
elementsToHighlight: import("
|
|
46
|
-
editingTextElement: import("
|
|
47
|
-
editingLinearElement: import("
|
|
45
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
46
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
47
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
48
48
|
activeTool: {
|
|
49
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
50
|
locked: boolean;
|
|
51
|
+
fromSelection: boolean;
|
|
51
52
|
} & import("../types").ActiveTool;
|
|
52
53
|
penMode: boolean;
|
|
53
54
|
penDetected: boolean;
|
|
@@ -57,18 +58,18 @@ export declare const actionToggleCropEditor: {
|
|
|
57
58
|
exportScale: number;
|
|
58
59
|
currentItemStrokeColor: string;
|
|
59
60
|
currentItemBackgroundColor: string;
|
|
60
|
-
currentItemFillStyle: import("
|
|
61
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
61
62
|
currentItemStrokeWidth: number;
|
|
62
|
-
currentItemStrokeStyle: import("
|
|
63
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
63
64
|
currentItemRoughness: number;
|
|
64
65
|
currentItemOpacity: number;
|
|
65
66
|
currentItemFontFamily: number;
|
|
66
67
|
currentItemFontSize: number;
|
|
67
68
|
currentItemTextAlign: string;
|
|
68
|
-
currentItemStartArrowhead: import("
|
|
69
|
-
currentItemEndArrowhead: import("
|
|
69
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
70
71
|
currentHoveredFontFamily: number | null;
|
|
71
|
-
currentItemRoundness: import("
|
|
72
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
72
73
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
73
74
|
viewBackgroundColor: string;
|
|
74
75
|
scrollX: number;
|
|
@@ -81,7 +82,7 @@ export declare const actionToggleCropEditor: {
|
|
|
81
82
|
zoom: Readonly<{
|
|
82
83
|
value: import("../types").NormalizedZoomValue;
|
|
83
84
|
}>;
|
|
84
|
-
openMenu: "
|
|
85
|
+
openMenu: "shape" | "canvas" | null;
|
|
85
86
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
86
87
|
openSidebar: {
|
|
87
88
|
name: string;
|
|
@@ -99,7 +100,7 @@ export declare const actionToggleCropEditor: {
|
|
|
99
100
|
sourceElementId: string;
|
|
100
101
|
} | null;
|
|
101
102
|
defaultSidebarDockedPreference: boolean;
|
|
102
|
-
lastPointerDownWith: import("
|
|
103
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
103
104
|
selectedElementIds: Readonly<{
|
|
104
105
|
[id: string]: true;
|
|
105
106
|
}>;
|
|
@@ -117,7 +118,7 @@ export declare const actionToggleCropEditor: {
|
|
|
117
118
|
duration?: number | undefined;
|
|
118
119
|
} | null;
|
|
119
120
|
zenModeEnabled: boolean;
|
|
120
|
-
theme: import("
|
|
121
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
121
122
|
gridSize: number;
|
|
122
123
|
gridStep: number;
|
|
123
124
|
gridModeEnabled: boolean;
|
|
@@ -138,7 +139,7 @@ export declare const actionToggleCropEditor: {
|
|
|
138
139
|
[id: string]: true;
|
|
139
140
|
}> | undefined;
|
|
140
141
|
username?: string | null | undefined;
|
|
141
|
-
userState?: import("
|
|
142
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
142
143
|
color?: {
|
|
143
144
|
background: string;
|
|
144
145
|
stroke: string;
|
|
@@ -155,7 +156,7 @@ export declare const actionToggleCropEditor: {
|
|
|
155
156
|
open: boolean;
|
|
156
157
|
panels: number;
|
|
157
158
|
};
|
|
158
|
-
currentChartType: import("
|
|
159
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
159
160
|
pasteDialog: {
|
|
160
161
|
shown: false;
|
|
161
162
|
data: null;
|
|
@@ -164,8 +165,8 @@ export declare const actionToggleCropEditor: {
|
|
|
164
165
|
data: import("../charts").Spreadsheet;
|
|
165
166
|
};
|
|
166
167
|
pendingImageElementId: string | null;
|
|
167
|
-
showHyperlinkPopup: false | "
|
|
168
|
-
selectedLinearElement: import("
|
|
168
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
169
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
169
170
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
171
|
originSnapOffset: {
|
|
171
172
|
x: number;
|
|
@@ -187,7 +188,7 @@ export declare const actionToggleCropEditor: {
|
|
|
187
188
|
};
|
|
188
189
|
captureUpdate: "IMMEDIATELY";
|
|
189
190
|
};
|
|
190
|
-
predicate: (elements: readonly import("
|
|
191
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
191
192
|
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
192
193
|
} & {
|
|
193
194
|
keyTest?: undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "
|
|
3
|
-
import type { ExcalidrawElement } from "
|
|
2
|
+
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
3
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
4
|
import type { AppClassProperties, AppState } from "../types";
|
|
5
5
|
export declare const actionDeleteSelected: {
|
|
6
6
|
name: "deleteSelectedElements";
|
|
@@ -10,8 +10,8 @@ export declare const actionDeleteSelected: {
|
|
|
10
10
|
category: "element";
|
|
11
11
|
action: string;
|
|
12
12
|
};
|
|
13
|
-
perform: (elements: readonly import("
|
|
14
|
-
elements: import("
|
|
13
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: any, app: AppClassProperties) => false | {
|
|
14
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
15
15
|
appState: {
|
|
16
16
|
editingLinearElement: null;
|
|
17
17
|
contextMenu: {
|
|
@@ -26,17 +26,17 @@ export declare const actionDeleteSelected: {
|
|
|
26
26
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
27
27
|
errorMessage: import("react").ReactNode;
|
|
28
28
|
activeEmbeddable: {
|
|
29
|
-
element: import("
|
|
29
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
30
30
|
state: "hover" | "active";
|
|
31
31
|
} | null;
|
|
32
|
-
newElement: import("
|
|
33
|
-
resizingElement: import("
|
|
34
|
-
multiElement: import("
|
|
35
|
-
selectionElement: import("
|
|
32
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
33
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
34
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
35
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
36
36
|
isBindingEnabled: boolean;
|
|
37
|
-
startBoundElement: import("
|
|
38
|
-
suggestedBindings: import("
|
|
39
|
-
frameToHighlight: import("
|
|
37
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
38
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
39
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
40
40
|
frameRendering: {
|
|
41
41
|
enabled: boolean;
|
|
42
42
|
name: boolean;
|
|
@@ -44,11 +44,12 @@ export declare const actionDeleteSelected: {
|
|
|
44
44
|
clip: boolean;
|
|
45
45
|
};
|
|
46
46
|
editingFrame: string | null;
|
|
47
|
-
elementsToHighlight: import("
|
|
48
|
-
editingTextElement: import("
|
|
47
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
48
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
49
|
activeTool: {
|
|
50
50
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
51
51
|
locked: boolean;
|
|
52
|
+
fromSelection: boolean;
|
|
52
53
|
} & import("../types").ActiveTool;
|
|
53
54
|
penMode: boolean;
|
|
54
55
|
penDetected: boolean;
|
|
@@ -58,18 +59,18 @@ export declare const actionDeleteSelected: {
|
|
|
58
59
|
exportScale: number;
|
|
59
60
|
currentItemStrokeColor: string;
|
|
60
61
|
currentItemBackgroundColor: string;
|
|
61
|
-
currentItemFillStyle: import("
|
|
62
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
62
63
|
currentItemStrokeWidth: number;
|
|
63
|
-
currentItemStrokeStyle: import("
|
|
64
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
64
65
|
currentItemRoughness: number;
|
|
65
66
|
currentItemOpacity: number;
|
|
66
67
|
currentItemFontFamily: number;
|
|
67
68
|
currentItemFontSize: number;
|
|
68
69
|
currentItemTextAlign: string;
|
|
69
|
-
currentItemStartArrowhead: import("
|
|
70
|
-
currentItemEndArrowhead: import("
|
|
70
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
71
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
71
72
|
currentHoveredFontFamily: number | null;
|
|
72
|
-
currentItemRoundness: import("
|
|
73
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
73
74
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
74
75
|
viewBackgroundColor: string;
|
|
75
76
|
scrollX: number;
|
|
@@ -82,7 +83,7 @@ export declare const actionDeleteSelected: {
|
|
|
82
83
|
zoom: Readonly<{
|
|
83
84
|
value: import("../types").NormalizedZoomValue;
|
|
84
85
|
}>;
|
|
85
|
-
openMenu: "
|
|
86
|
+
openMenu: "shape" | "canvas" | null;
|
|
86
87
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
87
88
|
openSidebar: {
|
|
88
89
|
name: string;
|
|
@@ -100,7 +101,7 @@ export declare const actionDeleteSelected: {
|
|
|
100
101
|
sourceElementId: string;
|
|
101
102
|
} | null;
|
|
102
103
|
defaultSidebarDockedPreference: boolean;
|
|
103
|
-
lastPointerDownWith: import("
|
|
104
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
104
105
|
selectedElementIds: Readonly<{
|
|
105
106
|
[id: string]: true;
|
|
106
107
|
}>;
|
|
@@ -118,7 +119,7 @@ export declare const actionDeleteSelected: {
|
|
|
118
119
|
duration?: number | undefined;
|
|
119
120
|
} | null;
|
|
120
121
|
zenModeEnabled: boolean;
|
|
121
|
-
theme: import("
|
|
122
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
122
123
|
gridSize: number;
|
|
123
124
|
gridStep: number;
|
|
124
125
|
gridModeEnabled: boolean;
|
|
@@ -139,7 +140,7 @@ export declare const actionDeleteSelected: {
|
|
|
139
140
|
[id: string]: true;
|
|
140
141
|
}> | undefined;
|
|
141
142
|
username?: string | null | undefined;
|
|
142
|
-
userState?: import("
|
|
143
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
143
144
|
color?: {
|
|
144
145
|
background: string;
|
|
145
146
|
stroke: string;
|
|
@@ -156,7 +157,7 @@ export declare const actionDeleteSelected: {
|
|
|
156
157
|
open: boolean;
|
|
157
158
|
panels: number;
|
|
158
159
|
};
|
|
159
|
-
currentChartType: import("
|
|
160
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
160
161
|
pasteDialog: {
|
|
161
162
|
shown: false;
|
|
162
163
|
data: null;
|
|
@@ -165,7 +166,7 @@ export declare const actionDeleteSelected: {
|
|
|
165
166
|
data: import("../charts").Spreadsheet;
|
|
166
167
|
};
|
|
167
168
|
pendingImageElementId: string | null;
|
|
168
|
-
showHyperlinkPopup: false | "
|
|
169
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
169
170
|
selectedLinearElement: LinearElementEditor | null;
|
|
170
171
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
171
172
|
originSnapOffset: {
|
|
@@ -190,12 +191,12 @@ export declare const actionDeleteSelected: {
|
|
|
190
191
|
};
|
|
191
192
|
captureUpdate: "IMMEDIATELY";
|
|
192
193
|
} | {
|
|
193
|
-
elements: readonly import("
|
|
194
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
194
195
|
appState: {
|
|
195
196
|
editingLinearElement: {
|
|
196
197
|
selectedPointsIndices: number[];
|
|
197
|
-
startBindingElement: import("
|
|
198
|
-
endBindingElement: import("
|
|
198
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
199
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
199
200
|
elementId: string & {
|
|
200
201
|
_brand: "excalidrawLinearElementId";
|
|
201
202
|
};
|
|
@@ -235,17 +236,17 @@ export declare const actionDeleteSelected: {
|
|
|
235
236
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
236
237
|
errorMessage: import("react").ReactNode;
|
|
237
238
|
activeEmbeddable: {
|
|
238
|
-
element: import("
|
|
239
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
239
240
|
state: "hover" | "active";
|
|
240
241
|
} | null;
|
|
241
|
-
newElement: import("
|
|
242
|
-
resizingElement: import("
|
|
243
|
-
multiElement: import("
|
|
244
|
-
selectionElement: import("
|
|
242
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
243
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
244
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
245
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
245
246
|
isBindingEnabled: boolean;
|
|
246
|
-
startBoundElement: import("
|
|
247
|
-
suggestedBindings: import("
|
|
248
|
-
frameToHighlight: import("
|
|
247
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
248
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
249
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
249
250
|
frameRendering: {
|
|
250
251
|
enabled: boolean;
|
|
251
252
|
name: boolean;
|
|
@@ -253,11 +254,12 @@ export declare const actionDeleteSelected: {
|
|
|
253
254
|
clip: boolean;
|
|
254
255
|
};
|
|
255
256
|
editingFrame: string | null;
|
|
256
|
-
elementsToHighlight: import("
|
|
257
|
-
editingTextElement: import("
|
|
257
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
258
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
258
259
|
activeTool: {
|
|
259
260
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
260
261
|
locked: boolean;
|
|
262
|
+
fromSelection: boolean;
|
|
261
263
|
} & import("../types").ActiveTool;
|
|
262
264
|
penMode: boolean;
|
|
263
265
|
penDetected: boolean;
|
|
@@ -267,18 +269,18 @@ export declare const actionDeleteSelected: {
|
|
|
267
269
|
exportScale: number;
|
|
268
270
|
currentItemStrokeColor: string;
|
|
269
271
|
currentItemBackgroundColor: string;
|
|
270
|
-
currentItemFillStyle: import("
|
|
272
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
271
273
|
currentItemStrokeWidth: number;
|
|
272
|
-
currentItemStrokeStyle: import("
|
|
274
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
273
275
|
currentItemRoughness: number;
|
|
274
276
|
currentItemOpacity: number;
|
|
275
277
|
currentItemFontFamily: number;
|
|
276
278
|
currentItemFontSize: number;
|
|
277
279
|
currentItemTextAlign: string;
|
|
278
|
-
currentItemStartArrowhead: import("
|
|
279
|
-
currentItemEndArrowhead: import("
|
|
280
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
281
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
280
282
|
currentHoveredFontFamily: number | null;
|
|
281
|
-
currentItemRoundness: import("
|
|
283
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
282
284
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
283
285
|
viewBackgroundColor: string;
|
|
284
286
|
scrollX: number;
|
|
@@ -291,7 +293,7 @@ export declare const actionDeleteSelected: {
|
|
|
291
293
|
zoom: Readonly<{
|
|
292
294
|
value: import("../types").NormalizedZoomValue;
|
|
293
295
|
}>;
|
|
294
|
-
openMenu: "
|
|
296
|
+
openMenu: "shape" | "canvas" | null;
|
|
295
297
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
296
298
|
openSidebar: {
|
|
297
299
|
name: string;
|
|
@@ -309,7 +311,7 @@ export declare const actionDeleteSelected: {
|
|
|
309
311
|
sourceElementId: string;
|
|
310
312
|
} | null;
|
|
311
313
|
defaultSidebarDockedPreference: boolean;
|
|
312
|
-
lastPointerDownWith: import("
|
|
314
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
313
315
|
selectedElementIds: Readonly<{
|
|
314
316
|
[id: string]: true;
|
|
315
317
|
}>;
|
|
@@ -327,7 +329,7 @@ export declare const actionDeleteSelected: {
|
|
|
327
329
|
duration?: number | undefined;
|
|
328
330
|
} | null;
|
|
329
331
|
zenModeEnabled: boolean;
|
|
330
|
-
theme: import("
|
|
332
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
331
333
|
gridSize: number;
|
|
332
334
|
gridStep: number;
|
|
333
335
|
gridModeEnabled: boolean;
|
|
@@ -348,7 +350,7 @@ export declare const actionDeleteSelected: {
|
|
|
348
350
|
[id: string]: true;
|
|
349
351
|
}> | undefined;
|
|
350
352
|
username?: string | null | undefined;
|
|
351
|
-
userState?: import("
|
|
353
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
352
354
|
color?: {
|
|
353
355
|
background: string;
|
|
354
356
|
stroke: string;
|
|
@@ -365,7 +367,7 @@ export declare const actionDeleteSelected: {
|
|
|
365
367
|
open: boolean;
|
|
366
368
|
panels: number;
|
|
367
369
|
};
|
|
368
|
-
currentChartType: import("
|
|
370
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
369
371
|
pasteDialog: {
|
|
370
372
|
shown: false;
|
|
371
373
|
data: null;
|
|
@@ -374,7 +376,7 @@ export declare const actionDeleteSelected: {
|
|
|
374
376
|
data: import("../charts").Spreadsheet;
|
|
375
377
|
};
|
|
376
378
|
pendingImageElementId: string | null;
|
|
377
|
-
showHyperlinkPopup: false | "
|
|
379
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
378
380
|
selectedLinearElement: LinearElementEditor | null;
|
|
379
381
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
380
382
|
originSnapOffset: {
|
|
@@ -404,16 +406,18 @@ export declare const actionDeleteSelected: {
|
|
|
404
406
|
activeTool: {
|
|
405
407
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
406
408
|
locked: boolean;
|
|
409
|
+
fromSelection: boolean;
|
|
407
410
|
} & import("../types").ActiveTool;
|
|
408
411
|
multiElement: null;
|
|
409
412
|
activeEmbeddable: null;
|
|
413
|
+
selectedLinearElement: null;
|
|
414
|
+
editingGroupId: string | null;
|
|
410
415
|
selectedElementIds: Readonly<{
|
|
411
416
|
[id: string]: true;
|
|
412
417
|
}>;
|
|
413
418
|
selectedGroupIds: {
|
|
414
419
|
[groupId: string]: boolean;
|
|
415
420
|
};
|
|
416
|
-
editingGroupId: string | null;
|
|
417
421
|
contextMenu: {
|
|
418
422
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
419
423
|
top: number;
|
|
@@ -425,13 +429,13 @@ export declare const actionDeleteSelected: {
|
|
|
425
429
|
hideMainMenus: boolean;
|
|
426
430
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
427
431
|
errorMessage: import("react").ReactNode;
|
|
428
|
-
newElement: import("
|
|
429
|
-
resizingElement: import("
|
|
430
|
-
selectionElement: import("
|
|
432
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
433
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
434
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
431
435
|
isBindingEnabled: boolean;
|
|
432
|
-
startBoundElement: import("
|
|
433
|
-
suggestedBindings: import("
|
|
434
|
-
frameToHighlight: import("
|
|
436
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
437
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
438
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
435
439
|
frameRendering: {
|
|
436
440
|
enabled: boolean;
|
|
437
441
|
name: boolean;
|
|
@@ -439,8 +443,8 @@ export declare const actionDeleteSelected: {
|
|
|
439
443
|
clip: boolean;
|
|
440
444
|
};
|
|
441
445
|
editingFrame: string | null;
|
|
442
|
-
elementsToHighlight: import("
|
|
443
|
-
editingTextElement: import("
|
|
446
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
447
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
444
448
|
editingLinearElement: LinearElementEditor | null;
|
|
445
449
|
penMode: boolean;
|
|
446
450
|
penDetected: boolean;
|
|
@@ -450,18 +454,18 @@ export declare const actionDeleteSelected: {
|
|
|
450
454
|
exportScale: number;
|
|
451
455
|
currentItemStrokeColor: string;
|
|
452
456
|
currentItemBackgroundColor: string;
|
|
453
|
-
currentItemFillStyle: import("
|
|
457
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
454
458
|
currentItemStrokeWidth: number;
|
|
455
|
-
currentItemStrokeStyle: import("
|
|
459
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
456
460
|
currentItemRoughness: number;
|
|
457
461
|
currentItemOpacity: number;
|
|
458
462
|
currentItemFontFamily: number;
|
|
459
463
|
currentItemFontSize: number;
|
|
460
464
|
currentItemTextAlign: string;
|
|
461
|
-
currentItemStartArrowhead: import("
|
|
462
|
-
currentItemEndArrowhead: import("
|
|
465
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
466
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
463
467
|
currentHoveredFontFamily: number | null;
|
|
464
|
-
currentItemRoundness: import("
|
|
468
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
465
469
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
466
470
|
viewBackgroundColor: string;
|
|
467
471
|
scrollX: number;
|
|
@@ -474,7 +478,7 @@ export declare const actionDeleteSelected: {
|
|
|
474
478
|
zoom: Readonly<{
|
|
475
479
|
value: import("../types").NormalizedZoomValue;
|
|
476
480
|
}>;
|
|
477
|
-
openMenu: "
|
|
481
|
+
openMenu: "shape" | "canvas" | null;
|
|
478
482
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
479
483
|
openSidebar: {
|
|
480
484
|
name: string;
|
|
@@ -492,7 +496,7 @@ export declare const actionDeleteSelected: {
|
|
|
492
496
|
sourceElementId: string;
|
|
493
497
|
} | null;
|
|
494
498
|
defaultSidebarDockedPreference: boolean;
|
|
495
|
-
lastPointerDownWith: import("
|
|
499
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
496
500
|
hoveredElementIds: Readonly<{
|
|
497
501
|
[id: string]: true;
|
|
498
502
|
}>;
|
|
@@ -507,7 +511,7 @@ export declare const actionDeleteSelected: {
|
|
|
507
511
|
duration?: number | undefined;
|
|
508
512
|
} | null;
|
|
509
513
|
zenModeEnabled: boolean;
|
|
510
|
-
theme: import("
|
|
514
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
511
515
|
gridSize: number;
|
|
512
516
|
gridStep: number;
|
|
513
517
|
gridModeEnabled: boolean;
|
|
@@ -524,7 +528,7 @@ export declare const actionDeleteSelected: {
|
|
|
524
528
|
[id: string]: true;
|
|
525
529
|
}> | undefined;
|
|
526
530
|
username?: string | null | undefined;
|
|
527
|
-
userState?: import("
|
|
531
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
528
532
|
color?: {
|
|
529
533
|
background: string;
|
|
530
534
|
stroke: string;
|
|
@@ -541,7 +545,7 @@ export declare const actionDeleteSelected: {
|
|
|
541
545
|
open: boolean;
|
|
542
546
|
panels: number;
|
|
543
547
|
};
|
|
544
|
-
currentChartType: import("
|
|
548
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
545
549
|
pasteDialog: {
|
|
546
550
|
shown: false;
|
|
547
551
|
data: null;
|
|
@@ -550,8 +554,7 @@ export declare const actionDeleteSelected: {
|
|
|
550
554
|
data: import("../charts").Spreadsheet;
|
|
551
555
|
};
|
|
552
556
|
pendingImageElementId: string | null;
|
|
553
|
-
showHyperlinkPopup: false | "
|
|
554
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
557
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
555
558
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
556
559
|
originSnapOffset: {
|
|
557
560
|
x: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ExcalidrawElement } from "
|
|
2
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
export declare const distributeHorizontally: {
|
|
5
5
|
name: "distributeHorizontally";
|
|
@@ -7,7 +7,7 @@ export declare const distributeHorizontally: {
|
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly import("
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
11
11
|
appState: Readonly<AppState>;
|
|
12
12
|
elements: ExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -23,7 +23,7 @@ export declare const distributeVertically: {
|
|
|
23
23
|
trackEvent: {
|
|
24
24
|
category: "element";
|
|
25
25
|
};
|
|
26
|
-
perform: (elements: readonly import("
|
|
26
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
27
27
|
appState: Readonly<AppState>;
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ExcalidrawElement } from "../element/types";
|
|
3
|
-
import type { AppState } from "../types";
|
|
4
2
|
export declare const actionDuplicateSelection: {
|
|
5
3
|
name: "duplicateSelection";
|
|
6
4
|
label: string;
|
|
@@ -8,12 +6,10 @@ export declare const actionDuplicateSelection: {
|
|
|
8
6
|
trackEvent: {
|
|
9
7
|
category: "element";
|
|
10
8
|
};
|
|
11
|
-
perform: (elements: readonly import("
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
10
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
|
+
appState: import("../types").AppState;
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
|
-
elements?: readonly ExcalidrawElement[] | null | undefined;
|
|
14
|
-
appState?: Partial<AppState> | null | undefined;
|
|
15
|
-
files?: import("../types").BinaryFiles | null | undefined;
|
|
16
|
-
replaceFiles?: boolean | undefined;
|
|
17
13
|
};
|
|
18
14
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
19
15
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|