@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
|
@@ -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, UIAppState } from "../types";
|
|
4
4
|
export declare const alignActionsPredicate: (appState: UIAppState, app: AppClassProperties) => boolean;
|
|
5
5
|
export declare const actionAlignTop: {
|
|
@@ -10,7 +10,7 @@ export declare const actionAlignTop: {
|
|
|
10
10
|
category: "element";
|
|
11
11
|
};
|
|
12
12
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
13
|
-
perform: (elements: readonly import("
|
|
13
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
15
|
elements: ExcalidrawElement[];
|
|
16
16
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -28,7 +28,7 @@ export declare const actionAlignBottom: {
|
|
|
28
28
|
category: "element";
|
|
29
29
|
};
|
|
30
30
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
31
|
-
perform: (elements: readonly import("
|
|
31
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
32
32
|
appState: Readonly<AppState>;
|
|
33
33
|
elements: ExcalidrawElement[];
|
|
34
34
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -46,7 +46,7 @@ export declare const actionAlignLeft: {
|
|
|
46
46
|
category: "element";
|
|
47
47
|
};
|
|
48
48
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
49
|
-
perform: (elements: readonly import("
|
|
49
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
50
50
|
appState: Readonly<AppState>;
|
|
51
51
|
elements: ExcalidrawElement[];
|
|
52
52
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -64,7 +64,7 @@ export declare const actionAlignRight: {
|
|
|
64
64
|
category: "element";
|
|
65
65
|
};
|
|
66
66
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
67
|
-
perform: (elements: readonly import("
|
|
67
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
68
68
|
appState: Readonly<AppState>;
|
|
69
69
|
elements: ExcalidrawElement[];
|
|
70
70
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -82,7 +82,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
82
82
|
category: "element";
|
|
83
83
|
};
|
|
84
84
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
85
|
-
perform: (elements: readonly import("
|
|
85
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
86
86
|
appState: Readonly<AppState>;
|
|
87
87
|
elements: ExcalidrawElement[];
|
|
88
88
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -99,7 +99,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
99
99
|
category: "element";
|
|
100
100
|
};
|
|
101
101
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
102
|
-
perform: (elements: readonly import("
|
|
102
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
103
103
|
appState: Readonly<AppState>;
|
|
104
104
|
elements: ExcalidrawElement[];
|
|
105
105
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { ExcalidrawElement, ExcalidrawLinearElement } from "
|
|
2
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
3
|
+
import type { Mutable } from "@excalidraw/common/utility-types";
|
|
3
4
|
import type { AppState } from "../types";
|
|
4
|
-
import type { Mutable } from "../utility-types";
|
|
5
5
|
export declare const actionUnbindText: {
|
|
6
6
|
name: "unbindText";
|
|
7
7
|
label: string;
|
|
@@ -9,8 +9,8 @@ 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("
|
|
13
|
-
elements: readonly import("
|
|
12
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
13
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
14
14
|
appState: Readonly<AppState>;
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
16
16
|
};
|
|
@@ -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("
|
|
27
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
28
28
|
elements: ExcalidrawElement[];
|
|
29
29
|
appState: {
|
|
30
30
|
selectedElementIds: {
|
|
@@ -42,17 +42,17 @@ export declare const actionBindText: {
|
|
|
42
42
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
43
43
|
errorMessage: import("react").ReactNode;
|
|
44
44
|
activeEmbeddable: {
|
|
45
|
-
element: import("
|
|
45
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
46
46
|
state: "hover" | "active";
|
|
47
47
|
} | null;
|
|
48
|
-
newElement: import("
|
|
49
|
-
resizingElement: import("
|
|
50
|
-
multiElement: import("
|
|
51
|
-
selectionElement: import("
|
|
48
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
49
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
50
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
51
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
52
52
|
isBindingEnabled: boolean;
|
|
53
|
-
startBoundElement: import("
|
|
54
|
-
suggestedBindings: import("
|
|
55
|
-
frameToHighlight: import("
|
|
53
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
54
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
55
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
56
56
|
frameRendering: {
|
|
57
57
|
enabled: boolean;
|
|
58
58
|
name: boolean;
|
|
@@ -60,12 +60,13 @@ export declare const actionBindText: {
|
|
|
60
60
|
clip: boolean;
|
|
61
61
|
};
|
|
62
62
|
editingFrame: string | null;
|
|
63
|
-
elementsToHighlight: import("
|
|
64
|
-
editingTextElement: import("
|
|
65
|
-
editingLinearElement: import("
|
|
63
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
64
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
65
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
66
66
|
activeTool: {
|
|
67
67
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
68
68
|
locked: boolean;
|
|
69
|
+
fromSelection: boolean;
|
|
69
70
|
} & import("../types").ActiveTool;
|
|
70
71
|
penMode: boolean;
|
|
71
72
|
penDetected: boolean;
|
|
@@ -75,18 +76,18 @@ export declare const actionBindText: {
|
|
|
75
76
|
exportScale: number;
|
|
76
77
|
currentItemStrokeColor: string;
|
|
77
78
|
currentItemBackgroundColor: string;
|
|
78
|
-
currentItemFillStyle: import("
|
|
79
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
79
80
|
currentItemStrokeWidth: number;
|
|
80
|
-
currentItemStrokeStyle: import("
|
|
81
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
81
82
|
currentItemRoughness: number;
|
|
82
83
|
currentItemOpacity: number;
|
|
83
84
|
currentItemFontFamily: number;
|
|
84
85
|
currentItemFontSize: number;
|
|
85
86
|
currentItemTextAlign: string;
|
|
86
|
-
currentItemStartArrowhead: import("
|
|
87
|
-
currentItemEndArrowhead: import("
|
|
87
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
88
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
88
89
|
currentHoveredFontFamily: number | null;
|
|
89
|
-
currentItemRoundness: import("
|
|
90
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
90
91
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
91
92
|
viewBackgroundColor: string;
|
|
92
93
|
scrollX: number;
|
|
@@ -99,7 +100,7 @@ export declare const actionBindText: {
|
|
|
99
100
|
zoom: Readonly<{
|
|
100
101
|
value: import("../types").NormalizedZoomValue;
|
|
101
102
|
}>;
|
|
102
|
-
openMenu: "
|
|
103
|
+
openMenu: "shape" | "canvas" | null;
|
|
103
104
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
104
105
|
openSidebar: {
|
|
105
106
|
name: string;
|
|
@@ -117,7 +118,7 @@ export declare const actionBindText: {
|
|
|
117
118
|
sourceElementId: string;
|
|
118
119
|
} | null;
|
|
119
120
|
defaultSidebarDockedPreference: boolean;
|
|
120
|
-
lastPointerDownWith: import("
|
|
121
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
121
122
|
hoveredElementIds: Readonly<{
|
|
122
123
|
[id: string]: true;
|
|
123
124
|
}>;
|
|
@@ -132,7 +133,7 @@ export declare const actionBindText: {
|
|
|
132
133
|
duration?: number | undefined;
|
|
133
134
|
} | null;
|
|
134
135
|
zenModeEnabled: boolean;
|
|
135
|
-
theme: import("
|
|
136
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
136
137
|
gridSize: number;
|
|
137
138
|
gridStep: number;
|
|
138
139
|
gridModeEnabled: boolean;
|
|
@@ -153,7 +154,7 @@ export declare const actionBindText: {
|
|
|
153
154
|
[id: string]: true;
|
|
154
155
|
}> | undefined;
|
|
155
156
|
username?: string | null | undefined;
|
|
156
|
-
userState?: import("
|
|
157
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
157
158
|
color?: {
|
|
158
159
|
background: string;
|
|
159
160
|
stroke: string;
|
|
@@ -170,7 +171,7 @@ export declare const actionBindText: {
|
|
|
170
171
|
open: boolean;
|
|
171
172
|
panels: number;
|
|
172
173
|
};
|
|
173
|
-
currentChartType: import("
|
|
174
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
174
175
|
pasteDialog: {
|
|
175
176
|
shown: false;
|
|
176
177
|
data: null;
|
|
@@ -179,8 +180,8 @@ export declare const actionBindText: {
|
|
|
179
180
|
data: import("../charts").Spreadsheet;
|
|
180
181
|
};
|
|
181
182
|
pendingImageElementId: string | null;
|
|
182
|
-
showHyperlinkPopup: false | "
|
|
183
|
-
selectedLinearElement: import("
|
|
183
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
184
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
184
185
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
185
186
|
originSnapOffset: {
|
|
186
187
|
x: number;
|
|
@@ -214,7 +215,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
214
215
|
category: "element";
|
|
215
216
|
};
|
|
216
217
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
217
|
-
perform: (elements: readonly import("
|
|
218
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
218
219
|
elements: readonly ExcalidrawElement[];
|
|
219
220
|
appState: {
|
|
220
221
|
selectedElementIds: Mutable<Readonly<{
|
|
@@ -232,17 +233,17 @@ export declare const actionWrapTextInContainer: {
|
|
|
232
233
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
233
234
|
errorMessage: import("react").ReactNode;
|
|
234
235
|
activeEmbeddable: {
|
|
235
|
-
element: import("
|
|
236
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
236
237
|
state: "hover" | "active";
|
|
237
238
|
} | null;
|
|
238
|
-
newElement: import("
|
|
239
|
-
resizingElement: import("
|
|
240
|
-
multiElement: import("
|
|
241
|
-
selectionElement: import("
|
|
239
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
240
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
241
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
242
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
242
243
|
isBindingEnabled: boolean;
|
|
243
|
-
startBoundElement: import("
|
|
244
|
-
suggestedBindings: import("
|
|
245
|
-
frameToHighlight: import("
|
|
244
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
245
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
246
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
246
247
|
frameRendering: {
|
|
247
248
|
enabled: boolean;
|
|
248
249
|
name: boolean;
|
|
@@ -250,12 +251,13 @@ export declare const actionWrapTextInContainer: {
|
|
|
250
251
|
clip: boolean;
|
|
251
252
|
};
|
|
252
253
|
editingFrame: string | null;
|
|
253
|
-
elementsToHighlight: import("
|
|
254
|
-
editingTextElement: import("
|
|
255
|
-
editingLinearElement: import("
|
|
254
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
255
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
256
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
256
257
|
activeTool: {
|
|
257
258
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
258
259
|
locked: boolean;
|
|
260
|
+
fromSelection: boolean;
|
|
259
261
|
} & import("../types").ActiveTool;
|
|
260
262
|
penMode: boolean;
|
|
261
263
|
penDetected: boolean;
|
|
@@ -265,18 +267,18 @@ export declare const actionWrapTextInContainer: {
|
|
|
265
267
|
exportScale: number;
|
|
266
268
|
currentItemStrokeColor: string;
|
|
267
269
|
currentItemBackgroundColor: string;
|
|
268
|
-
currentItemFillStyle: import("
|
|
270
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
269
271
|
currentItemStrokeWidth: number;
|
|
270
|
-
currentItemStrokeStyle: import("
|
|
272
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
271
273
|
currentItemRoughness: number;
|
|
272
274
|
currentItemOpacity: number;
|
|
273
275
|
currentItemFontFamily: number;
|
|
274
276
|
currentItemFontSize: number;
|
|
275
277
|
currentItemTextAlign: string;
|
|
276
|
-
currentItemStartArrowhead: import("
|
|
277
|
-
currentItemEndArrowhead: import("
|
|
278
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
279
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
278
280
|
currentHoveredFontFamily: number | null;
|
|
279
|
-
currentItemRoundness: import("
|
|
281
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
280
282
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
281
283
|
viewBackgroundColor: string;
|
|
282
284
|
scrollX: number;
|
|
@@ -289,7 +291,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
289
291
|
zoom: Readonly<{
|
|
290
292
|
value: import("../types").NormalizedZoomValue;
|
|
291
293
|
}>;
|
|
292
|
-
openMenu: "
|
|
294
|
+
openMenu: "shape" | "canvas" | null;
|
|
293
295
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
294
296
|
openSidebar: {
|
|
295
297
|
name: string;
|
|
@@ -307,7 +309,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
307
309
|
sourceElementId: string;
|
|
308
310
|
} | null;
|
|
309
311
|
defaultSidebarDockedPreference: boolean;
|
|
310
|
-
lastPointerDownWith: import("
|
|
312
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
311
313
|
hoveredElementIds: Readonly<{
|
|
312
314
|
[id: string]: true;
|
|
313
315
|
}>;
|
|
@@ -322,7 +324,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
322
324
|
duration?: number | undefined;
|
|
323
325
|
} | null;
|
|
324
326
|
zenModeEnabled: boolean;
|
|
325
|
-
theme: import("
|
|
327
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
326
328
|
gridSize: number;
|
|
327
329
|
gridStep: number;
|
|
328
330
|
gridModeEnabled: boolean;
|
|
@@ -343,7 +345,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
343
345
|
[id: string]: true;
|
|
344
346
|
}> | undefined;
|
|
345
347
|
username?: string | null | undefined;
|
|
346
|
-
userState?: import("
|
|
348
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
347
349
|
color?: {
|
|
348
350
|
background: string;
|
|
349
351
|
stroke: string;
|
|
@@ -360,7 +362,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
360
362
|
open: boolean;
|
|
361
363
|
panels: number;
|
|
362
364
|
};
|
|
363
|
-
currentChartType: import("
|
|
365
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
364
366
|
pasteDialog: {
|
|
365
367
|
shown: false;
|
|
366
368
|
data: null;
|
|
@@ -369,8 +371,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
369
371
|
data: import("../charts").Spreadsheet;
|
|
370
372
|
};
|
|
371
373
|
pendingImageElementId: string | null;
|
|
372
|
-
showHyperlinkPopup: false | "
|
|
373
|
-
selectedLinearElement: import("
|
|
374
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
375
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
374
376
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
375
377
|
originSnapOffset: {
|
|
376
378
|
x: number;
|