@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 actionSelectAllElementsInFrame: {
|
|
4
4
|
name: "selectAllElementsInFrame";
|
|
@@ -6,8 +6,8 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "canvas";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("
|
|
10
|
-
elements: readonly import("
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
10
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
11
|
appState: {
|
|
12
12
|
selectedElementIds: Record<string, true>;
|
|
13
13
|
contextMenu: {
|
|
@@ -19,17 +19,17 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
errorMessage: import("react").ReactNode;
|
|
21
21
|
activeEmbeddable: {
|
|
22
|
-
element: import("
|
|
22
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
23
23
|
state: "active" | "hover";
|
|
24
24
|
} | null;
|
|
25
|
-
newElement: import("
|
|
26
|
-
resizingElement: import("
|
|
27
|
-
multiElement: import("
|
|
28
|
-
selectionElement: import("
|
|
25
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
|
-
startBoundElement: import("
|
|
31
|
-
suggestedBindings: import("
|
|
32
|
-
frameToHighlight: import("
|
|
30
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
31
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
32
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
33
33
|
frameRendering: {
|
|
34
34
|
enabled: boolean;
|
|
35
35
|
name: boolean;
|
|
@@ -37,12 +37,13 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
37
37
|
clip: boolean;
|
|
38
38
|
};
|
|
39
39
|
editingFrame: string | null;
|
|
40
|
-
elementsToHighlight: import("
|
|
41
|
-
editingTextElement: import("
|
|
42
|
-
editingLinearElement: import("
|
|
40
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
41
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
42
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
43
43
|
activeTool: {
|
|
44
44
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
45
45
|
locked: boolean;
|
|
46
|
+
fromSelection: boolean;
|
|
46
47
|
} & import("../types").ActiveTool;
|
|
47
48
|
penMode: boolean;
|
|
48
49
|
penDetected: boolean;
|
|
@@ -52,18 +53,18 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
52
53
|
exportScale: number;
|
|
53
54
|
currentItemStrokeColor: string;
|
|
54
55
|
currentItemBackgroundColor: string;
|
|
55
|
-
currentItemFillStyle: import("
|
|
56
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
56
57
|
currentItemStrokeWidth: number;
|
|
57
|
-
currentItemStrokeStyle: import("
|
|
58
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
58
59
|
currentItemRoughness: number;
|
|
59
60
|
currentItemOpacity: number;
|
|
60
61
|
currentItemFontFamily: number;
|
|
61
62
|
currentItemFontSize: number;
|
|
62
63
|
currentItemTextAlign: string;
|
|
63
|
-
currentItemStartArrowhead: import("
|
|
64
|
-
currentItemEndArrowhead: import("
|
|
64
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
65
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
65
66
|
currentHoveredFontFamily: number | null;
|
|
66
|
-
currentItemRoundness: import("
|
|
67
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
67
68
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
68
69
|
viewBackgroundColor: string;
|
|
69
70
|
scrollX: number;
|
|
@@ -76,7 +77,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
76
77
|
zoom: Readonly<{
|
|
77
78
|
value: import("../types").NormalizedZoomValue;
|
|
78
79
|
}>;
|
|
79
|
-
openMenu: "
|
|
80
|
+
openMenu: "shape" | "canvas" | null;
|
|
80
81
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
81
82
|
openSidebar: {
|
|
82
83
|
name: string;
|
|
@@ -94,7 +95,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
94
95
|
sourceElementId: string;
|
|
95
96
|
} | null;
|
|
96
97
|
defaultSidebarDockedPreference: boolean;
|
|
97
|
-
lastPointerDownWith: import("
|
|
98
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
98
99
|
hoveredElementIds: Readonly<{
|
|
99
100
|
[id: string]: true;
|
|
100
101
|
}>;
|
|
@@ -109,7 +110,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
109
110
|
duration?: number | undefined;
|
|
110
111
|
} | null;
|
|
111
112
|
zenModeEnabled: boolean;
|
|
112
|
-
theme: import("
|
|
113
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
113
114
|
gridSize: number;
|
|
114
115
|
gridStep: number;
|
|
115
116
|
gridModeEnabled: boolean;
|
|
@@ -130,7 +131,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
130
131
|
[id: string]: true;
|
|
131
132
|
}> | undefined;
|
|
132
133
|
username?: string | null | undefined;
|
|
133
|
-
userState?: import("
|
|
134
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
134
135
|
color?: {
|
|
135
136
|
background: string;
|
|
136
137
|
stroke: string;
|
|
@@ -147,7 +148,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
147
148
|
open: boolean;
|
|
148
149
|
panels: number;
|
|
149
150
|
};
|
|
150
|
-
currentChartType: import("
|
|
151
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
151
152
|
pasteDialog: {
|
|
152
153
|
shown: false;
|
|
153
154
|
data: null;
|
|
@@ -156,13 +157,13 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
156
157
|
data: import("../charts").Spreadsheet;
|
|
157
158
|
};
|
|
158
159
|
pendingImageElementId: string | null;
|
|
159
|
-
showHyperlinkPopup: false | "
|
|
160
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
160
161
|
linkOpacity: number;
|
|
161
162
|
trayModeEnabled: boolean;
|
|
162
163
|
colorPalette?: {
|
|
163
|
-
canvasBackground: import("
|
|
164
|
-
elementBackground: import("
|
|
165
|
-
elementStroke: import("
|
|
164
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
165
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
166
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
166
167
|
topPicks: {
|
|
167
168
|
canvasBackground: [string, string, string, string, string];
|
|
168
169
|
elementStroke: [string, string, string, string, string];
|
|
@@ -179,6 +180,10 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
179
180
|
Bold: string;
|
|
180
181
|
Regular: string;
|
|
181
182
|
};
|
|
183
|
+
gridDirection: {
|
|
184
|
+
horizontal: boolean;
|
|
185
|
+
vertical: boolean;
|
|
186
|
+
};
|
|
182
187
|
highlightSearchResult: boolean;
|
|
183
188
|
dynamicStyle: {
|
|
184
189
|
[x: string]: string;
|
|
@@ -189,7 +194,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
189
194
|
nameColor: string;
|
|
190
195
|
};
|
|
191
196
|
invertBindingBehaviour: boolean;
|
|
192
|
-
selectedLinearElement: import("
|
|
197
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
193
198
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
194
199
|
originSnapOffset: {
|
|
195
200
|
x: number;
|
|
@@ -213,7 +218,7 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
213
218
|
};
|
|
214
219
|
captureUpdate: "IMMEDIATELY";
|
|
215
220
|
} | {
|
|
216
|
-
elements: readonly import("
|
|
221
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
217
222
|
appState: Readonly<AppState>;
|
|
218
223
|
captureUpdate: "EVENTUALLY";
|
|
219
224
|
};
|
|
@@ -227,8 +232,8 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
227
232
|
trackEvent: {
|
|
228
233
|
category: "history";
|
|
229
234
|
};
|
|
230
|
-
perform: (elements: readonly import("
|
|
231
|
-
elements: readonly import("
|
|
235
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
236
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
232
237
|
appState: {
|
|
233
238
|
selectedElementIds: {
|
|
234
239
|
[x: string]: true;
|
|
@@ -242,17 +247,17 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
242
247
|
isLoading: boolean;
|
|
243
248
|
errorMessage: import("react").ReactNode;
|
|
244
249
|
activeEmbeddable: {
|
|
245
|
-
element: import("
|
|
250
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
246
251
|
state: "active" | "hover";
|
|
247
252
|
} | null;
|
|
248
|
-
newElement: import("
|
|
249
|
-
resizingElement: import("
|
|
250
|
-
multiElement: import("
|
|
251
|
-
selectionElement: import("
|
|
253
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
254
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
255
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
256
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
252
257
|
isBindingEnabled: boolean;
|
|
253
|
-
startBoundElement: import("
|
|
254
|
-
suggestedBindings: import("
|
|
255
|
-
frameToHighlight: import("
|
|
258
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
259
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
260
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
256
261
|
frameRendering: {
|
|
257
262
|
enabled: boolean;
|
|
258
263
|
name: boolean;
|
|
@@ -260,12 +265,13 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
260
265
|
clip: boolean;
|
|
261
266
|
};
|
|
262
267
|
editingFrame: string | null;
|
|
263
|
-
elementsToHighlight: import("
|
|
264
|
-
editingTextElement: import("
|
|
265
|
-
editingLinearElement: import("
|
|
268
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
269
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
270
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
266
271
|
activeTool: {
|
|
267
272
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
268
273
|
locked: boolean;
|
|
274
|
+
fromSelection: boolean;
|
|
269
275
|
} & import("../types").ActiveTool;
|
|
270
276
|
penMode: boolean;
|
|
271
277
|
penDetected: boolean;
|
|
@@ -275,18 +281,18 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
275
281
|
exportScale: number;
|
|
276
282
|
currentItemStrokeColor: string;
|
|
277
283
|
currentItemBackgroundColor: string;
|
|
278
|
-
currentItemFillStyle: import("
|
|
284
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
279
285
|
currentItemStrokeWidth: number;
|
|
280
|
-
currentItemStrokeStyle: import("
|
|
286
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
281
287
|
currentItemRoughness: number;
|
|
282
288
|
currentItemOpacity: number;
|
|
283
289
|
currentItemFontFamily: number;
|
|
284
290
|
currentItemFontSize: number;
|
|
285
291
|
currentItemTextAlign: string;
|
|
286
|
-
currentItemStartArrowhead: import("
|
|
287
|
-
currentItemEndArrowhead: import("
|
|
292
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
293
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
288
294
|
currentHoveredFontFamily: number | null;
|
|
289
|
-
currentItemRoundness: import("
|
|
295
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
290
296
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
291
297
|
viewBackgroundColor: string;
|
|
292
298
|
scrollX: number;
|
|
@@ -299,7 +305,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
299
305
|
zoom: Readonly<{
|
|
300
306
|
value: import("../types").NormalizedZoomValue;
|
|
301
307
|
}>;
|
|
302
|
-
openMenu: "
|
|
308
|
+
openMenu: "shape" | "canvas" | null;
|
|
303
309
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
304
310
|
openSidebar: {
|
|
305
311
|
name: string;
|
|
@@ -317,7 +323,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
317
323
|
sourceElementId: string;
|
|
318
324
|
} | null;
|
|
319
325
|
defaultSidebarDockedPreference: boolean;
|
|
320
|
-
lastPointerDownWith: import("
|
|
326
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
321
327
|
hoveredElementIds: Readonly<{
|
|
322
328
|
[id: string]: true;
|
|
323
329
|
}>;
|
|
@@ -332,7 +338,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
332
338
|
duration?: number | undefined;
|
|
333
339
|
} | null;
|
|
334
340
|
zenModeEnabled: boolean;
|
|
335
|
-
theme: import("
|
|
341
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
336
342
|
gridSize: number;
|
|
337
343
|
gridStep: number;
|
|
338
344
|
gridModeEnabled: boolean;
|
|
@@ -353,7 +359,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
353
359
|
[id: string]: true;
|
|
354
360
|
}> | undefined;
|
|
355
361
|
username?: string | null | undefined;
|
|
356
|
-
userState?: import("
|
|
362
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
357
363
|
color?: {
|
|
358
364
|
background: string;
|
|
359
365
|
stroke: string;
|
|
@@ -370,7 +376,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
370
376
|
open: boolean;
|
|
371
377
|
panels: number;
|
|
372
378
|
};
|
|
373
|
-
currentChartType: import("
|
|
379
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
374
380
|
pasteDialog: {
|
|
375
381
|
shown: false;
|
|
376
382
|
data: null;
|
|
@@ -379,13 +385,13 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
379
385
|
data: import("../charts").Spreadsheet;
|
|
380
386
|
};
|
|
381
387
|
pendingImageElementId: string | null;
|
|
382
|
-
showHyperlinkPopup: false | "
|
|
388
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
383
389
|
linkOpacity: number;
|
|
384
390
|
trayModeEnabled: boolean;
|
|
385
391
|
colorPalette?: {
|
|
386
|
-
canvasBackground: import("
|
|
387
|
-
elementBackground: import("
|
|
388
|
-
elementStroke: import("
|
|
392
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
393
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
394
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
389
395
|
topPicks: {
|
|
390
396
|
canvasBackground: [string, string, string, string, string];
|
|
391
397
|
elementStroke: [string, string, string, string, string];
|
|
@@ -402,6 +408,10 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
402
408
|
Bold: string;
|
|
403
409
|
Regular: string;
|
|
404
410
|
};
|
|
411
|
+
gridDirection: {
|
|
412
|
+
horizontal: boolean;
|
|
413
|
+
vertical: boolean;
|
|
414
|
+
};
|
|
405
415
|
highlightSearchResult: boolean;
|
|
406
416
|
dynamicStyle: {
|
|
407
417
|
[x: string]: string;
|
|
@@ -412,7 +422,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
412
422
|
nameColor: string;
|
|
413
423
|
};
|
|
414
424
|
invertBindingBehaviour: boolean;
|
|
415
|
-
selectedLinearElement: import("
|
|
425
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
416
426
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
417
427
|
originSnapOffset: {
|
|
418
428
|
x: number;
|
|
@@ -436,7 +446,7 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
436
446
|
};
|
|
437
447
|
captureUpdate: "IMMEDIATELY";
|
|
438
448
|
} | {
|
|
439
|
-
elements: readonly import("
|
|
449
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
440
450
|
appState: Readonly<AppState>;
|
|
441
451
|
captureUpdate: "EVENTUALLY";
|
|
442
452
|
};
|
|
@@ -451,8 +461,8 @@ export declare const actionupdateFrameRendering: {
|
|
|
451
461
|
trackEvent: {
|
|
452
462
|
category: "canvas";
|
|
453
463
|
};
|
|
454
|
-
perform: (elements: readonly import("
|
|
455
|
-
elements: readonly import("
|
|
464
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
|
|
465
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
456
466
|
appState: {
|
|
457
467
|
frameRendering: {
|
|
458
468
|
enabled: boolean;
|
|
@@ -469,24 +479,25 @@ export declare const actionupdateFrameRendering: {
|
|
|
469
479
|
isLoading: boolean;
|
|
470
480
|
errorMessage: import("react").ReactNode;
|
|
471
481
|
activeEmbeddable: {
|
|
472
|
-
element: import("
|
|
482
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
473
483
|
state: "active" | "hover";
|
|
474
484
|
} | null;
|
|
475
|
-
newElement: import("
|
|
476
|
-
resizingElement: import("
|
|
477
|
-
multiElement: import("
|
|
478
|
-
selectionElement: import("
|
|
485
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
486
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
487
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
488
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
479
489
|
isBindingEnabled: boolean;
|
|
480
|
-
startBoundElement: import("
|
|
481
|
-
suggestedBindings: import("
|
|
482
|
-
frameToHighlight: import("
|
|
490
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
491
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
492
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
483
493
|
editingFrame: string | null;
|
|
484
|
-
elementsToHighlight: import("
|
|
485
|
-
editingTextElement: import("
|
|
486
|
-
editingLinearElement: import("
|
|
494
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
495
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
496
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
487
497
|
activeTool: {
|
|
488
498
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
489
499
|
locked: boolean;
|
|
500
|
+
fromSelection: boolean;
|
|
490
501
|
} & import("../types").ActiveTool;
|
|
491
502
|
penMode: boolean;
|
|
492
503
|
penDetected: boolean;
|
|
@@ -496,18 +507,18 @@ export declare const actionupdateFrameRendering: {
|
|
|
496
507
|
exportScale: number;
|
|
497
508
|
currentItemStrokeColor: string;
|
|
498
509
|
currentItemBackgroundColor: string;
|
|
499
|
-
currentItemFillStyle: import("
|
|
510
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
500
511
|
currentItemStrokeWidth: number;
|
|
501
|
-
currentItemStrokeStyle: import("
|
|
512
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
502
513
|
currentItemRoughness: number;
|
|
503
514
|
currentItemOpacity: number;
|
|
504
515
|
currentItemFontFamily: number;
|
|
505
516
|
currentItemFontSize: number;
|
|
506
517
|
currentItemTextAlign: string;
|
|
507
|
-
currentItemStartArrowhead: import("
|
|
508
|
-
currentItemEndArrowhead: import("
|
|
518
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
519
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
509
520
|
currentHoveredFontFamily: number | null;
|
|
510
|
-
currentItemRoundness: import("
|
|
521
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
511
522
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
512
523
|
viewBackgroundColor: string;
|
|
513
524
|
scrollX: number;
|
|
@@ -520,7 +531,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
520
531
|
zoom: Readonly<{
|
|
521
532
|
value: import("../types").NormalizedZoomValue;
|
|
522
533
|
}>;
|
|
523
|
-
openMenu: "
|
|
534
|
+
openMenu: "shape" | "canvas" | null;
|
|
524
535
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
525
536
|
openSidebar: {
|
|
526
537
|
name: string;
|
|
@@ -538,7 +549,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
538
549
|
sourceElementId: string;
|
|
539
550
|
} | null;
|
|
540
551
|
defaultSidebarDockedPreference: boolean;
|
|
541
|
-
lastPointerDownWith: import("
|
|
552
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
542
553
|
selectedElementIds: Readonly<{
|
|
543
554
|
[id: string]: true;
|
|
544
555
|
}>;
|
|
@@ -556,7 +567,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
556
567
|
duration?: number | undefined;
|
|
557
568
|
} | null;
|
|
558
569
|
zenModeEnabled: boolean;
|
|
559
|
-
theme: import("
|
|
570
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
560
571
|
gridSize: number;
|
|
561
572
|
gridStep: number;
|
|
562
573
|
gridModeEnabled: boolean;
|
|
@@ -577,7 +588,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
577
588
|
[id: string]: true;
|
|
578
589
|
}> | undefined;
|
|
579
590
|
username?: string | null | undefined;
|
|
580
|
-
userState?: import("
|
|
591
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
581
592
|
color?: {
|
|
582
593
|
background: string;
|
|
583
594
|
stroke: string;
|
|
@@ -594,7 +605,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
594
605
|
open: boolean;
|
|
595
606
|
panels: number;
|
|
596
607
|
};
|
|
597
|
-
currentChartType: import("
|
|
608
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
598
609
|
pasteDialog: {
|
|
599
610
|
shown: false;
|
|
600
611
|
data: null;
|
|
@@ -603,13 +614,13 @@ export declare const actionupdateFrameRendering: {
|
|
|
603
614
|
data: import("../charts").Spreadsheet;
|
|
604
615
|
};
|
|
605
616
|
pendingImageElementId: string | null;
|
|
606
|
-
showHyperlinkPopup: false | "
|
|
617
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
607
618
|
linkOpacity: number;
|
|
608
619
|
trayModeEnabled: boolean;
|
|
609
620
|
colorPalette?: {
|
|
610
|
-
canvasBackground: import("
|
|
611
|
-
elementBackground: import("
|
|
612
|
-
elementStroke: import("
|
|
621
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
622
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
623
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
613
624
|
topPicks: {
|
|
614
625
|
canvasBackground: [string, string, string, string, string];
|
|
615
626
|
elementStroke: [string, string, string, string, string];
|
|
@@ -626,6 +637,10 @@ export declare const actionupdateFrameRendering: {
|
|
|
626
637
|
Bold: string;
|
|
627
638
|
Regular: string;
|
|
628
639
|
};
|
|
640
|
+
gridDirection: {
|
|
641
|
+
horizontal: boolean;
|
|
642
|
+
vertical: boolean;
|
|
643
|
+
};
|
|
629
644
|
highlightSearchResult: boolean;
|
|
630
645
|
dynamicStyle: {
|
|
631
646
|
[x: string]: string;
|
|
@@ -636,7 +651,7 @@ export declare const actionupdateFrameRendering: {
|
|
|
636
651
|
nameColor: string;
|
|
637
652
|
};
|
|
638
653
|
invertBindingBehaviour: boolean;
|
|
639
|
-
selectedLinearElement: import("
|
|
654
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
640
655
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
641
656
|
originSnapOffset: {
|
|
642
657
|
x: number;
|
|
@@ -672,12 +687,13 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
672
687
|
};
|
|
673
688
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
674
689
|
viewMode: false;
|
|
675
|
-
perform: (elements: readonly import("
|
|
676
|
-
elements: readonly import("
|
|
690
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
691
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
677
692
|
appState: {
|
|
678
693
|
activeTool: {
|
|
679
694
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
680
695
|
locked: boolean;
|
|
696
|
+
fromSelection: boolean;
|
|
681
697
|
} & import("../types").ActiveTool;
|
|
682
698
|
contextMenu: {
|
|
683
699
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -688,17 +704,17 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
688
704
|
isLoading: boolean;
|
|
689
705
|
errorMessage: import("react").ReactNode;
|
|
690
706
|
activeEmbeddable: {
|
|
691
|
-
element: import("
|
|
707
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
692
708
|
state: "active" | "hover";
|
|
693
709
|
} | null;
|
|
694
|
-
newElement: import("
|
|
695
|
-
resizingElement: import("
|
|
696
|
-
multiElement: import("
|
|
697
|
-
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<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
713
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
698
714
|
isBindingEnabled: boolean;
|
|
699
|
-
startBoundElement: import("
|
|
700
|
-
suggestedBindings: import("
|
|
701
|
-
frameToHighlight: import("
|
|
715
|
+
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
716
|
+
suggestedBindings: import("@excalidraw/element/binding").SuggestedBinding[];
|
|
717
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
702
718
|
frameRendering: {
|
|
703
719
|
enabled: boolean;
|
|
704
720
|
name: boolean;
|
|
@@ -706,9 +722,9 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
706
722
|
clip: boolean;
|
|
707
723
|
};
|
|
708
724
|
editingFrame: string | null;
|
|
709
|
-
elementsToHighlight: import("
|
|
710
|
-
editingTextElement: import("
|
|
711
|
-
editingLinearElement: import("
|
|
725
|
+
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
726
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
727
|
+
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
712
728
|
penMode: boolean;
|
|
713
729
|
penDetected: boolean;
|
|
714
730
|
exportBackground: boolean;
|
|
@@ -717,18 +733,18 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
717
733
|
exportScale: number;
|
|
718
734
|
currentItemStrokeColor: string;
|
|
719
735
|
currentItemBackgroundColor: string;
|
|
720
|
-
currentItemFillStyle: import("
|
|
736
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
721
737
|
currentItemStrokeWidth: number;
|
|
722
|
-
currentItemStrokeStyle: import("
|
|
738
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
723
739
|
currentItemRoughness: number;
|
|
724
740
|
currentItemOpacity: number;
|
|
725
741
|
currentItemFontFamily: number;
|
|
726
742
|
currentItemFontSize: number;
|
|
727
743
|
currentItemTextAlign: string;
|
|
728
|
-
currentItemStartArrowhead: import("
|
|
729
|
-
currentItemEndArrowhead: import("
|
|
744
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
745
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
730
746
|
currentHoveredFontFamily: number | null;
|
|
731
|
-
currentItemRoundness: import("
|
|
747
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
732
748
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
733
749
|
viewBackgroundColor: string;
|
|
734
750
|
scrollX: number;
|
|
@@ -741,7 +757,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
741
757
|
zoom: Readonly<{
|
|
742
758
|
value: import("../types").NormalizedZoomValue;
|
|
743
759
|
}>;
|
|
744
|
-
openMenu: "
|
|
760
|
+
openMenu: "shape" | "canvas" | null;
|
|
745
761
|
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
746
762
|
openSidebar: {
|
|
747
763
|
name: string;
|
|
@@ -759,7 +775,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
759
775
|
sourceElementId: string;
|
|
760
776
|
} | null;
|
|
761
777
|
defaultSidebarDockedPreference: boolean;
|
|
762
|
-
lastPointerDownWith: import("
|
|
778
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
763
779
|
selectedElementIds: Readonly<{
|
|
764
780
|
[id: string]: true;
|
|
765
781
|
}>;
|
|
@@ -777,7 +793,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
777
793
|
duration?: number | undefined;
|
|
778
794
|
} | null;
|
|
779
795
|
zenModeEnabled: boolean;
|
|
780
|
-
theme: import("
|
|
796
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
781
797
|
gridSize: number;
|
|
782
798
|
gridStep: number;
|
|
783
799
|
gridModeEnabled: boolean;
|
|
@@ -798,7 +814,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
798
814
|
[id: string]: true;
|
|
799
815
|
}> | undefined;
|
|
800
816
|
username?: string | null | undefined;
|
|
801
|
-
userState?: import("
|
|
817
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
802
818
|
color?: {
|
|
803
819
|
background: string;
|
|
804
820
|
stroke: string;
|
|
@@ -815,7 +831,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
815
831
|
open: boolean;
|
|
816
832
|
panels: number;
|
|
817
833
|
};
|
|
818
|
-
currentChartType: import("
|
|
834
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
819
835
|
pasteDialog: {
|
|
820
836
|
shown: false;
|
|
821
837
|
data: null;
|
|
@@ -824,13 +840,13 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
824
840
|
data: import("../charts").Spreadsheet;
|
|
825
841
|
};
|
|
826
842
|
pendingImageElementId: string | null;
|
|
827
|
-
showHyperlinkPopup: false | "
|
|
843
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
828
844
|
linkOpacity: number;
|
|
829
845
|
trayModeEnabled: boolean;
|
|
830
846
|
colorPalette?: {
|
|
831
|
-
canvasBackground: import("
|
|
832
|
-
elementBackground: import("
|
|
833
|
-
elementStroke: import("
|
|
847
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
848
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
849
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
834
850
|
topPicks: {
|
|
835
851
|
canvasBackground: [string, string, string, string, string];
|
|
836
852
|
elementStroke: [string, string, string, string, string];
|
|
@@ -847,6 +863,10 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
847
863
|
Bold: string;
|
|
848
864
|
Regular: string;
|
|
849
865
|
};
|
|
866
|
+
gridDirection: {
|
|
867
|
+
horizontal: boolean;
|
|
868
|
+
vertical: boolean;
|
|
869
|
+
};
|
|
850
870
|
highlightSearchResult: boolean;
|
|
851
871
|
dynamicStyle: {
|
|
852
872
|
[x: string]: string;
|
|
@@ -857,7 +877,7 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
857
877
|
nameColor: string;
|
|
858
878
|
};
|
|
859
879
|
invertBindingBehaviour: boolean;
|
|
860
|
-
selectedLinearElement: import("
|
|
880
|
+
selectedLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
861
881
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
862
882
|
originSnapOffset: {
|
|
863
883
|
x: number;
|
|
@@ -892,18 +912,18 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
892
912
|
category: "element";
|
|
893
913
|
};
|
|
894
914
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
895
|
-
perform: (elements: readonly import("
|
|
915
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: AppClassProperties) => {
|
|
896
916
|
elements: ((Readonly<{
|
|
897
917
|
id: string;
|
|
898
918
|
x: number;
|
|
899
919
|
y: number;
|
|
900
920
|
strokeColor: string;
|
|
901
921
|
backgroundColor: string;
|
|
902
|
-
fillStyle: import("
|
|
922
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
903
923
|
strokeWidth: number;
|
|
904
|
-
strokeStyle: import("
|
|
924
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
905
925
|
roundness: {
|
|
906
|
-
type: import("
|
|
926
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
907
927
|
value?: number | undefined;
|
|
908
928
|
} | null;
|
|
909
929
|
roughness: number;
|
|
@@ -914,7 +934,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
914
934
|
seed: number;
|
|
915
935
|
version: number;
|
|
916
936
|
versionNonce: number;
|
|
917
|
-
index: import("
|
|
937
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
918
938
|
isDeleted: boolean;
|
|
919
939
|
groupIds: readonly string[];
|
|
920
940
|
frameId: string | null;
|
|
@@ -927,20 +947,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
927
947
|
locked: boolean;
|
|
928
948
|
customData?: Record<string, any> | undefined;
|
|
929
949
|
}> & {
|
|
930
|
-
type: "
|
|
950
|
+
type: "rectangle";
|
|
931
951
|
} & {
|
|
932
|
-
index: import("
|
|
952
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
933
953
|
}) | (Readonly<{
|
|
934
954
|
id: string;
|
|
935
955
|
x: number;
|
|
936
956
|
y: number;
|
|
937
957
|
strokeColor: string;
|
|
938
958
|
backgroundColor: string;
|
|
939
|
-
fillStyle: import("
|
|
959
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
940
960
|
strokeWidth: number;
|
|
941
|
-
strokeStyle: import("
|
|
961
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
942
962
|
roundness: {
|
|
943
|
-
type: import("
|
|
963
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
944
964
|
value?: number | undefined;
|
|
945
965
|
} | null;
|
|
946
966
|
roughness: number;
|
|
@@ -951,7 +971,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
951
971
|
seed: number;
|
|
952
972
|
version: number;
|
|
953
973
|
versionNonce: number;
|
|
954
|
-
index: import("
|
|
974
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
955
975
|
isDeleted: boolean;
|
|
956
976
|
groupIds: readonly string[];
|
|
957
977
|
frameId: string | null;
|
|
@@ -964,20 +984,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
964
984
|
locked: boolean;
|
|
965
985
|
customData?: Record<string, any> | undefined;
|
|
966
986
|
}> & {
|
|
967
|
-
type: "
|
|
987
|
+
type: "diamond";
|
|
968
988
|
} & {
|
|
969
|
-
index: import("
|
|
989
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
970
990
|
}) | (Readonly<{
|
|
971
991
|
id: string;
|
|
972
992
|
x: number;
|
|
973
993
|
y: number;
|
|
974
994
|
strokeColor: string;
|
|
975
995
|
backgroundColor: string;
|
|
976
|
-
fillStyle: import("
|
|
996
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
977
997
|
strokeWidth: number;
|
|
978
|
-
strokeStyle: import("
|
|
998
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
979
999
|
roundness: {
|
|
980
|
-
type: import("
|
|
1000
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
981
1001
|
value?: number | undefined;
|
|
982
1002
|
} | null;
|
|
983
1003
|
roughness: number;
|
|
@@ -988,7 +1008,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
988
1008
|
seed: number;
|
|
989
1009
|
version: number;
|
|
990
1010
|
versionNonce: number;
|
|
991
|
-
index: import("
|
|
1011
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
992
1012
|
isDeleted: boolean;
|
|
993
1013
|
groupIds: readonly string[];
|
|
994
1014
|
frameId: string | null;
|
|
@@ -1001,20 +1021,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1001
1021
|
locked: boolean;
|
|
1002
1022
|
customData?: Record<string, any> | undefined;
|
|
1003
1023
|
}> & {
|
|
1004
|
-
type: "
|
|
1024
|
+
type: "frame";
|
|
1025
|
+
name: string | null;
|
|
1005
1026
|
} & {
|
|
1006
|
-
index: import("
|
|
1027
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1007
1028
|
}) | (Readonly<{
|
|
1008
1029
|
id: string;
|
|
1009
1030
|
x: number;
|
|
1010
1031
|
y: number;
|
|
1011
1032
|
strokeColor: string;
|
|
1012
1033
|
backgroundColor: string;
|
|
1013
|
-
fillStyle: import("
|
|
1034
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1014
1035
|
strokeWidth: number;
|
|
1015
|
-
strokeStyle: import("
|
|
1036
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1016
1037
|
roundness: {
|
|
1017
|
-
type: import("
|
|
1038
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1018
1039
|
value?: number | undefined;
|
|
1019
1040
|
} | null;
|
|
1020
1041
|
roughness: number;
|
|
@@ -1025,7 +1046,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1025
1046
|
seed: number;
|
|
1026
1047
|
version: number;
|
|
1027
1048
|
versionNonce: number;
|
|
1028
|
-
index: import("
|
|
1049
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1029
1050
|
isDeleted: boolean;
|
|
1030
1051
|
groupIds: readonly string[];
|
|
1031
1052
|
frameId: string | null;
|
|
@@ -1038,20 +1059,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1038
1059
|
locked: boolean;
|
|
1039
1060
|
customData?: Record<string, any> | undefined;
|
|
1040
1061
|
}> & {
|
|
1041
|
-
type: "
|
|
1062
|
+
type: "magicframe";
|
|
1063
|
+
name: string | null;
|
|
1042
1064
|
} & {
|
|
1043
|
-
index: import("
|
|
1065
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1044
1066
|
}) | (Readonly<{
|
|
1045
1067
|
id: string;
|
|
1046
1068
|
x: number;
|
|
1047
1069
|
y: number;
|
|
1048
1070
|
strokeColor: string;
|
|
1049
1071
|
backgroundColor: string;
|
|
1050
|
-
fillStyle: import("
|
|
1072
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1051
1073
|
strokeWidth: number;
|
|
1052
|
-
strokeStyle: import("
|
|
1074
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1053
1075
|
roundness: {
|
|
1054
|
-
type: import("
|
|
1076
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1055
1077
|
value?: number | undefined;
|
|
1056
1078
|
} | null;
|
|
1057
1079
|
roughness: number;
|
|
@@ -1062,7 +1084,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1062
1084
|
seed: number;
|
|
1063
1085
|
version: number;
|
|
1064
1086
|
versionNonce: number;
|
|
1065
|
-
index: import("
|
|
1087
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1066
1088
|
isDeleted: boolean;
|
|
1067
1089
|
groupIds: readonly string[];
|
|
1068
1090
|
frameId: string | null;
|
|
@@ -1075,32 +1097,21 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1075
1097
|
locked: boolean;
|
|
1076
1098
|
customData?: Record<string, any> | undefined;
|
|
1077
1099
|
}> & Readonly<{
|
|
1078
|
-
type: "
|
|
1079
|
-
|
|
1080
|
-
fontFamily: number;
|
|
1081
|
-
text: string;
|
|
1082
|
-
rawText: string;
|
|
1083
|
-
textAlign: string;
|
|
1084
|
-
verticalAlign: string;
|
|
1085
|
-
containerId: string | null;
|
|
1086
|
-
originalText: string;
|
|
1087
|
-
autoResize: boolean;
|
|
1088
|
-
lineHeight: number & {
|
|
1089
|
-
_brand: "unitlessLineHeight";
|
|
1090
|
-
};
|
|
1100
|
+
type: "embeddable";
|
|
1101
|
+
scale: [number, number];
|
|
1091
1102
|
}> & {
|
|
1092
|
-
index: import("
|
|
1103
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1093
1104
|
}) | (Readonly<{
|
|
1094
1105
|
id: string;
|
|
1095
1106
|
x: number;
|
|
1096
1107
|
y: number;
|
|
1097
1108
|
strokeColor: string;
|
|
1098
1109
|
backgroundColor: string;
|
|
1099
|
-
fillStyle: import("
|
|
1110
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1100
1111
|
strokeWidth: number;
|
|
1101
|
-
strokeStyle: import("
|
|
1112
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1102
1113
|
roundness: {
|
|
1103
|
-
type: import("
|
|
1114
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1104
1115
|
value?: number | undefined;
|
|
1105
1116
|
} | null;
|
|
1106
1117
|
roughness: number;
|
|
@@ -1111,7 +1122,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1111
1122
|
seed: number;
|
|
1112
1123
|
version: number;
|
|
1113
1124
|
versionNonce: number;
|
|
1114
|
-
index: import("
|
|
1125
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1115
1126
|
isDeleted: boolean;
|
|
1116
1127
|
groupIds: readonly string[];
|
|
1117
1128
|
frameId: string | null;
|
|
@@ -1124,26 +1135,24 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1124
1135
|
locked: boolean;
|
|
1125
1136
|
customData?: Record<string, any> | undefined;
|
|
1126
1137
|
}> & Readonly<{
|
|
1127
|
-
type: "
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
startArrowhead: import("../element/types").Arrowhead | null;
|
|
1133
|
-
endArrowhead: import("../element/types").Arrowhead | null;
|
|
1138
|
+
type: "image";
|
|
1139
|
+
fileId: import("@excalidraw/element/types").FileId | null;
|
|
1140
|
+
status: "pending" | "saved" | "error";
|
|
1141
|
+
scale: [number, number];
|
|
1142
|
+
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
1134
1143
|
}> & {
|
|
1135
|
-
index: import("
|
|
1144
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1136
1145
|
}) | (Readonly<{
|
|
1137
1146
|
id: string;
|
|
1138
1147
|
x: number;
|
|
1139
1148
|
y: number;
|
|
1140
1149
|
strokeColor: string;
|
|
1141
1150
|
backgroundColor: string;
|
|
1142
|
-
fillStyle: import("
|
|
1151
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1143
1152
|
strokeWidth: number;
|
|
1144
|
-
strokeStyle: import("
|
|
1153
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1145
1154
|
roundness: {
|
|
1146
|
-
type: import("
|
|
1155
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1147
1156
|
value?: number | undefined;
|
|
1148
1157
|
} | null;
|
|
1149
1158
|
roughness: number;
|
|
@@ -1154,7 +1163,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1154
1163
|
seed: number;
|
|
1155
1164
|
version: number;
|
|
1156
1165
|
versionNonce: number;
|
|
1157
|
-
index: import("
|
|
1166
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1158
1167
|
isDeleted: boolean;
|
|
1159
1168
|
groupIds: readonly string[];
|
|
1160
1169
|
frameId: string | null;
|
|
@@ -1167,24 +1176,24 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1167
1176
|
locked: boolean;
|
|
1168
1177
|
customData?: Record<string, any> | undefined;
|
|
1169
1178
|
}> & Readonly<{
|
|
1170
|
-
type: "
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1179
|
+
type: "iframe";
|
|
1180
|
+
customData?: {
|
|
1181
|
+
generationData?: import("@excalidraw/element/types").MagicGenerationData | undefined;
|
|
1182
|
+
} | undefined;
|
|
1183
|
+
scale: [number, number];
|
|
1175
1184
|
}> & {
|
|
1176
|
-
index: import("
|
|
1185
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1177
1186
|
}) | (Readonly<{
|
|
1178
1187
|
id: string;
|
|
1179
1188
|
x: number;
|
|
1180
1189
|
y: number;
|
|
1181
1190
|
strokeColor: string;
|
|
1182
1191
|
backgroundColor: string;
|
|
1183
|
-
fillStyle: import("
|
|
1192
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1184
1193
|
strokeWidth: number;
|
|
1185
|
-
strokeStyle: import("
|
|
1194
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1186
1195
|
roundness: {
|
|
1187
|
-
type: import("
|
|
1196
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1188
1197
|
value?: number | undefined;
|
|
1189
1198
|
} | null;
|
|
1190
1199
|
roughness: number;
|
|
@@ -1195,7 +1204,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1195
1204
|
seed: number;
|
|
1196
1205
|
version: number;
|
|
1197
1206
|
versionNonce: number;
|
|
1198
|
-
index: import("
|
|
1207
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1199
1208
|
isDeleted: boolean;
|
|
1200
1209
|
groupIds: readonly string[];
|
|
1201
1210
|
frameId: string | null;
|
|
@@ -1208,24 +1217,32 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1208
1217
|
locked: boolean;
|
|
1209
1218
|
customData?: Record<string, any> | undefined;
|
|
1210
1219
|
}> & Readonly<{
|
|
1211
|
-
type: "
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1220
|
+
type: "text";
|
|
1221
|
+
fontSize: number;
|
|
1222
|
+
fontFamily: number;
|
|
1223
|
+
text: string;
|
|
1224
|
+
rawText: string;
|
|
1225
|
+
textAlign: string;
|
|
1226
|
+
verticalAlign: string;
|
|
1227
|
+
containerId: string | null;
|
|
1228
|
+
originalText: string;
|
|
1229
|
+
autoResize: boolean;
|
|
1230
|
+
lineHeight: number & {
|
|
1231
|
+
_brand: "unitlessLineHeight";
|
|
1232
|
+
};
|
|
1216
1233
|
}> & {
|
|
1217
|
-
index: import("
|
|
1234
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1218
1235
|
}) | (Readonly<{
|
|
1219
1236
|
id: string;
|
|
1220
1237
|
x: number;
|
|
1221
1238
|
y: number;
|
|
1222
1239
|
strokeColor: string;
|
|
1223
1240
|
backgroundColor: string;
|
|
1224
|
-
fillStyle: import("
|
|
1241
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1225
1242
|
strokeWidth: number;
|
|
1226
|
-
strokeStyle: import("
|
|
1243
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1227
1244
|
roundness: {
|
|
1228
|
-
type: import("
|
|
1245
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1229
1246
|
value?: number | undefined;
|
|
1230
1247
|
} | null;
|
|
1231
1248
|
roughness: number;
|
|
@@ -1236,7 +1253,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1236
1253
|
seed: number;
|
|
1237
1254
|
version: number;
|
|
1238
1255
|
versionNonce: number;
|
|
1239
|
-
index: import("
|
|
1256
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1240
1257
|
isDeleted: boolean;
|
|
1241
1258
|
groupIds: readonly string[];
|
|
1242
1259
|
frameId: string | null;
|
|
@@ -1249,21 +1266,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1249
1266
|
locked: boolean;
|
|
1250
1267
|
customData?: Record<string, any> | undefined;
|
|
1251
1268
|
}> & {
|
|
1252
|
-
type: "
|
|
1253
|
-
name: string | null;
|
|
1269
|
+
type: "selection";
|
|
1254
1270
|
} & {
|
|
1255
|
-
index: import("
|
|
1271
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1256
1272
|
}) | (Readonly<{
|
|
1257
1273
|
id: string;
|
|
1258
1274
|
x: number;
|
|
1259
1275
|
y: number;
|
|
1260
1276
|
strokeColor: string;
|
|
1261
1277
|
backgroundColor: string;
|
|
1262
|
-
fillStyle: import("
|
|
1278
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1263
1279
|
strokeWidth: number;
|
|
1264
|
-
strokeStyle: import("
|
|
1280
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1265
1281
|
roundness: {
|
|
1266
|
-
type: import("
|
|
1282
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1267
1283
|
value?: number | undefined;
|
|
1268
1284
|
} | null;
|
|
1269
1285
|
roughness: number;
|
|
@@ -1274,7 +1290,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1274
1290
|
seed: number;
|
|
1275
1291
|
version: number;
|
|
1276
1292
|
versionNonce: number;
|
|
1277
|
-
index: import("
|
|
1293
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1278
1294
|
isDeleted: boolean;
|
|
1279
1295
|
groupIds: readonly string[];
|
|
1280
1296
|
frameId: string | null;
|
|
@@ -1287,21 +1303,20 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1287
1303
|
locked: boolean;
|
|
1288
1304
|
customData?: Record<string, any> | undefined;
|
|
1289
1305
|
}> & {
|
|
1290
|
-
type: "
|
|
1291
|
-
name: string | null;
|
|
1306
|
+
type: "ellipse";
|
|
1292
1307
|
} & {
|
|
1293
|
-
index: import("
|
|
1308
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1294
1309
|
}) | (Readonly<{
|
|
1295
1310
|
id: string;
|
|
1296
1311
|
x: number;
|
|
1297
1312
|
y: number;
|
|
1298
1313
|
strokeColor: string;
|
|
1299
1314
|
backgroundColor: string;
|
|
1300
|
-
fillStyle: import("
|
|
1315
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1301
1316
|
strokeWidth: number;
|
|
1302
|
-
strokeStyle: import("
|
|
1317
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1303
1318
|
roundness: {
|
|
1304
|
-
type: import("
|
|
1319
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1305
1320
|
value?: number | undefined;
|
|
1306
1321
|
} | null;
|
|
1307
1322
|
roughness: number;
|
|
@@ -1312,7 +1327,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1312
1327
|
seed: number;
|
|
1313
1328
|
version: number;
|
|
1314
1329
|
versionNonce: number;
|
|
1315
|
-
index: import("
|
|
1330
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1316
1331
|
isDeleted: boolean;
|
|
1317
1332
|
groupIds: readonly string[];
|
|
1318
1333
|
frameId: string | null;
|
|
@@ -1325,24 +1340,26 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1325
1340
|
locked: boolean;
|
|
1326
1341
|
customData?: Record<string, any> | undefined;
|
|
1327
1342
|
}> & Readonly<{
|
|
1328
|
-
type: "
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1343
|
+
type: "line" | "arrow";
|
|
1344
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1345
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1346
|
+
startBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1347
|
+
endBinding: import("@excalidraw/element/types").PointBinding | null;
|
|
1348
|
+
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1349
|
+
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1333
1350
|
}> & {
|
|
1334
|
-
index: import("
|
|
1351
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1335
1352
|
}) | (Readonly<{
|
|
1336
1353
|
id: string;
|
|
1337
1354
|
x: number;
|
|
1338
1355
|
y: number;
|
|
1339
1356
|
strokeColor: string;
|
|
1340
1357
|
backgroundColor: string;
|
|
1341
|
-
fillStyle: import("
|
|
1358
|
+
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1342
1359
|
strokeWidth: number;
|
|
1343
|
-
strokeStyle: import("
|
|
1360
|
+
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1344
1361
|
roundness: {
|
|
1345
|
-
type: import("
|
|
1362
|
+
type: import("@excalidraw/element/types").RoundnessType;
|
|
1346
1363
|
value?: number | undefined;
|
|
1347
1364
|
} | null;
|
|
1348
1365
|
roughness: number;
|
|
@@ -1353,7 +1370,7 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1353
1370
|
seed: number;
|
|
1354
1371
|
version: number;
|
|
1355
1372
|
versionNonce: number;
|
|
1356
|
-
index: import("
|
|
1373
|
+
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
1357
1374
|
isDeleted: boolean;
|
|
1358
1375
|
groupIds: readonly string[];
|
|
1359
1376
|
frameId: string | null;
|
|
@@ -1366,16 +1383,19 @@ export declare const actionWrapSelectionInFrame: {
|
|
|
1366
1383
|
locked: boolean;
|
|
1367
1384
|
customData?: Record<string, any> | undefined;
|
|
1368
1385
|
}> & Readonly<{
|
|
1369
|
-
type: "
|
|
1370
|
-
|
|
1386
|
+
type: "freedraw";
|
|
1387
|
+
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
1388
|
+
pressures: readonly number[];
|
|
1389
|
+
simulatePressure: boolean;
|
|
1390
|
+
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
1371
1391
|
}> & {
|
|
1372
|
-
index: import("
|
|
1373
|
-
}) | import("
|
|
1392
|
+
index: import("@excalidraw/element/types").FractionalIndex;
|
|
1393
|
+
}) | import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameElement>)[];
|
|
1374
1394
|
appState: {
|
|
1375
1395
|
selectedElementIds: {
|
|
1376
1396
|
[x: string]: true;
|
|
1377
1397
|
};
|
|
1378
|
-
theme: import("
|
|
1398
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
1379
1399
|
};
|
|
1380
1400
|
captureUpdate: "IMMEDIATELY";
|
|
1381
1401
|
};
|