@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.
Files changed (177) hide show
  1. package/README.md +4 -4
  2. package/dist/dev/index.js +1 -1
  3. package/dist/dev/index.js.map +1 -1
  4. package/dist/prod/index.js +1 -1
  5. package/dist/types/common/src/appEventBus.d.ts +1 -1
  6. package/dist/types/common/src/constants.d.ts +2 -4
  7. package/dist/types/common/src/emitter.d.ts +1 -1
  8. package/dist/types/common/src/font-metadata.d.ts +1 -1
  9. package/dist/types/common/src/points.d.ts +2 -2
  10. package/dist/types/common/src/utils.d.ts +3 -3
  11. package/dist/types/element/src/Scene.d.ts +4 -4
  12. package/dist/types/element/src/align.d.ts +1 -1
  13. package/dist/types/element/src/arrows/focus.d.ts +2 -2
  14. package/dist/types/element/src/arrows/helpers.d.ts +1 -1
  15. package/dist/types/element/src/binding.d.ts +4 -4
  16. package/dist/types/element/src/bounds.d.ts +3 -3
  17. package/dist/types/element/src/collision.d.ts +2 -2
  18. package/dist/types/element/src/comparisons.d.ts +1 -1
  19. package/dist/types/element/src/delta.d.ts +3 -3
  20. package/dist/types/element/src/distance.d.ts +1 -1
  21. package/dist/types/element/src/distribute.d.ts +1 -1
  22. package/dist/types/element/src/dragElements.d.ts +2 -2
  23. package/dist/types/element/src/duplicate.d.ts +2 -2
  24. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  25. package/dist/types/element/src/elementLink.d.ts +1 -1
  26. package/dist/types/element/src/embeddable.d.ts +2 -2
  27. package/dist/types/element/src/flowchart.d.ts +1 -1
  28. package/dist/types/element/src/frame.d.ts +2 -2
  29. package/dist/types/element/src/groups.d.ts +2 -2
  30. package/dist/types/element/src/heading.d.ts +2 -2
  31. package/dist/types/element/src/image.d.ts +2 -2
  32. package/dist/types/element/src/linearElementEditor.d.ts +4 -4
  33. package/dist/types/element/src/mutateElement.d.ts +1 -1
  34. package/dist/types/element/src/newElement.d.ts +1 -1
  35. package/dist/types/element/src/renderElement.d.ts +4 -4
  36. package/dist/types/element/src/resizeElements.d.ts +2 -2
  37. package/dist/types/element/src/resizeTest.d.ts +4 -4
  38. package/dist/types/element/src/selection.d.ts +1 -1
  39. package/dist/types/element/src/shape.d.ts +5 -5
  40. package/dist/types/element/src/showSelectedShapeActions.d.ts +1 -1
  41. package/dist/types/element/src/sizeHelpers.d.ts +1 -1
  42. package/dist/types/element/src/store.d.ts +4 -4
  43. package/dist/types/element/src/textElement.d.ts +3 -3
  44. package/dist/types/element/src/transform.d.ts +1 -1
  45. package/dist/types/element/src/transformHandles.d.ts +4 -4
  46. package/dist/types/element/src/typeChecks.d.ts +2 -2
  47. package/dist/types/element/src/types.d.ts +3 -3
  48. package/dist/types/element/src/utils.d.ts +3 -3
  49. package/dist/types/element/src/zindex.d.ts +2 -2
  50. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +82 -82
  51. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  52. package/dist/types/excalidraw/actions/actionBoundText.d.ts +48 -48
  53. package/dist/types/excalidraw/actions/actionCanvas.d.ts +275 -275
  54. package/dist/types/excalidraw/actions/actionClipboard.d.ts +63 -63
  55. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +28 -28
  56. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +69 -69
  57. package/dist/types/excalidraw/actions/actionDeselect.d.ts +24 -24
  58. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  59. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  60. package/dist/types/excalidraw/actions/actionElementLink.d.ts +32 -32
  61. package/dist/types/excalidraw/actions/actionElementLock.d.ts +49 -49
  62. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +29 -29
  63. package/dist/types/excalidraw/actions/actionExport.d.ts +48 -48
  64. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
  65. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  66. package/dist/types/excalidraw/actions/actionFrame.d.ts +210 -210
  67. package/dist/types/excalidraw/actions/actionGroup.d.ts +41 -41
  68. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +149 -149
  69. package/dist/types/excalidraw/actions/actionLink.d.ts +31 -31
  70. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -27
  71. package/dist/types/excalidraw/actions/actionNavigate.d.ts +2 -2
  72. package/dist/types/excalidraw/actions/actionProperties.d.ts +37 -37
  73. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +23 -23
  74. package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -31
  75. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  76. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +28 -28
  77. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -29
  78. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +28 -28
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -29
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +28 -28
  81. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  82. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +28 -28
  83. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +29 -29
  84. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +29 -29
  85. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  86. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  87. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  88. package/dist/types/excalidraw/actions/types.d.ts +2 -2
  89. package/dist/types/excalidraw/appState.d.ts +9 -9
  90. package/dist/types/excalidraw/charts/charts.constants.d.ts +1 -1
  91. package/dist/types/excalidraw/charts/charts.helpers.d.ts +3 -3
  92. package/dist/types/excalidraw/charts/charts.types.d.ts +1 -1
  93. package/dist/types/excalidraw/charts/index.d.ts +1 -1
  94. package/dist/types/excalidraw/clipboard.d.ts +4 -4
  95. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  96. package/dist/types/excalidraw/components/App.d.ts +10 -10
  97. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
  98. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  99. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  100. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  101. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
  102. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  103. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  104. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  105. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
  106. package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +1 -1
  107. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
  108. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  109. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  110. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
  111. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  112. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  113. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  114. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
  115. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
  116. package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
  117. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  118. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  119. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  120. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  121. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  122. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  123. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  124. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  125. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  126. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  127. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  128. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  129. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  130. package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
  131. package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -2
  132. package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +1 -1
  133. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  134. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +1 -1
  135. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +2 -2
  136. package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
  137. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -3
  138. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
  139. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  140. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  141. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
  142. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
  143. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  144. package/dist/types/excalidraw/components/icons.d.ts +1 -1
  145. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  146. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +1 -1
  147. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  148. package/dist/types/excalidraw/data/blob.d.ts +49 -49
  149. package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
  150. package/dist/types/excalidraw/data/index.d.ts +1 -1
  151. package/dist/types/excalidraw/data/json.d.ts +24 -24
  152. package/dist/types/excalidraw/data/library.d.ts +2 -2
  153. package/dist/types/excalidraw/data/resave.d.ts +2 -2
  154. package/dist/types/excalidraw/data/restore.d.ts +2 -2
  155. package/dist/types/excalidraw/data/types.d.ts +2 -2
  156. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -3
  157. package/dist/types/excalidraw/history.d.ts +4 -4
  158. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  159. package/dist/types/excalidraw/i18n.d.ts +1 -1
  160. package/dist/types/excalidraw/lasso/utils.d.ts +2 -2
  161. package/dist/types/excalidraw/renderer/staticScene.d.ts +1 -1
  162. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
  163. package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
  164. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  165. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  166. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  167. package/dist/types/excalidraw/scene/types.d.ts +3 -3
  168. package/dist/types/excalidraw/snapping.d.ts +5 -5
  169. package/dist/types/excalidraw/textAutoResizeHandle.d.ts +4 -4
  170. package/dist/types/excalidraw/types.d.ts +7 -7
  171. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +1 -1
  172. package/dist/types/utils/src/bbox.d.ts +2 -2
  173. package/dist/types/utils/src/export.d.ts +3 -3
  174. package/dist/types/utils/src/index.d.ts +1 -1
  175. package/dist/types/utils/src/shape.d.ts +4 -4
  176. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  177. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement } from "@nous-excalidraw/element/types";
