@nous-excalidraw/math 0.18.0-cy.1 → 0.18.1
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
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
1
|
+
import type { ExcalidrawLinearElement } from "@nous-excalidraw/element/types";
|
|
2
2
|
export declare const actionToggleLinearEditor: {
|
|
3
3
|
name: "toggleLinearEditor";
|
|
4
4
|
category: string;
|
|
5
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
5
|
+
label: (elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
6
6
|
keywords: string[];
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
|
|
10
|
+
predicate: (elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
11
|
+
perform(elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): {
|
|
12
12
|
appState: {
|
|
13
13
|
selectedLinearElement: {
|
|
14
14
|
isEditing: boolean;
|
|
15
|
-
elementId: import("@excalidraw/element/types").ExcalidrawElement["id"] & {
|
|
15
|
+
elementId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"] & {
|
|
16
16
|
_brand: "excalidrawLinearElementId";
|
|
17
17
|
};
|
|
18
18
|
selectedPointsIndices: readonly number[] | null;
|
|
19
19
|
initialState: Readonly<{
|
|
20
20
|
prevSelectedPointsIndices: readonly number[] | null;
|
|
21
21
|
lastClickedPoint: number;
|
|
22
|
-
origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
22
|
+
origin: Readonly<import("@nous-excalidraw/math").GlobalPoint> | null;
|
|
23
23
|
segmentMidpoint: {
|
|
24
|
-
value: import("@excalidraw/math").GlobalPoint | null;
|
|
24
|
+
value: import("@nous-excalidraw/math").GlobalPoint | null;
|
|
25
25
|
index: number | null;
|
|
26
26
|
added: boolean;
|
|
27
27
|
};
|
|
28
28
|
arrowStartIsInside: boolean;
|
|
29
|
-
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
29
|
+
altFocusPoint: Readonly<import("@nous-excalidraw/math").GlobalPoint> | null;
|
|
30
30
|
}>;
|
|
31
31
|
isDragging: boolean;
|
|
32
|
-
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
33
|
-
lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
32
|
+
lastUncommittedPoint: import("@nous-excalidraw/math").LocalPoint | null;
|
|
33
|
+
lastCommittedPoint: import("@nous-excalidraw/math").LocalPoint | null;
|
|
34
34
|
pointerOffset: Readonly<{
|
|
35
35
|
x: number;
|
|
36
36
|
y: number;
|
|
37
37
|
}>;
|
|
38
38
|
hoverPointIndex: number;
|
|
39
|
-
segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
|
|
39
|
+
segmentMidPointHoveredCoords: import("@nous-excalidraw/math").GlobalPoint | null;
|
|
40
40
|
hoveredFocusPointBinding: "start" | "end" | null;
|
|
41
41
|
draggedFocusPointBinding: "start" | "end" | null;
|
|
42
42
|
elbowed: boolean;
|
|
@@ -52,23 +52,23 @@ export declare const actionToggleLinearEditor: {
|
|
|
52
52
|
isLoading: boolean;
|
|
53
53
|
errorMessage: React.ReactNode;
|
|
54
54
|
activeEmbeddable: {
|
|
55
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
55
|
+
element: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
56
56
|
state: "hover" | "active";
|
|
57
57
|
} | null;
|
|
58
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
59
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
61
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
58
|
+
newElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
59
|
+
resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
60
|
+
multiElement: import("@nous-excalidraw/element/types").NonDeleted<ExcalidrawLinearElement> | null;
|
|
61
|
+
selectionElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
62
62
|
isBindingEnabled: boolean;
|
|
63
63
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
64
64
|
bindingPreference: "enabled" | "disabled";
|
|
65
65
|
isMidpointSnappingEnabled: boolean;
|
|
66
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
66
|
+
startBoundElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
67
67
|
suggestedBinding: {
|
|
68
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
69
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
68
|
+
element: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement>;
|
|
69
|
+
midPoint?: import("@nous-excalidraw/math").GlobalPoint;
|
|
70
70
|
} | null;
|
|
71
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
71
|
+
frameToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
72
72
|
frameRendering: {
|
|
73
73
|
enabled: boolean;
|
|
74
74
|
name: boolean;
|
|
@@ -76,8 +76,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
76
76
|
clip: boolean;
|
|
77
77
|
};
|
|
78
78
|
editingFrame: string | null;
|
|
79
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
80
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
79
|
+
elementsToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawElement>[] | null;
|
|
80
|
+
editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
|
|
81
81
|
activeTool: {
|
|
82
82
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
83
83
|
locked: boolean;
|
|
@@ -95,18 +95,18 @@ export declare const actionToggleLinearEditor: {
|
|
|
95
95
|
exportScale: number;
|
|
96
96
|
currentItemStrokeColor: string;
|
|
97
97
|
currentItemBackgroundColor: string;
|
|
98
|
-
currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
98
|
+
currentItemFillStyle: import("@nous-excalidraw/element/types").ExcalidrawElement["fillStyle"];
|
|
99
99
|
currentItemStrokeWidth: number;
|
|
100
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
100
|
+
currentItemStrokeStyle: import("@nous-excalidraw/element/types").ExcalidrawElement["strokeStyle"];
|
|
101
101
|
currentItemRoughness: number;
|
|
102
102
|
currentItemOpacity: number;
|
|
103
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
103
|
+
currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
|
|
104
104
|
currentItemFontSize: number;
|
|
105
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
106
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
107
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
108
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
109
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
105
|
+
currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
|
|
106
|
+
currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
|
|
107
|
+
currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
|
|
108
|
+
currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
|
|
109
|
+
currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
|
|
110
110
|
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
111
111
|
viewBackgroundColor: string;
|
|
112
112
|
scrollX: number;
|
|
@@ -134,14 +134,14 @@ export declare const actionToggleLinearEditor: {
|
|
|
134
134
|
name: "settings";
|
|
135
135
|
} | {
|
|
136
136
|
name: "elementLinkSelector";
|
|
137
|
-
sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
|
|
137
|
+
sourceElementId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"];
|
|
138
138
|
} | {
|
|
139
139
|
name: "charts";
|
|
140
140
|
data: import("../charts").Spreadsheet;
|
|
141
141
|
rawText: string;
|
|
142
142
|
};
|
|
143
143
|
defaultSidebarDockedPreference: boolean;
|
|
144
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
144
|
+
lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
|
|
145
145
|
selectedElementIds: Readonly<{
|
|
146
146
|
[id: string]: true;
|
|
147
147
|
}>;
|
|
@@ -159,7 +159,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
159
159
|
duration?: number;
|
|
160
160
|
} | null;
|
|
161
161
|
zenModeEnabled: boolean;
|
|
162
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
162
|
+
theme: import("@nous-excalidraw/element/types").Theme;
|
|
163
163
|
gridSize: number;
|
|
164
164
|
gridStep: number;
|
|
165
165
|
gridModeEnabled: boolean;
|
|
@@ -167,7 +167,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
167
167
|
selectedGroupIds: {
|
|
168
168
|
[groupId: string]: boolean;
|
|
169
169
|
};
|
|
170
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
170
|
+
editingGroupId: import("@nous-excalidraw/element/types").GroupId | null;
|
|
171
171
|
width: number;
|
|
172
172
|
height: number;
|
|
173
173
|
offsetTop: number;
|
|
@@ -188,16 +188,16 @@ export declare const actionToggleLinearEditor: {
|
|
|
188
188
|
userToFollow: import("../types").UserToFollow | null;
|
|
189
189
|
followedBy: Set<import("../types").SocketId>;
|
|
190
190
|
isCropping: boolean;
|
|
191
|
-
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
191
|
+
croppingElementId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
192
192
|
searchMatches: Readonly<{
|
|
193
|
-
focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
193
|
+
focusedId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
194
194
|
matches: readonly import("../types").SearchMatch[];
|
|
195
195
|
}> | null;
|
|
196
196
|
activeLockedId: string | null;
|
|
197
197
|
lockedMultiSelections: {
|
|
198
198
|
[groupId: string]: true;
|
|
199
199
|
};
|
|
200
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
200
|
+
bindMode: import("@nous-excalidraw/element/types").BindMode;
|
|
201
201
|
};
|
|
202
202
|
captureUpdate: "IMMEDIATELY";
|
|
203
203
|
};
|
|
@@ -210,77 +210,77 @@ export declare const actionTogglePolygon: {
|
|
|
210
210
|
category: string;
|
|
211
211
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
212
212
|
keywords: string[];
|
|
213
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
213
|
+
label: (elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
214
214
|
trackEvent: {
|
|
215
215
|
category: "element";
|
|
216
216
|
};
|
|
217
|
-
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
218
|
-
perform(elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
|
|
217
|
+
predicate: (elements: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
218
|
+
perform(elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties): false | {
|
|
219
219
|
elements: ((Readonly<{
|
|
220
220
|
id: string;
|
|
221
221
|
x: number;
|
|
222
222
|
y: number;
|
|
223
223
|
strokeColor: string;
|
|
224
224
|
backgroundColor: string;
|
|
225
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
225
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
226
226
|
strokeWidth: number;
|
|
227
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
227
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
228
228
|
roundness: null | {
|
|
229
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
229
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
230
230
|
value?: number;
|
|
231
231
|
};
|
|
232
232
|
roughness: number;
|
|
233
233
|
opacity: number;
|
|
234
234
|
width: number;
|
|
235
235
|
height: number;
|
|
236
|
-
angle: import("@excalidraw/math").Radians;
|
|
236
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
237
237
|
seed: number;
|
|
238
238
|
version: number;
|
|
239
239
|
versionNonce: number;
|
|
240
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
240
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
241
241
|
isDeleted: boolean;
|
|
242
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
242
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
243
243
|
frameId: string | null;
|
|
244
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
244
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
245
245
|
updated: number;
|
|
246
246
|
link: string | null;
|
|
247
247
|
locked: boolean;
|
|
248
248
|
customData?: Record<string, any>;
|
|
249
249
|
}> & Readonly<{
|
|
250
250
|
type: "line" | "arrow";
|
|
251
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
252
|
-
startBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
253
|
-
endBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
254
|
-
startArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
255
|
-
endArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
251
|
+
points: readonly import("@nous-excalidraw/math").LocalPoint[];
|
|
252
|
+
startBinding: import("@nous-excalidraw/element/types").FixedPointBinding | null;
|
|
253
|
+
endBinding: import("@nous-excalidraw/element/types").FixedPointBinding | null;
|
|
254
|
+
startArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
|
|
255
|
+
endArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
|
|
256
256
|
}> & {
|
|
257
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
257
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
258
258
|
}) | (Readonly<{
|
|
259
259
|
id: string;
|
|
260
260
|
x: number;
|
|
261
261
|
y: number;
|
|
262
262
|
strokeColor: string;
|
|
263
263
|
backgroundColor: string;
|
|
264
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
264
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
265
265
|
strokeWidth: number;
|
|
266
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
266
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
267
267
|
roundness: null | {
|
|
268
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
268
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
269
269
|
value?: number;
|
|
270
270
|
};
|
|
271
271
|
roughness: number;
|
|
272
272
|
opacity: number;
|
|
273
273
|
width: number;
|
|
274
274
|
height: number;
|
|
275
|
-
angle: import("@excalidraw/math").Radians;
|
|
275
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
276
276
|
seed: number;
|
|
277
277
|
version: number;
|
|
278
278
|
versionNonce: number;
|
|
279
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
279
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
280
280
|
isDeleted: boolean;
|
|
281
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
281
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
282
282
|
frameId: string | null;
|
|
283
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
283
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
284
284
|
updated: number;
|
|
285
285
|
link: string | null;
|
|
286
286
|
locked: boolean;
|
|
@@ -288,33 +288,33 @@ export declare const actionTogglePolygon: {
|
|
|
288
288
|
}> & {
|
|
289
289
|
type: "selection";
|
|
290
290
|
} & {
|
|
291
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
291
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
292
292
|
}) | (Readonly<{
|
|
293
293
|
id: string;
|
|
294
294
|
x: number;
|
|
295
295
|
y: number;
|
|
296
296
|
strokeColor: string;
|
|
297
297
|
backgroundColor: string;
|
|
298
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
298
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
299
299
|
strokeWidth: number;
|
|
300
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
300
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
301
301
|
roundness: null | {
|
|
302
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
302
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
303
303
|
value?: number;
|
|
304
304
|
};
|
|
305
305
|
roughness: number;
|
|
306
306
|
opacity: number;
|
|
307
307
|
width: number;
|
|
308
308
|
height: number;
|
|
309
|
-
angle: import("@excalidraw/math").Radians;
|
|
309
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
310
310
|
seed: number;
|
|
311
311
|
version: number;
|
|
312
312
|
versionNonce: number;
|
|
313
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
313
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
314
314
|
isDeleted: boolean;
|
|
315
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
315
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
316
316
|
frameId: string | null;
|
|
317
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
317
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
318
318
|
updated: number;
|
|
319
319
|
link: string | null;
|
|
320
320
|
locked: boolean;
|
|
@@ -322,33 +322,33 @@ export declare const actionTogglePolygon: {
|
|
|
322
322
|
}> & {
|
|
323
323
|
type: "rectangle";
|
|
324
324
|
} & {
|
|
325
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
325
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
326
326
|
}) | (Readonly<{
|
|
327
327
|
id: string;
|
|
328
328
|
x: number;
|
|
329
329
|
y: number;
|
|
330
330
|
strokeColor: string;
|
|
331
331
|
backgroundColor: string;
|
|
332
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
332
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
333
333
|
strokeWidth: number;
|
|
334
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
334
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
335
335
|
roundness: null | {
|
|
336
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
336
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
337
337
|
value?: number;
|
|
338
338
|
};
|
|
339
339
|
roughness: number;
|
|
340
340
|
opacity: number;
|
|
341
341
|
width: number;
|
|
342
342
|
height: number;
|
|
343
|
-
angle: import("@excalidraw/math").Radians;
|
|
343
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
344
344
|
seed: number;
|
|
345
345
|
version: number;
|
|
346
346
|
versionNonce: number;
|
|
347
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
347
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
348
348
|
isDeleted: boolean;
|
|
349
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
349
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
350
350
|
frameId: string | null;
|
|
351
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
351
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
352
352
|
updated: number;
|
|
353
353
|
link: string | null;
|
|
354
354
|
locked: boolean;
|
|
@@ -356,33 +356,33 @@ export declare const actionTogglePolygon: {
|
|
|
356
356
|
}> & {
|
|
357
357
|
type: "diamond";
|
|
358
358
|
} & {
|
|
359
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
359
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
360
360
|
}) | (Readonly<{
|
|
361
361
|
id: string;
|
|
362
362
|
x: number;
|
|
363
363
|
y: number;
|
|
364
364
|
strokeColor: string;
|
|
365
365
|
backgroundColor: string;
|
|
366
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
366
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
367
367
|
strokeWidth: number;
|
|
368
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
368
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
369
369
|
roundness: null | {
|
|
370
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
370
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
371
371
|
value?: number;
|
|
372
372
|
};
|
|
373
373
|
roughness: number;
|
|
374
374
|
opacity: number;
|
|
375
375
|
width: number;
|
|
376
376
|
height: number;
|
|
377
|
-
angle: import("@excalidraw/math").Radians;
|
|
377
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
378
378
|
seed: number;
|
|
379
379
|
version: number;
|
|
380
380
|
versionNonce: number;
|
|
381
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
381
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
382
382
|
isDeleted: boolean;
|
|
383
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
383
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
384
384
|
frameId: string | null;
|
|
385
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
385
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
386
386
|
updated: number;
|
|
387
387
|
link: string | null;
|
|
388
388
|
locked: boolean;
|
|
@@ -390,33 +390,33 @@ export declare const actionTogglePolygon: {
|
|
|
390
390
|
}> & {
|
|
391
391
|
type: "ellipse";
|
|
392
392
|
} & {
|
|
393
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
393
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
394
394
|
}) | (Readonly<{
|
|
395
395
|
id: string;
|
|
396
396
|
x: number;
|
|
397
397
|
y: number;
|
|
398
398
|
strokeColor: string;
|
|
399
399
|
backgroundColor: string;
|
|
400
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
400
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
401
401
|
strokeWidth: number;
|
|
402
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
402
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
403
403
|
roundness: null | {
|
|
404
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
404
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
405
405
|
value?: number;
|
|
406
406
|
};
|
|
407
407
|
roughness: number;
|
|
408
408
|
opacity: number;
|
|
409
409
|
width: number;
|
|
410
410
|
height: number;
|
|
411
|
-
angle: import("@excalidraw/math").Radians;
|
|
411
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
412
412
|
seed: number;
|
|
413
413
|
version: number;
|
|
414
414
|
versionNonce: number;
|
|
415
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
415
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
416
416
|
isDeleted: boolean;
|
|
417
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
417
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
418
418
|
frameId: string | null;
|
|
419
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
419
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
420
420
|
updated: number;
|
|
421
421
|
link: string | null;
|
|
422
422
|
locked: boolean;
|
|
@@ -424,33 +424,33 @@ export declare const actionTogglePolygon: {
|
|
|
424
424
|
}> & Readonly<{
|
|
425
425
|
type: "embeddable";
|
|
426
426
|
}> & {
|
|
427
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
427
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
428
428
|
}) | (Readonly<{
|
|
429
429
|
id: string;
|
|
430
430
|
x: number;
|
|
431
431
|
y: number;
|
|
432
432
|
strokeColor: string;
|
|
433
433
|
backgroundColor: string;
|
|
434
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
434
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
435
435
|
strokeWidth: number;
|
|
436
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
436
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
437
437
|
roundness: null | {
|
|
438
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
438
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
439
439
|
value?: number;
|
|
440
440
|
};
|
|
441
441
|
roughness: number;
|
|
442
442
|
opacity: number;
|
|
443
443
|
width: number;
|
|
444
444
|
height: number;
|
|
445
|
-
angle: import("@excalidraw/math").Radians;
|
|
445
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
446
446
|
seed: number;
|
|
447
447
|
version: number;
|
|
448
448
|
versionNonce: number;
|
|
449
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
449
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
450
450
|
isDeleted: boolean;
|
|
451
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
451
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
452
452
|
frameId: string | null;
|
|
453
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
453
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
454
454
|
updated: number;
|
|
455
455
|
link: string | null;
|
|
456
456
|
locked: boolean;
|
|
@@ -458,74 +458,74 @@ export declare const actionTogglePolygon: {
|
|
|
458
458
|
}> & Readonly<{
|
|
459
459
|
type: "iframe";
|
|
460
460
|
customData?: {
|
|
461
|
-
generationData?: import("@excalidraw/element/types").MagicGenerationData;
|
|
461
|
+
generationData?: import("@nous-excalidraw/element/types").MagicGenerationData;
|
|
462
462
|
};
|
|
463
463
|
}> & {
|
|
464
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
464
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
465
465
|
}) | (Readonly<{
|
|
466
466
|
id: string;
|
|
467
467
|
x: number;
|
|
468
468
|
y: number;
|
|
469
469
|
strokeColor: string;
|
|
470
470
|
backgroundColor: string;
|
|
471
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
471
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
472
472
|
strokeWidth: number;
|
|
473
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
473
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
474
474
|
roundness: null | {
|
|
475
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
475
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
476
476
|
value?: number;
|
|
477
477
|
};
|
|
478
478
|
roughness: number;
|
|
479
479
|
opacity: number;
|
|
480
480
|
width: number;
|
|
481
481
|
height: number;
|
|
482
|
-
angle: import("@excalidraw/math").Radians;
|
|
482
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
483
483
|
seed: number;
|
|
484
484
|
version: number;
|
|
485
485
|
versionNonce: number;
|
|
486
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
486
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
487
487
|
isDeleted: boolean;
|
|
488
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
488
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
489
489
|
frameId: string | null;
|
|
490
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
490
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
491
491
|
updated: number;
|
|
492
492
|
link: string | null;
|
|
493
493
|
locked: boolean;
|
|
494
494
|
customData?: Record<string, any>;
|
|
495
495
|
}> & Readonly<{
|
|
496
496
|
type: "image";
|
|
497
|
-
fileId: import("@excalidraw/element/types").FileId | null;
|
|
497
|
+
fileId: import("@nous-excalidraw/element/types").FileId | null;
|
|
498
498
|
status: "pending" | "saved" | "error";
|
|
499
499
|
scale: [number, number];
|
|
500
|
-
crop: import("@excalidraw/element/types").ImageCrop | null;
|
|
500
|
+
crop: import("@nous-excalidraw/element/types").ImageCrop | null;
|
|
501
501
|
}> & {
|
|
502
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
502
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
503
503
|
}) | (Readonly<{
|
|
504
504
|
id: string;
|
|
505
505
|
x: number;
|
|
506
506
|
y: number;
|
|
507
507
|
strokeColor: string;
|
|
508
508
|
backgroundColor: string;
|
|
509
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
509
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
510
510
|
strokeWidth: number;
|
|
511
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
511
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
512
512
|
roundness: null | {
|
|
513
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
513
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
514
514
|
value?: number;
|
|
515
515
|
};
|
|
516
516
|
roughness: number;
|
|
517
517
|
opacity: number;
|
|
518
518
|
width: number;
|
|
519
519
|
height: number;
|
|
520
|
-
angle: import("@excalidraw/math").Radians;
|
|
520
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
521
521
|
seed: number;
|
|
522
522
|
version: number;
|
|
523
523
|
versionNonce: number;
|
|
524
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
524
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
525
525
|
isDeleted: boolean;
|
|
526
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
526
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
527
527
|
frameId: string | null;
|
|
528
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
528
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
529
529
|
updated: number;
|
|
530
530
|
link: string | null;
|
|
531
531
|
locked: boolean;
|
|
@@ -534,33 +534,33 @@ export declare const actionTogglePolygon: {
|
|
|
534
534
|
type: "frame";
|
|
535
535
|
name: string | null;
|
|
536
536
|
} & {
|
|
537
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
537
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
538
538
|
}) | (Readonly<{
|
|
539
539
|
id: string;
|
|
540
540
|
x: number;
|
|
541
541
|
y: number;
|
|
542
542
|
strokeColor: string;
|
|
543
543
|
backgroundColor: string;
|
|
544
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
544
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
545
545
|
strokeWidth: number;
|
|
546
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
546
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
547
547
|
roundness: null | {
|
|
548
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
548
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
549
549
|
value?: number;
|
|
550
550
|
};
|
|
551
551
|
roughness: number;
|
|
552
552
|
opacity: number;
|
|
553
553
|
width: number;
|
|
554
554
|
height: number;
|
|
555
|
-
angle: import("@excalidraw/math").Radians;
|
|
555
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
556
556
|
seed: number;
|
|
557
557
|
version: number;
|
|
558
558
|
versionNonce: number;
|
|
559
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
559
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
560
560
|
isDeleted: boolean;
|
|
561
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
561
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
562
562
|
frameId: string | null;
|
|
563
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
563
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
564
564
|
updated: number;
|
|
565
565
|
link: string | null;
|
|
566
566
|
locked: boolean;
|
|
@@ -569,33 +569,33 @@ export declare const actionTogglePolygon: {
|
|
|
569
569
|
type: "magicframe";
|
|
570
570
|
name: string | null;
|
|
571
571
|
} & {
|
|
572
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
572
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
573
573
|
}) | (Readonly<{
|
|
574
574
|
id: string;
|
|
575
575
|
x: number;
|
|
576
576
|
y: number;
|
|
577
577
|
strokeColor: string;
|
|
578
578
|
backgroundColor: string;
|
|
579
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
579
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
580
580
|
strokeWidth: number;
|
|
581
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
581
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
582
582
|
roundness: null | {
|
|
583
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
583
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
584
584
|
value?: number;
|
|
585
585
|
};
|
|
586
586
|
roughness: number;
|
|
587
587
|
opacity: number;
|
|
588
588
|
width: number;
|
|
589
589
|
height: number;
|
|
590
|
-
angle: import("@excalidraw/math").Radians;
|
|
590
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
591
591
|
seed: number;
|
|
592
592
|
version: number;
|
|
593
593
|
versionNonce: number;
|
|
594
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
594
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
595
595
|
isDeleted: boolean;
|
|
596
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
596
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
597
597
|
frameId: string | null;
|
|
598
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
598
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
599
599
|
updated: number;
|
|
600
600
|
link: string | null;
|
|
601
601
|
locked: boolean;
|
|
@@ -603,55 +603,55 @@ export declare const actionTogglePolygon: {
|
|
|
603
603
|
}> & Readonly<{
|
|
604
604
|
type: "text";
|
|
605
605
|
fontSize: number;
|
|
606
|
-
fontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
606
|
+
fontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
|
|
607
607
|
text: string;
|
|
608
|
-
textAlign: import("@excalidraw/element/types").TextAlign;
|
|
609
|
-
verticalAlign: import("@excalidraw/element/types").VerticalAlign;
|
|
610
|
-
containerId: import("@excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
608
|
+
textAlign: import("@nous-excalidraw/element/types").TextAlign;
|
|
609
|
+
verticalAlign: import("@nous-excalidraw/element/types").VerticalAlign;
|
|
610
|
+
containerId: import("@nous-excalidraw/element/types").ExcalidrawGenericElement["id"] | null;
|
|
611
611
|
originalText: string;
|
|
612
612
|
autoResize: boolean;
|
|
613
613
|
lineHeight: number & {
|
|
614
614
|
_brand: "unitlessLineHeight";
|
|
615
615
|
};
|
|
616
616
|
}> & {
|
|
617
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
617
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
618
618
|
}) | (Readonly<{
|
|
619
619
|
id: string;
|
|
620
620
|
x: number;
|
|
621
621
|
y: number;
|
|
622
622
|
strokeColor: string;
|
|
623
623
|
backgroundColor: string;
|
|
624
|
-
fillStyle: import("@excalidraw/element/types").FillStyle;
|
|
624
|
+
fillStyle: import("@nous-excalidraw/element/types").FillStyle;
|
|
625
625
|
strokeWidth: number;
|
|
626
|
-
strokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
626
|
+
strokeStyle: import("@nous-excalidraw/element/types").StrokeStyle;
|
|
627
627
|
roundness: null | {
|
|
628
|
-
type: import("@excalidraw/element/types").RoundnessType;
|
|
628
|
+
type: import("@nous-excalidraw/element/types").RoundnessType;
|
|
629
629
|
value?: number;
|
|
630
630
|
};
|
|
631
631
|
roughness: number;
|
|
632
632
|
opacity: number;
|
|
633
633
|
width: number;
|
|
634
634
|
height: number;
|
|
635
|
-
angle: import("@excalidraw/math").Radians;
|
|
635
|
+
angle: import("@nous-excalidraw/math").Radians;
|
|
636
636
|
seed: number;
|
|
637
637
|
version: number;
|
|
638
638
|
versionNonce: number;
|
|
639
|
-
index: import("@excalidraw/element/types").FractionalIndex | null;
|
|
639
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex | null;
|
|
640
640
|
isDeleted: boolean;
|
|
641
|
-
groupIds: readonly import("@excalidraw/element/types").GroupId[];
|
|
641
|
+
groupIds: readonly import("@nous-excalidraw/element/types").GroupId[];
|
|
642
642
|
frameId: string | null;
|
|
643
|
-
boundElements: readonly import("@excalidraw/element/types").BoundElement[] | null;
|
|
643
|
+
boundElements: readonly import("@nous-excalidraw/element/types").BoundElement[] | null;
|
|
644
644
|
updated: number;
|
|
645
645
|
link: string | null;
|
|
646
646
|
locked: boolean;
|
|
647
647
|
customData?: Record<string, any>;
|
|
648
648
|
}> & Readonly<{
|
|
649
649
|
type: "freedraw";
|
|
650
|
-
points: readonly import("@excalidraw/math").LocalPoint[];
|
|
650
|
+
points: readonly import("@nous-excalidraw/math").LocalPoint[];
|
|
651
651
|
pressures: readonly number[];
|
|
652
652
|
simulatePressure: boolean;
|
|
653
653
|
}> & {
|
|
654
|
-
index: import("@excalidraw/element/types").FractionalIndex;
|
|
654
|
+
index: import("@nous-excalidraw/element/types").FractionalIndex;
|
|
655
655
|
}))[];
|
|
656
656
|
appState: Readonly<import("../types").AppState>;
|
|
657
657
|
captureUpdate: "IMMEDIATELY";
|