@misenkashari/excalidraw-common 1.0.3 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dev/index.js +5 -5
- package/dist/dev/index.js.map +1 -1
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +1 -1
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +1 -1
- package/dist/types/common/src/visualdebug.d.ts +3 -3
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/binding.d.ts +3 -3
- package/dist/types/element/src/bounds.d.ts +2 -2
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +2 -2
- package/dist/types/element/src/distance.d.ts +1 -1
- package/dist/types/element/src/dragElements.d.ts +1 -1
- package/dist/types/element/src/duplicate.d.ts +1 -1
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +1 -1
- package/dist/types/element/src/frame.d.ts +1 -1
- package/dist/types/element/src/groups.d.ts +1 -1
- package/dist/types/element/src/heading.d.ts +2 -2
- package/dist/types/element/src/image.d.ts +1 -1
- package/dist/types/element/src/linearElementEditor.d.ts +3 -3
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +1 -1
- package/dist/types/element/src/renderElement.d.ts +2 -2
- package/dist/types/element/src/resizeElements.d.ts +1 -1
- package/dist/types/element/src/resizeTest.d.ts +3 -3
- package/dist/types/element/src/shape.d.ts +3 -3
- package/dist/types/element/src/store.d.ts +2 -2
- package/dist/types/element/src/textElement.d.ts +2 -2
- package/dist/types/element/src/transform.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +3 -3
- package/dist/types/element/src/typeChecks.d.ts +1 -1
- package/dist/types/element/src/types.d.ts +3 -3
- package/dist/types/element/src/utils.d.ts +2 -2
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +82 -82
- package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +50 -50
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +275 -275
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +63 -63
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +69 -69
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +32 -32
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +49 -49
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionExport.d.ts +116 -116
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +242 -242
- package/dist/types/excalidraw/actions/actionGroup.d.ts +43 -43
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +181 -181
- package/dist/types/excalidraw/actions/actionLink.d.ts +31 -31
- package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -27
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +39 -39
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +23 -23
- package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -31
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +2 -2
- package/dist/types/excalidraw/appState.d.ts +10 -10
- package/dist/types/excalidraw/charts.d.ts +1 -1
- package/dist/types/excalidraw/clipboard.d.ts +4 -4
- package/dist/types/excalidraw/components/Actions.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +9 -9
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
- package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
- package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
- package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
- package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -2
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
- package/dist/types/excalidraw/components/icons.d.ts +1 -1
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +2 -4
- package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
- package/dist/types/excalidraw/data/blob.d.ts +49 -49
- package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
- package/dist/types/excalidraw/data/index.d.ts +1 -1
- package/dist/types/excalidraw/data/json.d.ts +24 -24
- package/dist/types/excalidraw/data/library.d.ts +2 -2
- package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
- package/dist/types/excalidraw/data/resave.d.ts +1 -1
- package/dist/types/excalidraw/data/restore.d.ts +2 -2
- package/dist/types/excalidraw/data/types.d.ts +2 -2
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -3
- package/dist/types/excalidraw/history.d.ts +4 -4
- package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
- package/dist/types/excalidraw/i18n.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +12 -12
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -2
- package/dist/types/excalidraw/renderer/staticScene.d.ts +1 -1
- package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
- package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
- package/dist/types/excalidraw/scene/export.d.ts +1 -1
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +3 -3
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/types.d.ts +6 -6
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +1 -1
- package/dist/types/utils/src/bbox.d.ts +2 -2
- package/dist/types/utils/src/export.d.ts +2 -2
- package/dist/types/utils/src/index.d.ts +1 -1
- package/dist/types/utils/src/shape.d.ts +4 -4
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Scene } from "@excalidraw
|
|
2
|
-
import type { ElementsMap, ExcalidrawEmbeddableElement, NonDeletedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
2
|
+
import type { ElementsMap, ExcalidrawEmbeddableElement, NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import "./Hyperlink.scss";
|
|
4
4
|
import type { AppState, ExcalidrawProps, UIAppState } from "../../types";
|
|
5
5
|
export declare const Hyperlink: ({ element, scene, setAppState, onLinkOpen, setToast, updateEmbedValidationStatus, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { GlobalPoint, Radians } from "@excalidraw
|
|
2
|
-
import type { Bounds } from "@excalidraw
|
|
3
|
-
import type { ElementsMap, NonDeletedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { GlobalPoint, Radians } from "@misenkashari/excalidraw-math";
|
|
2
|
+
import type { Bounds } from "@misenkashari/excalidraw-common";
|
|
3
|
+
import type { ElementsMap, NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
4
4
|
import type { AppState, UIAppState } from "../../types";
|
|
5
5
|
export declare const DEFAULT_LINK_SIZE = 12;
|
|
6
6
|
export declare const EXTERNAL_LINK_IMG: HTMLImageElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type EditorInterface } from "@excalidraw
|
|
1
|
+
import { type EditorInterface } from "@misenkashari/excalidraw-common";
|
|
2
2
|
import "./LiveCollaborationTrigger.scss";
|
|
3
3
|
declare const LiveCollaborationTrigger: {
|
|
4
4
|
({ isCollaborating, onSelect, editorInterface, ...rest }: {
|
|
@@ -25,9 +25,7 @@ declare const MainMenu: React.FC<{
|
|
|
25
25
|
order?: number;
|
|
26
26
|
onSelect?: (event: Event) => void;
|
|
27
27
|
children: React.ReactNode;
|
|
28
|
-
shortcut
|
|
29
|
-
* Called when any menu item is selected (clicked on).
|
|
30
|
-
*/: string;
|
|
28
|
+
shortcut?: string;
|
|
31
29
|
hovered?: boolean;
|
|
32
30
|
selected?: boolean;
|
|
33
31
|
textStyle?: React.CSSProperties;
|
|
@@ -36,7 +34,7 @@ declare const MainMenu: React.FC<{
|
|
|
36
34
|
displayName: string;
|
|
37
35
|
Badge: {
|
|
38
36
|
({ type, children, }: {
|
|
39
|
-
type?: import("@excalidraw
|
|
37
|
+
type?: import("@misenkashari/excalidraw-common/utility-types").ValueOf<typeof import("../dropdownMenu/DropdownMenuItem").DropDownMenuItemBadgeType>;
|
|
40
38
|
children: React.ReactNode;
|
|
41
39
|
}): import("react/jsx-runtime").JSX.Element;
|
|
42
40
|
displayName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EDITOR_LS_KEYS } from "@excalidraw
|
|
1
|
+
import type { EDITOR_LS_KEYS } from "@misenkashari/excalidraw-common";
|
|
2
2
|
import type { JSONValue } from "../types";
|
|
3
3
|
export declare class EditorLocalStorage {
|
|
4
4
|
static has(key: typeof EDITOR_LS_KEYS[keyof typeof EDITOR_LS_KEYS]): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IMAGE_MIME_TYPES, MIME_TYPES } from "@excalidraw
|
|
2
|
-
import type { ValueOf } from "@excalidraw
|
|
3
|
-
import type { ExcalidrawElement, FileId } from "@excalidraw
|
|
1
|
+
import { IMAGE_MIME_TYPES, MIME_TYPES } from "@misenkashari/excalidraw-common";
|
|
2
|
+
import type { ValueOf } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
|
+
import type { ExcalidrawElement, FileId } from "@misenkashari/excalidraw-element/types";
|
|
4
4
|
import type { AppState, DataURL, LibraryItem } from "../types";
|
|
5
5
|
import type { FileSystemHandle } from "browser-fs-access";
|
|
6
6
|
import type { ImportedLibraryData } from "./types";
|
|
@@ -19,10 +19,10 @@ localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | nu
|
|
|
19
19
|
fileHandle?: FileSystemHandle | null) => Promise<{
|
|
20
20
|
type: "application/vnd.excalidraw+json";
|
|
21
21
|
data: {
|
|
22
|
-
elements: import("@excalidraw
|
|
22
|
+
elements: import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[];
|
|
23
23
|
appState: {
|
|
24
24
|
viewBackgroundColor: string;
|
|
25
|
-
theme: import("@excalidraw
|
|
25
|
+
theme: import("@misenkashari/excalidraw-element/types").Theme;
|
|
26
26
|
frameRendering: {
|
|
27
27
|
enabled: boolean;
|
|
28
28
|
name: boolean;
|
|
@@ -47,30 +47,30 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
47
47
|
name: "elementLinkSelector";
|
|
48
48
|
sourceElementId: ExcalidrawElement["id"];
|
|
49
49
|
};
|
|
50
|
-
editingGroupId: import("@excalidraw
|
|
50
|
+
editingGroupId: import("@misenkashari/excalidraw-element/types").GroupId | null;
|
|
51
51
|
selectedElementIds: Readonly<{
|
|
52
52
|
[id: string]: true;
|
|
53
53
|
}>;
|
|
54
|
-
frameToHighlight: import("@excalidraw
|
|
54
|
+
frameToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawFrameLikeElement> | null;
|
|
55
55
|
activeEmbeddable: {
|
|
56
|
-
element: import("@excalidraw
|
|
56
|
+
element: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement;
|
|
57
57
|
state: "hover" | "active";
|
|
58
58
|
} | null;
|
|
59
|
-
selectionElement: import("@excalidraw
|
|
59
|
+
selectionElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
60
60
|
selectedGroupIds: {
|
|
61
61
|
[groupId: string]: boolean;
|
|
62
62
|
};
|
|
63
|
-
selectedLinearElement: import("@excalidraw
|
|
64
|
-
multiElement: import("@excalidraw
|
|
65
|
-
newElement: import("@excalidraw
|
|
63
|
+
selectedLinearElement: import("@misenkashari/excalidraw-element").LinearElementEditor | null;
|
|
64
|
+
multiElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawLinearElement> | null;
|
|
65
|
+
newElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawNonSelectionElement> | null;
|
|
66
66
|
isBindingEnabled: boolean;
|
|
67
|
-
suggestedBinding: import("@excalidraw
|
|
67
|
+
suggestedBinding: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
68
68
|
isRotating: boolean;
|
|
69
|
-
elementsToHighlight: import("@excalidraw
|
|
69
|
+
elementsToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
70
70
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
71
71
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
72
72
|
zenModeEnabled: boolean;
|
|
73
|
-
editingTextElement: import("@excalidraw
|
|
73
|
+
editingTextElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
74
74
|
isCropping: boolean;
|
|
75
75
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
76
76
|
searchMatches: Readonly<{
|
|
@@ -83,7 +83,7 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
83
83
|
}>;
|
|
84
84
|
shouldCacheIgnoreZoom: boolean;
|
|
85
85
|
exportScale: number;
|
|
86
|
-
bindMode: import("@excalidraw
|
|
86
|
+
bindMode: import("@misenkashari/excalidraw-element/types").BindMode;
|
|
87
87
|
gridSize: number;
|
|
88
88
|
contextMenu: {
|
|
89
89
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -93,8 +93,8 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
93
93
|
showWelcomeScreen: boolean;
|
|
94
94
|
isLoading: boolean;
|
|
95
95
|
errorMessage: React.ReactNode;
|
|
96
|
-
resizingElement: import("@excalidraw
|
|
97
|
-
startBoundElement: import("@excalidraw
|
|
96
|
+
resizingElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
97
|
+
startBoundElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
98
98
|
editingFrame: string | null;
|
|
99
99
|
activeTool: {
|
|
100
100
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -117,13 +117,13 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
117
117
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
118
118
|
currentItemRoughness: number;
|
|
119
119
|
currentItemOpacity: number;
|
|
120
|
-
currentItemFontFamily: import("@excalidraw
|
|
120
|
+
currentItemFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues;
|
|
121
121
|
currentItemFontSize: number;
|
|
122
|
-
currentItemTextAlign: import("@excalidraw
|
|
123
|
-
currentItemStartArrowhead: import("@excalidraw
|
|
124
|
-
currentItemEndArrowhead: import("@excalidraw
|
|
125
|
-
currentHoveredFontFamily: import("@excalidraw
|
|
126
|
-
currentItemRoundness: import("@excalidraw
|
|
122
|
+
currentItemTextAlign: import("@misenkashari/excalidraw-element/types").TextAlign;
|
|
123
|
+
currentItemStartArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
124
|
+
currentItemEndArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
125
|
+
currentHoveredFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues | null;
|
|
126
|
+
currentItemRoundness: import("@misenkashari/excalidraw-element/types").StrokeRoundness;
|
|
127
127
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
128
128
|
cursorButton: "up" | "down";
|
|
129
129
|
scrolledOutside: boolean;
|
|
@@ -135,7 +135,7 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
135
135
|
tab?: import("../types").SidebarTabName;
|
|
136
136
|
} | null;
|
|
137
137
|
defaultSidebarDockedPreference: boolean;
|
|
138
|
-
lastPointerDownWith: import("@excalidraw
|
|
138
|
+
lastPointerDownWith: import("@misenkashari/excalidraw-element/types").PointerType;
|
|
139
139
|
previousSelectedElementIds: {
|
|
140
140
|
[id: string]: true;
|
|
141
141
|
};
|
|
@@ -152,7 +152,7 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
152
152
|
open: boolean;
|
|
153
153
|
panels: number;
|
|
154
154
|
};
|
|
155
|
-
currentChartType: import("@excalidraw
|
|
155
|
+
currentChartType: import("@misenkashari/excalidraw-element/types").ChartType;
|
|
156
156
|
pasteDialog: {
|
|
157
157
|
shown: false;
|
|
158
158
|
data: null;
|
|
@@ -183,10 +183,10 @@ export declare const loadFromBlob: (blob: Blob,
|
|
|
183
183
|
localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | null,
|
|
184
184
|
/** FileSystemHandle. Defaults to `blob.handle` if defined, otherwise null. */
|
|
185
185
|
fileHandle?: FileSystemHandle | null) => Promise<{
|
|
186
|
-
elements: import("@excalidraw
|
|
186
|
+
elements: import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[];
|
|
187
187
|
appState: {
|
|
188
188
|
viewBackgroundColor: string;
|
|
189
|
-
theme: import("@excalidraw
|
|
189
|
+
theme: import("@misenkashari/excalidraw-element/types").Theme;
|
|
190
190
|
frameRendering: {
|
|
191
191
|
enabled: boolean;
|
|
192
192
|
name: boolean;
|
|
@@ -211,30 +211,30 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
211
211
|
name: "elementLinkSelector";
|
|
212
212
|
sourceElementId: ExcalidrawElement["id"];
|
|
213
213
|
};
|
|
214
|
-
editingGroupId: import("@excalidraw
|
|
214
|
+
editingGroupId: import("@misenkashari/excalidraw-element/types").GroupId | null;
|
|
215
215
|
selectedElementIds: Readonly<{
|
|
216
216
|
[id: string]: true;
|
|
217
217
|
}>;
|
|
218
|
-
frameToHighlight: import("@excalidraw
|
|
218
|
+
frameToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawFrameLikeElement> | null;
|
|
219
219
|
activeEmbeddable: {
|
|
220
|
-
element: import("@excalidraw
|
|
220
|
+
element: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement;
|
|
221
221
|
state: "hover" | "active";
|
|
222
222
|
} | null;
|
|
223
|
-
selectionElement: import("@excalidraw
|
|
223
|
+
selectionElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
224
224
|
selectedGroupIds: {
|
|
225
225
|
[groupId: string]: boolean;
|
|
226
226
|
};
|
|
227
|
-
selectedLinearElement: import("@excalidraw
|
|
228
|
-
multiElement: import("@excalidraw
|
|
229
|
-
newElement: import("@excalidraw
|
|
227
|
+
selectedLinearElement: import("@misenkashari/excalidraw-element").LinearElementEditor | null;
|
|
228
|
+
multiElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawLinearElement> | null;
|
|
229
|
+
newElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawNonSelectionElement> | null;
|
|
230
230
|
isBindingEnabled: boolean;
|
|
231
|
-
suggestedBinding: import("@excalidraw
|
|
231
|
+
suggestedBinding: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
232
232
|
isRotating: boolean;
|
|
233
|
-
elementsToHighlight: import("@excalidraw
|
|
233
|
+
elementsToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
234
234
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
235
235
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
236
236
|
zenModeEnabled: boolean;
|
|
237
|
-
editingTextElement: import("@excalidraw
|
|
237
|
+
editingTextElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
238
238
|
isCropping: boolean;
|
|
239
239
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
240
240
|
searchMatches: Readonly<{
|
|
@@ -247,7 +247,7 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
247
247
|
}>;
|
|
248
248
|
shouldCacheIgnoreZoom: boolean;
|
|
249
249
|
exportScale: number;
|
|
250
|
-
bindMode: import("@excalidraw
|
|
250
|
+
bindMode: import("@misenkashari/excalidraw-element/types").BindMode;
|
|
251
251
|
gridSize: number;
|
|
252
252
|
contextMenu: {
|
|
253
253
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -257,8 +257,8 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
257
257
|
showWelcomeScreen: boolean;
|
|
258
258
|
isLoading: boolean;
|
|
259
259
|
errorMessage: React.ReactNode;
|
|
260
|
-
resizingElement: import("@excalidraw
|
|
261
|
-
startBoundElement: import("@excalidraw
|
|
260
|
+
resizingElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
261
|
+
startBoundElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
262
262
|
editingFrame: string | null;
|
|
263
263
|
activeTool: {
|
|
264
264
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -281,13 +281,13 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
281
281
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
282
282
|
currentItemRoughness: number;
|
|
283
283
|
currentItemOpacity: number;
|
|
284
|
-
currentItemFontFamily: import("@excalidraw
|
|
284
|
+
currentItemFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues;
|
|
285
285
|
currentItemFontSize: number;
|
|
286
|
-
currentItemTextAlign: import("@excalidraw
|
|
287
|
-
currentItemStartArrowhead: import("@excalidraw
|
|
288
|
-
currentItemEndArrowhead: import("@excalidraw
|
|
289
|
-
currentHoveredFontFamily: import("@excalidraw
|
|
290
|
-
currentItemRoundness: import("@excalidraw
|
|
286
|
+
currentItemTextAlign: import("@misenkashari/excalidraw-element/types").TextAlign;
|
|
287
|
+
currentItemStartArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
288
|
+
currentItemEndArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
289
|
+
currentHoveredFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues | null;
|
|
290
|
+
currentItemRoundness: import("@misenkashari/excalidraw-element/types").StrokeRoundness;
|
|
291
291
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
292
292
|
cursorButton: "up" | "down";
|
|
293
293
|
scrolledOutside: boolean;
|
|
@@ -299,7 +299,7 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
299
299
|
tab?: import("../types").SidebarTabName;
|
|
300
300
|
} | null;
|
|
301
301
|
defaultSidebarDockedPreference: boolean;
|
|
302
|
-
lastPointerDownWith: import("@excalidraw
|
|
302
|
+
lastPointerDownWith: import("@misenkashari/excalidraw-element/types").PointerType;
|
|
303
303
|
previousSelectedElementIds: {
|
|
304
304
|
[id: string]: true;
|
|
305
305
|
};
|
|
@@ -316,7 +316,7 @@ fileHandle?: FileSystemHandle | null) => Promise<{
|
|
|
316
316
|
open: boolean;
|
|
317
317
|
panels: number;
|
|
318
318
|
};
|
|
319
|
-
currentChartType: import("@excalidraw
|
|
319
|
+
currentChartType: import("@misenkashari/excalidraw-element/types").ChartType;
|
|
320
320
|
pasteDialog: {
|
|
321
321
|
shown: false;
|
|
322
322
|
data: null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { supported as nativeFileSystemSupported } from "browser-fs-access";
|
|
2
|
-
import { MIME_TYPES } from "@excalidraw
|
|
2
|
+
import { MIME_TYPES } from "@misenkashari/excalidraw-common";
|
|
3
3
|
import type { FileSystemHandle } from "browser-fs-access";
|
|
4
4
|
type FILE_EXTENSION = Exclude<keyof typeof MIME_TYPES, "binary">;
|
|
5
5
|
export declare const fileOpen: <M extends boolean | undefined = false>(opts: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import type { FileSystemHandle } from "./filesystem";
|
|
3
3
|
import type { ExportType } from "../scene/types";
|
|
4
4
|
import type { AppState, BinaryFiles } from "../types";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import type { AppState, BinaryFiles, LibraryItems } from "../types";
|
|
3
3
|
import type { ImportedDataState, ImportedLibraryData } from "./types";
|
|
4
4
|
export declare const serializeAsJSON: (elements: readonly ExcalidrawElement[], appState: Partial<AppState>, files: BinaryFiles, type: "local" | "database") => string;
|
|
@@ -8,10 +8,10 @@ name?: string) => Promise<{
|
|
|
8
8
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
9
9
|
}>;
|
|
10
10
|
export declare const loadFromJSON: (localAppState: AppState, localElements: readonly ExcalidrawElement[] | null) => Promise<{
|
|
11
|
-
elements: import("@excalidraw
|
|
11
|
+
elements: import("@misenkashari/excalidraw-element/types").OrderedExcalidrawElement[];
|
|
12
12
|
appState: {
|
|
13
13
|
viewBackgroundColor: string;
|
|
14
|
-
theme: import("@excalidraw
|
|
14
|
+
theme: import("@misenkashari/excalidraw-element/types").Theme;
|
|
15
15
|
frameRendering: {
|
|
16
16
|
enabled: boolean;
|
|
17
17
|
name: boolean;
|
|
@@ -36,30 +36,30 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
36
36
|
name: "elementLinkSelector";
|
|
37
37
|
sourceElementId: ExcalidrawElement["id"];
|
|
38
38
|
};
|
|
39
|
-
editingGroupId: import("@excalidraw
|
|
39
|
+
editingGroupId: import("@misenkashari/excalidraw-element/types").GroupId | null;
|
|
40
40
|
selectedElementIds: Readonly<{
|
|
41
41
|
[id: string]: true;
|
|
42
42
|
}>;
|
|
43
|
-
frameToHighlight: import("@excalidraw
|
|
43
|
+
frameToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawFrameLikeElement> | null;
|
|
44
44
|
activeEmbeddable: {
|
|
45
|
-
element: import("@excalidraw
|
|
45
|
+
element: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement;
|
|
46
46
|
state: "hover" | "active";
|
|
47
47
|
} | null;
|
|
48
|
-
selectionElement: import("@excalidraw
|
|
48
|
+
selectionElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
49
49
|
selectedGroupIds: {
|
|
50
50
|
[groupId: string]: boolean;
|
|
51
51
|
};
|
|
52
|
-
selectedLinearElement: import("@excalidraw
|
|
53
|
-
multiElement: import("@excalidraw
|
|
54
|
-
newElement: import("@excalidraw
|
|
52
|
+
selectedLinearElement: import("@misenkashari/excalidraw-element").LinearElementEditor | null;
|
|
53
|
+
multiElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawLinearElement> | null;
|
|
54
|
+
newElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawNonSelectionElement> | null;
|
|
55
55
|
isBindingEnabled: boolean;
|
|
56
|
-
suggestedBinding: import("@excalidraw
|
|
56
|
+
suggestedBinding: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
57
57
|
isRotating: boolean;
|
|
58
|
-
elementsToHighlight: import("@excalidraw
|
|
58
|
+
elementsToHighlight: import("@misenkashari/excalidraw-element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
59
59
|
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
60
60
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
61
61
|
zenModeEnabled: boolean;
|
|
62
|
-
editingTextElement: import("@excalidraw
|
|
62
|
+
editingTextElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
63
63
|
isCropping: boolean;
|
|
64
64
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
65
65
|
searchMatches: Readonly<{
|
|
@@ -72,7 +72,7 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
72
72
|
}>;
|
|
73
73
|
shouldCacheIgnoreZoom: boolean;
|
|
74
74
|
exportScale: number;
|
|
75
|
-
bindMode: import("@excalidraw
|
|
75
|
+
bindMode: import("@misenkashari/excalidraw-element/types").BindMode;
|
|
76
76
|
gridSize: number;
|
|
77
77
|
contextMenu: {
|
|
78
78
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -82,8 +82,8 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
82
82
|
showWelcomeScreen: boolean;
|
|
83
83
|
isLoading: boolean;
|
|
84
84
|
errorMessage: React.ReactNode;
|
|
85
|
-
resizingElement: import("@excalidraw
|
|
86
|
-
startBoundElement: import("@excalidraw
|
|
85
|
+
resizingElement: import("@misenkashari/excalidraw-element/types").NonDeletedExcalidrawElement | null;
|
|
86
|
+
startBoundElement: import("@misenkashari/excalidraw-element/types").NonDeleted<import("@misenkashari/excalidraw-element/types").ExcalidrawBindableElement> | null;
|
|
87
87
|
editingFrame: string | null;
|
|
88
88
|
activeTool: {
|
|
89
89
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -106,13 +106,13 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
106
106
|
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
107
107
|
currentItemRoughness: number;
|
|
108
108
|
currentItemOpacity: number;
|
|
109
|
-
currentItemFontFamily: import("@excalidraw
|
|
109
|
+
currentItemFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues;
|
|
110
110
|
currentItemFontSize: number;
|
|
111
|
-
currentItemTextAlign: import("@excalidraw
|
|
112
|
-
currentItemStartArrowhead: import("@excalidraw
|
|
113
|
-
currentItemEndArrowhead: import("@excalidraw
|
|
114
|
-
currentHoveredFontFamily: import("@excalidraw
|
|
115
|
-
currentItemRoundness: import("@excalidraw
|
|
111
|
+
currentItemTextAlign: import("@misenkashari/excalidraw-element/types").TextAlign;
|
|
112
|
+
currentItemStartArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
113
|
+
currentItemEndArrowhead: import("@misenkashari/excalidraw-element/types").Arrowhead | null;
|
|
114
|
+
currentHoveredFontFamily: import("@misenkashari/excalidraw-element/types").FontFamilyValues | null;
|
|
115
|
+
currentItemRoundness: import("@misenkashari/excalidraw-element/types").StrokeRoundness;
|
|
116
116
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
117
117
|
cursorButton: "up" | "down";
|
|
118
118
|
scrolledOutside: boolean;
|
|
@@ -124,7 +124,7 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
124
124
|
tab?: import("../types").SidebarTabName;
|
|
125
125
|
} | null;
|
|
126
126
|
defaultSidebarDockedPreference: boolean;
|
|
127
|
-
lastPointerDownWith: import("@excalidraw
|
|
127
|
+
lastPointerDownWith: import("@misenkashari/excalidraw-element/types").PointerType;
|
|
128
128
|
previousSelectedElementIds: {
|
|
129
129
|
[id: string]: true;
|
|
130
130
|
};
|
|
@@ -141,7 +141,7 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
141
141
|
open: boolean;
|
|
142
142
|
panels: number;
|
|
143
143
|
};
|
|
144
|
-
currentChartType: import("@excalidraw
|
|
144
|
+
currentChartType: import("@misenkashari/excalidraw-element/types").ChartType;
|
|
145
145
|
pasteDialog: {
|
|
146
146
|
shown: false;
|
|
147
147
|
data: null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { MaybePromise } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { MaybePromise } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
3
|
import type App from "../components/App";
|
|
4
4
|
import type { LibraryItems, ExcalidrawImperativeAPI, LibraryItemsSource, LibraryItems_anyVersion } from "../types";
|
|
5
5
|
export type LibraryPersistedData = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OrderedExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { MakeBrand } from "@excalidraw
|
|
1
|
+
import type { OrderedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { MakeBrand } from "@misenkashari/excalidraw-common/utility-types";
|
|
3
3
|
import type { AppState } from "../types";
|
|
4
4
|
export type ReconciledExcalidrawElement = OrderedExcalidrawElement & MakeBrand<"ReconciledElement">;
|
|
5
5
|
export type RemoteExcalidrawElement = OrderedExcalidrawElement & MakeBrand<"RemoteExcalidrawElement">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import type { AppState, BinaryFiles } from "../types";
|
|
3
3
|
export declare const resaveAsImageWithScene: (elements: readonly ExcalidrawElement[], appState: AppState, files: BinaryFiles, name: string) => Promise<{
|
|
4
4
|
fileHandle: import("browser-fs-access").FileSystemHandle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type CombineBrandsIfNeeded } from "@excalidraw
|
|
2
|
-
import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, ExcalidrawSelectionElement, OrderedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import { type CombineBrandsIfNeeded } from "@misenkashari/excalidraw-common";
|
|
2
|
+
import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, ExcalidrawSelectionElement, OrderedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import type { AppState, BinaryFiles, LibraryItem } from "../types";
|
|
4
4
|
import type { ImportedDataState } from "./types";
|
|
5
5
|
type RestoredAppState = Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { VERSIONS } from "@excalidraw
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { VERSIONS } from "@misenkashari/excalidraw-common";
|
|
2
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
import type { cleanAppStateForExport } from "../appState";
|
|
4
4
|
import type { AppState, BinaryFiles, LibraryItem, LibraryItems, LibraryItems_anyVersion } from "../types";
|
|
5
5
|
export interface ExportedDataState {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type FontMetadata } from "@excalidraw
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw
|
|
3
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import { type FontMetadata } from "@misenkashari/excalidraw-common";
|
|
2
|
+
import type { ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
4
4
|
import { ExcalidrawFontFace } from "./ExcalidrawFontFace";
|
|
5
5
|
export declare class Fonts {
|
|
6
6
|
static readonly loadedFontsCache: Set<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Emitter } from "@excalidraw
|
|
2
|
-
import { StoreDelta } from "@excalidraw
|
|
3
|
-
import type { StoreSnapshot, Store } from "@excalidraw
|
|
4
|
-
import type { SceneElementsMap } from "@excalidraw
|
|
1
|
+
import { Emitter } from "@misenkashari/excalidraw-common";
|
|
2
|
+
import { StoreDelta } from "@misenkashari/excalidraw-element";
|
|
3
|
+
import type { StoreSnapshot, Store } from "@misenkashari/excalidraw-element";
|
|
4
|
+
import type { SceneElementsMap } from "@misenkashari/excalidraw-element/types";
|
|
5
5
|
import type { AppState } from "./types";
|
|
6
6
|
export declare class HistoryDelta extends StoreDelta {
|
|
7
7
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Emitter } from "@excalidraw
|
|
1
|
+
import type { Emitter } from "@misenkashari/excalidraw-common";
|
|
2
2
|
export declare const useEmitter: <TEvent extends unknown>(emitter: Emitter<[TEvent]>, initialState: TEvent) => TEvent;
|
|
@@ -8,20 +8,20 @@ import "./css/styles.scss";
|
|
|
8
8
|
import "./fonts/fonts.css";
|
|
9
9
|
import type { ExcalidrawProps } from "./types";
|
|
10
10
|
export declare const Excalidraw: React.MemoExoticComponent<(props: ExcalidrawProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
-
export { getSceneVersion, hashElementsVersion, hashString, getNonDeletedElements, } from "@excalidraw
|
|
12
|
-
export { getTextFromElements } from "@excalidraw
|
|
13
|
-
export { isInvisiblySmallElement } from "@excalidraw
|
|
11
|
+
export { getSceneVersion, hashElementsVersion, hashString, getNonDeletedElements, } from "@misenkashari/excalidraw-element";
|
|
12
|
+
export { getTextFromElements } from "@misenkashari/excalidraw-element";
|
|
13
|
+
export { isInvisiblySmallElement } from "@misenkashari/excalidraw-element";
|
|
14
14
|
export { defaultLang, useI18n, languages } from "./i18n";
|
|
15
15
|
export { restoreAppState, restoreElement, restoreElements, restoreLibraryItems, } from "./data/restore";
|
|
16
16
|
export { reconcileElements } from "./data/reconcile";
|
|
17
|
-
export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "@excalidraw
|
|
17
|
+
export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "@misenkashari/excalidraw-utils/export";
|
|
18
18
|
export { serializeAsJSON, serializeLibraryAsJSON } from "./data/json";
|
|
19
19
|
export { loadFromBlob, loadSceneOrLibraryFromBlob, loadLibraryFromBlob, } from "./data/blob";
|
|
20
20
|
export { mergeLibraryItems, getLibraryItemsHash } from "./data/library";
|
|
21
|
-
export { isLinearElement } from "@excalidraw
|
|
22
|
-
export { FONT_FAMILY, THEME, MIME_TYPES, ROUNDNESS, DEFAULT_LASER_COLOR, UserIdleState, normalizeLink, sceneCoordsToViewportCoords, viewportCoordsToSceneCoords, getFormFactor, } from "@excalidraw
|
|
23
|
-
export { mutateElement, newElementWith, bumpVersion, } from "@excalidraw
|
|
24
|
-
export { CaptureUpdateAction } from "@excalidraw
|
|
21
|
+
export { isLinearElement } from "@misenkashari/excalidraw-element";
|
|
22
|
+
export { FONT_FAMILY, THEME, MIME_TYPES, ROUNDNESS, DEFAULT_LASER_COLOR, UserIdleState, normalizeLink, sceneCoordsToViewportCoords, viewportCoordsToSceneCoords, getFormFactor, } from "@misenkashari/excalidraw-common";
|
|
23
|
+
export { mutateElement, newElementWith, bumpVersion, } from "@misenkashari/excalidraw-element";
|
|
24
|
+
export { CaptureUpdateAction } from "@misenkashari/excalidraw-element";
|
|
25
25
|
export { parseLibraryTokensFromUrl, useHandleLibrary } from "./data/library";
|
|
26
26
|
export { Sidebar } from "./components/Sidebar/Sidebar";
|
|
27
27
|
export { Button } from "./components/Button";
|
|
@@ -36,9 +36,9 @@ export { DefaultSidebar } from "./components/DefaultSidebar";
|
|
|
36
36
|
export { TTDDialog } from "./components/TTDDialog/TTDDialog";
|
|
37
37
|
export { TTDDialogTrigger } from "./components/TTDDialog/TTDDialogTrigger";
|
|
38
38
|
export { zoomToFitBounds } from "./actions/actionCanvas";
|
|
39
|
-
export { getCommonBounds, getVisibleSceneBounds, convertToExcalidrawElements, } from "@excalidraw
|
|
40
|
-
export { elementsOverlappingBBox, isElementInsideBBox, elementPartiallyOverlapsWithOrContainsBBox, } from "@excalidraw
|
|
39
|
+
export { getCommonBounds, getVisibleSceneBounds, convertToExcalidrawElements, } from "@misenkashari/excalidraw-element";
|
|
40
|
+
export { elementsOverlappingBBox, isElementInsideBBox, elementPartiallyOverlapsWithOrContainsBBox, } from "@misenkashari/excalidraw-utils/withinBounds";
|
|
41
41
|
export { DiagramToCodePlugin } from "./components/DiagramToCodePlugin/DiagramToCodePlugin";
|
|
42
42
|
export { getDataURL } from "./data/blob";
|
|
43
|
-
export { isElementLink } from "@excalidraw
|
|
44
|
-
export { setCustomTextMetricsProvider } from "@excalidraw
|
|
43
|
+
export { isElementLink } from "@misenkashari/excalidraw-element";
|
|
44
|
+
export { setCustomTextMetricsProvider } from "@misenkashari/excalidraw-element";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ElementsSegmentsMap, GlobalPoint } from "@excalidraw
|
|
2
|
-
import type { ElementsMap, ExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { ElementsSegmentsMap, GlobalPoint } from "@misenkashari/excalidraw-math/types";
|
|
2
|
+
import type { ElementsMap, ExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
3
3
|
export declare const getLassoSelectedElementIds: (input: {
|
|
4
4
|
lassoPath: GlobalPoint[];
|
|
5
5
|
elements: readonly ExcalidrawElement[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawFrameLikeElement } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawFrameLikeElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import type { StaticCanvasRenderConfig, StaticSceneRenderConfig } from "../scene/types";
|
|
3
3
|
import type { StaticCanvasAppState } from "../types";
|
|
4
4
|
export declare const frameClip: (frame: ExcalidrawFrameLikeElement, context: CanvasRenderingContext2D, renderConfig: StaticCanvasRenderConfig, appState: StaticCanvasAppState) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw
|
|
1
|
+
import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
2
|
import type { RenderableElementsMap, SVGRenderConfig } from "../scene/types";
|
|
3
3
|
import type { BinaryFiles } from "../types";
|
|
4
4
|
import type { RoughSVG } from "roughjs/bin/svg";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw
|
|
2
|
-
import type { Scene } from "@excalidraw
|
|
1
|
+
import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
|
|
2
|
+
import type { Scene } from "@misenkashari/excalidraw-element";
|
|
3
3
|
import type { RenderableElementsMap } from "./types";
|
|
4
4
|
import type { AppState } from "../types";
|
|
5
5
|
export declare class Renderer {
|