@nous-excalidraw/math 0.18.0-cy.1 → 0.18.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 +4 -4
- package/dist/dev/index.js +1 -1
- package/dist/dev/index.js.map +1 -1
- package/dist/prod/index.js +1 -1
- package/dist/types/common/src/appEventBus.d.ts +1 -1
- package/dist/types/common/src/constants.d.ts +2 -4
- package/dist/types/common/src/emitter.d.ts +1 -1
- package/dist/types/common/src/font-metadata.d.ts +1 -1
- package/dist/types/common/src/points.d.ts +2 -2
- package/dist/types/common/src/utils.d.ts +3 -3
- package/dist/types/element/src/Scene.d.ts +4 -4
- package/dist/types/element/src/align.d.ts +1 -1
- package/dist/types/element/src/arrows/focus.d.ts +2 -2
- package/dist/types/element/src/arrows/helpers.d.ts +1 -1
- package/dist/types/element/src/binding.d.ts +4 -4
- package/dist/types/element/src/bounds.d.ts +3 -3
- package/dist/types/element/src/collision.d.ts +2 -2
- package/dist/types/element/src/comparisons.d.ts +1 -1
- package/dist/types/element/src/delta.d.ts +3 -3
- package/dist/types/element/src/distance.d.ts +1 -1
- package/dist/types/element/src/distribute.d.ts +1 -1
- package/dist/types/element/src/dragElements.d.ts +2 -2
- package/dist/types/element/src/duplicate.d.ts +2 -2
- package/dist/types/element/src/elbowArrow.d.ts +1 -1
- package/dist/types/element/src/elementLink.d.ts +1 -1
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +1 -1
- package/dist/types/element/src/frame.d.ts +2 -2
- package/dist/types/element/src/groups.d.ts +2 -2
- package/dist/types/element/src/heading.d.ts +2 -2
- package/dist/types/element/src/image.d.ts +2 -2
- package/dist/types/element/src/linearElementEditor.d.ts +4 -4
- 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 +4 -4
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/resizeTest.d.ts +4 -4
- package/dist/types/element/src/selection.d.ts +1 -1
- package/dist/types/element/src/shape.d.ts +5 -5
- package/dist/types/element/src/showSelectedShapeActions.d.ts +1 -1
- package/dist/types/element/src/sizeHelpers.d.ts +1 -1
- package/dist/types/element/src/store.d.ts +4 -4
- package/dist/types/element/src/textElement.d.ts +3 -3
- package/dist/types/element/src/transform.d.ts +1 -1
- package/dist/types/element/src/transformHandles.d.ts +4 -4
- package/dist/types/element/src/typeChecks.d.ts +2 -2
- package/dist/types/element/src/types.d.ts +3 -3
- package/dist/types/element/src/utils.d.ts +3 -3
- package/dist/types/element/src/zindex.d.ts +2 -2
- 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 +48 -48
- 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/actionDeselect.d.ts +24 -24
- 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 +48 -48
- 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 +210 -210
- package/dist/types/excalidraw/actions/actionGroup.d.ts +41 -41
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +149 -149
- 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 +37 -37
- 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/actionToggleArrowBinding.d.ts +28 -28
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -29
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +28 -28
- 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 +9 -9
- package/dist/types/excalidraw/charts/charts.constants.d.ts +1 -1
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +3 -3
- package/dist/types/excalidraw/charts/charts.types.d.ts +1 -1
- package/dist/types/excalidraw/charts/index.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 +10 -10
- 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/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/CodeMirrorEditor.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +2 -2
- package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -3
- 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/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +1 -1
- 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/resave.d.ts +2 -2
- 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/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/textAutoResizeHandle.d.ts +4 -4
- package/dist/types/excalidraw/types.d.ts +7 -7
- 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 +3 -3
- 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 +2 -2
|
@@ -7,7 +7,7 @@ export declare const actionToggleViewMode: {
|
|
|
7
7
|
category: "canvas";
|
|
8
8
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
10
|
+
perform(elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
viewModeEnabled: boolean;
|
|
13
13
|
contextMenu: {
|
|
@@ -19,23 +19,23 @@ export declare const actionToggleViewMode: {
|
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
errorMessage: React.ReactNode;
|
|
21
21
|
activeEmbeddable: {
|
|
22
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
|
+
element: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
23
23
|
state: "hover" | "active";
|
|
24
24
|
} | null;
|
|
25
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
25
|
+
newElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
|
+
resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
|
+
multiElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
|
+
selectionElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
30
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
31
|
bindingPreference: "enabled" | "disabled";
|
|
32
32
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
+
startBoundElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
34
|
suggestedBinding: {
|
|
35
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
35
|
+
element: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
|
+
midPoint?: import("@nous-excalidraw/math").GlobalPoint;
|
|
37
37
|
} | null;
|
|
38
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
|
+
frameToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
39
39
|
frameRendering: {
|
|
40
40
|
enabled: boolean;
|
|
41
41
|
name: boolean;
|
|
@@ -43,8 +43,8 @@ export declare const actionToggleViewMode: {
|
|
|
43
43
|
clip: boolean;
|
|
44
44
|
};
|
|
45
45
|
editingFrame: string | null;
|
|
46
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
46
|
+
elementsToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
|
+
editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
|
|
48
48
|
activeTool: {
|
|
49
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
50
|
locked: boolean;
|
|
@@ -62,18 +62,18 @@ export declare const actionToggleViewMode: {
|
|
|
62
62
|
exportScale: number;
|
|
63
63
|
currentItemStrokeColor: string;
|
|
64
64
|
currentItemBackgroundColor: string;
|
|
65
|
-
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
65
|
+
currentItemFillStyle: import("@nous-excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
66
66
|
currentItemStrokeWidth: number;
|
|
67
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
67
|
+
currentItemStrokeStyle: import("@nous-excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
68
68
|
currentItemRoughness: number;
|
|
69
69
|
currentItemOpacity: number;
|
|
70
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
70
|
+
currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
|
|
71
71
|
currentItemFontSize: number;
|
|
72
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
73
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
74
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
75
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
76
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
72
|
+
currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
|
|
73
|
+
currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
|
|
74
|
+
currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
|
|
75
|
+
currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
|
|
76
|
+
currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
|
|
77
77
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
78
78
|
viewBackgroundColor: string;
|
|
79
79
|
scrollX: number;
|
|
@@ -101,14 +101,14 @@ export declare const actionToggleViewMode: {
|
|
|
101
101
|
name: "settings";
|
|
102
102
|
} | {
|
|
103
103
|
name: "elementLinkSelector";
|
|
104
|
-
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
104
|
+
sourceElementId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"];
|
|
105
105
|
} | {
|
|
106
106
|
name: "charts";
|
|
107
107
|
data: import("../charts").Spreadsheet;
|
|
108
108
|
rawText: string;
|
|
109
109
|
};
|
|
110
110
|
defaultSidebarDockedPreference: boolean;
|
|
111
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
111
|
+
lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
|
|
112
112
|
selectedElementIds: Readonly<{
|
|
113
113
|
[id: string]: true;
|
|
114
114
|
}>;
|
|
@@ -126,14 +126,14 @@ export declare const actionToggleViewMode: {
|
|
|
126
126
|
duration?: number;
|
|
127
127
|
} | null;
|
|
128
128
|
zenModeEnabled: boolean;
|
|
129
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
129
|
+
theme: import("@nous-excalidraw/element/types").Theme;
|
|
130
130
|
gridSize: number;
|
|
131
131
|
gridStep: number;
|
|
132
132
|
gridModeEnabled: boolean;
|
|
133
133
|
selectedGroupIds: {
|
|
134
134
|
[groupId: string]: boolean;
|
|
135
135
|
};
|
|
136
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
136
|
+
editingGroupId: import("@nous-excalidraw/element/types").GroupId | null;
|
|
137
137
|
width: number;
|
|
138
138
|
height: number;
|
|
139
139
|
offsetTop: number;
|
|
@@ -145,7 +145,7 @@ export declare const actionToggleViewMode: {
|
|
|
145
145
|
panels: number;
|
|
146
146
|
};
|
|
147
147
|
showHyperlinkPopup: false | "info" | "editor";
|
|
148
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
148
|
+
selectedLinearElement: import("@nous-excalidraw/element").LinearElementEditor | null;
|
|
149
149
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
150
150
|
originSnapOffset: {
|
|
151
151
|
x: number;
|
|
@@ -155,21 +155,21 @@ export declare const actionToggleViewMode: {
|
|
|
155
155
|
userToFollow: import("../types").UserToFollow | null;
|
|
156
156
|
followedBy: Set<import("../types").SocketId>;
|
|
157
157
|
isCropping: boolean;
|
|
158
|
-
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
158
|
+
croppingElementId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
159
159
|
searchMatches: Readonly<{
|
|
160
|
-
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
160
|
+
focusedId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
161
161
|
matches: readonly import("../types").SearchMatch[];
|
|
162
162
|
}> | null;
|
|
163
163
|
activeLockedId: string | null;
|
|
164
164
|
lockedMultiSelections: {
|
|
165
165
|
[groupId: string]: true;
|
|
166
166
|
};
|
|
167
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
167
|
+
bindMode: import("@nous-excalidraw/element/types").BindMode;
|
|
168
168
|
};
|
|
169
169
|
captureUpdate: "EVENTUALLY";
|
|
170
170
|
};
|
|
171
171
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
172
|
-
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
172
|
+
predicate: (elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps) => boolean;
|
|
173
173
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
174
174
|
} & {
|
|
175
175
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -7,7 +7,7 @@ export declare const actionToggleZenMode: {
|
|
|
7
7
|
category: "canvas";
|
|
8
8
|
predicate: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
9
9
|
};
|
|
10
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
10
|
+
perform(elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>): {
|
|
11
11
|
appState: {
|
|
12
12
|
zenModeEnabled: boolean;
|
|
13
13
|
contextMenu: {
|
|
@@ -19,23 +19,23 @@ export declare const actionToggleZenMode: {
|
|
|
19
19
|
isLoading: boolean;
|
|
20
20
|
errorMessage: React.ReactNode;
|
|
21
21
|
activeEmbeddable: {
|
|
22
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
22
|
+
element: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
23
23
|
state: "hover" | "active";
|
|
24
24
|
} | null;
|
|
25
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
25
|
+
newElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
26
|
+
resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
27
|
+
multiElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
28
|
+
selectionElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
29
29
|
isBindingEnabled: boolean;
|
|
30
30
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
31
31
|
bindingPreference: "enabled" | "disabled";
|
|
32
32
|
isMidpointSnappingEnabled: boolean;
|
|
33
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
33
|
+
startBoundElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
34
34
|
suggestedBinding: {
|
|
35
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
35
|
+
element: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement>;
|
|
36
|
+
midPoint?: import("@nous-excalidraw/math").GlobalPoint;
|
|
37
37
|
} | null;
|
|
38
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
38
|
+
frameToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
39
39
|
frameRendering: {
|
|
40
40
|
enabled: boolean;
|
|
41
41
|
name: boolean;
|
|
@@ -43,8 +43,8 @@ export declare const actionToggleZenMode: {
|
|
|
43
43
|
clip: boolean;
|
|
44
44
|
};
|
|
45
45
|
editingFrame: string | null;
|
|
46
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
46
|
+
elementsToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
47
|
+
editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
|
|
48
48
|
activeTool: {
|
|
49
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
50
50
|
locked: boolean;
|
|
@@ -62,18 +62,18 @@ export declare const actionToggleZenMode: {
|
|
|
62
62
|
exportScale: number;
|
|
63
63
|
currentItemStrokeColor: string;
|
|
64
64
|
currentItemBackgroundColor: string;
|
|
65
|
-
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
65
|
+
currentItemFillStyle: import("@nous-excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
66
66
|
currentItemStrokeWidth: number;
|
|
67
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
67
|
+
currentItemStrokeStyle: import("@nous-excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
68
68
|
currentItemRoughness: number;
|
|
69
69
|
currentItemOpacity: number;
|
|
70
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
70
|
+
currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
|
|
71
71
|
currentItemFontSize: number;
|
|
72
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
73
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
74
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
75
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
76
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
72
|
+
currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
|
|
73
|
+
currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
|
|
74
|
+
currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
|
|
75
|
+
currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
|
|
76
|
+
currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
|
|
77
77
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
78
78
|
viewBackgroundColor: string;
|
|
79
79
|
scrollX: number;
|
|
@@ -101,14 +101,14 @@ export declare const actionToggleZenMode: {
|
|
|
101
101
|
name: "settings";
|
|
102
102
|
} | {
|
|
103
103
|
name: "elementLinkSelector";
|
|
104
|
-
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
104
|
+
sourceElementId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"];
|
|
105
105
|
} | {
|
|
106
106
|
name: "charts";
|
|
107
107
|
data: import("../charts").Spreadsheet;
|
|
108
108
|
rawText: string;
|
|
109
109
|
};
|
|
110
110
|
defaultSidebarDockedPreference: boolean;
|
|
111
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
111
|
+
lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
|
|
112
112
|
selectedElementIds: Readonly<{
|
|
113
113
|
[id: string]: true;
|
|
114
114
|
}>;
|
|
@@ -125,7 +125,7 @@ export declare const actionToggleZenMode: {
|
|
|
125
125
|
closable?: boolean;
|
|
126
126
|
duration?: number;
|
|
127
127
|
} | null;
|
|
128
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
128
|
+
theme: import("@nous-excalidraw/element/types").Theme;
|
|
129
129
|
gridSize: number;
|
|
130
130
|
gridStep: number;
|
|
131
131
|
gridModeEnabled: boolean;
|
|
@@ -133,7 +133,7 @@ export declare const actionToggleZenMode: {
|
|
|
133
133
|
selectedGroupIds: {
|
|
134
134
|
[groupId: string]: boolean;
|
|
135
135
|
};
|
|
136
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
136
|
+
editingGroupId: import("@nous-excalidraw/element/types").GroupId | null;
|
|
137
137
|
width: number;
|
|
138
138
|
height: number;
|
|
139
139
|
offsetTop: number;
|
|
@@ -145,7 +145,7 @@ export declare const actionToggleZenMode: {
|
|
|
145
145
|
panels: number;
|
|
146
146
|
};
|
|
147
147
|
showHyperlinkPopup: false | "info" | "editor";
|
|
148
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
148
|
+
selectedLinearElement: import("@nous-excalidraw/element").LinearElementEditor | null;
|
|
149
149
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
150
150
|
originSnapOffset: {
|
|
151
151
|
x: number;
|
|
@@ -155,21 +155,21 @@ export declare const actionToggleZenMode: {
|
|
|
155
155
|
userToFollow: import("../types").UserToFollow | null;
|
|
156
156
|
followedBy: Set<import("../types").SocketId>;
|
|
157
157
|
isCropping: boolean;
|
|
158
|
-
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
158
|
+
croppingElementId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
159
159
|
searchMatches: Readonly<{
|
|
160
|
-
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
160
|
+
focusedId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
161
161
|
matches: readonly import("../types").SearchMatch[];
|
|
162
162
|
}> | null;
|
|
163
163
|
activeLockedId: string | null;
|
|
164
164
|
lockedMultiSelections: {
|
|
165
165
|
[groupId: string]: true;
|
|
166
166
|
};
|
|
167
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
167
|
+
bindMode: import("@nous-excalidraw/element/types").BindMode;
|
|
168
168
|
};
|
|
169
169
|
captureUpdate: "EVENTUALLY";
|
|
170
170
|
};
|
|
171
171
|
checked: (appState: Readonly<import("../types").AppState>) => boolean;
|
|
172
|
-
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
172
|
+
predicate: (elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
173
173
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
174
174
|
} & {
|
|
175
175
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -6,8 +6,8 @@ export declare const actionSendBackward: {
|
|
|
6
6
|
trackEvent: {
|
|
7
7
|
category: "element";
|
|
8
8
|
};
|
|
9
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
10
|
-
elements: readonly import("@excalidraw/element/types").ExcalidrawElement[];
|
|
9
|
+
perform: (elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
10
|
+
elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[];
|
|
11
11
|
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
captureUpdate: "IMMEDIATELY";
|
|
13
13
|
};
|
|
@@ -25,8 +25,8 @@ export declare const actionBringForward: {
|
|
|
25
25
|
trackEvent: {
|
|
26
26
|
category: "element";
|
|
27
27
|
};
|
|
28
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
29
|
-
elements: readonly import("@excalidraw/element/types").ExcalidrawElement[];
|
|
28
|
+
perform: (elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: unknown, app: import("../types").AppClassProperties) => {
|
|
29
|
+
elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[];
|
|
30
30
|
appState: Readonly<import("../types").AppState>;
|
|
31
31
|
captureUpdate: "IMMEDIATELY";
|
|
32
32
|
};
|
|
@@ -44,8 +44,8 @@ export declare const actionSendToBack: {
|
|
|
44
44
|
trackEvent: {
|
|
45
45
|
category: "element";
|
|
46
46
|
};
|
|
47
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
48
|
-
elements: readonly import("@excalidraw/element/types").ExcalidrawElement[] | import("@excalidraw/element/types").ExcalidrawElement[];
|
|
47
|
+
perform: (elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
48
|
+
elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[] | import("@nous-excalidraw/element/types").ExcalidrawElement[];
|
|
49
49
|
appState: Readonly<import("../types").AppState>;
|
|
50
50
|
captureUpdate: "IMMEDIATELY";
|
|
51
51
|
};
|
|
@@ -62,8 +62,8 @@ export declare const actionBringToFront: {
|
|
|
62
62
|
trackEvent: {
|
|
63
63
|
category: "element";
|
|
64
64
|
};
|
|
65
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
66
|
-
elements: readonly import("@excalidraw/element/types").ExcalidrawElement[] | import("@excalidraw/element/types").ExcalidrawElement[];
|
|
65
|
+
perform: (elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => {
|
|
66
|
+
elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[] | import("@nous-excalidraw/element/types").ExcalidrawElement[];
|
|
67
67
|
appState: Readonly<import("../types").AppState>;
|
|
68
68
|
captureUpdate: "IMMEDIATELY";
|
|
69
69
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
import type { OrderedExcalidrawElement } from "@nous-excalidraw/element/types";
|
|
3
3
|
import type { AppClassProperties, AppState } from "../types";
|
|
4
4
|
import type { Action, UpdaterFn, ActionName, ActionResult, PanelComponentProps, ActionSource } from "./types";
|
|
5
5
|
export declare class ActionManager {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SubtypeOf } from "@excalidraw/common/utility-types";
|
|
1
|
+
import type { SubtypeOf } from "@nous-excalidraw/common/utility-types";
|
|
2
2
|
import type { ActionName } from "./types";
|
|
3
3
|
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "clearCanvas" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "addToLibrary" | "viewMode" | "flipHorizontal" | "flipVertical" | "hyperlink" | "toggleElementLock" | "resetZoom" | "zoomOut" | "zoomIn" | "zoomToFit" | "zoomToFitSelectionInViewport" | "zoomToFitSelection" | "toggleEraserTool" | "toggleHandTool" | "setFrameAsActiveTool" | "saveFileToDisk" | "saveToActiveFile" | "toggleShortcuts" | "wrapSelectionInFrame"> | "saveScene" | "imageExport" | "commandPalette" | "searchMenu" | "toolLock";
|
|
4
4
|
export declare const getShortcutFromShortcutName: (name: ShortcutName, idx?: number) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type { CaptureUpdateActionType } from "@excalidraw/element";
|
|
1
|
+
import type { ExcalidrawElement, OrderedExcalidrawElement } from "@nous-excalidraw/element/types";
|
|
2
|
+
import type { CaptureUpdateActionType } from "@nous-excalidraw/element";
|
|
3
3
|
import type { AppClassProperties, AppState, ExcalidrawProps, BinaryFiles, UIAppState } from "../types";
|
|
4
4
|
import type React from "react";
|
|
5
5
|
export type ActionSource = "ui" | "keyboard" | "contextMenu" | "api" | "commandPalette";
|
|
@@ -2,7 +2,7 @@ import type { AppState, NormalizedZoomValue } from "./types";
|
|
|
2
2
|
export declare const getDefaultAppState: () => Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
3
3
|
export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>) => {
|
|
4
4
|
viewBackgroundColor?: string | undefined;
|
|
5
|
-
theme?: import("@excalidraw/element/types").Theme | undefined;
|
|
5
|
+
theme?: import("@nous-excalidraw/element/types").Theme | undefined;
|
|
6
6
|
name?: string | null | undefined;
|
|
7
7
|
zoom?: Readonly<{
|
|
8
8
|
value: NormalizedZoomValue;
|
|
@@ -21,14 +21,14 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
21
21
|
selectedGroupIds?: {
|
|
22
22
|
[groupId: string]: boolean;
|
|
23
23
|
} | undefined;
|
|
24
|
-
selectedLinearElement?: import("@excalidraw/element").LinearElementEditor | null | undefined;
|
|
24
|
+
selectedLinearElement?: import("@nous-excalidraw/element").LinearElementEditor | null | undefined;
|
|
25
25
|
isBindingEnabled?: boolean | undefined;
|
|
26
26
|
isMidpointSnappingEnabled?: boolean | undefined;
|
|
27
27
|
zenModeEnabled?: boolean | undefined;
|
|
28
28
|
shouldCacheIgnoreZoom?: boolean | undefined;
|
|
29
29
|
exportScale?: number | undefined;
|
|
30
30
|
currentItemArrowType?: "round" | "sharp" | "elbow" | undefined;
|
|
31
|
-
bindMode?: import("@excalidraw/element/types").BindMode | undefined;
|
|
31
|
+
bindMode?: import("@nous-excalidraw/element/types").BindMode | undefined;
|
|
32
32
|
gridSize?: number | undefined;
|
|
33
33
|
showWelcomeScreen?: boolean | undefined;
|
|
34
34
|
boxSelectionMode?: import("./types").BoxSelectionMode | undefined;
|
|
@@ -44,17 +44,17 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
44
44
|
exportWithDarkMode?: boolean | undefined;
|
|
45
45
|
currentItemStrokeColor?: string | undefined;
|
|
46
46
|
currentItemBackgroundColor?: string | undefined;
|
|
47
|
-
currentItemFillStyle?: import("@excalidraw/element/types").FillStyle | undefined;
|
|
47
|
+
currentItemFillStyle?: import("@nous-excalidraw/element/types").FillStyle | undefined;
|
|
48
48
|
currentItemStrokeWidth?: number | undefined;
|
|
49
|
-
currentItemStrokeStyle?: import("@excalidraw/element/types").StrokeStyle | undefined;
|
|
49
|
+
currentItemStrokeStyle?: import("@nous-excalidraw/element/types").StrokeStyle | undefined;
|
|
50
50
|
currentItemRoughness?: number | undefined;
|
|
51
51
|
currentItemOpacity?: number | undefined;
|
|
52
52
|
currentItemFontFamily?: number | undefined;
|
|
53
53
|
currentItemFontSize?: number | undefined;
|
|
54
54
|
currentItemTextAlign?: string | undefined;
|
|
55
|
-
currentItemStartArrowhead?: import("@excalidraw/element/types").Arrowhead | null | undefined;
|
|
56
|
-
currentItemEndArrowhead?: import("@excalidraw/element/types").Arrowhead | null | undefined;
|
|
57
|
-
currentItemRoundness?: import("@excalidraw/element/types").StrokeRoundness | undefined;
|
|
55
|
+
currentItemStartArrowhead?: import("@nous-excalidraw/element/types").Arrowhead | null | undefined;
|
|
56
|
+
currentItemEndArrowhead?: import("@nous-excalidraw/element/types").Arrowhead | null | undefined;
|
|
57
|
+
currentItemRoundness?: import("@nous-excalidraw/element/types").StrokeRoundness | undefined;
|
|
58
58
|
cursorButton?: "up" | "down" | undefined;
|
|
59
59
|
scrolledOutside?: boolean | undefined;
|
|
60
60
|
openMenu?: "canvas" | null | undefined;
|
|
@@ -63,7 +63,7 @@ export declare const clearAppStateForLocalStorage: (appState: Partial<AppState>)
|
|
|
63
63
|
tab?: import("./types").SidebarTabName;
|
|
64
64
|
} | null | undefined;
|
|
65
65
|
defaultSidebarDockedPreference?: boolean | undefined;
|
|
66
|
-
lastPointerDownWith?: import("@excalidraw/element/types").PointerType | undefined;
|
|
66
|
+
lastPointerDownWith?: import("@nous-excalidraw/element/types").PointerType | undefined;
|
|
67
67
|
previousSelectedElementIds?: {
|
|
68
68
|
[id: string]: true;
|
|
69
69
|
} | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Radians } from "@excalidraw/math";
|
|
1
|
+
import type { Radians } from "@nous-excalidraw/math";
|
|
2
2
|
export declare const CARTESIAN_BASE_SLOT_WIDTH = 44;
|
|
3
3
|
export declare const CARTESIAN_BAR_SLOT_EXTRA_PER_SERIES = 22;
|
|
4
4
|
export declare const CARTESIAN_BAR_SLOT_EXTRA_MAX = 66;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getFontString } from "@excalidraw/common";
|
|
2
|
-
import type { ChartType } from "@excalidraw/element/types";
|
|
3
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";
|
|
1
|
+
import { getFontString } from "@nous-excalidraw/common";
|
|
2
|
+
import type { ChartType } from "@nous-excalidraw/element/types";
|
|
3
|
+
import type { NonDeletedExcalidrawElement } from "@nous-excalidraw/element/types";
|
|
4
4
|
import { type CartesianChartLayout, type CartesianChartType } from "./charts.constants";
|
|
5
5
|
import type { ChartElements, Spreadsheet, SpreadsheetSeries } from "./charts.types";
|
|
6
6
|
export declare const isSpreadsheetValidForChartType: (spreadsheet: Spreadsheet | null, chartType: ChartType) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { NonDeletedExcalidrawElement } from "@nous-excalidraw/element/types";
|
|
2
2
|
export type ChartElements = readonly NonDeletedExcalidrawElement[];
|
|
3
3
|
export interface Spreadsheet {
|
|
4
4
|
title: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartType } from "@excalidraw/element/types";
|
|
1
|
+
import type { ChartType } from "@nous-excalidraw/element/types";
|
|
2
2
|
import { tryParseCells, tryParseNumber, tryParseSpreadsheet } from "./charts.parse";
|
|
3
3
|
import type { ChartElements, Spreadsheet } from "./charts.types";
|
|
4
4
|
export { type ParseSpreadsheetResult, type Spreadsheet, type SpreadsheetSeries, type ChartElements, } from "./charts.types";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ALLOWED_PASTE_MIME_TYPES } from "@excalidraw/common";
|
|
2
|
-
import type { ValueOf } from "@excalidraw/common/utility-types";
|
|
3
|
-
import type { IMAGE_MIME_TYPES, STRING_MIME_TYPES } from "@excalidraw/common";
|
|
4
|
-
import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
|
|
1
|
+
import { ALLOWED_PASTE_MIME_TYPES } from "@nous-excalidraw/common";
|
|
2
|
+
import type { ValueOf } from "@nous-excalidraw/common/utility-types";
|
|
3
|
+
import type { IMAGE_MIME_TYPES, STRING_MIME_TYPES } from "@nous-excalidraw/common";
|
|
4
|
+
import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@nous-excalidraw/element/types";
|
|
5
5
|
import type { BinaryFiles } from "./types";
|
|
6
6
|
export type PastedMixedContent = {
|
|
7
7
|
type: "text" | "imageUrl";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedSceneElementsMap } from "@nous-excalidraw/element/types";
|
|
2
2
|
import "./Actions.scss";
|
|
3
3
|
import type { AppClassProperties, AppProps, UIAppState, Zoom, AppState } from "../types";
|
|
4
4
|
import type { ActionManager } from "../actions/manager";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AppEventBus, type EXPORT_IMAGE_TYPES, Emitter, type EditorInterface, type StylesPanelMode } from "@excalidraw/common";
|
|
3
|
-
import { LinearElementEditor, FlowChartCreator, Scene, Store, type ElementUpdate, StoreDelta, type ApplyToOptions } from "@excalidraw/element";
|
|
4
|
-
import type { ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, ExcalidrawFrameLikeElement, ExcalidrawIframeElement, ExcalidrawEmbeddableElement, Ordered, SceneElementsMap } from "@excalidraw/element/types";
|
|
5
|
-
import type { Mutable } from "@excalidraw/common/utility-types";
|
|
2
|
+
import { AppEventBus, type EXPORT_IMAGE_TYPES, Emitter, type EditorInterface, type StylesPanelMode } from "@nous-excalidraw/common";
|
|
3
|
+
import { LinearElementEditor, FlowChartCreator, Scene, Store, type ElementUpdate, StoreDelta, type ApplyToOptions } from "@nous-excalidraw/element";
|
|
4
|
+
import type { ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, ExcalidrawFrameLikeElement, ExcalidrawIframeElement, ExcalidrawEmbeddableElement, Ordered, SceneElementsMap } from "@nous-excalidraw/element/types";
|
|
5
|
+
import type { Mutable } from "@nous-excalidraw/common/utility-types";
|
|
6
6
|
import { ActionManager } from "../actions/manager";
|
|
7
7
|
import { AnimationFrameHandler } from "../animation-frame-handler";
|
|
8
8
|
import { History } from "../history";
|
|
@@ -155,7 +155,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
155
155
|
};
|
|
156
156
|
originalElements: Map<string, NonDeleted<ExcalidrawElement>>;
|
|
157
157
|
resize: {
|
|
158
|
-
handleType: import("@excalidraw/element").MaybeTransformHandleType;
|
|
158
|
+
handleType: import("@nous-excalidraw/element").MaybeTransformHandleType;
|
|
159
159
|
isResizing: boolean;
|
|
160
160
|
offset: {
|
|
161
161
|
x: number;
|
|
@@ -188,7 +188,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
188
188
|
blockDragging: boolean;
|
|
189
189
|
};
|
|
190
190
|
eventListeners: {
|
|
191
|
-
onMove: null | ReturnType<typeof import("@excalidraw/common").throttleRAF>;
|
|
191
|
+
onMove: null | ReturnType<typeof import("@nous-excalidraw/common").throttleRAF>;
|
|
192
192
|
onUp: null | ((event: PointerEvent) => void);
|
|
193
193
|
onKeyDown: null | ((event: KeyboardEvent) => void);
|
|
194
194
|
onKeyUp: null | ((event: KeyboardEvent) => void);
|
|
@@ -217,7 +217,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
217
217
|
};
|
|
218
218
|
originalElements: Map<string, NonDeleted<ExcalidrawElement>>;
|
|
219
219
|
resize: {
|
|
220
|
-
handleType: import("@excalidraw/element").MaybeTransformHandleType;
|
|
220
|
+
handleType: import("@nous-excalidraw/element").MaybeTransformHandleType;
|
|
221
221
|
isResizing: boolean;
|
|
222
222
|
offset: {
|
|
223
223
|
x: number;
|
|
@@ -250,7 +250,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
250
250
|
blockDragging: boolean;
|
|
251
251
|
};
|
|
252
252
|
eventListeners: {
|
|
253
|
-
onMove: null | ReturnType<typeof import("@excalidraw/common").throttleRAF>;
|
|
253
|
+
onMove: null | ReturnType<typeof import("@nous-excalidraw/common").throttleRAF>;
|
|
254
254
|
onUp: null | ((event: PointerEvent) => void);
|
|
255
255
|
onKeyDown: null | ((event: KeyboardEvent) => void);
|
|
256
256
|
onKeyUp: null | ((event: KeyboardEvent) => void);
|
|
@@ -297,7 +297,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
297
297
|
private toggleOverscrollBehavior;
|
|
298
298
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
299
299
|
focusContainer: AppClassProperties["focusContainer"];
|
|
300
|
-
getSceneElementsIncludingDeleted: () => readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
300
|
+
getSceneElementsIncludingDeleted: () => readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[];
|
|
301
301
|
getSceneElementsMapIncludingDeleted: () => SceneElementsMap;
|
|
302
302
|
getSceneElements: () => readonly Ordered<NonDeletedExcalidrawElement>[];
|
|
303
303
|
onInsertElements: (elements: readonly ExcalidrawElement[]) => void;
|
|
@@ -429,7 +429,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
429
429
|
* - `CaptureUpdateAction.NEVER`: Updates never make it to undo/redo stack. Use for remote updates or scene initialization.
|
|
430
430
|
* - `CaptureUpdateAction.EVENTUALLY`: Updates will be eventually be captured as part of a future increment.
|
|
431
431
|
*
|
|
432
|
-
* Check [API docs](https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/excalidraw-api#captureUpdate) for more details.
|
|
432
|
+
* Check [API docs](https://docs.excalidraw.com/docs/@nous-excalidraw/excalidraw/api/props/excalidraw-api#captureUpdate) for more details.
|
|
433
433
|
*
|
|
434
434
|
* @default CaptureUpdateAction.EVENTUALLY
|
|
435
435
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ColorTuple, ColorPaletteCustom } from "@excalidraw/common";
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { ColorTuple, ColorPaletteCustom } from "@nous-excalidraw/common";
|
|
2
|
+
import type { ExcalidrawElement } from "@nous-excalidraw/element/types";
|
|
3
3
|
import "./ColorPicker.scss";
|
|
4
4
|
import type { ColorPickerType } from "./colorPickerUtils";
|
|
5
5
|
import type { AppState } from "../../types";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
3
|
-
import type { ColorPaletteCustom } from "@excalidraw/common";
|
|
2
|
+
import type { ExcalidrawElement } from "@nous-excalidraw/element/types";
|
|
3
|
+
import type { ColorPaletteCustom } from "@nous-excalidraw/common";
|
|
4
4
|
import type { ColorPickerType } from "./colorPickerUtils";
|
|
5
5
|
interface PickerProps {
|
|
6
6
|
color: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type { ColorPickerColor, ColorPaletteCustom } from "@excalidraw/common";
|
|
1
|
+
import type { ExcalidrawElement } from "@nous-excalidraw/element/types";
|
|
2
|
+
import type { ColorPickerColor, ColorPaletteCustom } from "@nous-excalidraw/common";
|
|
3
3
|
export declare const getColorNameAndShadeFromColor: ({ palette, color, }: {
|
|
4
4
|
palette: ColorPaletteCustom;
|
|
5
5
|
color: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColorPaletteCustom } from "@excalidraw/common";
|
|
1
|
+
import type { ColorPaletteCustom } from "@nous-excalidraw/common";
|
|
2
2
|
import type { ActiveColorPickerSectionAtomType } from "./colorPickerUtils";
|
|
3
3
|
interface ColorPickerKeyNavHandlerProps {
|
|
4
4
|
event: React.KeyboardEvent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ConvertibleTypes, ExcalidrawElement, ExcalidrawTextContainer, ExcalidrawTextElementWithContainer } from "@excalidraw/element/types";
|
|
2
|
-
import type { Scene } from "@excalidraw/element";
|
|
1
|
+
import type { ConvertibleTypes, ExcalidrawElement, ExcalidrawTextContainer, ExcalidrawTextElementWithContainer } from "@nous-excalidraw/element/types";
|
|
2
|
+
import type { Scene } from "@nous-excalidraw/element";
|
|
3
3
|
import "./ConvertElementTypePopup.scss";
|
|
4
4
|
import type App from "./App";
|
|
5
5
|
export declare const convertElementTypePopupAtom: import("jotai/vanilla/atom").PrimitiveAtom<{
|