@excalidraw/math 0.18.0-2b1c2a9 → 0.18.0-2c3dcc0
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/dev/index.js +8 -2
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +1 -1
- package/dist/types/common/src/colors.d.ts +3 -0
- package/dist/types/common/src/constants.d.ts +56 -0
- package/dist/types/common/src/keys.d.ts +4 -0
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/common/src/utils.d.ts +12 -1
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +4 -1
- package/dist/types/element/src/binding.d.ts +75 -7
- package/dist/types/element/src/bounds.d.ts +10 -2
- package/dist/types/element/src/collision.d.ts +21 -5
- package/dist/types/element/src/comparisons.d.ts +5 -3
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- package/dist/types/element/src/distribute.d.ts +4 -1
- package/dist/types/element/src/dragElements.d.ts +8 -3
- package/dist/types/element/src/duplicate.d.ts +60 -0
- package/dist/types/element/src/elbowArrow.d.ts +5 -0
- package/dist/types/element/src/embeddable.d.ts +2 -1
- package/dist/types/element/src/flowchart.d.ts +6 -8
- package/dist/types/element/src/frame.d.ts +21 -3
- package/dist/types/element/src/groups.d.ts +1 -6
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +3 -0
- package/dist/types/element/src/linearElementEditor.d.ts +4 -1
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +40 -3
- package/dist/types/element/src/renderElement.d.ts +31 -4
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +15 -5
- package/dist/types/element/src/selection.d.ts +4 -10
- package/dist/types/element/src/shape.d.ts +17 -1
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/stickyNote.d.ts +191 -0
- package/dist/types/element/src/textElement.d.ts +10 -2
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +3 -2
- package/dist/types/element/src/transform.d.ts +30 -7
- package/dist/types/element/src/typeChecks.d.ts +3 -2
- package/dist/types/element/src/types.d.ts +28 -6
- package/dist/types/element/src/utils.d.ts +8 -1
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +48 -3
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +62 -208
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +121 -16
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +32 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -546
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +32 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +39 -9
- package/dist/types/excalidraw/actions/actionFrame.d.ts +92 -479
- package/dist/types/excalidraw/actions/actionGroup.d.ts +34 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +66 -2
- package/dist/types/excalidraw/actions/actionLink.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +42 -8
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +17 -2
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +16 -1
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/actions/index.d.ts +3 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +26 -8
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
- package/dist/types/excalidraw/charts/index.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +10 -2
- package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
- package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
- package/dist/types/excalidraw/components/App.d.ts +129 -218
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
- package/dist/types/excalidraw/components/App.text.d.ts +194 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +64 -4
- package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/IconButton.d.ts +2 -0
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
- package/dist/types/excalidraw/components/Tools.d.ts +7 -2
- package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +0 -1
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +13 -2
- package/dist/types/excalidraw/components/icons.d.ts +2 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +3 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +2 -2
- package/dist/types/excalidraw/data/blob.d.ts +46 -16
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +23 -8
- package/dist/types/excalidraw/fonts/Fonts.d.ts +9 -6
- package/dist/types/excalidraw/history.d.ts +10 -4
- package/dist/types/excalidraw/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +11 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +18 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +64 -3
- package/dist/types/excalidraw/scene/export.d.ts +343 -20
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +26 -2
- package/dist/types/excalidraw/types.d.ts +191 -22
- package/dist/types/excalidraw/viewport.d.ts +29 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
- package/dist/types/utils/src/index.d.ts +3 -1
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/package.json +2 -2
- package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +0 -31
- package/dist/types/utils/src/export.d.ts +0 -35
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
export declare const actionToggleMinimap: {
|
|
2
|
+
name: "minimap";
|
|
3
|
+
label: string;
|
|
4
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
keywords: string[];
|
|
6
|
+
viewMode: true;
|
|
7
|
+
navigation: true;
|
|
8
|
+
trackEvent: {
|
|
9
|
+
category: "canvas";
|
|
10
|
+
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
11
|
+
};
|
|
12
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
13
|
+
appState: {
|
|
14
|
+
minimapEnabled: boolean;
|
|
15
|
+
contextMenu: {
|
|
16
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
17
|
+
top: number;
|
|
18
|
+
left: number;
|
|
19
|
+
} | null;
|
|
20
|
+
showWelcomeScreen: boolean;
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
errorMessage: React.ReactNode;
|
|
23
|
+
activeEmbeddable: {
|
|
24
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
25
|
+
state: "hover" | "active";
|
|
26
|
+
} | null;
|
|
27
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
28
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
30
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
|
+
isBindingEnabled: boolean;
|
|
32
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
33
|
+
bindingPreference: "enabled" | "disabled";
|
|
34
|
+
isMidpointSnappingEnabled: boolean;
|
|
35
|
+
showHints: boolean;
|
|
36
|
+
inputDevice: import("../types").InputDevice;
|
|
37
|
+
suggestedBinding: {
|
|
38
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
40
|
+
} | null;
|
|
41
|
+
textToolHover: {
|
|
42
|
+
type: "text";
|
|
43
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
44
|
+
} | {
|
|
45
|
+
type: "container";
|
|
46
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
47
|
+
} | {
|
|
48
|
+
type: "arrow";
|
|
49
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
50
|
+
anchor: "start" | "end" | "label";
|
|
51
|
+
} | null;
|
|
52
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
53
|
+
frameRendering: {
|
|
54
|
+
enabled: boolean;
|
|
55
|
+
name: boolean;
|
|
56
|
+
outline: boolean;
|
|
57
|
+
clip: boolean;
|
|
58
|
+
};
|
|
59
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
60
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
61
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
62
|
+
activeTool: {
|
|
63
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
64
|
+
locked: boolean;
|
|
65
|
+
fromSelection: boolean;
|
|
66
|
+
} & import("../types").ActiveTool;
|
|
67
|
+
preferredSelectionTool: {
|
|
68
|
+
type: "selection" | "lasso";
|
|
69
|
+
initialized: boolean;
|
|
70
|
+
};
|
|
71
|
+
penMode: boolean;
|
|
72
|
+
penDetected: boolean;
|
|
73
|
+
exportBackground: boolean;
|
|
74
|
+
exportEmbedScene: boolean;
|
|
75
|
+
exportWithDarkMode: boolean;
|
|
76
|
+
exportScale: number;
|
|
77
|
+
currentItemStrokeColor: string;
|
|
78
|
+
currentItemStickynoteStrokeColor: string;
|
|
79
|
+
currentItemStickynoteBackgroundColor: string;
|
|
80
|
+
currentItemBackgroundColor: string;
|
|
81
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
82
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
83
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
84
|
+
currentItemRoughness: number;
|
|
85
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
86
|
+
currentItemOpacity: number;
|
|
87
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
88
|
+
currentItemFontSize: number;
|
|
89
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
90
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
91
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
92
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
93
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
94
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
95
|
+
viewBackgroundColor: string;
|
|
96
|
+
scrollX: number;
|
|
97
|
+
scrollY: number;
|
|
98
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
99
|
+
cursorButton: "up" | "down";
|
|
100
|
+
scrolledOutside: boolean;
|
|
101
|
+
name: string | null;
|
|
102
|
+
isResizing: boolean;
|
|
103
|
+
isRotating: boolean;
|
|
104
|
+
zoom: import("../types").Zoom;
|
|
105
|
+
openMenu: "canvas" | null;
|
|
106
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
107
|
+
openSidebar: {
|
|
108
|
+
name: import("../types").SidebarName;
|
|
109
|
+
tab?: import("../types").SidebarTabName;
|
|
110
|
+
} | null;
|
|
111
|
+
openDialog: null | {
|
|
112
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
113
|
+
} | {
|
|
114
|
+
name: "ttd";
|
|
115
|
+
tab: "text-to-diagram" | "mermaid";
|
|
116
|
+
} | {
|
|
117
|
+
name: "commandPalette";
|
|
118
|
+
} | {
|
|
119
|
+
name: "settings";
|
|
120
|
+
} | {
|
|
121
|
+
name: "elementLinkSelector";
|
|
122
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
123
|
+
} | {
|
|
124
|
+
name: "charts";
|
|
125
|
+
data: import("../charts").Spreadsheet;
|
|
126
|
+
rawText: string;
|
|
127
|
+
};
|
|
128
|
+
defaultSidebarDockedPreference: boolean;
|
|
129
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
130
|
+
selectedElementIds: Readonly<{
|
|
131
|
+
[id: string]: true;
|
|
132
|
+
}>;
|
|
133
|
+
hoveredElementIds: Readonly<{
|
|
134
|
+
[id: string]: true;
|
|
135
|
+
}>;
|
|
136
|
+
previousSelectedElementIds: {
|
|
137
|
+
[id: string]: true;
|
|
138
|
+
};
|
|
139
|
+
selectedElementsAreBeingDragged: boolean;
|
|
140
|
+
shouldCacheIgnoreZoom: boolean;
|
|
141
|
+
toast: {
|
|
142
|
+
message: React.ReactNode;
|
|
143
|
+
closable?: boolean;
|
|
144
|
+
duration?: number;
|
|
145
|
+
} | null;
|
|
146
|
+
zenModeEnabled: boolean;
|
|
147
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
148
|
+
gridSize: number;
|
|
149
|
+
gridStep: number;
|
|
150
|
+
gridModeEnabled: boolean;
|
|
151
|
+
viewModeEnabled: boolean;
|
|
152
|
+
selectedGroupIds: {
|
|
153
|
+
[groupId: string]: boolean;
|
|
154
|
+
};
|
|
155
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
156
|
+
width: number;
|
|
157
|
+
height: number;
|
|
158
|
+
offsetTop: number;
|
|
159
|
+
offsetLeft: number;
|
|
160
|
+
fileHandle: FileSystemFileHandle | null;
|
|
161
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
162
|
+
stats: {
|
|
163
|
+
open: boolean;
|
|
164
|
+
panels: number;
|
|
165
|
+
};
|
|
166
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
167
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
168
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
169
|
+
originSnapOffset: {
|
|
170
|
+
x: number;
|
|
171
|
+
y: number;
|
|
172
|
+
} | null;
|
|
173
|
+
objectsSnapModeEnabled: boolean;
|
|
174
|
+
isCropping: boolean;
|
|
175
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
176
|
+
searchMatches: Readonly<{
|
|
177
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
178
|
+
matches: readonly import("../types").SearchMatch[];
|
|
179
|
+
}> | null;
|
|
180
|
+
activeLockedId: string | null;
|
|
181
|
+
lockedMultiSelections: {
|
|
182
|
+
[groupId: string]: true;
|
|
183
|
+
};
|
|
184
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
185
|
+
colorTopPicks: {
|
|
186
|
+
elementStroke: readonly string[] | null;
|
|
187
|
+
elementBackground: readonly string[] | null;
|
|
188
|
+
bucketFill: readonly string[] | null;
|
|
189
|
+
stickyNoteStroke: readonly string[] | null;
|
|
190
|
+
stickyNoteBackground: readonly string[] | null;
|
|
191
|
+
};
|
|
192
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
193
|
+
};
|
|
194
|
+
captureUpdate: "EVENTUALLY";
|
|
195
|
+
};
|
|
196
|
+
checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
|
|
197
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
198
|
+
PanelComponent: ({ appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
199
|
+
} & {
|
|
200
|
+
keyTest?: undefined;
|
|
201
|
+
};
|
|
@@ -31,11 +31,20 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
31
31
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
32
32
|
bindingPreference: "enabled" | "disabled";
|
|
33
33
|
isMidpointSnappingEnabled: boolean;
|
|
34
|
+
showHints: boolean;
|
|
35
|
+
inputDevice: import("../types").InputDevice;
|
|
34
36
|
suggestedBinding: {
|
|
35
37
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
38
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
37
39
|
} | null;
|
|
38
|
-
|
|
40
|
+
textToolHover: {
|
|
41
|
+
type: "text";
|
|
42
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
43
|
+
} | {
|
|
44
|
+
type: "container";
|
|
45
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
46
|
+
} | {
|
|
47
|
+
type: "arrow";
|
|
39
48
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
40
49
|
anchor: "start" | "end" | "label";
|
|
41
50
|
} | null;
|
|
@@ -65,6 +74,8 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
65
74
|
exportWithDarkMode: boolean;
|
|
66
75
|
exportScale: number;
|
|
67
76
|
currentItemStrokeColor: string;
|
|
77
|
+
currentItemStickynoteStrokeColor: string;
|
|
78
|
+
currentItemStickynoteBackgroundColor: string;
|
|
68
79
|
currentItemBackgroundColor: string;
|
|
69
80
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
70
81
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -132,6 +143,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
132
143
|
duration?: number;
|
|
133
144
|
} | null;
|
|
134
145
|
zenModeEnabled: boolean;
|
|
146
|
+
minimapEnabled: boolean;
|
|
135
147
|
theme: import("@excalidraw/element/types").Theme;
|
|
136
148
|
gridSize: number;
|
|
137
149
|
gridStep: number;
|
|
@@ -172,7 +184,10 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
172
184
|
elementStroke: readonly string[] | null;
|
|
173
185
|
elementBackground: readonly string[] | null;
|
|
174
186
|
bucketFill: readonly string[] | null;
|
|
187
|
+
stickyNoteStroke: readonly string[] | null;
|
|
188
|
+
stickyNoteBackground: readonly string[] | null;
|
|
175
189
|
};
|
|
190
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
176
191
|
};
|
|
177
192
|
captureUpdate: "EVENTUALLY";
|
|
178
193
|
};
|
|
@@ -36,11 +36,20 @@ export declare const actionToggleSearchMenu: {
|
|
|
36
36
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
37
37
|
bindingPreference: "enabled" | "disabled";
|
|
38
38
|
isMidpointSnappingEnabled: boolean;
|
|
39
|
+
showHints: boolean;
|
|
40
|
+
inputDevice: import("../types").InputDevice;
|
|
39
41
|
suggestedBinding: {
|
|
40
42
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
41
43
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
42
44
|
} | null;
|
|
43
|
-
|
|
45
|
+
textToolHover: {
|
|
46
|
+
type: "text";
|
|
47
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
48
|
+
} | {
|
|
49
|
+
type: "container";
|
|
50
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
51
|
+
} | {
|
|
52
|
+
type: "arrow";
|
|
44
53
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
45
54
|
anchor: "start" | "end" | "label";
|
|
46
55
|
} | null;
|
|
@@ -70,6 +79,8 @@ export declare const actionToggleSearchMenu: {
|
|
|
70
79
|
exportWithDarkMode: boolean;
|
|
71
80
|
exportScale: number;
|
|
72
81
|
currentItemStrokeColor: string;
|
|
82
|
+
currentItemStickynoteStrokeColor: string;
|
|
83
|
+
currentItemStickynoteBackgroundColor: string;
|
|
73
84
|
currentItemBackgroundColor: string;
|
|
74
85
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
75
86
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -116,6 +127,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
116
127
|
duration?: number;
|
|
117
128
|
} | null;
|
|
118
129
|
zenModeEnabled: boolean;
|
|
130
|
+
minimapEnabled: boolean;
|
|
119
131
|
theme: import("@excalidraw/element/types").Theme;
|
|
120
132
|
gridSize: number;
|
|
121
133
|
gridStep: number;
|
|
@@ -158,7 +170,10 @@ export declare const actionToggleSearchMenu: {
|
|
|
158
170
|
elementStroke: readonly string[] | null;
|
|
159
171
|
elementBackground: readonly string[] | null;
|
|
160
172
|
bucketFill: readonly string[] | null;
|
|
173
|
+
stickyNoteStroke: readonly string[] | null;
|
|
174
|
+
stickyNoteBackground: readonly string[] | null;
|
|
161
175
|
};
|
|
176
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
162
177
|
};
|
|
163
178
|
captureUpdate: "EVENTUALLY";
|
|
164
179
|
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export declare const actionToggleShowHints: {
|
|
2
|
+
name: "showHints";
|
|
3
|
+
label: string;
|
|
4
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
keywords: string[];
|
|
6
|
+
viewMode: false;
|
|
7
|
+
trackEvent: {
|
|
8
|
+
category: "canvas";
|
|
9
|
+
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
10
|
+
};
|
|
11
|
+
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
12
|
+
appState: {
|
|
13
|
+
showHints: boolean;
|
|
14
|
+
contextMenu: {
|
|
15
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
16
|
+
top: number;
|
|
17
|
+
left: number;
|
|
18
|
+
} | null;
|
|
19
|
+
showWelcomeScreen: boolean;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
errorMessage: React.ReactNode;
|
|
22
|
+
activeEmbeddable: {
|
|
23
|
+
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
24
|
+
state: "hover" | "active";
|
|
25
|
+
} | null;
|
|
26
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
27
|
+
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
28
|
+
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
29
|
+
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
30
|
+
isBindingEnabled: boolean;
|
|
31
|
+
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
32
|
+
bindingPreference: "enabled" | "disabled";
|
|
33
|
+
isMidpointSnappingEnabled: boolean;
|
|
34
|
+
inputDevice: import("../types").InputDevice;
|
|
35
|
+
suggestedBinding: {
|
|
36
|
+
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
37
|
+
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
38
|
+
} | null;
|
|
39
|
+
textToolHover: {
|
|
40
|
+
type: "text";
|
|
41
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
42
|
+
} | {
|
|
43
|
+
type: "container";
|
|
44
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
45
|
+
} | {
|
|
46
|
+
type: "arrow";
|
|
47
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
48
|
+
anchor: "start" | "end" | "label";
|
|
49
|
+
} | null;
|
|
50
|
+
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
51
|
+
frameRendering: {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
name: boolean;
|
|
54
|
+
outline: boolean;
|
|
55
|
+
clip: boolean;
|
|
56
|
+
};
|
|
57
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
58
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
59
|
+
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
60
|
+
activeTool: {
|
|
61
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
62
|
+
locked: boolean;
|
|
63
|
+
fromSelection: boolean;
|
|
64
|
+
} & import("../types").ActiveTool;
|
|
65
|
+
preferredSelectionTool: {
|
|
66
|
+
type: "selection" | "lasso";
|
|
67
|
+
initialized: boolean;
|
|
68
|
+
};
|
|
69
|
+
penMode: boolean;
|
|
70
|
+
penDetected: boolean;
|
|
71
|
+
exportBackground: boolean;
|
|
72
|
+
exportEmbedScene: boolean;
|
|
73
|
+
exportWithDarkMode: boolean;
|
|
74
|
+
exportScale: number;
|
|
75
|
+
currentItemStrokeColor: string;
|
|
76
|
+
currentItemStickynoteStrokeColor: string;
|
|
77
|
+
currentItemStickynoteBackgroundColor: string;
|
|
78
|
+
currentItemBackgroundColor: string;
|
|
79
|
+
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
80
|
+
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
81
|
+
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
82
|
+
currentItemRoughness: number;
|
|
83
|
+
currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
|
|
84
|
+
currentItemOpacity: number;
|
|
85
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
86
|
+
currentItemFontSize: number;
|
|
87
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
88
|
+
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
89
|
+
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
90
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
91
|
+
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
92
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
93
|
+
viewBackgroundColor: string;
|
|
94
|
+
scrollX: number;
|
|
95
|
+
scrollY: number;
|
|
96
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
97
|
+
cursorButton: "up" | "down";
|
|
98
|
+
scrolledOutside: boolean;
|
|
99
|
+
name: string | null;
|
|
100
|
+
isResizing: boolean;
|
|
101
|
+
isRotating: boolean;
|
|
102
|
+
zoom: import("../types").Zoom;
|
|
103
|
+
openMenu: "canvas" | null;
|
|
104
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
105
|
+
openSidebar: {
|
|
106
|
+
name: import("../types").SidebarName;
|
|
107
|
+
tab?: import("../types").SidebarTabName;
|
|
108
|
+
} | null;
|
|
109
|
+
openDialog: null | {
|
|
110
|
+
name: "imageExport" | "help" | "jsonExport";
|
|
111
|
+
} | {
|
|
112
|
+
name: "ttd";
|
|
113
|
+
tab: "text-to-diagram" | "mermaid";
|
|
114
|
+
} | {
|
|
115
|
+
name: "commandPalette";
|
|
116
|
+
} | {
|
|
117
|
+
name: "settings";
|
|
118
|
+
} | {
|
|
119
|
+
name: "elementLinkSelector";
|
|
120
|
+
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
121
|
+
} | {
|
|
122
|
+
name: "charts";
|
|
123
|
+
data: import("../charts").Spreadsheet;
|
|
124
|
+
rawText: string;
|
|
125
|
+
};
|
|
126
|
+
defaultSidebarDockedPreference: boolean;
|
|
127
|
+
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
128
|
+
selectedElementIds: Readonly<{
|
|
129
|
+
[id: string]: true;
|
|
130
|
+
}>;
|
|
131
|
+
hoveredElementIds: Readonly<{
|
|
132
|
+
[id: string]: true;
|
|
133
|
+
}>;
|
|
134
|
+
previousSelectedElementIds: {
|
|
135
|
+
[id: string]: true;
|
|
136
|
+
};
|
|
137
|
+
selectedElementsAreBeingDragged: boolean;
|
|
138
|
+
shouldCacheIgnoreZoom: boolean;
|
|
139
|
+
toast: {
|
|
140
|
+
message: React.ReactNode;
|
|
141
|
+
closable?: boolean;
|
|
142
|
+
duration?: number;
|
|
143
|
+
} | null;
|
|
144
|
+
zenModeEnabled: boolean;
|
|
145
|
+
minimapEnabled: boolean;
|
|
146
|
+
theme: import("@excalidraw/element/types").Theme;
|
|
147
|
+
gridSize: number;
|
|
148
|
+
gridStep: number;
|
|
149
|
+
gridModeEnabled: boolean;
|
|
150
|
+
viewModeEnabled: boolean;
|
|
151
|
+
selectedGroupIds: {
|
|
152
|
+
[groupId: string]: boolean;
|
|
153
|
+
};
|
|
154
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
155
|
+
width: number;
|
|
156
|
+
height: number;
|
|
157
|
+
offsetTop: number;
|
|
158
|
+
offsetLeft: number;
|
|
159
|
+
fileHandle: FileSystemFileHandle | null;
|
|
160
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
161
|
+
stats: {
|
|
162
|
+
open: boolean;
|
|
163
|
+
panels: number;
|
|
164
|
+
};
|
|
165
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
166
|
+
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
167
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
168
|
+
originSnapOffset: {
|
|
169
|
+
x: number;
|
|
170
|
+
y: number;
|
|
171
|
+
} | null;
|
|
172
|
+
objectsSnapModeEnabled: boolean;
|
|
173
|
+
isCropping: boolean;
|
|
174
|
+
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
175
|
+
searchMatches: Readonly<{
|
|
176
|
+
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
177
|
+
matches: readonly import("../types").SearchMatch[];
|
|
178
|
+
}> | null;
|
|
179
|
+
activeLockedId: string | null;
|
|
180
|
+
lockedMultiSelections: {
|
|
181
|
+
[groupId: string]: true;
|
|
182
|
+
};
|
|
183
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
184
|
+
colorTopPicks: {
|
|
185
|
+
elementStroke: readonly string[] | null;
|
|
186
|
+
elementBackground: readonly string[] | null;
|
|
187
|
+
bucketFill: readonly string[] | null;
|
|
188
|
+
stickyNoteStroke: readonly string[] | null;
|
|
189
|
+
stickyNoteBackground: readonly string[] | null;
|
|
190
|
+
};
|
|
191
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
192
|
+
};
|
|
193
|
+
captureUpdate: "NEVER";
|
|
194
|
+
};
|
|
195
|
+
checked: (appState: Readonly<import("../types").UIAppState>) => boolean;
|
|
196
|
+
} & {
|
|
197
|
+
keyTest?: undefined;
|
|
198
|
+
};
|
|
@@ -33,11 +33,20 @@ export declare const actionToggleStats: {
|
|
|
33
33
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
34
34
|
bindingPreference: "enabled" | "disabled";
|
|
35
35
|
isMidpointSnappingEnabled: boolean;
|
|
36
|
+
showHints: boolean;
|
|
37
|
+
inputDevice: import("../types").InputDevice;
|
|
36
38
|
suggestedBinding: {
|
|
37
39
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
38
40
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
39
41
|
} | null;
|
|
40
|
-
|
|
42
|
+
textToolHover: {
|
|
43
|
+
type: "text";
|
|
44
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
45
|
+
} | {
|
|
46
|
+
type: "container";
|
|
47
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
48
|
+
} | {
|
|
49
|
+
type: "arrow";
|
|
41
50
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
42
51
|
anchor: "start" | "end" | "label";
|
|
43
52
|
} | null;
|
|
@@ -67,6 +76,8 @@ export declare const actionToggleStats: {
|
|
|
67
76
|
exportWithDarkMode: boolean;
|
|
68
77
|
exportScale: number;
|
|
69
78
|
currentItemStrokeColor: string;
|
|
79
|
+
currentItemStickynoteStrokeColor: string;
|
|
80
|
+
currentItemStickynoteBackgroundColor: string;
|
|
70
81
|
currentItemBackgroundColor: string;
|
|
71
82
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
72
83
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -134,6 +145,7 @@ export declare const actionToggleStats: {
|
|
|
134
145
|
duration?: number;
|
|
135
146
|
} | null;
|
|
136
147
|
zenModeEnabled: boolean;
|
|
148
|
+
minimapEnabled: boolean;
|
|
137
149
|
theme: import("@excalidraw/element/types").Theme;
|
|
138
150
|
gridSize: number;
|
|
139
151
|
gridStep: number;
|
|
@@ -172,7 +184,10 @@ export declare const actionToggleStats: {
|
|
|
172
184
|
elementStroke: readonly string[] | null;
|
|
173
185
|
elementBackground: readonly string[] | null;
|
|
174
186
|
bucketFill: readonly string[] | null;
|
|
187
|
+
stickyNoteStroke: readonly string[] | null;
|
|
188
|
+
stickyNoteBackground: readonly string[] | null;
|
|
175
189
|
};
|
|
190
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
176
191
|
};
|
|
177
192
|
captureUpdate: "EVENTUALLY";
|
|
178
193
|
};
|
|
@@ -30,11 +30,20 @@ export declare const actionToggleViewMode: {
|
|
|
30
30
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
31
|
bindingPreference: "enabled" | "disabled";
|
|
32
32
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
+
showHints: boolean;
|
|
34
|
+
inputDevice: import("../types").InputDevice;
|
|
33
35
|
suggestedBinding: {
|
|
34
36
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
35
37
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
36
38
|
} | null;
|
|
37
|
-
|
|
39
|
+
textToolHover: {
|
|
40
|
+
type: "text";
|
|
41
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
42
|
+
} | {
|
|
43
|
+
type: "container";
|
|
44
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
45
|
+
} | {
|
|
46
|
+
type: "arrow";
|
|
38
47
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
39
48
|
anchor: "start" | "end" | "label";
|
|
40
49
|
} | null;
|
|
@@ -64,6 +73,8 @@ export declare const actionToggleViewMode: {
|
|
|
64
73
|
exportWithDarkMode: boolean;
|
|
65
74
|
exportScale: number;
|
|
66
75
|
currentItemStrokeColor: string;
|
|
76
|
+
currentItemStickynoteStrokeColor: string;
|
|
77
|
+
currentItemStickynoteBackgroundColor: string;
|
|
67
78
|
currentItemBackgroundColor: string;
|
|
68
79
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
69
80
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -131,6 +142,7 @@ export declare const actionToggleViewMode: {
|
|
|
131
142
|
duration?: number;
|
|
132
143
|
} | null;
|
|
133
144
|
zenModeEnabled: boolean;
|
|
145
|
+
minimapEnabled: boolean;
|
|
134
146
|
theme: import("@excalidraw/element/types").Theme;
|
|
135
147
|
gridSize: number;
|
|
136
148
|
gridStep: number;
|
|
@@ -172,7 +184,10 @@ export declare const actionToggleViewMode: {
|
|
|
172
184
|
elementStroke: readonly string[] | null;
|
|
173
185
|
elementBackground: readonly string[] | null;
|
|
174
186
|
bucketFill: readonly string[] | null;
|
|
187
|
+
stickyNoteStroke: readonly string[] | null;
|
|
188
|
+
stickyNoteBackground: readonly string[] | null;
|
|
175
189
|
};
|
|
190
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
176
191
|
};
|
|
177
192
|
captureUpdate: "EVENTUALLY";
|
|
178
193
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const actionToggleWrap: {
|
|
2
|
+
name: "toggleWrap";
|
|
3
|
+
label: string;
|
|
4
|
+
trackEvent: {
|
|
5
|
+
category: "element";
|
|
6
|
+
};
|
|
7
|
+
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
8
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => import("./types").ActionResult;
|
|
9
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
10
|
+
} & {
|
|
11
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
12
|
+
};
|
|
@@ -30,11 +30,20 @@ export declare const actionToggleZenMode: {
|
|
|
30
30
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
31
|
bindingPreference: "enabled" | "disabled";
|
|
32
32
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
+
showHints: boolean;
|
|
34
|
+
inputDevice: import("../types").InputDevice;
|
|
33
35
|
suggestedBinding: {
|
|
34
36
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
35
37
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
36
38
|
} | null;
|
|
37
|
-
|
|
39
|
+
textToolHover: {
|
|
40
|
+
type: "text";
|
|
41
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
42
|
+
} | {
|
|
43
|
+
type: "container";
|
|
44
|
+
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
45
|
+
} | {
|
|
46
|
+
type: "arrow";
|
|
38
47
|
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
39
48
|
anchor: "start" | "end" | "label";
|
|
40
49
|
} | null;
|
|
@@ -64,6 +73,8 @@ export declare const actionToggleZenMode: {
|
|
|
64
73
|
exportWithDarkMode: boolean;
|
|
65
74
|
exportScale: number;
|
|
66
75
|
currentItemStrokeColor: string;
|
|
76
|
+
currentItemStickynoteStrokeColor: string;
|
|
77
|
+
currentItemStickynoteBackgroundColor: string;
|
|
67
78
|
currentItemBackgroundColor: string;
|
|
68
79
|
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
69
80
|
currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
|
|
@@ -130,6 +141,7 @@ export declare const actionToggleZenMode: {
|
|
|
130
141
|
closable?: boolean;
|
|
131
142
|
duration?: number;
|
|
132
143
|
} | null;
|
|
144
|
+
minimapEnabled: boolean;
|
|
133
145
|
theme: import("@excalidraw/element/types").Theme;
|
|
134
146
|
gridSize: number;
|
|
135
147
|
gridStep: number;
|
|
@@ -172,7 +184,10 @@ export declare const actionToggleZenMode: {
|
|
|
172
184
|
elementStroke: readonly string[] | null;
|
|
173
185
|
elementBackground: readonly string[] | null;
|
|
174
186
|
bucketFill: readonly string[] | null;
|
|
187
|
+
stickyNoteStroke: readonly string[] | null;
|
|
188
|
+
stickyNoteBackground: readonly string[] | null;
|
|
175
189
|
};
|
|
190
|
+
fontTopPicks: readonly import("@excalidraw/element/types").FontFamilyValues[] | null;
|
|
176
191
|
};
|
|
177
192
|
captureUpdate: "EVENTUALLY";
|
|
178
193
|
};
|