@myoc/excalidraw 0.18.1 → 0.18.2
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-DYSQNY2T.js → chunk-6MXLCRC3.js} +2 -1
- package/dist/dev/chunk-6MXLCRC3.js.map +7 -0
- package/dist/dev/{chunk-IVKGBVG7.js → chunk-WBHLRU4Z.js} +2 -2
- package/dist/dev/{chunk-IVKGBVG7.js.map → chunk-WBHLRU4Z.js.map} +1 -1
- package/dist/dev/{chunk-ND5KUA7P.js → chunk-WT7JKXOQ.js} +16541 -21170
- package/dist/dev/chunk-WT7JKXOQ.js.map +7 -0
- package/dist/dev/data/{image-ZD4HK457.js → image-N5NBMO74.js} +3 -3
- package/dist/dev/index.css +44 -47
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +6637 -1355
- 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-GALOWMDI.js +31 -0
- package/dist/prod/data/{image-YE6T6FOC.js → image-NMU2LHCK.js} +1 -1
- 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/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/dev/data/{image-ZD4HK457.js.map → image-N5NBMO74.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, OrderedExcalidrawElement } from "
|
|
2
|
+
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
export declare const actionGroup: {
|
|
5
5
|
name: "group";
|
|
@@ -14,13 +14,13 @@ export declare const actionGroup: {
|
|
|
14
14
|
captureUpdate: "EVENTUALLY";
|
|
15
15
|
} | {
|
|
16
16
|
appState: {
|
|
17
|
+
editingGroupId: string | null;
|
|
17
18
|
selectedElementIds: Readonly<{
|
|
18
19
|
[id: string]: true;
|
|
19
20
|
}>;
|
|
20
21
|
selectedGroupIds: {
|
|
21
22
|
[groupId: string]: boolean;
|
|
22
23
|
};
|
|
23
|
-
editingGroupId: string | null;
|
|
24
24
|
contextMenu: {
|
|
25
25
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
26
26
|
top: number;
|
|
@@ -33,17 +33,17 @@ export declare const actionGroup: {
|
|
|
33
33
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
34
34
|
errorMessage: import("react").ReactNode;
|
|
35
35
|
activeEmbeddable: {
|
|
36
|
-
element: import("
|
|
36
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
37
37
|
state: "hover" | "active";
|
|
38
38
|
} | null;
|
|
39
|
-
newElement: import("
|
|
40
|
-
resizingElement: import("
|
|
41
|
-
multiElement: import("
|
|
42
|
-
selectionElement: import("
|
|
39
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
40
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
42
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
43
|
isBindingEnabled: boolean;
|
|
44
|
-
startBoundElement: import("
|
|
45
|
-
suggestedBindings: import("
|
|
46
|
-
frameToHighlight: import("
|
|
44
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
45
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
46
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
47
47
|
frameRendering: {
|
|
48
48
|
enabled: boolean;
|
|
49
49
|
name: boolean;
|
|
@@ -51,12 +51,13 @@ export declare const actionGroup: {
|
|
|
51
51
|
clip: boolean;
|
|
52
52
|
};
|
|
53
53
|
editingFrame: string | null;
|
|
54
|
-
elementsToHighlight: import("
|
|
55
|
-
editingTextElement: import("
|
|
56
|
-
editingLinearElement: import("
|
|
54
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
55
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
56
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
57
57
|
activeTool: {
|
|
58
58
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
59
59
|
locked: boolean;
|
|
60
|
+
fromSelection: boolean;
|
|
60
61
|
} & import("../types").ActiveTool;
|
|
61
62
|
penMode: boolean;
|
|
62
63
|
penDetected: boolean;
|
|
@@ -66,18 +67,18 @@ export declare const actionGroup: {
|
|
|
66
67
|
exportScale: number;
|
|
67
68
|
currentItemStrokeColor: string;
|
|
68
69
|
currentItemBackgroundColor: string;
|
|
69
|
-
currentItemFillStyle: import("
|
|
70
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
70
71
|
currentItemStrokeWidth: number;
|
|
71
|
-
currentItemStrokeStyle: import("
|
|
72
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
72
73
|
currentItemRoughness: number;
|
|
73
74
|
currentItemOpacity: number;
|
|
74
75
|
currentItemFontFamily: number;
|
|
75
76
|
currentItemFontSize: number;
|
|
76
77
|
currentItemTextAlign: string;
|
|
77
|
-
currentItemStartArrowhead: import("
|
|
78
|
-
currentItemEndArrowhead: import("
|
|
78
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
79
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
79
80
|
currentHoveredFontFamily: number | null;
|
|
80
|
-
currentItemRoundness: import("
|
|
81
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
81
82
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
82
83
|
viewBackgroundColor: string;
|
|
83
84
|
scrollX: number;
|
|
@@ -90,7 +91,7 @@ export declare const actionGroup: {
|
|
|
90
91
|
zoom: Readonly<{
|
|
91
92
|
value: import("../types").NormalizedZoomValue;
|
|
92
93
|
}>;
|
|
93
|
-
openMenu: "
|
|
94
|
+
openMenu: "shape" | "canvas" | null;
|
|
94
95
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
95
96
|
openSidebar: {
|
|
96
97
|
name: string;
|
|
@@ -108,7 +109,7 @@ export declare const actionGroup: {
|
|
|
108
109
|
sourceElementId: string;
|
|
109
110
|
} | null;
|
|
110
111
|
defaultSidebarDockedPreference: boolean;
|
|
111
|
-
lastPointerDownWith: import("
|
|
112
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
112
113
|
hoveredElementIds: Readonly<{
|
|
113
114
|
[id: string]: true;
|
|
114
115
|
}>;
|
|
@@ -123,7 +124,7 @@ export declare const actionGroup: {
|
|
|
123
124
|
duration?: number | undefined;
|
|
124
125
|
} | null;
|
|
125
126
|
zenModeEnabled: boolean;
|
|
126
|
-
theme: import("
|
|
127
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
127
128
|
gridSize: number;
|
|
128
129
|
gridStep: number;
|
|
129
130
|
gridModeEnabled: boolean;
|
|
@@ -140,7 +141,7 @@ export declare const actionGroup: {
|
|
|
140
141
|
[id: string]: true;
|
|
141
142
|
}> | undefined;
|
|
142
143
|
username?: string | null | undefined;
|
|
143
|
-
userState?: import("
|
|
144
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
144
145
|
color?: {
|
|
145
146
|
background: string;
|
|
146
147
|
stroke: string;
|
|
@@ -157,7 +158,7 @@ export declare const actionGroup: {
|
|
|
157
158
|
open: boolean;
|
|
158
159
|
panels: number;
|
|
159
160
|
};
|
|
160
|
-
currentChartType: import("
|
|
161
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
161
162
|
pasteDialog: {
|
|
162
163
|
shown: false;
|
|
163
164
|
data: null;
|
|
@@ -166,8 +167,8 @@ export declare const actionGroup: {
|
|
|
166
167
|
data: import("../charts").Spreadsheet;
|
|
167
168
|
};
|
|
168
169
|
pendingImageElementId: string | null;
|
|
169
|
-
showHyperlinkPopup: false | "
|
|
170
|
-
selectedLinearElement: import("
|
|
170
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
171
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
171
172
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
172
173
|
originSnapOffset: {
|
|
173
174
|
x: number;
|
|
@@ -211,13 +212,13 @@ export declare const actionUngroup: {
|
|
|
211
212
|
captureUpdate: "EVENTUALLY";
|
|
212
213
|
} | {
|
|
213
214
|
appState: {
|
|
215
|
+
editingGroupId: string | null;
|
|
214
216
|
selectedElementIds: Readonly<{
|
|
215
217
|
[id: string]: true;
|
|
216
218
|
}>;
|
|
217
219
|
selectedGroupIds: {
|
|
218
220
|
[groupId: string]: boolean;
|
|
219
221
|
};
|
|
220
|
-
editingGroupId: string | null;
|
|
221
222
|
contextMenu: {
|
|
222
223
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
223
224
|
top: number;
|
|
@@ -230,17 +231,17 @@ export declare const actionUngroup: {
|
|
|
230
231
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
231
232
|
errorMessage: import("react").ReactNode;
|
|
232
233
|
activeEmbeddable: {
|
|
233
|
-
element: import("
|
|
234
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
234
235
|
state: "hover" | "active";
|
|
235
236
|
} | null;
|
|
236
|
-
newElement: import("
|
|
237
|
-
resizingElement: import("
|
|
238
|
-
multiElement: import("
|
|
239
|
-
selectionElement: import("
|
|
237
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
238
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
239
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
240
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
240
241
|
isBindingEnabled: boolean;
|
|
241
|
-
startBoundElement: import("
|
|
242
|
-
suggestedBindings: import("
|
|
243
|
-
frameToHighlight: import("
|
|
242
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
243
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
244
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
244
245
|
frameRendering: {
|
|
245
246
|
enabled: boolean;
|
|
246
247
|
name: boolean;
|
|
@@ -248,12 +249,13 @@ export declare const actionUngroup: {
|
|
|
248
249
|
clip: boolean;
|
|
249
250
|
};
|
|
250
251
|
editingFrame: string | null;
|
|
251
|
-
elementsToHighlight: import("
|
|
252
|
-
editingTextElement: import("
|
|
253
|
-
editingLinearElement: import("
|
|
252
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
253
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
254
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
254
255
|
activeTool: {
|
|
255
256
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
256
257
|
locked: boolean;
|
|
258
|
+
fromSelection: boolean;
|
|
257
259
|
} & import("../types").ActiveTool;
|
|
258
260
|
penMode: boolean;
|
|
259
261
|
penDetected: boolean;
|
|
@@ -263,18 +265,18 @@ export declare const actionUngroup: {
|
|
|
263
265
|
exportScale: number;
|
|
264
266
|
currentItemStrokeColor: string;
|
|
265
267
|
currentItemBackgroundColor: string;
|
|
266
|
-
currentItemFillStyle: import("
|
|
268
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
267
269
|
currentItemStrokeWidth: number;
|
|
268
|
-
currentItemStrokeStyle: import("
|
|
270
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
269
271
|
currentItemRoughness: number;
|
|
270
272
|
currentItemOpacity: number;
|
|
271
273
|
currentItemFontFamily: number;
|
|
272
274
|
currentItemFontSize: number;
|
|
273
275
|
currentItemTextAlign: string;
|
|
274
|
-
currentItemStartArrowhead: import("
|
|
275
|
-
currentItemEndArrowhead: import("
|
|
276
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
277
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
276
278
|
currentHoveredFontFamily: number | null;
|
|
277
|
-
currentItemRoundness: import("
|
|
279
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
278
280
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
279
281
|
viewBackgroundColor: string;
|
|
280
282
|
scrollX: number;
|
|
@@ -287,7 +289,7 @@ export declare const actionUngroup: {
|
|
|
287
289
|
zoom: Readonly<{
|
|
288
290
|
value: import("../types").NormalizedZoomValue;
|
|
289
291
|
}>;
|
|
290
|
-
openMenu: "
|
|
292
|
+
openMenu: "shape" | "canvas" | null;
|
|
291
293
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
292
294
|
openSidebar: {
|
|
293
295
|
name: string;
|
|
@@ -305,7 +307,7 @@ export declare const actionUngroup: {
|
|
|
305
307
|
sourceElementId: string;
|
|
306
308
|
} | null;
|
|
307
309
|
defaultSidebarDockedPreference: boolean;
|
|
308
|
-
lastPointerDownWith: import("
|
|
310
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
309
311
|
hoveredElementIds: Readonly<{
|
|
310
312
|
[id: string]: true;
|
|
311
313
|
}>;
|
|
@@ -320,7 +322,7 @@ export declare const actionUngroup: {
|
|
|
320
322
|
duration?: number | undefined;
|
|
321
323
|
} | null;
|
|
322
324
|
zenModeEnabled: boolean;
|
|
323
|
-
theme: import("
|
|
325
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
324
326
|
gridSize: number;
|
|
325
327
|
gridStep: number;
|
|
326
328
|
gridModeEnabled: boolean;
|
|
@@ -337,7 +339,7 @@ export declare const actionUngroup: {
|
|
|
337
339
|
[id: string]: true;
|
|
338
340
|
}> | undefined;
|
|
339
341
|
username?: string | null | undefined;
|
|
340
|
-
userState?: import("
|
|
342
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
341
343
|
color?: {
|
|
342
344
|
background: string;
|
|
343
345
|
stroke: string;
|
|
@@ -354,7 +356,7 @@ export declare const actionUngroup: {
|
|
|
354
356
|
open: boolean;
|
|
355
357
|
panels: number;
|
|
356
358
|
};
|
|
357
|
-
currentChartType: import("
|
|
359
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
358
360
|
pasteDialog: {
|
|
359
361
|
shown: false;
|
|
360
362
|
data: null;
|
|
@@ -363,8 +365,8 @@ export declare const actionUngroup: {
|
|
|
363
365
|
data: import("../charts").Spreadsheet;
|
|
364
366
|
};
|
|
365
367
|
pendingImageElementId: string | null;
|
|
366
|
-
showHyperlinkPopup: false | "
|
|
367
|
-
selectedLinearElement: import("
|
|
368
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
369
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
368
370
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
369
371
|
originSnapOffset: {
|
|
370
372
|
x: number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "
|
|
3
|
-
import type { ExcalidrawLinearElement } from "
|
|
2
|
+
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
3
|
+
import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
4
4
|
export declare const actionToggleLinearEditor: {
|
|
5
5
|
name: "toggleLinearEditor";
|
|
6
6
|
category: string;
|
|
7
|
-
label: (elements: readonly import("
|
|
7
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
8
8
|
keywords: string[];
|
|
9
9
|
trackEvent: {
|
|
10
10
|
category: "element";
|
|
11
11
|
};
|
|
12
|
-
predicate: (elements: readonly import("
|
|
13
|
-
perform(elements: readonly import("
|
|
12
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
13
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties): {
|
|
14
14
|
appState: {
|
|
15
15
|
editingLinearElement: LinearElementEditor | null;
|
|
16
16
|
contextMenu: {
|
|
@@ -25,17 +25,17 @@ export declare const actionToggleLinearEditor: {
|
|
|
25
25
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
26
26
|
errorMessage: import("react").ReactNode;
|
|
27
27
|
activeEmbeddable: {
|
|
28
|
-
element: import("
|
|
28
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
29
29
|
state: "hover" | "active";
|
|
30
30
|
} | null;
|
|
31
|
-
newElement: import("
|
|
32
|
-
resizingElement: import("
|
|
33
|
-
multiElement: import("
|
|
34
|
-
selectionElement: import("
|
|
31
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
32
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
34
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
35
35
|
isBindingEnabled: boolean;
|
|
36
|
-
startBoundElement: import("
|
|
37
|
-
suggestedBindings: import("
|
|
38
|
-
frameToHighlight: import("
|
|
36
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
37
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
38
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
39
39
|
frameRendering: {
|
|
40
40
|
enabled: boolean;
|
|
41
41
|
name: boolean;
|
|
@@ -43,11 +43,12 @@ export declare const actionToggleLinearEditor: {
|
|
|
43
43
|
clip: boolean;
|
|
44
44
|
};
|
|
45
45
|
editingFrame: string | null;
|
|
46
|
-
elementsToHighlight: import("
|
|
47
|
-
editingTextElement: import("
|
|
46
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | 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 actionToggleLinearEditor: {
|
|
|
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 actionToggleLinearEditor: {
|
|
|
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 actionToggleLinearEditor: {
|
|
|
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 actionToggleLinearEditor: {
|
|
|
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 actionToggleLinearEditor: {
|
|
|
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 actionToggleLinearEditor: {
|
|
|
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 actionToggleLinearEditor: {
|
|
|
164
165
|
data: import("../charts").Spreadsheet;
|
|
165
166
|
};
|
|
166
167
|
pendingImageElementId: string | null;
|
|
167
|
-
showHyperlinkPopup: false | "
|
|
168
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
168
169
|
selectedLinearElement: LinearElementEditor | null;
|
|
169
170
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
170
171
|
originSnapOffset: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const actionLink: {
|
|
3
3
|
name: "hyperlink";
|
|
4
|
-
label: (elements: readonly import("
|
|
4
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
|
|
5
5
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
perform: (elements: readonly import("
|
|
7
|
-
elements: readonly import("
|
|
6
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
7
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
8
8
|
appState: {
|
|
9
9
|
showHyperlinkPopup: "editor";
|
|
10
10
|
openMenu: null;
|
|
@@ -20,17 +20,17 @@ export declare const actionLink: {
|
|
|
20
20
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
21
21
|
errorMessage: import("react").ReactNode;
|
|
22
22
|
activeEmbeddable: {
|
|
23
|
-
element: import("
|
|
23
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
24
|
state: "hover" | "active";
|
|
25
25
|
} | null;
|
|
26
|
-
newElement: import("
|
|
27
|
-
resizingElement: import("
|
|
28
|
-
multiElement: import("
|
|
29
|
-
selectionElement: import("
|
|
26
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
-
startBoundElement: import("
|
|
32
|
-
suggestedBindings: import("
|
|
33
|
-
frameToHighlight: import("
|
|
31
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
33
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
36
36
|
name: boolean;
|
|
@@ -38,12 +38,13 @@ export declare const actionLink: {
|
|
|
38
38
|
clip: boolean;
|
|
39
39
|
};
|
|
40
40
|
editingFrame: string | null;
|
|
41
|
-
elementsToHighlight: import("
|
|
42
|
-
editingTextElement: import("
|
|
43
|
-
editingLinearElement: import("
|
|
41
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
42
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
47
|
+
fromSelection: boolean;
|
|
47
48
|
} & import("../types").ActiveTool;
|
|
48
49
|
penMode: boolean;
|
|
49
50
|
penDetected: boolean;
|
|
@@ -53,18 +54,18 @@ export declare const actionLink: {
|
|
|
53
54
|
exportScale: number;
|
|
54
55
|
currentItemStrokeColor: string;
|
|
55
56
|
currentItemBackgroundColor: string;
|
|
56
|
-
currentItemFillStyle: import("
|
|
57
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
57
58
|
currentItemStrokeWidth: number;
|
|
58
|
-
currentItemStrokeStyle: import("
|
|
59
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
59
60
|
currentItemRoughness: number;
|
|
60
61
|
currentItemOpacity: number;
|
|
61
62
|
currentItemFontFamily: number;
|
|
62
63
|
currentItemFontSize: number;
|
|
63
64
|
currentItemTextAlign: string;
|
|
64
|
-
currentItemStartArrowhead: import("
|
|
65
|
-
currentItemEndArrowhead: import("
|
|
65
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
67
|
currentHoveredFontFamily: number | null;
|
|
67
|
-
currentItemRoundness: import("
|
|
68
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
69
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
69
70
|
viewBackgroundColor: string;
|
|
70
71
|
scrollX: number;
|
|
@@ -94,7 +95,7 @@ export declare const actionLink: {
|
|
|
94
95
|
sourceElementId: string;
|
|
95
96
|
} | null;
|
|
96
97
|
defaultSidebarDockedPreference: boolean;
|
|
97
|
-
lastPointerDownWith: import("
|
|
98
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
98
99
|
selectedElementIds: Readonly<{
|
|
99
100
|
[id: string]: true;
|
|
100
101
|
}>;
|
|
@@ -112,7 +113,7 @@ export declare const actionLink: {
|
|
|
112
113
|
duration?: number | undefined;
|
|
113
114
|
} | null;
|
|
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 actionLink: {
|
|
|
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 actionLink: {
|
|
|
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,7 +160,7 @@ export declare const actionLink: {
|
|
|
159
160
|
data: import("../charts").Spreadsheet;
|
|
160
161
|
};
|
|
161
162
|
pendingImageElementId: string | null;
|
|
162
|
-
selectedLinearElement: import("
|
|
163
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
163
164
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
164
165
|
originSnapOffset: {
|
|
165
166
|
x: number;
|
|
@@ -188,7 +189,7 @@ export declare const actionLink: {
|
|
|
188
189
|
action: string;
|
|
189
190
|
};
|
|
190
191
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
191
|
-
predicate: (elements: readonly import("
|
|
192
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
192
193
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
193
194
|
} & {
|
|
194
195
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|