@zsviczian/excalidraw 0.18.0-6 → 0.18.0-60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/excalidraw.development.js +757 -504
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -2
- package/dist/styles.development.css +1080 -437
- package/dist/styles.production.css +26 -22
- package/package.json +15 -4
- package/types/common/src/commonObsidianUtils.d.ts +20 -0
- package/types/common/src/constants.d.ts +42 -18
- package/types/common/src/editorInterface.d.ts +35 -0
- package/types/{excalidraw → common/src}/emitter.d.ts +1 -1
- package/types/common/src/font-metadata.d.ts +4 -2
- package/types/common/src/index.d.ts +4 -0
- package/types/common/src/utility-types.d.ts +5 -0
- package/types/common/src/utils.d.ts +25 -6
- package/types/{excalidraw → common/src}/visualdebug.d.ts +2 -2
- package/types/{excalidraw/scene → element/src}/Scene.d.ts +16 -15
- package/types/element/src/align.d.ts +4 -3
- package/types/element/src/binding.d.ts +62 -41
- package/types/element/src/bounds.d.ts +14 -6
- package/types/element/src/collision.d.ts +23 -13
- package/types/element/src/cropElement.d.ts +1 -1
- package/types/{excalidraw/change.d.ts → element/src/delta.d.ts} +77 -40
- package/types/element/src/distance.d.ts +2 -2
- package/types/element/src/distribute.d.ts +2 -1
- package/types/element/src/dragElements.d.ts +3 -2
- package/types/element/src/duplicate.d.ts +10 -13
- package/types/element/src/elbowArrow.d.ts +1 -1
- package/types/element/src/flowchart.d.ts +3 -2
- package/types/element/src/fractionalIndex.d.ts +9 -3
- package/types/element/src/frame.d.ts +5 -4
- package/types/element/src/groups.d.ts +1 -0
- package/types/element/src/index.d.ts +44 -5
- package/types/element/src/linearElementEditor.d.ts +34 -50
- package/types/element/src/mutateElement.d.ts +11 -3
- package/types/element/src/newElement.d.ts +6 -4
- package/types/element/src/positionElementsOnGrid.d.ts +2 -0
- package/types/element/src/renderElement.d.ts +5 -2
- package/types/element/src/resizeElements.d.ts +6 -5
- package/types/element/src/resizeTest.d.ts +5 -4
- package/types/element/src/selection.d.ts +11 -5
- package/types/element/src/shape.d.ts +42 -0
- package/types/element/src/sizeHelpers.d.ts +2 -2
- package/types/element/src/store.d.ts +237 -0
- package/types/element/src/textElement.d.ts +4 -3
- package/types/element/src/transformHandles.d.ts +5 -4
- package/types/element/src/typeChecks.d.ts +20 -3
- package/types/element/src/types.d.ts +31 -12
- package/types/element/src/utils.d.ts +17 -6
- package/types/element/src/zindex.d.ts +8 -2
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +88 -58
- package/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/types/excalidraw/actions/actionBoundText.d.ts +61 -41
- package/types/excalidraw/actions/actionCanvas.d.ts +430 -519
- package/types/excalidraw/actions/actionClipboard.d.ts +81 -944
- package/types/excalidraw/actions/actionCropEditor.d.ts +30 -20
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +97 -68
- package/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/types/excalidraw/actions/actionElementLink.d.ts +28 -20
- package/types/excalidraw/actions/actionElementLock.d.ts +73 -54
- package/types/excalidraw/actions/actionEmbeddable.d.ts +30 -20
- package/types/excalidraw/actions/actionExport.d.ts +142 -1185
- package/types/excalidraw/actions/actionFinalize.d.ts +10 -424
- package/types/excalidraw/actions/actionFlip.d.ts +2 -2
- package/types/excalidraw/actions/actionFrame.d.ts +176 -129
- package/types/excalidraw/actions/actionGroup.d.ts +60 -40
- package/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +564 -22
- package/types/excalidraw/actions/actionLink.d.ts +27 -17
- package/types/excalidraw/actions/actionMenu.d.ts +27 -457
- package/types/excalidraw/actions/actionNavigate.d.ts +21 -431
- package/types/excalidraw/actions/actionProperties.d.ts +169 -2702
- package/types/excalidraw/actions/actionSelectAll.d.ts +30 -20
- package/types/excalidraw/actions/actionStyles.d.ts +31 -21
- package/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -19
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -19
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +27 -224
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +29 -19
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +30 -20
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +30 -20
- package/types/excalidraw/actions/actionTrayMenu.d.ts +229 -0
- package/types/excalidraw/actions/actionZindex.d.ts +2 -2
- package/types/excalidraw/actions/index.d.ts +4 -2
- package/types/excalidraw/actions/manager.d.ts +1 -1
- package/types/excalidraw/actions/register.d.ts +1 -1
- package/types/excalidraw/actions/types.d.ts +7 -6
- package/types/excalidraw/appState.d.ts +22 -7
- package/types/excalidraw/clipboard.d.ts +68 -5
- package/types/excalidraw/components/Actions.d.ts +20 -7
- package/types/excalidraw/components/App.d.ts +68 -46
- package/types/excalidraw/components/ButtonIcon.d.ts +1 -0
- package/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -1
- package/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +5 -1
- package/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/Picker.d.ts +4 -3
- package/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +3 -3
- package/types/excalidraw/components/ColorPicker/ShadeList.d.ts +3 -2
- package/types/excalidraw/components/ColorPicker/TopPicks.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
- package/types/excalidraw/components/CommandPalette/types.d.ts +1 -2
- package/types/excalidraw/components/ConvertElementTypePopup.d.ts +23 -0
- package/types/excalidraw/components/ElementLinkDialog.d.ts +4 -3
- package/types/excalidraw/components/Ellipsify.d.ts +3 -0
- package/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -1
- package/types/excalidraw/components/FilledButton.d.ts +1 -1
- package/types/excalidraw/components/FixedSideContainer.d.ts +2 -1
- package/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
- package/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
- package/types/excalidraw/components/HintViewer.d.ts +4 -3
- package/types/excalidraw/components/InlineIcon.d.ts +3 -1
- package/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/types/excalidraw/components/LinkButton.d.ts +4 -0
- package/types/excalidraw/components/MobileMenu.d.ts +4 -5
- package/types/excalidraw/components/MobileToolBar.d.ts +10 -0
- package/types/excalidraw/components/Popover.d.ts +2 -1
- package/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
- package/types/excalidraw/components/{ButtonIconSelect.d.ts → RadioSelection.d.ts} +1 -1
- package/types/excalidraw/components/Range.d.ts +3 -3
- package/types/excalidraw/components/Section.d.ts +1 -0
- package/types/excalidraw/components/Stats/Angle.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/types/excalidraw/components/Stats/CanvasGridSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/types/excalidraw/components/Stats/Dimension.d.ts +1 -1
- package/types/excalidraw/components/Stats/DragInput.d.ts +12 -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 +1 -1
- package/types/excalidraw/components/Stats/MultiFontSize.d.ts +1 -1
- package/types/excalidraw/components/Stats/MultiPosition.d.ts +1 -1
- package/types/excalidraw/components/Stats/Position.d.ts +1 -1
- package/types/excalidraw/components/Stats/utils.d.ts +4 -11
- package/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -2
- package/types/excalidraw/components/TextField.d.ts +1 -0
- package/types/excalidraw/components/ToolPopover.d.ts +25 -0
- package/types/excalidraw/components/TrayMenu.d.ts +26 -0
- package/types/excalidraw/components/UnlockPopup.d.ts +8 -0
- package/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +7 -3
- package/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +4 -2
- package/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +2 -1
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/types/excalidraw/components/hyperlink/helpers.d.ts +2 -1
- package/types/excalidraw/components/icons.d.ts +17 -0
- package/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +14 -1
- package/types/excalidraw/components/main-menu/MainMenu.d.ts +0 -3
- package/types/excalidraw/components/shapes.d.ts +115 -5
- package/types/excalidraw/data/blob.d.ts +3 -7
- package/types/excalidraw/data/reconcile.d.ts +1 -0
- package/types/excalidraw/data/restore.d.ts +7 -2
- package/types/excalidraw/data/transform.d.ts +1 -1
- package/types/excalidraw/data/types.d.ts +4 -1
- package/types/excalidraw/editor-jotai.d.ts +6 -6
- package/types/excalidraw/eraser/index.d.ts +0 -2
- package/types/excalidraw/fonts/Fonts.d.ts +1 -1
- package/types/excalidraw/history.d.ts +30 -22
- package/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/types/excalidraw/hooks/useOutsideClick.d.ts +3 -1
- package/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
- package/types/excalidraw/index.d.ts +16 -15
- package/types/excalidraw/lasso/index.d.ts +1 -0
- package/types/excalidraw/lasso/utils.d.ts +2 -1
- package/types/excalidraw/obsidianUtils.d.ts +22 -9
- package/types/excalidraw/renderer/animation.d.ts +12 -0
- package/types/excalidraw/renderer/helpers.d.ts +3 -2
- package/types/excalidraw/renderer/interactiveScene.d.ts +5 -13
- package/types/excalidraw/renderer/staticScene.d.ts +4 -1
- package/types/excalidraw/scene/Renderer.d.ts +1 -2
- package/types/excalidraw/scene/index.d.ts +2 -2
- package/types/excalidraw/scene/scrollbars.d.ts +2 -3
- package/types/excalidraw/scene/types.d.ts +17 -3
- package/types/excalidraw/shortcut.d.ts +1 -0
- package/types/excalidraw/snapping.d.ts +2 -2
- package/types/excalidraw/types.d.ts +83 -33
- package/types/excalidraw/webpack.dev.config.d.ts +2 -0
- package/types/excalidraw/webpack.prod.config.d.ts +2 -0
- package/types/excalidraw/wysiwyg/textWysiwyg.d.ts +3 -1
- package/types/math/src/angle.d.ts +2 -0
- package/types/math/src/constants.d.ts +3 -0
- package/types/math/src/curve.d.ts +34 -0
- package/types/math/src/index.d.ts +1 -0
- package/types/math/src/point.d.ts +1 -1
- package/types/math/src/rectangle.d.ts +2 -0
- package/types/math/src/segment.d.ts +1 -0
- package/types/math/src/vector.d.ts +8 -2
- package/types/utils/src/bbox.d.ts +1 -1
- package/types/utils/src/index.d.ts +1 -1
- package/types/utils/src/withinBounds.d.ts +1 -1
- package/types/element/src/Shape.d.ts +0 -17
- package/types/element/src/ShapeCache.d.ts +0 -25
- package/types/element/src/shapes.d.ts +0 -23
- package/types/excalidraw/components/ButtonSelect.d.ts +0 -9
- package/types/excalidraw/store.d.ts +0 -129
- package/types/utils/src/collision.d.ts +0 -8
|
@@ -9,7 +9,7 @@ export declare const actionAlignTop: {
|
|
|
9
9
|
category: "element";
|
|
10
10
|
};
|
|
11
11
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
12
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
12
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
elements: ExcalidrawElement[];
|
|
15
15
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -27,7 +27,7 @@ export declare const actionAlignBottom: {
|
|
|
27
27
|
category: "element";
|
|
28
28
|
};
|
|
29
29
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
30
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
30
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
31
31
|
appState: Readonly<AppState>;
|
|
32
32
|
elements: ExcalidrawElement[];
|
|
33
33
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -45,7 +45,7 @@ export declare const actionAlignLeft: {
|
|
|
45
45
|
category: "element";
|
|
46
46
|
};
|
|
47
47
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
48
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
48
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
49
49
|
appState: Readonly<AppState>;
|
|
50
50
|
elements: ExcalidrawElement[];
|
|
51
51
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -63,7 +63,7 @@ export declare const actionAlignRight: {
|
|
|
63
63
|
category: "element";
|
|
64
64
|
};
|
|
65
65
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
66
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
66
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
67
67
|
appState: Readonly<AppState>;
|
|
68
68
|
elements: ExcalidrawElement[];
|
|
69
69
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -81,7 +81,7 @@ export declare const actionAlignVerticallyCentered: {
|
|
|
81
81
|
category: "element";
|
|
82
82
|
};
|
|
83
83
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
84
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
84
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
85
85
|
appState: Readonly<AppState>;
|
|
86
86
|
elements: ExcalidrawElement[];
|
|
87
87
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -98,7 +98,7 @@ export declare const actionAlignHorizontallyCentered: {
|
|
|
98
98
|
category: "element";
|
|
99
99
|
};
|
|
100
100
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
101
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
101
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
102
102
|
appState: Readonly<AppState>;
|
|
103
103
|
elements: ExcalidrawElement[];
|
|
104
104
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -8,7 +8,7 @@ export declare const actionUnbindText: {
|
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
10
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
11
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
12
12
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
13
13
|
appState: Readonly<AppState>;
|
|
14
14
|
captureUpdate: "IMMEDIATELY";
|
|
@@ -23,7 +23,7 @@ export declare const actionBindText: {
|
|
|
23
23
|
category: "element";
|
|
24
24
|
};
|
|
25
25
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
26
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
26
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
27
27
|
elements: ExcalidrawElement[];
|
|
28
28
|
appState: {
|
|
29
29
|
selectedElementIds: {
|
|
@@ -47,23 +47,28 @@ export declare const actionBindText: {
|
|
|
47
47
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
48
48
|
isBindingEnabled: boolean;
|
|
49
49
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
50
|
-
|
|
50
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
51
51
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
52
52
|
frameRendering: {
|
|
53
53
|
enabled: boolean;
|
|
54
54
|
name: boolean;
|
|
55
55
|
outline: boolean;
|
|
56
56
|
clip: boolean;
|
|
57
|
+
markerName: boolean;
|
|
58
|
+
markerEnabled: boolean;
|
|
57
59
|
};
|
|
58
60
|
editingFrame: string | null;
|
|
59
61
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
60
62
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
61
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
62
63
|
activeTool: {
|
|
63
64
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
65
|
locked: boolean;
|
|
65
66
|
fromSelection: boolean;
|
|
66
67
|
} & import("../types").ActiveTool;
|
|
68
|
+
preferredSelectionTool: {
|
|
69
|
+
type: "selection" | "lasso";
|
|
70
|
+
initialized: boolean;
|
|
71
|
+
};
|
|
67
72
|
penMode: boolean;
|
|
68
73
|
penDetected: boolean;
|
|
69
74
|
exportBackground: boolean;
|
|
@@ -85,6 +90,7 @@ export declare const actionBindText: {
|
|
|
85
90
|
currentHoveredFontFamily: number | null;
|
|
86
91
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
87
92
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
93
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
88
94
|
viewBackgroundColor: string;
|
|
89
95
|
scrollX: number;
|
|
90
96
|
scrollY: number;
|
|
@@ -96,19 +102,21 @@ export declare const actionBindText: {
|
|
|
96
102
|
zoom: Readonly<{
|
|
97
103
|
value: import("../types").NormalizedZoomValue;
|
|
98
104
|
}>;
|
|
99
|
-
openMenu: "
|
|
100
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
105
|
+
openMenu: "canvas" | "shape" | null;
|
|
106
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
101
107
|
openSidebar: {
|
|
102
108
|
name: string;
|
|
103
109
|
tab?: string | undefined;
|
|
104
110
|
} | null;
|
|
105
111
|
openDialog: {
|
|
106
|
-
name: "
|
|
112
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
107
113
|
} | {
|
|
108
114
|
name: "ttd";
|
|
109
115
|
tab: "mermaid" | "text-to-diagram";
|
|
110
116
|
} | {
|
|
111
117
|
name: "commandPalette";
|
|
118
|
+
} | {
|
|
119
|
+
name: "settings";
|
|
112
120
|
} | {
|
|
113
121
|
name: "elementLinkSelector";
|
|
114
122
|
sourceElementId: string;
|
|
@@ -175,10 +183,8 @@ export declare const actionBindText: {
|
|
|
175
183
|
shown: true;
|
|
176
184
|
data: import("../charts").Spreadsheet;
|
|
177
185
|
};
|
|
178
|
-
|
|
179
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
186
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
180
187
|
linkOpacity: number;
|
|
181
|
-
trayModeEnabled: boolean;
|
|
182
188
|
colorPalette?: {
|
|
183
189
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
184
190
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -191,6 +197,7 @@ export declare const actionBindText: {
|
|
|
191
197
|
} | undefined;
|
|
192
198
|
allowWheelZoom?: boolean | undefined;
|
|
193
199
|
allowPinchZoom?: boolean | undefined;
|
|
200
|
+
disableContextMenu: boolean;
|
|
194
201
|
pinnedScripts?: string[] | undefined;
|
|
195
202
|
customPens?: any[] | undefined;
|
|
196
203
|
currentStrokeOptions?: any;
|
|
@@ -199,6 +206,10 @@ export declare const actionBindText: {
|
|
|
199
206
|
Bold: string;
|
|
200
207
|
Regular: string;
|
|
201
208
|
};
|
|
209
|
+
gridDirection: {
|
|
210
|
+
horizontal: boolean;
|
|
211
|
+
vertical: boolean;
|
|
212
|
+
};
|
|
202
213
|
highlightSearchResult: boolean;
|
|
203
214
|
dynamicStyle: {
|
|
204
215
|
[x: string]: string;
|
|
@@ -209,7 +220,7 @@ export declare const actionBindText: {
|
|
|
209
220
|
nameColor: string;
|
|
210
221
|
};
|
|
211
222
|
invertBindingBehaviour: boolean;
|
|
212
|
-
selectedLinearElement: import("@excalidraw/element
|
|
223
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
213
224
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
214
225
|
originSnapOffset: {
|
|
215
226
|
x: number;
|
|
@@ -220,16 +231,15 @@ export declare const actionBindText: {
|
|
|
220
231
|
followedBy: Set<import("../types").SocketId>;
|
|
221
232
|
isCropping: boolean;
|
|
222
233
|
croppingElementId: string | null;
|
|
223
|
-
searchMatches:
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
}[];
|
|
234
|
+
searchMatches: Readonly<{
|
|
235
|
+
focusedId: string | null;
|
|
236
|
+
matches: readonly import("../types").SearchMatch[];
|
|
237
|
+
}> | null;
|
|
238
|
+
activeLockedId: string | null;
|
|
239
|
+
lockedMultiSelections: {
|
|
240
|
+
[groupId: string]: true;
|
|
241
|
+
};
|
|
242
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
233
243
|
};
|
|
234
244
|
captureUpdate: "IMMEDIATELY";
|
|
235
245
|
};
|
|
@@ -243,7 +253,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
243
253
|
category: "element";
|
|
244
254
|
};
|
|
245
255
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
246
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
256
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
247
257
|
elements: readonly ExcalidrawElement[];
|
|
248
258
|
appState: {
|
|
249
259
|
selectedElementIds: Mutable<Readonly<{
|
|
@@ -267,23 +277,28 @@ export declare const actionWrapTextInContainer: {
|
|
|
267
277
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
268
278
|
isBindingEnabled: boolean;
|
|
269
279
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
270
|
-
|
|
280
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
271
281
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
272
282
|
frameRendering: {
|
|
273
283
|
enabled: boolean;
|
|
274
284
|
name: boolean;
|
|
275
285
|
outline: boolean;
|
|
276
286
|
clip: boolean;
|
|
287
|
+
markerName: boolean;
|
|
288
|
+
markerEnabled: boolean;
|
|
277
289
|
};
|
|
278
290
|
editingFrame: string | null;
|
|
279
291
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
280
292
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
281
|
-
editingLinearElement: import("@excalidraw/element/linearElementEditor").LinearElementEditor | null;
|
|
282
293
|
activeTool: {
|
|
283
294
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
284
295
|
locked: boolean;
|
|
285
296
|
fromSelection: boolean;
|
|
286
297
|
} & import("../types").ActiveTool;
|
|
298
|
+
preferredSelectionTool: {
|
|
299
|
+
type: "selection" | "lasso";
|
|
300
|
+
initialized: boolean;
|
|
301
|
+
};
|
|
287
302
|
penMode: boolean;
|
|
288
303
|
penDetected: boolean;
|
|
289
304
|
exportBackground: boolean;
|
|
@@ -305,6 +320,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
305
320
|
currentHoveredFontFamily: number | null;
|
|
306
321
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
307
322
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
323
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
308
324
|
viewBackgroundColor: string;
|
|
309
325
|
scrollX: number;
|
|
310
326
|
scrollY: number;
|
|
@@ -316,19 +332,21 @@ export declare const actionWrapTextInContainer: {
|
|
|
316
332
|
zoom: Readonly<{
|
|
317
333
|
value: import("../types").NormalizedZoomValue;
|
|
318
334
|
}>;
|
|
319
|
-
openMenu: "
|
|
320
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
335
|
+
openMenu: "canvas" | "shape" | null;
|
|
336
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
321
337
|
openSidebar: {
|
|
322
338
|
name: string;
|
|
323
339
|
tab?: string | undefined;
|
|
324
340
|
} | null;
|
|
325
341
|
openDialog: {
|
|
326
|
-
name: "
|
|
342
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
327
343
|
} | {
|
|
328
344
|
name: "ttd";
|
|
329
345
|
tab: "mermaid" | "text-to-diagram";
|
|
330
346
|
} | {
|
|
331
347
|
name: "commandPalette";
|
|
348
|
+
} | {
|
|
349
|
+
name: "settings";
|
|
332
350
|
} | {
|
|
333
351
|
name: "elementLinkSelector";
|
|
334
352
|
sourceElementId: string;
|
|
@@ -395,10 +413,8 @@ export declare const actionWrapTextInContainer: {
|
|
|
395
413
|
shown: true;
|
|
396
414
|
data: import("../charts").Spreadsheet;
|
|
397
415
|
};
|
|
398
|
-
|
|
399
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
416
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
400
417
|
linkOpacity: number;
|
|
401
|
-
trayModeEnabled: boolean;
|
|
402
418
|
colorPalette?: {
|
|
403
419
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
404
420
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -411,6 +427,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
411
427
|
} | undefined;
|
|
412
428
|
allowWheelZoom?: boolean | undefined;
|
|
413
429
|
allowPinchZoom?: boolean | undefined;
|
|
430
|
+
disableContextMenu: boolean;
|
|
414
431
|
pinnedScripts?: string[] | undefined;
|
|
415
432
|
customPens?: any[] | undefined;
|
|
416
433
|
currentStrokeOptions?: any;
|
|
@@ -419,6 +436,10 @@ export declare const actionWrapTextInContainer: {
|
|
|
419
436
|
Bold: string;
|
|
420
437
|
Regular: string;
|
|
421
438
|
};
|
|
439
|
+
gridDirection: {
|
|
440
|
+
horizontal: boolean;
|
|
441
|
+
vertical: boolean;
|
|
442
|
+
};
|
|
422
443
|
highlightSearchResult: boolean;
|
|
423
444
|
dynamicStyle: {
|
|
424
445
|
[x: string]: string;
|
|
@@ -429,7 +450,7 @@ export declare const actionWrapTextInContainer: {
|
|
|
429
450
|
nameColor: string;
|
|
430
451
|
};
|
|
431
452
|
invertBindingBehaviour: boolean;
|
|
432
|
-
selectedLinearElement: import("@excalidraw/element
|
|
453
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
433
454
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
434
455
|
originSnapOffset: {
|
|
435
456
|
x: number;
|
|
@@ -440,16 +461,15 @@ export declare const actionWrapTextInContainer: {
|
|
|
440
461
|
followedBy: Set<import("../types").SocketId>;
|
|
441
462
|
isCropping: boolean;
|
|
442
463
|
croppingElementId: string | null;
|
|
443
|
-
searchMatches:
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
}[];
|
|
464
|
+
searchMatches: Readonly<{
|
|
465
|
+
focusedId: string | null;
|
|
466
|
+
matches: readonly import("../types").SearchMatch[];
|
|
467
|
+
}> | null;
|
|
468
|
+
activeLockedId: string | null;
|
|
469
|
+
lockedMultiSelections: {
|
|
470
|
+
[groupId: string]: true;
|
|
471
|
+
};
|
|
472
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
453
473
|
};
|
|
454
474
|
captureUpdate: "IMMEDIATELY";
|
|
455
475
|
};
|