@misenkashari/excalidraw-element 1.0.3 → 1.10.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 (168) hide show
  1. package/dist/dev/index.js +73 -73
  2. package/dist/dev/index.js.map +1 -1
  3. package/dist/prod/index.js +8 -8
  4. package/dist/types/common/src/constants.d.ts +2 -2
  5. package/dist/types/common/src/emitter.d.ts +1 -1
  6. package/dist/types/common/src/font-metadata.d.ts +1 -1
  7. package/dist/types/common/src/points.d.ts +2 -2
  8. package/dist/types/common/src/utils.d.ts +2 -2
  9. package/dist/types/common/src/visualdebug.d.ts +3 -3
  10. package/dist/types/element/src/Scene.d.ts +4 -4
  11. package/dist/types/element/src/align.d.ts +1 -1
  12. package/dist/types/element/src/binding.d.ts +4 -4
  13. package/dist/types/element/src/bounds.d.ts +3 -3
  14. package/dist/types/element/src/collision.d.ts +2 -2
  15. package/dist/types/element/src/comparisons.d.ts +1 -1
  16. package/dist/types/element/src/delta.d.ts +3 -3
  17. package/dist/types/element/src/distance.d.ts +1 -1
  18. package/dist/types/element/src/distribute.d.ts +1 -1
  19. package/dist/types/element/src/dragElements.d.ts +2 -2
  20. package/dist/types/element/src/duplicate.d.ts +2 -2
  21. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  22. package/dist/types/element/src/elementLink.d.ts +1 -1
  23. package/dist/types/element/src/embeddable.d.ts +2 -2
  24. package/dist/types/element/src/flowchart.d.ts +1 -1
  25. package/dist/types/element/src/frame.d.ts +2 -2
  26. package/dist/types/element/src/groups.d.ts +2 -2
  27. package/dist/types/element/src/heading.d.ts +2 -2
  28. package/dist/types/element/src/image.d.ts +2 -2
  29. package/dist/types/element/src/linearElementEditor.d.ts +4 -4
  30. package/dist/types/element/src/mutateElement.d.ts +1 -1
  31. package/dist/types/element/src/newElement.d.ts +1 -1
  32. package/dist/types/element/src/renderElement.d.ts +4 -4
  33. package/dist/types/element/src/resizeElements.d.ts +2 -2
  34. package/dist/types/element/src/resizeTest.d.ts +4 -4
  35. package/dist/types/element/src/selection.d.ts +1 -1
  36. package/dist/types/element/src/shape.d.ts +5 -5
  37. package/dist/types/element/src/showSelectedShapeActions.d.ts +1 -1
  38. package/dist/types/element/src/sizeHelpers.d.ts +1 -1
  39. package/dist/types/element/src/store.d.ts +4 -4
  40. package/dist/types/element/src/textElement.d.ts +3 -3
  41. package/dist/types/element/src/transform.d.ts +1 -1
  42. package/dist/types/element/src/transformHandles.d.ts +4 -4
  43. package/dist/types/element/src/typeChecks.d.ts +2 -2
  44. package/dist/types/element/src/types.d.ts +3 -3
  45. package/dist/types/element/src/utils.d.ts +3 -3
  46. package/dist/types/element/src/zindex.d.ts +2 -2
  47. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +82 -82
  48. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  49. package/dist/types/excalidraw/actions/actionBoundText.d.ts +50 -50
  50. package/dist/types/excalidraw/actions/actionCanvas.d.ts +275 -275
  51. package/dist/types/excalidraw/actions/actionClipboard.d.ts +63 -63
  52. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +28 -28
  53. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +69 -69
  54. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  55. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  56. package/dist/types/excalidraw/actions/actionElementLink.d.ts +32 -32
  57. package/dist/types/excalidraw/actions/actionElementLock.d.ts +49 -49
  58. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +29 -29
  59. package/dist/types/excalidraw/actions/actionExport.d.ts +116 -116
  60. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
  61. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  62. package/dist/types/excalidraw/actions/actionFrame.d.ts +242 -242
  63. package/dist/types/excalidraw/actions/actionGroup.d.ts +43 -43
  64. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +181 -181
  65. package/dist/types/excalidraw/actions/actionLink.d.ts +31 -31
  66. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -27
  67. package/dist/types/excalidraw/actions/actionNavigate.d.ts +2 -2
  68. package/dist/types/excalidraw/actions/actionProperties.d.ts +39 -39
  69. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +23 -23
  70. package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -31
  71. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  72. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -29
  73. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -29
  74. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +28 -28
  75. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  76. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +28 -28
  77. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +29 -29
  78. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +29 -29
  79. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  80. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  81. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  82. package/dist/types/excalidraw/actions/types.d.ts +2 -2
  83. package/dist/types/excalidraw/appState.d.ts +10 -10
  84. package/dist/types/excalidraw/charts.d.ts +1 -1
  85. package/dist/types/excalidraw/clipboard.d.ts +4 -4
  86. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  87. package/dist/types/excalidraw/components/App.d.ts +10 -10
  88. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
  89. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  90. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  91. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  92. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
  93. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  94. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  95. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  96. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
  97. package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +1 -1
  98. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
  99. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  100. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  101. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
  102. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  103. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  104. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  105. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
  106. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  107. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
  108. package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
  109. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  110. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  111. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  112. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  113. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  115. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  116. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  117. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  118. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  119. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  120. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  121. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  122. package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
  123. package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -2
  124. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  125. package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
  126. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -3
  127. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
  128. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  129. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  130. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
  131. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
  132. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  133. package/dist/types/excalidraw/components/icons.d.ts +1 -1
  134. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  135. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  136. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +2 -4
  137. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  138. package/dist/types/excalidraw/data/blob.d.ts +49 -49
  139. package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
  140. package/dist/types/excalidraw/data/index.d.ts +1 -1
  141. package/dist/types/excalidraw/data/json.d.ts +24 -24
  142. package/dist/types/excalidraw/data/library.d.ts +2 -2
  143. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  144. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  145. package/dist/types/excalidraw/data/restore.d.ts +2 -2
  146. package/dist/types/excalidraw/data/types.d.ts +2 -2
  147. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -3
  148. package/dist/types/excalidraw/history.d.ts +4 -4
  149. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  150. package/dist/types/excalidraw/i18n.d.ts +1 -1
  151. package/dist/types/excalidraw/index.d.ts +12 -12
  152. package/dist/types/excalidraw/lasso/utils.d.ts +2 -2
  153. package/dist/types/excalidraw/renderer/staticScene.d.ts +1 -1
  154. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
  155. package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
  156. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  157. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  158. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  159. package/dist/types/excalidraw/scene/types.d.ts +3 -3
  160. package/dist/types/excalidraw/snapping.d.ts +5 -5
  161. package/dist/types/excalidraw/types.d.ts +6 -6
  162. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +1 -1
  163. package/dist/types/utils/src/bbox.d.ts +2 -2
  164. package/dist/types/utils/src/export.d.ts +3 -3
  165. package/dist/types/utils/src/index.d.ts +1 -1
  166. package/dist/types/utils/src/shape.d.ts +4 -4
  167. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  168. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import type { ExcalidrawElement, FontFamilyValues } from "@excalidraw/element/types";
