@nous-excalidraw/math 0.18.0-cy.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,6 +1,6 @@
1
- import { IMAGE_MIME_TYPES, MIME_TYPES } from "@excalidraw/common";
2
- import type { ValueOf } from "@excalidraw/common/utility-types";
3
- import type { ExcalidrawElement, FileId } from "@excalidraw/element/types";
1
+ import { IMAGE_MIME_TYPES, MIME_TYPES } from "@nous-excalidraw/common";
2
+ import type { ValueOf } from "@nous-excalidraw/common/utility-types";
3
+ import type { ExcalidrawElement, FileId } from "@nous-excalidraw/element/types";
4
4
  import type { AppState, DataURL, LibraryItem } from "../types";
5
5
  import type { ImportedLibraryData } from "./types";
6
6
  export declare const getMimeType: (blob: Blob | string) => string;
@@ -18,10 +18,10 @@ localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | nu
18
18
  fileHandle?: FileSystemFileHandle | null) => Promise<{
19
19
  type: "application/vnd.excalidraw+json";
20
20
  data: {
21
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
21
+ elements: import("@nous-excalidraw/element/types").OrderedExcalidrawElement[];
22
22
  appState: {
23
23
  viewBackgroundColor: string;
24
- theme: import("@excalidraw/element/types").Theme;
24
+ theme: import("@nous-excalidraw/element/types").Theme;
25
25
  frameRendering: {
26
26
  enabled: boolean;
27
27
  name: boolean;
@@ -50,39 +50,39 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
50
50
  data: import("../charts").Spreadsheet;
51
51
  rawText: string;
52
52
  };
53
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
53
+ editingGroupId: import("@nous-excalidraw/element/types").GroupId | null;
54
54
  selectedElementIds: Readonly<{
55
55
  [id: string]: true;
56
56
  }>;
57
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
57
+ frameToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
58
58
  activeTool: {
59
59
  lastActiveTool: import("../types").ActiveTool | null;
60
60
  locked: boolean;
61
61
  fromSelection: boolean;
62
62
  } & import("../types").ActiveTool;
63
63
  activeEmbeddable: {
64
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
64
+ element: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement;
65
65
  state: "hover" | "active";
66
66
  } | null;
67
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
67
+ selectionElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
68
68
  selectedGroupIds: {
69
69
  [groupId: string]: boolean;
70
70
  };
71
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
72
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
73
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
71
+ selectedLinearElement: import("@nous-excalidraw/element").LinearElementEditor | null;
72
+ multiElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawLinearElement> | null;
73
+ newElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
74
74
  isBindingEnabled: boolean;
75
75
  isMidpointSnappingEnabled: boolean;
76
76
  suggestedBinding: {
77
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
78
- midPoint?: import("@excalidraw/math").GlobalPoint;
77
+ element: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement>;
78
+ midPoint?: import("@nous-excalidraw/math").GlobalPoint;
79
79
  } | null;
80
80
  isRotating: boolean;
81
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
81
+ elementsToHighlight: import("@nous-excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
82
82
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
83
83
  snapLines: readonly import("../snapping").SnapLine[];
84
84
  zenModeEnabled: boolean;
85
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
85
+ editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
86
86
  isCropping: boolean;
87
87
  croppingElementId: ExcalidrawElement["id"] | null;
88
88
  searchMatches: Readonly<{
@@ -96,7 +96,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
96
96
  shouldCacheIgnoreZoom: boolean;
97
97
  exportScale: number;
98
98
  currentItemArrowType: "sharp" | "round" | "elbow";
99
- bindMode: import("@excalidraw/element/types").BindMode;
99
+ bindMode: import("@nous-excalidraw/element/types").BindMode;
100
100
  gridSize: number;
101
101
  contextMenu: {
102
102
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -106,10 +106,10 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
106
106
  showWelcomeScreen: boolean;
107
107
  isLoading: boolean;
108
108
  errorMessage: React.ReactNode;
109
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
109
+ resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
110
110
  boxSelectionMode: import("../types").BoxSelectionMode;
111
111
  bindingPreference: "enabled" | "disabled";
112
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
112
+ startBoundElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
113
113
  editingFrame: string | null;
114
114
  preferredSelectionTool: {
115
115
  type: "selection" | "lasso";
@@ -127,13 +127,13 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
127
127
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
128
128
  currentItemRoughness: number;
129
129
  currentItemOpacity: number;
130
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
130
+ currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
131
131
  currentItemFontSize: number;
132
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
133
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
134
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
135
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
136
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
132
+ currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
133
+ currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
134
+ currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
135
+ currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
136
+ currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
137
137
  cursorButton: "up" | "down";
138
138
  scrolledOutside: boolean;
139
139
  isResizing: boolean;
@@ -144,7 +144,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
144
144
  tab?: import("../types").SidebarTabName;
145
145
  } | null;
146
146
  defaultSidebarDockedPreference: boolean;
147
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
147
+ lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
148
148
  previousSelectedElementIds: {
149
149
  [id: string]: true;
150
150
  };
@@ -184,10 +184,10 @@ export declare const loadFromBlob: (blob: Blob,
184
184
  localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | null,
185
185
  /** FileSystemFileHandle. Defaults to `blob.handle` if defined, otherwise null. */
186
186
  fileHandle?: FileSystemFileHandle | null) => Promise<{
187
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
187
+ elements: import("@nous-excalidraw/element/types").OrderedExcalidrawElement[];
188
188
  appState: {
189
189
  viewBackgroundColor: string;
190
- theme: import("@excalidraw/element/types").Theme;
190
+ theme: import("@nous-excalidraw/element/types").Theme;
191
191
  frameRendering: {
192
192
  enabled: boolean;
193
193
  name: boolean;
@@ -216,39 +216,39 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
216
216
  data: import("../charts").Spreadsheet;
217
217
  rawText: string;
218
218
  };
219
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
219
+ editingGroupId: import("@nous-excalidraw/element/types").GroupId | null;
220
220
  selectedElementIds: Readonly<{
221
221
  [id: string]: true;
222
222
  }>;
223
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
223
+ frameToHighlight: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
224
224
  activeTool: {
225
225
  lastActiveTool: import("../types").ActiveTool | null;
226
226
  locked: boolean;
227
227
  fromSelection: boolean;
228
228
  } & import("../types").ActiveTool;
229
229
  activeEmbeddable: {
230
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
230
+ element: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement;
231
231
  state: "hover" | "active";
232
232
  } | null;
233
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
233
+ selectionElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
234
234
  selectedGroupIds: {
235
235
  [groupId: string]: boolean;
236
236
  };
237
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
238
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
239
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
237
+ selectedLinearElement: import("@nous-excalidraw/element").LinearElementEditor | null;
238
+ multiElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawLinearElement> | null;
239
+ newElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
240
240
  isBindingEnabled: boolean;
241
241
  isMidpointSnappingEnabled: boolean;
242
242
  suggestedBinding: {
243
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
244
- midPoint?: import("@excalidraw/math").GlobalPoint;
243
+ element: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement>;
244
+ midPoint?: import("@nous-excalidraw/math").GlobalPoint;
245
245
  } | null;
246
246
  isRotating: boolean;
247
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
247
+ elementsToHighlight: import("@nous-excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
248
248
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
249
249
  snapLines: readonly import("../snapping").SnapLine[];
250
250
  zenModeEnabled: boolean;
251
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
251
+ editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
252
252
  isCropping: boolean;
253
253
  croppingElementId: ExcalidrawElement["id"] | null;
254
254
  searchMatches: Readonly<{
@@ -262,7 +262,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
262
262
  shouldCacheIgnoreZoom: boolean;
263
263
  exportScale: number;
264
264
  currentItemArrowType: "sharp" | "round" | "elbow";
265
- bindMode: import("@excalidraw/element/types").BindMode;
265
+ bindMode: import("@nous-excalidraw/element/types").BindMode;
266
266
  gridSize: number;
267
267
  contextMenu: {
268
268
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -272,10 +272,10 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
272
272
  showWelcomeScreen: boolean;
273
273
  isLoading: boolean;
274
274
  errorMessage: React.ReactNode;
275
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
275
+ resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
276
276
  boxSelectionMode: import("../types").BoxSelectionMode;
277
277
  bindingPreference: "enabled" | "disabled";
278
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
278
+ startBoundElement: import("@nous-excalidraw/element/types").NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
279
279
  editingFrame: string | null;
280
280
  preferredSelectionTool: {
281
281
  type: "selection" | "lasso";
@@ -293,13 +293,13 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
293
293
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
294
294
  currentItemRoughness: number;
295
295
  currentItemOpacity: number;
296
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
296
+ currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
297
297
  currentItemFontSize: number;
298
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
299
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
300
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
301
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
302
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
298
+ currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
299
+ currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
300
+ currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
301
+ currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
302
+ currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
303
303
  cursorButton: "up" | "down";
304
304
  scrolledOutside: boolean;
305
305
  isResizing: boolean;
@@ -310,7 +310,7 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
310
310
  tab?: import("../types").SidebarTabName;
311
311
  } | null;
312
312
  defaultSidebarDockedPreference: boolean;
313
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
313
+ lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
314
314
  previousSelectedElementIds: {
315
315
  [id: string]: true;
316
316
  };
@@ -1,5 +1,5 @@
1
1
  import { supported as nativeFileSystemSupported } from "browser-fs-access";
2
- import { MIME_TYPES } from "@excalidraw/common";
2
+ import { MIME_TYPES } from "@nous-excalidraw/common";
3
3
  type FILE_EXTENSION = Exclude<keyof typeof MIME_TYPES, "binary">;
4
4
  export declare const fileOpen: <M extends boolean | undefined = false>(opts: {
5
5
  extensions?: FILE_EXTENSION[];
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "@nous-excalidraw/element/types";
2
2
  import type { ExportType } from "../scene/types";
3
3
  import type { AppState, BinaryFiles } from "../types";
4
4
  export { loadFromBlob } from "./blob";
@@ -1,5 +1,5 @@
1
- import type { ExcalidrawElement, NonDeleted } from "@excalidraw/element/types";
2
- import type { MaybePromise } from "@excalidraw/common/utility-types";
1
+ import type { ExcalidrawElement, NonDeleted } from "@nous-excalidraw/element/types";
2
+ import type { MaybePromise } from "@nous-excalidraw/common/utility-types";
3
3
  import type { AppState, BinaryFiles, LibraryItems } from "../types";
4
4
  import type { ImportedDataState, ImportedLibraryData } from "./types";
5
5
  export type JSONExportData = {
@@ -16,10 +16,10 @@ export declare const saveAsJSON: ({ data, filename, fileHandle, }: {
16
16
  fileHandle: FileSystemFileHandle | null;
17
17
  }>;
18
18
  export declare const loadFromJSON: (localAppState: AppState, localElements: readonly ExcalidrawElement[] | null) => Promise<{
19
- elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
19
+ elements: import("@nous-excalidraw/element/types").OrderedExcalidrawElement[];
20
20
  appState: {
21
21
  viewBackgroundColor: string;
22
- theme: import("@excalidraw/element/types").Theme;
22
+ theme: import("@nous-excalidraw/element/types").Theme;
23
23
  frameRendering: {
24
24
  enabled: boolean;
25
25
  name: boolean;
@@ -48,39 +48,39 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
48
48
  data: import("../charts").Spreadsheet;
49
49
  rawText: string;
50
50
  };
51
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
51
+ editingGroupId: import("@nous-excalidraw/element/types").GroupId | null;
52
52
  selectedElementIds: Readonly<{
53
53
  [id: string]: true;
54
54
  }>;
55
- frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
55
+ frameToHighlight: NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
56
56
  activeTool: {
57
57
  lastActiveTool: import("../types").ActiveTool | null;
58
58
  locked: boolean;
59
59
  fromSelection: boolean;
60
60
  } & import("../types").ActiveTool;
61
61
  activeEmbeddable: {
62
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
62
+ element: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement;
63
63
  state: "hover" | "active";
64
64
  } | null;
65
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
65
+ selectionElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
66
66
  selectedGroupIds: {
67
67
  [groupId: string]: boolean;
68
68
  };
69
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
70
- multiElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
71
- newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
69
+ selectedLinearElement: import("@nous-excalidraw/element").LinearElementEditor | null;
70
+ multiElement: NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawLinearElement> | null;
71
+ newElement: NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
72
72
  isBindingEnabled: boolean;
73
73
  isMidpointSnappingEnabled: boolean;
74
74
  suggestedBinding: {
75
- element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
76
- midPoint?: import("@excalidraw/math").GlobalPoint;
75
+ element: NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement>;
76
+ midPoint?: import("@nous-excalidraw/math").GlobalPoint;
77
77
  } | null;
78
78
  isRotating: boolean;
79
79
  elementsToHighlight: NonDeleted<ExcalidrawElement>[] | null;
80
80
  collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
81
81
  snapLines: readonly import("../snapping").SnapLine[];
82
82
  zenModeEnabled: boolean;
83
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
83
+ editingTextElement: import("@nous-excalidraw/element/types").ExcalidrawTextElement | null;
84
84
  isCropping: boolean;
85
85
  croppingElementId: ExcalidrawElement["id"] | null;
86
86
  searchMatches: Readonly<{
@@ -94,7 +94,7 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
94
94
  shouldCacheIgnoreZoom: boolean;
95
95
  exportScale: number;
96
96
  currentItemArrowType: "sharp" | "round" | "elbow";
97
- bindMode: import("@excalidraw/element/types").BindMode;
97
+ bindMode: import("@nous-excalidraw/element/types").BindMode;
98
98
  gridSize: number;
99
99
  contextMenu: {
100
100
  items: import("../components/ContextMenu").ContextMenuItems;
@@ -104,10 +104,10 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
104
104
  showWelcomeScreen: boolean;
105
105
  isLoading: boolean;
106
106
  errorMessage: React.ReactNode;
107
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
107
+ resizingElement: import("@nous-excalidraw/element/types").NonDeletedExcalidrawElement | null;
108
108
  boxSelectionMode: import("../types").BoxSelectionMode;
109
109
  bindingPreference: "enabled" | "disabled";
110
- startBoundElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
110
+ startBoundElement: NonDeleted<import("@nous-excalidraw/element/types").ExcalidrawBindableElement> | null;
111
111
  editingFrame: string | null;
112
112
  preferredSelectionTool: {
113
113
  type: "selection" | "lasso";
@@ -125,13 +125,13 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
125
125
  currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
126
126
  currentItemRoughness: number;
127
127
  currentItemOpacity: number;
128
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
128
+ currentItemFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues;
129
129
  currentItemFontSize: number;
130
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
131
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
132
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
133
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
134
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
130
+ currentItemTextAlign: import("@nous-excalidraw/element/types").TextAlign;
131
+ currentItemStartArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
132
+ currentItemEndArrowhead: import("@nous-excalidraw/element/types").Arrowhead | null;
133
+ currentHoveredFontFamily: import("@nous-excalidraw/element/types").FontFamilyValues | null;
134
+ currentItemRoundness: import("@nous-excalidraw/element/types").StrokeRoundness;
135
135
  cursorButton: "up" | "down";
136
136
  scrolledOutside: boolean;
137
137
  isResizing: boolean;
@@ -142,7 +142,7 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
142
142
  tab?: import("../types").SidebarTabName;
143
143
  } | null;
144
144
  defaultSidebarDockedPreference: boolean;
145
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
145
+ lastPointerDownWith: import("@nous-excalidraw/element/types").PointerType;
146
146
  previousSelectedElementIds: {
147
147
  [id: string]: true;
148
148
  };
@@ -1,5 +1,5 @@
1
- import type { ExcalidrawElement } from "@excalidraw/element/types";
2
- import type { MaybePromise } from "@excalidraw/common/utility-types";
1
+ import type { ExcalidrawElement } from "@nous-excalidraw/element/types";
2
+ import type { MaybePromise } from "@nous-excalidraw/common/utility-types";
3
3
  import type App from "../components/App";
4
4
  import type { LibraryItems, ExcalidrawImperativeAPI, LibraryItemsSource, LibraryItems_anyVersion } from "../types";
5
5
  export type LibraryPersistedData = {
@@ -1,5 +1,5 @@
1
- import type { MaybePromise } from "@excalidraw/common/utility-types";
2
- import type { ExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { MaybePromise } from "@nous-excalidraw/common/utility-types";
2
+ import type { ExcalidrawElement } from "@nous-excalidraw/element/types";
3
3
  import type { AppState, BinaryFiles } from "../types";
4
4
  export declare const resaveAsImageWithScene: (data: MaybePromise<{
5
5
  elements: readonly ExcalidrawElement[];
@@ -1,5 +1,5 @@
1
- import { type CombineBrandsIfNeeded } from "@excalidraw/common";
2
- import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, ExcalidrawSelectionElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
1
+ import { type CombineBrandsIfNeeded } from "@nous-excalidraw/common";
2
+ import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, ExcalidrawSelectionElement, OrderedExcalidrawElement } from "@nous-excalidraw/element/types";
3
3
  import type { AppState, BinaryFiles, LibraryItem } from "../types";
4
4
  import type { ImportedDataState } from "./types";
5
5
  type RestoredAppState = Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
@@ -1,5 +1,5 @@
1
- import type { VERSIONS } from "@excalidraw/common";
2
- import type { ExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { VERSIONS } from "@nous-excalidraw/common";
2
+ import type { ExcalidrawElement } from "@nous-excalidraw/element/types";
3
3
  import type { cleanAppStateForExport } from "../appState";
4
4
  import type { AppState, BinaryFiles, LibraryItem, LibraryItems, LibraryItems_anyVersion } from "../types";
5
5
  export interface ExportedDataState {
@@ -1,6 +1,6 @@
1
- import { type FontMetadata } from "@excalidraw/common";
2
- import type { ExcalidrawElement } from "@excalidraw/element/types";
3
- import type { Scene } from "@excalidraw/element";
1
+ import { type FontMetadata } from "@nous-excalidraw/common";
2
+ import type { ExcalidrawElement } from "@nous-excalidraw/element/types";
3
+ import type { Scene } from "@nous-excalidraw/element";
4
4
  import { ExcalidrawFontFace } from "./ExcalidrawFontFace";
5
5
  export declare class Fonts {
6
6
  static readonly loadedFontsCache: Set<string>;
@@ -1,7 +1,7 @@
1
- import { Emitter } from "@excalidraw/common";
2
- import { StoreDelta } from "@excalidraw/element";
3
- import type { StoreSnapshot, Store } from "@excalidraw/element";
4
- import type { SceneElementsMap } from "@excalidraw/element/types";
1
+ import { Emitter } from "@nous-excalidraw/common";
2
+ import { StoreDelta } from "@nous-excalidraw/element";
3
+ import type { StoreSnapshot, Store } from "@nous-excalidraw/element";
4
+ import type { SceneElementsMap } from "@nous-excalidraw/element/types";
5
5
  import type { AppState } from "./types";
6
6
  export declare class HistoryDelta extends StoreDelta {
7
7
  /**
@@ -1,2 +1,2 @@
1
- import type { Emitter } from "@excalidraw/common";
1
+ import type { Emitter } from "@nous-excalidraw/common";
2
2
  export declare const useEmitter: <TEvent extends unknown>(emitter: Emitter<[TEvent]>, initialState: TEvent) => TEvent;
@@ -1,4 +1,4 @@
1
- import type { NestedKeyOf } from "@excalidraw/common/utility-types";
1
+ import type { NestedKeyOf } from "@nous-excalidraw/common/utility-types";
2
2
  import fallbackLangData from "./locales/en.json";
3
3
  export interface Language {
4
4
  code: string;
@@ -1,5 +1,5 @@
1
- import type { ElementsSegmentsMap, GlobalPoint } from "@excalidraw/math/types";
2
- import type { ElementsMap, ExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { ElementsSegmentsMap, GlobalPoint } from "@nous-excalidraw/math/types";
2
+ import type { ElementsMap, ExcalidrawElement } from "@nous-excalidraw/element/types";
3
3
  export declare const getLassoSelectedElementIds: (input: {
4
4
  lassoPath: GlobalPoint[];
5
5
  elements: readonly ExcalidrawElement[];
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawFrameLikeElement } from "@excalidraw/element/types";
1
+ import type { ExcalidrawFrameLikeElement } from "@nous-excalidraw/element/types";
2
2
  import type { StaticCanvasRenderConfig, StaticSceneRenderConfig } from "../scene/types";
3
3
  import type { StaticCanvasAppState } from "../types";
4
4
  export declare const frameClip: (frame: ExcalidrawFrameLikeElement, context: CanvasRenderingContext2D, renderConfig: StaticCanvasRenderConfig, appState: StaticCanvasAppState) => void;
@@ -1,4 +1,4 @@
1
- import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { NonDeletedExcalidrawElement } from "@nous-excalidraw/element/types";
2
2
  import type { RenderableElementsMap, SVGRenderConfig } from "../scene/types";
3
3
  import type { BinaryFiles } from "../types";
4
4
  import type { RoughSVG } from "roughjs/bin/svg";
@@ -1,5 +1,5 @@
1
- import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
2
- import type { Scene } from "@excalidraw/element";
1
+ import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@nous-excalidraw/element/types";
2
+ import type { Scene } from "@nous-excalidraw/element";
3
3
  import type { RenderableElementsMap } from "./types";
4
4
  import type { AppState } from "../types";
5
5
  export declare class Renderer {
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { ExcalidrawFrameLikeElement, NonDeletedExcalidrawElement } from "@nous-excalidraw/element/types";
2
2
  import type { AppState, BinaryFiles } from "../types";
3
3
  export declare const exportToCanvas: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState, files: BinaryFiles, { exportBackground, exportPadding, viewBackgroundColor, exportingFrame, }: {
4
4
  exportBackground: boolean;
@@ -1,4 +1,4 @@
1
- export { isSomeElementSelected, getElementsWithinSelection, getSelectedElements, getTargetElements, } from "@excalidraw/element";
1
+ export { isSomeElementSelected, getElementsWithinSelection, getSelectedElements, getTargetElements, } from "@nous-excalidraw/element";
2
2
  export { calculateScrollCenter } from "./scroll";
3
- export { hasBackground, hasStrokeWidth, hasStrokeStyle, canHaveArrowheads, canChangeRoundness, } from "@excalidraw/element";
3
+ export { hasBackground, hasStrokeWidth, hasStrokeStyle, canHaveArrowheads, canChangeRoundness, } from "@nous-excalidraw/element";
4
4
  export { getNormalizedZoom, getNormalizedGridSize, getNormalizedGridStep, } from "./normalize";
@@ -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 { AppState, Offsets, PointerCoords, Zoom } from "../types";
3
3
  export declare const centerScrollOn: ({ scenePoint, viewportDimensions, zoom, offsets, }: {
4
4
  scenePoint: PointerCoords;
@@ -1,6 +1,6 @@
1
- import type { UserIdleState, EditorInterface } from "@excalidraw/common";
2
- import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "@excalidraw/element/types";
3
- import type { MakeBrand } from "@excalidraw/common/utility-types";
1
+ import type { UserIdleState, EditorInterface } from "@nous-excalidraw/common";
2
+ import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "@nous-excalidraw/element/types";
3
+ import type { MakeBrand } from "@nous-excalidraw/common/utility-types";
4
4
  import type { AppClassProperties, AppState, EmbedsValidationStatus, ElementsPendingErasure, InteractiveCanvasAppState, StaticCanvasAppState, SocketId, PendingExcalidrawElements } from "../types";
5
5
  import type { RoughCanvas } from "roughjs/bin/canvas";
6
6
  import type { Drawable } from "roughjs/bin/core";
@@ -1,8 +1,8 @@
1
- import { type GlobalPoint } from "@excalidraw/math";
2
- import type { InclusiveRange } from "@excalidraw/math";
3
- import type { Bounds } from "@excalidraw/common";
4
- import type { MaybeTransformHandleType } from "@excalidraw/element";
5
- import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
1
+ import { type GlobalPoint } from "@nous-excalidraw/math";
2
+ import type { InclusiveRange } from "@nous-excalidraw/math";
3
+ import type { Bounds } from "@nous-excalidraw/common";
4
+ import type { MaybeTransformHandleType } from "@nous-excalidraw/element";
5
+ import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement } from "@nous-excalidraw/element/types";
6
6
  import type { AppClassProperties, AppState, KeyboardModifiersObject } from "./types";
7
7
  export declare const getSnapDistance: (zoomValue: number) => number;
8
8
  type Vector2D = {
@@ -1,9 +1,9 @@
1
- import { type GlobalPoint } from "@excalidraw/math";
2
- import type { EditorInterface } from "@excalidraw/common";
3
- import type { ExcalidrawTextElement } from "@excalidraw/element/types";
1
+ import { type GlobalPoint } from "@nous-excalidraw/math";
2
+ import type { EditorInterface } from "@nous-excalidraw/common";
3
+ import type { ExcalidrawTextElement } from "@nous-excalidraw/element/types";
4
4
  export declare const getTextBoxPadding: (zoomValue: number) => number;
5
5
  export declare const getTextAutoResizeHandle: (textElement: ExcalidrawTextElement, zoomValue: number, formFactor: EditorInterface["formFactor"]) => {
6
- center: GlobalPoint | import("@excalidraw/math").LocalPoint;
6
+ center: GlobalPoint | import("@nous-excalidraw/math").LocalPoint;
7
7
  start: GlobalPoint;
8
8
  end: GlobalPoint;
9
9
  hitboxWidth: number;
@@ -1,10 +1,10 @@
1
- import type { IMAGE_MIME_TYPES, UserIdleState, throttleRAF, MIME_TYPES, EditorInterface } from "@excalidraw/common";
2
- import type { LinearElementEditor } from "@excalidraw/element";
3
- import type { MaybeTransformHandleType } from "@excalidraw/element";
4
- import type { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, FontFamilyValues, FileId, Theme, StrokeRoundness, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeLikeElement, OrderedExcalidrawElement, ExcalidrawNonSelectionElement, BindMode, ExcalidrawTextElement } from "@excalidraw/element/types";
5
- import type { Merge, MaybePromise, ValueOf, MakeBrand } from "@excalidraw/common/utility-types";
6
- import type { CaptureUpdateActionType, DurableIncrement, EphemeralIncrement } from "@excalidraw/element";
7
- import type { GlobalPoint } from "@excalidraw/math";
1
+ import type { IMAGE_MIME_TYPES, UserIdleState, throttleRAF, MIME_TYPES, EditorInterface } from "@nous-excalidraw/common";
2
+ import type { LinearElementEditor } from "@nous-excalidraw/element";
3
+ import type { MaybeTransformHandleType } from "@nous-excalidraw/element";
4
+ import type { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, FontFamilyValues, FileId, Theme, StrokeRoundness, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeLikeElement, OrderedExcalidrawElement, ExcalidrawNonSelectionElement, BindMode, ExcalidrawTextElement } from "@nous-excalidraw/element/types";
5
+ import type { Merge, MaybePromise, ValueOf, MakeBrand } from "@nous-excalidraw/common/utility-types";
6
+ import type { CaptureUpdateActionType, DurableIncrement, EphemeralIncrement } from "@nous-excalidraw/element";
7
+ import type { GlobalPoint } from "@nous-excalidraw/math";
8
8
  import type { Action } from "./actions/types";
9
9
  import type { Spreadsheet } from "./charts";
10
10
  import type { ClipboardData } from "./clipboard";
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawElement, ExcalidrawTextElement } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement, ExcalidrawTextElement } from "@nous-excalidraw/element/types";
2
2
  import type App from "../components/App";
3
3
  type SubmitHandler = () => void;
4
4
  export declare const textWysiwyg: ({ id, onChange, onSubmit, getViewportCoords, element, canvas, excalidrawContainer, app, autoSelect, initialCaretSceneCoords, }: {
@@ -1,5 +1,5 @@
1
- import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
2
- import type { Bounds } from "@excalidraw/common";
1
+ import { type GlobalPoint, type LocalPoint } from "@nous-excalidraw/math";
2
+ import type { Bounds } from "@nous-excalidraw/common";
3
3
  export type LineSegment<P extends LocalPoint | GlobalPoint> = [P, P];
4
4
  export declare function getBBox<P extends LocalPoint | GlobalPoint>(line: LineSegment<P>): Bounds;
5
5
  export declare function doBBoxesIntersect(a: Bounds, b: Bounds): boolean;
@@ -1,6 +1,6 @@
1
- import { MIME_TYPES } from "@excalidraw/common";
2
- import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeleted } from "@excalidraw/element/types";
3
- import type { AppState, BinaryFiles } from "@excalidraw/excalidraw/types";
1
+ import { MIME_TYPES } from "@nous-excalidraw/common";
2
+ import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeleted } from "@nous-excalidraw/element/types";
3
+ import type { AppState, BinaryFiles } from "@nous-excalidraw/excalidraw/types";
4
4
  export { MIME_TYPES };
5
5
  type ExportOpts = {
6
6
  elements: readonly NonDeleted<ExcalidrawElement>[];
@@ -1,4 +1,4 @@
1
1
  export * from "./export";
2
2
  export * from "./withinBounds";
3
3
  export * from "./bbox";
4
- export { getCommonBounds } from "@excalidraw/element";
4
+ export { getCommonBounds } from "@nous-excalidraw/element";