@zsviczian/excalidraw 0.18.0-5 → 0.18.0-51
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 +746 -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 +14 -3
- package/types/common/src/commonObsidianUtils.d.ts +13 -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 +2 -0
- package/types/common/src/utility-types.d.ts +5 -0
- package/types/common/src/utils.d.ts +20 -5
- 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 +27 -17
- package/types/element/src/bounds.d.ts +14 -6
- package/types/element/src/collision.d.ts +18 -12
- 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 -2
- package/types/element/src/linearElementEditor.d.ts +23 -36
- 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 +4 -1
- 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 +5 -3
- package/types/element/src/transformHandles.d.ts +5 -4
- package/types/element/src/typeChecks.d.ts +19 -1
- package/types/element/src/types.d.ts +25 -2
- package/types/element/src/utils.d.ts +16 -6
- package/types/element/src/zindex.d.ts +1 -1
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +75 -54
- package/types/excalidraw/actions/actionBoundText.d.ts +50 -36
- package/types/excalidraw/actions/actionCanvas.d.ts +388 -282
- package/types/excalidraw/actions/actionClipboard.d.ts +151 -107
- package/types/excalidraw/actions/actionCropEditor.d.ts +25 -18
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +77 -55
- package/types/excalidraw/actions/actionDuplicateSelection.d.ts +1 -1
- package/types/excalidraw/actions/actionElementLink.d.ts +25 -18
- package/types/excalidraw/actions/actionElementLock.d.ts +65 -52
- package/types/excalidraw/actions/actionEmbeddable.d.ts +25 -18
- package/types/excalidraw/actions/actionExport.d.ts +237 -174
- package/types/excalidraw/actions/actionFinalize.d.ts +307 -43
- package/types/excalidraw/actions/actionFrame.d.ts +157 -120
- package/types/excalidraw/actions/actionGroup.d.ts +50 -36
- package/types/excalidraw/actions/actionHistory.d.ts +1 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +563 -20
- package/types/excalidraw/actions/actionLink.d.ts +23 -16
- package/types/excalidraw/actions/actionMenu.d.ts +25 -456
- package/types/excalidraw/actions/actionNavigate.d.ts +49 -35
- package/types/excalidraw/actions/actionProperties.d.ts +629 -273
- package/types/excalidraw/actions/actionSelectAll.d.ts +25 -18
- package/types/excalidraw/actions/actionStyles.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -223
- package/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +19 -0
- package/types/excalidraw/actions/actionToggleStats.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +25 -18
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +26 -19
- package/types/excalidraw/actions/actionTrayMenu.d.ts +226 -0
- package/types/excalidraw/actions/index.d.ts +4 -2
- package/types/excalidraw/actions/types.d.ts +4 -3
- package/types/excalidraw/appState.d.ts +24 -10
- package/types/excalidraw/clipboard.d.ts +68 -5
- package/types/excalidraw/components/Actions.d.ts +20 -7
- package/types/excalidraw/components/App.d.ts +63 -38
- 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/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 +4 -2
- 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 +6 -1
- 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 +12 -0
- 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 +15 -14
- package/types/excalidraw/lasso/index.d.ts +1 -0
- package/types/excalidraw/lasso/utils.d.ts +3 -3
- package/types/excalidraw/obsidianUtils.d.ts +22 -4
- package/types/excalidraw/renderer/helpers.d.ts +7 -2
- package/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- 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 +5 -3
- package/types/excalidraw/shortcut.d.ts +1 -0
- package/types/excalidraw/snapping.d.ts +2 -2
- package/types/excalidraw/types.d.ts +68 -30
- 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/types.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/excalidraw/visualdebug.d.ts +0 -41
- package/types/utils/src/collision.d.ts +0 -8
|
@@ -1,14 +1,264 @@
|
|
|
1
|
-
import { LinearElementEditor } from "@excalidraw/element
|
|
1
|
+
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
|
+
import type { LocalPoint } from "@excalidraw/math";
|
|
3
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
|
|
2
4
|
import type { AppState } from "../types";
|
|
3
5
|
export declare const actionFinalize: {
|
|
4
6
|
name: "finalize";
|
|
5
7
|
label: string;
|
|
6
8
|
trackEvent: false;
|
|
7
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>,
|
|
9
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, data: any, app: import("../types").AppClassProperties) => {
|
|
10
|
+
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
11
|
+
appState: {
|
|
12
|
+
selectedLinearElement: {
|
|
13
|
+
selectedPointsIndices: null;
|
|
14
|
+
elementId: string & {
|
|
15
|
+
_brand: "excalidrawLinearElementId";
|
|
16
|
+
};
|
|
17
|
+
pointerDownState: Readonly<{
|
|
18
|
+
prevSelectedPointsIndices: readonly number[] | null;
|
|
19
|
+
lastClickedPoint: number;
|
|
20
|
+
lastClickedIsEndPoint: boolean;
|
|
21
|
+
origin: Readonly<{
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}> | null;
|
|
25
|
+
segmentMidpoint: {
|
|
26
|
+
value: import("@excalidraw/math").GlobalPoint | null;
|
|
27
|
+
index: number | null;
|
|
28
|
+
added: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
isDragging: boolean;
|
|
32
|
+
lastUncommittedPoint: LocalPoint | null;
|
|
33
|
+
pointerOffset: Readonly<{
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
}>;
|
|
37
|
+
startBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
38
|
+
endBindingElement: import("@excalidraw/element/types").ExcalidrawBindableElement | "keep" | null;
|
|
39
|
+
hoverPointIndex: number;
|
|
40
|
+
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
41
|
+
elbowed: boolean;
|
|
42
|
+
customLineAngle: number | null;
|
|
43
|
+
isEditing: boolean;
|
|
44
|
+
};
|
|
45
|
+
suggestedBindings: never[];
|
|
46
|
+
contextMenu: {
|
|
47
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
48
|
+
top: number;
|
|
49
|
+
left: number;
|
|
50
|
+
} | null;
|
|
51
|
+
showWelcomeScreen: boolean;
|
|
52
|
+
isLoading: boolean;
|
|
53
|
+
errorMessage: import("react").ReactNode;
|
|
54
|
+
activeEmbeddable: {
|
|
55
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
56
|
+
state: "active" | "hover";
|
|
57
|
+
} | null;
|
|
58
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
59
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
61
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
|
+
isBindingEnabled: boolean;
|
|
63
|
+
startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
64
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
65
|
+
frameRendering: {
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
name: boolean;
|
|
68
|
+
outline: boolean;
|
|
69
|
+
clip: boolean;
|
|
70
|
+
markerName: boolean;
|
|
71
|
+
markerEnabled: boolean;
|
|
72
|
+
};
|
|
73
|
+
editingFrame: string | null;
|
|
74
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
75
|
+
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
76
|
+
activeTool: {
|
|
77
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
78
|
+
locked: boolean;
|
|
79
|
+
fromSelection: boolean;
|
|
80
|
+
} & import("../types").ActiveTool;
|
|
81
|
+
preferredSelectionTool: {
|
|
82
|
+
type: "selection" | "lasso";
|
|
83
|
+
initialized: boolean;
|
|
84
|
+
};
|
|
85
|
+
penMode: boolean;
|
|
86
|
+
penDetected: boolean;
|
|
87
|
+
exportBackground: boolean;
|
|
88
|
+
exportEmbedScene: boolean;
|
|
89
|
+
exportWithDarkMode: boolean;
|
|
90
|
+
exportScale: number;
|
|
91
|
+
currentItemStrokeColor: string;
|
|
92
|
+
currentItemBackgroundColor: string;
|
|
93
|
+
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
94
|
+
currentItemStrokeWidth: number;
|
|
95
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
96
|
+
currentItemRoughness: number;
|
|
97
|
+
currentItemOpacity: number;
|
|
98
|
+
currentItemFontFamily: number;
|
|
99
|
+
currentItemFontSize: number;
|
|
100
|
+
currentItemTextAlign: string;
|
|
101
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
102
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
103
|
+
currentHoveredFontFamily: number | null;
|
|
104
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
105
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
106
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
107
|
+
viewBackgroundColor: string;
|
|
108
|
+
scrollX: number;
|
|
109
|
+
scrollY: number;
|
|
110
|
+
cursorButton: "up" | "down";
|
|
111
|
+
scrolledOutside: boolean;
|
|
112
|
+
name: string | null;
|
|
113
|
+
isResizing: boolean;
|
|
114
|
+
isRotating: boolean;
|
|
115
|
+
zoom: Readonly<{
|
|
116
|
+
value: import("../types").NormalizedZoomValue;
|
|
117
|
+
}>;
|
|
118
|
+
openMenu: "canvas" | "shape" | null;
|
|
119
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
120
|
+
openSidebar: {
|
|
121
|
+
name: string;
|
|
122
|
+
tab?: string | undefined;
|
|
123
|
+
} | null;
|
|
124
|
+
openDialog: {
|
|
125
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
126
|
+
} | {
|
|
127
|
+
name: "ttd";
|
|
128
|
+
tab: "mermaid" | "text-to-diagram";
|
|
129
|
+
} | {
|
|
130
|
+
name: "commandPalette";
|
|
131
|
+
} | {
|
|
132
|
+
name: "elementLinkSelector";
|
|
133
|
+
sourceElementId: string;
|
|
134
|
+
} | null;
|
|
135
|
+
defaultSidebarDockedPreference: boolean;
|
|
136
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
137
|
+
selectedElementIds: Readonly<{
|
|
138
|
+
[id: string]: true;
|
|
139
|
+
}>;
|
|
140
|
+
hoveredElementIds: Readonly<{
|
|
141
|
+
[id: string]: true;
|
|
142
|
+
}>;
|
|
143
|
+
previousSelectedElementIds: {
|
|
144
|
+
[id: string]: true;
|
|
145
|
+
};
|
|
146
|
+
selectedElementsAreBeingDragged: boolean;
|
|
147
|
+
shouldCacheIgnoreZoom: boolean;
|
|
148
|
+
toast: {
|
|
149
|
+
message: string;
|
|
150
|
+
closable?: boolean | undefined;
|
|
151
|
+
duration?: number | undefined;
|
|
152
|
+
} | null;
|
|
153
|
+
zenModeEnabled: boolean;
|
|
154
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
155
|
+
gridSize: number;
|
|
156
|
+
gridStep: number;
|
|
157
|
+
gridModeEnabled: boolean;
|
|
158
|
+
viewModeEnabled: boolean;
|
|
159
|
+
selectedGroupIds: {
|
|
160
|
+
[groupId: string]: boolean;
|
|
161
|
+
};
|
|
162
|
+
editingGroupId: string | null;
|
|
163
|
+
width: number;
|
|
164
|
+
height: number;
|
|
165
|
+
offsetTop: number;
|
|
166
|
+
offsetLeft: number;
|
|
167
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
168
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
169
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
170
|
+
button?: "up" | "down" | undefined;
|
|
171
|
+
selectedElementIds?: Readonly<{
|
|
172
|
+
[id: string]: true;
|
|
173
|
+
}> | undefined;
|
|
174
|
+
username?: string | null | undefined;
|
|
175
|
+
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
176
|
+
color?: {
|
|
177
|
+
background: string;
|
|
178
|
+
stroke: string;
|
|
179
|
+
} | undefined;
|
|
180
|
+
avatarUrl?: string | undefined;
|
|
181
|
+
id?: string | undefined;
|
|
182
|
+
socketId?: import("../types").SocketId | undefined;
|
|
183
|
+
isCurrentUser?: boolean | undefined;
|
|
184
|
+
isInCall?: boolean | undefined;
|
|
185
|
+
isSpeaking?: boolean | undefined;
|
|
186
|
+
isMuted?: boolean | undefined;
|
|
187
|
+
}>>;
|
|
188
|
+
stats: {
|
|
189
|
+
open: boolean;
|
|
190
|
+
panels: number;
|
|
191
|
+
};
|
|
192
|
+
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
193
|
+
pasteDialog: {
|
|
194
|
+
shown: false;
|
|
195
|
+
data: null;
|
|
196
|
+
} | {
|
|
197
|
+
shown: true;
|
|
198
|
+
data: import("../charts").Spreadsheet;
|
|
199
|
+
};
|
|
200
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
201
|
+
linkOpacity: number;
|
|
202
|
+
colorPalette?: {
|
|
203
|
+
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
204
|
+
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
205
|
+
elementStroke: import("@excalidraw/common").ColorPaletteCustom;
|
|
206
|
+
topPicks: {
|
|
207
|
+
canvasBackground: [string, string, string, string, string];
|
|
208
|
+
elementStroke: [string, string, string, string, string];
|
|
209
|
+
elementBackground: [string, string, string, string, string];
|
|
210
|
+
};
|
|
211
|
+
} | undefined;
|
|
212
|
+
allowWheelZoom?: boolean | undefined;
|
|
213
|
+
allowPinchZoom?: boolean | undefined;
|
|
214
|
+
disableContextMenu: boolean;
|
|
215
|
+
pinnedScripts?: string[] | undefined;
|
|
216
|
+
customPens?: any[] | undefined;
|
|
217
|
+
currentStrokeOptions?: any;
|
|
218
|
+
resetCustomPen?: any;
|
|
219
|
+
gridColor: {
|
|
220
|
+
Bold: string;
|
|
221
|
+
Regular: string;
|
|
222
|
+
};
|
|
223
|
+
gridDirection: {
|
|
224
|
+
horizontal: boolean;
|
|
225
|
+
vertical: boolean;
|
|
226
|
+
};
|
|
227
|
+
highlightSearchResult: boolean;
|
|
228
|
+
dynamicStyle: {
|
|
229
|
+
[x: string]: string;
|
|
230
|
+
};
|
|
231
|
+
frameColor: {
|
|
232
|
+
stroke: string;
|
|
233
|
+
fill: string;
|
|
234
|
+
nameColor: string;
|
|
235
|
+
};
|
|
236
|
+
invertBindingBehaviour: boolean;
|
|
237
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
238
|
+
originSnapOffset: {
|
|
239
|
+
x: number;
|
|
240
|
+
y: number;
|
|
241
|
+
} | null;
|
|
242
|
+
objectsSnapModeEnabled: boolean;
|
|
243
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
244
|
+
followedBy: Set<import("../types").SocketId>;
|
|
245
|
+
isCropping: boolean;
|
|
246
|
+
croppingElementId: string | null;
|
|
247
|
+
searchMatches: Readonly<{
|
|
248
|
+
focusedId: string | null;
|
|
249
|
+
matches: readonly import("../types").SearchMatch[];
|
|
250
|
+
}> | null;
|
|
251
|
+
activeLockedId: string | null;
|
|
252
|
+
lockedMultiSelections: {
|
|
253
|
+
[groupId: string]: true;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
captureUpdate: "IMMEDIATELY";
|
|
257
|
+
} | {
|
|
8
258
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[] | undefined;
|
|
9
259
|
appState: {
|
|
10
260
|
cursorButton: "up";
|
|
11
|
-
|
|
261
|
+
selectedLinearElement: LinearElementEditor;
|
|
12
262
|
contextMenu: {
|
|
13
263
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
14
264
|
top: number;
|
|
@@ -21,28 +271,34 @@ export declare const actionFinalize: {
|
|
|
21
271
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
272
|
state: "active" | "hover";
|
|
23
273
|
} | null;
|
|
24
|
-
newElement:
|
|
274
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
25
275
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
26
|
-
multiElement:
|
|
276
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
27
277
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
278
|
isBindingEnabled: boolean;
|
|
29
|
-
startBoundElement:
|
|
30
|
-
suggestedBindings: import("@excalidraw/element
|
|
31
|
-
frameToHighlight:
|
|
279
|
+
startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
280
|
+
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
281
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
32
282
|
frameRendering: {
|
|
33
283
|
enabled: boolean;
|
|
34
284
|
name: boolean;
|
|
35
285
|
outline: boolean;
|
|
36
286
|
clip: boolean;
|
|
287
|
+
markerName: boolean;
|
|
288
|
+
markerEnabled: boolean;
|
|
37
289
|
};
|
|
38
290
|
editingFrame: string | null;
|
|
39
|
-
elementsToHighlight:
|
|
291
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
40
292
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
41
293
|
activeTool: {
|
|
42
294
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
43
295
|
locked: boolean;
|
|
44
296
|
fromSelection: boolean;
|
|
45
297
|
} & import("../types").ActiveTool;
|
|
298
|
+
preferredSelectionTool: {
|
|
299
|
+
type: "selection" | "lasso";
|
|
300
|
+
initialized: boolean;
|
|
301
|
+
};
|
|
46
302
|
penMode: boolean;
|
|
47
303
|
penDetected: boolean;
|
|
48
304
|
exportBackground: boolean;
|
|
@@ -64,6 +320,7 @@ export declare const actionFinalize: {
|
|
|
64
320
|
currentHoveredFontFamily: number | null;
|
|
65
321
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
66
322
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
323
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
67
324
|
viewBackgroundColor: string;
|
|
68
325
|
scrollX: number;
|
|
69
326
|
scrollY: number;
|
|
@@ -74,8 +331,8 @@ export declare const actionFinalize: {
|
|
|
74
331
|
zoom: Readonly<{
|
|
75
332
|
value: import("../types").NormalizedZoomValue;
|
|
76
333
|
}>;
|
|
77
|
-
openMenu: "
|
|
78
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
334
|
+
openMenu: "canvas" | "shape" | null;
|
|
335
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
79
336
|
openSidebar: {
|
|
80
337
|
name: string;
|
|
81
338
|
tab?: string | undefined;
|
|
@@ -156,10 +413,8 @@ export declare const actionFinalize: {
|
|
|
156
413
|
shown: true;
|
|
157
414
|
data: import("../charts").Spreadsheet;
|
|
158
415
|
};
|
|
159
|
-
|
|
160
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
416
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
161
417
|
linkOpacity: number;
|
|
162
|
-
trayModeEnabled: boolean;
|
|
163
418
|
colorPalette?: {
|
|
164
419
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
165
420
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -172,6 +427,7 @@ export declare const actionFinalize: {
|
|
|
172
427
|
} | undefined;
|
|
173
428
|
allowWheelZoom?: boolean | undefined;
|
|
174
429
|
allowPinchZoom?: boolean | undefined;
|
|
430
|
+
disableContextMenu: boolean;
|
|
175
431
|
pinnedScripts?: string[] | undefined;
|
|
176
432
|
customPens?: any[] | undefined;
|
|
177
433
|
currentStrokeOptions?: any;
|
|
@@ -180,6 +436,10 @@ export declare const actionFinalize: {
|
|
|
180
436
|
Bold: string;
|
|
181
437
|
Regular: string;
|
|
182
438
|
};
|
|
439
|
+
gridDirection: {
|
|
440
|
+
horizontal: boolean;
|
|
441
|
+
vertical: boolean;
|
|
442
|
+
};
|
|
183
443
|
highlightSearchResult: boolean;
|
|
184
444
|
dynamicStyle: {
|
|
185
445
|
[x: string]: string;
|
|
@@ -190,7 +450,6 @@ export declare const actionFinalize: {
|
|
|
190
450
|
nameColor: string;
|
|
191
451
|
};
|
|
192
452
|
invertBindingBehaviour: boolean;
|
|
193
|
-
selectedLinearElement: LinearElementEditor | null;
|
|
194
453
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
195
454
|
originSnapOffset: {
|
|
196
455
|
x: number;
|
|
@@ -201,16 +460,14 @@ export declare const actionFinalize: {
|
|
|
201
460
|
followedBy: Set<import("../types").SocketId>;
|
|
202
461
|
isCropping: boolean;
|
|
203
462
|
croppingElementId: string | null;
|
|
204
|
-
searchMatches:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}[];
|
|
213
|
-
}[];
|
|
463
|
+
searchMatches: Readonly<{
|
|
464
|
+
focusedId: string | null;
|
|
465
|
+
matches: readonly import("../types").SearchMatch[];
|
|
466
|
+
}> | null;
|
|
467
|
+
activeLockedId: string | null;
|
|
468
|
+
lockedMultiSelections: {
|
|
469
|
+
[groupId: string]: true;
|
|
470
|
+
};
|
|
214
471
|
};
|
|
215
472
|
captureUpdate: "IMMEDIATELY";
|
|
216
473
|
} | {
|
|
@@ -233,7 +490,6 @@ export declare const actionFinalize: {
|
|
|
233
490
|
[id: string]: true;
|
|
234
491
|
}>;
|
|
235
492
|
selectedLinearElement: LinearElementEditor | null;
|
|
236
|
-
pendingImageElementId: null;
|
|
237
493
|
contextMenu: {
|
|
238
494
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
239
495
|
top: number;
|
|
@@ -244,16 +500,21 @@ export declare const actionFinalize: {
|
|
|
244
500
|
errorMessage: import("react").ReactNode;
|
|
245
501
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
246
502
|
isBindingEnabled: boolean;
|
|
247
|
-
frameToHighlight:
|
|
503
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
248
504
|
frameRendering: {
|
|
249
505
|
enabled: boolean;
|
|
250
506
|
name: boolean;
|
|
251
507
|
outline: boolean;
|
|
252
508
|
clip: boolean;
|
|
509
|
+
markerName: boolean;
|
|
510
|
+
markerEnabled: boolean;
|
|
253
511
|
};
|
|
254
512
|
editingFrame: string | null;
|
|
255
|
-
elementsToHighlight:
|
|
256
|
-
|
|
513
|
+
elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
|
|
514
|
+
preferredSelectionTool: {
|
|
515
|
+
type: "selection" | "lasso";
|
|
516
|
+
initialized: boolean;
|
|
517
|
+
};
|
|
257
518
|
penMode: boolean;
|
|
258
519
|
penDetected: boolean;
|
|
259
520
|
exportBackground: boolean;
|
|
@@ -275,6 +536,7 @@ export declare const actionFinalize: {
|
|
|
275
536
|
currentHoveredFontFamily: number | null;
|
|
276
537
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
277
538
|
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
539
|
+
currentItemFrameRole: ("marker" | null) | undefined;
|
|
278
540
|
viewBackgroundColor: string;
|
|
279
541
|
scrollX: number;
|
|
280
542
|
scrollY: number;
|
|
@@ -285,8 +547,8 @@ export declare const actionFinalize: {
|
|
|
285
547
|
zoom: Readonly<{
|
|
286
548
|
value: import("../types").NormalizedZoomValue;
|
|
287
549
|
}>;
|
|
288
|
-
openMenu: "
|
|
289
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
550
|
+
openMenu: "canvas" | "shape" | null;
|
|
551
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
290
552
|
openSidebar: {
|
|
291
553
|
name: string;
|
|
292
554
|
tab?: string | undefined;
|
|
@@ -364,9 +626,8 @@ export declare const actionFinalize: {
|
|
|
364
626
|
shown: true;
|
|
365
627
|
data: import("../charts").Spreadsheet;
|
|
366
628
|
};
|
|
367
|
-
showHyperlinkPopup: false | "
|
|
629
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
368
630
|
linkOpacity: number;
|
|
369
|
-
trayModeEnabled: boolean;
|
|
370
631
|
colorPalette?: {
|
|
371
632
|
canvasBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
372
633
|
elementBackground: import("@excalidraw/common").ColorPaletteCustom;
|
|
@@ -379,6 +640,7 @@ export declare const actionFinalize: {
|
|
|
379
640
|
} | undefined;
|
|
380
641
|
allowWheelZoom?: boolean | undefined;
|
|
381
642
|
allowPinchZoom?: boolean | undefined;
|
|
643
|
+
disableContextMenu: boolean;
|
|
382
644
|
pinnedScripts?: string[] | undefined;
|
|
383
645
|
customPens?: any[] | undefined;
|
|
384
646
|
currentStrokeOptions?: any;
|
|
@@ -387,6 +649,10 @@ export declare const actionFinalize: {
|
|
|
387
649
|
Bold: string;
|
|
388
650
|
Regular: string;
|
|
389
651
|
};
|
|
652
|
+
gridDirection: {
|
|
653
|
+
horizontal: boolean;
|
|
654
|
+
vertical: boolean;
|
|
655
|
+
};
|
|
390
656
|
highlightSearchResult: boolean;
|
|
391
657
|
dynamicStyle: {
|
|
392
658
|
[x: string]: string;
|
|
@@ -407,16 +673,14 @@ export declare const actionFinalize: {
|
|
|
407
673
|
followedBy: Set<import("../types").SocketId>;
|
|
408
674
|
isCropping: boolean;
|
|
409
675
|
croppingElementId: string | null;
|
|
410
|
-
searchMatches:
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
}[];
|
|
419
|
-
}[];
|
|
676
|
+
searchMatches: Readonly<{
|
|
677
|
+
focusedId: string | null;
|
|
678
|
+
matches: readonly import("../types").SearchMatch[];
|
|
679
|
+
}> | null;
|
|
680
|
+
activeLockedId: string | null;
|
|
681
|
+
lockedMultiSelections: {
|
|
682
|
+
[groupId: string]: true;
|
|
683
|
+
};
|
|
420
684
|
};
|
|
421
685
|
captureUpdate: "IMMEDIATELY";
|
|
422
686
|
};
|