@zsviczian/excalidraw 0.10.0-obsidian-27 → 0.10.0-textfix-0
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/README.md +0 -1
- package/dist/excalidraw-assets/Cascadia.woff2 +0 -0
- package/dist/excalidraw-assets/Virgil.woff2 +0 -0
- package/dist/excalidraw-assets/i18n-ar-SA-json-6fcb7979cd290e0e51d9.js +1 -0
- package/dist/excalidraw-assets/i18n-bg-BG-json-eb8b237a2970da7034ad.js +1 -0
- package/dist/excalidraw-assets/i18n-bn-BD-json-87d5cd14de43ad6ec162.js +1 -0
- package/dist/excalidraw-assets/i18n-ca-ES-json-93b7462bd1d0fe76d2b5.js +1 -0
- package/dist/excalidraw-assets/i18n-cs-CZ-json-1244df10086a058f2d41.js +1 -0
- package/dist/excalidraw-assets/i18n-da-DK-json-85af69d03d5a188d4d3e.js +1 -0
- package/dist/excalidraw-assets/i18n-de-DE-json-e676479528793fb9755f.js +1 -0
- package/dist/excalidraw-assets/i18n-el-GR-json-cef06f766f46d7ab798a.js +1 -0
- package/dist/excalidraw-assets/i18n-es-ES-json-2996f978aa8d44a1bc72.js +1 -0
- package/dist/excalidraw-assets/i18n-fa-IR-json-84150b1f61e3d7a0afcf.js +1 -0
- package/dist/excalidraw-assets/i18n-fi-FI-json-bb5e3af1d7bb005f0c7d.js +1 -0
- package/dist/excalidraw-assets/i18n-fr-FR-json-f470b9806c21d127df35.js +1 -0
- package/dist/excalidraw-assets/i18n-he-IL-json-dfc95883bf533087b673.js +1 -0
- package/dist/excalidraw-assets/i18n-hi-IN-json-07d3a348a9723eeb51a3.js +1 -0
- package/dist/excalidraw-assets/i18n-hu-HU-json-dbaf9c47430503d4a710.js +1 -0
- package/dist/excalidraw-assets/i18n-id-ID-json-43b313d6c7c52122220b.js +1 -0
- package/dist/excalidraw-assets/i18n-it-IT-json-1cd7244d3b42597e1555.js +1 -0
- package/dist/excalidraw-assets/i18n-ja-JP-json-c6208f4ec6ec8d61df2f.js +1 -0
- package/dist/excalidraw-assets/i18n-kab-KAB-json-7aaa4a5ea8484b941af2.js +1 -0
- package/dist/excalidraw-assets/i18n-kk-KZ-json-654dee98c29976300a26.js +1 -0
- package/dist/excalidraw-assets/i18n-ko-KR-json-fc3ee48a144b19bcca0d.js +1 -0
- package/dist/excalidraw-assets/i18n-lv-LV-json-bfb22930b5a31d1f92ee.js +1 -0
- package/dist/excalidraw-assets/i18n-my-MM-json-6d186d192f0024208fe2.js +1 -0
- package/dist/excalidraw-assets/i18n-nb-NO-json-a8b16b7360f5df195438.js +1 -0
- package/dist/excalidraw-assets/i18n-nl-NL-json-be44386cc68047e2da24.js +1 -0
- package/dist/excalidraw-assets/i18n-nn-NO-json-074a3f14a8e56d66eeb7.js +1 -0
- package/dist/excalidraw-assets/i18n-oc-FR-json-ad1cdc3ba675116187a4.js +1 -0
- package/dist/excalidraw-assets/i18n-pa-IN-json-319132bcecbfaf90ef79.js +1 -0
- package/dist/excalidraw-assets/i18n-pl-PL-json-2df7909ca92201d653d7.js +1 -0
- package/dist/excalidraw-assets/i18n-pt-BR-json-ad09ed1c16a3d2b6d4b8.js +1 -0
- package/dist/excalidraw-assets/i18n-pt-PT-json-73605e7eed8d224609aa.js +1 -0
- package/dist/excalidraw-assets/i18n-ro-RO-json-b48f7b508a0884880f63.js +1 -0
- package/dist/excalidraw-assets/i18n-ru-RU-json-cd5378c60549c20232c7.js +1 -0
- package/dist/excalidraw-assets/i18n-si-LK-json-c5e207625d8f7a06eb15.js +1 -0
- package/dist/excalidraw-assets/i18n-sk-SK-json-0261a2d60b0803cc8354.js +1 -0
- package/dist/excalidraw-assets/i18n-sv-SE-json-4b274bae10479b585716.js +1 -0
- package/dist/excalidraw-assets/i18n-ta-IN-json-f20bc85c68e334566d53.js +1 -0
- package/dist/excalidraw-assets/i18n-tr-TR-json-17f1500f11b6e08b677b.js +1 -0
- package/dist/excalidraw-assets/i18n-uk-UA-json-4798e5a14cecdddbfb50.js +1 -0
- package/dist/excalidraw-assets/i18n-zh-CN-json-a13fbd80677ff3f0122c.js +1 -0
- package/dist/excalidraw-assets/i18n-zh-HK-json-f82802143c7042511410.js +1 -0
- package/dist/excalidraw-assets/i18n-zh-TW-json-79c634b00f4602a2d9a6.js +1 -0
- package/dist/excalidraw-assets/image-87e58979d258cd38208c.js +1 -0
- package/dist/excalidraw-assets/vendor-8698157b56eb5e0ee549.js +2 -0
- package/dist/excalidraw-assets/vendor-8698157b56eb5e0ee549.js.LICENSE.txt +12 -0
- package/dist/excalidraw-assets-dev/Cascadia.woff2 +0 -0
- package/dist/excalidraw-assets-dev/Virgil.woff2 +0 -0
- package/dist/excalidraw-assets-dev/i18n-ar-SA-json-6681743eb68e3b3041cb.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-bg-BG-json-c907a37ea9ff74c38200.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-bn-BD-json-b02ff15ce32c21861fb1.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ca-ES-json-f9ecdae168e193e1819d.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-cs-CZ-json-b0c7af8af120bd1ba4ac.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-da-DK-json-bdae60049eb02dee741f.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-de-DE-json-0314c69da1a79cb476ef.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-el-GR-json-db678ec2c7b5ee5b6197.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-es-ES-json-f960cfc72c2bce33bcd9.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-fa-IR-json-3091ac88e5a7ad285607.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-fi-FI-json-b3a67612e607442c8940.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-fr-FR-json-628bf75e5684419e4522.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-he-IL-json-9fa5f88c445c6edfb81d.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-hi-IN-json-a398aa828f8d1bd25761.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-hu-HU-json-8fb512cf21c00656b011.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-id-ID-json-d18bde26a8a7165a4c7b.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-it-IT-json-612f895e69a992314230.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ja-JP-json-8fb6a4429e8c4a09e6a0.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-kab-KAB-json-01a8363dae577ccfd06c.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-kk-KZ-json-d0fff58ffff7c34c30a2.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ko-KR-json-d24a9b7640741fe02d9a.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-lv-LV-json-d9b01c32504b031e4160.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-my-MM-json-98a11afd5a8088489b91.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-nb-NO-json-de73a55ddde48cdff43c.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-nl-NL-json-88ff95be82b97ffcc7f1.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-nn-NO-json-8f60e0ec70a2e17ad33c.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-oc-FR-json-6a0ee550cb6fb3f1b259.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-pa-IN-json-9bde99f7eb773f876f85.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-pl-PL-json-bb2ca88481a524fc7a5f.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-pt-BR-json-b40463ff0ba1a0307563.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-pt-PT-json-cb72d009cf6ba3b55e0c.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ro-RO-json-b516bae00ed365b97098.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ru-RU-json-328be001476f936e0f00.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-si-LK-json-4be44d4d292b6dbf260e.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-sk-SK-json-2c5b8dc8f0812e1152f1.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-sv-SE-json-d96e772ca45119bbb532.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-ta-IN-json-9ba773bdb3a546e68ec3.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-tr-TR-json-d0b9b5ae9d184cffc8a2.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-uk-UA-json-deae797b510faf78ab8e.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-zh-CN-json-f972d84c7b7156249d21.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-zh-HK-json-239376fabfdff19a7ebd.js +22 -0
- package/dist/excalidraw-assets-dev/i18n-zh-TW-json-7ea4288fed6cce43f00c.js +22 -0
- package/dist/excalidraw-assets-dev/image-e50a452aa26d28419e39.js +42 -0
- package/dist/excalidraw-assets-dev/vendor-1bc8ceaafd8623c96dd4.js +278 -0
- package/dist/excalidraw.development.js +608 -1136
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/excalidraw.production.min.js.LICENSE.txt +0 -7
- package/package.json +1 -1
- package/types/actions/actionCanvas.d.ts +0 -90
- package/types/actions/index.d.ts +1 -1
- package/types/components/App.d.ts +2 -4
- package/types/element/newElement.d.ts +1 -3
- package/types/element/types.d.ts +0 -1
- package/types/packages/excalidraw/index.d.ts +1 -1
- package/types/packages/excalidraw/webpack.dev.config.d.ts +5 -15
- package/types/packages/utils.d.ts +0 -4
- package/types/types.d.ts +1 -7
package/package.json
CHANGED
|
@@ -1,98 +1,8 @@
|
|
|
1
|
-
import { ExcalidrawElement } from "../element/types";
|
|
2
|
-
import { AppState, NormalizedZoomValue } from "../types";
|
|
3
1
|
export declare const actionChangeViewBackgroundColor: import("./types").Action;
|
|
4
2
|
export declare const actionClearCanvas: import("./types").Action;
|
|
5
3
|
export declare const actionZoomIn: import("./types").Action;
|
|
6
4
|
export declare const actionZoomOut: import("./types").Action;
|
|
7
5
|
export declare const actionResetZoom: import("./types").Action;
|
|
8
|
-
export declare const zoomToFitElements: (elements: readonly ExcalidrawElement[], appState: Readonly<AppState>, zoomToSelection: boolean, maxZoom?: number, margin?: number) => {
|
|
9
|
-
appState: {
|
|
10
|
-
zoom: Readonly<{
|
|
11
|
-
value: NormalizedZoomValue;
|
|
12
|
-
translation: Readonly<{
|
|
13
|
-
x: number;
|
|
14
|
-
y: number;
|
|
15
|
-
}>;
|
|
16
|
-
}>;
|
|
17
|
-
scrollX: number;
|
|
18
|
-
scrollY: number;
|
|
19
|
-
isLoading: boolean;
|
|
20
|
-
errorMessage: string | null;
|
|
21
|
-
draggingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
22
|
-
resizingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
23
|
-
multiElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawLinearElement> | null;
|
|
24
|
-
selectionElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
25
|
-
isBindingEnabled: boolean;
|
|
26
|
-
startBoundElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawBindableElement> | null;
|
|
27
|
-
suggestedBindings: import("../element/binding").SuggestedBinding[];
|
|
28
|
-
editingElement: import("../element/types").NonDeletedExcalidrawElement | null;
|
|
29
|
-
editingLinearElement: import("../element/linearElementEditor").LinearElementEditor | null;
|
|
30
|
-
elementType: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw";
|
|
31
|
-
elementLocked: boolean;
|
|
32
|
-
exportBackground: boolean;
|
|
33
|
-
exportEmbedScene: boolean;
|
|
34
|
-
exportWithDarkMode: boolean;
|
|
35
|
-
exportScale: number;
|
|
36
|
-
currentItemStrokeColor: string;
|
|
37
|
-
currentItemBackgroundColor: string;
|
|
38
|
-
currentItemFillStyle: import("../element/types").FillStyle;
|
|
39
|
-
currentItemStrokeWidth: number;
|
|
40
|
-
currentItemStrokeStyle: import("../element/types").StrokeStyle;
|
|
41
|
-
currentItemRoughness: number;
|
|
42
|
-
currentItemOpacity: number;
|
|
43
|
-
currentItemFontFamily: number;
|
|
44
|
-
currentItemFontSize: number;
|
|
45
|
-
currentItemTextAlign: import("../element/types").TextAlign;
|
|
46
|
-
currentItemStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
47
|
-
currentItemStartArrowhead: import("../element/types").Arrowhead | null;
|
|
48
|
-
currentItemEndArrowhead: import("../element/types").Arrowhead | null;
|
|
49
|
-
currentItemLinearStrokeSharpness: import("../element/types").StrokeSharpness;
|
|
50
|
-
viewBackgroundColor: string;
|
|
51
|
-
cursorButton: "up" | "down";
|
|
52
|
-
scrolledOutside: boolean;
|
|
53
|
-
name: string;
|
|
54
|
-
isResizing: boolean;
|
|
55
|
-
isRotating: boolean;
|
|
56
|
-
openMenu: "canvas" | "shape" | null;
|
|
57
|
-
openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
|
|
58
|
-
lastPointerDownWith: import("../element/types").PointerType;
|
|
59
|
-
selectedElementIds: {
|
|
60
|
-
[id: string]: boolean;
|
|
61
|
-
};
|
|
62
|
-
previousSelectedElementIds: {
|
|
63
|
-
[id: string]: boolean;
|
|
64
|
-
};
|
|
65
|
-
shouldCacheIgnoreZoom: boolean;
|
|
66
|
-
showHelpDialog: boolean;
|
|
67
|
-
toastMessage: string | null;
|
|
68
|
-
zenModeEnabled: boolean;
|
|
69
|
-
theme: string;
|
|
70
|
-
gridSize: number | null;
|
|
71
|
-
viewModeEnabled: boolean;
|
|
72
|
-
selectedGroupIds: {
|
|
73
|
-
[groupId: string]: boolean;
|
|
74
|
-
};
|
|
75
|
-
editingGroupId: string | null;
|
|
76
|
-
width: number;
|
|
77
|
-
height: number;
|
|
78
|
-
offsetTop: number;
|
|
79
|
-
offsetLeft: number;
|
|
80
|
-
isLibraryOpen: boolean;
|
|
81
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
82
|
-
collaborators: Map<string, import("../types").Collaborator>;
|
|
83
|
-
showStats: boolean;
|
|
84
|
-
currentChartType: import("../element/types").ChartType;
|
|
85
|
-
pasteDialog: {
|
|
86
|
-
shown: false;
|
|
87
|
-
data: null;
|
|
88
|
-
} | {
|
|
89
|
-
shown: true;
|
|
90
|
-
data: import("../charts").Spreadsheet;
|
|
91
|
-
};
|
|
92
|
-
pendingImageElement: import("../element/types").NonDeleted<import("../element/types").ExcalidrawImageElement> | null;
|
|
93
|
-
};
|
|
94
|
-
commitToHistory: boolean;
|
|
95
|
-
};
|
|
96
6
|
export declare const actionZoomToSelected: import("./types").Action;
|
|
97
7
|
export declare const actionZoomToFit: import("./types").Action;
|
|
98
8
|
export declare const actionToggleTheme: import("./types").Action;
|
package/types/actions/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { actionBringForward, actionBringToFront, actionSendBackward, actionSendT
|
|
|
3
3
|
export { actionSelectAll } from "./actionSelectAll";
|
|
4
4
|
export { actionDuplicateSelection } from "./actionDuplicateSelection";
|
|
5
5
|
export { actionChangeStrokeColor, actionChangeBackgroundColor, actionChangeStrokeWidth, actionChangeFillStyle, actionChangeSloppiness, actionChangeOpacity, actionChangeFontSize, actionChangeFontFamily, actionChangeTextAlign, } from "./actionProperties";
|
|
6
|
-
export { actionChangeViewBackgroundColor, actionClearCanvas, actionZoomIn, actionZoomOut, actionResetZoom, actionZoomToFit, actionToggleTheme,
|
|
6
|
+
export { actionChangeViewBackgroundColor, actionClearCanvas, actionZoomIn, actionZoomOut, actionResetZoom, actionZoomToFit, actionToggleTheme, } from "./actionCanvas";
|
|
7
7
|
export { actionFinalize } from "./actionFinalize";
|
|
8
8
|
export { actionChangeProjectName, actionChangeExportBackground, actionSaveToActiveFile, actionSaveFileToDisk, actionLoadScene, } from "./actionExport";
|
|
9
9
|
export { actionCopyStyles, actionPasteStyles } from "./actionStyles";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { RoughCanvas } from "roughjs/bin/canvas";
|
|
3
3
|
import { ActionManager } from "../actions/manager";
|
|
4
|
-
import { ExcalidrawElement
|
|
4
|
+
import { ExcalidrawElement } from "../element/types";
|
|
5
5
|
import History from "../history";
|
|
6
6
|
import { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, LibraryItems, SceneData } from "../types";
|
|
7
7
|
export declare const useIsMobile: () => boolean;
|
|
@@ -33,7 +33,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
33
33
|
render(): JSX.Element;
|
|
34
34
|
focusContainer: AppClassProperties["focusContainer"];
|
|
35
35
|
getSceneElementsIncludingDeleted: () => readonly ExcalidrawElement[];
|
|
36
|
-
getSceneElements: () => readonly NonDeletedExcalidrawElement[];
|
|
36
|
+
getSceneElements: () => readonly import("../element/types").NonDeletedExcalidrawElement[];
|
|
37
37
|
private syncActionResult;
|
|
38
38
|
private onBlur;
|
|
39
39
|
private onUnload;
|
|
@@ -70,8 +70,6 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
70
70
|
toggleZenMode: () => void;
|
|
71
71
|
toggleStats: () => void;
|
|
72
72
|
scrollToContent: (target?: ExcalidrawElement | readonly ExcalidrawElement[]) => void;
|
|
73
|
-
zoomToFit: (target?: readonly ExcalidrawElement[], maxZoom?: number, margin?: number) => void;
|
|
74
|
-
handleBindTextResize: (containerElement: NonDeletedExcalidrawElement) => void;
|
|
75
73
|
clearToast: () => void;
|
|
76
74
|
setToastMessage: (toastMessage: string) => void;
|
|
77
75
|
restoreFileFromShare: () => Promise<void>;
|
|
@@ -6,18 +6,16 @@ export declare const newElement: (opts: {
|
|
|
6
6
|
} & ElementConstructorOpts) => NonDeleted<ExcalidrawGenericElement>;
|
|
7
7
|
export declare const newTextElement: (opts: {
|
|
8
8
|
text: string;
|
|
9
|
-
rawText: string;
|
|
10
9
|
fontSize: number;
|
|
11
10
|
fontFamily: FontFamilyValues;
|
|
12
11
|
textAlign: TextAlign;
|
|
13
12
|
verticalAlign: VerticalAlign;
|
|
14
13
|
containerId?: ExcalidrawRectangleElement["id"];
|
|
15
14
|
} & ElementConstructorOpts) => NonDeleted<ExcalidrawTextElement>;
|
|
16
|
-
export declare const updateTextElement: (element: ExcalidrawTextElement, { text, isDeleted, originalText,
|
|
15
|
+
export declare const updateTextElement: (element: ExcalidrawTextElement, { text, isDeleted, originalText, }: {
|
|
17
16
|
text: string;
|
|
18
17
|
isDeleted?: boolean | undefined;
|
|
19
18
|
originalText: string;
|
|
20
|
-
rawText?: string | undefined;
|
|
21
19
|
}, updateDimensions: boolean) => ExcalidrawTextElement;
|
|
22
20
|
export declare const newFreeDrawElement: (opts: {
|
|
23
21
|
type: "freedraw";
|
package/types/element/types.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export default _default;
|
|
|
9
9
|
export { getSceneVersion, isInvisiblySmallElement, getNonDeletedElements, } from "../../element";
|
|
10
10
|
export { defaultLang, languages } from "../../i18n";
|
|
11
11
|
export { restore, restoreAppState, restoreElements } from "../../data/restore";
|
|
12
|
-
export { exportToCanvas, exportToBlob, exportToSvg, serializeAsJSON, loadLibraryFromBlob, loadFromBlob, getFreeDrawSvgPath,
|
|
12
|
+
export { exportToCanvas, exportToBlob, exportToSvg, serializeAsJSON, loadLibraryFromBlob, loadFromBlob, getFreeDrawSvgPath, } from "../../packages/utils";
|
|
13
13
|
export { isLinearElement } from "../../element/typeChecks";
|
|
14
14
|
export { FONT_FAMILY, THEME } from "../../constants";
|
|
15
15
|
export { mutateElement, newElementWith, bumpVersion, } from "../../element/mutateElement";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import autoprefixer = require("autoprefixer");
|
|
2
|
+
import webpack = require("webpack");
|
|
2
3
|
export const mode: string;
|
|
4
|
+
export const devtool: boolean;
|
|
3
5
|
export const entry: {
|
|
4
6
|
"excalidraw.development": string;
|
|
5
7
|
};
|
|
@@ -34,25 +36,13 @@ export namespace module {
|
|
|
34
36
|
} | {
|
|
35
37
|
test: RegExp;
|
|
36
38
|
exclude: RegExp;
|
|
37
|
-
use:
|
|
39
|
+
use: {
|
|
38
40
|
loader: string;
|
|
39
41
|
options: {
|
|
40
42
|
transpileOnly: boolean;
|
|
41
43
|
configFile: string;
|
|
42
|
-
presets?: undefined;
|
|
43
|
-
plugins?: undefined;
|
|
44
44
|
};
|
|
45
|
-
}
|
|
46
|
-
loader: string;
|
|
47
|
-
options: {
|
|
48
|
-
presets: (string | (string | {
|
|
49
|
-
runtime: string;
|
|
50
|
-
})[])[];
|
|
51
|
-
plugins: string[];
|
|
52
|
-
transpileOnly?: undefined;
|
|
53
|
-
configFile?: undefined;
|
|
54
|
-
};
|
|
55
|
-
})[];
|
|
45
|
+
}[];
|
|
56
46
|
type?: undefined;
|
|
57
47
|
} | {
|
|
58
48
|
test: RegExp;
|
|
@@ -72,7 +62,7 @@ export namespace optimization {
|
|
|
72
62
|
}
|
|
73
63
|
}
|
|
74
64
|
}
|
|
75
|
-
export const plugins:
|
|
65
|
+
export const plugins: (webpack.EvalSourceMapDevToolPlugin | webpack.DefinePlugin)[];
|
|
76
66
|
export const externals: {
|
|
77
67
|
react: {
|
|
78
68
|
root: string;
|
|
@@ -22,7 +22,3 @@ export declare const exportToSvg: ({ elements, appState, files, exportPadding, }
|
|
|
22
22
|
export { serializeAsJSON } from "../data/json";
|
|
23
23
|
export { loadFromBlob, loadLibraryFromBlob } from "../data/blob";
|
|
24
24
|
export { getFreeDrawSvgPath } from "../renderer/renderElement";
|
|
25
|
-
export { getCommonBoundingBox } from "../element/bounds";
|
|
26
|
-
export { getMaximumGroups } from "../align";
|
|
27
|
-
export { intersectElementWithLine } from "../element/collision";
|
|
28
|
-
export { determineFocusDistance } from "../element/collision";
|
package/types/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues,
|
|
2
|
+
import { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, FileId, ExcalidrawImageElement, Theme } from "./element/types";
|
|
3
3
|
import { SHAPES } from "./shapes";
|
|
4
4
|
import { Point as RoughPoint } from "roughjs/bin/geometry";
|
|
5
5
|
import { LinearElementEditor } from "./element/linearElementEditor";
|
|
@@ -185,7 +185,6 @@ export interface ExcalidrawProps {
|
|
|
185
185
|
pointersMap: Gesture["pointers"];
|
|
186
186
|
}) => void;
|
|
187
187
|
onPaste?: (data: ClipboardData, event: ClipboardEvent | null) => Promise<boolean> | boolean;
|
|
188
|
-
onDrop?: (event: React.DragEvent<HTMLDivElement>) => Promise<boolean> | boolean;
|
|
189
188
|
renderTopRightUI?: (isMobile: boolean, appState: AppState) => JSX.Element | null;
|
|
190
189
|
renderFooter?: (isMobile: boolean, appState: AppState) => JSX.Element;
|
|
191
190
|
langCode?: Language["code"];
|
|
@@ -201,10 +200,7 @@ export interface ExcalidrawProps {
|
|
|
201
200
|
handleKeyboardGlobally?: boolean;
|
|
202
201
|
onLibraryChange?: (libraryItems: LibraryItems) => void | Promise<any>;
|
|
203
202
|
autoFocus?: boolean;
|
|
204
|
-
onBeforeTextEdit?: (textElement: ExcalidrawTextElement) => string;
|
|
205
|
-
onBeforeTextSubmit?: (textElement: ExcalidrawTextElement, textToSubmit: string, originalText: string, isDeleted: boolean) => [string, string];
|
|
206
203
|
generateIdForFile?: (file: File) => string | Promise<string>;
|
|
207
|
-
onThemeChange?: (newTheme: string) => void;
|
|
208
204
|
}
|
|
209
205
|
export declare type SceneData = {
|
|
210
206
|
elements?: ImportedDataState["elements"];
|
|
@@ -318,7 +314,6 @@ export declare type ExcalidrawImperativeAPI = {
|
|
|
318
314
|
clear: InstanceType<typeof App>["resetHistory"];
|
|
319
315
|
};
|
|
320
316
|
scrollToContent: InstanceType<typeof App>["scrollToContent"];
|
|
321
|
-
zoomToFit: InstanceType<typeof App>["zoomToFit"];
|
|
322
317
|
getSceneElements: InstanceType<typeof App>["getSceneElements"];
|
|
323
318
|
getAppState: () => InstanceType<typeof App>["state"];
|
|
324
319
|
getFiles: () => InstanceType<typeof App>["files"];
|
|
@@ -326,7 +321,6 @@ export declare type ExcalidrawImperativeAPI = {
|
|
|
326
321
|
importLibrary: InstanceType<typeof App>["importLibraryFromUrl"];
|
|
327
322
|
setToastMessage: InstanceType<typeof App>["setToastMessage"];
|
|
328
323
|
addFiles: (data: BinaryFileData[]) => void;
|
|
329
|
-
handleBindTextResize: InstanceType<typeof App>["handleBindTextResize"];
|
|
330
324
|
readyPromise: ResolvablePromise<ExcalidrawImperativeAPI>;
|
|
331
325
|
ready: true;
|
|
332
326
|
id: string;
|