@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
|
@@ -84,18 +84,24 @@ export declare const actionToggleLinearEditor: {
|
|
|
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
|
};
|
|
@@ -196,6 +202,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
196
202
|
objectsSnapModeEnabled: boolean;
|
|
197
203
|
userToFollow: import("../types").UserToFollow | null;
|
|
198
204
|
followedBy: Set<import("../types").SocketId>;
|
|
205
|
+
isCropping: boolean;
|
|
206
|
+
croppingElementId: string | null;
|
|
199
207
|
searchMatches: readonly {
|
|
200
208
|
id: string;
|
|
201
209
|
focus: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const actionLink: {
|
|
2
2
|
name: "hyperlink";
|
|
3
|
-
label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.
|
|
3
|
+
label: (elements: readonly import("../element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
|
|
4
4
|
icon: JSX.Element;
|
|
5
5
|
perform: (elements: readonly import("../element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
6
6
|
elements: readonly import("../element/types").OrderedExcalidrawElement[];
|
|
@@ -79,18 +79,24 @@ export declare const actionLink: {
|
|
|
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
|
};
|
|
@@ -190,6 +196,8 @@ export declare const actionLink: {
|
|
|
190
196
|
objectsSnapModeEnabled: boolean;
|
|
191
197
|
userToFollow: import("../types").UserToFollow | null;
|
|
192
198
|
followedBy: Set<import("../types").SocketId>;
|
|
199
|
+
isCropping: boolean;
|
|
200
|
+
croppingElementId: string | null;
|
|
193
201
|
searchMatches: readonly {
|
|
194
202
|
id: string;
|
|
195
203
|
focus: boolean;
|
|
@@ -79,18 +79,24 @@ export declare const actionToggleCanvasMenu: {
|
|
|
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 actionToggleCanvasMenu: {
|
|
|
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;
|
|
@@ -289,18 +297,24 @@ export declare const actionToggleEditMenu: {
|
|
|
289
297
|
tab?: string | undefined;
|
|
290
298
|
} | null;
|
|
291
299
|
openDialog: {
|
|
292
|
-
name: "
|
|
300
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
293
301
|
} | {
|
|
294
302
|
name: "ttd";
|
|
295
303
|
tab: "mermaid" | "text-to-diagram";
|
|
296
304
|
} | {
|
|
297
305
|
name: "commandPalette";
|
|
306
|
+
} | {
|
|
307
|
+
name: "elementLinkSelector";
|
|
308
|
+
sourceElementId: string;
|
|
298
309
|
} | null;
|
|
299
310
|
defaultSidebarDockedPreference: boolean;
|
|
300
311
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
301
312
|
selectedElementIds: Readonly<{
|
|
302
313
|
[id: string]: true;
|
|
303
314
|
}>;
|
|
315
|
+
hoveredElementIds: Readonly<{
|
|
316
|
+
[id: string]: true;
|
|
317
|
+
}>;
|
|
304
318
|
previousSelectedElementIds: {
|
|
305
319
|
[id: string]: true;
|
|
306
320
|
};
|
|
@@ -401,6 +415,8 @@ export declare const actionToggleEditMenu: {
|
|
|
401
415
|
objectsSnapModeEnabled: boolean;
|
|
402
416
|
userToFollow: import("../types").UserToFollow | null;
|
|
403
417
|
followedBy: Set<import("../types").SocketId>;
|
|
418
|
+
isCropping: boolean;
|
|
419
|
+
croppingElementId: string | null;
|
|
404
420
|
searchMatches: readonly {
|
|
405
421
|
id: string;
|
|
406
422
|
focus: boolean;
|
|
@@ -509,6 +525,9 @@ export declare const actionShortcuts: {
|
|
|
509
525
|
selectedElementIds: Readonly<{
|
|
510
526
|
[id: string]: true;
|
|
511
527
|
}>;
|
|
528
|
+
hoveredElementIds: Readonly<{
|
|
529
|
+
[id: string]: true;
|
|
530
|
+
}>;
|
|
512
531
|
previousSelectedElementIds: {
|
|
513
532
|
[id: string]: true;
|
|
514
533
|
};
|
|
@@ -609,6 +628,8 @@ export declare const actionShortcuts: {
|
|
|
609
628
|
objectsSnapModeEnabled: boolean;
|
|
610
629
|
userToFollow: import("../types").UserToFollow | null;
|
|
611
630
|
followedBy: Set<import("../types").SocketId>;
|
|
631
|
+
isCropping: boolean;
|
|
632
|
+
croppingElementId: string | null;
|
|
612
633
|
searchMatches: readonly {
|
|
613
634
|
id: string;
|
|
614
635
|
focus: boolean;
|
|
@@ -82,18 +82,24 @@ export declare const actionGoToCollaborator: {
|
|
|
82
82
|
tab?: string | undefined;
|
|
83
83
|
} | null;
|
|
84
84
|
openDialog: {
|
|
85
|
-
name: "
|
|
85
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
86
86
|
} | {
|
|
87
87
|
name: "ttd";
|
|
88
88
|
tab: "mermaid" | "text-to-diagram";
|
|
89
89
|
} | {
|
|
90
90
|
name: "commandPalette";
|
|
91
|
+
} | {
|
|
92
|
+
name: "elementLinkSelector";
|
|
93
|
+
sourceElementId: string;
|
|
91
94
|
} | null;
|
|
92
95
|
defaultSidebarDockedPreference: boolean;
|
|
93
96
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
94
97
|
selectedElementIds: Readonly<{
|
|
95
98
|
[id: string]: true;
|
|
96
99
|
}>;
|
|
100
|
+
hoveredElementIds: Readonly<{
|
|
101
|
+
[id: string]: true;
|
|
102
|
+
}>;
|
|
97
103
|
previousSelectedElementIds: {
|
|
98
104
|
[id: string]: true;
|
|
99
105
|
};
|
|
@@ -193,6 +199,8 @@ export declare const actionGoToCollaborator: {
|
|
|
193
199
|
} | null;
|
|
194
200
|
objectsSnapModeEnabled: boolean;
|
|
195
201
|
followedBy: Set<import("../types").SocketId>;
|
|
202
|
+
isCropping: boolean;
|
|
203
|
+
croppingElementId: string | null;
|
|
196
204
|
searchMatches: readonly {
|
|
197
205
|
id: string;
|
|
198
206
|
focus: boolean;
|
|
@@ -284,18 +292,24 @@ export declare const actionGoToCollaborator: {
|
|
|
284
292
|
tab?: string | undefined;
|
|
285
293
|
} | null;
|
|
286
294
|
openDialog: {
|
|
287
|
-
name: "
|
|
295
|
+
name: "help" | "imageExport" | "jsonExport";
|
|
288
296
|
} | {
|
|
289
297
|
name: "ttd";
|
|
290
298
|
tab: "mermaid" | "text-to-diagram";
|
|
291
299
|
} | {
|
|
292
300
|
name: "commandPalette";
|
|
301
|
+
} | {
|
|
302
|
+
name: "elementLinkSelector";
|
|
303
|
+
sourceElementId: string;
|
|
293
304
|
} | null;
|
|
294
305
|
defaultSidebarDockedPreference: boolean;
|
|
295
306
|
lastPointerDownWith: import("../element/types").PointerType;
|
|
296
307
|
selectedElementIds: Readonly<{
|
|
297
308
|
[id: string]: true;
|
|
298
309
|
}>;
|
|
310
|
+
hoveredElementIds: Readonly<{
|
|
311
|
+
[id: string]: true;
|
|
312
|
+
}>;
|
|
299
313
|
previousSelectedElementIds: {
|
|
300
314
|
[id: string]: true;
|
|
301
315
|
};
|
|
@@ -395,6 +409,8 @@ export declare const actionGoToCollaborator: {
|
|
|
395
409
|
} | null;
|
|
396
410
|
objectsSnapModeEnabled: boolean;
|
|
397
411
|
followedBy: Set<import("../types").SocketId>;
|
|
412
|
+
isCropping: boolean;
|
|
413
|
+
croppingElementId: string | null;
|
|
398
414
|
searchMatches: readonly {
|
|
399
415
|
id: string;
|
|
400
416
|
focus: boolean;
|