2
- import type { AppProps, AppState } from "@excalidraw/excalidraw/types";
1
+ import type { ExcalidrawElement, FontFamilyValues } from "@misenkashari/excalidraw-element/types";
2
+ import type { AppProps, AppState } from "@misenkashari/excalidraw/types";
3
3
  export declare const supportsResizeObserver: boolean;
4
4
  export declare const APP_NAME = "Excalidraw";
5
5
  export declare const TEXT_AUTOWRAP_THRESHOLD = 36;
@@ -1,4 +1,4 @@
1
- import type { UnsubscribeCallback } from "@excalidraw/excalidraw/types";
1
+ import type { UnsubscribeCallback } from "@misenkashari/excalidraw/types";
2
2
  type Subscriber<T extends any[]> = (...payload: T) => void;
3
3
  export declare class Emitter<T extends any[] = []> {
4
4
  subscribers: Subscriber<T>[];
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawTextElement, FontFamilyValues } from "@excalidraw/element/types";
1
+ import type { ExcalidrawTextElement, FontFamilyValues } from "@misenkashari/excalidraw-element/types";
2
2
  /**
3
3
  * Encapsulates font metrics with additional font metadata.
4
4
  * */
@@ -1,5 +1,5 @@
1
- import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
2
- import type { NullableGridSize } from "@excalidraw/excalidraw/types";
1
+ import { type GlobalPoint, type LocalPoint } from "@misenkashari/excalidraw-math";
2
+ import type { NullableGridSize } from "@misenkashari/excalidraw/types";
3
3
  export declare const getSizeFromPoints: (points: readonly (GlobalPoint | LocalPoint)[]) => {
4
4
  width: number;
5
5
  height: number;
@@ -1,5 +1,5 @@
1
- import type { FontFamilyValues, FontString } from "@excalidraw/element/types";
2
- import type { ActiveTool, AppState, ToolType, UnsubscribeCallback, Zoom } from "@excalidraw/excalidraw/types";
1
+ import type { FontFamilyValues, FontString } from "@misenkashari/excalidraw-element/types";
2
+ import type { ActiveTool, AppState, ToolType, UnsubscribeCallback, Zoom } from "@misenkashari/excalidraw/types";
3
3
  import type { MaybePromise, ResolutionType } from "./utility-types";
4
4
  import type { EVENT } from "./constants";
5
5
  export declare const setDateTimeForTests: (dateTime: string) => void;
@@ -1,6 +1,6 @@
1
- import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
2
- import type { Curve } from "@excalidraw/math";
3
- import type { LineSegment } from "@excalidraw/utils";
1
+ import { type GlobalPoint, type LocalPoint } from "@misenkashari/excalidraw-math";
2
+ import type { Curve } from "@misenkashari/excalidraw-math";
3
+ import type { LineSegment } from "@misenkashari/excalidraw-utils";
4
4
  import { type Bounds } from "./bounds";
5
5
  declare global {
6
6
  interface Window {
@@ -1,6 +1,6 @@
1
- import { type ElementUpdate } from "@excalidraw/element";
2
- import type { ExcalidrawElement, NonDeletedExcalidrawElement, NonDeleted, ExcalidrawFrameLikeElement, ElementsMapOrArray, SceneElementsMap, NonDeletedSceneElementsMap, OrderedExcalidrawElement, Ordered } from "@excalidraw/element/types";
3
- import type { Mutable } from "@excalidraw/common/utility-types";
1
+ import { type ElementUpdate } from "@misenkashari/excalidraw-element";
2
+ import type { ExcalidrawElement, NonDeletedExcalidrawElement, NonDeleted, ExcalidrawFrameLikeElement, ElementsMapOrArray, SceneElementsMap, NonDeletedSceneElementsMap, OrderedExcalidrawElement, Ordered } from "@misenkashari/excalidraw-element/types";
3
+ import type { Mutable } from "@misenkashari/excalidraw-common/utility-types";
4
4
  import type { AppState } from "../../excalidraw/types";
5
5
  type SceneStateCallback = () => void;
6
6
  type SceneStateCallbackRemover = () => void;
@@ -70,7 +70,7 @@ export declare class Scene {
70
70
  getElementIndex(elementId: string): number;
71
71
  getContainerElement: (element: (ExcalidrawElement & {
72
72
  containerId: ExcalidrawElement["id"] | null;
73
- }) | null) => import("@excalidraw/element/types").ExcalidrawLinearElement | import("@excalidraw/element/types").ExcalidrawSelectionElement | import("@excalidraw/element/types").ExcalidrawRectangleElement | import("@excalidraw/element/types").ExcalidrawDiamondElement | import("@excalidraw/element/types").ExcalidrawEllipseElement | import("@excalidraw/element/types").ExcalidrawTriangleElement | import("@excalidraw/element/types").ExcalidrawHexagonElement | import("@excalidraw/element/types").ExcalidrawHeartElement | import("@excalidraw/element/types").ExcalidrawStarElement | import("@excalidraw/element/types").ExcalidrawEmbeddableElement | import("@excalidraw/element/types").ExcalidrawIframeElement | import("@excalidraw/element/types").ExcalidrawImageElement | import("@excalidraw/element/types").ExcalidrawFrameElement | import("@excalidraw/element/types").ExcalidrawMagicFrameElement | import("@excalidraw/element/types").ExcalidrawTextElement | import("@excalidraw/element/types").ExcalidrawFreeDrawElement | null;
73
+ }) | null) => import("@misenkashari/excalidraw-element/types").ExcalidrawLinearElement | import("@misenkashari/excalidraw-element/types").ExcalidrawSelectionElement | import("@misenkashari/excalidraw-element/types").ExcalidrawRectangleElement | import("@misenkashari/excalidraw-element/types").ExcalidrawDiamondElement | import("@misenkashari/excalidraw-element/types").ExcalidrawEllipseElement | import("@misenkashari/excalidraw-element/types").ExcalidrawTriangleElement | import("@misenkashari/excalidraw-element/types").ExcalidrawHexagonElement | import("@misenkashari/excalidraw-element/types").ExcalidrawHeartElement | import("@misenkashari/excalidraw-element/types").ExcalidrawStarElement | import("@misenkashari/excalidraw-element/types").ExcalidrawEmbeddableElement | import("@misenkashari/excalidraw-element/types").ExcalidrawIframeElement | import("@misenkashari/excalidraw-element/types").ExcalidrawImageElement | import("@misenkashari/excalidraw-element/types").ExcalidrawFrameElement | import("@misenkashari/excalidraw-element/types").ExcalidrawMagicFrameElement | import("@misenkashari/excalidraw-element/types").ExcalidrawTextElement | import("@misenkashari/excalidraw-element/types").ExcalidrawFreeDrawElement | null;
74
74
  getElementsFromId: (id: string) => ExcalidrawElement[];
75
75
  mutateElement<TElement extends Mutable<ExcalidrawElement>>(element: TElement, updates: ElementUpdate<TElement>, options?: {
76
76
  informMutation: boolean;
@@ -1,4 +1,4 @@
1
- import type { AppState } from "@excalidraw/excalidraw/types";
1
+ import type { AppState } from "@misenkashari/excalidraw/types";
2
2
  import type { Scene } from "./Scene";
3
3
  import type { ExcalidrawElement } from "./types";
4
4
  export interface Alignment {
@@ -1,7 +1,7 @@
1
- import { type GlobalPoint } from "@excalidraw/math";
2
- import type { LineSegment, LocalPoint } from "@excalidraw/math";
3
- import type { AppState } from "@excalidraw/excalidraw/types";
4
- import type { Bounds } from "@excalidraw/common";
1
+ import { type GlobalPoint } from "@misenkashari/excalidraw-math";
2
+ import type { LineSegment, LocalPoint } from "@misenkashari/excalidraw-math";
3
+ import type { AppState } from "@misenkashari/excalidraw/types";
4
+ import type { Bounds } from "@misenkashari/excalidraw-common";
5
5
  import { type Heading } from "./heading";
6
6
  import type { Scene } from "./Scene";
7
7
  import type { ElementUpdate } from "./mutateElement";
@@ -1,6 +1,6 @@
1
- import { type Bounds } from "@excalidraw/common";
2
- import type { Degrees, GlobalPoint, LineSegment, LocalPoint } from "@excalidraw/math";
3
- import type { AppState } from "@excalidraw/excalidraw/types";
1
+ import { type Bounds } from "@misenkashari/excalidraw-common";
2
+ import type { Degrees, GlobalPoint, LineSegment, LocalPoint } from "@misenkashari/excalidraw-math";
3
+ import type { AppState } from "@misenkashari/excalidraw/types";
4
4
  import type { Drawable, Op } from "roughjs/bin/core";
5
5
  import type { Arrowhead, ElementsMap, ElementsMapOrArray, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, NonDeleted } from "./types";
6
6
  export type RectangleBox = {
@@ -1,5 +1,5 @@
1
- import type { GlobalPoint, LineSegment } from "@excalidraw/math";
2
- import type { FrameNameBounds } from "@excalidraw/excalidraw/types";
1
+ import type { GlobalPoint, LineSegment } from "@misenkashari/excalidraw-math";
2
+ import type { FrameNameBounds } from "@misenkashari/excalidraw/types";
3
3
  import type { ElementsMap, ExcalidrawBindableElement, ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap, Ordered } from "./types";
4
4
  export declare const shouldTestInside: (element: ExcalidrawElement) => boolean;
5
5
  export type HitTestArgs = {
@@ -1,4 +1,4 @@
1
- import type { ElementOrToolType } from "@excalidraw/excalidraw/types";
1
+ import type { ElementOrToolType } from "@misenkashari/excalidraw/types";
2
2
  export declare const hasBackground: (type: ElementOrToolType) => type is "line" | "rectangle" | "diamond" | "ellipse" | "triangle" | "hexagon" | "heart" | "star" | "embeddable" | "iframe" | "freedraw";
3
3
  export declare const hasStrokeColor: (type: ElementOrToolType) => type is "line" | "arrow" | "text" | "rectangle" | "diamond" | "ellipse" | "triangle" | "hexagon" | "heart" | "star" | "embeddable" | "freedraw";
4
4
  export declare const hasStrokeWidth: (type: ElementOrToolType) => type is "line" | "arrow" | "rectangle" | "diamond" | "ellipse" | "triangle" | "hexagon" | "heart" | "star" | "embeddable" | "iframe" | "freedraw";
@@ -1,6 +1,6 @@
1
- import type { ExcalidrawElement, Ordered, OrderedExcalidrawElement, SceneElementsMap } from "@excalidraw/element/types";
2
- import type { DTO, ValueOf } from "@excalidraw/common/utility-types";
3
- import type { AppState, ObservedAppState } from "@excalidraw/excalidraw/types";
1
+ import type { ExcalidrawElement, Ordered, OrderedExcalidrawElement, SceneElementsMap } from "@misenkashari/excalidraw-element/types";
2
+ import type { DTO, ValueOf } from "@misenkashari/excalidraw-common/utility-types";
3
+ import type { AppState, ObservedAppState } from "@misenkashari/excalidraw/types";
4
4
  import { StoreSnapshot } from "./store";
5
5
  /**
6
6
  * Represents the difference between two objects of the same type.
@@ -1,3 +1,3 @@
1
- import type { GlobalPoint } from "@excalidraw/math";
1
+ import type { GlobalPoint } from "@misenkashari/excalidraw-math";
2
2
  import type { ElementsMap, ExcalidrawElement } from "./types";
3
3
  export declare const distanceToElement: (element: ExcalidrawElement, elementsMap: ElementsMap, p: GlobalPoint) => number;
@@ -1,4 +1,4 @@
1
- import type { AppState } from "@excalidraw/excalidraw/types";
1
+ import type { AppState } from "@misenkashari/excalidraw/types";
2
2
  import type { ElementsMap, ExcalidrawElement } from "./types";
3
3
  export interface Distribution {
4
4
  space: "between";
@@ -1,5 +1,5 @@
1
- import type { AppState, NormalizedZoomValue, NullableGridSize, PointerDownState } from "@excalidraw/excalidraw/types";
2
- import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";
1
+ import type { AppState, NormalizedZoomValue, NullableGridSize, PointerDownState } from "@misenkashari/excalidraw/types";
2
+ import type { NonDeletedExcalidrawElement } from "@misenkashari/excalidraw-element/types";
3
3
  import type { Scene } from "./Scene";
4
4
  export declare const dragSelectedElements: (pointerDownState: PointerDownState, _selectedElements: NonDeletedExcalidrawElement[], offset: {
5
5
  x: number;
@@ -1,5 +1,5 @@
1
- import type { Mutable } from "@excalidraw/common/utility-types";
2
- import type { AppState } from "@excalidraw/excalidraw/types";
1
+ import type { Mutable } from "@misenkashari/excalidraw-common/utility-types";
2
+ import type { AppState } from "@misenkashari/excalidraw/types";
3
3
  import type { ExcalidrawElement, GroupId } from "./types";
4
4
  /**
5
5
  * Duplicate an element, often used in the alt-drag operation.
@@ -1,4 +1,4 @@
1
- import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
1
+ import { type GlobalPoint, type LocalPoint } from "@misenkashari/excalidraw-math";
2
2
  import { type ElementUpdate } from "./mutateElement";
3
3
  import { type ExcalidrawElbowArrowElement, type NonDeletedSceneElementsMap } from "./types";
4
4
  import type { FixedPointBinding, FixedSegment } from "./types";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Create and link between shapes.
3
3
  */
4
- import type { AppProps, AppState } from "@excalidraw/excalidraw/types";
4
+ import type { AppProps, AppState } from "@misenkashari/excalidraw/types";
5
5
  import type { ExcalidrawElement } from "./types";
6
6
  export declare const defaultGetElementLinkFromSelection: Exclude<AppProps["generateLinkForSelection"], undefined>;
7
7
  export declare const getLinkIdAndTypeFromSelection: (selectedElements: ExcalidrawElement[], appState: AppState) => {
@@ -1,5 +1,5 @@
1
- import type { ExcalidrawProps } from "@excalidraw/excalidraw/types";
2
- import type { MarkRequired } from "@excalidraw/common/utility-types";
1
+ import type { ExcalidrawProps } from "@misenkashari/excalidraw/types";
2
+ import type { MarkRequired } from "@misenkashari/excalidraw-common/utility-types";
3
3
  import type { ExcalidrawElement, ExcalidrawIframeLikeElement, IframeData } from "./types";
4
4
  type IframeDataWithSandbox = MarkRequired<IframeData, "sandbox">;
5
5
  export declare const createSrcDoc: (body: string) => string;
@@ -1,4 +1,4 @@
1
- import type { AppState, PendingExcalidrawElements } from "@excalidraw/excalidraw/types";
1
+ import type { AppState, PendingExcalidrawElements } from "@misenkashari/excalidraw/types";
2
2
  import { type ElementsMap, type ExcalidrawBindableElement, type ExcalidrawElement, type ExcalidrawFlowchartNodeElement } from "./types";
3
3
  import type { Scene } from "./Scene";
4
4
  type LinkDirection = "up" | "right" | "down" | "left";
@@ -1,5 +1,5 @@
1
- import type { AppClassProperties, AppState, StaticCanvasAppState } from "@excalidraw/excalidraw/types";
2
- import type { ReadonlySetLike } from "@excalidraw/common/utility-types";
1
+ import type { AppClassProperties, AppState, StaticCanvasAppState } from "@misenkashari/excalidraw/types";
2
+ import type { ReadonlySetLike } from "@misenkashari/excalidraw-common/utility-types";
3
3
  import type { ExcalidrawElementsIncludingDeleted } from "./Scene";
4
4
  import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeleted, NonDeletedExcalidrawElement } from "./types";
5
5
  export declare const bindElementsToFramesAfterDuplication: (nextElements: readonly ExcalidrawElement[], origElements: readonly ExcalidrawElement[], origIdToDuplicateId: Map<ExcalidrawElement["id"], ExcalidrawElement["id"]>) => void;
@@ -1,5 +1,5 @@
1
- import type { AppClassProperties, AppState, InteractiveCanvasAppState } from "@excalidraw/excalidraw/types";
2
- import type { Mutable } from "@excalidraw/common/utility-types";
1
+ import type { AppClassProperties, AppState, InteractiveCanvasAppState } from "@misenkashari/excalidraw/types";
2
+ import type { Mutable } from "@misenkashari/excalidraw-common/utility-types";
3
3
  import type { GroupId, ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, ElementsMapOrArray, ElementsMap } from "./types";
4
4
  export declare const selectGroup: (groupId: GroupId, appState: InteractiveCanvasAppState, elements: readonly NonDeleted<ExcalidrawElement>[]) => Pick<InteractiveCanvasAppState, "selectedGroupIds" | "selectedElementIds" | "editingGroupId">;
5
5
  export declare const selectGroupsForSelectedElements: {
@@ -1,5 +1,5 @@
1
- import { type Bounds } from "@excalidraw/common";
2
- import type { LocalPoint, GlobalPoint, Vector } from "@excalidraw/math";
1
+ import { type Bounds } from "@misenkashari/excalidraw-common";
2
+ import type { LocalPoint, GlobalPoint, Vector } from "@misenkashari/excalidraw-math";
3
3
  import type { ExcalidrawBindableElement } from "./types";
4
4
  export declare const HEADING_RIGHT: Heading;
5
5
  export declare const HEADING_DOWN: Heading;
@@ -1,4 +1,4 @@
1
- import type { AppClassProperties, DataURL, BinaryFiles } from "@excalidraw/excalidraw/types";
1
+ import type { AppClassProperties, DataURL, BinaryFiles } from "@misenkashari/excalidraw/types";
2
2
  import type { ExcalidrawElement, FileId, InitializedExcalidrawImageElement } from "./types";
3
3
  export declare const loadHTMLImageElement: (dataURL: DataURL) => Promise<HTMLImageElement>;
4
4
  /** NOTE: updates cache even if already populated with given image. Thus,
@@ -10,7 +10,7 @@ export declare const updateImageCache: ({ fileIds, files, imageCache, }: {
10
10
  }) => Promise<{
11
11
  imageCache: Map<FileId, {
12
12
  image: HTMLImageElement | Promise<HTMLImageElement>;
13
- mimeType: import("@excalidraw/common/utility-types").ValueOf<typeof import("@excalidraw/common").IMAGE_MIME_TYPES>;
13
+ mimeType: import("@misenkashari/excalidraw-common/utility-types").ValueOf<typeof import("@misenkashari/excalidraw-common").IMAGE_MIME_TYPES>;
14
14
  }>;
15
15
  /** includes errored files because they cache was updated nonetheless */
16
16
  updatedFiles: Map<FileId, true>;
@@ -1,7 +1,7 @@
1
- import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
2
- import { type Store } from "@excalidraw/element";
3
- import type { AppState, PointerCoords, InteractiveCanvasAppState, AppClassProperties, NullableGridSize, Zoom } from "@excalidraw/excalidraw/types";
4
- import type { Bounds } from "@excalidraw/common";
1
+ import { type GlobalPoint, type LocalPoint } from "@misenkashari/excalidraw-math";
2
+ import { type Store } from "@misenkashari/excalidraw-element";
3
+ import type { AppState, PointerCoords, InteractiveCanvasAppState, AppClassProperties, NullableGridSize, Zoom } from "@misenkashari/excalidraw/types";
4
+ import type { Bounds } from "@misenkashari/excalidraw-common";
5
5
  import type { Scene } from "./Scene";
6
6
  import type { NonDeleted, ExcalidrawLinearElement, ExcalidrawElement, ExcalidrawTextElementWithContainer, ElementsMap, NonDeletedSceneElementsMap, FixedPointBinding, ExcalidrawElbowArrowElement, PointsPositionUpdates } from "./types";
7
7
  export declare class LinearElementEditor {
@@ -1,4 +1,4 @@
1
- import type { Mutable } from "@excalidraw/common/utility-types";
1
+ import type { Mutable } from "@misenkashari/excalidraw-common/utility-types";
2
2
  import type { ElementsMap, ExcalidrawElement } from "./types";
3
3
  export type ElementUpdate<TElement extends ExcalidrawElement> = Omit<Partial<TElement>, "id" | "updated">;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { MarkOptional } from "@excalidraw/common/utility-types";
1
+ import type { MarkOptional } from "@misenkashari/excalidraw-common/utility-types";
2
2
  import type { ExcalidrawImageElement, ExcalidrawTextElement, ExcalidrawLinearElement, ExcalidrawGenericElement, NonDeleted, TextAlign, VerticalAlign, Arrowhead, ExcalidrawFreeDrawElement, FontFamilyValues, ExcalidrawTextContainer, ExcalidrawFrameElement, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawIframeElement, ElementsMap, ExcalidrawArrowElement, ExcalidrawElbowArrowElement, ExcalidrawLineElement } from "./types";
3
3
  export type ElementConstructorOpts = MarkOptional<Omit<ExcalidrawGenericElement, "id" | "type" | "isDeleted" | "updated">, "width" | "height" | "angle" | "groupIds" | "frameId" | "index" | "boundElements" | "seed" | "version" | "versionNonce" | "link" | "strokeStyle" | "fillStyle" | "strokeColor" | "backgroundColor" | "roughness" | "strokeWidth" | "roundness" | "locked" | "opacity" | "customData">;
4
4
  export declare const newElement: (opts: {
@@ -1,6 +1,6 @@
1
- import { type GlobalPoint } from "@excalidraw/math";
2
- import type { AppState, StaticCanvasAppState, InteractiveCanvasAppState, ElementsPendingErasure, PendingExcalidrawElements } from "@excalidraw/excalidraw/types";
3
- import type { StaticCanvasRenderConfig, RenderableElementsMap, InteractiveCanvasRenderConfig } from "@excalidraw/excalidraw/scene/types";
1
+ import { type GlobalPoint } from "@misenkashari/excalidraw-math";
2
+ import type { AppState, StaticCanvasAppState, InteractiveCanvasAppState, ElementsPendingErasure, PendingExcalidrawElements } from "@misenkashari/excalidraw/types";
3
+ import type { StaticCanvasRenderConfig, RenderableElementsMap, InteractiveCanvasRenderConfig } from "@misenkashari/excalidraw/scene/types";
4
4
  import type { ExcalidrawElement, ExcalidrawTextElement, NonDeletedExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawImageElement, ExcalidrawFrameLikeElement, NonDeletedSceneElementsMap, ElementsMap } from "./types";
5
5
  import type { RoughCanvas } from "roughjs/bin/canvas";
6
6
  export declare const getRenderOpacity: (element: ExcalidrawElement, containingFrame: ExcalidrawFrameLikeElement | null, elementsPendingErasure: ElementsPendingErasure, pendingNodes: Readonly<PendingExcalidrawElements> | null, globalAlpha?: number) => number;
@@ -22,4 +22,4 @@ export declare const DEFAULT_LINK_SIZE = 14;
22
22
  export declare const elementWithCanvasCache: WeakMap<ExcalidrawElement, ExcalidrawElementWithCanvas>;
23
23
  export declare const renderSelectionElement: (element: NonDeletedExcalidrawElement, context: CanvasRenderingContext2D, appState: InteractiveCanvasAppState, selectionColor: InteractiveCanvasRenderConfig["selectionColor"]) => void;
24
24
  export declare const renderElement: (element: NonDeletedExcalidrawElement, elementsMap: RenderableElementsMap, allElementsMap: NonDeletedSceneElementsMap, rc: RoughCanvas, context: CanvasRenderingContext2D, renderConfig: StaticCanvasRenderConfig, appState: StaticCanvasAppState | InteractiveCanvasAppState) => void;
25
- export declare function getFreedrawOutlineAsSegments(element: ExcalidrawFreeDrawElement, points: [number, number][], elementsMap: ElementsMap): import("@excalidraw/math").LineSegment<GlobalPoint>[];
25
+ export declare function getFreedrawOutlineAsSegments(element: ExcalidrawFreeDrawElement, points: [number, number][], elementsMap: ElementsMap): import("@misenkashari/excalidraw-math").LineSegment<GlobalPoint>[];
@@ -1,5 +1,5 @@
1
- import { type LocalPoint } from "@excalidraw/math";
2
- import type { PointerDownState } from "@excalidraw/excalidraw/types";
1
+ import { type LocalPoint } from "@misenkashari/excalidraw-math";
2
+ import type { PointerDownState } from "@misenkashari/excalidraw/types";
3
3
  import type { Scene } from "./Scene";
4
4
  import type { BoundingBox } from "./bounds";
5
5
  import type { MaybeTransformHandleType, TransformHandleDirection } from "./transformHandles";
@@ -1,7 +1,7 @@
1
- import { type EditorInterface } from "@excalidraw/common";
2
- import type { GlobalPoint, LocalPoint } from "@excalidraw/math";
3
- import type { AppState, Zoom } from "@excalidraw/excalidraw/types";
4
- import type { Bounds } from "@excalidraw/common";
1
+ import { type EditorInterface } from "@misenkashari/excalidraw-common";
2
+ import type { GlobalPoint, LocalPoint } from "@misenkashari/excalidraw-math";
3
+ import type { AppState, Zoom } from "@misenkashari/excalidraw/types";
4
+ import type { Bounds } from "@misenkashari/excalidraw-common";
5
5
  import type { MaybeTransformHandleType } from "./transformHandles";
6
6
  import type { ExcalidrawElement, PointerType, NonDeletedExcalidrawElement, ElementsMap } from "./types";
7
7
  export declare const resizeTest: <Point extends GlobalPoint | LocalPoint>(element: NonDeletedExcalidrawElement, elementsMap: ElementsMap, appState: AppState, x: number, y: number, zoom: Zoom, pointerType: PointerType, editorInterface: EditorInterface) => MaybeTransformHandleType;
@@ -1,4 +1,4 @@
1
- import type { AppState, InteractiveCanvasAppState } from "@excalidraw/excalidraw/types";
1
+ import type { AppState, InteractiveCanvasAppState } from "@misenkashari/excalidraw/types";
2
2
  import { LinearElementEditor } from "./linearElementEditor";
3
3
  import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, NonDeletedExcalidrawElement } from "./types";
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { type GeometricShape } from "@excalidraw/utils/shape";
2
- import { type LocalPoint } from "@excalidraw/math";
3
- import type { GlobalPoint } from "@excalidraw/math";
4
- import type { AppState, EmbedsValidationStatus } from "@excalidraw/excalidraw/types";
5
- import type { ElementShape, ElementShapes } from "@excalidraw/excalidraw/scene/types";
1
+ import { type GeometricShape } from "@misenkashari/excalidraw-utils/shape";
2
+ import { type LocalPoint } from "@misenkashari/excalidraw-math";
3
+ import type { GlobalPoint } from "@misenkashari/excalidraw-math";
4
+ import type { AppState, EmbedsValidationStatus } from "@misenkashari/excalidraw/types";
5
+ import type { ElementShape, ElementShapes } from "@misenkashari/excalidraw/scene/types";
6
6
  import type { ExcalidrawElement, ExcalidrawSelectionElement, ExcalidrawLinearElement, ExcalidrawFreeDrawElement, ElementsMap, ExcalidrawLineElement } from "./types";
7
7
  import type { Drawable, Options } from "roughjs/bin/core";
8
8
  export declare class ShapeCache {
@@ -1,3 +1,3 @@
1
- import type { UIAppState } from "@excalidraw/excalidraw/types";
1
+ import type { UIAppState } from "@misenkashari/excalidraw/types";
2
2
  import type { NonDeletedExcalidrawElement } from "./types";
3
3
  export declare const showSelectedShapeActions: (appState: UIAppState, elements: readonly NonDeletedExcalidrawElement[]) => boolean;
@@ -1,4 +1,4 @@
1
- import type { AppState, Offsets, Zoom } from "@excalidraw/excalidraw/types";
1
+ import type { AppState, Offsets, Zoom } from "@misenkashari/excalidraw/types";
2
2
  import type { ElementsMap, ExcalidrawElement } from "./types";
3
3
  export declare const INVISIBLY_SMALL_ELEMENT_SIZE = 0.1;
4
4
  export declare const isInvisiblySmallElement: (element: ExcalidrawElement) => boolean;
@@ -1,7 +1,7 @@
1
- import { Emitter } from "@excalidraw/common";
2
- import type App from "@excalidraw/excalidraw/components/App";
3
- import type { DTO, ValueOf } from "@excalidraw/common/utility-types";
4
- import type { AppState, ObservedAppState } from "@excalidraw/excalidraw/types";
1
+ import { Emitter } from "@misenkashari/excalidraw-common";
2
+ import type App from "@misenkashari/excalidraw/components/App";
3
+ import type { DTO, ValueOf } from "@misenkashari/excalidraw-common/utility-types";
4
+ import type { AppState, ObservedAppState } from "@misenkashari/excalidraw/types";
5
5
  import { ElementsDelta, AppStateDelta } from "./delta";
6
6
  import type { ApplyToOptions } from "./delta";
7
7
  import type { ExcalidrawElement, OrderedExcalidrawElement, SceneElementsMap } from "./types";
@@ -1,6 +1,6 @@
1
- import { type Radians } from "@excalidraw/math";
2
- import type { AppState } from "@excalidraw/excalidraw/types";
3
- import type { ExtractSetType } from "@excalidraw/common/utility-types";
1
+ import { type Radians } from "@misenkashari/excalidraw-math";
2
+ import type { AppState } from "@misenkashari/excalidraw/types";
3
+ import type { ExtractSetType } from "@misenkashari/excalidraw-common/utility-types";
4
4
  import type { Scene } from "./Scene";
5
5
  import type { MaybeTransformHandleType } from "./transformHandles";
6
6
  import type { ElementsMap, ExcalidrawElement, ExcalidrawElementType, ExcalidrawTextContainer, ExcalidrawTextElement, ExcalidrawTextElementWithContainer, NonDeletedExcalidrawElement } from "./types";
@@ -1,4 +1,4 @@
1
- import type { MarkOptional } from "@excalidraw/common/utility-types";
1
+ import type { MarkOptional } from "@misenkashari/excalidraw-common/utility-types";
2
2
  import { type ElementConstructorOpts } from "./newElement";
3
3
  import type { ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawFrameElement, ExcalidrawFreeDrawElement, ExcalidrawGenericElement, ExcalidrawIframeLikeElement, ExcalidrawImageElement, ExcalidrawLinearElement, ExcalidrawMagicFrameElement, ExcalidrawSelectionElement, ExcalidrawTextElement, FileId, FontFamilyValues, TextAlign, VerticalAlign } from "./types";
4
4
  export type ValidLinearElement = {
@@ -1,7 +1,7 @@
1
- import { type EditorInterface } from "@excalidraw/common";
2
- import type { Radians } from "@excalidraw/math";
3
- import type { InteractiveCanvasAppState, Zoom } from "@excalidraw/excalidraw/types";
4
- import type { Bounds } from "@excalidraw/common";
1
+ import { type EditorInterface } from "@misenkashari/excalidraw-common";
2
+ import type { Radians } from "@misenkashari/excalidraw-math";
3
+ import type { InteractiveCanvasAppState, Zoom } from "@misenkashari/excalidraw/types";
4
+ import type { Bounds } from "@misenkashari/excalidraw-common";
5
5
  import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement, PointerType } from "./types";
6
6
  export type TransformHandleDirection = "n" | "s" | "w" | "e" | "nw" | "ne" | "sw" | "se";
7
7
  export type TransformHandleType = TransformHandleDirection | "rotation";
@@ -1,5 +1,5 @@
1
- import type { ElementOrToolType } from "@excalidraw/excalidraw/types";
2
- import type { MarkNonNullable } from "@excalidraw/common/utility-types";
1
+ import type { ElementOrToolType } from "@misenkashari/excalidraw/types";
2
+ import type { MarkNonNullable } from "@misenkashari/excalidraw-common/utility-types";
3
3
  import type { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawEmbeddableElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawFreeDrawElement, InitializedExcalidrawImageElement, ExcalidrawImageElement, ExcalidrawTextElementWithContainer, ExcalidrawTextContainer, ExcalidrawFrameElement, RoundnessType, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeElement, ExcalidrawIframeLikeElement, ExcalidrawMagicFrameElement, ExcalidrawArrowElement, ExcalidrawElbowArrowElement, ExcalidrawLineElement, ExcalidrawFlowchartNodeElement, ExcalidrawLinearElementSubType } from "./types";
4
4
  export declare const isInitializedImageElement: (element: ExcalidrawElement | null) => element is InitializedExcalidrawImageElement;
5
5
  export declare const isImageElement: (element: ExcalidrawElement | null) => element is ExcalidrawImageElement;
@@ -1,6 +1,6 @@
1
- import type { LocalPoint, Radians } from "@excalidraw/math";
2
- import type { FONT_FAMILY, ROUNDNESS, TEXT_ALIGN, THEME, VERTICAL_ALIGN } from "@excalidraw/common";
3
- import type { MakeBrand, MarkNonNullable, Merge, ValueOf } from "@excalidraw/common/utility-types";
1
+ import type { LocalPoint, Radians } from "@misenkashari/excalidraw-math";
2
+ import type { FONT_FAMILY, ROUNDNESS, TEXT_ALIGN, THEME, VERTICAL_ALIGN } from "@misenkashari/excalidraw-common";
3
+ import type { MakeBrand, MarkNonNullable, Merge, ValueOf } from "@misenkashari/excalidraw-common/utility-types";
4
4
  export type ChartType = "bar" | "line";
5
5
  export type FillStyle = "hachure" | "cross-hatch" | "solid" | "zigzag";
6
6
  export type FontFamilyKeys = keyof typeof FONT_FAMILY;
@@ -1,6 +1,6 @@
1
- import { type GlobalPoint } from "@excalidraw/math";
2
- import type { Curve, LineSegment } from "@excalidraw/math";
3
- import type { Zoom } from "@excalidraw/excalidraw/types";
1
+ import { type GlobalPoint } from "@misenkashari/excalidraw-math";
2
+ import type { Curve, LineSegment } from "@misenkashari/excalidraw-math";
3
+ import type { Zoom } from "@misenkashari/excalidraw/types";
4
4
  import type { ElementsMap, ExcalidrawArrowElement, ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawRectanguloidElement } from "./types";
5
5
  /**
6
6
  * Returns the **rotated** components of freedraw, line or arrow elements.
@@ -1,5 +1,5 @@
1
- import type { AppState } from "@excalidraw/excalidraw/types";
2
- import type { GlobalPoint } from "@excalidraw/math";
1
+ import type { AppState } from "@misenkashari/excalidraw/types";
2
+ import type { GlobalPoint } from "@misenkashari/excalidraw-math";
3
3
  import type { Scene } from "./Scene";
4
4
  import type { ExcalidrawArrowElement, ExcalidrawElement, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap, Ordered, OrderedExcalidrawElement } from "./types";
5
5
  /**