@zsviczian/excalidraw 0.17.6-3 → 0.17.6-31
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 +13100 -1540
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +21 -1
- package/dist/styles.development.css +490 -376
- package/dist/styles.production.css +10 -8
- package/package.json +5 -4
- package/types/excalidraw/actions/actionAddToLibrary.d.ts +27 -3
- package/types/excalidraw/actions/actionAlign.d.ts +7 -6
- package/types/excalidraw/actions/actionBoundText.d.ts +18 -2
- package/types/excalidraw/actions/actionCanvas.d.ts +126 -14
- package/types/excalidraw/actions/actionClipboard.d.ts +61 -9
- package/types/excalidraw/actions/actionCropEditor.d.ts +222 -0
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +34 -6
- package/types/excalidraw/actions/actionElementLink.d.ts +244 -0
- package/types/excalidraw/actions/actionElementLock.d.ts +18 -2
- package/types/excalidraw/actions/actionExport.d.ts +77 -8
- package/types/excalidraw/actions/actionFinalize.d.ts +18 -2
- package/types/excalidraw/actions/actionFrame.d.ts +533 -4
- package/types/excalidraw/actions/actionGroup.d.ts +18 -2
- package/types/excalidraw/actions/actionLinearEditor.d.ts +9 -1
- package/types/excalidraw/actions/actionLink.d.ts +10 -2
- package/types/excalidraw/actions/actionMenu.d.ts +23 -2
- package/types/excalidraw/actions/actionNavigate.d.ts +18 -2
- package/types/excalidraw/actions/actionProperties.d.ts +135 -15
- package/types/excalidraw/actions/actionSelectAll.d.ts +9 -1
- package/types/excalidraw/actions/actionStyles.d.ts +9 -1
- package/types/excalidraw/actions/actionToggleGridMode.d.ts +9 -1
- package/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +9 -1
- package/types/excalidraw/actions/actionToggleSearchMenu.d.ts +14 -1
- package/types/excalidraw/actions/actionToggleStats.d.ts +9 -1
- package/types/excalidraw/actions/actionToggleViewMode.d.ts +9 -1
- package/types/excalidraw/actions/actionToggleZenMode.d.ts +9 -1
- package/types/excalidraw/actions/index.d.ts +1 -0
- package/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/types/excalidraw/actions/types.d.ts +1 -1
- package/types/excalidraw/align.d.ts +2 -1
- package/types/excalidraw/change.d.ts +2 -2
- package/types/excalidraw/clipboard.d.ts +27 -5
- package/types/excalidraw/components/Actions.d.ts +2 -1
- package/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/types/excalidraw/components/App.d.ts +21 -5
- package/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/types/excalidraw/components/ElementLinkDialog.d.ts +11 -0
- package/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/types/excalidraw/components/IconPicker.d.ts +2 -2
- package/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/types/excalidraw/components/Range.d.ts +8 -0
- package/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/types/excalidraw/components/Stats/Collapsible.d.ts +2 -1
- package/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +1 -7
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +10 -0
- package/types/excalidraw/components/TTDDialog/common.d.ts +2 -2
- package/types/excalidraw/components/hyperlink/Hyperlink.d.ts +1 -1
- package/types/excalidraw/components/hyperlink/helpers.d.ts +1 -0
- package/types/excalidraw/components/icons.d.ts +11 -0
- package/types/excalidraw/constants.d.ts +5 -1
- package/types/excalidraw/context/tunnels.d.ts +2 -1
- package/types/excalidraw/data/blob.d.ts +4 -0
- package/types/excalidraw/data/encode.d.ts +6 -5
- package/types/excalidraw/data/filesystem.d.ts +2 -1
- package/types/excalidraw/data/image.d.ts +0 -6
- package/types/excalidraw/data/library.d.ts +9 -3
- package/types/excalidraw/data/url.d.ts +0 -1
- package/types/excalidraw/dist/excalidraw.production.min.d.ts +3 -1
- package/types/excalidraw/editor-jotai.d.ts +56 -0
- package/types/excalidraw/element/binding.d.ts +10 -7
- package/types/excalidraw/element/cropElement.d.ts +19 -0
- package/types/excalidraw/element/elbowArrow.d.ts +16 -0
- package/types/excalidraw/element/elementLink.d.ts +13 -0
- package/types/excalidraw/element/embeddable.d.ts +9 -1
- package/types/excalidraw/element/flowchart.d.ts +1 -1
- package/types/excalidraw/element/heading.d.ts +5 -1
- package/types/excalidraw/element/image.d.ts +1 -1
- package/types/excalidraw/element/linearElementEditor.d.ts +9 -10
- package/types/excalidraw/element/mutateElement.d.ts +3 -1
- package/types/excalidraw/element/newElement.d.ts +9 -7
- package/types/excalidraw/element/resizeElements.d.ts +27 -5
- package/types/excalidraw/element/textElement.d.ts +14 -4
- package/types/excalidraw/element/textWrapping.d.ts +13 -0
- package/types/excalidraw/element/transformHandles.d.ts +1 -1
- package/types/excalidraw/element/types.d.ts +33 -1
- package/types/excalidraw/errors.d.ts +7 -0
- package/types/excalidraw/fonts/{woff2/Cascadia → Cascadia}/index.d.ts +1 -1
- package/types/excalidraw/fonts/ComicShanns/index.d.ts +2 -0
- package/types/excalidraw/fonts/{woff2/Emoji → Emoji}/index.d.ts +1 -1
- package/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +2 -8
- package/types/excalidraw/fonts/{woff2/Excalifont → Excalifont}/index.d.ts +1 -1
- package/types/excalidraw/fonts/Fonts.d.ts +100 -0
- package/types/excalidraw/fonts/{woff2/Helvetica → Helvetica}/index.d.ts +1 -1
- package/types/excalidraw/fonts/{woff2/Liberation → Liberation}/index.d.ts +1 -1
- package/types/excalidraw/fonts/{woff2/Lilita → Lilita}/index.d.ts +1 -1
- package/types/excalidraw/fonts/{woff2/Nunito → Nunito}/index.d.ts +1 -1
- package/types/excalidraw/fonts/{woff2/Virgil → Virgil}/index.d.ts +1 -1
- package/types/excalidraw/fonts/{woff2/Xiaolai → Xiaolai}/index.d.ts +1 -1
- package/types/excalidraw/fonts/index.d.ts +1 -87
- package/types/excalidraw/frame.d.ts +11 -5
- package/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/types/excalidraw/index.d.ts +4 -3
- package/types/excalidraw/keys.d.ts +107 -0
- package/types/excalidraw/obsidianUtils.d.ts +9 -4
- package/types/excalidraw/renderer/renderElement.d.ts +3 -2
- package/types/excalidraw/scene/Scene.d.ts +1 -0
- package/types/excalidraw/scene/comparisons.d.ts +1 -0
- package/types/excalidraw/scene/export.d.ts +8 -0
- package/types/excalidraw/scene/types.d.ts +7 -0
- package/types/excalidraw/types.d.ts +25 -1
- package/types/excalidraw/utils.d.ts +7 -1
- package/types/excalidraw/visualdebug.d.ts +8 -1
- package/types/math/line.d.ts +19 -0
- package/types/math/point.d.ts +10 -0
- package/types/math/utils.d.ts +1 -0
- package/types/math/vector.d.ts +4 -0
- package/types/utils/export.d.ts +6 -4
- package/types/excalidraw/components/MagicSettings.d.ts +0 -8
- package/types/excalidraw/components/Stats.d.ts +0 -11
- package/types/excalidraw/data/magic.d.ts +0 -23
- package/types/excalidraw/element/routing.d.ts +0 -12
- package/types/excalidraw/fonts/ExcalidrawFont.d.ts +0 -37
- package/types/excalidraw/fonts/wasm/hb-subset.bindings.d.ts +0 -45
- package/types/excalidraw/fonts/wasm/hb-subset.loader.d.ts +0 -5
- package/types/excalidraw/fonts/wasm/hb-subset.wasm.d.ts +0 -2
- package/types/excalidraw/fonts/wasm/woff2.bindings.d.ts +0 -31
- package/types/excalidraw/fonts/wasm/woff2.loader.d.ts +0 -6
- package/types/excalidraw/fonts/wasm/woff2.wasm.d.ts +0 -2
- package/types/excalidraw/fonts/woff2/Comic/index.d.ts +0 -2
- package/types/excalidraw/ga.d.ts +0 -63
- package/types/excalidraw/gadirections.d.ts +0 -8
- package/types/excalidraw/galines.d.ts +0 -22
- package/types/excalidraw/gapoints.d.ts +0 -7
- package/types/excalidraw/gatransforms.d.ts +0 -10
- package/types/excalidraw/jotai.d.ts +0 -34
- package/types/excalidraw/math.d.ts +0 -79
- package/types/excalidraw/scene/Fonts.d.ts +0 -19
- package/types/utils/geometry/geometry.d.ts +0 -89
- /package/types/excalidraw/fonts/{metadata.d.ts → FontMetadata.d.ts} +0 -0
- /package/types/excalidraw/{fonts/wasm/hb-subset-bindings.d.ts → subset/harfbuzz/harfbuzz-bindings.d.ts} +0 -0
- /package/types/excalidraw/{fonts/wasm/hb-subset-loader.d.ts → subset/harfbuzz/harfbuzz-loader.d.ts} +0 -0
- /package/types/excalidraw/{fonts/wasm/hb-subset-wasm.d.ts → subset/harfbuzz/harfbuzz-wasm.d.ts} +0 -0
- /package/types/excalidraw/{fonts/subset → subset}/subset-main.d.ts +0 -0
- /package/types/excalidraw/{fonts/subset → subset}/subset-shared.chunk.d.ts +0 -0
- /package/types/excalidraw/{fonts/subset → subset}/subset-worker.chunk.d.ts +0 -0
- /package/types/excalidraw/{fonts/wasm → subset/woff2}/woff2-bindings.d.ts +0 -0
- /package/types/excalidraw/{fonts/wasm → subset/woff2}/woff2-loader.d.ts +0 -0
- /package/types/excalidraw/{fonts/wasm → subset/woff2}/woff2-wasm.d.ts +0 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
export declare const actionCopyElementLink: {
|
|
2
|
+
name: "copyElementLink";
|
|
3
|
+
label: string;
|
|
4
|
+
icon: JSX.Element;
|
|
5
|
+
trackEvent: {
|
|
6
|
+
category: "element";
|
|
7
|
+
};
|
|
8
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<{
|
|
9
|
+
appState: {
|
|
10
|
+
toast: {
|
|
11
|
+
message: string;
|
|
12
|
+
closable: true;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
storeAction: "none";
|
|
16
|
+
elements?: undefined;
|
|
17
|
+
app?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
appState: Readonly<import("../types").AppState>;
|
|
20
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
21
|
+
app: import("../types").AppClassProperties;
|
|
22
|
+
storeAction: "none";
|
|
23
|
+
}>;
|
|
24
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState) => false;
|
|
25
|
+
} & {
|
|
26
|
+
keyTest?: undefined;
|
|
27
|
+
};
|
|
28
|
+
export declare const actionLinkToElement: {
|
|
29
|
+
name: "linkToElement";
|
|
30
|
+
label: string;
|
|
31
|
+
icon: JSX.Element;
|
|
32
|
+
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => {
|
|
33
|
+
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
34
|
+
appState: Readonly<import("../types").AppState>;
|
|
35
|
+
app: import("../types").AppClassProperties;
|
|
36
|
+
storeAction: "none";
|
|
37
|
+
} | {
|
|
38
|
+
appState: {
|
|
39
|
+
openDialog: {
|
|
40
|
+
name: "elementLinkSelector";
|
|
41
|
+
sourceElementId: string;
|
|
42
|
+
};
|
|
43
|
+
contextMenu: {
|
|
44
|
+
items: import("../components/ContextMenu").ContextMenuItems;
|
|
45
|
+
top: number;
|
|
46
|
+
left: number;
|
|
47
|
+
} | null;
|
|
48
|
+
showWelcomeScreen: boolean;
|
|
49
|
+
isLoading: boolean;
|
|
50
|
+
errorMessage: import("react").ReactNode;
|
|
51
|
+
activeEmbeddable: {
|
|
52
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
53
|
+
state: "active" | "hover";
|
|
54
|
+
} | null;
|
|
55
|
+
newElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawNonSelectionElement> | null;
|
|
56
|
+
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
57
|
+
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
58
|
+
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
59
|
+
isBindingEnabled: boolean;
|
|
60
|
+
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
61
|
+
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
62
|
+
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameLikeElement> | null;
|
|
63
|
+
frameRendering: {
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
name: boolean;
|
|
66
|
+
outline: boolean;
|
|
67
|
+
clip: boolean;
|
|
68
|
+
};
|
|
69
|
+
editingFrame: string | null;
|
|
70
|
+
elementsToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawElement>[] | null;
|
|
71
|
+
editingTextElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
72
|
+
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
73
|
+
activeTool: {
|
|
74
|
+
lastActiveTool: import("../types").ActiveTool | null;
|
|
75
|
+
locked: boolean;
|
|
76
|
+
} & import("../types").ActiveTool;
|
|
77
|
+
penMode: boolean;
|
|
78
|
+
penDetected: boolean;
|
|
79
|
+
exportBackground: boolean;
|
|
80
|
+
exportEmbedScene: boolean;
|
|
81
|
+
exportWithDarkMode: boolean;
|
|
82
|
+
exportScale: number;
|
|
83
|
+
currentItemStrokeColor: string;
|
|
84
|
+
currentItemBackgroundColor: string;
|
|
85
|
+
currentItemFillStyle: import("../element/types").FillStyle;
|
|
86
|
+
currentItemStrokeWidth: number;
|
|
87
|
+
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
88
|
+
currentItemRoughness: number;
|
|
89
|
+
currentItemOpacity: number;
|
|
90
|
+
currentItemFontFamily: number;
|
|
91
|
+
currentItemFontSize: number;
|
|
92
|
+
currentItemTextAlign: string;
|
|
93
|
+
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
94
|
+
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
95
|
+
currentHoveredFontFamily: number | null;
|
|
96
|
+
currentItemRoundness: import("../element/types").StrokeRoundness;
|
|
97
|
+
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
98
|
+
viewBackgroundColor: string;
|
|
99
|
+
scrollX: number;
|
|
100
|
+
scrollY: number;
|
|
101
|
+
cursorButton: "up" | "down";
|
|
102
|
+
scrolledOutside: boolean;
|
|
103
|
+
name: string | null;
|
|
104
|
+
isResizing: boolean;
|
|
105
|
+
isRotating: boolean;
|
|
106
|
+
zoom: Readonly<{
|
|
107
|
+
value: import("../types").NormalizedZoomValue;
|
|
108
|
+
}>;
|
|
109
|
+
openMenu: "canvas" | "shape" | null;
|
|
110
|
+
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
|
|
111
|
+
openSidebar: {
|
|
112
|
+
name: string;
|
|
113
|
+
tab?: string | undefined;
|
|
114
|
+
} | null;
|
|
115
|
+
defaultSidebarDockedPreference: boolean;
|
|
116
|
+
lastPointerDownWith: import("../element/types").PointerType;
|
|
117
|
+
selectedElementIds: Readonly<{
|
|
118
|
+
[id: string]: true;
|
|
119
|
+
}>;
|
|
120
|
+
hoveredElementIds: Readonly<{
|
|
121
|
+
[id: string]: true;
|
|
122
|
+
}>;
|
|
123
|
+
previousSelectedElementIds: {
|
|
124
|
+
[id: string]: true;
|
|
125
|
+
};
|
|
126
|
+
selectedElementsAreBeingDragged: boolean;
|
|
127
|
+
shouldCacheIgnoreZoom: boolean;
|
|
128
|
+
toast: {
|
|
129
|
+
message: string;
|
|
130
|
+
closable?: boolean | undefined;
|
|
131
|
+
duration?: number | undefined;
|
|
132
|
+
} | null;
|
|
133
|
+
zenModeEnabled: boolean;
|
|
134
|
+
theme: import("../element/types").Theme;
|
|
135
|
+
gridSize: number;
|
|
136
|
+
gridStep: number;
|
|
137
|
+
gridModeEnabled: boolean;
|
|
138
|
+
viewModeEnabled: boolean;
|
|
139
|
+
selectedGroupIds: {
|
|
140
|
+
[groupId: string]: boolean;
|
|
141
|
+
};
|
|
142
|
+
editingGroupId: string | null;
|
|
143
|
+
width: number;
|
|
144
|
+
height: number;
|
|
145
|
+
offsetTop: number;
|
|
146
|
+
offsetLeft: number;
|
|
147
|
+
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
148
|
+
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
149
|
+
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
150
|
+
button?: "up" | "down" | undefined;
|
|
151
|
+
selectedElementIds?: Readonly<{
|
|
152
|
+
[id: string]: true;
|
|
153
|
+
}> | undefined;
|
|
154
|
+
username?: string | null | undefined;
|
|
155
|
+
userState?: import("../types").UserIdleState | undefined;
|
|
156
|
+
color?: {
|
|
157
|
+
background: string;
|
|
158
|
+
stroke: string;
|
|
159
|
+
} | undefined;
|
|
160
|
+
avatarUrl?: string | undefined;
|
|
161
|
+
id?: string | undefined;
|
|
162
|
+
socketId?: import("../types").SocketId | undefined;
|
|
163
|
+
isCurrentUser?: boolean | undefined;
|
|
164
|
+
isInCall?: boolean | undefined;
|
|
165
|
+
isSpeaking?: boolean | undefined;
|
|
166
|
+
isMuted?: boolean | undefined;
|
|
167
|
+
}>>;
|
|
168
|
+
stats: {
|
|
169
|
+
open: boolean;
|
|
170
|
+
panels: number;
|
|
171
|
+
};
|
|
172
|
+
currentChartType: import("../element/types").ChartType;
|
|
173
|
+
pasteDialog: {
|
|
174
|
+
shown: false;
|
|
175
|
+
data: null;
|
|
176
|
+
} | {
|
|
177
|
+
shown: true;
|
|
178
|
+
data: import("../charts").Spreadsheet;
|
|
179
|
+
};
|
|
180
|
+
pendingImageElementId: string | null;
|
|
181
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
182
|
+
linkOpacity: number;
|
|
183
|
+
trayModeEnabled: boolean;
|
|
184
|
+
colorPalette?: {
|
|
185
|
+
canvasBackground: import("../colors").ColorPaletteCustom;
|
|
186
|
+
elementBackground: import("../colors").ColorPaletteCustom;
|
|
187
|
+
elementStroke: import("../colors").ColorPaletteCustom;
|
|
188
|
+
topPicks: {
|
|
189
|
+
canvasBackground: [string, string, string, string, string];
|
|
190
|
+
elementStroke: [string, string, string, string, string];
|
|
191
|
+
elementBackground: [string, string, string, string, string];
|
|
192
|
+
};
|
|
193
|
+
} | undefined;
|
|
194
|
+
allowWheelZoom?: boolean | undefined;
|
|
195
|
+
allowPinchZoom?: boolean | undefined;
|
|
196
|
+
pinnedScripts?: string[] | undefined;
|
|
197
|
+
customPens?: any[] | undefined;
|
|
198
|
+
currentStrokeOptions?: any;
|
|
199
|
+
resetCustomPen?: any;
|
|
200
|
+
gridColor: {
|
|
201
|
+
Bold: string;
|
|
202
|
+
Regular: string;
|
|
203
|
+
};
|
|
204
|
+
highlightSearchResult: boolean;
|
|
205
|
+
dynamicStyle: {
|
|
206
|
+
[x: string]: string;
|
|
207
|
+
};
|
|
208
|
+
frameColor: {
|
|
209
|
+
stroke: string;
|
|
210
|
+
fill: string;
|
|
211
|
+
nameColor: string;
|
|
212
|
+
};
|
|
213
|
+
invertBindingBehaviour: boolean;
|
|
214
|
+
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
215
|
+
snapLines: readonly import("../snapping").SnapLine[];
|
|
216
|
+
originSnapOffset: {
|
|
217
|
+
x: number;
|
|
218
|
+
y: number;
|
|
219
|
+
} | null;
|
|
220
|
+
objectsSnapModeEnabled: boolean;
|
|
221
|
+
userToFollow: import("../types").UserToFollow | null;
|
|
222
|
+
followedBy: Set<import("../types").SocketId>;
|
|
223
|
+
isCropping: boolean;
|
|
224
|
+
croppingElementId: string | null;
|
|
225
|
+
searchMatches: readonly {
|
|
226
|
+
id: string;
|
|
227
|
+
focus: boolean;
|
|
228
|
+
matchedLines: {
|
|
229
|
+
offsetX: number;
|
|
230
|
+
offsetY: number;
|
|
231
|
+
width: number;
|
|
232
|
+
height: number;
|
|
233
|
+
}[];
|
|
234
|
+
}[];
|
|
235
|
+
};
|
|
236
|
+
storeAction: "capture";
|
|
237
|
+
elements?: undefined;
|
|
238
|
+
app?: undefined;
|
|
239
|
+
};
|
|
240
|
+
predicate: (elements: readonly import("../element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => false;
|
|
241
|
+
trackEvent: false;
|
|
242
|
+
} & {
|
|
243
|
+
keyTest?: undefined;
|
|
244
|
+
};
|
|
@@ -84,18 +84,24 @@ export declare const actionToggleElementLock: {
|
|
|
84
84
|
tab?: string | undefined;
|
|
85
85
|
} | null;
|
|
86
86
|
openDialog: {
|
|
87
|
-
name: "
|
|
87
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
88
88
|
} | {
|
|
89
89
|
name: "ttd";
|
|
90
90
|
tab: "mermaid" | "text-to-diagram";
|
|
91
91
|
} | {
|
|
92
92
|
name: "commandPalette";
|
|
93
|
+
} | {
|
|
94
|
+
name: "elementLinkSelector";
|
|
95
|
+
sourceElementId: string;
|
|
93
96
|
} | null;
|
|
94
97
|
defaultSidebarDockedPreference: boolean;
|
|
95
98
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
96
99
|
selectedElementIds: Readonly<{
|
|
97
100
|
[id: string]: true;
|
|
98
101
|
}>;
|
|
102
|
+
hoveredElementIds: Readonly<{
|
|
103
|
+
[id: string]: true;
|
|
104
|
+
}>;
|
|
99
105
|
previousSelectedElementIds: {
|
|
100
106
|
[id: string]: true;
|
|
101
107
|
};
|
|
@@ -195,6 +201,8 @@ export declare const actionToggleElementLock: {
|
|
|
195
201
|
objectsSnapModeEnabled: boolean;
|
|
196
202
|
userToFollow: import("../types").UserToFollow | null;
|
|
197
203
|
followedBy: Set<import("../types").SocketId>;
|
|
204
|
+
isCropping: boolean;
|
|
205
|
+
croppingElementId: string | null;
|
|
198
206
|
searchMatches: readonly {
|
|
199
207
|
id: string;
|
|
200
208
|
focus: boolean;
|
|
@@ -300,15 +308,21 @@ export declare const actionUnlockAllElements: {
|
|
|
300
308
|
tab?: string | undefined;
|
|
301
309
|
} | null;
|
|
302
310
|
openDialog: {
|
|
303
|
-
name: "
|
|
311
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
304
312
|
} | {
|
|
305
313
|
name: "ttd";
|
|
306
314
|
tab: "mermaid" | "text-to-diagram";
|
|
307
315
|
} | {
|
|
308
316
|
name: "commandPalette";
|
|
317
|
+
} | {
|
|
318
|
+
name: "elementLinkSelector";
|
|
319
|
+
sourceElementId: string;
|
|
309
320
|
} | null;
|
|
310
321
|
defaultSidebarDockedPreference: boolean;
|
|
311
322
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
323
|
+
hoveredElementIds: Readonly<{
|
|
324
|
+
[id: string]: true;
|
|
325
|
+
}>;
|
|
312
326
|
previousSelectedElementIds: {
|
|
313
327
|
[id: string]: true;
|
|
314
328
|
};
|
|
@@ -409,6 +423,8 @@ export declare const actionUnlockAllElements: {
|
|
|
409
423
|
objectsSnapModeEnabled: boolean;
|
|
410
424
|
userToFollow: import("../types").UserToFollow | null;
|
|
411
425
|
followedBy: Set<import("../types").SocketId>;
|
|
426
|
+
isCropping: boolean;
|
|
427
|
+
croppingElementId: string | null;
|
|
412
428
|
searchMatches: readonly {
|
|
413
429
|
id: string;
|
|
414
430
|
focus: boolean;
|
|
@@ -79,18 +79,24 @@ export declare const actionChangeProjectName: {
|
|
|
79
79
|
tab?: string | undefined;
|
|
80
80
|
} | null;
|
|
81
81
|
openDialog: {
|
|
82
|
-
name: "
|
|
82
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
83
83
|
} | {
|
|
84
84
|
name: "ttd";
|
|
85
85
|
tab: "mermaid" | "text-to-diagram";
|
|
86
86
|
} | {
|
|
87
87
|
name: "commandPalette";
|
|
88
|
+
} | {
|
|
89
|
+
name: "elementLinkSelector";
|
|
90
|
+
sourceElementId: string;
|
|
88
91
|
} | null;
|
|
89
92
|
defaultSidebarDockedPreference: boolean;
|
|
90
93
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
91
94
|
selectedElementIds: Readonly<{
|
|
92
95
|
[id: string]: true;
|
|
93
96
|
}>;
|
|
97
|
+
hoveredElementIds: Readonly<{
|
|
98
|
+
[id: string]: true;
|
|
99
|
+
}>;
|
|
94
100
|
previousSelectedElementIds: {
|
|
95
101
|
[id: string]: true;
|
|
96
102
|
};
|
|
@@ -191,6 +197,8 @@ export declare const actionChangeProjectName: {
|
|
|
191
197
|
objectsSnapModeEnabled: boolean;
|
|
192
198
|
userToFollow: import("../types").UserToFollow | null;
|
|
193
199
|
followedBy: Set<import("../types").SocketId>;
|
|
200
|
+
isCropping: boolean;
|
|
201
|
+
croppingElementId: string | null;
|
|
194
202
|
searchMatches: readonly {
|
|
195
203
|
id: string;
|
|
196
204
|
focus: boolean;
|
|
@@ -290,18 +298,24 @@ export declare const actionChangeExportScale: {
|
|
|
290
298
|
tab?: string | undefined;
|
|
291
299
|
} | null;
|
|
292
300
|
openDialog: {
|
|
293
|
-
name: "
|
|
301
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
294
302
|
} | {
|
|
295
303
|
name: "ttd";
|
|
296
304
|
tab: "mermaid" | "text-to-diagram";
|
|
297
305
|
} | {
|
|
298
306
|
name: "commandPalette";
|
|
307
|
+
} | {
|
|
308
|
+
name: "elementLinkSelector";
|
|
309
|
+
sourceElementId: string;
|
|
299
310
|
} | null;
|
|
300
311
|
defaultSidebarDockedPreference: boolean;
|
|
301
312
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
302
313
|
selectedElementIds: Readonly<{
|
|
303
314
|
[id: string]: true;
|
|
304
315
|
}>;
|
|
316
|
+
hoveredElementIds: Readonly<{
|
|
317
|
+
[id: string]: true;
|
|
318
|
+
}>;
|
|
305
319
|
previousSelectedElementIds: {
|
|
306
320
|
[id: string]: true;
|
|
307
321
|
};
|
|
@@ -402,6 +416,8 @@ export declare const actionChangeExportScale: {
|
|
|
402
416
|
objectsSnapModeEnabled: boolean;
|
|
403
417
|
userToFollow: import("../types").UserToFollow | null;
|
|
404
418
|
followedBy: Set<import("../types").SocketId>;
|
|
419
|
+
isCropping: boolean;
|
|
420
|
+
croppingElementId: string | null;
|
|
405
421
|
searchMatches: readonly {
|
|
406
422
|
id: string;
|
|
407
423
|
focus: boolean;
|
|
@@ -501,18 +517,24 @@ export declare const actionChangeExportBackground: {
|
|
|
501
517
|
tab?: string | undefined;
|
|
502
518
|
} | null;
|
|
503
519
|
openDialog: {
|
|
504
|
-
name: "
|
|
520
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
505
521
|
} | {
|
|
506
522
|
name: "ttd";
|
|
507
523
|
tab: "mermaid" | "text-to-diagram";
|
|
508
524
|
} | {
|
|
509
525
|
name: "commandPalette";
|
|
526
|
+
} | {
|
|
527
|
+
name: "elementLinkSelector";
|
|
528
|
+
sourceElementId: string;
|
|
510
529
|
} | null;
|
|
511
530
|
defaultSidebarDockedPreference: boolean;
|
|
512
531
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
513
532
|
selectedElementIds: Readonly<{
|
|
514
533
|
[id: string]: true;
|
|
515
534
|
}>;
|
|
535
|
+
hoveredElementIds: Readonly<{
|
|
536
|
+
[id: string]: true;
|
|
537
|
+
}>;
|
|
516
538
|
previousSelectedElementIds: {
|
|
517
539
|
[id: string]: true;
|
|
518
540
|
};
|
|
@@ -613,6 +635,8 @@ export declare const actionChangeExportBackground: {
|
|
|
613
635
|
objectsSnapModeEnabled: boolean;
|
|
614
636
|
userToFollow: import("../types").UserToFollow | null;
|
|
615
637
|
followedBy: Set<import("../types").SocketId>;
|
|
638
|
+
isCropping: boolean;
|
|
639
|
+
croppingElementId: string | null;
|
|
616
640
|
searchMatches: readonly {
|
|
617
641
|
id: string;
|
|
618
642
|
focus: boolean;
|
|
@@ -712,18 +736,24 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
712
736
|
tab?: string | undefined;
|
|
713
737
|
} | null;
|
|
714
738
|
openDialog: {
|
|
715
|
-
name: "
|
|
739
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
716
740
|
} | {
|
|
717
741
|
name: "ttd";
|
|
718
742
|
tab: "mermaid" | "text-to-diagram";
|
|
719
743
|
} | {
|
|
720
744
|
name: "commandPalette";
|
|
745
|
+
} | {
|
|
746
|
+
name: "elementLinkSelector";
|
|
747
|
+
sourceElementId: string;
|
|
721
748
|
} | null;
|
|
722
749
|
defaultSidebarDockedPreference: boolean;
|
|
723
750
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
724
751
|
selectedElementIds: Readonly<{
|
|
725
752
|
[id: string]: true;
|
|
726
753
|
}>;
|
|
754
|
+
hoveredElementIds: Readonly<{
|
|
755
|
+
[id: string]: true;
|
|
756
|
+
}>;
|
|
727
757
|
previousSelectedElementIds: {
|
|
728
758
|
[id: string]: true;
|
|
729
759
|
};
|
|
@@ -824,6 +854,8 @@ export declare const actionChangeExportEmbedScene: {
|
|
|
824
854
|
objectsSnapModeEnabled: boolean;
|
|
825
855
|
userToFollow: import("../types").UserToFollow | null;
|
|
826
856
|
followedBy: Set<import("../types").SocketId>;
|
|
857
|
+
isCropping: boolean;
|
|
858
|
+
croppingElementId: string | null;
|
|
827
859
|
searchMatches: readonly {
|
|
828
860
|
id: string;
|
|
829
861
|
focus: boolean;
|
|
@@ -929,18 +961,24 @@ export declare const actionSaveToActiveFile: {
|
|
|
929
961
|
tab?: string | undefined;
|
|
930
962
|
} | null;
|
|
931
963
|
openDialog: {
|
|
932
|
-
name: "
|
|
964
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
933
965
|
} | {
|
|
934
966
|
name: "ttd";
|
|
935
967
|
tab: "mermaid" | "text-to-diagram";
|
|
936
968
|
} | {
|
|
937
969
|
name: "commandPalette";
|
|
970
|
+
} | {
|
|
971
|
+
name: "elementLinkSelector";
|
|
972
|
+
sourceElementId: string;
|
|
938
973
|
} | null;
|
|
939
974
|
defaultSidebarDockedPreference: boolean;
|
|
940
975
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
941
976
|
selectedElementIds: Readonly<{
|
|
942
977
|
[id: string]: true;
|
|
943
978
|
}>;
|
|
979
|
+
hoveredElementIds: Readonly<{
|
|
980
|
+
[id: string]: true;
|
|
981
|
+
}>;
|
|
944
982
|
previousSelectedElementIds: {
|
|
945
983
|
[id: string]: true;
|
|
946
984
|
};
|
|
@@ -1035,6 +1073,8 @@ export declare const actionSaveToActiveFile: {
|
|
|
1035
1073
|
objectsSnapModeEnabled: boolean;
|
|
1036
1074
|
userToFollow: import("../types").UserToFollow | null;
|
|
1037
1075
|
followedBy: Set<import("../types").SocketId>;
|
|
1076
|
+
isCropping: boolean;
|
|
1077
|
+
croppingElementId: string | null;
|
|
1038
1078
|
searchMatches: readonly {
|
|
1039
1079
|
id: string;
|
|
1040
1080
|
focus: boolean;
|
|
@@ -1147,6 +1187,9 @@ export declare const actionSaveFileToDisk: {
|
|
|
1147
1187
|
selectedElementIds: Readonly<{
|
|
1148
1188
|
[id: string]: true;
|
|
1149
1189
|
}>;
|
|
1190
|
+
hoveredElementIds: Readonly<{
|
|
1191
|
+
[id: string]: true;
|
|
1192
|
+
}>;
|
|
1150
1193
|
previousSelectedElementIds: {
|
|
1151
1194
|
[id: string]: true;
|
|
1152
1195
|
};
|
|
@@ -1241,6 +1284,8 @@ export declare const actionSaveFileToDisk: {
|
|
|
1241
1284
|
objectsSnapModeEnabled: boolean;
|
|
1242
1285
|
userToFollow: import("../types").UserToFollow | null;
|
|
1243
1286
|
followedBy: Set<import("../types").SocketId>;
|
|
1287
|
+
isCropping: boolean;
|
|
1288
|
+
croppingElementId: string | null;
|
|
1244
1289
|
searchMatches: readonly {
|
|
1245
1290
|
id: string;
|
|
1246
1291
|
focus: boolean;
|
|
@@ -1344,18 +1389,24 @@ export declare const actionLoadScene: {
|
|
|
1344
1389
|
tab?: string | undefined;
|
|
1345
1390
|
} | null;
|
|
1346
1391
|
openDialog: {
|
|
1347
|
-
name: "
|
|
1392
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
1348
1393
|
} | {
|
|
1349
1394
|
name: "ttd";
|
|
1350
1395
|
tab: "mermaid" | "text-to-diagram";
|
|
1351
1396
|
} | {
|
|
1352
1397
|
name: "commandPalette";
|
|
1398
|
+
} | {
|
|
1399
|
+
name: "elementLinkSelector";
|
|
1400
|
+
sourceElementId: string;
|
|
1353
1401
|
} | null;
|
|
1354
1402
|
defaultSidebarDockedPreference: boolean;
|
|
1355
1403
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1356
1404
|
selectedElementIds: Readonly<{
|
|
1357
1405
|
[id: string]: true;
|
|
1358
1406
|
}>;
|
|
1407
|
+
hoveredElementIds: Readonly<{
|
|
1408
|
+
[id: string]: true;
|
|
1409
|
+
}>;
|
|
1359
1410
|
previousSelectedElementIds: {
|
|
1360
1411
|
[id: string]: true;
|
|
1361
1412
|
};
|
|
@@ -1452,6 +1503,8 @@ export declare const actionLoadScene: {
|
|
|
1452
1503
|
objectsSnapModeEnabled: boolean;
|
|
1453
1504
|
userToFollow: import("../types").UserToFollow | null;
|
|
1454
1505
|
followedBy: Set<import("../types").SocketId>;
|
|
1506
|
+
isCropping: boolean;
|
|
1507
|
+
croppingElementId: string | null;
|
|
1455
1508
|
searchMatches: readonly {
|
|
1456
1509
|
id: string;
|
|
1457
1510
|
focus: boolean;
|
|
@@ -1541,18 +1594,24 @@ export declare const actionLoadScene: {
|
|
|
1541
1594
|
tab?: string | undefined;
|
|
1542
1595
|
} | null;
|
|
1543
1596
|
openDialog: {
|
|
1544
|
-
name: "
|
|
1597
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
1545
1598
|
} | {
|
|
1546
1599
|
name: "ttd";
|
|
1547
1600
|
tab: "mermaid" | "text-to-diagram";
|
|
1548
1601
|
} | {
|
|
1549
1602
|
name: "commandPalette";
|
|
1603
|
+
} | {
|
|
1604
|
+
name: "elementLinkSelector";
|
|
1605
|
+
sourceElementId: string;
|
|
1550
1606
|
} | null;
|
|
1551
1607
|
defaultSidebarDockedPreference: boolean;
|
|
1552
1608
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1553
1609
|
selectedElementIds: Readonly<{
|
|
1554
1610
|
[id: string]: true;
|
|
1555
1611
|
}>;
|
|
1612
|
+
hoveredElementIds: Readonly<{
|
|
1613
|
+
[id: string]: true;
|
|
1614
|
+
}>;
|
|
1556
1615
|
previousSelectedElementIds: {
|
|
1557
1616
|
[id: string]: true;
|
|
1558
1617
|
};
|
|
@@ -1653,6 +1712,8 @@ export declare const actionLoadScene: {
|
|
|
1653
1712
|
objectsSnapModeEnabled: boolean;
|
|
1654
1713
|
userToFollow: import("../types").UserToFollow | null;
|
|
1655
1714
|
followedBy: Set<import("../types").SocketId>;
|
|
1715
|
+
isCropping: boolean;
|
|
1716
|
+
croppingElementId: string | null;
|
|
1656
1717
|
searchMatches: readonly {
|
|
1657
1718
|
id: string;
|
|
1658
1719
|
focus: boolean;
|
|
@@ -1753,18 +1814,24 @@ export declare const actionExportWithDarkMode: {
|
|
|
1753
1814
|
tab?: string | undefined;
|
|
1754
1815
|
} | null;
|
|
1755
1816
|
openDialog: {
|
|
1756
|
-
name: "
|
|
1817
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
1757
1818
|
} | {
|
|
1758
1819
|
name: "ttd";
|
|
1759
1820
|
tab: "mermaid" | "text-to-diagram";
|
|
1760
1821
|
} | {
|
|
1761
1822
|
name: "commandPalette";
|
|
1823
|
+
} | {
|
|
1824
|
+
name: "elementLinkSelector";
|
|
1825
|
+
sourceElementId: string;
|
|
1762
1826
|
} | null;
|
|
1763
1827
|
defaultSidebarDockedPreference: boolean;
|
|
1764
1828
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
1765
1829
|
selectedElementIds: Readonly<{
|
|
1766
1830
|
[id: string]: true;
|
|
1767
1831
|
}>;
|
|
1832
|
+
hoveredElementIds: Readonly<{
|
|
1833
|
+
[id: string]: true;
|
|
1834
|
+
}>;
|
|
1768
1835
|
previousSelectedElementIds: {
|
|
1769
1836
|
[id: string]: true;
|
|
1770
1837
|
};
|
|
@@ -1865,6 +1932,8 @@ export declare const actionExportWithDarkMode: {
|
|
|
1865
1932
|
objectsSnapModeEnabled: boolean;
|
|
1866
1933
|
userToFollow: import("../types").UserToFollow | null;
|
|
1867
1934
|
followedBy: Set<import("../types").SocketId>;
|
|
1935
|
+
isCropping: boolean;
|
|
1936
|
+
croppingElementId: string | null;
|
|
1868
1937
|
searchMatches: readonly {
|
|
1869
1938
|
id: string;
|
|
1870
1939
|
focus: boolean;
|
|
@@ -80,18 +80,24 @@ export declare const actionFinalize: {
|
|
|
80
80
|
tab?: string | undefined;
|
|
81
81
|
} | null;
|
|
82
82
|
openDialog: {
|
|
83
|
-
name: "
|
|
83
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
84
84
|
} | {
|
|
85
85
|
name: "ttd";
|
|
86
86
|
tab: "mermaid" | "text-to-diagram";
|
|
87
87
|
} | {
|
|
88
88
|
name: "commandPalette";
|
|
89
|
+
} | {
|
|
90
|
+
name: "elementLinkSelector";
|
|
91
|
+
sourceElementId: string;
|
|
89
92
|
} | null;
|
|
90
93
|
defaultSidebarDockedPreference: boolean;
|
|
91
94
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
92
95
|
selectedElementIds: Readonly<{
|
|
93
96
|
[id: string]: true;
|
|
94
97
|
}>;
|
|
98
|
+
hoveredElementIds: Readonly<{
|
|
99
|
+
[id: string]: true;
|
|
100
|
+
}>;
|
|
95
101
|
previousSelectedElementIds: {
|
|
96
102
|
[id: string]: true;
|
|
97
103
|
};
|
|
@@ -192,6 +198,8 @@ export declare const actionFinalize: {
|
|
|
192
198
|
objectsSnapModeEnabled: boolean;
|
|
193
199
|
userToFollow: import("../types").UserToFollow | null;
|
|
194
200
|
followedBy: Set<import("../types").SocketId>;
|
|
201
|
+
isCropping: boolean;
|
|
202
|
+
croppingElementId: string | null;
|
|
195
203
|
searchMatches: readonly {
|
|
196
204
|
id: string;
|
|
197
205
|
focus: boolean;
|
|
@@ -282,15 +290,21 @@ export declare const actionFinalize: {
|
|
|
282
290
|
tab?: string | undefined;
|
|
283
291
|
} | null;
|
|
284
292
|
openDialog: {
|
|
285
|
-
name: "
|
|
293
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
286
294
|
} | {
|
|
287
295
|
name: "ttd";
|
|
288
296
|
tab: "mermaid" | "text-to-diagram";
|
|
289
297
|
} | {
|
|
290
298
|
name: "commandPalette";
|
|
299
|
+
} | {
|
|
300
|
+
name: "elementLinkSelector";
|
|
301
|
+
sourceElementId: string;
|
|
291
302
|
} | null;
|
|
292
303
|
defaultSidebarDockedPreference: boolean;
|
|
293
304
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
305
|
+
hoveredElementIds: Readonly<{
|
|
306
|
+
[id: string]: true;
|
|
307
|
+
}>;
|
|
294
308
|
previousSelectedElementIds: {
|
|
295
309
|
[id: string]: true;
|
|
296
310
|
};
|
|
@@ -389,6 +403,8 @@ export declare const actionFinalize: {
|
|
|
389
403
|
objectsSnapModeEnabled: boolean;
|
|
390
404
|
userToFollow: import("../types").UserToFollow | null;
|
|
391
405
|
followedBy: Set<import("../types").SocketId>;
|
|
406
|
+
isCropping: boolean;
|
|
407
|
+
croppingElementId: string | null;
|
|
392
408
|
searchMatches: readonly {
|
|
393
409
|
id: string;
|
|
394
410
|
focus: boolean;
|