@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,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { LinearElementEditor } from "
|
|
3
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "
|
|
2
|
+
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
3
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
4
4
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
5
5
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
6
6
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], appState: AppState, getAttribute: (element: ExcalidrawElement) => T, isRelevantElement: true | ((element: ExcalidrawElement) => boolean), defaultValue: T | ((isSomeElementSelected: boolean) => T)) => T;
|
|
@@ -8,7 +8,7 @@ export declare const actionChangeStrokeColor: {
|
|
|
8
8
|
name: "changeStrokeColor";
|
|
9
9
|
label: string;
|
|
10
10
|
trackEvent: false;
|
|
11
|
-
perform: (elements: readonly import("
|
|
11
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
12
12
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
} & {
|
|
14
14
|
keyTest?: undefined;
|
|
@@ -17,7 +17,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
17
17
|
name: "changeBackgroundColor";
|
|
18
18
|
label: string;
|
|
19
19
|
trackEvent: false;
|
|
20
|
-
perform: (elements: readonly import("
|
|
20
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
21
21
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
} & {
|
|
23
23
|
keyTest?: undefined;
|
|
@@ -26,7 +26,7 @@ export declare const actionChangeFillStyle: {
|
|
|
26
26
|
name: "changeFillStyle";
|
|
27
27
|
label: string;
|
|
28
28
|
trackEvent: false;
|
|
29
|
-
perform: (elements: readonly import("
|
|
29
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
30
30
|
elements: ExcalidrawElement[];
|
|
31
31
|
appState: {
|
|
32
32
|
currentItemFillStyle: any;
|
|
@@ -42,17 +42,17 @@ export declare const actionChangeFillStyle: {
|
|
|
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<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 actionChangeFillStyle: {
|
|
|
60
60
|
clip: boolean;
|
|
61
61
|
};
|
|
62
62
|
editingFrame: string | null;
|
|
63
|
-
elementsToHighlight: import("
|
|
64
|
-
editingTextElement: import("
|
|
63
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
64
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
65
65
|
editingLinearElement: 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;
|
|
@@ -76,7 +77,7 @@ export declare const actionChangeFillStyle: {
|
|
|
76
77
|
currentItemStrokeColor: string;
|
|
77
78
|
currentItemBackgroundColor: string;
|
|
78
79
|
currentItemStrokeWidth: number;
|
|
79
|
-
currentItemStrokeStyle: import("
|
|
80
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
80
81
|
currentItemRoughness: number;
|
|
81
82
|
currentItemOpacity: number;
|
|
82
83
|
currentItemFontFamily: number;
|
|
@@ -85,7 +86,7 @@ export declare const actionChangeFillStyle: {
|
|
|
85
86
|
currentItemStartArrowhead: Arrowhead | null;
|
|
86
87
|
currentItemEndArrowhead: Arrowhead | null;
|
|
87
88
|
currentHoveredFontFamily: number | null;
|
|
88
|
-
currentItemRoundness: import("
|
|
89
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
89
90
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
90
91
|
viewBackgroundColor: string;
|
|
91
92
|
scrollX: number;
|
|
@@ -98,7 +99,7 @@ export declare const actionChangeFillStyle: {
|
|
|
98
99
|
zoom: Readonly<{
|
|
99
100
|
value: import("../types").NormalizedZoomValue;
|
|
100
101
|
}>;
|
|
101
|
-
openMenu: "
|
|
102
|
+
openMenu: "shape" | "canvas" | null;
|
|
102
103
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
103
104
|
openSidebar: {
|
|
104
105
|
name: string;
|
|
@@ -116,7 +117,7 @@ export declare const actionChangeFillStyle: {
|
|
|
116
117
|
sourceElementId: string;
|
|
117
118
|
} | null;
|
|
118
119
|
defaultSidebarDockedPreference: boolean;
|
|
119
|
-
lastPointerDownWith: import("
|
|
120
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
120
121
|
selectedElementIds: Readonly<{
|
|
121
122
|
[id: string]: true;
|
|
122
123
|
}>;
|
|
@@ -134,7 +135,7 @@ export declare const actionChangeFillStyle: {
|
|
|
134
135
|
duration?: number | undefined;
|
|
135
136
|
} | null;
|
|
136
137
|
zenModeEnabled: boolean;
|
|
137
|
-
theme: import("
|
|
138
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
138
139
|
gridSize: number;
|
|
139
140
|
gridStep: number;
|
|
140
141
|
gridModeEnabled: boolean;
|
|
@@ -155,7 +156,7 @@ export declare const actionChangeFillStyle: {
|
|
|
155
156
|
[id: string]: true;
|
|
156
157
|
}> | undefined;
|
|
157
158
|
username?: string | null | undefined;
|
|
158
|
-
userState?: import("
|
|
159
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
159
160
|
color?: {
|
|
160
161
|
background: string;
|
|
161
162
|
stroke: string;
|
|
@@ -172,7 +173,7 @@ export declare const actionChangeFillStyle: {
|
|
|
172
173
|
open: boolean;
|
|
173
174
|
panels: number;
|
|
174
175
|
};
|
|
175
|
-
currentChartType: import("
|
|
176
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
176
177
|
pasteDialog: {
|
|
177
178
|
shown: false;
|
|
178
179
|
data: null;
|
|
@@ -181,7 +182,7 @@ export declare const actionChangeFillStyle: {
|
|
|
181
182
|
data: import("../charts").Spreadsheet;
|
|
182
183
|
};
|
|
183
184
|
pendingImageElementId: string | null;
|
|
184
|
-
showHyperlinkPopup: false | "
|
|
185
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
185
186
|
selectedLinearElement: LinearElementEditor | null;
|
|
186
187
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
187
188
|
originSnapOffset: {
|
|
@@ -214,7 +215,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
214
215
|
name: "changeStrokeWidth";
|
|
215
216
|
label: string;
|
|
216
217
|
trackEvent: false;
|
|
217
|
-
perform: (elements: readonly import("
|
|
218
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
218
219
|
elements: ExcalidrawElement[];
|
|
219
220
|
appState: {
|
|
220
221
|
currentItemStrokeWidth: any;
|
|
@@ -230,17 +231,17 @@ export declare const actionChangeStrokeWidth: {
|
|
|
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<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<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 actionChangeStrokeWidth: {
|
|
|
248
249
|
clip: boolean;
|
|
249
250
|
};
|
|
250
251
|
editingFrame: string | null;
|
|
251
|
-
elementsToHighlight: import("
|
|
252
|
-
editingTextElement: import("
|
|
252
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
253
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
253
254
|
editingLinearElement: 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,8 +265,8 @@ export declare const actionChangeStrokeWidth: {
|
|
|
263
265
|
exportScale: number;
|
|
264
266
|
currentItemStrokeColor: string;
|
|
265
267
|
currentItemBackgroundColor: string;
|
|
266
|
-
currentItemFillStyle: import("
|
|
267
|
-
currentItemStrokeStyle: import("
|
|
268
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
269
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
268
270
|
currentItemRoughness: number;
|
|
269
271
|
currentItemOpacity: number;
|
|
270
272
|
currentItemFontFamily: number;
|
|
@@ -273,7 +275,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
273
275
|
currentItemStartArrowhead: Arrowhead | null;
|
|
274
276
|
currentItemEndArrowhead: Arrowhead | null;
|
|
275
277
|
currentHoveredFontFamily: number | null;
|
|
276
|
-
currentItemRoundness: import("
|
|
278
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
277
279
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
278
280
|
viewBackgroundColor: string;
|
|
279
281
|
scrollX: number;
|
|
@@ -286,7 +288,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
286
288
|
zoom: Readonly<{
|
|
287
289
|
value: import("../types").NormalizedZoomValue;
|
|
288
290
|
}>;
|
|
289
|
-
openMenu: "
|
|
291
|
+
openMenu: "shape" | "canvas" | null;
|
|
290
292
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
291
293
|
openSidebar: {
|
|
292
294
|
name: string;
|
|
@@ -304,7 +306,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
304
306
|
sourceElementId: string;
|
|
305
307
|
} | null;
|
|
306
308
|
defaultSidebarDockedPreference: boolean;
|
|
307
|
-
lastPointerDownWith: import("
|
|
309
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
308
310
|
selectedElementIds: Readonly<{
|
|
309
311
|
[id: string]: true;
|
|
310
312
|
}>;
|
|
@@ -322,7 +324,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
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 actionChangeStrokeWidth: {
|
|
|
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 actionChangeStrokeWidth: {
|
|
|
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,7 +371,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
369
371
|
data: import("../charts").Spreadsheet;
|
|
370
372
|
};
|
|
371
373
|
pendingImageElementId: string | null;
|
|
372
|
-
showHyperlinkPopup: false | "
|
|
374
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
373
375
|
selectedLinearElement: LinearElementEditor | null;
|
|
374
376
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
375
377
|
originSnapOffset: {
|
|
@@ -402,7 +404,7 @@ export declare const actionChangeSloppiness: {
|
|
|
402
404
|
name: "changeSloppiness";
|
|
403
405
|
label: string;
|
|
404
406
|
trackEvent: false;
|
|
405
|
-
perform: (elements: readonly import("
|
|
407
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
406
408
|
elements: ExcalidrawElement[];
|
|
407
409
|
appState: {
|
|
408
410
|
currentItemRoughness: any;
|
|
@@ -418,17 +420,17 @@ export declare const actionChangeSloppiness: {
|
|
|
418
420
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
419
421
|
errorMessage: import("react").ReactNode;
|
|
420
422
|
activeEmbeddable: {
|
|
421
|
-
element: import("
|
|
423
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
422
424
|
state: "hover" | "active";
|
|
423
425
|
} | null;
|
|
424
|
-
newElement: import("
|
|
425
|
-
resizingElement: import("
|
|
426
|
-
multiElement: import("
|
|
427
|
-
selectionElement: import("
|
|
426
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
427
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
428
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
429
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
428
430
|
isBindingEnabled: boolean;
|
|
429
|
-
startBoundElement: import("
|
|
430
|
-
suggestedBindings: import("
|
|
431
|
-
frameToHighlight: import("
|
|
431
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
432
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
433
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
432
434
|
frameRendering: {
|
|
433
435
|
enabled: boolean;
|
|
434
436
|
name: boolean;
|
|
@@ -436,12 +438,13 @@ export declare const actionChangeSloppiness: {
|
|
|
436
438
|
clip: boolean;
|
|
437
439
|
};
|
|
438
440
|
editingFrame: string | null;
|
|
439
|
-
elementsToHighlight: import("
|
|
440
|
-
editingTextElement: import("
|
|
441
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
442
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
441
443
|
editingLinearElement: LinearElementEditor | null;
|
|
442
444
|
activeTool: {
|
|
443
445
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
444
446
|
locked: boolean;
|
|
447
|
+
fromSelection: boolean;
|
|
445
448
|
} & import("../types").ActiveTool;
|
|
446
449
|
penMode: boolean;
|
|
447
450
|
penDetected: boolean;
|
|
@@ -451,9 +454,9 @@ export declare const actionChangeSloppiness: {
|
|
|
451
454
|
exportScale: number;
|
|
452
455
|
currentItemStrokeColor: string;
|
|
453
456
|
currentItemBackgroundColor: string;
|
|
454
|
-
currentItemFillStyle: import("
|
|
457
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
455
458
|
currentItemStrokeWidth: number;
|
|
456
|
-
currentItemStrokeStyle: import("
|
|
459
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
457
460
|
currentItemOpacity: number;
|
|
458
461
|
currentItemFontFamily: number;
|
|
459
462
|
currentItemFontSize: number;
|
|
@@ -461,7 +464,7 @@ export declare const actionChangeSloppiness: {
|
|
|
461
464
|
currentItemStartArrowhead: Arrowhead | null;
|
|
462
465
|
currentItemEndArrowhead: Arrowhead | null;
|
|
463
466
|
currentHoveredFontFamily: number | null;
|
|
464
|
-
currentItemRoundness: import("
|
|
467
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
465
468
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
466
469
|
viewBackgroundColor: string;
|
|
467
470
|
scrollX: number;
|
|
@@ -474,7 +477,7 @@ export declare const actionChangeSloppiness: {
|
|
|
474
477
|
zoom: Readonly<{
|
|
475
478
|
value: import("../types").NormalizedZoomValue;
|
|
476
479
|
}>;
|
|
477
|
-
openMenu: "
|
|
480
|
+
openMenu: "shape" | "canvas" | null;
|
|
478
481
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
479
482
|
openSidebar: {
|
|
480
483
|
name: string;
|
|
@@ -492,7 +495,7 @@ export declare const actionChangeSloppiness: {
|
|
|
492
495
|
sourceElementId: string;
|
|
493
496
|
} | null;
|
|
494
497
|
defaultSidebarDockedPreference: boolean;
|
|
495
|
-
lastPointerDownWith: import("
|
|
498
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
496
499
|
selectedElementIds: Readonly<{
|
|
497
500
|
[id: string]: true;
|
|
498
501
|
}>;
|
|
@@ -510,7 +513,7 @@ export declare const actionChangeSloppiness: {
|
|
|
510
513
|
duration?: number | undefined;
|
|
511
514
|
} | null;
|
|
512
515
|
zenModeEnabled: boolean;
|
|
513
|
-
theme: import("
|
|
516
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
514
517
|
gridSize: number;
|
|
515
518
|
gridStep: number;
|
|
516
519
|
gridModeEnabled: boolean;
|
|
@@ -531,7 +534,7 @@ export declare const actionChangeSloppiness: {
|
|
|
531
534
|
[id: string]: true;
|
|
532
535
|
}> | undefined;
|
|
533
536
|
username?: string | null | undefined;
|
|
534
|
-
userState?: import("
|
|
537
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
535
538
|
color?: {
|
|
536
539
|
background: string;
|
|
537
540
|
stroke: string;
|
|
@@ -548,7 +551,7 @@ export declare const actionChangeSloppiness: {
|
|
|
548
551
|
open: boolean;
|
|
549
552
|
panels: number;
|
|
550
553
|
};
|
|
551
|
-
currentChartType: import("
|
|
554
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
552
555
|
pasteDialog: {
|
|
553
556
|
shown: false;
|
|
554
557
|
data: null;
|
|
@@ -557,7 +560,7 @@ export declare const actionChangeSloppiness: {
|
|
|
557
560
|
data: import("../charts").Spreadsheet;
|
|
558
561
|
};
|
|
559
562
|
pendingImageElementId: string | null;
|
|
560
|
-
showHyperlinkPopup: false | "
|
|
563
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
561
564
|
selectedLinearElement: LinearElementEditor | null;
|
|
562
565
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
563
566
|
originSnapOffset: {
|
|
@@ -590,7 +593,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
590
593
|
name: "changeStrokeStyle";
|
|
591
594
|
label: string;
|
|
592
595
|
trackEvent: false;
|
|
593
|
-
perform: (elements: readonly import("
|
|
596
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
594
597
|
elements: ExcalidrawElement[];
|
|
595
598
|
appState: {
|
|
596
599
|
currentItemStrokeStyle: any;
|
|
@@ -606,17 +609,17 @@ export declare const actionChangeStrokeStyle: {
|
|
|
606
609
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
607
610
|
errorMessage: import("react").ReactNode;
|
|
608
611
|
activeEmbeddable: {
|
|
609
|
-
element: import("
|
|
612
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
610
613
|
state: "hover" | "active";
|
|
611
614
|
} | null;
|
|
612
|
-
newElement: import("
|
|
613
|
-
resizingElement: import("
|
|
614
|
-
multiElement: import("
|
|
615
|
-
selectionElement: import("
|
|
615
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
616
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
617
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
618
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
616
619
|
isBindingEnabled: boolean;
|
|
617
|
-
startBoundElement: import("
|
|
618
|
-
suggestedBindings: import("
|
|
619
|
-
frameToHighlight: import("
|
|
620
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
621
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
622
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
620
623
|
frameRendering: {
|
|
621
624
|
enabled: boolean;
|
|
622
625
|
name: boolean;
|
|
@@ -624,12 +627,13 @@ export declare const actionChangeStrokeStyle: {
|
|
|
624
627
|
clip: boolean;
|
|
625
628
|
};
|
|
626
629
|
editingFrame: string | null;
|
|
627
|
-
elementsToHighlight: import("
|
|
628
|
-
editingTextElement: import("
|
|
630
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
631
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
629
632
|
editingLinearElement: LinearElementEditor | null;
|
|
630
633
|
activeTool: {
|
|
631
634
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
632
635
|
locked: boolean;
|
|
636
|
+
fromSelection: boolean;
|
|
633
637
|
} & import("../types").ActiveTool;
|
|
634
638
|
penMode: boolean;
|
|
635
639
|
penDetected: boolean;
|
|
@@ -639,7 +643,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
639
643
|
exportScale: number;
|
|
640
644
|
currentItemStrokeColor: string;
|
|
641
645
|
currentItemBackgroundColor: string;
|
|
642
|
-
currentItemFillStyle: import("
|
|
646
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
643
647
|
currentItemStrokeWidth: number;
|
|
644
648
|
currentItemRoughness: number;
|
|
645
649
|
currentItemOpacity: number;
|
|
@@ -649,7 +653,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
649
653
|
currentItemStartArrowhead: Arrowhead | null;
|
|
650
654
|
currentItemEndArrowhead: Arrowhead | null;
|
|
651
655
|
currentHoveredFontFamily: number | null;
|
|
652
|
-
currentItemRoundness: import("
|
|
656
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
653
657
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
654
658
|
viewBackgroundColor: string;
|
|
655
659
|
scrollX: number;
|
|
@@ -662,7 +666,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
662
666
|
zoom: Readonly<{
|
|
663
667
|
value: import("../types").NormalizedZoomValue;
|
|
664
668
|
}>;
|
|
665
|
-
openMenu: "
|
|
669
|
+
openMenu: "shape" | "canvas" | null;
|
|
666
670
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
667
671
|
openSidebar: {
|
|
668
672
|
name: string;
|
|
@@ -680,7 +684,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
680
684
|
sourceElementId: string;
|
|
681
685
|
} | null;
|
|
682
686
|
defaultSidebarDockedPreference: boolean;
|
|
683
|
-
lastPointerDownWith: import("
|
|
687
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
684
688
|
selectedElementIds: Readonly<{
|
|
685
689
|
[id: string]: true;
|
|
686
690
|
}>;
|
|
@@ -698,7 +702,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
698
702
|
duration?: number | undefined;
|
|
699
703
|
} | null;
|
|
700
704
|
zenModeEnabled: boolean;
|
|
701
|
-
theme: import("
|
|
705
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
702
706
|
gridSize: number;
|
|
703
707
|
gridStep: number;
|
|
704
708
|
gridModeEnabled: boolean;
|
|
@@ -719,7 +723,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
719
723
|
[id: string]: true;
|
|
720
724
|
}> | undefined;
|
|
721
725
|
username?: string | null | undefined;
|
|
722
|
-
userState?: import("
|
|
726
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
723
727
|
color?: {
|
|
724
728
|
background: string;
|
|
725
729
|
stroke: string;
|
|
@@ -736,7 +740,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
736
740
|
open: boolean;
|
|
737
741
|
panels: number;
|
|
738
742
|
};
|
|
739
|
-
currentChartType: import("
|
|
743
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
740
744
|
pasteDialog: {
|
|
741
745
|
shown: false;
|
|
742
746
|
data: null;
|
|
@@ -745,7 +749,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
745
749
|
data: import("../charts").Spreadsheet;
|
|
746
750
|
};
|
|
747
751
|
pendingImageElementId: string | null;
|
|
748
|
-
showHyperlinkPopup: false | "
|
|
752
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
749
753
|
selectedLinearElement: LinearElementEditor | null;
|
|
750
754
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
751
755
|
originSnapOffset: {
|
|
@@ -778,7 +782,7 @@ export declare const actionChangeOpacity: {
|
|
|
778
782
|
name: "changeOpacity";
|
|
779
783
|
label: string;
|
|
780
784
|
trackEvent: false;
|
|
781
|
-
perform: (elements: readonly import("
|
|
785
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
782
786
|
elements: ExcalidrawElement[];
|
|
783
787
|
appState: {
|
|
784
788
|
currentItemOpacity: any;
|
|
@@ -794,17 +798,17 @@ export declare const actionChangeOpacity: {
|
|
|
794
798
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
795
799
|
errorMessage: import("react").ReactNode;
|
|
796
800
|
activeEmbeddable: {
|
|
797
|
-
element: import("
|
|
801
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
798
802
|
state: "hover" | "active";
|
|
799
803
|
} | null;
|
|
800
|
-
newElement: import("
|
|
801
|
-
resizingElement: import("
|
|
802
|
-
multiElement: import("
|
|
803
|
-
selectionElement: import("
|
|
804
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
805
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
806
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
807
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
804
808
|
isBindingEnabled: boolean;
|
|
805
|
-
startBoundElement: import("
|
|
806
|
-
suggestedBindings: import("
|
|
807
|
-
frameToHighlight: import("
|
|
809
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
810
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
811
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
808
812
|
frameRendering: {
|
|
809
813
|
enabled: boolean;
|
|
810
814
|
name: boolean;
|
|
@@ -812,12 +816,13 @@ export declare const actionChangeOpacity: {
|
|
|
812
816
|
clip: boolean;
|
|
813
817
|
};
|
|
814
818
|
editingFrame: string | null;
|
|
815
|
-
elementsToHighlight: import("
|
|
816
|
-
editingTextElement: import("
|
|
819
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
820
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
817
821
|
editingLinearElement: LinearElementEditor | null;
|
|
818
822
|
activeTool: {
|
|
819
823
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
820
824
|
locked: boolean;
|
|
825
|
+
fromSelection: boolean;
|
|
821
826
|
} & import("../types").ActiveTool;
|
|
822
827
|
penMode: boolean;
|
|
823
828
|
penDetected: boolean;
|
|
@@ -827,9 +832,9 @@ export declare const actionChangeOpacity: {
|
|
|
827
832
|
exportScale: number;
|
|
828
833
|
currentItemStrokeColor: string;
|
|
829
834
|
currentItemBackgroundColor: string;
|
|
830
|
-
currentItemFillStyle: import("
|
|
835
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
831
836
|
currentItemStrokeWidth: number;
|
|
832
|
-
currentItemStrokeStyle: import("
|
|
837
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
833
838
|
currentItemRoughness: number;
|
|
834
839
|
currentItemFontFamily: number;
|
|
835
840
|
currentItemFontSize: number;
|
|
@@ -837,7 +842,7 @@ export declare const actionChangeOpacity: {
|
|
|
837
842
|
currentItemStartArrowhead: Arrowhead | null;
|
|
838
843
|
currentItemEndArrowhead: Arrowhead | null;
|
|
839
844
|
currentHoveredFontFamily: number | null;
|
|
840
|
-
currentItemRoundness: import("
|
|
845
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
841
846
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
842
847
|
viewBackgroundColor: string;
|
|
843
848
|
scrollX: number;
|
|
@@ -850,7 +855,7 @@ export declare const actionChangeOpacity: {
|
|
|
850
855
|
zoom: Readonly<{
|
|
851
856
|
value: import("../types").NormalizedZoomValue;
|
|
852
857
|
}>;
|
|
853
|
-
openMenu: "
|
|
858
|
+
openMenu: "shape" | "canvas" | null;
|
|
854
859
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
855
860
|
openSidebar: {
|
|
856
861
|
name: string;
|
|
@@ -868,7 +873,7 @@ export declare const actionChangeOpacity: {
|
|
|
868
873
|
sourceElementId: string;
|
|
869
874
|
} | null;
|
|
870
875
|
defaultSidebarDockedPreference: boolean;
|
|
871
|
-
lastPointerDownWith: import("
|
|
876
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
872
877
|
selectedElementIds: Readonly<{
|
|
873
878
|
[id: string]: true;
|
|
874
879
|
}>;
|
|
@@ -886,7 +891,7 @@ export declare const actionChangeOpacity: {
|
|
|
886
891
|
duration?: number | undefined;
|
|
887
892
|
} | null;
|
|
888
893
|
zenModeEnabled: boolean;
|
|
889
|
-
theme: import("
|
|
894
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
890
895
|
gridSize: number;
|
|
891
896
|
gridStep: number;
|
|
892
897
|
gridModeEnabled: boolean;
|
|
@@ -907,7 +912,7 @@ export declare const actionChangeOpacity: {
|
|
|
907
912
|
[id: string]: true;
|
|
908
913
|
}> | undefined;
|
|
909
914
|
username?: string | null | undefined;
|
|
910
|
-
userState?: import("
|
|
915
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
911
916
|
color?: {
|
|
912
917
|
background: string;
|
|
913
918
|
stroke: string;
|
|
@@ -924,7 +929,7 @@ export declare const actionChangeOpacity: {
|
|
|
924
929
|
open: boolean;
|
|
925
930
|
panels: number;
|
|
926
931
|
};
|
|
927
|
-
currentChartType: import("
|
|
932
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
928
933
|
pasteDialog: {
|
|
929
934
|
shown: false;
|
|
930
935
|
data: null;
|
|
@@ -933,7 +938,7 @@ export declare const actionChangeOpacity: {
|
|
|
933
938
|
data: import("../charts").Spreadsheet;
|
|
934
939
|
};
|
|
935
940
|
pendingImageElementId: string | null;
|
|
936
|
-
showHyperlinkPopup: false | "
|
|
941
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
937
942
|
selectedLinearElement: LinearElementEditor | null;
|
|
938
943
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
939
944
|
originSnapOffset: {
|
|
@@ -966,7 +971,7 @@ export declare const actionChangeFontSize: {
|
|
|
966
971
|
name: "changeFontSize";
|
|
967
972
|
label: string;
|
|
968
973
|
trackEvent: false;
|
|
969
|
-
perform: (elements: readonly import("
|
|
974
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
970
975
|
elements: ExcalidrawElement[];
|
|
971
976
|
appState: {
|
|
972
977
|
currentItemFontSize: number;
|
|
@@ -982,17 +987,17 @@ export declare const actionChangeFontSize: {
|
|
|
982
987
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
983
988
|
errorMessage: import("react").ReactNode;
|
|
984
989
|
activeEmbeddable: {
|
|
985
|
-
element: import("
|
|
990
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
986
991
|
state: "hover" | "active";
|
|
987
992
|
} | null;
|
|
988
|
-
newElement: import("
|
|
989
|
-
resizingElement: import("
|
|
990
|
-
multiElement: import("
|
|
991
|
-
selectionElement: import("
|
|
993
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
994
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
995
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
996
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
992
997
|
isBindingEnabled: boolean;
|
|
993
|
-
startBoundElement: import("
|
|
994
|
-
suggestedBindings: import("
|
|
995
|
-
frameToHighlight: import("
|
|
998
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
999
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1000
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
996
1001
|
frameRendering: {
|
|
997
1002
|
enabled: boolean;
|
|
998
1003
|
name: boolean;
|
|
@@ -1000,12 +1005,13 @@ export declare const actionChangeFontSize: {
|
|
|
1000
1005
|
clip: boolean;
|
|
1001
1006
|
};
|
|
1002
1007
|
editingFrame: string | null;
|
|
1003
|
-
elementsToHighlight: import("
|
|
1004
|
-
editingTextElement: import("
|
|
1008
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1009
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1005
1010
|
editingLinearElement: LinearElementEditor | null;
|
|
1006
1011
|
activeTool: {
|
|
1007
1012
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1008
1013
|
locked: boolean;
|
|
1014
|
+
fromSelection: boolean;
|
|
1009
1015
|
} & import("../types").ActiveTool;
|
|
1010
1016
|
penMode: boolean;
|
|
1011
1017
|
penDetected: boolean;
|
|
@@ -1015,9 +1021,9 @@ export declare const actionChangeFontSize: {
|
|
|
1015
1021
|
exportScale: number;
|
|
1016
1022
|
currentItemStrokeColor: string;
|
|
1017
1023
|
currentItemBackgroundColor: string;
|
|
1018
|
-
currentItemFillStyle: import("
|
|
1024
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1019
1025
|
currentItemStrokeWidth: number;
|
|
1020
|
-
currentItemStrokeStyle: import("
|
|
1026
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1021
1027
|
currentItemRoughness: number;
|
|
1022
1028
|
currentItemOpacity: number;
|
|
1023
1029
|
currentItemFontFamily: number;
|
|
@@ -1025,7 +1031,7 @@ export declare const actionChangeFontSize: {
|
|
|
1025
1031
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1026
1032
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1027
1033
|
currentHoveredFontFamily: number | null;
|
|
1028
|
-
currentItemRoundness: import("
|
|
1034
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1029
1035
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1030
1036
|
viewBackgroundColor: string;
|
|
1031
1037
|
scrollX: number;
|
|
@@ -1038,7 +1044,7 @@ export declare const actionChangeFontSize: {
|
|
|
1038
1044
|
zoom: Readonly<{
|
|
1039
1045
|
value: import("../types").NormalizedZoomValue;
|
|
1040
1046
|
}>;
|
|
1041
|
-
openMenu: "
|
|
1047
|
+
openMenu: "shape" | "canvas" | null;
|
|
1042
1048
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1043
1049
|
openSidebar: {
|
|
1044
1050
|
name: string;
|
|
@@ -1056,7 +1062,7 @@ export declare const actionChangeFontSize: {
|
|
|
1056
1062
|
sourceElementId: string;
|
|
1057
1063
|
} | null;
|
|
1058
1064
|
defaultSidebarDockedPreference: boolean;
|
|
1059
|
-
lastPointerDownWith: import("
|
|
1065
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1060
1066
|
selectedElementIds: Readonly<{
|
|
1061
1067
|
[id: string]: true;
|
|
1062
1068
|
}>;
|
|
@@ -1074,7 +1080,7 @@ export declare const actionChangeFontSize: {
|
|
|
1074
1080
|
duration?: number | undefined;
|
|
1075
1081
|
} | null;
|
|
1076
1082
|
zenModeEnabled: boolean;
|
|
1077
|
-
theme: import("
|
|
1083
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1078
1084
|
gridSize: number;
|
|
1079
1085
|
gridStep: number;
|
|
1080
1086
|
gridModeEnabled: boolean;
|
|
@@ -1095,7 +1101,7 @@ export declare const actionChangeFontSize: {
|
|
|
1095
1101
|
[id: string]: true;
|
|
1096
1102
|
}> | undefined;
|
|
1097
1103
|
username?: string | null | undefined;
|
|
1098
|
-
userState?: import("
|
|
1104
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1099
1105
|
color?: {
|
|
1100
1106
|
background: string;
|
|
1101
1107
|
stroke: string;
|
|
@@ -1112,7 +1118,7 @@ export declare const actionChangeFontSize: {
|
|
|
1112
1118
|
open: boolean;
|
|
1113
1119
|
panels: number;
|
|
1114
1120
|
};
|
|
1115
|
-
currentChartType: import("
|
|
1121
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1116
1122
|
pasteDialog: {
|
|
1117
1123
|
shown: false;
|
|
1118
1124
|
data: null;
|
|
@@ -1121,7 +1127,7 @@ export declare const actionChangeFontSize: {
|
|
|
1121
1127
|
data: import("../charts").Spreadsheet;
|
|
1122
1128
|
};
|
|
1123
1129
|
pendingImageElementId: string | null;
|
|
1124
|
-
showHyperlinkPopup: false | "
|
|
1130
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1125
1131
|
selectedLinearElement: LinearElementEditor | null;
|
|
1126
1132
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1127
1133
|
originSnapOffset: {
|
|
@@ -1155,7 +1161,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1155
1161
|
label: string;
|
|
1156
1162
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1157
1163
|
trackEvent: false;
|
|
1158
|
-
perform: (elements: readonly import("
|
|
1164
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1159
1165
|
elements: ExcalidrawElement[];
|
|
1160
1166
|
appState: {
|
|
1161
1167
|
currentItemFontSize: number;
|
|
@@ -1171,17 +1177,17 @@ export declare const actionDecreaseFontSize: {
|
|
|
1171
1177
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
1172
1178
|
errorMessage: import("react").ReactNode;
|
|
1173
1179
|
activeEmbeddable: {
|
|
1174
|
-
element: import("
|
|
1180
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1175
1181
|
state: "hover" | "active";
|
|
1176
1182
|
} | null;
|
|
1177
|
-
newElement: import("
|
|
1178
|
-
resizingElement: import("
|
|
1179
|
-
multiElement: import("
|
|
1180
|
-
selectionElement: import("
|
|
1183
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1184
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1185
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1186
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1181
1187
|
isBindingEnabled: boolean;
|
|
1182
|
-
startBoundElement: import("
|
|
1183
|
-
suggestedBindings: import("
|
|
1184
|
-
frameToHighlight: import("
|
|
1188
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1189
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1190
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1185
1191
|
frameRendering: {
|
|
1186
1192
|
enabled: boolean;
|
|
1187
1193
|
name: boolean;
|
|
@@ -1189,12 +1195,13 @@ export declare const actionDecreaseFontSize: {
|
|
|
1189
1195
|
clip: boolean;
|
|
1190
1196
|
};
|
|
1191
1197
|
editingFrame: string | null;
|
|
1192
|
-
elementsToHighlight: import("
|
|
1193
|
-
editingTextElement: import("
|
|
1198
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1199
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1194
1200
|
editingLinearElement: LinearElementEditor | null;
|
|
1195
1201
|
activeTool: {
|
|
1196
1202
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1197
1203
|
locked: boolean;
|
|
1204
|
+
fromSelection: boolean;
|
|
1198
1205
|
} & import("../types").ActiveTool;
|
|
1199
1206
|
penMode: boolean;
|
|
1200
1207
|
penDetected: boolean;
|
|
@@ -1204,9 +1211,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
1204
1211
|
exportScale: number;
|
|
1205
1212
|
currentItemStrokeColor: string;
|
|
1206
1213
|
currentItemBackgroundColor: string;
|
|
1207
|
-
currentItemFillStyle: import("
|
|
1214
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1208
1215
|
currentItemStrokeWidth: number;
|
|
1209
|
-
currentItemStrokeStyle: import("
|
|
1216
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1210
1217
|
currentItemRoughness: number;
|
|
1211
1218
|
currentItemOpacity: number;
|
|
1212
1219
|
currentItemFontFamily: number;
|
|
@@ -1214,7 +1221,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1214
1221
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1215
1222
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1216
1223
|
currentHoveredFontFamily: number | null;
|
|
1217
|
-
currentItemRoundness: import("
|
|
1224
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1218
1225
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1219
1226
|
viewBackgroundColor: string;
|
|
1220
1227
|
scrollX: number;
|
|
@@ -1227,7 +1234,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1227
1234
|
zoom: Readonly<{
|
|
1228
1235
|
value: import("../types").NormalizedZoomValue;
|
|
1229
1236
|
}>;
|
|
1230
|
-
openMenu: "
|
|
1237
|
+
openMenu: "shape" | "canvas" | null;
|
|
1231
1238
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1232
1239
|
openSidebar: {
|
|
1233
1240
|
name: string;
|
|
@@ -1245,7 +1252,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1245
1252
|
sourceElementId: string;
|
|
1246
1253
|
} | null;
|
|
1247
1254
|
defaultSidebarDockedPreference: boolean;
|
|
1248
|
-
lastPointerDownWith: import("
|
|
1255
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1249
1256
|
selectedElementIds: Readonly<{
|
|
1250
1257
|
[id: string]: true;
|
|
1251
1258
|
}>;
|
|
@@ -1263,7 +1270,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1263
1270
|
duration?: number | undefined;
|
|
1264
1271
|
} | null;
|
|
1265
1272
|
zenModeEnabled: boolean;
|
|
1266
|
-
theme: import("
|
|
1273
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1267
1274
|
gridSize: number;
|
|
1268
1275
|
gridStep: number;
|
|
1269
1276
|
gridModeEnabled: boolean;
|
|
@@ -1284,7 +1291,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1284
1291
|
[id: string]: true;
|
|
1285
1292
|
}> | undefined;
|
|
1286
1293
|
username?: string | null | undefined;
|
|
1287
|
-
userState?: import("
|
|
1294
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1288
1295
|
color?: {
|
|
1289
1296
|
background: string;
|
|
1290
1297
|
stroke: string;
|
|
@@ -1301,7 +1308,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1301
1308
|
open: boolean;
|
|
1302
1309
|
panels: number;
|
|
1303
1310
|
};
|
|
1304
|
-
currentChartType: import("
|
|
1311
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1305
1312
|
pasteDialog: {
|
|
1306
1313
|
shown: false;
|
|
1307
1314
|
data: null;
|
|
@@ -1310,7 +1317,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1310
1317
|
data: import("../charts").Spreadsheet;
|
|
1311
1318
|
};
|
|
1312
1319
|
pendingImageElementId: string | null;
|
|
1313
|
-
showHyperlinkPopup: false | "
|
|
1320
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1314
1321
|
selectedLinearElement: LinearElementEditor | null;
|
|
1315
1322
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1316
1323
|
originSnapOffset: {
|
|
@@ -1344,7 +1351,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1344
1351
|
label: string;
|
|
1345
1352
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1346
1353
|
trackEvent: false;
|
|
1347
|
-
perform: (elements: readonly import("
|
|
1354
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1348
1355
|
elements: ExcalidrawElement[];
|
|
1349
1356
|
appState: {
|
|
1350
1357
|
currentItemFontSize: number;
|
|
@@ -1360,17 +1367,17 @@ export declare const actionIncreaseFontSize: {
|
|
|
1360
1367
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
1361
1368
|
errorMessage: import("react").ReactNode;
|
|
1362
1369
|
activeEmbeddable: {
|
|
1363
|
-
element: import("
|
|
1370
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1364
1371
|
state: "hover" | "active";
|
|
1365
1372
|
} | null;
|
|
1366
|
-
newElement: import("
|
|
1367
|
-
resizingElement: import("
|
|
1368
|
-
multiElement: import("
|
|
1369
|
-
selectionElement: import("
|
|
1373
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1374
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1375
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1376
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1370
1377
|
isBindingEnabled: boolean;
|
|
1371
|
-
startBoundElement: import("
|
|
1372
|
-
suggestedBindings: import("
|
|
1373
|
-
frameToHighlight: import("
|
|
1378
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1379
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1380
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1374
1381
|
frameRendering: {
|
|
1375
1382
|
enabled: boolean;
|
|
1376
1383
|
name: boolean;
|
|
@@ -1378,12 +1385,13 @@ export declare const actionIncreaseFontSize: {
|
|
|
1378
1385
|
clip: boolean;
|
|
1379
1386
|
};
|
|
1380
1387
|
editingFrame: string | null;
|
|
1381
|
-
elementsToHighlight: import("
|
|
1382
|
-
editingTextElement: import("
|
|
1388
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1389
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1383
1390
|
editingLinearElement: LinearElementEditor | null;
|
|
1384
1391
|
activeTool: {
|
|
1385
1392
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1386
1393
|
locked: boolean;
|
|
1394
|
+
fromSelection: boolean;
|
|
1387
1395
|
} & import("../types").ActiveTool;
|
|
1388
1396
|
penMode: boolean;
|
|
1389
1397
|
penDetected: boolean;
|
|
@@ -1393,9 +1401,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1393
1401
|
exportScale: number;
|
|
1394
1402
|
currentItemStrokeColor: string;
|
|
1395
1403
|
currentItemBackgroundColor: string;
|
|
1396
|
-
currentItemFillStyle: import("
|
|
1404
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1397
1405
|
currentItemStrokeWidth: number;
|
|
1398
|
-
currentItemStrokeStyle: import("
|
|
1406
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1399
1407
|
currentItemRoughness: number;
|
|
1400
1408
|
currentItemOpacity: number;
|
|
1401
1409
|
currentItemFontFamily: number;
|
|
@@ -1403,7 +1411,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1403
1411
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1404
1412
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1405
1413
|
currentHoveredFontFamily: number | null;
|
|
1406
|
-
currentItemRoundness: import("
|
|
1414
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1407
1415
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1408
1416
|
viewBackgroundColor: string;
|
|
1409
1417
|
scrollX: number;
|
|
@@ -1416,7 +1424,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1416
1424
|
zoom: Readonly<{
|
|
1417
1425
|
value: import("../types").NormalizedZoomValue;
|
|
1418
1426
|
}>;
|
|
1419
|
-
openMenu: "
|
|
1427
|
+
openMenu: "shape" | "canvas" | null;
|
|
1420
1428
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1421
1429
|
openSidebar: {
|
|
1422
1430
|
name: string;
|
|
@@ -1434,7 +1442,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1434
1442
|
sourceElementId: string;
|
|
1435
1443
|
} | null;
|
|
1436
1444
|
defaultSidebarDockedPreference: boolean;
|
|
1437
|
-
lastPointerDownWith: import("
|
|
1445
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1438
1446
|
selectedElementIds: Readonly<{
|
|
1439
1447
|
[id: string]: true;
|
|
1440
1448
|
}>;
|
|
@@ -1452,7 +1460,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1452
1460
|
duration?: number | undefined;
|
|
1453
1461
|
} | null;
|
|
1454
1462
|
zenModeEnabled: boolean;
|
|
1455
|
-
theme: import("
|
|
1463
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1456
1464
|
gridSize: number;
|
|
1457
1465
|
gridStep: number;
|
|
1458
1466
|
gridModeEnabled: boolean;
|
|
@@ -1473,7 +1481,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1473
1481
|
[id: string]: true;
|
|
1474
1482
|
}> | undefined;
|
|
1475
1483
|
username?: string | null | undefined;
|
|
1476
|
-
userState?: import("
|
|
1484
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1477
1485
|
color?: {
|
|
1478
1486
|
background: string;
|
|
1479
1487
|
stroke: string;
|
|
@@ -1490,7 +1498,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1490
1498
|
open: boolean;
|
|
1491
1499
|
panels: number;
|
|
1492
1500
|
};
|
|
1493
|
-
currentChartType: import("
|
|
1501
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1494
1502
|
pasteDialog: {
|
|
1495
1503
|
shown: false;
|
|
1496
1504
|
data: null;
|
|
@@ -1499,7 +1507,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1499
1507
|
data: import("../charts").Spreadsheet;
|
|
1500
1508
|
};
|
|
1501
1509
|
pendingImageElementId: string | null;
|
|
1502
|
-
showHyperlinkPopup: false | "
|
|
1510
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1503
1511
|
selectedLinearElement: LinearElementEditor | null;
|
|
1504
1512
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1505
1513
|
originSnapOffset: {
|
|
@@ -1532,10 +1540,10 @@ export declare const actionChangeFontFamily: {
|
|
|
1532
1540
|
name: "changeFontFamily";
|
|
1533
1541
|
label: string;
|
|
1534
1542
|
trackEvent: false;
|
|
1535
|
-
perform: (elements: readonly import("
|
|
1543
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1536
1544
|
appState: {
|
|
1537
|
-
currentItemFontFamily: number;
|
|
1538
1545
|
currentHoveredFontFamily: number | null;
|
|
1546
|
+
currentItemFontFamily: number;
|
|
1539
1547
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1540
1548
|
contextMenu: {
|
|
1541
1549
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1549,17 +1557,17 @@ export declare const actionChangeFontFamily: {
|
|
|
1549
1557
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
1550
1558
|
errorMessage: import("react").ReactNode;
|
|
1551
1559
|
activeEmbeddable: {
|
|
1552
|
-
element: import("
|
|
1560
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1553
1561
|
state: "hover" | "active";
|
|
1554
1562
|
} | null;
|
|
1555
|
-
newElement: import("
|
|
1556
|
-
resizingElement: import("
|
|
1557
|
-
multiElement: import("
|
|
1558
|
-
selectionElement: import("
|
|
1563
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1564
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1565
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1566
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1559
1567
|
isBindingEnabled: boolean;
|
|
1560
|
-
startBoundElement: import("
|
|
1561
|
-
suggestedBindings: import("
|
|
1562
|
-
frameToHighlight: import("
|
|
1568
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1569
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1570
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1563
1571
|
frameRendering: {
|
|
1564
1572
|
enabled: boolean;
|
|
1565
1573
|
name: boolean;
|
|
@@ -1567,12 +1575,13 @@ export declare const actionChangeFontFamily: {
|
|
|
1567
1575
|
clip: boolean;
|
|
1568
1576
|
};
|
|
1569
1577
|
editingFrame: string | null;
|
|
1570
|
-
elementsToHighlight: import("
|
|
1571
|
-
editingTextElement: import("
|
|
1578
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1579
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1572
1580
|
editingLinearElement: LinearElementEditor | null;
|
|
1573
1581
|
activeTool: {
|
|
1574
1582
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1575
1583
|
locked: boolean;
|
|
1584
|
+
fromSelection: boolean;
|
|
1576
1585
|
} & import("../types").ActiveTool;
|
|
1577
1586
|
penMode: boolean;
|
|
1578
1587
|
penDetected: boolean;
|
|
@@ -1582,16 +1591,16 @@ export declare const actionChangeFontFamily: {
|
|
|
1582
1591
|
exportScale: number;
|
|
1583
1592
|
currentItemStrokeColor: string;
|
|
1584
1593
|
currentItemBackgroundColor: string;
|
|
1585
|
-
currentItemFillStyle: import("
|
|
1594
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1586
1595
|
currentItemStrokeWidth: number;
|
|
1587
|
-
currentItemStrokeStyle: import("
|
|
1596
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1588
1597
|
currentItemRoughness: number;
|
|
1589
1598
|
currentItemOpacity: number;
|
|
1590
1599
|
currentItemFontSize: number;
|
|
1591
1600
|
currentItemTextAlign: string;
|
|
1592
1601
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1593
1602
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1594
|
-
currentItemRoundness: import("
|
|
1603
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1595
1604
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1596
1605
|
viewBackgroundColor: string;
|
|
1597
1606
|
scrollX: number;
|
|
@@ -1604,7 +1613,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1604
1613
|
zoom: Readonly<{
|
|
1605
1614
|
value: import("../types").NormalizedZoomValue;
|
|
1606
1615
|
}>;
|
|
1607
|
-
openMenu: "
|
|
1616
|
+
openMenu: "shape" | "canvas" | null;
|
|
1608
1617
|
openSidebar: {
|
|
1609
1618
|
name: string;
|
|
1610
1619
|
tab?: string | undefined;
|
|
@@ -1621,7 +1630,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1621
1630
|
sourceElementId: string;
|
|
1622
1631
|
} | null;
|
|
1623
1632
|
defaultSidebarDockedPreference: boolean;
|
|
1624
|
-
lastPointerDownWith: import("
|
|
1633
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1625
1634
|
selectedElementIds: Readonly<{
|
|
1626
1635
|
[id: string]: true;
|
|
1627
1636
|
}>;
|
|
@@ -1639,7 +1648,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1639
1648
|
duration?: number | undefined;
|
|
1640
1649
|
} | null;
|
|
1641
1650
|
zenModeEnabled: boolean;
|
|
1642
|
-
theme: import("
|
|
1651
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1643
1652
|
gridSize: number;
|
|
1644
1653
|
gridStep: number;
|
|
1645
1654
|
gridModeEnabled: boolean;
|
|
@@ -1660,7 +1669,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1660
1669
|
[id: string]: true;
|
|
1661
1670
|
}> | undefined;
|
|
1662
1671
|
username?: string | null | undefined;
|
|
1663
|
-
userState?: import("
|
|
1672
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1664
1673
|
color?: {
|
|
1665
1674
|
background: string;
|
|
1666
1675
|
stroke: string;
|
|
@@ -1677,7 +1686,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1677
1686
|
open: boolean;
|
|
1678
1687
|
panels: number;
|
|
1679
1688
|
};
|
|
1680
|
-
currentChartType: import("
|
|
1689
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1681
1690
|
pasteDialog: {
|
|
1682
1691
|
shown: false;
|
|
1683
1692
|
data: null;
|
|
@@ -1686,7 +1695,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1686
1695
|
data: import("../charts").Spreadsheet;
|
|
1687
1696
|
};
|
|
1688
1697
|
pendingImageElementId: string | null;
|
|
1689
|
-
showHyperlinkPopup: false | "
|
|
1698
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1690
1699
|
selectedLinearElement: LinearElementEditor | null;
|
|
1691
1700
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1692
1701
|
originSnapOffset: {
|
|
@@ -1713,8 +1722,8 @@ export declare const actionChangeFontFamily: {
|
|
|
1713
1722
|
} | {
|
|
1714
1723
|
elements: ExcalidrawElement[];
|
|
1715
1724
|
appState: {
|
|
1716
|
-
currentItemFontFamily: number;
|
|
1717
1725
|
currentHoveredFontFamily: number | null;
|
|
1726
|
+
currentItemFontFamily: number;
|
|
1718
1727
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1719
1728
|
contextMenu: {
|
|
1720
1729
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1728,17 +1737,17 @@ export declare const actionChangeFontFamily: {
|
|
|
1728
1737
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
1729
1738
|
errorMessage: import("react").ReactNode;
|
|
1730
1739
|
activeEmbeddable: {
|
|
1731
|
-
element: import("
|
|
1740
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1732
1741
|
state: "hover" | "active";
|
|
1733
1742
|
} | null;
|
|
1734
|
-
newElement: import("
|
|
1735
|
-
resizingElement: import("
|
|
1736
|
-
multiElement: import("
|
|
1737
|
-
selectionElement: import("
|
|
1743
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1744
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1745
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1746
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1738
1747
|
isBindingEnabled: boolean;
|
|
1739
|
-
startBoundElement: import("
|
|
1740
|
-
suggestedBindings: import("
|
|
1741
|
-
frameToHighlight: import("
|
|
1748
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1749
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1750
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1742
1751
|
frameRendering: {
|
|
1743
1752
|
enabled: boolean;
|
|
1744
1753
|
name: boolean;
|
|
@@ -1746,12 +1755,13 @@ export declare const actionChangeFontFamily: {
|
|
|
1746
1755
|
clip: boolean;
|
|
1747
1756
|
};
|
|
1748
1757
|
editingFrame: string | null;
|
|
1749
|
-
elementsToHighlight: import("
|
|
1750
|
-
editingTextElement: import("
|
|
1758
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1759
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1751
1760
|
editingLinearElement: LinearElementEditor | null;
|
|
1752
1761
|
activeTool: {
|
|
1753
1762
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1754
1763
|
locked: boolean;
|
|
1764
|
+
fromSelection: boolean;
|
|
1755
1765
|
} & import("../types").ActiveTool;
|
|
1756
1766
|
penMode: boolean;
|
|
1757
1767
|
penDetected: boolean;
|
|
@@ -1761,16 +1771,16 @@ export declare const actionChangeFontFamily: {
|
|
|
1761
1771
|
exportScale: number;
|
|
1762
1772
|
currentItemStrokeColor: string;
|
|
1763
1773
|
currentItemBackgroundColor: string;
|
|
1764
|
-
currentItemFillStyle: import("
|
|
1774
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1765
1775
|
currentItemStrokeWidth: number;
|
|
1766
|
-
currentItemStrokeStyle: import("
|
|
1776
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1767
1777
|
currentItemRoughness: number;
|
|
1768
1778
|
currentItemOpacity: number;
|
|
1769
1779
|
currentItemFontSize: number;
|
|
1770
1780
|
currentItemTextAlign: string;
|
|
1771
1781
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1772
1782
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1773
|
-
currentItemRoundness: import("
|
|
1783
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1774
1784
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1775
1785
|
viewBackgroundColor: string;
|
|
1776
1786
|
scrollX: number;
|
|
@@ -1783,7 +1793,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1783
1793
|
zoom: Readonly<{
|
|
1784
1794
|
value: import("../types").NormalizedZoomValue;
|
|
1785
1795
|
}>;
|
|
1786
|
-
openMenu: "
|
|
1796
|
+
openMenu: "shape" | "canvas" | null;
|
|
1787
1797
|
openSidebar: {
|
|
1788
1798
|
name: string;
|
|
1789
1799
|
tab?: string | undefined;
|
|
@@ -1800,7 +1810,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1800
1810
|
sourceElementId: string;
|
|
1801
1811
|
} | null;
|
|
1802
1812
|
defaultSidebarDockedPreference: boolean;
|
|
1803
|
-
lastPointerDownWith: import("
|
|
1813
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1804
1814
|
selectedElementIds: Readonly<{
|
|
1805
1815
|
[id: string]: true;
|
|
1806
1816
|
}>;
|
|
@@ -1818,7 +1828,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1818
1828
|
duration?: number | undefined;
|
|
1819
1829
|
} | null;
|
|
1820
1830
|
zenModeEnabled: boolean;
|
|
1821
|
-
theme: import("
|
|
1831
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1822
1832
|
gridSize: number;
|
|
1823
1833
|
gridStep: number;
|
|
1824
1834
|
gridModeEnabled: boolean;
|
|
@@ -1839,7 +1849,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1839
1849
|
[id: string]: true;
|
|
1840
1850
|
}> | undefined;
|
|
1841
1851
|
username?: string | null | undefined;
|
|
1842
|
-
userState?: import("
|
|
1852
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1843
1853
|
color?: {
|
|
1844
1854
|
background: string;
|
|
1845
1855
|
stroke: string;
|
|
@@ -1856,7 +1866,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1856
1866
|
open: boolean;
|
|
1857
1867
|
panels: number;
|
|
1858
1868
|
};
|
|
1859
|
-
currentChartType: import("
|
|
1869
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1860
1870
|
pasteDialog: {
|
|
1861
1871
|
shown: false;
|
|
1862
1872
|
data: null;
|
|
@@ -1865,7 +1875,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1865
1875
|
data: import("../charts").Spreadsheet;
|
|
1866
1876
|
};
|
|
1867
1877
|
pendingImageElementId: string | null;
|
|
1868
|
-
showHyperlinkPopup: false | "
|
|
1878
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1869
1879
|
selectedLinearElement: LinearElementEditor | null;
|
|
1870
1880
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1871
1881
|
originSnapOffset: {
|
|
@@ -1898,7 +1908,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1898
1908
|
name: "changeTextAlign";
|
|
1899
1909
|
label: string;
|
|
1900
1910
|
trackEvent: false;
|
|
1901
|
-
perform: (elements: readonly import("
|
|
1911
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1902
1912
|
elements: ExcalidrawElement[];
|
|
1903
1913
|
appState: {
|
|
1904
1914
|
currentItemTextAlign: any;
|
|
@@ -1914,17 +1924,17 @@ export declare const actionChangeTextAlign: {
|
|
|
1914
1924
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
1915
1925
|
errorMessage: import("react").ReactNode;
|
|
1916
1926
|
activeEmbeddable: {
|
|
1917
|
-
element: import("
|
|
1927
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1918
1928
|
state: "hover" | "active";
|
|
1919
1929
|
} | null;
|
|
1920
|
-
newElement: import("
|
|
1921
|
-
resizingElement: import("
|
|
1922
|
-
multiElement: import("
|
|
1923
|
-
selectionElement: import("
|
|
1930
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1931
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1932
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1933
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1924
1934
|
isBindingEnabled: boolean;
|
|
1925
|
-
startBoundElement: import("
|
|
1926
|
-
suggestedBindings: import("
|
|
1927
|
-
frameToHighlight: import("
|
|
1935
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1936
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1937
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1928
1938
|
frameRendering: {
|
|
1929
1939
|
enabled: boolean;
|
|
1930
1940
|
name: boolean;
|
|
@@ -1932,12 +1942,13 @@ export declare const actionChangeTextAlign: {
|
|
|
1932
1942
|
clip: boolean;
|
|
1933
1943
|
};
|
|
1934
1944
|
editingFrame: string | null;
|
|
1935
|
-
elementsToHighlight: import("
|
|
1936
|
-
editingTextElement: import("
|
|
1945
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1946
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1937
1947
|
editingLinearElement: LinearElementEditor | null;
|
|
1938
1948
|
activeTool: {
|
|
1939
1949
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1940
1950
|
locked: boolean;
|
|
1951
|
+
fromSelection: boolean;
|
|
1941
1952
|
} & import("../types").ActiveTool;
|
|
1942
1953
|
penMode: boolean;
|
|
1943
1954
|
penDetected: boolean;
|
|
@@ -1947,9 +1958,9 @@ export declare const actionChangeTextAlign: {
|
|
|
1947
1958
|
exportScale: number;
|
|
1948
1959
|
currentItemStrokeColor: string;
|
|
1949
1960
|
currentItemBackgroundColor: string;
|
|
1950
|
-
currentItemFillStyle: import("
|
|
1961
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1951
1962
|
currentItemStrokeWidth: number;
|
|
1952
|
-
currentItemStrokeStyle: import("
|
|
1963
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1953
1964
|
currentItemRoughness: number;
|
|
1954
1965
|
currentItemOpacity: number;
|
|
1955
1966
|
currentItemFontFamily: number;
|
|
@@ -1957,7 +1968,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1957
1968
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1958
1969
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1959
1970
|
currentHoveredFontFamily: number | null;
|
|
1960
|
-
currentItemRoundness: import("
|
|
1971
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1961
1972
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1962
1973
|
viewBackgroundColor: string;
|
|
1963
1974
|
scrollX: number;
|
|
@@ -1970,7 +1981,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1970
1981
|
zoom: Readonly<{
|
|
1971
1982
|
value: import("../types").NormalizedZoomValue;
|
|
1972
1983
|
}>;
|
|
1973
|
-
openMenu: "
|
|
1984
|
+
openMenu: "shape" | "canvas" | null;
|
|
1974
1985
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1975
1986
|
openSidebar: {
|
|
1976
1987
|
name: string;
|
|
@@ -1988,7 +1999,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1988
1999
|
sourceElementId: string;
|
|
1989
2000
|
} | null;
|
|
1990
2001
|
defaultSidebarDockedPreference: boolean;
|
|
1991
|
-
lastPointerDownWith: import("
|
|
2002
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1992
2003
|
selectedElementIds: Readonly<{
|
|
1993
2004
|
[id: string]: true;
|
|
1994
2005
|
}>;
|
|
@@ -2006,7 +2017,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2006
2017
|
duration?: number | undefined;
|
|
2007
2018
|
} | null;
|
|
2008
2019
|
zenModeEnabled: boolean;
|
|
2009
|
-
theme: import("
|
|
2020
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2010
2021
|
gridSize: number;
|
|
2011
2022
|
gridStep: number;
|
|
2012
2023
|
gridModeEnabled: boolean;
|
|
@@ -2027,7 +2038,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2027
2038
|
[id: string]: true;
|
|
2028
2039
|
}> | undefined;
|
|
2029
2040
|
username?: string | null | undefined;
|
|
2030
|
-
userState?: import("
|
|
2041
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2031
2042
|
color?: {
|
|
2032
2043
|
background: string;
|
|
2033
2044
|
stroke: string;
|
|
@@ -2044,7 +2055,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2044
2055
|
open: boolean;
|
|
2045
2056
|
panels: number;
|
|
2046
2057
|
};
|
|
2047
|
-
currentChartType: import("
|
|
2058
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2048
2059
|
pasteDialog: {
|
|
2049
2060
|
shown: false;
|
|
2050
2061
|
data: null;
|
|
@@ -2053,7 +2064,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2053
2064
|
data: import("../charts").Spreadsheet;
|
|
2054
2065
|
};
|
|
2055
2066
|
pendingImageElementId: string | null;
|
|
2056
|
-
showHyperlinkPopup: false | "
|
|
2067
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2057
2068
|
selectedLinearElement: LinearElementEditor | null;
|
|
2058
2069
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2059
2070
|
originSnapOffset: {
|
|
@@ -2088,7 +2099,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2088
2099
|
trackEvent: {
|
|
2089
2100
|
category: "element";
|
|
2090
2101
|
};
|
|
2091
|
-
perform: (elements: readonly import("
|
|
2102
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2092
2103
|
elements: ExcalidrawElement[];
|
|
2093
2104
|
appState: {
|
|
2094
2105
|
contextMenu: {
|
|
@@ -2103,17 +2114,17 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2103
2114
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
2104
2115
|
errorMessage: import("react").ReactNode;
|
|
2105
2116
|
activeEmbeddable: {
|
|
2106
|
-
element: import("
|
|
2117
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2107
2118
|
state: "hover" | "active";
|
|
2108
2119
|
} | null;
|
|
2109
|
-
newElement: import("
|
|
2110
|
-
resizingElement: import("
|
|
2111
|
-
multiElement: import("
|
|
2112
|
-
selectionElement: import("
|
|
2120
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2121
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2122
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2123
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2113
2124
|
isBindingEnabled: boolean;
|
|
2114
|
-
startBoundElement: import("
|
|
2115
|
-
suggestedBindings: import("
|
|
2116
|
-
frameToHighlight: import("
|
|
2125
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2126
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2127
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2117
2128
|
frameRendering: {
|
|
2118
2129
|
enabled: boolean;
|
|
2119
2130
|
name: boolean;
|
|
@@ -2121,12 +2132,13 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2121
2132
|
clip: boolean;
|
|
2122
2133
|
};
|
|
2123
2134
|
editingFrame: string | null;
|
|
2124
|
-
elementsToHighlight: import("
|
|
2125
|
-
editingTextElement: import("
|
|
2135
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2136
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2126
2137
|
editingLinearElement: LinearElementEditor | null;
|
|
2127
2138
|
activeTool: {
|
|
2128
2139
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2129
2140
|
locked: boolean;
|
|
2141
|
+
fromSelection: boolean;
|
|
2130
2142
|
} & import("../types").ActiveTool;
|
|
2131
2143
|
penMode: boolean;
|
|
2132
2144
|
penDetected: boolean;
|
|
@@ -2136,9 +2148,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2136
2148
|
exportScale: number;
|
|
2137
2149
|
currentItemStrokeColor: string;
|
|
2138
2150
|
currentItemBackgroundColor: string;
|
|
2139
|
-
currentItemFillStyle: import("
|
|
2151
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2140
2152
|
currentItemStrokeWidth: number;
|
|
2141
|
-
currentItemStrokeStyle: import("
|
|
2153
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2142
2154
|
currentItemRoughness: number;
|
|
2143
2155
|
currentItemOpacity: number;
|
|
2144
2156
|
currentItemFontFamily: number;
|
|
@@ -2147,7 +2159,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2147
2159
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2148
2160
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2149
2161
|
currentHoveredFontFamily: number | null;
|
|
2150
|
-
currentItemRoundness: import("
|
|
2162
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2151
2163
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2152
2164
|
viewBackgroundColor: string;
|
|
2153
2165
|
scrollX: number;
|
|
@@ -2160,7 +2172,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2160
2172
|
zoom: Readonly<{
|
|
2161
2173
|
value: import("../types").NormalizedZoomValue;
|
|
2162
2174
|
}>;
|
|
2163
|
-
openMenu: "
|
|
2175
|
+
openMenu: "shape" | "canvas" | null;
|
|
2164
2176
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2165
2177
|
openSidebar: {
|
|
2166
2178
|
name: string;
|
|
@@ -2178,7 +2190,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2178
2190
|
sourceElementId: string;
|
|
2179
2191
|
} | null;
|
|
2180
2192
|
defaultSidebarDockedPreference: boolean;
|
|
2181
|
-
lastPointerDownWith: import("
|
|
2193
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2182
2194
|
selectedElementIds: Readonly<{
|
|
2183
2195
|
[id: string]: true;
|
|
2184
2196
|
}>;
|
|
@@ -2196,7 +2208,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2196
2208
|
duration?: number | undefined;
|
|
2197
2209
|
} | null;
|
|
2198
2210
|
zenModeEnabled: boolean;
|
|
2199
|
-
theme: import("
|
|
2211
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2200
2212
|
gridSize: number;
|
|
2201
2213
|
gridStep: number;
|
|
2202
2214
|
gridModeEnabled: boolean;
|
|
@@ -2217,7 +2229,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2217
2229
|
[id: string]: true;
|
|
2218
2230
|
}> | undefined;
|
|
2219
2231
|
username?: string | null | undefined;
|
|
2220
|
-
userState?: import("
|
|
2232
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2221
2233
|
color?: {
|
|
2222
2234
|
background: string;
|
|
2223
2235
|
stroke: string;
|
|
@@ -2234,7 +2246,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2234
2246
|
open: boolean;
|
|
2235
2247
|
panels: number;
|
|
2236
2248
|
};
|
|
2237
|
-
currentChartType: import("
|
|
2249
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2238
2250
|
pasteDialog: {
|
|
2239
2251
|
shown: false;
|
|
2240
2252
|
data: null;
|
|
@@ -2243,7 +2255,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2243
2255
|
data: import("../charts").Spreadsheet;
|
|
2244
2256
|
};
|
|
2245
2257
|
pendingImageElementId: string | null;
|
|
2246
|
-
showHyperlinkPopup: false | "
|
|
2258
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2247
2259
|
selectedLinearElement: LinearElementEditor | null;
|
|
2248
2260
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2249
2261
|
originSnapOffset: {
|
|
@@ -2276,7 +2288,7 @@ export declare const actionChangeRoundness: {
|
|
|
2276
2288
|
name: "changeRoundness";
|
|
2277
2289
|
label: string;
|
|
2278
2290
|
trackEvent: false;
|
|
2279
|
-
perform: (elements: readonly import("
|
|
2291
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
2280
2292
|
elements: ExcalidrawElement[];
|
|
2281
2293
|
appState: {
|
|
2282
2294
|
currentItemRoundness: any;
|
|
@@ -2292,17 +2304,17 @@ export declare const actionChangeRoundness: {
|
|
|
2292
2304
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
2293
2305
|
errorMessage: import("react").ReactNode;
|
|
2294
2306
|
activeEmbeddable: {
|
|
2295
|
-
element: import("
|
|
2307
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2296
2308
|
state: "hover" | "active";
|
|
2297
2309
|
} | null;
|
|
2298
|
-
newElement: import("
|
|
2299
|
-
resizingElement: import("
|
|
2300
|
-
multiElement: import("
|
|
2301
|
-
selectionElement: import("
|
|
2310
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2311
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2312
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2313
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2302
2314
|
isBindingEnabled: boolean;
|
|
2303
|
-
startBoundElement: import("
|
|
2304
|
-
suggestedBindings: import("
|
|
2305
|
-
frameToHighlight: import("
|
|
2315
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2316
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2317
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2306
2318
|
frameRendering: {
|
|
2307
2319
|
enabled: boolean;
|
|
2308
2320
|
name: boolean;
|
|
@@ -2310,12 +2322,13 @@ export declare const actionChangeRoundness: {
|
|
|
2310
2322
|
clip: boolean;
|
|
2311
2323
|
};
|
|
2312
2324
|
editingFrame: string | null;
|
|
2313
|
-
elementsToHighlight: import("
|
|
2314
|
-
editingTextElement: import("
|
|
2325
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2326
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2315
2327
|
editingLinearElement: LinearElementEditor | null;
|
|
2316
2328
|
activeTool: {
|
|
2317
2329
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2318
2330
|
locked: boolean;
|
|
2331
|
+
fromSelection: boolean;
|
|
2319
2332
|
} & import("../types").ActiveTool;
|
|
2320
2333
|
penMode: boolean;
|
|
2321
2334
|
penDetected: boolean;
|
|
@@ -2325,9 +2338,9 @@ export declare const actionChangeRoundness: {
|
|
|
2325
2338
|
exportScale: number;
|
|
2326
2339
|
currentItemStrokeColor: string;
|
|
2327
2340
|
currentItemBackgroundColor: string;
|
|
2328
|
-
currentItemFillStyle: import("
|
|
2341
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2329
2342
|
currentItemStrokeWidth: number;
|
|
2330
|
-
currentItemStrokeStyle: import("
|
|
2343
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2331
2344
|
currentItemRoughness: number;
|
|
2332
2345
|
currentItemOpacity: number;
|
|
2333
2346
|
currentItemFontFamily: number;
|
|
@@ -2348,7 +2361,7 @@ export declare const actionChangeRoundness: {
|
|
|
2348
2361
|
zoom: Readonly<{
|
|
2349
2362
|
value: import("../types").NormalizedZoomValue;
|
|
2350
2363
|
}>;
|
|
2351
|
-
openMenu: "
|
|
2364
|
+
openMenu: "shape" | "canvas" | null;
|
|
2352
2365
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2353
2366
|
openSidebar: {
|
|
2354
2367
|
name: string;
|
|
@@ -2366,7 +2379,7 @@ export declare const actionChangeRoundness: {
|
|
|
2366
2379
|
sourceElementId: string;
|
|
2367
2380
|
} | null;
|
|
2368
2381
|
defaultSidebarDockedPreference: boolean;
|
|
2369
|
-
lastPointerDownWith: import("
|
|
2382
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2370
2383
|
selectedElementIds: Readonly<{
|
|
2371
2384
|
[id: string]: true;
|
|
2372
2385
|
}>;
|
|
@@ -2384,7 +2397,7 @@ export declare const actionChangeRoundness: {
|
|
|
2384
2397
|
duration?: number | undefined;
|
|
2385
2398
|
} | null;
|
|
2386
2399
|
zenModeEnabled: boolean;
|
|
2387
|
-
theme: import("
|
|
2400
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2388
2401
|
gridSize: number;
|
|
2389
2402
|
gridStep: number;
|
|
2390
2403
|
gridModeEnabled: boolean;
|
|
@@ -2405,7 +2418,7 @@ export declare const actionChangeRoundness: {
|
|
|
2405
2418
|
[id: string]: true;
|
|
2406
2419
|
}> | undefined;
|
|
2407
2420
|
username?: string | null | undefined;
|
|
2408
|
-
userState?: import("
|
|
2421
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2409
2422
|
color?: {
|
|
2410
2423
|
background: string;
|
|
2411
2424
|
stroke: string;
|
|
@@ -2422,7 +2435,7 @@ export declare const actionChangeRoundness: {
|
|
|
2422
2435
|
open: boolean;
|
|
2423
2436
|
panels: number;
|
|
2424
2437
|
};
|
|
2425
|
-
currentChartType: import("
|
|
2438
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2426
2439
|
pasteDialog: {
|
|
2427
2440
|
shown: false;
|
|
2428
2441
|
data: null;
|
|
@@ -2431,7 +2444,7 @@ export declare const actionChangeRoundness: {
|
|
|
2431
2444
|
data: import("../charts").Spreadsheet;
|
|
2432
2445
|
};
|
|
2433
2446
|
pendingImageElementId: string | null;
|
|
2434
|
-
showHyperlinkPopup: false | "
|
|
2447
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2435
2448
|
selectedLinearElement: LinearElementEditor | null;
|
|
2436
2449
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2437
2450
|
originSnapOffset: {
|
|
@@ -2464,7 +2477,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2464
2477
|
name: "changeArrowhead";
|
|
2465
2478
|
label: string;
|
|
2466
2479
|
trackEvent: false;
|
|
2467
|
-
perform: (elements: readonly import("
|
|
2480
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
|
|
2468
2481
|
position: "start" | "end";
|
|
2469
2482
|
type: Arrowhead;
|
|
2470
2483
|
}) => {
|
|
@@ -2482,17 +2495,17 @@ export declare const actionChangeArrowhead: {
|
|
|
2482
2495
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
2483
2496
|
errorMessage: import("react").ReactNode;
|
|
2484
2497
|
activeEmbeddable: {
|
|
2485
|
-
element: import("
|
|
2498
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2486
2499
|
state: "hover" | "active";
|
|
2487
2500
|
} | null;
|
|
2488
|
-
newElement: import("
|
|
2489
|
-
resizingElement: import("
|
|
2490
|
-
multiElement: import("
|
|
2491
|
-
selectionElement: import("
|
|
2501
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2502
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2503
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2504
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2492
2505
|
isBindingEnabled: boolean;
|
|
2493
|
-
startBoundElement: import("
|
|
2494
|
-
suggestedBindings: import("
|
|
2495
|
-
frameToHighlight: import("
|
|
2506
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2507
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2508
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2496
2509
|
frameRendering: {
|
|
2497
2510
|
enabled: boolean;
|
|
2498
2511
|
name: boolean;
|
|
@@ -2500,12 +2513,13 @@ export declare const actionChangeArrowhead: {
|
|
|
2500
2513
|
clip: boolean;
|
|
2501
2514
|
};
|
|
2502
2515
|
editingFrame: string | null;
|
|
2503
|
-
elementsToHighlight: import("
|
|
2504
|
-
editingTextElement: import("
|
|
2516
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2517
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2505
2518
|
editingLinearElement: LinearElementEditor | null;
|
|
2506
2519
|
activeTool: {
|
|
2507
2520
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2508
2521
|
locked: boolean;
|
|
2522
|
+
fromSelection: boolean;
|
|
2509
2523
|
} & import("../types").ActiveTool;
|
|
2510
2524
|
penMode: boolean;
|
|
2511
2525
|
penDetected: boolean;
|
|
@@ -2515,9 +2529,9 @@ export declare const actionChangeArrowhead: {
|
|
|
2515
2529
|
exportScale: number;
|
|
2516
2530
|
currentItemStrokeColor: string;
|
|
2517
2531
|
currentItemBackgroundColor: string;
|
|
2518
|
-
currentItemFillStyle: import("
|
|
2532
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2519
2533
|
currentItemStrokeWidth: number;
|
|
2520
|
-
currentItemStrokeStyle: import("
|
|
2534
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2521
2535
|
currentItemRoughness: number;
|
|
2522
2536
|
currentItemOpacity: number;
|
|
2523
2537
|
currentItemFontFamily: number;
|
|
@@ -2526,7 +2540,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2526
2540
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2527
2541
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2528
2542
|
currentHoveredFontFamily: number | null;
|
|
2529
|
-
currentItemRoundness: import("
|
|
2543
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2530
2544
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2531
2545
|
viewBackgroundColor: string;
|
|
2532
2546
|
scrollX: number;
|
|
@@ -2539,7 +2553,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2539
2553
|
zoom: Readonly<{
|
|
2540
2554
|
value: import("../types").NormalizedZoomValue;
|
|
2541
2555
|
}>;
|
|
2542
|
-
openMenu: "
|
|
2556
|
+
openMenu: "shape" | "canvas" | null;
|
|
2543
2557
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2544
2558
|
openSidebar: {
|
|
2545
2559
|
name: string;
|
|
@@ -2557,7 +2571,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2557
2571
|
sourceElementId: string;
|
|
2558
2572
|
} | null;
|
|
2559
2573
|
defaultSidebarDockedPreference: boolean;
|
|
2560
|
-
lastPointerDownWith: import("
|
|
2574
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2561
2575
|
selectedElementIds: Readonly<{
|
|
2562
2576
|
[id: string]: true;
|
|
2563
2577
|
}>;
|
|
@@ -2575,7 +2589,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2575
2589
|
duration?: number | undefined;
|
|
2576
2590
|
} | null;
|
|
2577
2591
|
zenModeEnabled: boolean;
|
|
2578
|
-
theme: import("
|
|
2592
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2579
2593
|
gridSize: number;
|
|
2580
2594
|
gridStep: number;
|
|
2581
2595
|
gridModeEnabled: boolean;
|
|
@@ -2596,7 +2610,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2596
2610
|
[id: string]: true;
|
|
2597
2611
|
}> | undefined;
|
|
2598
2612
|
username?: string | null | undefined;
|
|
2599
|
-
userState?: import("
|
|
2613
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2600
2614
|
color?: {
|
|
2601
2615
|
background: string;
|
|
2602
2616
|
stroke: string;
|
|
@@ -2613,7 +2627,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2613
2627
|
open: boolean;
|
|
2614
2628
|
panels: number;
|
|
2615
2629
|
};
|
|
2616
|
-
currentChartType: import("
|
|
2630
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2617
2631
|
pasteDialog: {
|
|
2618
2632
|
shown: false;
|
|
2619
2633
|
data: null;
|
|
@@ -2622,7 +2636,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2622
2636
|
data: import("../charts").Spreadsheet;
|
|
2623
2637
|
};
|
|
2624
2638
|
pendingImageElementId: string | null;
|
|
2625
|
-
showHyperlinkPopup: false | "
|
|
2639
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2626
2640
|
selectedLinearElement: LinearElementEditor | null;
|
|
2627
2641
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2628
2642
|
originSnapOffset: {
|
|
@@ -2655,7 +2669,7 @@ export declare const actionChangeArrowType: {
|
|
|
2655
2669
|
name: "changeArrowType";
|
|
2656
2670
|
label: string;
|
|
2657
2671
|
trackEvent: false;
|
|
2658
|
-
perform: (elements: readonly import("
|
|
2672
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2659
2673
|
elements: ExcalidrawElement[];
|
|
2660
2674
|
appState: {
|
|
2661
2675
|
currentItemArrowType: any;
|
|
@@ -2671,17 +2685,17 @@ export declare const actionChangeArrowType: {
|
|
|
2671
2685
|
wheelZoomsOnDefault?: boolean | undefined;
|
|
2672
2686
|
errorMessage: import("react").ReactNode;
|
|
2673
2687
|
activeEmbeddable: {
|
|
2674
|
-
element: import("
|
|
2688
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2675
2689
|
state: "hover" | "active";
|
|
2676
2690
|
} | null;
|
|
2677
|
-
newElement: import("
|
|
2678
|
-
resizingElement: import("
|
|
2679
|
-
multiElement: import("
|
|
2680
|
-
selectionElement: import("
|
|
2691
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2692
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2693
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2694
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2681
2695
|
isBindingEnabled: boolean;
|
|
2682
|
-
startBoundElement: import("
|
|
2683
|
-
suggestedBindings: import("
|
|
2684
|
-
frameToHighlight: import("
|
|
2696
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2697
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2698
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2685
2699
|
frameRendering: {
|
|
2686
2700
|
enabled: boolean;
|
|
2687
2701
|
name: boolean;
|
|
@@ -2689,12 +2703,13 @@ export declare const actionChangeArrowType: {
|
|
|
2689
2703
|
clip: boolean;
|
|
2690
2704
|
};
|
|
2691
2705
|
editingFrame: string | null;
|
|
2692
|
-
elementsToHighlight: import("
|
|
2693
|
-
editingTextElement: import("
|
|
2706
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2707
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2694
2708
|
editingLinearElement: LinearElementEditor | null;
|
|
2695
2709
|
activeTool: {
|
|
2696
2710
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2697
2711
|
locked: boolean;
|
|
2712
|
+
fromSelection: boolean;
|
|
2698
2713
|
} & import("../types").ActiveTool;
|
|
2699
2714
|
penMode: boolean;
|
|
2700
2715
|
penDetected: boolean;
|
|
@@ -2704,9 +2719,9 @@ export declare const actionChangeArrowType: {
|
|
|
2704
2719
|
exportScale: number;
|
|
2705
2720
|
currentItemStrokeColor: string;
|
|
2706
2721
|
currentItemBackgroundColor: string;
|
|
2707
|
-
currentItemFillStyle: import("
|
|
2722
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2708
2723
|
currentItemStrokeWidth: number;
|
|
2709
|
-
currentItemStrokeStyle: import("
|
|
2724
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2710
2725
|
currentItemRoughness: number;
|
|
2711
2726
|
currentItemOpacity: number;
|
|
2712
2727
|
currentItemFontFamily: number;
|
|
@@ -2715,7 +2730,7 @@ export declare const actionChangeArrowType: {
|
|
|
2715
2730
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2716
2731
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2717
2732
|
currentHoveredFontFamily: number | null;
|
|
2718
|
-
currentItemRoundness: import("
|
|
2733
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2719
2734
|
viewBackgroundColor: string;
|
|
2720
2735
|
scrollX: number;
|
|
2721
2736
|
scrollY: number;
|
|
@@ -2727,7 +2742,7 @@ export declare const actionChangeArrowType: {
|
|
|
2727
2742
|
zoom: Readonly<{
|
|
2728
2743
|
value: import("../types").NormalizedZoomValue;
|
|
2729
2744
|
}>;
|
|
2730
|
-
openMenu: "
|
|
2745
|
+
openMenu: "shape" | "canvas" | null;
|
|
2731
2746
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2732
2747
|
openSidebar: {
|
|
2733
2748
|
name: string;
|
|
@@ -2745,7 +2760,7 @@ export declare const actionChangeArrowType: {
|
|
|
2745
2760
|
sourceElementId: string;
|
|
2746
2761
|
} | null;
|
|
2747
2762
|
defaultSidebarDockedPreference: boolean;
|
|
2748
|
-
lastPointerDownWith: import("
|
|
2763
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2749
2764
|
selectedElementIds: Readonly<{
|
|
2750
2765
|
[id: string]: true;
|
|
2751
2766
|
}>;
|
|
@@ -2763,7 +2778,7 @@ export declare const actionChangeArrowType: {
|
|
|
2763
2778
|
duration?: number | undefined;
|
|
2764
2779
|
} | null;
|
|
2765
2780
|
zenModeEnabled: boolean;
|
|
2766
|
-
theme: import("
|
|
2781
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2767
2782
|
gridSize: number;
|
|
2768
2783
|
gridStep: number;
|
|
2769
2784
|
gridModeEnabled: boolean;
|
|
@@ -2784,7 +2799,7 @@ export declare const actionChangeArrowType: {
|
|
|
2784
2799
|
[id: string]: true;
|
|
2785
2800
|
}> | undefined;
|
|
2786
2801
|
username?: string | null | undefined;
|
|
2787
|
-
userState?: import("
|
|
2802
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2788
2803
|
color?: {
|
|
2789
2804
|
background: string;
|
|
2790
2805
|
stroke: string;
|
|
@@ -2801,7 +2816,7 @@ export declare const actionChangeArrowType: {
|
|
|
2801
2816
|
open: boolean;
|
|
2802
2817
|
panels: number;
|
|
2803
2818
|
};
|
|
2804
|
-
currentChartType: import("
|
|
2819
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2805
2820
|
pasteDialog: {
|
|
2806
2821
|
shown: false;
|
|
2807
2822
|
data: null;
|
|
@@ -2810,7 +2825,7 @@ export declare const actionChangeArrowType: {
|
|
|
2810
2825
|
data: import("../charts").Spreadsheet;
|
|
2811
2826
|
};
|
|
2812
2827
|
pendingImageElementId: string | null;
|
|
2813
|
-
showHyperlinkPopup: false | "
|
|
2828
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2814
2829
|
selectedLinearElement: LinearElementEditor | null;
|
|
2815
2830
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2816
2831
|
originSnapOffset: {
|