@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,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
|
export declare const actionSelectAll: {
|
|
5
5
|
name: "selectAll";
|
|
6
6
|
label: string;
|
|
@@ -9,16 +9,16 @@ export declare const actionSelectAll: {
|
|
|
9
9
|
category: "canvas";
|
|
10
10
|
};
|
|
11
11
|
viewMode: false;
|
|
12
|
-
perform: (elements: readonly import("
|
|
12
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => false | {
|
|
13
13
|
appState: {
|
|
14
14
|
selectedLinearElement: LinearElementEditor | null;
|
|
15
|
+
editingGroupId: string | null;
|
|
15
16
|
selectedElementIds: Readonly<{
|
|
16
17
|
[id: string]: true;
|
|
17
18
|
}>;
|
|
18
19
|
selectedGroupIds: {
|
|
19
20
|
[groupId: string]: boolean;
|
|
20
21
|
};
|
|
21
|
-
editingGroupId: string | null;
|
|
22
22
|
contextMenu: {
|
|
23
23
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
24
24
|
top: number;
|
|
@@ -31,17 +31,17 @@ export declare const actionSelectAll: {
|
|
|
31
31
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
32
32
|
errorMessage: import("react").ReactNode;
|
|
33
33
|
activeEmbeddable: {
|
|
34
|
-
element: import("
|
|
34
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
35
35
|
state: "hover" | "active";
|
|
36
36
|
} | null;
|
|
37
|
-
newElement: import("
|
|
38
|
-
resizingElement: import("
|
|
39
|
-
multiElement: import("
|
|
40
|
-
selectionElement: import("
|
|
37
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
38
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
39
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
40
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
41
|
isBindingEnabled: boolean;
|
|
42
|
-
startBoundElement: import("
|
|
43
|
-
suggestedBindings: import("
|
|
44
|
-
frameToHighlight: import("
|
|
42
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
43
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
44
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
45
45
|
frameRendering: {
|
|
46
46
|
enabled: boolean;
|
|
47
47
|
name: boolean;
|
|
@@ -49,12 +49,13 @@ export declare const actionSelectAll: {
|
|
|
49
49
|
clip: boolean;
|
|
50
50
|
};
|
|
51
51
|
editingFrame: string | null;
|
|
52
|
-
elementsToHighlight: import("
|
|
53
|
-
editingTextElement: import("
|
|
52
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
53
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
54
54
|
editingLinearElement: LinearElementEditor | null;
|
|
55
55
|
activeTool: {
|
|
56
56
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
57
57
|
locked: boolean;
|
|
58
|
+
fromSelection: boolean;
|
|
58
59
|
} & import("../types").ActiveTool;
|
|
59
60
|
penMode: boolean;
|
|
60
61
|
penDetected: boolean;
|
|
@@ -64,18 +65,18 @@ export declare const actionSelectAll: {
|
|
|
64
65
|
exportScale: number;
|
|
65
66
|
currentItemStrokeColor: string;
|
|
66
67
|
currentItemBackgroundColor: string;
|
|
67
|
-
currentItemFillStyle: import("
|
|
68
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
68
69
|
currentItemStrokeWidth: number;
|
|
69
|
-
currentItemStrokeStyle: import("
|
|
70
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
70
71
|
currentItemRoughness: number;
|
|
71
72
|
currentItemOpacity: number;
|
|
72
73
|
currentItemFontFamily: number;
|
|
73
74
|
currentItemFontSize: number;
|
|
74
75
|
currentItemTextAlign: string;
|
|
75
|
-
currentItemStartArrowhead: import("
|
|
76
|
-
currentItemEndArrowhead: import("
|
|
76
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
77
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
77
78
|
currentHoveredFontFamily: number | null;
|
|
78
|
-
currentItemRoundness: import("
|
|
79
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
79
80
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
80
81
|
viewBackgroundColor: string;
|
|
81
82
|
scrollX: number;
|
|
@@ -88,7 +89,7 @@ export declare const actionSelectAll: {
|
|
|
88
89
|
zoom: Readonly<{
|
|
89
90
|
value: import("../types").NormalizedZoomValue;
|
|
90
91
|
}>;
|
|
91
|
-
openMenu: "
|
|
92
|
+
openMenu: "shape" | "canvas" | null;
|
|
92
93
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
93
94
|
openSidebar: {
|
|
94
95
|
name: string;
|
|
@@ -106,7 +107,7 @@ export declare const actionSelectAll: {
|
|
|
106
107
|
sourceElementId: string;
|
|
107
108
|
} | null;
|
|
108
109
|
defaultSidebarDockedPreference: boolean;
|
|
109
|
-
lastPointerDownWith: import("
|
|
110
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
110
111
|
hoveredElementIds: Readonly<{
|
|
111
112
|
[id: string]: true;
|
|
112
113
|
}>;
|
|
@@ -121,7 +122,7 @@ export declare const actionSelectAll: {
|
|
|
121
122
|
duration?: number | undefined;
|
|
122
123
|
} | null;
|
|
123
124
|
zenModeEnabled: boolean;
|
|
124
|
-
theme: import("
|
|
125
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
125
126
|
gridSize: number;
|
|
126
127
|
gridStep: number;
|
|
127
128
|
gridModeEnabled: boolean;
|
|
@@ -138,7 +139,7 @@ export declare const actionSelectAll: {
|
|
|
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 actionSelectAll: {
|
|
|
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,7 +165,7 @@ export declare const actionSelectAll: {
|
|
|
164
165
|
data: import("../charts").Spreadsheet;
|
|
165
166
|
};
|
|
166
167
|
pendingImageElementId: string | null;
|
|
167
|
-
showHyperlinkPopup: false | "
|
|
168
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
168
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
170
|
originSnapOffset: {
|
|
170
171
|
x: number;
|
|
@@ -7,7 +7,7 @@ export declare const actionSmartZoom: {
|
|
|
7
7
|
};
|
|
8
8
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
viewMode: true;
|
|
10
|
-
perform: (elements: readonly import("
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
11
11
|
captureUpdate: "NEVER";
|
|
12
12
|
};
|
|
13
13
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -7,7 +7,7 @@ export declare const actionCopyStyles: {
|
|
|
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<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => {
|
|
11
11
|
appState: {
|
|
12
12
|
toast: {
|
|
13
13
|
message: string;
|
|
@@ -24,17 +24,17 @@ export declare const actionCopyStyles: {
|
|
|
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 actionCopyStyles: {
|
|
|
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 actionCopyStyles: {
|
|
|
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 actionCopyStyles: {
|
|
|
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 actionCopyStyles: {
|
|
|
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
|
}>;
|
|
@@ -112,7 +113,7 @@ export declare const actionCopyStyles: {
|
|
|
112
113
|
selectedElementsAreBeingDragged: boolean;
|
|
113
114
|
shouldCacheIgnoreZoom: boolean;
|
|
114
115
|
zenModeEnabled: boolean;
|
|
115
|
-
theme: import("
|
|
116
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
116
117
|
gridSize: number;
|
|
117
118
|
gridStep: number;
|
|
118
119
|
gridModeEnabled: boolean;
|
|
@@ -133,7 +134,7 @@ export declare const actionCopyStyles: {
|
|
|
133
134
|
[id: string]: true;
|
|
134
135
|
}> | undefined;
|
|
135
136
|
username?: string | null | undefined;
|
|
136
|
-
userState?: import("
|
|
137
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
137
138
|
color?: {
|
|
138
139
|
background: string;
|
|
139
140
|
stroke: string;
|
|
@@ -150,7 +151,7 @@ export declare const actionCopyStyles: {
|
|
|
150
151
|
open: boolean;
|
|
151
152
|
panels: number;
|
|
152
153
|
};
|
|
153
|
-
currentChartType: import("
|
|
154
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
154
155
|
pasteDialog: {
|
|
155
156
|
shown: false;
|
|
156
157
|
data: null;
|
|
@@ -159,8 +160,8 @@ export declare const actionCopyStyles: {
|
|
|
159
160
|
data: import("../charts").Spreadsheet;
|
|
160
161
|
};
|
|
161
162
|
pendingImageElementId: string | null;
|
|
162
|
-
showHyperlinkPopup: false | "
|
|
163
|
-
selectedLinearElement: import("
|
|
163
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
164
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
164
165
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
165
166
|
originSnapOffset: {
|
|
166
167
|
x: number;
|
|
@@ -195,11 +196,11 @@ export declare const actionPasteStyles: {
|
|
|
195
196
|
trackEvent: {
|
|
196
197
|
category: "element";
|
|
197
198
|
};
|
|
198
|
-
perform: (elements: readonly import("
|
|
199
|
-
elements: readonly import("
|
|
199
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => {
|
|
200
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
200
201
|
captureUpdate: "EVENTUALLY";
|
|
201
202
|
} | {
|
|
202
|
-
elements: import("
|
|
203
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
203
204
|
captureUpdate: "IMMEDIATELY";
|
|
204
205
|
};
|
|
205
206
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
@@ -6,10 +6,10 @@ export declare const actionTextAutoResize: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
predicate: (elements: readonly import("
|
|
10
|
-
perform: (elements: readonly import("
|
|
9
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: unknown, app: AppClassProperties) => boolean;
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: AppClassProperties) => {
|
|
11
11
|
appState: Readonly<import("../types").AppState>;
|
|
12
|
-
elements: import("
|
|
12
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
13
|
captureUpdate: "IMMEDIATELY";
|
|
14
14
|
};
|
|
15
15
|
} & {
|
|
@@ -10,7 +10,7 @@ export declare const actionToggleGridMode: {
|
|
|
10
10
|
category: "canvas";
|
|
11
11
|
predicate: (appState: Readonly<AppState>) => boolean;
|
|
12
12
|
};
|
|
13
|
-
perform(elements: readonly import("
|
|
13
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>): {
|
|
14
14
|
appState: {
|
|
15
15
|
gridModeEnabled: boolean;
|
|
16
16
|
objectsSnapModeEnabled: false;
|
|
@@ -26,17 +26,17 @@ export declare const actionToggleGridMode: {
|
|
|
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,12 +44,13 @@ export declare const actionToggleGridMode: {
|
|
|
44
44
|
clip: boolean;
|
|
45
45
|
};
|
|
46
46
|
editingFrame: string | null;
|
|
47
|
-
elementsToHighlight: import("
|
|
48
|
-
editingTextElement: import("
|
|
49
|
-
editingLinearElement: import("
|
|
47
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
48
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
49
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
50
50
|
activeTool: {
|
|
51
51
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
52
52
|
locked: boolean;
|
|
53
|
+
fromSelection: boolean;
|
|
53
54
|
} & import("../types").ActiveTool;
|
|
54
55
|
penMode: boolean;
|
|
55
56
|
penDetected: boolean;
|
|
@@ -59,18 +60,18 @@ export declare const actionToggleGridMode: {
|
|
|
59
60
|
exportScale: number;
|
|
60
61
|
currentItemStrokeColor: string;
|
|
61
62
|
currentItemBackgroundColor: string;
|
|
62
|
-
currentItemFillStyle: import("
|
|
63
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
63
64
|
currentItemStrokeWidth: number;
|
|
64
|
-
currentItemStrokeStyle: import("
|
|
65
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
65
66
|
currentItemRoughness: number;
|
|
66
67
|
currentItemOpacity: number;
|
|
67
68
|
currentItemFontFamily: number;
|
|
68
69
|
currentItemFontSize: number;
|
|
69
70
|
currentItemTextAlign: string;
|
|
70
|
-
currentItemStartArrowhead: import("
|
|
71
|
-
currentItemEndArrowhead: import("
|
|
71
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
72
73
|
currentHoveredFontFamily: number | null;
|
|
73
|
-
currentItemRoundness: import("
|
|
74
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
74
75
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
75
76
|
viewBackgroundColor: string;
|
|
76
77
|
scrollX: number;
|
|
@@ -83,7 +84,7 @@ export declare const actionToggleGridMode: {
|
|
|
83
84
|
zoom: Readonly<{
|
|
84
85
|
value: import("../types").NormalizedZoomValue;
|
|
85
86
|
}>;
|
|
86
|
-
openMenu: "
|
|
87
|
+
openMenu: "shape" | "canvas" | null;
|
|
87
88
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
88
89
|
openSidebar: {
|
|
89
90
|
name: string;
|
|
@@ -101,7 +102,7 @@ export declare const actionToggleGridMode: {
|
|
|
101
102
|
sourceElementId: string;
|
|
102
103
|
} | null;
|
|
103
104
|
defaultSidebarDockedPreference: boolean;
|
|
104
|
-
lastPointerDownWith: import("
|
|
105
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
105
106
|
selectedElementIds: Readonly<{
|
|
106
107
|
[id: string]: true;
|
|
107
108
|
}>;
|
|
@@ -119,7 +120,7 @@ export declare const actionToggleGridMode: {
|
|
|
119
120
|
duration?: number | undefined;
|
|
120
121
|
} | null;
|
|
121
122
|
zenModeEnabled: boolean;
|
|
122
|
-
theme: import("
|
|
123
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
123
124
|
gridSize: number;
|
|
124
125
|
gridStep: number;
|
|
125
126
|
viewModeEnabled: boolean;
|
|
@@ -139,7 +140,7 @@ export declare const actionToggleGridMode: {
|
|
|
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 actionToggleGridMode: {
|
|
|
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,8 +166,8 @@ export declare const actionToggleGridMode: {
|
|
|
165
166
|
data: import("../charts").Spreadsheet;
|
|
166
167
|
};
|
|
167
168
|
pendingImageElementId: string | null;
|
|
168
|
-
showHyperlinkPopup: false | "
|
|
169
|
-
selectedLinearElement: import("
|
|
169
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
170
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
170
171
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
171
172
|
originSnapOffset: {
|
|
172
173
|
x: number;
|
|
@@ -190,7 +191,7 @@ export declare const actionToggleGridMode: {
|
|
|
190
191
|
captureUpdate: "EVENTUALLY";
|
|
191
192
|
};
|
|
192
193
|
checked: (appState: AppState) => boolean;
|
|
193
|
-
predicate: (element: readonly import("
|
|
194
|
+
predicate: (element: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps) => boolean;
|
|
194
195
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
195
196
|
} & {
|
|
196
197
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -8,7 +8,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
8
8
|
category: "canvas";
|
|
9
9
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
10
10
|
};
|
|
11
|
-
perform(elements: readonly import("
|
|
11
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
12
12
|
appState: {
|
|
13
13
|
objectsSnapModeEnabled: boolean;
|
|
14
14
|
gridModeEnabled: false;
|
|
@@ -24,17 +24,17 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
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 actionToggleObjectsSnapMode: {
|
|
|
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 actionToggleObjectsSnapMode: {
|
|
|
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 actionToggleObjectsSnapMode: {
|
|
|
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 actionToggleObjectsSnapMode: {
|
|
|
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 actionToggleObjectsSnapMode: {
|
|
|
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
|
viewModeEnabled: boolean;
|
|
@@ -137,7 +138,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
137
138
|
[id: string]: true;
|
|
138
139
|
}> | undefined;
|
|
139
140
|
username?: string | null | undefined;
|
|
140
|
-
userState?: import("
|
|
141
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
141
142
|
color?: {
|
|
142
143
|
background: string;
|
|
143
144
|
stroke: string;
|
|
@@ -154,7 +155,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
154
155
|
open: boolean;
|
|
155
156
|
panels: number;
|
|
156
157
|
};
|
|
157
|
-
currentChartType: import("
|
|
158
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
158
159
|
pasteDialog: {
|
|
159
160
|
shown: false;
|
|
160
161
|
data: null;
|
|
@@ -163,8 +164,8 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
163
164
|
data: import("../charts").Spreadsheet;
|
|
164
165
|
};
|
|
165
166
|
pendingImageElementId: string | null;
|
|
166
|
-
showHyperlinkPopup: false | "
|
|
167
|
-
selectedLinearElement: import("
|
|
167
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
168
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
168
169
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
170
|
originSnapOffset: {
|
|
170
171
|
x: number;
|
|
@@ -188,7 +189,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
188
189
|
captureUpdate: "EVENTUALLY";
|
|
189
190
|
};
|
|
190
191
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
191
|
-
predicate: (elements: readonly import("
|
|
192
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
192
193
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
193
194
|
} & {
|
|
194
195
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|