@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,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "
|
|
1
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
2
|
import type { AppClassProperties, AppState } from "../types";
|
|
3
3
|
export declare const distributeHorizontally: {
|
|
4
4
|
name: "distributeHorizontally";
|
|
@@ -6,7 +6,7 @@ export declare const distributeHorizontally: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
10
10
|
appState: Readonly<AppState>;
|
|
11
11
|
elements: ExcalidrawElement[];
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -22,7 +22,7 @@ export declare const distributeVertically: {
|
|
|
22
22
|
trackEvent: {
|
|
23
23
|
category: "element";
|
|
24
24
|
};
|
|
25
|
-
perform: (elements: readonly import("
|
|
25
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
26
26
|
appState: Readonly<AppState>;
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import type { AppState } from "../types";
|
|
3
1
|
export declare const actionDuplicateSelection: {
|
|
4
2
|
name: "duplicateSelection";
|
|
5
3
|
label: string;
|
|
@@ -7,12 +5,10 @@ export declare const actionDuplicateSelection: {
|
|
|
7
5
|
trackEvent: {
|
|
8
6
|
category: "element";
|
|
9
7
|
};
|
|
10
|
-
perform: (elements: readonly import("
|
|
8
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: any, app: import("../types").AppClassProperties) => false | {
|
|
9
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
10
|
+
appState: import("../types").AppState;
|
|
11
11
|
captureUpdate: "IMMEDIATELY";
|
|
12
|
-
elements?: readonly ExcalidrawElement[] | null | undefined;
|
|
13
|
-
appState?: Partial<AppState> | null | undefined;
|
|
14
|
-
files?: import("../types").BinaryFiles | null | undefined;
|
|
15
|
-
replaceFiles?: boolean | undefined;
|
|
16
12
|
};
|
|
17
13
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
18
14
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,7 @@ export declare const actionCopyElementLink: {
|
|
|
5
5
|
trackEvent: {
|
|
6
6
|
category: "element";
|
|
7
7
|
};
|
|
8
|
-
perform: (elements: readonly import("
|
|
8
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
9
9
|
appState: {
|
|
10
10
|
toast: {
|
|
11
11
|
message: string;
|
|
@@ -17,11 +17,11 @@ export declare const actionCopyElementLink: {
|
|
|
17
17
|
app?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
appState: Readonly<import("../types").AppState>;
|
|
20
|
-
elements: readonly import("
|
|
20
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
21
21
|
app: import("../types").AppClassProperties;
|
|
22
22
|
captureUpdate: "EVENTUALLY";
|
|
23
23
|
}>;
|
|
24
|
-
predicate: (elements: readonly import("
|
|
24
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => false;
|
|
25
25
|
} & {
|
|
26
26
|
keyTest?: undefined;
|
|
27
27
|
};
|
|
@@ -29,8 +29,8 @@ export declare const actionLinkToElement: {
|
|
|
29
29
|
name: "linkToElement";
|
|
30
30
|
label: string;
|
|
31
31
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
perform: (elements: readonly import("
|
|
33
|
-
elements: readonly import("
|
|
32
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
33
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
34
34
|
appState: Readonly<import("../types").AppState>;
|
|
35
35
|
app: import("../types").AppClassProperties;
|
|
36
36
|
captureUpdate: "EVENTUALLY";
|
|
@@ -49,17 +49,17 @@ export declare const actionLinkToElement: {
|
|
|
49
49
|
isLoading: boolean;
|
|
50
50
|
errorMessage: import("react").ReactNode;
|
|
51
51
|
activeEmbeddable: {
|
|
52
|
-
element: import("
|
|
52
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
53
53
|
state: "active" | "hover";
|
|
54
54
|
} | null;
|
|
55
|
-
newElement: import("
|
|
56
|
-
resizingElement: import("
|
|
57
|
-
multiElement: import("
|
|
58
|
-
selectionElement: import("
|
|
55
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
56
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
57
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
58
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
59
59
|
isBindingEnabled: boolean;
|
|
60
|
-
startBoundElement: import("
|
|
61
|
-
suggestedBindings: import("
|
|
62
|
-
frameToHighlight: import("
|
|
60
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
61
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
62
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
63
63
|
frameRendering: {
|
|
64
64
|
enabled: boolean;
|
|
65
65
|
name: boolean;
|
|
@@ -67,12 +67,13 @@ export declare const actionLinkToElement: {
|
|
|
67
67
|
clip: boolean;
|
|
68
68
|
};
|
|
69
69
|
editingFrame: string | null;
|
|
70
|
-
elementsToHighlight: import("
|
|
71
|
-
editingTextElement: import("
|
|
72
|
-
editingLinearElement: import("
|
|
70
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
71
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
72
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
73
73
|
activeTool: {
|
|
74
74
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
75
|
locked: boolean;
|
|
76
|
+
fromSelection: boolean;
|
|
76
77
|
} & import("../types").ActiveTool;
|
|
77
78
|
penMode: boolean;
|
|
78
79
|
penDetected: boolean;
|
|
@@ -82,18 +83,18 @@ export declare const actionLinkToElement: {
|
|
|
82
83
|
exportScale: number;
|
|
83
84
|
currentItemStrokeColor: string;
|
|
84
85
|
currentItemBackgroundColor: string;
|
|
85
|
-
currentItemFillStyle: import("
|
|
86
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
86
87
|
currentItemStrokeWidth: number;
|
|
87
|
-
currentItemStrokeStyle: import("
|
|
88
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
88
89
|
currentItemRoughness: number;
|
|
89
90
|
currentItemOpacity: number;
|
|
90
91
|
currentItemFontFamily: number;
|
|
91
92
|
currentItemFontSize: number;
|
|
92
93
|
currentItemTextAlign: string;
|
|
93
|
-
currentItemStartArrowhead: import("
|
|
94
|
-
currentItemEndArrowhead: import("
|
|
94
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
95
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
95
96
|
currentHoveredFontFamily: number | null;
|
|
96
|
-
currentItemRoundness: import("
|
|
97
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
97
98
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
98
99
|
viewBackgroundColor: string;
|
|
99
100
|
scrollX: number;
|
|
@@ -106,14 +107,14 @@ export declare const actionLinkToElement: {
|
|
|
106
107
|
zoom: Readonly<{
|
|
107
108
|
value: import("../types").NormalizedZoomValue;
|
|
108
109
|
}>;
|
|
109
|
-
openMenu: "
|
|
110
|
+
openMenu: "shape" | "canvas" | null;
|
|
110
111
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
111
112
|
openSidebar: {
|
|
112
113
|
name: string;
|
|
113
114
|
tab?: string | undefined;
|
|
114
115
|
} | null;
|
|
115
116
|
defaultSidebarDockedPreference: boolean;
|
|
116
|
-
lastPointerDownWith: import("
|
|
117
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
117
118
|
selectedElementIds: Readonly<{
|
|
118
119
|
[id: string]: true;
|
|
119
120
|
}>;
|
|
@@ -131,7 +132,7 @@ export declare const actionLinkToElement: {
|
|
|
131
132
|
duration?: number | undefined;
|
|
132
133
|
} | null;
|
|
133
134
|
zenModeEnabled: boolean;
|
|
134
|
-
theme: import("
|
|
135
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
135
136
|
gridSize: number;
|
|
136
137
|
gridStep: number;
|
|
137
138
|
gridModeEnabled: boolean;
|
|
@@ -152,7 +153,7 @@ export declare const actionLinkToElement: {
|
|
|
152
153
|
[id: string]: true;
|
|
153
154
|
}> | undefined;
|
|
154
155
|
username?: string | null | undefined;
|
|
155
|
-
userState?: import("
|
|
156
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
156
157
|
color?: {
|
|
157
158
|
background: string;
|
|
158
159
|
stroke: string;
|
|
@@ -169,7 +170,7 @@ export declare const actionLinkToElement: {
|
|
|
169
170
|
open: boolean;
|
|
170
171
|
panels: number;
|
|
171
172
|
};
|
|
172
|
-
currentChartType: import("
|
|
173
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
173
174
|
pasteDialog: {
|
|
174
175
|
shown: false;
|
|
175
176
|
data: null;
|
|
@@ -178,13 +179,13 @@ export declare const actionLinkToElement: {
|
|
|
178
179
|
data: import("../charts").Spreadsheet;
|
|
179
180
|
};
|
|
180
181
|
pendingImageElementId: string | null;
|
|
181
|
-
showHyperlinkPopup: false | "
|
|
182
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
182
183
|
linkOpacity: number;
|
|
183
184
|
trayModeEnabled: boolean;
|
|
184
185
|
colorPalette?: {
|
|
185
|
-
canvasBackground: import("
|
|
186
|
-
elementBackground: import("
|
|
187
|
-
elementStroke: import("
|
|
186
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
187
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
188
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
188
189
|
topPicks: {
|
|
189
190
|
canvasBackground: [string, string, string, string, string];
|
|
190
191
|
elementStroke: [string, string, string, string, string];
|
|
@@ -201,6 +202,10 @@ export declare const actionLinkToElement: {
|
|
|
201
202
|
Bold: string;
|
|
202
203
|
Regular: string;
|
|
203
204
|
};
|
|
205
|
+
gridDirection: {
|
|
206
|
+
horizontal: boolean;
|
|
207
|
+
vertical: boolean;
|
|
208
|
+
};
|
|
204
209
|
highlightSearchResult: boolean;
|
|
205
210
|
dynamicStyle: {
|
|
206
211
|
[x: string]: string;
|
|
@@ -211,7 +216,7 @@ export declare const actionLinkToElement: {
|
|
|
211
216
|
nameColor: string;
|
|
212
217
|
};
|
|
213
218
|
invertBindingBehaviour: boolean;
|
|
214
|
-
selectedLinearElement: import("
|
|
219
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
215
220
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
216
221
|
originSnapOffset: {
|
|
217
222
|
x: number;
|
|
@@ -237,7 +242,7 @@ export declare const actionLinkToElement: {
|
|
|
237
242
|
elements?: undefined;
|
|
238
243
|
app?: undefined;
|
|
239
244
|
};
|
|
240
|
-
predicate: (elements: readonly import("
|
|
245
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => false;
|
|
241
246
|
trackEvent: false;
|
|
242
247
|
} & {
|
|
243
248
|
keyTest?: undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "
|
|
1
|
+
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
2
|
export declare const actionToggleElementLock: {
|
|
3
3
|
name: "toggleElementLock";
|
|
4
4
|
label: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
|
|
@@ -7,10 +7,10 @@ export declare const actionToggleElementLock: {
|
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
9
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
10
|
-
perform: (elements: readonly import("
|
|
11
|
-
elements: import("
|
|
10
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
11
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
12
12
|
appState: {
|
|
13
|
-
selectedLinearElement: import("
|
|
13
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
14
14
|
contextMenu: {
|
|
15
15
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
16
16
|
top: number;
|
|
@@ -20,17 +20,17 @@ export declare const actionToggleElementLock: {
|
|
|
20
20
|
isLoading: boolean;
|
|
21
21
|
errorMessage: import("react").ReactNode;
|
|
22
22
|
activeEmbeddable: {
|
|
23
|
-
element: import("
|
|
23
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
24
|
state: "active" | "hover";
|
|
25
25
|
} | null;
|
|
26
|
-
newElement: import("
|
|
27
|
-
resizingElement: import("
|
|
28
|
-
multiElement: import("
|
|
29
|
-
selectionElement: import("
|
|
26
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
30
|
isBindingEnabled: boolean;
|
|
31
|
-
startBoundElement: import("
|
|
32
|
-
suggestedBindings: import("
|
|
33
|
-
frameToHighlight: import("
|
|
31
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
32
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
33
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
34
34
|
frameRendering: {
|
|
35
35
|
enabled: boolean;
|
|
36
36
|
name: boolean;
|
|
@@ -38,12 +38,13 @@ export declare const actionToggleElementLock: {
|
|
|
38
38
|
clip: boolean;
|
|
39
39
|
};
|
|
40
40
|
editingFrame: string | null;
|
|
41
|
-
elementsToHighlight: import("
|
|
42
|
-
editingTextElement: import("
|
|
43
|
-
editingLinearElement: import("
|
|
41
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
42
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
43
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
44
44
|
activeTool: {
|
|
45
45
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
46
46
|
locked: boolean;
|
|
47
|
+
fromSelection: boolean;
|
|
47
48
|
} & import("../types").ActiveTool;
|
|
48
49
|
penMode: boolean;
|
|
49
50
|
penDetected: boolean;
|
|
@@ -53,18 +54,18 @@ export declare const actionToggleElementLock: {
|
|
|
53
54
|
exportScale: number;
|
|
54
55
|
currentItemStrokeColor: string;
|
|
55
56
|
currentItemBackgroundColor: string;
|
|
56
|
-
currentItemFillStyle: import("
|
|
57
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
57
58
|
currentItemStrokeWidth: number;
|
|
58
|
-
currentItemStrokeStyle: import("
|
|
59
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
59
60
|
currentItemRoughness: number;
|
|
60
61
|
currentItemOpacity: number;
|
|
61
62
|
currentItemFontFamily: number;
|
|
62
63
|
currentItemFontSize: number;
|
|
63
64
|
currentItemTextAlign: string;
|
|
64
|
-
currentItemStartArrowhead: import("
|
|
65
|
-
currentItemEndArrowhead: import("
|
|
65
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
66
67
|
currentHoveredFontFamily: number | null;
|
|
67
|
-
currentItemRoundness: import("
|
|
68
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
68
69
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
69
70
|
viewBackgroundColor: string;
|
|
70
71
|
scrollX: number;
|
|
@@ -77,7 +78,7 @@ export declare const actionToggleElementLock: {
|
|
|
77
78
|
zoom: Readonly<{
|
|
78
79
|
value: import("../types").NormalizedZoomValue;
|
|
79
80
|
}>;
|
|
80
|
-
openMenu: "
|
|
81
|
+
openMenu: "shape" | "canvas" | null;
|
|
81
82
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
82
83
|
openSidebar: {
|
|
83
84
|
name: string;
|
|
@@ -95,7 +96,7 @@ export declare const actionToggleElementLock: {
|
|
|
95
96
|
sourceElementId: string;
|
|
96
97
|
} | null;
|
|
97
98
|
defaultSidebarDockedPreference: boolean;
|
|
98
|
-
lastPointerDownWith: import("
|
|
99
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
99
100
|
selectedElementIds: Readonly<{
|
|
100
101
|
[id: string]: true;
|
|
101
102
|
}>;
|
|
@@ -113,7 +114,7 @@ export declare const actionToggleElementLock: {
|
|
|
113
114
|
duration?: number | undefined;
|
|
114
115
|
} | null;
|
|
115
116
|
zenModeEnabled: boolean;
|
|
116
|
-
theme: import("
|
|
117
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
117
118
|
gridSize: number;
|
|
118
119
|
gridStep: number;
|
|
119
120
|
gridModeEnabled: boolean;
|
|
@@ -134,7 +135,7 @@ export declare const actionToggleElementLock: {
|
|
|
134
135
|
[id: string]: true;
|
|
135
136
|
}> | undefined;
|
|
136
137
|
username?: string | null | undefined;
|
|
137
|
-
userState?: import("
|
|
138
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
138
139
|
color?: {
|
|
139
140
|
background: string;
|
|
140
141
|
stroke: string;
|
|
@@ -151,7 +152,7 @@ export declare const actionToggleElementLock: {
|
|
|
151
152
|
open: boolean;
|
|
152
153
|
panels: number;
|
|
153
154
|
};
|
|
154
|
-
currentChartType: import("
|
|
155
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
155
156
|
pasteDialog: {
|
|
156
157
|
shown: false;
|
|
157
158
|
data: null;
|
|
@@ -160,13 +161,13 @@ export declare const actionToggleElementLock: {
|
|
|
160
161
|
data: import("../charts").Spreadsheet;
|
|
161
162
|
};
|
|
162
163
|
pendingImageElementId: string | null;
|
|
163
|
-
showHyperlinkPopup: false | "
|
|
164
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
164
165
|
linkOpacity: number;
|
|
165
166
|
trayModeEnabled: boolean;
|
|
166
167
|
colorPalette?: {
|
|
167
|
-
canvasBackground: import("
|
|
168
|
-
elementBackground: import("
|
|
169
|
-
elementStroke: import("
|
|
168
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
169
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
170
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
170
171
|
topPicks: {
|
|
171
172
|
canvasBackground: [string, string, string, string, string];
|
|
172
173
|
elementStroke: [string, string, string, string, string];
|
|
@@ -183,6 +184,10 @@ export declare const actionToggleElementLock: {
|
|
|
183
184
|
Bold: string;
|
|
184
185
|
Regular: string;
|
|
185
186
|
};
|
|
187
|
+
gridDirection: {
|
|
188
|
+
horizontal: boolean;
|
|
189
|
+
vertical: boolean;
|
|
190
|
+
};
|
|
186
191
|
highlightSearchResult: boolean;
|
|
187
192
|
dynamicStyle: {
|
|
188
193
|
[x: string]: string;
|
|
@@ -222,15 +227,14 @@ export declare const actionToggleElementLock: {
|
|
|
222
227
|
};
|
|
223
228
|
export declare const actionUnlockAllElements: {
|
|
224
229
|
name: "unlockAllElements";
|
|
225
|
-
paletteName: string;
|
|
226
230
|
trackEvent: {
|
|
227
231
|
category: "canvas";
|
|
228
232
|
};
|
|
229
233
|
viewMode: false;
|
|
230
234
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
231
235
|
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
232
|
-
perform: (elements: readonly import("
|
|
233
|
-
elements: import("
|
|
236
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
237
|
+
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
234
238
|
appState: {
|
|
235
239
|
selectedElementIds: {
|
|
236
240
|
[k: string]: true;
|
|
@@ -244,17 +248,17 @@ export declare const actionUnlockAllElements: {
|
|
|
244
248
|
isLoading: boolean;
|
|
245
249
|
errorMessage: import("react").ReactNode;
|
|
246
250
|
activeEmbeddable: {
|
|
247
|
-
element: import("
|
|
251
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
248
252
|
state: "active" | "hover";
|
|
249
253
|
} | null;
|
|
250
|
-
newElement: import("
|
|
251
|
-
resizingElement: import("
|
|
252
|
-
multiElement: import("
|
|
253
|
-
selectionElement: import("
|
|
254
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
255
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
256
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
257
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
254
258
|
isBindingEnabled: boolean;
|
|
255
|
-
startBoundElement: import("
|
|
256
|
-
suggestedBindings: import("
|
|
257
|
-
frameToHighlight: import("
|
|
259
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
260
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
261
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
258
262
|
frameRendering: {
|
|
259
263
|
enabled: boolean;
|
|
260
264
|
name: boolean;
|
|
@@ -262,12 +266,13 @@ export declare const actionUnlockAllElements: {
|
|
|
262
266
|
clip: boolean;
|
|
263
267
|
};
|
|
264
268
|
editingFrame: string | null;
|
|
265
|
-
elementsToHighlight: import("
|
|
266
|
-
editingTextElement: import("
|
|
267
|
-
editingLinearElement: import("
|
|
269
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
270
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
271
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
268
272
|
activeTool: {
|
|
269
273
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
270
274
|
locked: boolean;
|
|
275
|
+
fromSelection: boolean;
|
|
271
276
|
} & import("../types").ActiveTool;
|
|
272
277
|
penMode: boolean;
|
|
273
278
|
penDetected: boolean;
|
|
@@ -277,18 +282,18 @@ export declare const actionUnlockAllElements: {
|
|
|
277
282
|
exportScale: number;
|
|
278
283
|
currentItemStrokeColor: string;
|
|
279
284
|
currentItemBackgroundColor: string;
|
|
280
|
-
currentItemFillStyle: import("
|
|
285
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
281
286
|
currentItemStrokeWidth: number;
|
|
282
|
-
currentItemStrokeStyle: import("
|
|
287
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
283
288
|
currentItemRoughness: number;
|
|
284
289
|
currentItemOpacity: number;
|
|
285
290
|
currentItemFontFamily: number;
|
|
286
291
|
currentItemFontSize: number;
|
|
287
292
|
currentItemTextAlign: string;
|
|
288
|
-
currentItemStartArrowhead: import("
|
|
289
|
-
currentItemEndArrowhead: import("
|
|
293
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
294
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
290
295
|
currentHoveredFontFamily: number | null;
|
|
291
|
-
currentItemRoundness: import("
|
|
296
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
292
297
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
293
298
|
viewBackgroundColor: string;
|
|
294
299
|
scrollX: number;
|
|
@@ -301,7 +306,7 @@ export declare const actionUnlockAllElements: {
|
|
|
301
306
|
zoom: Readonly<{
|
|
302
307
|
value: import("../types").NormalizedZoomValue;
|
|
303
308
|
}>;
|
|
304
|
-
openMenu: "
|
|
309
|
+
openMenu: "shape" | "canvas" | null;
|
|
305
310
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
306
311
|
openSidebar: {
|
|
307
312
|
name: string;
|
|
@@ -319,7 +324,7 @@ export declare const actionUnlockAllElements: {
|
|
|
319
324
|
sourceElementId: string;
|
|
320
325
|
} | null;
|
|
321
326
|
defaultSidebarDockedPreference: boolean;
|
|
322
|
-
lastPointerDownWith: import("
|
|
327
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
323
328
|
hoveredElementIds: Readonly<{
|
|
324
329
|
[id: string]: true;
|
|
325
330
|
}>;
|
|
@@ -334,7 +339,7 @@ export declare const actionUnlockAllElements: {
|
|
|
334
339
|
duration?: number | undefined;
|
|
335
340
|
} | null;
|
|
336
341
|
zenModeEnabled: boolean;
|
|
337
|
-
theme: import("
|
|
342
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
338
343
|
gridSize: number;
|
|
339
344
|
gridStep: number;
|
|
340
345
|
gridModeEnabled: boolean;
|
|
@@ -355,7 +360,7 @@ export declare const actionUnlockAllElements: {
|
|
|
355
360
|
[id: string]: true;
|
|
356
361
|
}> | undefined;
|
|
357
362
|
username?: string | null | undefined;
|
|
358
|
-
userState?: import("
|
|
363
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
359
364
|
color?: {
|
|
360
365
|
background: string;
|
|
361
366
|
stroke: string;
|
|
@@ -372,7 +377,7 @@ export declare const actionUnlockAllElements: {
|
|
|
372
377
|
open: boolean;
|
|
373
378
|
panels: number;
|
|
374
379
|
};
|
|
375
|
-
currentChartType: import("
|
|
380
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
376
381
|
pasteDialog: {
|
|
377
382
|
shown: false;
|
|
378
383
|
data: null;
|
|
@@ -381,13 +386,13 @@ export declare const actionUnlockAllElements: {
|
|
|
381
386
|
data: import("../charts").Spreadsheet;
|
|
382
387
|
};
|
|
383
388
|
pendingImageElementId: string | null;
|
|
384
|
-
showHyperlinkPopup: false | "
|
|
389
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
385
390
|
linkOpacity: number;
|
|
386
391
|
trayModeEnabled: boolean;
|
|
387
392
|
colorPalette?: {
|
|
388
|
-
canvasBackground: import("
|
|
389
|
-
elementBackground: import("
|
|
390
|
-
elementStroke: import("
|
|
393
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
394
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
395
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
391
396
|
topPicks: {
|
|
392
397
|
canvasBackground: [string, string, string, string, string];
|
|
393
398
|
elementStroke: [string, string, string, string, string];
|
|
@@ -404,6 +409,10 @@ export declare const actionUnlockAllElements: {
|
|
|
404
409
|
Bold: string;
|
|
405
410
|
Regular: string;
|
|
406
411
|
};
|
|
412
|
+
gridDirection: {
|
|
413
|
+
horizontal: boolean;
|
|
414
|
+
vertical: boolean;
|
|
415
|
+
};
|
|
407
416
|
highlightSearchResult: boolean;
|
|
408
417
|
dynamicStyle: {
|
|
409
418
|
[x: string]: string;
|
|
@@ -414,7 +423,7 @@ export declare const actionUnlockAllElements: {
|
|
|
414
423
|
nameColor: string;
|
|
415
424
|
};
|
|
416
425
|
invertBindingBehaviour: boolean;
|
|
417
|
-
selectedLinearElement: import("
|
|
426
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
418
427
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
419
428
|
originSnapOffset: {
|
|
420
429
|
x: number;
|