@zsviczian/excalidraw 0.18.0-1 → 0.18.0-10
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/README.md +1 -1
- package/dist/excalidraw.development.js +2231 -2418
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -32
- package/dist/styles.development.css +2995 -3004
- package/dist/styles.production.css +28 -28
- package/package.json +14 -2
- package/types/{excalidraw/binaryheap.d.ts → common/src/binary-heap.d.ts} +1 -1
- package/types/{excalidraw → common/src}/colors.d.ts +1 -0
- package/types/{excalidraw → common/src}/constants.d.ts +10 -7
- package/types/{excalidraw/fonts/FontMetadata.d.ts → common/src/font-metadata.d.ts} +11 -3
- package/types/common/src/index.d.ts +11 -0
- package/types/{excalidraw → common/src}/points.d.ts +2 -0
- package/types/common/src/promise-pool.d.ts +6 -0
- package/types/{excalidraw → common/src}/utils.d.ts +13 -12
- package/types/{excalidraw/scene → element/src}/Shape.d.ts +2 -2
- package/types/{excalidraw/scene → element/src}/ShapeCache.d.ts +4 -4
- package/types/{excalidraw → element/src}/align.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/binding.d.ts +8 -8
- package/types/{excalidraw/element → element/src}/bounds.d.ts +9 -4
- package/types/{excalidraw/element → element/src}/collision.d.ts +3 -3
- package/types/{excalidraw/scene → element/src}/comparisons.d.ts +1 -1
- package/types/{excalidraw → element/src}/distribute.d.ts +1 -1
- package/types/{excalidraw/element → element/src}/dragElements.d.ts +3 -3
- package/types/element/src/duplicate.d.ts +63 -0
- package/types/{excalidraw/element → element/src}/elbowArrow.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/elementLink.d.ts +1 -1
- package/types/element/src/embeddable.d.ts +10 -0
- package/types/{excalidraw/element → element/src}/flowchart.d.ts +1 -1
- package/types/{excalidraw → element/src}/fractionalIndex.d.ts +4 -1
- package/types/{excalidraw → element/src}/frame.d.ts +7 -7
- package/types/{excalidraw → element/src}/groups.d.ts +5 -5
- package/types/{excalidraw/element → element/src}/heading.d.ts +1 -2
- package/types/{excalidraw/element → element/src}/image.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/index.d.ts +0 -10
- package/types/{excalidraw/element → element/src}/linearElementEditor.d.ts +7 -7
- package/types/{excalidraw/element → element/src}/mutateElement.d.ts +1 -1
- package/types/{excalidraw/element → element/src}/newElement.d.ts +3 -43
- package/types/{excalidraw/renderer → element/src}/renderElement.d.ts +3 -3
- package/types/{excalidraw/element → element/src}/resizeElements.d.ts +4 -4
- package/types/{excalidraw/element → element/src}/resizeTest.d.ts +4 -4
- package/types/{excalidraw/scene → element/src}/selection.d.ts +13 -2
- package/types/element/src/shapes.d.ts +23 -0
- package/types/{excalidraw/element → element/src}/showSelectedShapeActions.d.ts +1 -1
- package/types/{excalidraw/element → element/src}/sizeHelpers.d.ts +1 -1
- package/types/{excalidraw/element → element/src}/textElement.d.ts +5 -5
- package/types/{excalidraw/element → element/src}/transformHandles.d.ts +7 -7
- package/types/{excalidraw/element → element/src}/typeChecks.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/types.d.ts +2 -2
- package/types/{excalidraw/element → element/src}/utils.d.ts +1 -1
- package/types/{excalidraw → element/src}/zindex.d.ts +5 -4
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +94 -79
- package/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/types/excalidraw/actions/actionBoundText.d.ts +68 -58
- package/types/excalidraw/actions/actionCanvas.d.ts +738 -455
- package/types/excalidraw/actions/actionClipboard.d.ts +197 -167
- package/types/excalidraw/actions/actionCropEditor.d.ts +33 -28
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +94 -79
- package/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +3 -7
- package/types/excalidraw/actions/actionElementLink.d.ts +37 -32
- package/types/excalidraw/actions/actionElementLock.d.ts +67 -58
- package/types/excalidraw/{element/embeddable.d.ts → actions/actionEmbeddable.d.ts} +33 -38
- package/types/excalidraw/actions/actionExport.d.ts +374 -329
- package/types/excalidraw/actions/actionFinalize.d.ts +55 -45
- package/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/types/excalidraw/actions/actionFrame.d.ts +243 -223
- package/types/excalidraw/actions/actionGroup.d.ts +65 -55
- package/types/excalidraw/actions/actionHistory.d.ts +1 -1
- package/types/excalidraw/actions/actionLinearEditor.d.ts +34 -29
- package/types/excalidraw/actions/actionLink.d.ts +33 -28
- package/types/excalidraw/actions/actionMenu.d.ts +94 -79
- package/types/excalidraw/actions/actionNavigate.d.ts +62 -52
- package/types/excalidraw/actions/actionProperties.d.ts +422 -347
- package/types/excalidraw/actions/actionSelectAll.d.ts +33 -28
- package/types/excalidraw/actions/actionStyles.d.ts +35 -30
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +33 -28
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +33 -28
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +64 -54
- package/types/excalidraw/actions/actionToggleStats.d.ts +32 -28
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +33 -29
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -29
- package/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/types/excalidraw/actions/index.d.ts +1 -0
- package/types/excalidraw/actions/manager.d.ts +2 -2
- package/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/types/excalidraw/actions/types.d.ts +4 -4
- package/types/excalidraw/animated-trail.d.ts +7 -1
- package/types/excalidraw/appState.d.ts +32 -31
- package/types/excalidraw/change.d.ts +3 -3
- package/types/excalidraw/charts.d.ts +1 -1
- package/types/excalidraw/clipboard.d.ts +7 -7
- package/types/excalidraw/components/Actions.d.ts +3 -3
- package/types/excalidraw/components/App.d.ts +32 -32
- package/types/excalidraw/components/Avatar.d.ts +1 -1
- package/types/excalidraw/components/ButtonIcon.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/types/excalidraw/components/ColorPicker/HotkeyLabel.d.ts +1 -2
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +3 -3
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -1
- package/types/excalidraw/components/ConfirmDialog.d.ts +1 -1
- package/types/excalidraw/components/ContextMenu.d.ts +2 -2
- package/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/types/excalidraw/components/DefaultSidebar.d.ts +2 -2
- package/types/excalidraw/components/DialogActionButton.d.ts +1 -1
- package/types/excalidraw/{element → components}/ElementCanvasButtons.d.ts +1 -1
- package/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
- package/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/types/excalidraw/components/FixedSideContainer.d.ts +1 -1
- package/types/excalidraw/components/FollowMode/FollowMode.d.ts +1 -1
- package/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
- package/types/excalidraw/components/FontPicker/FontPickerList.d.ts +3 -3
- package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- package/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/types/excalidraw/components/IconPicker.d.ts +1 -1
- package/types/excalidraw/components/ImageExportDialog.d.ts +2 -2
- package/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/types/excalidraw/components/Island.d.ts +1 -1
- package/types/excalidraw/components/JSONExportDialog.d.ts +2 -2
- package/types/excalidraw/components/LayerUI.d.ts +3 -3
- package/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuItems.d.ts +1 -1
- package/types/excalidraw/components/LibraryMenuSection.d.ts +3 -3
- package/types/excalidraw/components/LibraryUnit.d.ts +2 -2
- package/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/types/excalidraw/components/MagicButton.d.ts +1 -1
- package/types/excalidraw/components/MobileMenu.d.ts +3 -3
- package/types/excalidraw/components/PasteChartDialog.d.ts +1 -1
- package/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/types/excalidraw/components/PublishLibrary.d.ts +1 -1
- package/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/SidebarTrigger.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/common.d.ts +1 -1
- package/types/excalidraw/components/Stack.d.ts +1 -1
- package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/types/excalidraw/components/Stats/FontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiAngle.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/types/excalidraw/components/Stats/index.d.ts +2 -2
- package/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/common.d.ts +3 -3
- package/types/excalidraw/components/TextField.d.ts +1 -1
- package/types/excalidraw/components/Toast.d.ts +1 -1
- package/types/excalidraw/components/ToolButton.d.ts +2 -2
- package/types/excalidraw/components/Tooltip.d.ts +1 -1
- package/types/excalidraw/components/UserList.d.ts +1 -1
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +4 -3
- package/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -2
- package/types/excalidraw/components/canvases/StaticCanvas.d.ts +3 -3
- package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +2 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +1 -1
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/types/excalidraw/components/icons.d.ts +2 -1
- package/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/types/excalidraw/components/main-menu/MainMenu.d.ts +4 -1
- package/types/excalidraw/components/shapes.d.ts +62 -0
- package/types/excalidraw/context/tunnels.d.ts +1 -1
- package/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/types/excalidraw/data/blob.d.ts +4 -4
- package/types/excalidraw/data/filesystem.d.ts +2 -2
- package/types/excalidraw/data/index.d.ts +2 -2
- package/types/excalidraw/data/json.d.ts +1 -1
- package/types/excalidraw/data/library.d.ts +3 -3
- package/types/excalidraw/data/reconcile.d.ts +2 -2
- package/types/excalidraw/data/resave.d.ts +1 -1
- package/types/excalidraw/data/restore.d.ts +1 -1
- package/types/excalidraw/data/transform.d.ts +4 -4
- package/types/excalidraw/data/types.d.ts +3 -3
- package/types/excalidraw/eraser/index.d.ts +14 -0
- package/types/excalidraw/errors.d.ts +0 -3
- package/types/excalidraw/fonts/Fonts.d.ts +2 -12
- package/types/excalidraw/history.d.ts +2 -2
- package/types/excalidraw/i18n.d.ts +1 -1
- package/types/excalidraw/index.d.ts +29 -35
- package/types/excalidraw/laser-trails.d.ts +1 -1
- package/types/excalidraw/lasso/index.d.ts +15 -0
- package/types/excalidraw/lasso/utils.d.ts +12 -0
- package/types/excalidraw/obsidianUtils.d.ts +3 -2
- package/types/excalidraw/renderer/helpers.d.ts +2 -2
- package/types/excalidraw/renderer/staticSvgScene.d.ts +2 -2
- package/types/excalidraw/scene/Renderer.d.ts +3 -3
- package/types/excalidraw/scene/Scene.d.ts +5 -5
- package/types/excalidraw/scene/export.d.ts +1 -1
- package/types/excalidraw/scene/index.d.ts +2 -2
- package/types/excalidraw/scene/scroll.d.ts +1 -1
- package/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/types/excalidraw/scene/types.d.ts +4 -4
- package/types/excalidraw/snapping.d.ts +5 -6
- package/types/excalidraw/store.d.ts +2 -2
- package/types/excalidraw/types.d.ts +26 -16
- package/types/excalidraw/visualdebug.d.ts +2 -2
- package/types/excalidraw/webpack.dev.config.d.ts +2 -0
- package/types/excalidraw/webpack.prod.config.d.ts +2 -0
- package/types/excalidraw/{element → wysiwyg}/textWysiwyg.d.ts +1 -1
- package/types/math/{point.d.ts → src/point.d.ts} +2 -2
- package/types/math/{polygon.d.ts → src/polygon.d.ts} +1 -0
- package/types/math/{segment.d.ts → src/segment.d.ts} +1 -1
- package/types/math/{types.d.ts → src/types.d.ts} +1 -0
- package/types/utils/{bbox.d.ts → src/bbox.d.ts} +1 -1
- package/types/utils/{collision.d.ts → src/collision.d.ts} +2 -3
- package/types/utils/{export.d.ts → src/export.d.ts} +2 -12
- package/types/utils/{index.d.ts → src/index.d.ts} +1 -1
- package/types/utils/{geometry → src}/shape.d.ts +2 -15
- package/types/utils/{withinBounds.d.ts → src/withinBounds.d.ts} +2 -2
- package/types/excalidraw/shapes.d.ts +0 -85
- /package/types/{excalidraw → common/src}/keys.d.ts +0 -0
- /package/types/{excalidraw → common/src}/queue.d.ts +0 -0
- /package/types/{excalidraw → common/src}/random.d.ts +0 -0
- /package/types/{excalidraw/data → common/src}/url.d.ts +0 -0
- /package/types/{excalidraw → common/src}/utility-types.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/containerCache.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/cropElement.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/distance.d.ts +0 -0
- /package/types/{excalidraw/renderer → element/src}/easingFunctions.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/sortElements.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/textMeasurements.d.ts +0 -0
- /package/types/{excalidraw/element → element/src}/textWrapping.d.ts +0 -0
- /package/types/math/{angle.d.ts → src/angle.d.ts} +0 -0
- /package/types/math/{curve.d.ts → src/curve.d.ts} +0 -0
- /package/types/math/{ellipse.d.ts → src/ellipse.d.ts} +0 -0
- /package/types/math/{index.d.ts → src/index.d.ts} +0 -0
- /package/types/math/{line.d.ts → src/line.d.ts} +0 -0
- /package/types/math/{range.d.ts → src/range.d.ts} +0 -0
- /package/types/math/{rectangle.d.ts → src/rectangle.d.ts} +0 -0
- /package/types/math/{triangle.d.ts → src/triangle.d.ts} +0 -0
- /package/types/math/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/types/math/{vector.d.ts → src/vector.d.ts} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
2
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
1
3
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
2
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement } from "../element/types";
|
|
3
|
-
import { LinearElementEditor } from "../element/linearElementEditor";
|
|
4
4
|
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: ExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
5
5
|
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;
|
|
6
6
|
export declare const actionChangeStrokeColor: {
|
|
7
7
|
name: "changeStrokeColor";
|
|
8
8
|
label: string;
|
|
9
9
|
trackEvent: false;
|
|
10
|
-
perform: (elements: readonly import("
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => any;
|
|
11
11
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
} & {
|
|
13
13
|
keyTest?: undefined;
|
|
@@ -16,7 +16,7 @@ export declare const actionChangeBackgroundColor: {
|
|
|
16
16
|
name: "changeBackgroundColor";
|
|
17
17
|
label: string;
|
|
18
18
|
trackEvent: false;
|
|
19
|
-
perform: (elements: readonly import("
|
|
19
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => any;
|
|
20
20
|
PanelComponent: ({ elements, appState, updateData, appProps }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
} & {
|
|
22
22
|
keyTest?: undefined;
|
|
@@ -25,7 +25,7 @@ export declare const actionChangeFillStyle: {
|
|
|
25
25
|
name: "changeFillStyle";
|
|
26
26
|
label: string;
|
|
27
27
|
trackEvent: false;
|
|
28
|
-
perform: (elements: readonly import("
|
|
28
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
29
29
|
elements: ExcalidrawElement[];
|
|
30
30
|
appState: {
|
|
31
31
|
currentItemFillStyle: any;
|
|
@@ -38,17 +38,17 @@ export declare const actionChangeFillStyle: {
|
|
|
38
38
|
isLoading: boolean;
|
|
39
39
|
errorMessage: import("react").ReactNode;
|
|
40
40
|
activeEmbeddable: {
|
|
41
|
-
element: import("
|
|
41
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
42
42
|
state: "active" | "hover";
|
|
43
43
|
} | null;
|
|
44
|
-
newElement: import("
|
|
45
|
-
resizingElement: import("
|
|
46
|
-
multiElement: import("
|
|
47
|
-
selectionElement: import("
|
|
44
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
45
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
46
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
47
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
48
|
isBindingEnabled: boolean;
|
|
49
|
-
startBoundElement: import("
|
|
50
|
-
suggestedBindings: import("
|
|
51
|
-
frameToHighlight: import("
|
|
49
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
50
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
51
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
52
|
frameRendering: {
|
|
53
53
|
enabled: boolean;
|
|
54
54
|
name: boolean;
|
|
@@ -56,12 +56,13 @@ export declare const actionChangeFillStyle: {
|
|
|
56
56
|
clip: boolean;
|
|
57
57
|
};
|
|
58
58
|
editingFrame: string | null;
|
|
59
|
-
elementsToHighlight: import("
|
|
60
|
-
editingTextElement: import("
|
|
59
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
61
61
|
editingLinearElement: LinearElementEditor | null;
|
|
62
62
|
activeTool: {
|
|
63
63
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
64
|
locked: boolean;
|
|
65
|
+
fromSelection: boolean;
|
|
65
66
|
} & import("../types").ActiveTool;
|
|
66
67
|
penMode: boolean;
|
|
67
68
|
penDetected: boolean;
|
|
@@ -72,7 +73,7 @@ export declare const actionChangeFillStyle: {
|
|
|
72
73
|
currentItemStrokeColor: string;
|
|
73
74
|
currentItemBackgroundColor: string;
|
|
74
75
|
currentItemStrokeWidth: number;
|
|
75
|
-
currentItemStrokeStyle: import("
|
|
76
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
76
77
|
currentItemRoughness: number;
|
|
77
78
|
currentItemOpacity: number;
|
|
78
79
|
currentItemFontFamily: number;
|
|
@@ -81,7 +82,7 @@ export declare const actionChangeFillStyle: {
|
|
|
81
82
|
currentItemStartArrowhead: Arrowhead | null;
|
|
82
83
|
currentItemEndArrowhead: Arrowhead | null;
|
|
83
84
|
currentHoveredFontFamily: number | null;
|
|
84
|
-
currentItemRoundness: import("
|
|
85
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
85
86
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
86
87
|
viewBackgroundColor: string;
|
|
87
88
|
scrollX: number;
|
|
@@ -94,7 +95,7 @@ export declare const actionChangeFillStyle: {
|
|
|
94
95
|
zoom: Readonly<{
|
|
95
96
|
value: import("../types").NormalizedZoomValue;
|
|
96
97
|
}>;
|
|
97
|
-
openMenu: "
|
|
98
|
+
openMenu: "shape" | "canvas" | null;
|
|
98
99
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
99
100
|
openSidebar: {
|
|
100
101
|
name: string;
|
|
@@ -112,7 +113,7 @@ export declare const actionChangeFillStyle: {
|
|
|
112
113
|
sourceElementId: string;
|
|
113
114
|
} | null;
|
|
114
115
|
defaultSidebarDockedPreference: boolean;
|
|
115
|
-
lastPointerDownWith: import("
|
|
116
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
116
117
|
selectedElementIds: Readonly<{
|
|
117
118
|
[id: string]: true;
|
|
118
119
|
}>;
|
|
@@ -130,7 +131,7 @@ export declare const actionChangeFillStyle: {
|
|
|
130
131
|
duration?: number | undefined;
|
|
131
132
|
} | null;
|
|
132
133
|
zenModeEnabled: boolean;
|
|
133
|
-
theme: import("
|
|
134
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
134
135
|
gridSize: number;
|
|
135
136
|
gridStep: number;
|
|
136
137
|
gridModeEnabled: boolean;
|
|
@@ -151,7 +152,7 @@ export declare const actionChangeFillStyle: {
|
|
|
151
152
|
[id: string]: true;
|
|
152
153
|
}> | undefined;
|
|
153
154
|
username?: string | null | undefined;
|
|
154
|
-
userState?: import("
|
|
155
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
155
156
|
color?: {
|
|
156
157
|
background: string;
|
|
157
158
|
stroke: string;
|
|
@@ -168,7 +169,7 @@ export declare const actionChangeFillStyle: {
|
|
|
168
169
|
open: boolean;
|
|
169
170
|
panels: number;
|
|
170
171
|
};
|
|
171
|
-
currentChartType: import("
|
|
172
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
172
173
|
pasteDialog: {
|
|
173
174
|
shown: false;
|
|
174
175
|
data: null;
|
|
@@ -177,13 +178,13 @@ export declare const actionChangeFillStyle: {
|
|
|
177
178
|
data: import("../charts").Spreadsheet;
|
|
178
179
|
};
|
|
179
180
|
pendingImageElementId: string | null;
|
|
180
|
-
showHyperlinkPopup: false | "
|
|
181
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
181
182
|
linkOpacity: number;
|
|
182
183
|
trayModeEnabled: boolean;
|
|
183
184
|
colorPalette?: {
|
|
184
|
-
canvasBackground: import("
|
|
185
|
-
elementBackground: import("
|
|
186
|
-
elementStroke: import("
|
|
185
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
186
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
187
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
187
188
|
topPicks: {
|
|
188
189
|
canvasBackground: [string, string, string, string, string];
|
|
189
190
|
elementStroke: [string, string, string, string, string];
|
|
@@ -200,6 +201,10 @@ export declare const actionChangeFillStyle: {
|
|
|
200
201
|
Bold: string;
|
|
201
202
|
Regular: string;
|
|
202
203
|
};
|
|
204
|
+
gridDirection: {
|
|
205
|
+
horizontal: boolean;
|
|
206
|
+
vertical: boolean;
|
|
207
|
+
};
|
|
203
208
|
highlightSearchResult: boolean;
|
|
204
209
|
dynamicStyle: {
|
|
205
210
|
[x: string]: string;
|
|
@@ -242,7 +247,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
242
247
|
name: "changeStrokeWidth";
|
|
243
248
|
label: string;
|
|
244
249
|
trackEvent: false;
|
|
245
|
-
perform: (elements: readonly import("
|
|
250
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
246
251
|
elements: ExcalidrawElement[];
|
|
247
252
|
appState: {
|
|
248
253
|
currentItemStrokeWidth: any;
|
|
@@ -255,17 +260,17 @@ export declare const actionChangeStrokeWidth: {
|
|
|
255
260
|
isLoading: boolean;
|
|
256
261
|
errorMessage: import("react").ReactNode;
|
|
257
262
|
activeEmbeddable: {
|
|
258
|
-
element: import("
|
|
263
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
259
264
|
state: "active" | "hover";
|
|
260
265
|
} | null;
|
|
261
|
-
newElement: import("
|
|
262
|
-
resizingElement: import("
|
|
263
|
-
multiElement: import("
|
|
264
|
-
selectionElement: import("
|
|
266
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
267
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
268
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
269
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
265
270
|
isBindingEnabled: boolean;
|
|
266
|
-
startBoundElement: import("
|
|
267
|
-
suggestedBindings: import("
|
|
268
|
-
frameToHighlight: import("
|
|
271
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
272
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
273
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
269
274
|
frameRendering: {
|
|
270
275
|
enabled: boolean;
|
|
271
276
|
name: boolean;
|
|
@@ -273,12 +278,13 @@ export declare const actionChangeStrokeWidth: {
|
|
|
273
278
|
clip: boolean;
|
|
274
279
|
};
|
|
275
280
|
editingFrame: string | null;
|
|
276
|
-
elementsToHighlight: import("
|
|
277
|
-
editingTextElement: import("
|
|
281
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
282
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
278
283
|
editingLinearElement: LinearElementEditor | null;
|
|
279
284
|
activeTool: {
|
|
280
285
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
281
286
|
locked: boolean;
|
|
287
|
+
fromSelection: boolean;
|
|
282
288
|
} & import("../types").ActiveTool;
|
|
283
289
|
penMode: boolean;
|
|
284
290
|
penDetected: boolean;
|
|
@@ -288,8 +294,8 @@ export declare const actionChangeStrokeWidth: {
|
|
|
288
294
|
exportScale: number;
|
|
289
295
|
currentItemStrokeColor: string;
|
|
290
296
|
currentItemBackgroundColor: string;
|
|
291
|
-
currentItemFillStyle: import("
|
|
292
|
-
currentItemStrokeStyle: import("
|
|
297
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
298
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
293
299
|
currentItemRoughness: number;
|
|
294
300
|
currentItemOpacity: number;
|
|
295
301
|
currentItemFontFamily: number;
|
|
@@ -298,7 +304,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
298
304
|
currentItemStartArrowhead: Arrowhead | null;
|
|
299
305
|
currentItemEndArrowhead: Arrowhead | null;
|
|
300
306
|
currentHoveredFontFamily: number | null;
|
|
301
|
-
currentItemRoundness: import("
|
|
307
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
302
308
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
303
309
|
viewBackgroundColor: string;
|
|
304
310
|
scrollX: number;
|
|
@@ -311,7 +317,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
311
317
|
zoom: Readonly<{
|
|
312
318
|
value: import("../types").NormalizedZoomValue;
|
|
313
319
|
}>;
|
|
314
|
-
openMenu: "
|
|
320
|
+
openMenu: "shape" | "canvas" | null;
|
|
315
321
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
316
322
|
openSidebar: {
|
|
317
323
|
name: string;
|
|
@@ -329,7 +335,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
329
335
|
sourceElementId: string;
|
|
330
336
|
} | null;
|
|
331
337
|
defaultSidebarDockedPreference: boolean;
|
|
332
|
-
lastPointerDownWith: import("
|
|
338
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
333
339
|
selectedElementIds: Readonly<{
|
|
334
340
|
[id: string]: true;
|
|
335
341
|
}>;
|
|
@@ -347,7 +353,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
347
353
|
duration?: number | undefined;
|
|
348
354
|
} | null;
|
|
349
355
|
zenModeEnabled: boolean;
|
|
350
|
-
theme: import("
|
|
356
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
351
357
|
gridSize: number;
|
|
352
358
|
gridStep: number;
|
|
353
359
|
gridModeEnabled: boolean;
|
|
@@ -368,7 +374,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
368
374
|
[id: string]: true;
|
|
369
375
|
}> | undefined;
|
|
370
376
|
username?: string | null | undefined;
|
|
371
|
-
userState?: import("
|
|
377
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
372
378
|
color?: {
|
|
373
379
|
background: string;
|
|
374
380
|
stroke: string;
|
|
@@ -385,7 +391,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
385
391
|
open: boolean;
|
|
386
392
|
panels: number;
|
|
387
393
|
};
|
|
388
|
-
currentChartType: import("
|
|
394
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
389
395
|
pasteDialog: {
|
|
390
396
|
shown: false;
|
|
391
397
|
data: null;
|
|
@@ -394,13 +400,13 @@ export declare const actionChangeStrokeWidth: {
|
|
|
394
400
|
data: import("../charts").Spreadsheet;
|
|
395
401
|
};
|
|
396
402
|
pendingImageElementId: string | null;
|
|
397
|
-
showHyperlinkPopup: false | "
|
|
403
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
398
404
|
linkOpacity: number;
|
|
399
405
|
trayModeEnabled: boolean;
|
|
400
406
|
colorPalette?: {
|
|
401
|
-
canvasBackground: import("
|
|
402
|
-
elementBackground: import("
|
|
403
|
-
elementStroke: import("
|
|
407
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
408
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
409
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
404
410
|
topPicks: {
|
|
405
411
|
canvasBackground: [string, string, string, string, string];
|
|
406
412
|
elementStroke: [string, string, string, string, string];
|
|
@@ -417,6 +423,10 @@ export declare const actionChangeStrokeWidth: {
|
|
|
417
423
|
Bold: string;
|
|
418
424
|
Regular: string;
|
|
419
425
|
};
|
|
426
|
+
gridDirection: {
|
|
427
|
+
horizontal: boolean;
|
|
428
|
+
vertical: boolean;
|
|
429
|
+
};
|
|
420
430
|
highlightSearchResult: boolean;
|
|
421
431
|
dynamicStyle: {
|
|
422
432
|
[x: string]: string;
|
|
@@ -459,7 +469,7 @@ export declare const actionChangeSloppiness: {
|
|
|
459
469
|
name: "changeSloppiness";
|
|
460
470
|
label: string;
|
|
461
471
|
trackEvent: false;
|
|
462
|
-
perform: (elements: readonly import("
|
|
472
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
463
473
|
elements: ExcalidrawElement[];
|
|
464
474
|
appState: {
|
|
465
475
|
currentItemRoughness: any;
|
|
@@ -472,17 +482,17 @@ export declare const actionChangeSloppiness: {
|
|
|
472
482
|
isLoading: boolean;
|
|
473
483
|
errorMessage: import("react").ReactNode;
|
|
474
484
|
activeEmbeddable: {
|
|
475
|
-
element: import("
|
|
485
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
476
486
|
state: "active" | "hover";
|
|
477
487
|
} | null;
|
|
478
|
-
newElement: import("
|
|
479
|
-
resizingElement: import("
|
|
480
|
-
multiElement: import("
|
|
481
|
-
selectionElement: import("
|
|
488
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
489
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
490
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
491
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
482
492
|
isBindingEnabled: boolean;
|
|
483
|
-
startBoundElement: import("
|
|
484
|
-
suggestedBindings: import("
|
|
485
|
-
frameToHighlight: import("
|
|
493
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
494
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
495
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
486
496
|
frameRendering: {
|
|
487
497
|
enabled: boolean;
|
|
488
498
|
name: boolean;
|
|
@@ -490,12 +500,13 @@ export declare const actionChangeSloppiness: {
|
|
|
490
500
|
clip: boolean;
|
|
491
501
|
};
|
|
492
502
|
editingFrame: string | null;
|
|
493
|
-
elementsToHighlight: import("
|
|
494
|
-
editingTextElement: import("
|
|
503
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
504
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
495
505
|
editingLinearElement: LinearElementEditor | null;
|
|
496
506
|
activeTool: {
|
|
497
507
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
498
508
|
locked: boolean;
|
|
509
|
+
fromSelection: boolean;
|
|
499
510
|
} & import("../types").ActiveTool;
|
|
500
511
|
penMode: boolean;
|
|
501
512
|
penDetected: boolean;
|
|
@@ -505,9 +516,9 @@ export declare const actionChangeSloppiness: {
|
|
|
505
516
|
exportScale: number;
|
|
506
517
|
currentItemStrokeColor: string;
|
|
507
518
|
currentItemBackgroundColor: string;
|
|
508
|
-
currentItemFillStyle: import("
|
|
519
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
509
520
|
currentItemStrokeWidth: number;
|
|
510
|
-
currentItemStrokeStyle: import("
|
|
521
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
511
522
|
currentItemOpacity: number;
|
|
512
523
|
currentItemFontFamily: number;
|
|
513
524
|
currentItemFontSize: number;
|
|
@@ -515,7 +526,7 @@ export declare const actionChangeSloppiness: {
|
|
|
515
526
|
currentItemStartArrowhead: Arrowhead | null;
|
|
516
527
|
currentItemEndArrowhead: Arrowhead | null;
|
|
517
528
|
currentHoveredFontFamily: number | null;
|
|
518
|
-
currentItemRoundness: import("
|
|
529
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
519
530
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
520
531
|
viewBackgroundColor: string;
|
|
521
532
|
scrollX: number;
|
|
@@ -528,7 +539,7 @@ export declare const actionChangeSloppiness: {
|
|
|
528
539
|
zoom: Readonly<{
|
|
529
540
|
value: import("../types").NormalizedZoomValue;
|
|
530
541
|
}>;
|
|
531
|
-
openMenu: "
|
|
542
|
+
openMenu: "shape" | "canvas" | null;
|
|
532
543
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
533
544
|
openSidebar: {
|
|
534
545
|
name: string;
|
|
@@ -546,7 +557,7 @@ export declare const actionChangeSloppiness: {
|
|
|
546
557
|
sourceElementId: string;
|
|
547
558
|
} | null;
|
|
548
559
|
defaultSidebarDockedPreference: boolean;
|
|
549
|
-
lastPointerDownWith: import("
|
|
560
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
550
561
|
selectedElementIds: Readonly<{
|
|
551
562
|
[id: string]: true;
|
|
552
563
|
}>;
|
|
@@ -564,7 +575,7 @@ export declare const actionChangeSloppiness: {
|
|
|
564
575
|
duration?: number | undefined;
|
|
565
576
|
} | null;
|
|
566
577
|
zenModeEnabled: boolean;
|
|
567
|
-
theme: import("
|
|
578
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
568
579
|
gridSize: number;
|
|
569
580
|
gridStep: number;
|
|
570
581
|
gridModeEnabled: boolean;
|
|
@@ -585,7 +596,7 @@ export declare const actionChangeSloppiness: {
|
|
|
585
596
|
[id: string]: true;
|
|
586
597
|
}> | undefined;
|
|
587
598
|
username?: string | null | undefined;
|
|
588
|
-
userState?: import("
|
|
599
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
589
600
|
color?: {
|
|
590
601
|
background: string;
|
|
591
602
|
stroke: string;
|
|
@@ -602,7 +613,7 @@ export declare const actionChangeSloppiness: {
|
|
|
602
613
|
open: boolean;
|
|
603
614
|
panels: number;
|
|
604
615
|
};
|
|
605
|
-
currentChartType: import("
|
|
616
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
606
617
|
pasteDialog: {
|
|
607
618
|
shown: false;
|
|
608
619
|
data: null;
|
|
@@ -611,13 +622,13 @@ export declare const actionChangeSloppiness: {
|
|
|
611
622
|
data: import("../charts").Spreadsheet;
|
|
612
623
|
};
|
|
613
624
|
pendingImageElementId: string | null;
|
|
614
|
-
showHyperlinkPopup: false | "
|
|
625
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
615
626
|
linkOpacity: number;
|
|
616
627
|
trayModeEnabled: boolean;
|
|
617
628
|
colorPalette?: {
|
|
618
|
-
canvasBackground: import("
|
|
619
|
-
elementBackground: import("
|
|
620
|
-
elementStroke: import("
|
|
629
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
630
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
631
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
621
632
|
topPicks: {
|
|
622
633
|
canvasBackground: [string, string, string, string, string];
|
|
623
634
|
elementStroke: [string, string, string, string, string];
|
|
@@ -634,6 +645,10 @@ export declare const actionChangeSloppiness: {
|
|
|
634
645
|
Bold: string;
|
|
635
646
|
Regular: string;
|
|
636
647
|
};
|
|
648
|
+
gridDirection: {
|
|
649
|
+
horizontal: boolean;
|
|
650
|
+
vertical: boolean;
|
|
651
|
+
};
|
|
637
652
|
highlightSearchResult: boolean;
|
|
638
653
|
dynamicStyle: {
|
|
639
654
|
[x: string]: string;
|
|
@@ -676,7 +691,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
676
691
|
name: "changeStrokeStyle";
|
|
677
692
|
label: string;
|
|
678
693
|
trackEvent: false;
|
|
679
|
-
perform: (elements: readonly import("
|
|
694
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
680
695
|
elements: ExcalidrawElement[];
|
|
681
696
|
appState: {
|
|
682
697
|
currentItemStrokeStyle: any;
|
|
@@ -689,17 +704,17 @@ export declare const actionChangeStrokeStyle: {
|
|
|
689
704
|
isLoading: boolean;
|
|
690
705
|
errorMessage: import("react").ReactNode;
|
|
691
706
|
activeEmbeddable: {
|
|
692
|
-
element: import("
|
|
707
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
693
708
|
state: "active" | "hover";
|
|
694
709
|
} | null;
|
|
695
|
-
newElement: import("
|
|
696
|
-
resizingElement: import("
|
|
697
|
-
multiElement: import("
|
|
698
|
-
selectionElement: import("
|
|
710
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
711
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
712
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
713
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
699
714
|
isBindingEnabled: boolean;
|
|
700
|
-
startBoundElement: import("
|
|
701
|
-
suggestedBindings: import("
|
|
702
|
-
frameToHighlight: import("
|
|
715
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
716
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
717
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
703
718
|
frameRendering: {
|
|
704
719
|
enabled: boolean;
|
|
705
720
|
name: boolean;
|
|
@@ -707,12 +722,13 @@ export declare const actionChangeStrokeStyle: {
|
|
|
707
722
|
clip: boolean;
|
|
708
723
|
};
|
|
709
724
|
editingFrame: string | null;
|
|
710
|
-
elementsToHighlight: import("
|
|
711
|
-
editingTextElement: import("
|
|
725
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
726
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
712
727
|
editingLinearElement: LinearElementEditor | null;
|
|
713
728
|
activeTool: {
|
|
714
729
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
715
730
|
locked: boolean;
|
|
731
|
+
fromSelection: boolean;
|
|
716
732
|
} & import("../types").ActiveTool;
|
|
717
733
|
penMode: boolean;
|
|
718
734
|
penDetected: boolean;
|
|
@@ -722,7 +738,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
722
738
|
exportScale: number;
|
|
723
739
|
currentItemStrokeColor: string;
|
|
724
740
|
currentItemBackgroundColor: string;
|
|
725
|
-
currentItemFillStyle: import("
|
|
741
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
726
742
|
currentItemStrokeWidth: number;
|
|
727
743
|
currentItemRoughness: number;
|
|
728
744
|
currentItemOpacity: number;
|
|
@@ -732,7 +748,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
732
748
|
currentItemStartArrowhead: Arrowhead | null;
|
|
733
749
|
currentItemEndArrowhead: Arrowhead | null;
|
|
734
750
|
currentHoveredFontFamily: number | null;
|
|
735
|
-
currentItemRoundness: import("
|
|
751
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
736
752
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
737
753
|
viewBackgroundColor: string;
|
|
738
754
|
scrollX: number;
|
|
@@ -745,7 +761,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
745
761
|
zoom: Readonly<{
|
|
746
762
|
value: import("../types").NormalizedZoomValue;
|
|
747
763
|
}>;
|
|
748
|
-
openMenu: "
|
|
764
|
+
openMenu: "shape" | "canvas" | null;
|
|
749
765
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
750
766
|
openSidebar: {
|
|
751
767
|
name: string;
|
|
@@ -763,7 +779,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
763
779
|
sourceElementId: string;
|
|
764
780
|
} | null;
|
|
765
781
|
defaultSidebarDockedPreference: boolean;
|
|
766
|
-
lastPointerDownWith: import("
|
|
782
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
767
783
|
selectedElementIds: Readonly<{
|
|
768
784
|
[id: string]: true;
|
|
769
785
|
}>;
|
|
@@ -781,7 +797,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
781
797
|
duration?: number | undefined;
|
|
782
798
|
} | null;
|
|
783
799
|
zenModeEnabled: boolean;
|
|
784
|
-
theme: import("
|
|
800
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
785
801
|
gridSize: number;
|
|
786
802
|
gridStep: number;
|
|
787
803
|
gridModeEnabled: boolean;
|
|
@@ -802,7 +818,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
802
818
|
[id: string]: true;
|
|
803
819
|
}> | undefined;
|
|
804
820
|
username?: string | null | undefined;
|
|
805
|
-
userState?: import("
|
|
821
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
806
822
|
color?: {
|
|
807
823
|
background: string;
|
|
808
824
|
stroke: string;
|
|
@@ -819,7 +835,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
819
835
|
open: boolean;
|
|
820
836
|
panels: number;
|
|
821
837
|
};
|
|
822
|
-
currentChartType: import("
|
|
838
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
823
839
|
pasteDialog: {
|
|
824
840
|
shown: false;
|
|
825
841
|
data: null;
|
|
@@ -828,13 +844,13 @@ export declare const actionChangeStrokeStyle: {
|
|
|
828
844
|
data: import("../charts").Spreadsheet;
|
|
829
845
|
};
|
|
830
846
|
pendingImageElementId: string | null;
|
|
831
|
-
showHyperlinkPopup: false | "
|
|
847
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
832
848
|
linkOpacity: number;
|
|
833
849
|
trayModeEnabled: boolean;
|
|
834
850
|
colorPalette?: {
|
|
835
|
-
canvasBackground: import("
|
|
836
|
-
elementBackground: import("
|
|
837
|
-
elementStroke: import("
|
|
851
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
852
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
853
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
838
854
|
topPicks: {
|
|
839
855
|
canvasBackground: [string, string, string, string, string];
|
|
840
856
|
elementStroke: [string, string, string, string, string];
|
|
@@ -851,6 +867,10 @@ export declare const actionChangeStrokeStyle: {
|
|
|
851
867
|
Bold: string;
|
|
852
868
|
Regular: string;
|
|
853
869
|
};
|
|
870
|
+
gridDirection: {
|
|
871
|
+
horizontal: boolean;
|
|
872
|
+
vertical: boolean;
|
|
873
|
+
};
|
|
854
874
|
highlightSearchResult: boolean;
|
|
855
875
|
dynamicStyle: {
|
|
856
876
|
[x: string]: string;
|
|
@@ -893,7 +913,7 @@ export declare const actionChangeOpacity: {
|
|
|
893
913
|
name: "changeOpacity";
|
|
894
914
|
label: string;
|
|
895
915
|
trackEvent: false;
|
|
896
|
-
perform: (elements: readonly import("
|
|
916
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
897
917
|
elements: ExcalidrawElement[];
|
|
898
918
|
appState: {
|
|
899
919
|
currentItemOpacity: any;
|
|
@@ -906,17 +926,17 @@ export declare const actionChangeOpacity: {
|
|
|
906
926
|
isLoading: boolean;
|
|
907
927
|
errorMessage: import("react").ReactNode;
|
|
908
928
|
activeEmbeddable: {
|
|
909
|
-
element: import("
|
|
929
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
910
930
|
state: "active" | "hover";
|
|
911
931
|
} | null;
|
|
912
|
-
newElement: import("
|
|
913
|
-
resizingElement: import("
|
|
914
|
-
multiElement: import("
|
|
915
|
-
selectionElement: import("
|
|
932
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
933
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
934
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
935
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
916
936
|
isBindingEnabled: boolean;
|
|
917
|
-
startBoundElement: import("
|
|
918
|
-
suggestedBindings: import("
|
|
919
|
-
frameToHighlight: import("
|
|
937
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
938
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
939
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
920
940
|
frameRendering: {
|
|
921
941
|
enabled: boolean;
|
|
922
942
|
name: boolean;
|
|
@@ -924,12 +944,13 @@ export declare const actionChangeOpacity: {
|
|
|
924
944
|
clip: boolean;
|
|
925
945
|
};
|
|
926
946
|
editingFrame: string | null;
|
|
927
|
-
elementsToHighlight: import("
|
|
928
|
-
editingTextElement: import("
|
|
947
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
948
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
929
949
|
editingLinearElement: LinearElementEditor | null;
|
|
930
950
|
activeTool: {
|
|
931
951
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
932
952
|
locked: boolean;
|
|
953
|
+
fromSelection: boolean;
|
|
933
954
|
} & import("../types").ActiveTool;
|
|
934
955
|
penMode: boolean;
|
|
935
956
|
penDetected: boolean;
|
|
@@ -939,9 +960,9 @@ export declare const actionChangeOpacity: {
|
|
|
939
960
|
exportScale: number;
|
|
940
961
|
currentItemStrokeColor: string;
|
|
941
962
|
currentItemBackgroundColor: string;
|
|
942
|
-
currentItemFillStyle: import("
|
|
963
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
943
964
|
currentItemStrokeWidth: number;
|
|
944
|
-
currentItemStrokeStyle: import("
|
|
965
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
945
966
|
currentItemRoughness: number;
|
|
946
967
|
currentItemFontFamily: number;
|
|
947
968
|
currentItemFontSize: number;
|
|
@@ -949,7 +970,7 @@ export declare const actionChangeOpacity: {
|
|
|
949
970
|
currentItemStartArrowhead: Arrowhead | null;
|
|
950
971
|
currentItemEndArrowhead: Arrowhead | null;
|
|
951
972
|
currentHoveredFontFamily: number | null;
|
|
952
|
-
currentItemRoundness: import("
|
|
973
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
953
974
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
954
975
|
viewBackgroundColor: string;
|
|
955
976
|
scrollX: number;
|
|
@@ -962,7 +983,7 @@ export declare const actionChangeOpacity: {
|
|
|
962
983
|
zoom: Readonly<{
|
|
963
984
|
value: import("../types").NormalizedZoomValue;
|
|
964
985
|
}>;
|
|
965
|
-
openMenu: "
|
|
986
|
+
openMenu: "shape" | "canvas" | null;
|
|
966
987
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
967
988
|
openSidebar: {
|
|
968
989
|
name: string;
|
|
@@ -980,7 +1001,7 @@ export declare const actionChangeOpacity: {
|
|
|
980
1001
|
sourceElementId: string;
|
|
981
1002
|
} | null;
|
|
982
1003
|
defaultSidebarDockedPreference: boolean;
|
|
983
|
-
lastPointerDownWith: import("
|
|
1004
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
984
1005
|
selectedElementIds: Readonly<{
|
|
985
1006
|
[id: string]: true;
|
|
986
1007
|
}>;
|
|
@@ -998,7 +1019,7 @@ export declare const actionChangeOpacity: {
|
|
|
998
1019
|
duration?: number | undefined;
|
|
999
1020
|
} | null;
|
|
1000
1021
|
zenModeEnabled: boolean;
|
|
1001
|
-
theme: import("
|
|
1022
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1002
1023
|
gridSize: number;
|
|
1003
1024
|
gridStep: number;
|
|
1004
1025
|
gridModeEnabled: boolean;
|
|
@@ -1019,7 +1040,7 @@ export declare const actionChangeOpacity: {
|
|
|
1019
1040
|
[id: string]: true;
|
|
1020
1041
|
}> | undefined;
|
|
1021
1042
|
username?: string | null | undefined;
|
|
1022
|
-
userState?: import("
|
|
1043
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1023
1044
|
color?: {
|
|
1024
1045
|
background: string;
|
|
1025
1046
|
stroke: string;
|
|
@@ -1036,7 +1057,7 @@ export declare const actionChangeOpacity: {
|
|
|
1036
1057
|
open: boolean;
|
|
1037
1058
|
panels: number;
|
|
1038
1059
|
};
|
|
1039
|
-
currentChartType: import("
|
|
1060
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1040
1061
|
pasteDialog: {
|
|
1041
1062
|
shown: false;
|
|
1042
1063
|
data: null;
|
|
@@ -1045,13 +1066,13 @@ export declare const actionChangeOpacity: {
|
|
|
1045
1066
|
data: import("../charts").Spreadsheet;
|
|
1046
1067
|
};
|
|
1047
1068
|
pendingImageElementId: string | null;
|
|
1048
|
-
showHyperlinkPopup: false | "
|
|
1069
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1049
1070
|
linkOpacity: number;
|
|
1050
1071
|
trayModeEnabled: boolean;
|
|
1051
1072
|
colorPalette?: {
|
|
1052
|
-
canvasBackground: import("
|
|
1053
|
-
elementBackground: import("
|
|
1054
|
-
elementStroke: import("
|
|
1073
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1074
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1075
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1055
1076
|
topPicks: {
|
|
1056
1077
|
canvasBackground: [string, string, string, string, string];
|
|
1057
1078
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1068,6 +1089,10 @@ export declare const actionChangeOpacity: {
|
|
|
1068
1089
|
Bold: string;
|
|
1069
1090
|
Regular: string;
|
|
1070
1091
|
};
|
|
1092
|
+
gridDirection: {
|
|
1093
|
+
horizontal: boolean;
|
|
1094
|
+
vertical: boolean;
|
|
1095
|
+
};
|
|
1071
1096
|
highlightSearchResult: boolean;
|
|
1072
1097
|
dynamicStyle: {
|
|
1073
1098
|
[x: string]: string;
|
|
@@ -1111,7 +1136,7 @@ export declare const actionChangeFontSize: {
|
|
|
1111
1136
|
name: "changeFontSize";
|
|
1112
1137
|
label: string;
|
|
1113
1138
|
trackEvent: false;
|
|
1114
|
-
perform: (elements: readonly import("
|
|
1139
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1115
1140
|
elements: ExcalidrawElement[];
|
|
1116
1141
|
appState: {
|
|
1117
1142
|
currentItemFontSize: number;
|
|
@@ -1124,17 +1149,17 @@ export declare const actionChangeFontSize: {
|
|
|
1124
1149
|
isLoading: boolean;
|
|
1125
1150
|
errorMessage: import("react").ReactNode;
|
|
1126
1151
|
activeEmbeddable: {
|
|
1127
|
-
element: import("
|
|
1152
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1128
1153
|
state: "active" | "hover";
|
|
1129
1154
|
} | null;
|
|
1130
|
-
newElement: import("
|
|
1131
|
-
resizingElement: import("
|
|
1132
|
-
multiElement: import("
|
|
1133
|
-
selectionElement: import("
|
|
1155
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1156
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1157
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1158
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1134
1159
|
isBindingEnabled: boolean;
|
|
1135
|
-
startBoundElement: import("
|
|
1136
|
-
suggestedBindings: import("
|
|
1137
|
-
frameToHighlight: import("
|
|
1160
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1161
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1162
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1138
1163
|
frameRendering: {
|
|
1139
1164
|
enabled: boolean;
|
|
1140
1165
|
name: boolean;
|
|
@@ -1142,12 +1167,13 @@ export declare const actionChangeFontSize: {
|
|
|
1142
1167
|
clip: boolean;
|
|
1143
1168
|
};
|
|
1144
1169
|
editingFrame: string | null;
|
|
1145
|
-
elementsToHighlight: import("
|
|
1146
|
-
editingTextElement: import("
|
|
1170
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1171
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1147
1172
|
editingLinearElement: LinearElementEditor | null;
|
|
1148
1173
|
activeTool: {
|
|
1149
1174
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1150
1175
|
locked: boolean;
|
|
1176
|
+
fromSelection: boolean;
|
|
1151
1177
|
} & import("../types").ActiveTool;
|
|
1152
1178
|
penMode: boolean;
|
|
1153
1179
|
penDetected: boolean;
|
|
@@ -1157,9 +1183,9 @@ export declare const actionChangeFontSize: {
|
|
|
1157
1183
|
exportScale: number;
|
|
1158
1184
|
currentItemStrokeColor: string;
|
|
1159
1185
|
currentItemBackgroundColor: string;
|
|
1160
|
-
currentItemFillStyle: import("
|
|
1186
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1161
1187
|
currentItemStrokeWidth: number;
|
|
1162
|
-
currentItemStrokeStyle: import("
|
|
1188
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1163
1189
|
currentItemRoughness: number;
|
|
1164
1190
|
currentItemOpacity: number;
|
|
1165
1191
|
currentItemFontFamily: number;
|
|
@@ -1167,7 +1193,7 @@ export declare const actionChangeFontSize: {
|
|
|
1167
1193
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1168
1194
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1169
1195
|
currentHoveredFontFamily: number | null;
|
|
1170
|
-
currentItemRoundness: import("
|
|
1196
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1171
1197
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1172
1198
|
viewBackgroundColor: string;
|
|
1173
1199
|
scrollX: number;
|
|
@@ -1180,7 +1206,7 @@ export declare const actionChangeFontSize: {
|
|
|
1180
1206
|
zoom: Readonly<{
|
|
1181
1207
|
value: import("../types").NormalizedZoomValue;
|
|
1182
1208
|
}>;
|
|
1183
|
-
openMenu: "
|
|
1209
|
+
openMenu: "shape" | "canvas" | null;
|
|
1184
1210
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1185
1211
|
openSidebar: {
|
|
1186
1212
|
name: string;
|
|
@@ -1198,7 +1224,7 @@ export declare const actionChangeFontSize: {
|
|
|
1198
1224
|
sourceElementId: string;
|
|
1199
1225
|
} | null;
|
|
1200
1226
|
defaultSidebarDockedPreference: boolean;
|
|
1201
|
-
lastPointerDownWith: import("
|
|
1227
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1202
1228
|
selectedElementIds: Readonly<{
|
|
1203
1229
|
[id: string]: true;
|
|
1204
1230
|
}>;
|
|
@@ -1216,7 +1242,7 @@ export declare const actionChangeFontSize: {
|
|
|
1216
1242
|
duration?: number | undefined;
|
|
1217
1243
|
} | null;
|
|
1218
1244
|
zenModeEnabled: boolean;
|
|
1219
|
-
theme: import("
|
|
1245
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1220
1246
|
gridSize: number;
|
|
1221
1247
|
gridStep: number;
|
|
1222
1248
|
gridModeEnabled: boolean;
|
|
@@ -1237,7 +1263,7 @@ export declare const actionChangeFontSize: {
|
|
|
1237
1263
|
[id: string]: true;
|
|
1238
1264
|
}> | undefined;
|
|
1239
1265
|
username?: string | null | undefined;
|
|
1240
|
-
userState?: import("
|
|
1266
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1241
1267
|
color?: {
|
|
1242
1268
|
background: string;
|
|
1243
1269
|
stroke: string;
|
|
@@ -1254,7 +1280,7 @@ export declare const actionChangeFontSize: {
|
|
|
1254
1280
|
open: boolean;
|
|
1255
1281
|
panels: number;
|
|
1256
1282
|
};
|
|
1257
|
-
currentChartType: import("
|
|
1283
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1258
1284
|
pasteDialog: {
|
|
1259
1285
|
shown: false;
|
|
1260
1286
|
data: null;
|
|
@@ -1263,13 +1289,13 @@ export declare const actionChangeFontSize: {
|
|
|
1263
1289
|
data: import("../charts").Spreadsheet;
|
|
1264
1290
|
};
|
|
1265
1291
|
pendingImageElementId: string | null;
|
|
1266
|
-
showHyperlinkPopup: false | "
|
|
1292
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1267
1293
|
linkOpacity: number;
|
|
1268
1294
|
trayModeEnabled: boolean;
|
|
1269
1295
|
colorPalette?: {
|
|
1270
|
-
canvasBackground: import("
|
|
1271
|
-
elementBackground: import("
|
|
1272
|
-
elementStroke: import("
|
|
1296
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1297
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1298
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1273
1299
|
topPicks: {
|
|
1274
1300
|
canvasBackground: [string, string, string, string, string];
|
|
1275
1301
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1286,6 +1312,10 @@ export declare const actionChangeFontSize: {
|
|
|
1286
1312
|
Bold: string;
|
|
1287
1313
|
Regular: string;
|
|
1288
1314
|
};
|
|
1315
|
+
gridDirection: {
|
|
1316
|
+
horizontal: boolean;
|
|
1317
|
+
vertical: boolean;
|
|
1318
|
+
};
|
|
1289
1319
|
highlightSearchResult: boolean;
|
|
1290
1320
|
dynamicStyle: {
|
|
1291
1321
|
[x: string]: string;
|
|
@@ -1329,7 +1359,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1329
1359
|
label: string;
|
|
1330
1360
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1331
1361
|
trackEvent: false;
|
|
1332
|
-
perform: (elements: readonly import("
|
|
1362
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1333
1363
|
elements: ExcalidrawElement[];
|
|
1334
1364
|
appState: {
|
|
1335
1365
|
currentItemFontSize: number;
|
|
@@ -1342,17 +1372,17 @@ export declare const actionDecreaseFontSize: {
|
|
|
1342
1372
|
isLoading: boolean;
|
|
1343
1373
|
errorMessage: import("react").ReactNode;
|
|
1344
1374
|
activeEmbeddable: {
|
|
1345
|
-
element: import("
|
|
1375
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1346
1376
|
state: "active" | "hover";
|
|
1347
1377
|
} | null;
|
|
1348
|
-
newElement: import("
|
|
1349
|
-
resizingElement: import("
|
|
1350
|
-
multiElement: import("
|
|
1351
|
-
selectionElement: import("
|
|
1378
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1379
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1380
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1381
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1352
1382
|
isBindingEnabled: boolean;
|
|
1353
|
-
startBoundElement: import("
|
|
1354
|
-
suggestedBindings: import("
|
|
1355
|
-
frameToHighlight: import("
|
|
1383
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1384
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1385
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1356
1386
|
frameRendering: {
|
|
1357
1387
|
enabled: boolean;
|
|
1358
1388
|
name: boolean;
|
|
@@ -1360,12 +1390,13 @@ export declare const actionDecreaseFontSize: {
|
|
|
1360
1390
|
clip: boolean;
|
|
1361
1391
|
};
|
|
1362
1392
|
editingFrame: string | null;
|
|
1363
|
-
elementsToHighlight: import("
|
|
1364
|
-
editingTextElement: import("
|
|
1393
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1394
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1365
1395
|
editingLinearElement: LinearElementEditor | null;
|
|
1366
1396
|
activeTool: {
|
|
1367
1397
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1368
1398
|
locked: boolean;
|
|
1399
|
+
fromSelection: boolean;
|
|
1369
1400
|
} & import("../types").ActiveTool;
|
|
1370
1401
|
penMode: boolean;
|
|
1371
1402
|
penDetected: boolean;
|
|
@@ -1375,9 +1406,9 @@ export declare const actionDecreaseFontSize: {
|
|
|
1375
1406
|
exportScale: number;
|
|
1376
1407
|
currentItemStrokeColor: string;
|
|
1377
1408
|
currentItemBackgroundColor: string;
|
|
1378
|
-
currentItemFillStyle: import("
|
|
1409
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1379
1410
|
currentItemStrokeWidth: number;
|
|
1380
|
-
currentItemStrokeStyle: import("
|
|
1411
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1381
1412
|
currentItemRoughness: number;
|
|
1382
1413
|
currentItemOpacity: number;
|
|
1383
1414
|
currentItemFontFamily: number;
|
|
@@ -1385,7 +1416,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1385
1416
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1386
1417
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1387
1418
|
currentHoveredFontFamily: number | null;
|
|
1388
|
-
currentItemRoundness: import("
|
|
1419
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1389
1420
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1390
1421
|
viewBackgroundColor: string;
|
|
1391
1422
|
scrollX: number;
|
|
@@ -1398,7 +1429,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1398
1429
|
zoom: Readonly<{
|
|
1399
1430
|
value: import("../types").NormalizedZoomValue;
|
|
1400
1431
|
}>;
|
|
1401
|
-
openMenu: "
|
|
1432
|
+
openMenu: "shape" | "canvas" | null;
|
|
1402
1433
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1403
1434
|
openSidebar: {
|
|
1404
1435
|
name: string;
|
|
@@ -1416,7 +1447,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1416
1447
|
sourceElementId: string;
|
|
1417
1448
|
} | null;
|
|
1418
1449
|
defaultSidebarDockedPreference: boolean;
|
|
1419
|
-
lastPointerDownWith: import("
|
|
1450
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1420
1451
|
selectedElementIds: Readonly<{
|
|
1421
1452
|
[id: string]: true;
|
|
1422
1453
|
}>;
|
|
@@ -1434,7 +1465,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1434
1465
|
duration?: number | undefined;
|
|
1435
1466
|
} | null;
|
|
1436
1467
|
zenModeEnabled: boolean;
|
|
1437
|
-
theme: import("
|
|
1468
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1438
1469
|
gridSize: number;
|
|
1439
1470
|
gridStep: number;
|
|
1440
1471
|
gridModeEnabled: boolean;
|
|
@@ -1455,7 +1486,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1455
1486
|
[id: string]: true;
|
|
1456
1487
|
}> | undefined;
|
|
1457
1488
|
username?: string | null | undefined;
|
|
1458
|
-
userState?: import("
|
|
1489
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1459
1490
|
color?: {
|
|
1460
1491
|
background: string;
|
|
1461
1492
|
stroke: string;
|
|
@@ -1472,7 +1503,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1472
1503
|
open: boolean;
|
|
1473
1504
|
panels: number;
|
|
1474
1505
|
};
|
|
1475
|
-
currentChartType: import("
|
|
1506
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1476
1507
|
pasteDialog: {
|
|
1477
1508
|
shown: false;
|
|
1478
1509
|
data: null;
|
|
@@ -1481,13 +1512,13 @@ export declare const actionDecreaseFontSize: {
|
|
|
1481
1512
|
data: import("../charts").Spreadsheet;
|
|
1482
1513
|
};
|
|
1483
1514
|
pendingImageElementId: string | null;
|
|
1484
|
-
showHyperlinkPopup: false | "
|
|
1515
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1485
1516
|
linkOpacity: number;
|
|
1486
1517
|
trayModeEnabled: boolean;
|
|
1487
1518
|
colorPalette?: {
|
|
1488
|
-
canvasBackground: import("
|
|
1489
|
-
elementBackground: import("
|
|
1490
|
-
elementStroke: import("
|
|
1519
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1520
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1521
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1491
1522
|
topPicks: {
|
|
1492
1523
|
canvasBackground: [string, string, string, string, string];
|
|
1493
1524
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1504,6 +1535,10 @@ export declare const actionDecreaseFontSize: {
|
|
|
1504
1535
|
Bold: string;
|
|
1505
1536
|
Regular: string;
|
|
1506
1537
|
};
|
|
1538
|
+
gridDirection: {
|
|
1539
|
+
horizontal: boolean;
|
|
1540
|
+
vertical: boolean;
|
|
1541
|
+
};
|
|
1507
1542
|
highlightSearchResult: boolean;
|
|
1508
1543
|
dynamicStyle: {
|
|
1509
1544
|
[x: string]: string;
|
|
@@ -1547,7 +1582,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1547
1582
|
label: string;
|
|
1548
1583
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
1549
1584
|
trackEvent: false;
|
|
1550
|
-
perform: (elements: readonly import("
|
|
1585
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1551
1586
|
elements: ExcalidrawElement[];
|
|
1552
1587
|
appState: {
|
|
1553
1588
|
currentItemFontSize: number;
|
|
@@ -1560,17 +1595,17 @@ export declare const actionIncreaseFontSize: {
|
|
|
1560
1595
|
isLoading: boolean;
|
|
1561
1596
|
errorMessage: import("react").ReactNode;
|
|
1562
1597
|
activeEmbeddable: {
|
|
1563
|
-
element: import("
|
|
1598
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1564
1599
|
state: "active" | "hover";
|
|
1565
1600
|
} | null;
|
|
1566
|
-
newElement: import("
|
|
1567
|
-
resizingElement: import("
|
|
1568
|
-
multiElement: import("
|
|
1569
|
-
selectionElement: import("
|
|
1601
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1602
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1603
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1604
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1570
1605
|
isBindingEnabled: boolean;
|
|
1571
|
-
startBoundElement: import("
|
|
1572
|
-
suggestedBindings: import("
|
|
1573
|
-
frameToHighlight: import("
|
|
1606
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1607
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1608
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1574
1609
|
frameRendering: {
|
|
1575
1610
|
enabled: boolean;
|
|
1576
1611
|
name: boolean;
|
|
@@ -1578,12 +1613,13 @@ export declare const actionIncreaseFontSize: {
|
|
|
1578
1613
|
clip: boolean;
|
|
1579
1614
|
};
|
|
1580
1615
|
editingFrame: string | null;
|
|
1581
|
-
elementsToHighlight: import("
|
|
1582
|
-
editingTextElement: import("
|
|
1616
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1617
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1583
1618
|
editingLinearElement: LinearElementEditor | null;
|
|
1584
1619
|
activeTool: {
|
|
1585
1620
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1586
1621
|
locked: boolean;
|
|
1622
|
+
fromSelection: boolean;
|
|
1587
1623
|
} & import("../types").ActiveTool;
|
|
1588
1624
|
penMode: boolean;
|
|
1589
1625
|
penDetected: boolean;
|
|
@@ -1593,9 +1629,9 @@ export declare const actionIncreaseFontSize: {
|
|
|
1593
1629
|
exportScale: number;
|
|
1594
1630
|
currentItemStrokeColor: string;
|
|
1595
1631
|
currentItemBackgroundColor: string;
|
|
1596
|
-
currentItemFillStyle: import("
|
|
1632
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1597
1633
|
currentItemStrokeWidth: number;
|
|
1598
|
-
currentItemStrokeStyle: import("
|
|
1634
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1599
1635
|
currentItemRoughness: number;
|
|
1600
1636
|
currentItemOpacity: number;
|
|
1601
1637
|
currentItemFontFamily: number;
|
|
@@ -1603,7 +1639,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1603
1639
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1604
1640
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1605
1641
|
currentHoveredFontFamily: number | null;
|
|
1606
|
-
currentItemRoundness: import("
|
|
1642
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1607
1643
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1608
1644
|
viewBackgroundColor: string;
|
|
1609
1645
|
scrollX: number;
|
|
@@ -1616,7 +1652,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1616
1652
|
zoom: Readonly<{
|
|
1617
1653
|
value: import("../types").NormalizedZoomValue;
|
|
1618
1654
|
}>;
|
|
1619
|
-
openMenu: "
|
|
1655
|
+
openMenu: "shape" | "canvas" | null;
|
|
1620
1656
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1621
1657
|
openSidebar: {
|
|
1622
1658
|
name: string;
|
|
@@ -1634,7 +1670,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1634
1670
|
sourceElementId: string;
|
|
1635
1671
|
} | null;
|
|
1636
1672
|
defaultSidebarDockedPreference: boolean;
|
|
1637
|
-
lastPointerDownWith: import("
|
|
1673
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1638
1674
|
selectedElementIds: Readonly<{
|
|
1639
1675
|
[id: string]: true;
|
|
1640
1676
|
}>;
|
|
@@ -1652,7 +1688,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1652
1688
|
duration?: number | undefined;
|
|
1653
1689
|
} | null;
|
|
1654
1690
|
zenModeEnabled: boolean;
|
|
1655
|
-
theme: import("
|
|
1691
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1656
1692
|
gridSize: number;
|
|
1657
1693
|
gridStep: number;
|
|
1658
1694
|
gridModeEnabled: boolean;
|
|
@@ -1673,7 +1709,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1673
1709
|
[id: string]: true;
|
|
1674
1710
|
}> | undefined;
|
|
1675
1711
|
username?: string | null | undefined;
|
|
1676
|
-
userState?: import("
|
|
1712
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1677
1713
|
color?: {
|
|
1678
1714
|
background: string;
|
|
1679
1715
|
stroke: string;
|
|
@@ -1690,7 +1726,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1690
1726
|
open: boolean;
|
|
1691
1727
|
panels: number;
|
|
1692
1728
|
};
|
|
1693
|
-
currentChartType: import("
|
|
1729
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1694
1730
|
pasteDialog: {
|
|
1695
1731
|
shown: false;
|
|
1696
1732
|
data: null;
|
|
@@ -1699,13 +1735,13 @@ export declare const actionIncreaseFontSize: {
|
|
|
1699
1735
|
data: import("../charts").Spreadsheet;
|
|
1700
1736
|
};
|
|
1701
1737
|
pendingImageElementId: string | null;
|
|
1702
|
-
showHyperlinkPopup: false | "
|
|
1738
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1703
1739
|
linkOpacity: number;
|
|
1704
1740
|
trayModeEnabled: boolean;
|
|
1705
1741
|
colorPalette?: {
|
|
1706
|
-
canvasBackground: import("
|
|
1707
|
-
elementBackground: import("
|
|
1708
|
-
elementStroke: import("
|
|
1742
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1743
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1744
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1709
1745
|
topPicks: {
|
|
1710
1746
|
canvasBackground: [string, string, string, string, string];
|
|
1711
1747
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1722,6 +1758,10 @@ export declare const actionIncreaseFontSize: {
|
|
|
1722
1758
|
Bold: string;
|
|
1723
1759
|
Regular: string;
|
|
1724
1760
|
};
|
|
1761
|
+
gridDirection: {
|
|
1762
|
+
horizontal: boolean;
|
|
1763
|
+
vertical: boolean;
|
|
1764
|
+
};
|
|
1725
1765
|
highlightSearchResult: boolean;
|
|
1726
1766
|
dynamicStyle: {
|
|
1727
1767
|
[x: string]: string;
|
|
@@ -1764,10 +1804,10 @@ export declare const actionChangeFontFamily: {
|
|
|
1764
1804
|
name: "changeFontFamily";
|
|
1765
1805
|
label: string;
|
|
1766
1806
|
trackEvent: false;
|
|
1767
|
-
perform: (elements: readonly import("
|
|
1807
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
1768
1808
|
appState: {
|
|
1769
|
-
currentItemFontFamily: number;
|
|
1770
1809
|
currentHoveredFontFamily: number | null;
|
|
1810
|
+
currentItemFontFamily: number;
|
|
1771
1811
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1772
1812
|
contextMenu: {
|
|
1773
1813
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1778,17 +1818,17 @@ export declare const actionChangeFontFamily: {
|
|
|
1778
1818
|
isLoading: boolean;
|
|
1779
1819
|
errorMessage: import("react").ReactNode;
|
|
1780
1820
|
activeEmbeddable: {
|
|
1781
|
-
element: import("
|
|
1821
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1782
1822
|
state: "active" | "hover";
|
|
1783
1823
|
} | null;
|
|
1784
|
-
newElement: import("
|
|
1785
|
-
resizingElement: import("
|
|
1786
|
-
multiElement: import("
|
|
1787
|
-
selectionElement: import("
|
|
1824
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1825
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1826
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
1827
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1788
1828
|
isBindingEnabled: boolean;
|
|
1789
|
-
startBoundElement: import("
|
|
1790
|
-
suggestedBindings: import("
|
|
1791
|
-
frameToHighlight: import("
|
|
1829
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
1830
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
1831
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1792
1832
|
frameRendering: {
|
|
1793
1833
|
enabled: boolean;
|
|
1794
1834
|
name: boolean;
|
|
@@ -1796,12 +1836,13 @@ export declare const actionChangeFontFamily: {
|
|
|
1796
1836
|
clip: boolean;
|
|
1797
1837
|
};
|
|
1798
1838
|
editingFrame: string | null;
|
|
1799
|
-
elementsToHighlight: import("
|
|
1800
|
-
editingTextElement: import("
|
|
1839
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1840
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1801
1841
|
editingLinearElement: LinearElementEditor | null;
|
|
1802
1842
|
activeTool: {
|
|
1803
1843
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
1804
1844
|
locked: boolean;
|
|
1845
|
+
fromSelection: boolean;
|
|
1805
1846
|
} & import("../types").ActiveTool;
|
|
1806
1847
|
penMode: boolean;
|
|
1807
1848
|
penDetected: boolean;
|
|
@@ -1811,16 +1852,16 @@ export declare const actionChangeFontFamily: {
|
|
|
1811
1852
|
exportScale: number;
|
|
1812
1853
|
currentItemStrokeColor: string;
|
|
1813
1854
|
currentItemBackgroundColor: string;
|
|
1814
|
-
currentItemFillStyle: import("
|
|
1855
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1815
1856
|
currentItemStrokeWidth: number;
|
|
1816
|
-
currentItemStrokeStyle: import("
|
|
1857
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1817
1858
|
currentItemRoughness: number;
|
|
1818
1859
|
currentItemOpacity: number;
|
|
1819
1860
|
currentItemFontSize: number;
|
|
1820
1861
|
currentItemTextAlign: string;
|
|
1821
1862
|
currentItemStartArrowhead: Arrowhead | null;
|
|
1822
1863
|
currentItemEndArrowhead: Arrowhead | null;
|
|
1823
|
-
currentItemRoundness: import("
|
|
1864
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1824
1865
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1825
1866
|
viewBackgroundColor: string;
|
|
1826
1867
|
scrollX: number;
|
|
@@ -1833,7 +1874,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1833
1874
|
zoom: Readonly<{
|
|
1834
1875
|
value: import("../types").NormalizedZoomValue;
|
|
1835
1876
|
}>;
|
|
1836
|
-
openMenu: "
|
|
1877
|
+
openMenu: "shape" | "canvas" | null;
|
|
1837
1878
|
openSidebar: {
|
|
1838
1879
|
name: string;
|
|
1839
1880
|
tab?: string | undefined;
|
|
@@ -1850,7 +1891,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1850
1891
|
sourceElementId: string;
|
|
1851
1892
|
} | null;
|
|
1852
1893
|
defaultSidebarDockedPreference: boolean;
|
|
1853
|
-
lastPointerDownWith: import("
|
|
1894
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1854
1895
|
selectedElementIds: Readonly<{
|
|
1855
1896
|
[id: string]: true;
|
|
1856
1897
|
}>;
|
|
@@ -1868,7 +1909,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1868
1909
|
duration?: number | undefined;
|
|
1869
1910
|
} | null;
|
|
1870
1911
|
zenModeEnabled: boolean;
|
|
1871
|
-
theme: import("
|
|
1912
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1872
1913
|
gridSize: number;
|
|
1873
1914
|
gridStep: number;
|
|
1874
1915
|
gridModeEnabled: boolean;
|
|
@@ -1889,7 +1930,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1889
1930
|
[id: string]: true;
|
|
1890
1931
|
}> | undefined;
|
|
1891
1932
|
username?: string | null | undefined;
|
|
1892
|
-
userState?: import("
|
|
1933
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1893
1934
|
color?: {
|
|
1894
1935
|
background: string;
|
|
1895
1936
|
stroke: string;
|
|
@@ -1906,7 +1947,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1906
1947
|
open: boolean;
|
|
1907
1948
|
panels: number;
|
|
1908
1949
|
};
|
|
1909
|
-
currentChartType: import("
|
|
1950
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1910
1951
|
pasteDialog: {
|
|
1911
1952
|
shown: false;
|
|
1912
1953
|
data: null;
|
|
@@ -1915,13 +1956,13 @@ export declare const actionChangeFontFamily: {
|
|
|
1915
1956
|
data: import("../charts").Spreadsheet;
|
|
1916
1957
|
};
|
|
1917
1958
|
pendingImageElementId: string | null;
|
|
1918
|
-
showHyperlinkPopup: false | "
|
|
1959
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
1919
1960
|
linkOpacity: number;
|
|
1920
1961
|
trayModeEnabled: boolean;
|
|
1921
1962
|
colorPalette?: {
|
|
1922
|
-
canvasBackground: import("
|
|
1923
|
-
elementBackground: import("
|
|
1924
|
-
elementStroke: import("
|
|
1963
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1964
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
1965
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
1925
1966
|
topPicks: {
|
|
1926
1967
|
canvasBackground: [string, string, string, string, string];
|
|
1927
1968
|
elementStroke: [string, string, string, string, string];
|
|
@@ -1938,6 +1979,10 @@ export declare const actionChangeFontFamily: {
|
|
|
1938
1979
|
Bold: string;
|
|
1939
1980
|
Regular: string;
|
|
1940
1981
|
};
|
|
1982
|
+
gridDirection: {
|
|
1983
|
+
horizontal: boolean;
|
|
1984
|
+
vertical: boolean;
|
|
1985
|
+
};
|
|
1941
1986
|
highlightSearchResult: boolean;
|
|
1942
1987
|
dynamicStyle: {
|
|
1943
1988
|
[x: string]: string;
|
|
@@ -1974,8 +2019,8 @@ export declare const actionChangeFontFamily: {
|
|
|
1974
2019
|
} | {
|
|
1975
2020
|
elements: ExcalidrawElement[];
|
|
1976
2021
|
appState: {
|
|
1977
|
-
currentItemFontFamily: number;
|
|
1978
2022
|
currentHoveredFontFamily: number | null;
|
|
2023
|
+
currentItemFontFamily: number;
|
|
1979
2024
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
1980
2025
|
contextMenu: {
|
|
1981
2026
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -1986,17 +2031,17 @@ export declare const actionChangeFontFamily: {
|
|
|
1986
2031
|
isLoading: boolean;
|
|
1987
2032
|
errorMessage: import("react").ReactNode;
|
|
1988
2033
|
activeEmbeddable: {
|
|
1989
|
-
element: import("
|
|
2034
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1990
2035
|
state: "active" | "hover";
|
|
1991
2036
|
} | null;
|
|
1992
|
-
newElement: import("
|
|
1993
|
-
resizingElement: import("
|
|
1994
|
-
multiElement: import("
|
|
1995
|
-
selectionElement: import("
|
|
2037
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2038
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2039
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2040
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1996
2041
|
isBindingEnabled: boolean;
|
|
1997
|
-
startBoundElement: import("
|
|
1998
|
-
suggestedBindings: import("
|
|
1999
|
-
frameToHighlight: import("
|
|
2042
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2043
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2044
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2000
2045
|
frameRendering: {
|
|
2001
2046
|
enabled: boolean;
|
|
2002
2047
|
name: boolean;
|
|
@@ -2004,12 +2049,13 @@ export declare const actionChangeFontFamily: {
|
|
|
2004
2049
|
clip: boolean;
|
|
2005
2050
|
};
|
|
2006
2051
|
editingFrame: string | null;
|
|
2007
|
-
elementsToHighlight: import("
|
|
2008
|
-
editingTextElement: import("
|
|
2052
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2053
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2009
2054
|
editingLinearElement: LinearElementEditor | null;
|
|
2010
2055
|
activeTool: {
|
|
2011
2056
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2012
2057
|
locked: boolean;
|
|
2058
|
+
fromSelection: boolean;
|
|
2013
2059
|
} & import("../types").ActiveTool;
|
|
2014
2060
|
penMode: boolean;
|
|
2015
2061
|
penDetected: boolean;
|
|
@@ -2019,16 +2065,16 @@ export declare const actionChangeFontFamily: {
|
|
|
2019
2065
|
exportScale: number;
|
|
2020
2066
|
currentItemStrokeColor: string;
|
|
2021
2067
|
currentItemBackgroundColor: string;
|
|
2022
|
-
currentItemFillStyle: import("
|
|
2068
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2023
2069
|
currentItemStrokeWidth: number;
|
|
2024
|
-
currentItemStrokeStyle: import("
|
|
2070
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2025
2071
|
currentItemRoughness: number;
|
|
2026
2072
|
currentItemOpacity: number;
|
|
2027
2073
|
currentItemFontSize: number;
|
|
2028
2074
|
currentItemTextAlign: string;
|
|
2029
2075
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2030
2076
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2031
|
-
currentItemRoundness: import("
|
|
2077
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2032
2078
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2033
2079
|
viewBackgroundColor: string;
|
|
2034
2080
|
scrollX: number;
|
|
@@ -2041,7 +2087,7 @@ export declare const actionChangeFontFamily: {
|
|
|
2041
2087
|
zoom: Readonly<{
|
|
2042
2088
|
value: import("../types").NormalizedZoomValue;
|
|
2043
2089
|
}>;
|
|
2044
|
-
openMenu: "
|
|
2090
|
+
openMenu: "shape" | "canvas" | null;
|
|
2045
2091
|
openSidebar: {
|
|
2046
2092
|
name: string;
|
|
2047
2093
|
tab?: string | undefined;
|
|
@@ -2058,7 +2104,7 @@ export declare const actionChangeFontFamily: {
|
|
|
2058
2104
|
sourceElementId: string;
|
|
2059
2105
|
} | null;
|
|
2060
2106
|
defaultSidebarDockedPreference: boolean;
|
|
2061
|
-
lastPointerDownWith: import("
|
|
2107
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2062
2108
|
selectedElementIds: Readonly<{
|
|
2063
2109
|
[id: string]: true;
|
|
2064
2110
|
}>;
|
|
@@ -2076,7 +2122,7 @@ export declare const actionChangeFontFamily: {
|
|
|
2076
2122
|
duration?: number | undefined;
|
|
2077
2123
|
} | null;
|
|
2078
2124
|
zenModeEnabled: boolean;
|
|
2079
|
-
theme: import("
|
|
2125
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2080
2126
|
gridSize: number;
|
|
2081
2127
|
gridStep: number;
|
|
2082
2128
|
gridModeEnabled: boolean;
|
|
@@ -2097,7 +2143,7 @@ export declare const actionChangeFontFamily: {
|
|
|
2097
2143
|
[id: string]: true;
|
|
2098
2144
|
}> | undefined;
|
|
2099
2145
|
username?: string | null | undefined;
|
|
2100
|
-
userState?: import("
|
|
2146
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2101
2147
|
color?: {
|
|
2102
2148
|
background: string;
|
|
2103
2149
|
stroke: string;
|
|
@@ -2114,7 +2160,7 @@ export declare const actionChangeFontFamily: {
|
|
|
2114
2160
|
open: boolean;
|
|
2115
2161
|
panels: number;
|
|
2116
2162
|
};
|
|
2117
|
-
currentChartType: import("
|
|
2163
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2118
2164
|
pasteDialog: {
|
|
2119
2165
|
shown: false;
|
|
2120
2166
|
data: null;
|
|
@@ -2123,13 +2169,13 @@ export declare const actionChangeFontFamily: {
|
|
|
2123
2169
|
data: import("../charts").Spreadsheet;
|
|
2124
2170
|
};
|
|
2125
2171
|
pendingImageElementId: string | null;
|
|
2126
|
-
showHyperlinkPopup: false | "
|
|
2172
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2127
2173
|
linkOpacity: number;
|
|
2128
2174
|
trayModeEnabled: boolean;
|
|
2129
2175
|
colorPalette?: {
|
|
2130
|
-
canvasBackground: import("
|
|
2131
|
-
elementBackground: import("
|
|
2132
|
-
elementStroke: import("
|
|
2176
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2177
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2178
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
2133
2179
|
topPicks: {
|
|
2134
2180
|
canvasBackground: [string, string, string, string, string];
|
|
2135
2181
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2146,6 +2192,10 @@ export declare const actionChangeFontFamily: {
|
|
|
2146
2192
|
Bold: string;
|
|
2147
2193
|
Regular: string;
|
|
2148
2194
|
};
|
|
2195
|
+
gridDirection: {
|
|
2196
|
+
horizontal: boolean;
|
|
2197
|
+
vertical: boolean;
|
|
2198
|
+
};
|
|
2149
2199
|
highlightSearchResult: boolean;
|
|
2150
2200
|
dynamicStyle: {
|
|
2151
2201
|
[x: string]: string;
|
|
@@ -2188,7 +2238,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2188
2238
|
name: "changeTextAlign";
|
|
2189
2239
|
label: string;
|
|
2190
2240
|
trackEvent: false;
|
|
2191
|
-
perform: (elements: readonly import("
|
|
2241
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2192
2242
|
elements: ExcalidrawElement[];
|
|
2193
2243
|
appState: {
|
|
2194
2244
|
currentItemTextAlign: any;
|
|
@@ -2201,17 +2251,17 @@ export declare const actionChangeTextAlign: {
|
|
|
2201
2251
|
isLoading: boolean;
|
|
2202
2252
|
errorMessage: import("react").ReactNode;
|
|
2203
2253
|
activeEmbeddable: {
|
|
2204
|
-
element: import("
|
|
2254
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2205
2255
|
state: "active" | "hover";
|
|
2206
2256
|
} | null;
|
|
2207
|
-
newElement: import("
|
|
2208
|
-
resizingElement: import("
|
|
2209
|
-
multiElement: import("
|
|
2210
|
-
selectionElement: import("
|
|
2257
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2258
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2259
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2260
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2211
2261
|
isBindingEnabled: boolean;
|
|
2212
|
-
startBoundElement: import("
|
|
2213
|
-
suggestedBindings: import("
|
|
2214
|
-
frameToHighlight: import("
|
|
2262
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2263
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2264
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2215
2265
|
frameRendering: {
|
|
2216
2266
|
enabled: boolean;
|
|
2217
2267
|
name: boolean;
|
|
@@ -2219,12 +2269,13 @@ export declare const actionChangeTextAlign: {
|
|
|
2219
2269
|
clip: boolean;
|
|
2220
2270
|
};
|
|
2221
2271
|
editingFrame: string | null;
|
|
2222
|
-
elementsToHighlight: import("
|
|
2223
|
-
editingTextElement: import("
|
|
2272
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2273
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2224
2274
|
editingLinearElement: LinearElementEditor | null;
|
|
2225
2275
|
activeTool: {
|
|
2226
2276
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2227
2277
|
locked: boolean;
|
|
2278
|
+
fromSelection: boolean;
|
|
2228
2279
|
} & import("../types").ActiveTool;
|
|
2229
2280
|
penMode: boolean;
|
|
2230
2281
|
penDetected: boolean;
|
|
@@ -2234,9 +2285,9 @@ export declare const actionChangeTextAlign: {
|
|
|
2234
2285
|
exportScale: number;
|
|
2235
2286
|
currentItemStrokeColor: string;
|
|
2236
2287
|
currentItemBackgroundColor: string;
|
|
2237
|
-
currentItemFillStyle: import("
|
|
2288
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2238
2289
|
currentItemStrokeWidth: number;
|
|
2239
|
-
currentItemStrokeStyle: import("
|
|
2290
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2240
2291
|
currentItemRoughness: number;
|
|
2241
2292
|
currentItemOpacity: number;
|
|
2242
2293
|
currentItemFontFamily: number;
|
|
@@ -2244,7 +2295,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2244
2295
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2245
2296
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2246
2297
|
currentHoveredFontFamily: number | null;
|
|
2247
|
-
currentItemRoundness: import("
|
|
2298
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2248
2299
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2249
2300
|
viewBackgroundColor: string;
|
|
2250
2301
|
scrollX: number;
|
|
@@ -2257,7 +2308,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2257
2308
|
zoom: Readonly<{
|
|
2258
2309
|
value: import("../types").NormalizedZoomValue;
|
|
2259
2310
|
}>;
|
|
2260
|
-
openMenu: "
|
|
2311
|
+
openMenu: "shape" | "canvas" | null;
|
|
2261
2312
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2262
2313
|
openSidebar: {
|
|
2263
2314
|
name: string;
|
|
@@ -2275,7 +2326,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2275
2326
|
sourceElementId: string;
|
|
2276
2327
|
} | null;
|
|
2277
2328
|
defaultSidebarDockedPreference: boolean;
|
|
2278
|
-
lastPointerDownWith: import("
|
|
2329
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2279
2330
|
selectedElementIds: Readonly<{
|
|
2280
2331
|
[id: string]: true;
|
|
2281
2332
|
}>;
|
|
@@ -2293,7 +2344,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2293
2344
|
duration?: number | undefined;
|
|
2294
2345
|
} | null;
|
|
2295
2346
|
zenModeEnabled: boolean;
|
|
2296
|
-
theme: import("
|
|
2347
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2297
2348
|
gridSize: number;
|
|
2298
2349
|
gridStep: number;
|
|
2299
2350
|
gridModeEnabled: boolean;
|
|
@@ -2314,7 +2365,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2314
2365
|
[id: string]: true;
|
|
2315
2366
|
}> | undefined;
|
|
2316
2367
|
username?: string | null | undefined;
|
|
2317
|
-
userState?: import("
|
|
2368
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2318
2369
|
color?: {
|
|
2319
2370
|
background: string;
|
|
2320
2371
|
stroke: string;
|
|
@@ -2331,7 +2382,7 @@ export declare const actionChangeTextAlign: {
|
|
|
2331
2382
|
open: boolean;
|
|
2332
2383
|
panels: number;
|
|
2333
2384
|
};
|
|
2334
|
-
currentChartType: import("
|
|
2385
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2335
2386
|
pasteDialog: {
|
|
2336
2387
|
shown: false;
|
|
2337
2388
|
data: null;
|
|
@@ -2340,13 +2391,13 @@ export declare const actionChangeTextAlign: {
|
|
|
2340
2391
|
data: import("../charts").Spreadsheet;
|
|
2341
2392
|
};
|
|
2342
2393
|
pendingImageElementId: string | null;
|
|
2343
|
-
showHyperlinkPopup: false | "
|
|
2394
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2344
2395
|
linkOpacity: number;
|
|
2345
2396
|
trayModeEnabled: boolean;
|
|
2346
2397
|
colorPalette?: {
|
|
2347
|
-
canvasBackground: import("
|
|
2348
|
-
elementBackground: import("
|
|
2349
|
-
elementStroke: import("
|
|
2398
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2399
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2400
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
2350
2401
|
topPicks: {
|
|
2351
2402
|
canvasBackground: [string, string, string, string, string];
|
|
2352
2403
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2363,6 +2414,10 @@ export declare const actionChangeTextAlign: {
|
|
|
2363
2414
|
Bold: string;
|
|
2364
2415
|
Regular: string;
|
|
2365
2416
|
};
|
|
2417
|
+
gridDirection: {
|
|
2418
|
+
horizontal: boolean;
|
|
2419
|
+
vertical: boolean;
|
|
2420
|
+
};
|
|
2366
2421
|
highlightSearchResult: boolean;
|
|
2367
2422
|
dynamicStyle: {
|
|
2368
2423
|
[x: string]: string;
|
|
@@ -2407,7 +2462,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2407
2462
|
trackEvent: {
|
|
2408
2463
|
category: "element";
|
|
2409
2464
|
};
|
|
2410
|
-
perform: (elements: readonly import("
|
|
2465
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
2411
2466
|
elements: ExcalidrawElement[];
|
|
2412
2467
|
appState: {
|
|
2413
2468
|
contextMenu: {
|
|
@@ -2419,17 +2474,17 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2419
2474
|
isLoading: boolean;
|
|
2420
2475
|
errorMessage: import("react").ReactNode;
|
|
2421
2476
|
activeEmbeddable: {
|
|
2422
|
-
element: import("
|
|
2477
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2423
2478
|
state: "active" | "hover";
|
|
2424
2479
|
} | null;
|
|
2425
|
-
newElement: import("
|
|
2426
|
-
resizingElement: import("
|
|
2427
|
-
multiElement: import("
|
|
2428
|
-
selectionElement: import("
|
|
2480
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2481
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2482
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2483
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2429
2484
|
isBindingEnabled: boolean;
|
|
2430
|
-
startBoundElement: import("
|
|
2431
|
-
suggestedBindings: import("
|
|
2432
|
-
frameToHighlight: import("
|
|
2485
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2486
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2487
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2433
2488
|
frameRendering: {
|
|
2434
2489
|
enabled: boolean;
|
|
2435
2490
|
name: boolean;
|
|
@@ -2437,12 +2492,13 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2437
2492
|
clip: boolean;
|
|
2438
2493
|
};
|
|
2439
2494
|
editingFrame: string | null;
|
|
2440
|
-
elementsToHighlight: import("
|
|
2441
|
-
editingTextElement: import("
|
|
2495
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2496
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2442
2497
|
editingLinearElement: LinearElementEditor | null;
|
|
2443
2498
|
activeTool: {
|
|
2444
2499
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2445
2500
|
locked: boolean;
|
|
2501
|
+
fromSelection: boolean;
|
|
2446
2502
|
} & import("../types").ActiveTool;
|
|
2447
2503
|
penMode: boolean;
|
|
2448
2504
|
penDetected: boolean;
|
|
@@ -2452,9 +2508,9 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2452
2508
|
exportScale: number;
|
|
2453
2509
|
currentItemStrokeColor: string;
|
|
2454
2510
|
currentItemBackgroundColor: string;
|
|
2455
|
-
currentItemFillStyle: import("
|
|
2511
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2456
2512
|
currentItemStrokeWidth: number;
|
|
2457
|
-
currentItemStrokeStyle: import("
|
|
2513
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2458
2514
|
currentItemRoughness: number;
|
|
2459
2515
|
currentItemOpacity: number;
|
|
2460
2516
|
currentItemFontFamily: number;
|
|
@@ -2463,7 +2519,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2463
2519
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2464
2520
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2465
2521
|
currentHoveredFontFamily: number | null;
|
|
2466
|
-
currentItemRoundness: import("
|
|
2522
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2467
2523
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2468
2524
|
viewBackgroundColor: string;
|
|
2469
2525
|
scrollX: number;
|
|
@@ -2476,7 +2532,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2476
2532
|
zoom: Readonly<{
|
|
2477
2533
|
value: import("../types").NormalizedZoomValue;
|
|
2478
2534
|
}>;
|
|
2479
|
-
openMenu: "
|
|
2535
|
+
openMenu: "shape" | "canvas" | null;
|
|
2480
2536
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2481
2537
|
openSidebar: {
|
|
2482
2538
|
name: string;
|
|
@@ -2494,7 +2550,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2494
2550
|
sourceElementId: string;
|
|
2495
2551
|
} | null;
|
|
2496
2552
|
defaultSidebarDockedPreference: boolean;
|
|
2497
|
-
lastPointerDownWith: import("
|
|
2553
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2498
2554
|
selectedElementIds: Readonly<{
|
|
2499
2555
|
[id: string]: true;
|
|
2500
2556
|
}>;
|
|
@@ -2512,7 +2568,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2512
2568
|
duration?: number | undefined;
|
|
2513
2569
|
} | null;
|
|
2514
2570
|
zenModeEnabled: boolean;
|
|
2515
|
-
theme: import("
|
|
2571
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2516
2572
|
gridSize: number;
|
|
2517
2573
|
gridStep: number;
|
|
2518
2574
|
gridModeEnabled: boolean;
|
|
@@ -2533,7 +2589,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2533
2589
|
[id: string]: true;
|
|
2534
2590
|
}> | undefined;
|
|
2535
2591
|
username?: string | null | undefined;
|
|
2536
|
-
userState?: import("
|
|
2592
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2537
2593
|
color?: {
|
|
2538
2594
|
background: string;
|
|
2539
2595
|
stroke: string;
|
|
@@ -2550,7 +2606,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2550
2606
|
open: boolean;
|
|
2551
2607
|
panels: number;
|
|
2552
2608
|
};
|
|
2553
|
-
currentChartType: import("
|
|
2609
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2554
2610
|
pasteDialog: {
|
|
2555
2611
|
shown: false;
|
|
2556
2612
|
data: null;
|
|
@@ -2559,13 +2615,13 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2559
2615
|
data: import("../charts").Spreadsheet;
|
|
2560
2616
|
};
|
|
2561
2617
|
pendingImageElementId: string | null;
|
|
2562
|
-
showHyperlinkPopup: false | "
|
|
2618
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2563
2619
|
linkOpacity: number;
|
|
2564
2620
|
trayModeEnabled: boolean;
|
|
2565
2621
|
colorPalette?: {
|
|
2566
|
-
canvasBackground: import("
|
|
2567
|
-
elementBackground: import("
|
|
2568
|
-
elementStroke: import("
|
|
2622
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2623
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2624
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
2569
2625
|
topPicks: {
|
|
2570
2626
|
canvasBackground: [string, string, string, string, string];
|
|
2571
2627
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2582,6 +2638,10 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2582
2638
|
Bold: string;
|
|
2583
2639
|
Regular: string;
|
|
2584
2640
|
};
|
|
2641
|
+
gridDirection: {
|
|
2642
|
+
horizontal: boolean;
|
|
2643
|
+
vertical: boolean;
|
|
2644
|
+
};
|
|
2585
2645
|
highlightSearchResult: boolean;
|
|
2586
2646
|
dynamicStyle: {
|
|
2587
2647
|
[x: string]: string;
|
|
@@ -2624,7 +2684,7 @@ export declare const actionChangeRoundness: {
|
|
|
2624
2684
|
name: "changeRoundness";
|
|
2625
2685
|
label: string;
|
|
2626
2686
|
trackEvent: false;
|
|
2627
|
-
perform: (elements: readonly import("
|
|
2687
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
2628
2688
|
elements: ExcalidrawElement[];
|
|
2629
2689
|
appState: {
|
|
2630
2690
|
currentItemRoundness: any;
|
|
@@ -2637,17 +2697,17 @@ export declare const actionChangeRoundness: {
|
|
|
2637
2697
|
isLoading: boolean;
|
|
2638
2698
|
errorMessage: import("react").ReactNode;
|
|
2639
2699
|
activeEmbeddable: {
|
|
2640
|
-
element: import("
|
|
2700
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2641
2701
|
state: "active" | "hover";
|
|
2642
2702
|
} | null;
|
|
2643
|
-
newElement: import("
|
|
2644
|
-
resizingElement: import("
|
|
2645
|
-
multiElement: import("
|
|
2646
|
-
selectionElement: import("
|
|
2703
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2704
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2705
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2706
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2647
2707
|
isBindingEnabled: boolean;
|
|
2648
|
-
startBoundElement: import("
|
|
2649
|
-
suggestedBindings: import("
|
|
2650
|
-
frameToHighlight: import("
|
|
2708
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2709
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2710
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2651
2711
|
frameRendering: {
|
|
2652
2712
|
enabled: boolean;
|
|
2653
2713
|
name: boolean;
|
|
@@ -2655,12 +2715,13 @@ export declare const actionChangeRoundness: {
|
|
|
2655
2715
|
clip: boolean;
|
|
2656
2716
|
};
|
|
2657
2717
|
editingFrame: string | null;
|
|
2658
|
-
elementsToHighlight: import("
|
|
2659
|
-
editingTextElement: import("
|
|
2718
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2719
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2660
2720
|
editingLinearElement: LinearElementEditor | null;
|
|
2661
2721
|
activeTool: {
|
|
2662
2722
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2663
2723
|
locked: boolean;
|
|
2724
|
+
fromSelection: boolean;
|
|
2664
2725
|
} & import("../types").ActiveTool;
|
|
2665
2726
|
penMode: boolean;
|
|
2666
2727
|
penDetected: boolean;
|
|
@@ -2670,9 +2731,9 @@ export declare const actionChangeRoundness: {
|
|
|
2670
2731
|
exportScale: number;
|
|
2671
2732
|
currentItemStrokeColor: string;
|
|
2672
2733
|
currentItemBackgroundColor: string;
|
|
2673
|
-
currentItemFillStyle: import("
|
|
2734
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2674
2735
|
currentItemStrokeWidth: number;
|
|
2675
|
-
currentItemStrokeStyle: import("
|
|
2736
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2676
2737
|
currentItemRoughness: number;
|
|
2677
2738
|
currentItemOpacity: number;
|
|
2678
2739
|
currentItemFontFamily: number;
|
|
@@ -2693,7 +2754,7 @@ export declare const actionChangeRoundness: {
|
|
|
2693
2754
|
zoom: Readonly<{
|
|
2694
2755
|
value: import("../types").NormalizedZoomValue;
|
|
2695
2756
|
}>;
|
|
2696
|
-
openMenu: "
|
|
2757
|
+
openMenu: "shape" | "canvas" | null;
|
|
2697
2758
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2698
2759
|
openSidebar: {
|
|
2699
2760
|
name: string;
|
|
@@ -2711,7 +2772,7 @@ export declare const actionChangeRoundness: {
|
|
|
2711
2772
|
sourceElementId: string;
|
|
2712
2773
|
} | null;
|
|
2713
2774
|
defaultSidebarDockedPreference: boolean;
|
|
2714
|
-
lastPointerDownWith: import("
|
|
2775
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2715
2776
|
selectedElementIds: Readonly<{
|
|
2716
2777
|
[id: string]: true;
|
|
2717
2778
|
}>;
|
|
@@ -2729,7 +2790,7 @@ export declare const actionChangeRoundness: {
|
|
|
2729
2790
|
duration?: number | undefined;
|
|
2730
2791
|
} | null;
|
|
2731
2792
|
zenModeEnabled: boolean;
|
|
2732
|
-
theme: import("
|
|
2793
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2733
2794
|
gridSize: number;
|
|
2734
2795
|
gridStep: number;
|
|
2735
2796
|
gridModeEnabled: boolean;
|
|
@@ -2750,7 +2811,7 @@ export declare const actionChangeRoundness: {
|
|
|
2750
2811
|
[id: string]: true;
|
|
2751
2812
|
}> | undefined;
|
|
2752
2813
|
username?: string | null | undefined;
|
|
2753
|
-
userState?: import("
|
|
2814
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2754
2815
|
color?: {
|
|
2755
2816
|
background: string;
|
|
2756
2817
|
stroke: string;
|
|
@@ -2767,7 +2828,7 @@ export declare const actionChangeRoundness: {
|
|
|
2767
2828
|
open: boolean;
|
|
2768
2829
|
panels: number;
|
|
2769
2830
|
};
|
|
2770
|
-
currentChartType: import("
|
|
2831
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2771
2832
|
pasteDialog: {
|
|
2772
2833
|
shown: false;
|
|
2773
2834
|
data: null;
|
|
@@ -2776,13 +2837,13 @@ export declare const actionChangeRoundness: {
|
|
|
2776
2837
|
data: import("../charts").Spreadsheet;
|
|
2777
2838
|
};
|
|
2778
2839
|
pendingImageElementId: string | null;
|
|
2779
|
-
showHyperlinkPopup: false | "
|
|
2840
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
2780
2841
|
linkOpacity: number;
|
|
2781
2842
|
trayModeEnabled: boolean;
|
|
2782
2843
|
colorPalette?: {
|
|
2783
|
-
canvasBackground: import("
|
|
2784
|
-
elementBackground: import("
|
|
2785
|
-
elementStroke: import("
|
|
2844
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2845
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
2846
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
2786
2847
|
topPicks: {
|
|
2787
2848
|
canvasBackground: [string, string, string, string, string];
|
|
2788
2849
|
elementStroke: [string, string, string, string, string];
|
|
@@ -2799,6 +2860,10 @@ export declare const actionChangeRoundness: {
|
|
|
2799
2860
|
Bold: string;
|
|
2800
2861
|
Regular: string;
|
|
2801
2862
|
};
|
|
2863
|
+
gridDirection: {
|
|
2864
|
+
horizontal: boolean;
|
|
2865
|
+
vertical: boolean;
|
|
2866
|
+
};
|
|
2802
2867
|
highlightSearchResult: boolean;
|
|
2803
2868
|
dynamicStyle: {
|
|
2804
2869
|
[x: string]: string;
|
|
@@ -2841,7 +2906,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2841
2906
|
name: "changeArrowhead";
|
|
2842
2907
|
label: string;
|
|
2843
2908
|
trackEvent: false;
|
|
2844
|
-
perform: (elements: readonly import("
|
|
2909
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: {
|
|
2845
2910
|
position: "start" | "end";
|
|
2846
2911
|
type: Arrowhead;
|
|
2847
2912
|
}) => {
|
|
@@ -2856,17 +2921,17 @@ export declare const actionChangeArrowhead: {
|
|
|
2856
2921
|
isLoading: boolean;
|
|
2857
2922
|
errorMessage: import("react").ReactNode;
|
|
2858
2923
|
activeEmbeddable: {
|
|
2859
|
-
element: import("
|
|
2924
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
2860
2925
|
state: "active" | "hover";
|
|
2861
2926
|
} | null;
|
|
2862
|
-
newElement: import("
|
|
2863
|
-
resizingElement: import("
|
|
2864
|
-
multiElement: import("
|
|
2865
|
-
selectionElement: import("
|
|
2927
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2928
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2929
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
2930
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2866
2931
|
isBindingEnabled: boolean;
|
|
2867
|
-
startBoundElement: import("
|
|
2868
|
-
suggestedBindings: import("
|
|
2869
|
-
frameToHighlight: import("
|
|
2932
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
2933
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
2934
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2870
2935
|
frameRendering: {
|
|
2871
2936
|
enabled: boolean;
|
|
2872
2937
|
name: boolean;
|
|
@@ -2874,12 +2939,13 @@ export declare const actionChangeArrowhead: {
|
|
|
2874
2939
|
clip: boolean;
|
|
2875
2940
|
};
|
|
2876
2941
|
editingFrame: string | null;
|
|
2877
|
-
elementsToHighlight: import("
|
|
2878
|
-
editingTextElement: import("
|
|
2942
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
2943
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2879
2944
|
editingLinearElement: LinearElementEditor | null;
|
|
2880
2945
|
activeTool: {
|
|
2881
2946
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
2882
2947
|
locked: boolean;
|
|
2948
|
+
fromSelection: boolean;
|
|
2883
2949
|
} & import("../types").ActiveTool;
|
|
2884
2950
|
penMode: boolean;
|
|
2885
2951
|
penDetected: boolean;
|
|
@@ -2889,9 +2955,9 @@ export declare const actionChangeArrowhead: {
|
|
|
2889
2955
|
exportScale: number;
|
|
2890
2956
|
currentItemStrokeColor: string;
|
|
2891
2957
|
currentItemBackgroundColor: string;
|
|
2892
|
-
currentItemFillStyle: import("
|
|
2958
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
2893
2959
|
currentItemStrokeWidth: number;
|
|
2894
|
-
currentItemStrokeStyle: import("
|
|
2960
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
2895
2961
|
currentItemRoughness: number;
|
|
2896
2962
|
currentItemOpacity: number;
|
|
2897
2963
|
currentItemFontFamily: number;
|
|
@@ -2900,7 +2966,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2900
2966
|
currentItemStartArrowhead: Arrowhead | null;
|
|
2901
2967
|
currentItemEndArrowhead: Arrowhead | null;
|
|
2902
2968
|
currentHoveredFontFamily: number | null;
|
|
2903
|
-
currentItemRoundness: import("
|
|
2969
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2904
2970
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
2905
2971
|
viewBackgroundColor: string;
|
|
2906
2972
|
scrollX: number;
|
|
@@ -2913,7 +2979,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2913
2979
|
zoom: Readonly<{
|
|
2914
2980
|
value: import("../types").NormalizedZoomValue;
|
|
2915
2981
|
}>;
|
|
2916
|
-
openMenu: "
|
|
2982
|
+
openMenu: "shape" | "canvas" | null;
|
|
2917
2983
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
2918
2984
|
openSidebar: {
|
|
2919
2985
|
name: string;
|
|
@@ -2931,7 +2997,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2931
2997
|
sourceElementId: string;
|
|
2932
2998
|
} | null;
|
|
2933
2999
|
defaultSidebarDockedPreference: boolean;
|
|
2934
|
-
lastPointerDownWith: import("
|
|
3000
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2935
3001
|
selectedElementIds: Readonly<{
|
|
2936
3002
|
[id: string]: true;
|
|
2937
3003
|
}>;
|
|
@@ -2949,7 +3015,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2949
3015
|
duration?: number | undefined;
|
|
2950
3016
|
} | null;
|
|
2951
3017
|
zenModeEnabled: boolean;
|
|
2952
|
-
theme: import("
|
|
3018
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
2953
3019
|
gridSize: number;
|
|
2954
3020
|
gridStep: number;
|
|
2955
3021
|
gridModeEnabled: boolean;
|
|
@@ -2970,7 +3036,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2970
3036
|
[id: string]: true;
|
|
2971
3037
|
}> | undefined;
|
|
2972
3038
|
username?: string | null | undefined;
|
|
2973
|
-
userState?: import("
|
|
3039
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2974
3040
|
color?: {
|
|
2975
3041
|
background: string;
|
|
2976
3042
|
stroke: string;
|
|
@@ -2987,7 +3053,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2987
3053
|
open: boolean;
|
|
2988
3054
|
panels: number;
|
|
2989
3055
|
};
|
|
2990
|
-
currentChartType: import("
|
|
3056
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
2991
3057
|
pasteDialog: {
|
|
2992
3058
|
shown: false;
|
|
2993
3059
|
data: null;
|
|
@@ -2996,13 +3062,13 @@ export declare const actionChangeArrowhead: {
|
|
|
2996
3062
|
data: import("../charts").Spreadsheet;
|
|
2997
3063
|
};
|
|
2998
3064
|
pendingImageElementId: string | null;
|
|
2999
|
-
showHyperlinkPopup: false | "
|
|
3065
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
3000
3066
|
linkOpacity: number;
|
|
3001
3067
|
trayModeEnabled: boolean;
|
|
3002
3068
|
colorPalette?: {
|
|
3003
|
-
canvasBackground: import("
|
|
3004
|
-
elementBackground: import("
|
|
3005
|
-
elementStroke: import("
|
|
3069
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3070
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3071
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
3006
3072
|
topPicks: {
|
|
3007
3073
|
canvasBackground: [string, string, string, string, string];
|
|
3008
3074
|
elementStroke: [string, string, string, string, string];
|
|
@@ -3019,6 +3085,10 @@ export declare const actionChangeArrowhead: {
|
|
|
3019
3085
|
Bold: string;
|
|
3020
3086
|
Regular: string;
|
|
3021
3087
|
};
|
|
3088
|
+
gridDirection: {
|
|
3089
|
+
horizontal: boolean;
|
|
3090
|
+
vertical: boolean;
|
|
3091
|
+
};
|
|
3022
3092
|
highlightSearchResult: boolean;
|
|
3023
3093
|
dynamicStyle: {
|
|
3024
3094
|
[x: string]: string;
|
|
@@ -3061,7 +3131,7 @@ export declare const actionChangeArrowType: {
|
|
|
3061
3131
|
name: "changeArrowType";
|
|
3062
3132
|
label: string;
|
|
3063
3133
|
trackEvent: false;
|
|
3064
|
-
perform: (elements: readonly import("
|
|
3134
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any, app: AppClassProperties) => {
|
|
3065
3135
|
elements: ExcalidrawElement[];
|
|
3066
3136
|
appState: {
|
|
3067
3137
|
currentItemArrowType: any;
|
|
@@ -3074,17 +3144,17 @@ export declare const actionChangeArrowType: {
|
|
|
3074
3144
|
isLoading: boolean;
|
|
3075
3145
|
errorMessage: import("react").ReactNode;
|
|
3076
3146
|
activeEmbeddable: {
|
|
3077
|
-
element: import("
|
|
3147
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
3078
3148
|
state: "active" | "hover";
|
|
3079
3149
|
} | null;
|
|
3080
|
-
newElement: import("
|
|
3081
|
-
resizingElement: import("
|
|
3082
|
-
multiElement: import("
|
|
3083
|
-
selectionElement: import("
|
|
3150
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
3151
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3152
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
3153
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3084
3154
|
isBindingEnabled: boolean;
|
|
3085
|
-
startBoundElement: import("
|
|
3086
|
-
suggestedBindings: import("
|
|
3087
|
-
frameToHighlight: import("
|
|
3155
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawBindableElement> | null;
|
|
3156
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
3157
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
3088
3158
|
frameRendering: {
|
|
3089
3159
|
enabled: boolean;
|
|
3090
3160
|
name: boolean;
|
|
@@ -3092,12 +3162,13 @@ export declare const actionChangeArrowType: {
|
|
|
3092
3162
|
clip: boolean;
|
|
3093
3163
|
};
|
|
3094
3164
|
editingFrame: string | null;
|
|
3095
|
-
elementsToHighlight: import("
|
|
3096
|
-
editingTextElement: import("
|
|
3165
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
3166
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
3097
3167
|
editingLinearElement: LinearElementEditor | null;
|
|
3098
3168
|
activeTool: {
|
|
3099
3169
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
3100
3170
|
locked: boolean;
|
|
3171
|
+
fromSelection: boolean;
|
|
3101
3172
|
} & import("../types").ActiveTool;
|
|
3102
3173
|
penMode: boolean;
|
|
3103
3174
|
penDetected: boolean;
|
|
@@ -3107,9 +3178,9 @@ export declare const actionChangeArrowType: {
|
|
|
3107
3178
|
exportScale: number;
|
|
3108
3179
|
currentItemStrokeColor: string;
|
|
3109
3180
|
currentItemBackgroundColor: string;
|
|
3110
|
-
currentItemFillStyle: import("
|
|
3181
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
3111
3182
|
currentItemStrokeWidth: number;
|
|
3112
|
-
currentItemStrokeStyle: import("
|
|
3183
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
3113
3184
|
currentItemRoughness: number;
|
|
3114
3185
|
currentItemOpacity: number;
|
|
3115
3186
|
currentItemFontFamily: number;
|
|
@@ -3118,7 +3189,7 @@ export declare const actionChangeArrowType: {
|
|
|
3118
3189
|
currentItemStartArrowhead: Arrowhead | null;
|
|
3119
3190
|
currentItemEndArrowhead: Arrowhead | null;
|
|
3120
3191
|
currentHoveredFontFamily: number | null;
|
|
3121
|
-
currentItemRoundness: import("
|
|
3192
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
3122
3193
|
viewBackgroundColor: string;
|
|
3123
3194
|
scrollX: number;
|
|
3124
3195
|
scrollY: number;
|
|
@@ -3130,7 +3201,7 @@ export declare const actionChangeArrowType: {
|
|
|
3130
3201
|
zoom: Readonly<{
|
|
3131
3202
|
value: import("../types").NormalizedZoomValue;
|
|
3132
3203
|
}>;
|
|
3133
|
-
openMenu: "
|
|
3204
|
+
openMenu: "shape" | "canvas" | null;
|
|
3134
3205
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
3135
3206
|
openSidebar: {
|
|
3136
3207
|
name: string;
|
|
@@ -3148,7 +3219,7 @@ export declare const actionChangeArrowType: {
|
|
|
3148
3219
|
sourceElementId: string;
|
|
3149
3220
|
} | null;
|
|
3150
3221
|
defaultSidebarDockedPreference: boolean;
|
|
3151
|
-
lastPointerDownWith: import("
|
|
3222
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
3152
3223
|
selectedElementIds: Readonly<{
|
|
3153
3224
|
[id: string]: true;
|
|
3154
3225
|
}>;
|
|
@@ -3166,7 +3237,7 @@ export declare const actionChangeArrowType: {
|
|
|
3166
3237
|
duration?: number | undefined;
|
|
3167
3238
|
} | null;
|
|
3168
3239
|
zenModeEnabled: boolean;
|
|
3169
|
-
theme: import("
|
|
3240
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
3170
3241
|
gridSize: number;
|
|
3171
3242
|
gridStep: number;
|
|
3172
3243
|
gridModeEnabled: boolean;
|
|
@@ -3187,7 +3258,7 @@ export declare const actionChangeArrowType: {
|
|
|
3187
3258
|
[id: string]: true;
|
|
3188
3259
|
}> | undefined;
|
|
3189
3260
|
username?: string | null | undefined;
|
|
3190
|
-
userState?: import("
|
|
3261
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
3191
3262
|
color?: {
|
|
3192
3263
|
background: string;
|
|
3193
3264
|
stroke: string;
|
|
@@ -3204,7 +3275,7 @@ export declare const actionChangeArrowType: {
|
|
|
3204
3275
|
open: boolean;
|
|
3205
3276
|
panels: number;
|
|
3206
3277
|
};
|
|
3207
|
-
currentChartType: import("
|
|
3278
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
3208
3279
|
pasteDialog: {
|
|
3209
3280
|
shown: false;
|
|
3210
3281
|
data: null;
|
|
@@ -3213,13 +3284,13 @@ export declare const actionChangeArrowType: {
|
|
|
3213
3284
|
data: import("../charts").Spreadsheet;
|
|
3214
3285
|
};
|
|
3215
3286
|
pendingImageElementId: string | null;
|
|
3216
|
-
showHyperlinkPopup: false | "
|
|
3287
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
3217
3288
|
linkOpacity: number;
|
|
3218
3289
|
trayModeEnabled: boolean;
|
|
3219
3290
|
colorPalette?: {
|
|
3220
|
-
canvasBackground: import("
|
|
3221
|
-
elementBackground: import("
|
|
3222
|
-
elementStroke: import("
|
|
3291
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3292
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
3293
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
3223
3294
|
topPicks: {
|
|
3224
3295
|
canvasBackground: [string, string, string, string, string];
|
|
3225
3296
|
elementStroke: [string, string, string, string, string];
|
|
@@ -3236,6 +3307,10 @@ export declare const actionChangeArrowType: {
|
|
|
3236
3307
|
Bold: string;
|
|
3237
3308
|
Regular: string;
|
|
3238
3309
|
};
|
|
3310
|
+
gridDirection: {
|
|
3311
|
+
horizontal: boolean;
|
|
3312
|
+
vertical: boolean;
|
|
3313
|
+
};
|
|
3239
3314
|
highlightSearchResult: boolean;
|
|
3240
3315
|
dynamicStyle: {
|
|
3241
3316
|
[x: string]: string;
|