2
2
  import type { AppClassProperties, AppState } from "../types";
3
3
  export declare const actionDeleteSelected: {
4
4
  name: "deleteSelectedElements";
@@ -8,8 +8,8 @@ export declare const actionDeleteSelected: {
8
8
  category: "element";
9
9
  action: string;
10
10
  };
11
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
12
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
11
+ perform: (elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: unknown, app: AppClassProperties) => false | {
12
+ elements: import("@nous-excalidraw/element/types").OrderedExcalidrawElement[];
13
13
  appState: {
14
14
  selectedLinearElement: null;
15
15
  contextMenu: {
@@ -21,23 +21,23 @@ export declare const actionDeleteSelected: {
21
21
  isLoading: boolean;
22
22
  errorMessage: React.ReactNode;
23
23
  activeEmbeddable: {
24
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
24
+ element: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement;
25
25
  state: "hover" | "active";
26
26
  } | null;
27
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
30
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
+ newElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
28
+ resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
29
+ multiElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawLinearElement> | null;
30
+ selectionElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
31
  isBindingEnabled: boolean;
32
32
  boxSelectionMode: import("../types").BoxSelectionMode;
33
33
  bindingPreference: "enabled" | "disabled";
34
34
  isMidpointSnappingEnabled: boolean;
35
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
35
+ startBoundElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
36
36
  suggestedBinding: {
37
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
38
- midPoint?: import("@excalidraw/math").GlobalPoint;
37
+ element: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement>;
38
+ midPoint?: import("@nous-excalidraw/math").GlobalPoint;
39
39
  } | null;
40
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
40
+ frameToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
41
41
  frameRendering: {
42
42
  enabled: boolean;
43
43
  name: boolean;
@@ -45,8 +45,8 @@ export declare const actionDeleteSelected: {
45
45
  clip: boolean;
46
46
  };
47
47
  editingFrame: string | null;
48
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
49
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
48
+ elementsToHighlight: import("@nous-excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
49
+ editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
50
50
  activeTool: {
51
51
  lastActiveTool: import("../types").ActiveTool | null;
52
52
  locked: boolean;
@@ -69,13 +69,13 @@ export declare const actionDeleteSelected: {
69
69
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
70
70
  currentItemRoughness: number;
71
71
  currentItemOpacity: number;
72
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
72
+ currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
73
73
  currentItemFontSize: number;
74
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
75
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
76
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
77
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
78
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
74
+ currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
75
+ currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
76
+ currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
77
+ currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
78
+ currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
79
79
  currentItemArrowType: "sharp" | "round" | "elbow";
80
80
  viewBackgroundColor: string;
81
81
  scrollX: number;
@@ -110,7 +110,7 @@ export declare const actionDeleteSelected: {
110
110
  rawText: string;
111
111
  };
112
112
  defaultSidebarDockedPreference: boolean;
113
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
113
+ lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
114
114
  selectedElementIds: Readonly<{
115
115
  [id: string]: true;
116
116
  }>;
@@ -128,7 +128,7 @@ export declare const actionDeleteSelected: {
128
128
  duration?: number;
129
129
  } | null;
130
130
  zenModeEnabled: boolean;
131
- theme: import("@excalidraw/element/types").Theme;
131
+ theme: import("@nous-excalidraw/element/types").Theme;
132
132
  gridSize: number;
133
133
  gridStep: number;
134
134
  gridModeEnabled: boolean;
@@ -136,7 +136,7 @@ export declare const actionDeleteSelected: {
136
136
  selectedGroupIds: {
137
137
  [groupId: string]: boolean;
138
138
  };
139
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
139
+ editingGroupId: import("@nous-excalidraw/element/types").GroupId | null;
140
140
  width: number;
141
141
  height: number;
142
142
  offsetTop: number;
@@ -166,11 +166,11 @@ export declare const actionDeleteSelected: {
166
166
  lockedMultiSelections: {
167
167
  [groupId: string]: true;
168
168
  };
169
- bindMode: import("@excalidraw/element/types").BindMode;
169
+ bindMode: import("@nous-excalidraw/element/types").BindMode;
170
170
  };
171
171
  captureUpdate: "IMMEDIATELY";
172
172
  } | {
173
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
173
+ elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[];
174
174
  appState: {
175
175
  selectedLinearElement: {
176
176
  selectedPointsIndices: number[];
@@ -180,24 +180,24 @@ export declare const actionDeleteSelected: {
180
180
  initialState: Readonly<{
181
181
  prevSelectedPointsIndices: readonly number[] | null;
182
182
  lastClickedPoint: number;
183
- origin: Readonly<import("@excalidraw/math").GlobalPoint> | null;
183
+ origin: Readonly<import("@nous-excalidraw/math").GlobalPoint> | null;
184
184
  segmentMidpoint: {
185
- value: import("@excalidraw/math").GlobalPoint | null;
185
+ value: import("@nous-excalidraw/math").GlobalPoint | null;
186
186
  index: number | null;
187
187
  added: boolean;
188
188
  };
189
189
  arrowStartIsInside: boolean;
190
- altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
190
+ altFocusPoint: Readonly<import("@nous-excalidraw/math").GlobalPoint> | null;
191
191
  }>;
192
192
  isDragging: boolean;
193
- lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
194
- lastCommittedPoint: import("@excalidraw/math").LocalPoint | null;
193
+ lastUncommittedPoint: import("@nous-excalidraw/math").LocalPoint | null;
194
+ lastCommittedPoint: import("@nous-excalidraw/math").LocalPoint | null;
195
195
  pointerOffset: Readonly<{
196
196
  x: number;
197
197
  y: number;
198
198
  }>;
199
199
  hoverPointIndex: number;
200
- segmentMidPointHoveredCoords: import("@excalidraw/math").GlobalPoint | null;
200
+ segmentMidPointHoveredCoords: import("@nous-excalidraw/math").GlobalPoint | null;
201
201
  hoveredFocusPointBinding: "start" | "end" | null;
202
202
  draggedFocusPointBinding: "start" | "end" | null;
203
203
  elbowed: boolean;
@@ -214,23 +214,23 @@ export declare const actionDeleteSelected: {
214
214
  isLoading: boolean;
215
215
  errorMessage: React.ReactNode;
216
216
  activeEmbeddable: {
217
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
217
+ element: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement;
218
218
  state: "hover" | "active";
219
219
  } | null;
220
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
221
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
223
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
220
+ newElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
221
+ resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
222
+ multiElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawLinearElement> | null;
223
+ selectionElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
224
224
  isBindingEnabled: boolean;
225
225
  boxSelectionMode: import("../types").BoxSelectionMode;
226
226
  bindingPreference: "enabled" | "disabled";
227
227
  isMidpointSnappingEnabled: boolean;
228
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
228
+ startBoundElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
229
229
  suggestedBinding: {
230
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
231
- midPoint?: import("@excalidraw/math").GlobalPoint;
230
+ element: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement>;
231
+ midPoint?: import("@nous-excalidraw/math").GlobalPoint;
232
232
  } | null;
233
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
233
+ frameToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
234
234
  frameRendering: {
235
235
  enabled: boolean;
236
236
  name: boolean;
@@ -238,8 +238,8 @@ export declare const actionDeleteSelected: {
238
238
  clip: boolean;
239
239
  };
240
240
  editingFrame: string | null;
241
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
242
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
241
+ elementsToHighlight: import("@nous-excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
242
+ editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
243
243
  activeTool: {
244
244
  lastActiveTool: import("../types").ActiveTool | null;
245
245
  locked: boolean;
@@ -262,13 +262,13 @@ export declare const actionDeleteSelected: {
262
262
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
263
263
  currentItemRoughness: number;
264
264
  currentItemOpacity: number;
265
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
265
+ currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
266
266
  currentItemFontSize: number;
267
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
268
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
269
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
270
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
271
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
267
+ currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
268
+ currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
269
+ currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
270
+ currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
271
+ currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
272
272
  currentItemArrowType: "sharp" | "round" | "elbow";
273
273
  viewBackgroundColor: string;
274
274
  scrollX: number;
@@ -303,7 +303,7 @@ export declare const actionDeleteSelected: {
303
303
  rawText: string;
304
304
  };
305
305
  defaultSidebarDockedPreference: boolean;
306
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
306
+ lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
307
307
  selectedElementIds: Readonly<{
308
308
  [id: string]: true;
309
309
  }>;
@@ -321,7 +321,7 @@ export declare const actionDeleteSelected: {
321
321
  duration?: number;
322
322
  } | null;
323
323
  zenModeEnabled: boolean;
324
- theme: import("@excalidraw/element/types").Theme;
324
+ theme: import("@nous-excalidraw/element/types").Theme;
325
325
  gridSize: number;
326
326
  gridStep: number;
327
327
  gridModeEnabled: boolean;
@@ -329,7 +329,7 @@ export declare const actionDeleteSelected: {
329
329
  selectedGroupIds: {
330
330
  [groupId: string]: boolean;
331
331
  };
332
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
332
+ editingGroupId: import("@nous-excalidraw/element/types").GroupId | null;
333
333
  width: number;
334
334
  height: number;
335
335
  offsetTop: number;
@@ -359,7 +359,7 @@ export declare const actionDeleteSelected: {
359
359
  lockedMultiSelections: {
360
360
  [groupId: string]: true;
361
361
  };
362
- bindMode: import("@excalidraw/element/types").BindMode;
362
+ bindMode: import("@nous-excalidraw/element/types").BindMode;
363
363
  };
364
364
  captureUpdate: "IMMEDIATELY";
365
365
  } | {
@@ -385,18 +385,18 @@ export declare const actionDeleteSelected: {
385
385
  showWelcomeScreen: boolean;
386
386
  isLoading: boolean;
387
387
  errorMessage: React.ReactNode;
388
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
389
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
388
+ resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
389
+ selectionElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
390
390
  isBindingEnabled: boolean;
391
391
  boxSelectionMode: import("../types").BoxSelectionMode;
392
392
  bindingPreference: "enabled" | "disabled";
393
393
  isMidpointSnappingEnabled: boolean;
394
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
394
+ startBoundElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
395
395
  suggestedBinding: {
396
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
397
- midPoint?: import("@excalidraw/math").GlobalPoint;
396
+ element: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement>;
397
+ midPoint?: import("@nous-excalidraw/math").GlobalPoint;
398
398
  } | null;
399
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
399
+ frameToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
400
400
  frameRendering: {
401
401
  enabled: boolean;
402
402
  name: boolean;
@@ -404,8 +404,8 @@ export declare const actionDeleteSelected: {
404
404
  clip: boolean;
405
405
  };
406
406
  editingFrame: string | null;
407
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
408
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
407
+ elementsToHighlight: import("@nous-excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
408
+ editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
409
409
  preferredSelectionTool: {
410
410
  type: "selection" | "lasso";
411
411
  initialized: boolean;
@@ -423,13 +423,13 @@ export declare const actionDeleteSelected: {
423
423
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
424
424
  currentItemRoughness: number;
425
425
  currentItemOpacity: number;
426
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
426
+ currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
427
427
  currentItemFontSize: number;
428
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
429
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
430
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
431
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
432
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
428
+ currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
429
+ currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
430
+ currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
431
+ currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
432
+ currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
433
433
  currentItemArrowType: "sharp" | "round" | "elbow";
434
434
  viewBackgroundColor: string;
435
435
  scrollX: number;
@@ -464,7 +464,7 @@ export declare const actionDeleteSelected: {
464
464
  rawText: string;
465
465
  };
466
466
  defaultSidebarDockedPreference: boolean;
467
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
467
+ lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
468
468
  hoveredElementIds: Readonly<{
469
469
  [id: string]: true;
470
470
  }>;
@@ -479,7 +479,7 @@ export declare const actionDeleteSelected: {
479
479
  duration?: number;
480
480
  } | null;
481
481
  zenModeEnabled: boolean;
482
- theme: import("@excalidraw/element/types").Theme;
482
+ theme: import("@nous-excalidraw/element/types").Theme;
483
483
  gridSize: number;
484
484
  gridStep: number;
485
485
  gridModeEnabled: boolean;
@@ -513,7 +513,7 @@ export declare const actionDeleteSelected: {
513
513
  lockedMultiSelections: {
514
514
  [groupId: string]: true;
515
515
  };
516
- bindMode: import("@excalidraw/element/types").BindMode;
516
+ bindMode: import("@nous-excalidraw/element/types").BindMode;
517
517
  };
518
518
  captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
519
519
  };
@@ -3,7 +3,7 @@ export declare const actionDeselect: {
3
3
  name: "deselect";
4
4
  label: string;
5
5
  trackEvent: false;
6
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
6
+ perform: (_elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
7
7
  appState: {
8
8
  activeEmbeddable: null;
9
9
  activeTool: {
@@ -26,15 +26,15 @@ export declare const actionDeselect: {
26
26
  showWelcomeScreen: boolean;
27
27
  isLoading: boolean;
28
28
  errorMessage: React.ReactNode;
29
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
30
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
29
+ newElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
30
+ resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
31
+ multiElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawLinearElement> | null;
32
32
  isBindingEnabled: boolean;
33
33
  boxSelectionMode: import("../types").BoxSelectionMode;
34
34
  bindingPreference: "enabled" | "disabled";
35
35
  isMidpointSnappingEnabled: boolean;
36
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
37
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
36
+ startBoundElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
37
+ frameToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
38
38
  frameRendering: {
39
39
  enabled: boolean;
40
40
  name: boolean;
@@ -42,8 +42,8 @@ export declare const actionDeselect: {
42
42
  clip: boolean;
43
43
  };
44
44
  editingFrame: string | null;
45
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
46
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
45
+ elementsToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawElement>[] | null;
46
+ editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
47
47
  preferredSelectionTool: {
48
48
  type: "selection" | "lasso";
49
49
  initialized: boolean;
@@ -56,18 +56,18 @@ export declare const actionDeselect: {
56
56
  exportScale: number;
57
57
  currentItemStrokeColor: string;
58
58
  currentItemBackgroundColor: string;
59
- currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
59
+ currentItemFillStyle: import("@nous-excalidraw/element/types").ExcalidrawElement["fillStyle"];
60
60
  currentItemStrokeWidth: number;
61
- currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
61
+ currentItemStrokeStyle: import("@nous-excalidraw/element/types").ExcalidrawElement["strokeStyle"];
62
62
  currentItemRoughness: number;
63
63
  currentItemOpacity: number;
64
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
64
+ currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
65
65
  currentItemFontSize: number;
66
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
67
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
68
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
69
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
70
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
66
+ currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
67
+ currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
68
+ currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
69
+ currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
70
+ currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
71
71
  currentItemArrowType: "sharp" | "round" | "elbow";
72
72
  viewBackgroundColor: string;
73
73
  scrollX: number;
@@ -95,14 +95,14 @@ export declare const actionDeselect: {
95
95
  name: "settings";
96
96
  } | {
97
97
  name: "elementLinkSelector";
98
- sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
98
+ sourceElementId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"];
99
99
  } | {
100
100
  name: "charts";
101
101
  data: import("../charts").Spreadsheet;
102
102
  rawText: string;
103
103
  };
104
104
  defaultSidebarDockedPreference: boolean;
105
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
105
+ lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
106
106
  hoveredElementIds: Readonly<{
107
107
  [id: string]: true;
108
108
  }>;
@@ -117,7 +117,7 @@ export declare const actionDeselect: {
117
117
  duration?: number;
118
118
  } | null;
119
119
  zenModeEnabled: boolean;
120
- theme: import("@excalidraw/element/types").Theme;
120
+ theme: import("@nous-excalidraw/element/types").Theme;
121
121
  gridSize: number;
122
122
  gridStep: number;
123
123
  gridModeEnabled: boolean;
@@ -141,20 +141,20 @@ export declare const actionDeselect: {
141
141
  userToFollow: import("../types").UserToFollow | null;
142
142
  followedBy: Set<import("../types").SocketId>;
143
143
  isCropping: boolean;
144
- croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
144
+ croppingElementId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"] | null;
145
145
  searchMatches: Readonly<{
146
- focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
146
+ focusedId: import("@nous-excalidraw/element/types").ExcalidrawElement["id"] | null;
147
147
  matches: readonly import("../types").SearchMatch[];
148
148
  }> | null;
149
149
  activeLockedId: string | null;
150
150
  lockedMultiSelections: {
151
151
  [groupId: string]: true;
152
152
  };
153
- bindMode: import("@excalidraw/element/types").BindMode;
153
+ bindMode: import("@nous-excalidraw/element/types").BindMode;
154
154
  };
155
155
  captureUpdate: "IMMEDIATELY";
156
156
  };
157
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean;
157
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean;
158
158
  } & {
159
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
159
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>, appState: AppState, _: readonly import("@nous-excalidraw/element/types").ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
160
160
  };
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement } from "@nous-excalidraw/element/types";
2
2
  import type { AppClassProperties, AppState } from "../types";
3
3
  export declare const distributeHorizontally: {
4
4
  name: "distributeHorizontally";
@@ -6,7 +6,7 @@ export declare const distributeHorizontally: {
6
6
  trackEvent: {
7
7
  category: "element";
8
8
  };
9
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
9
+ perform: (elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
10
10
  appState: Readonly<AppState>;
11
11
  elements: ExcalidrawElement[];
12
12
  captureUpdate: "IMMEDIATELY";
@@ -22,7 +22,7 @@ export declare const distributeVertically: {
22
22
  trackEvent: {
23
23
  category: "element";
24
24
  };
25
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
25
+ perform: (elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
26
26
  appState: Readonly<AppState>;
27
27
  elements: ExcalidrawElement[];
28
28
  captureUpdate: "IMMEDIATELY";
@@ -5,8 +5,8 @@ export declare const actionDuplicateSelection: {
5
5
  trackEvent: {
6
6
  category: "element";
7
7
  };
8
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => false | {
9
- elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
8
+ perform: (elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, formData: unknown, app: import("../types").AppClassProperties) => false | {
9
+ elements: readonly import("@nous-excalidraw/element/types").OrderedExcalidrawElement[];
10
10
  appState: import("../types").AppState;
11
11
  captureUpdate: "IMMEDIATELY";
12
12
  };