@excalidraw/excalidraw 0.15.2-3ddcc48 → 0.15.2-5302490
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/CHANGELOG.md +19 -0
- package/dist/excalidraw-assets/locales/{es-ES-json-f2467c6a875a9e288756.js → es-ES-json-4f3da97feff33cb00e6d.js} +1 -1
- package/dist/excalidraw-assets/locales/{hi-IN-json-e22f4ad73126c2971850.js → hi-IN-json-3898c9c1216b44476529.js} +1 -1
- package/dist/excalidraw-assets/locales/{id-ID-json-0e69caf5d919807ed234.js → id-ID-json-43d505d7071a0e359681.js} +1 -1
- package/dist/excalidraw-assets/locales/{kk-KZ-json-106d2a41c68f69765668.js → kk-KZ-json-f648362328b839e9313f.js} +1 -1
- package/dist/excalidraw-assets/locales/{pa-IN-json-0fd029451b07248c5194.js → pa-IN-json-d9ee09801ed220840b2b.js} +1 -1
- package/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.js → vendor-ef3c5d81a00ef582b871.js} +2 -2
- package/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.js → vendor-a14cd58fa2db417e42b2.js} +6 -6
- package/dist/excalidraw.development.js +2237 -2116
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +7 -2
- package/types/actions/actionAddToLibrary.d.ts +51 -25
- package/types/actions/actionAlign.d.ts +19 -20
- package/types/actions/actionBoundText.d.ts +38 -20
- package/types/actions/actionCanvas.d.ts +182 -90
- package/types/actions/actionClipboard.d.ts +81 -40
- package/types/actions/actionDeleteSelected.d.ts +45 -22
- package/types/actions/actionDistribute.d.ts +5 -6
- package/types/actions/actionDuplicateSelection.d.ts +0 -1
- package/types/actions/actionElementLock.d.ts +36 -19
- package/types/actions/actionExport.d.ts +161 -80
- package/types/actions/actionFinalize.d.ts +32 -18
- package/types/actions/actionFlip.d.ts +2 -3
- package/types/actions/actionFrame.d.ts +56 -30
- package/types/actions/actionGroup.d.ts +246 -9
- package/types/actions/actionLinearEditor.d.ts +19 -11
- package/types/actions/actionMenu.d.ts +51 -25
- package/types/actions/actionProperties.d.ts +223 -105
- package/types/actions/actionSelectAll.d.ts +121 -2
- package/types/actions/actionStyles.d.ts +17 -9
- package/types/actions/actionToggleGridMode.d.ts +17 -9
- package/types/actions/actionToggleStats.d.ts +17 -9
- package/types/actions/actionToggleViewMode.d.ts +17 -9
- package/types/actions/actionToggleZenMode.d.ts +17 -9
- package/types/actions/types.d.ts +4 -3
- package/types/appState.d.ts +7 -7
- package/types/clipboard.d.ts +1 -0
- package/types/colors.d.ts +9 -9
- package/types/components/Actions.d.ts +2 -2
- package/types/components/App.d.ts +24 -7
- package/types/components/Button.d.ts +0 -1
- package/types/components/Card.d.ts +0 -1
- package/types/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/types/components/DefaultSidebar.d.ts +0 -1
- package/types/components/ExcalidrawLogo.d.ts +15 -0
- package/types/components/EyeDropper.d.ts +0 -1
- package/types/components/HintViewer.d.ts +3 -4
- package/types/components/JSONExportDialog.d.ts +1 -1
- package/types/components/LayerUI.d.ts +4 -2
- package/types/components/LibraryMenuHeaderContent.d.ts +0 -1
- package/types/components/LibraryUnit.d.ts +0 -1
- package/types/components/LoadingMessage.d.ts +0 -1
- package/types/components/MobileMenu.d.ts +4 -3
- package/types/components/Section.d.ts +1 -1
- package/types/components/Sidebar/SidebarTab.d.ts +0 -1
- package/types/components/Sidebar/SidebarTabTrigger.d.ts +0 -1
- package/types/components/Sidebar/SidebarTabTriggers.d.ts +0 -1
- package/types/components/Sidebar/SidebarTabs.d.ts +0 -1
- package/types/components/Stack.d.ts +2 -2
- package/types/components/Trans.d.ts +2 -1
- package/types/components/canvases/InteractiveCanvas.d.ts +27 -0
- package/types/components/canvases/StaticCanvas.d.ts +18 -0
- package/types/components/canvases/index.d.ts +3 -0
- package/types/components/dropdownMenu/DropdownMenuTrigger.d.ts +0 -1
- package/types/components/icons.d.ts +1 -0
- package/types/components/live-collaboration/LiveCollaborationTrigger.d.ts +0 -1
- package/types/components/welcome-screen/WelcomeScreen.Center.d.ts +0 -1
- package/types/components/welcome-screen/WelcomeScreen.d.ts +0 -1
- package/types/constants.d.ts +17 -3
- package/types/data/transform.d.ts +71 -0
- package/types/data/url.d.ts +5 -0
- package/types/element/Hyperlink.d.ts +27 -13
- package/types/element/binding.d.ts +1 -0
- package/types/element/collision.d.ts +2 -2
- package/types/element/embeddable.d.ts +153 -0
- package/types/element/linearElementEditor.d.ts +20 -12
- package/types/element/newElement.d.ts +14 -7
- package/types/element/sizeHelpers.d.ts +8 -1
- package/types/element/textElement.d.ts +5 -7
- package/types/element/textWysiwyg.d.ts +1 -1
- package/types/element/transformHandles.d.ts +3 -3
- package/types/element/typeChecks.d.ts +2 -1
- package/types/element/types.d.ts +13 -2
- package/types/frame.d.ts +5 -5
- package/types/groups.d.ts +12 -12
- package/types/history.d.ts +3 -3
- package/types/hooks/useOutsideClick.d.ts +0 -1
- package/types/hooks/useScrollPosition.d.ts +0 -1
- package/types/i18n.d.ts +5 -2
- package/types/keys.d.ts +1 -0
- package/types/packages/excalidraw/example/initialData.d.ts +182 -70
- package/types/packages/excalidraw/index.d.ts +1 -0
- package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -2
- package/types/packages/excalidraw/webpack.prod.config.d.ts +3 -0
- package/types/packages/utils.d.ts +2 -1
- package/types/renderer/renderElement.d.ts +10 -22
- package/types/renderer/renderScene.d.ts +18 -37
- package/types/scene/Renderer.d.ts +25 -0
- package/types/scene/Scene.d.ts +15 -0
- package/types/scene/Shape.d.ts +12 -0
- package/types/scene/ShapeCache.d.ts +20 -0
- package/types/scene/export.d.ts +1 -0
- package/types/scene/scroll.d.ts +1 -1
- package/types/scene/scrollbars.d.ts +2 -6
- package/types/scene/selection.d.ts +13 -3
- package/types/scene/types.d.ts +57 -24
- package/types/types.d.ts +63 -12
- package/types/utility-types.d.ts +3 -1
- package/types/utils.d.ts +13 -5
- /package/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.js.LICENSE.txt → vendor-ef3c5d81a00ef582b871.js.LICENSE.txt} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{es-ES-json-f2467c6a875a9e288756.d.ts → es-ES-json-4f3da97feff33cb00e6d.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{hi-IN-json-e22f4ad73126c2971850.d.ts → hi-IN-json-3898c9c1216b44476529.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{id-ID-json-0e69caf5d919807ed234.d.ts → id-ID-json-43d505d7071a0e359681.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{kk-KZ-json-106d2a41c68f69765668.d.ts → kk-KZ-json-f648362328b839e9313f.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/locales/{pa-IN-json-0fd029451b07248c5194.d.ts → pa-IN-json-d9ee09801ed220840b2b.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-53d1c69ef585b6dd219b.d.ts → vendor-ef3c5d81a00ef582b871.d.ts} +0 -0
- /package/types/packages/excalidraw/dist/excalidraw-assets-dev/{vendor-e6df8519da951026ff69.d.ts → vendor-a14cd58fa2db417e42b2.d.ts} +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ExcalidrawElement } from "../element/types";
|
|
3
2
|
export declare const actionToggleElementLock: {
|
|
4
3
|
name: "toggleElementLock";
|
|
5
4
|
trackEvent: {
|
|
6
5
|
category: "element";
|
|
7
6
|
};
|
|
8
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
9
|
-
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState
|
|
7
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
8
|
+
perform: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => false | {
|
|
10
9
|
elements: ExcalidrawElement[];
|
|
11
10
|
appState: {
|
|
12
11
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
@@ -18,6 +17,10 @@ export declare const actionToggleElementLock: {
|
|
|
18
17
|
showWelcomeScreen: boolean;
|
|
19
18
|
isLoading: boolean;
|
|
20
19
|
errorMessage: import("react").ReactNode;
|
|
20
|
+
activeEmbeddable: {
|
|
21
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
22
|
+
state: "active" | "hover";
|
|
23
|
+
} | null;
|
|
21
24
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
25
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
23
26
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -26,7 +29,12 @@ export declare const actionToggleElementLock: {
|
|
|
26
29
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
27
30
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
28
31
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
29
|
-
|
|
32
|
+
frameRendering: {
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
name: boolean;
|
|
35
|
+
outline: boolean;
|
|
36
|
+
clip: boolean;
|
|
37
|
+
};
|
|
30
38
|
editingFrame: string | null;
|
|
31
39
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
32
40
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -35,7 +43,7 @@ export declare const actionToggleElementLock: {
|
|
|
35
43
|
lastActiveTool: import("../types").LastActiveTool;
|
|
36
44
|
locked: boolean;
|
|
37
45
|
} & ({
|
|
38
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
46
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
39
47
|
customType: null;
|
|
40
48
|
} | {
|
|
41
49
|
type: "custom";
|
|
@@ -80,11 +88,11 @@ export declare const actionToggleElementLock: {
|
|
|
80
88
|
openDialog: "imageExport" | "help" | "jsonExport" | null;
|
|
81
89
|
defaultSidebarDockedPreference: boolean;
|
|
82
90
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
83
|
-
selectedElementIds: {
|
|
84
|
-
[id: string]:
|
|
85
|
-
}
|
|
91
|
+
selectedElementIds: Readonly<{
|
|
92
|
+
[id: string]: true;
|
|
93
|
+
}>;
|
|
86
94
|
previousSelectedElementIds: {
|
|
87
|
-
[id: string]:
|
|
95
|
+
[id: string]: true;
|
|
88
96
|
};
|
|
89
97
|
selectedElementsAreBeingDragged: boolean;
|
|
90
98
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -94,7 +102,7 @@ export declare const actionToggleElementLock: {
|
|
|
94
102
|
duration?: number | undefined;
|
|
95
103
|
} | null;
|
|
96
104
|
zenModeEnabled: boolean;
|
|
97
|
-
theme:
|
|
105
|
+
theme: import("../element/types").Theme;
|
|
98
106
|
gridSize: number | null;
|
|
99
107
|
viewModeEnabled: boolean;
|
|
100
108
|
selectedGroupIds: {
|
|
@@ -117,14 +125,14 @@ export declare const actionToggleElementLock: {
|
|
|
117
125
|
data: import("../charts").Spreadsheet;
|
|
118
126
|
};
|
|
119
127
|
pendingImageElementId: string | null;
|
|
120
|
-
showHyperlinkPopup: false | "
|
|
128
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
121
129
|
};
|
|
122
130
|
commitToHistory: true;
|
|
123
131
|
};
|
|
124
|
-
contextItemLabel: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState
|
|
125
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[]) => boolean;
|
|
132
|
+
contextItemLabel: (elements: readonly ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.elementLock.unlock" | "labels.elementLock.lock" | "labels.elementLock.lockAll" | "labels.elementLock.unlockAll";
|
|
133
|
+
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean;
|
|
126
134
|
} & {
|
|
127
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[]) => boolean) | undefined;
|
|
135
|
+
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: import("../types").AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
128
136
|
};
|
|
129
137
|
export declare const actionUnlockAllElements: {
|
|
130
138
|
name: "unlockAllElements";
|
|
@@ -147,6 +155,10 @@ export declare const actionUnlockAllElements: {
|
|
|
147
155
|
showWelcomeScreen: boolean;
|
|
148
156
|
isLoading: boolean;
|
|
149
157
|
errorMessage: import("react").ReactNode;
|
|
158
|
+
activeEmbeddable: {
|
|
159
|
+
element: import("../element/types").NonDeletedExcalidrawElement;
|
|
160
|
+
state: "active" | "hover";
|
|
161
|
+
} | null;
|
|
150
162
|
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
151
163
|
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
152
164
|
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
@@ -155,7 +167,12 @@ export declare const actionUnlockAllElements: {
|
|
|
155
167
|
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
156
168
|
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
157
169
|
frameToHighlight: import("../element/types").NonDeleted<import("../element/types").ExcalidrawFrameElement> | null;
|
|
158
|
-
|
|
170
|
+
frameRendering: {
|
|
171
|
+
enabled: boolean;
|
|
172
|
+
name: boolean;
|
|
173
|
+
outline: boolean;
|
|
174
|
+
clip: boolean;
|
|
175
|
+
};
|
|
159
176
|
editingFrame: string | null;
|
|
160
177
|
elementsToHighlight: import("../element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
161
178
|
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -164,7 +181,7 @@ export declare const actionUnlockAllElements: {
|
|
|
164
181
|
lastActiveTool: import("../types").LastActiveTool;
|
|
165
182
|
locked: boolean;
|
|
166
183
|
} & ({
|
|
167
|
-
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
184
|
+
type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "embeddable" | "image" | "frame" | "freedraw" | "eraser" | "hand";
|
|
168
185
|
customType: null;
|
|
169
186
|
} | {
|
|
170
187
|
type: "custom";
|
|
@@ -210,7 +227,7 @@ export declare const actionUnlockAllElements: {
|
|
|
210
227
|
defaultSidebarDockedPreference: boolean;
|
|
211
228
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
212
229
|
previousSelectedElementIds: {
|
|
213
|
-
[id: string]:
|
|
230
|
+
[id: string]: true;
|
|
214
231
|
};
|
|
215
232
|
selectedElementsAreBeingDragged: boolean;
|
|
216
233
|
shouldCacheIgnoreZoom: boolean;
|
|
@@ -220,7 +237,7 @@ export declare const actionUnlockAllElements: {
|
|
|
220
237
|
duration?: number | undefined;
|
|
221
238
|
} | null;
|
|
222
239
|
zenModeEnabled: boolean;
|
|
223
|
-
theme:
|
|
240
|
+
theme: import("../element/types").Theme;
|
|
224
241
|
gridSize: number | null;
|
|
225
242
|
viewModeEnabled: boolean;
|
|
226
243
|
selectedGroupIds: {
|
|
@@ -243,7 +260,7 @@ export declare const actionUnlockAllElements: {
|
|
|
243
260
|
data: import("../charts").Spreadsheet;
|
|
244
261
|
};
|
|
245
262
|
pendingImageElementId: string | null;
|
|
246
|
-
showHyperlinkPopup: false | "
|
|
263
|
+
showHyperlinkPopup: false | "editor" | "info";
|
|
247
264
|
selectedLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
248
265
|
};
|
|
249
266
|
commitToHistory: true;
|