@misenkashari/excalidraw-element 1.0.3 → 1.0.6

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 (159) 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 +1 -1
  5. package/dist/types/common/src/font-metadata.d.ts +1 -1
  6. package/dist/types/common/src/points.d.ts +1 -1
  7. package/dist/types/common/src/utils.d.ts +1 -1
  8. package/dist/types/common/src/visualdebug.d.ts +3 -3
  9. package/dist/types/element/src/Scene.d.ts +4 -4
  10. package/dist/types/element/src/binding.d.ts +3 -3
  11. package/dist/types/element/src/bounds.d.ts +2 -2
  12. package/dist/types/element/src/collision.d.ts +1 -1
  13. package/dist/types/element/src/delta.d.ts +2 -2
  14. package/dist/types/element/src/distance.d.ts +1 -1
  15. package/dist/types/element/src/dragElements.d.ts +1 -1
  16. package/dist/types/element/src/duplicate.d.ts +1 -1
  17. package/dist/types/element/src/elbowArrow.d.ts +1 -1
  18. package/dist/types/element/src/embeddable.d.ts +1 -1
  19. package/dist/types/element/src/frame.d.ts +1 -1
  20. package/dist/types/element/src/groups.d.ts +1 -1
  21. package/dist/types/element/src/heading.d.ts +2 -2
  22. package/dist/types/element/src/image.d.ts +1 -1
  23. package/dist/types/element/src/linearElementEditor.d.ts +3 -3
  24. package/dist/types/element/src/mutateElement.d.ts +1 -1
  25. package/dist/types/element/src/newElement.d.ts +1 -1
  26. package/dist/types/element/src/renderElement.d.ts +2 -2
  27. package/dist/types/element/src/resizeElements.d.ts +1 -1
  28. package/dist/types/element/src/resizeTest.d.ts +3 -3
  29. package/dist/types/element/src/shape.d.ts +3 -3
  30. package/dist/types/element/src/store.d.ts +2 -2
  31. package/dist/types/element/src/textElement.d.ts +2 -2
  32. package/dist/types/element/src/transform.d.ts +1 -1
  33. package/dist/types/element/src/transformHandles.d.ts +3 -3
  34. package/dist/types/element/src/typeChecks.d.ts +1 -1
  35. package/dist/types/element/src/types.d.ts +3 -3
  36. package/dist/types/element/src/utils.d.ts +2 -2
  37. package/dist/types/element/src/zindex.d.ts +1 -1
  38. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +82 -82
  39. package/dist/types/excalidraw/actions/actionAlign.d.ts +7 -7
  40. package/dist/types/excalidraw/actions/actionBoundText.d.ts +50 -50
  41. package/dist/types/excalidraw/actions/actionCanvas.d.ts +275 -275
  42. package/dist/types/excalidraw/actions/actionClipboard.d.ts +63 -63
  43. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +28 -28
  44. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +69 -69
  45. package/dist/types/excalidraw/actions/actionDistribute.d.ts +3 -3
  46. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  47. package/dist/types/excalidraw/actions/actionElementLink.d.ts +32 -32
  48. package/dist/types/excalidraw/actions/actionElementLock.d.ts +49 -49
  49. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +29 -29
  50. package/dist/types/excalidraw/actions/actionExport.d.ts +116 -116
  51. package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -1
  52. package/dist/types/excalidraw/actions/actionFlip.d.ts +3 -3
  53. package/dist/types/excalidraw/actions/actionFrame.d.ts +242 -242
  54. package/dist/types/excalidraw/actions/actionGroup.d.ts +43 -43
  55. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +181 -181
  56. package/dist/types/excalidraw/actions/actionLink.d.ts +31 -31
  57. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -27
  58. package/dist/types/excalidraw/actions/actionNavigate.d.ts +2 -2
  59. package/dist/types/excalidraw/actions/actionProperties.d.ts +39 -39
  60. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +23 -23
  61. package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -31
  62. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +3 -3
  63. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +29 -29
  64. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +29 -29
  65. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +28 -28
  66. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +2 -2
  67. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +28 -28
  68. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +29 -29
  69. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +29 -29
  70. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  71. package/dist/types/excalidraw/actions/manager.d.ts +1 -1
  72. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  73. package/dist/types/excalidraw/actions/types.d.ts +2 -2
  74. package/dist/types/excalidraw/appState.d.ts +10 -10
  75. package/dist/types/excalidraw/charts.d.ts +1 -1
  76. package/dist/types/excalidraw/clipboard.d.ts +4 -4
  77. package/dist/types/excalidraw/components/Actions.d.ts +1 -1
  78. package/dist/types/excalidraw/components/App.d.ts +9 -9
  79. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
  80. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -2
  81. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +1 -1
  82. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +1 -1
  83. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +2 -2
  84. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +1 -1
  85. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  86. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  87. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +1 -1
  88. package/dist/types/excalidraw/components/ElementCanvasButtons.d.ts +1 -1
  89. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +2 -2
  90. package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
  91. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +1 -1
  92. package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +2 -2
  93. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +1 -1
  94. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +1 -1
  95. package/dist/types/excalidraw/components/HintViewer.d.ts +1 -1
  96. package/dist/types/excalidraw/components/ImageExportDialog.d.ts +1 -1
  97. package/dist/types/excalidraw/components/InitializeApp.d.ts +1 -1
  98. package/dist/types/excalidraw/components/JSONExportDialog.d.ts +1 -1
  99. package/dist/types/excalidraw/components/LayerUI.d.ts +1 -1
  100. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  101. package/dist/types/excalidraw/components/LoadingMessage.d.ts +1 -1
  102. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  103. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  104. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +1 -1
  105. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  106. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  107. package/dist/types/excalidraw/components/Stats/FontSize.d.ts +2 -2
  108. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  109. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  110. package/dist/types/excalidraw/components/Stats/MultiFontSize.d.ts +2 -2
  111. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  112. package/dist/types/excalidraw/components/Stats/Position.d.ts +2 -2
  113. package/dist/types/excalidraw/components/Stats/index.d.ts +1 -1
  114. package/dist/types/excalidraw/components/Stats/utils.d.ts +2 -2
  115. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +1 -1
  116. package/dist/types/excalidraw/components/ToolButton.d.ts +1 -1
  117. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -2
  118. package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +1 -1
  119. package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
  120. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +1 -1
  121. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +1 -1
  122. package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +2 -2
  123. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +3 -3
  124. package/dist/types/excalidraw/components/icons.d.ts +1 -1
  125. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +1 -1
  126. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  127. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +2 -4
  128. package/dist/types/excalidraw/data/EditorLocalStorage.d.ts +1 -1
  129. package/dist/types/excalidraw/data/blob.d.ts +49 -49
  130. package/dist/types/excalidraw/data/filesystem.d.ts +1 -1
  131. package/dist/types/excalidraw/data/index.d.ts +1 -1
  132. package/dist/types/excalidraw/data/json.d.ts +24 -24
  133. package/dist/types/excalidraw/data/library.d.ts +2 -2
  134. package/dist/types/excalidraw/data/reconcile.d.ts +2 -2
  135. package/dist/types/excalidraw/data/resave.d.ts +1 -1
  136. package/dist/types/excalidraw/data/restore.d.ts +2 -2
  137. package/dist/types/excalidraw/data/types.d.ts +2 -2
  138. package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -3
  139. package/dist/types/excalidraw/history.d.ts +4 -4
  140. package/dist/types/excalidraw/hooks/useEmitter.d.ts +1 -1
  141. package/dist/types/excalidraw/i18n.d.ts +1 -1
  142. package/dist/types/excalidraw/index.d.ts +12 -12
  143. package/dist/types/excalidraw/lasso/utils.d.ts +2 -2
  144. package/dist/types/excalidraw/renderer/staticScene.d.ts +1 -1
  145. package/dist/types/excalidraw/renderer/staticSvgScene.d.ts +1 -1
  146. package/dist/types/excalidraw/scene/Renderer.d.ts +2 -2
  147. package/dist/types/excalidraw/scene/export.d.ts +1 -1
  148. package/dist/types/excalidraw/scene/index.d.ts +2 -2
  149. package/dist/types/excalidraw/scene/scroll.d.ts +1 -1
  150. package/dist/types/excalidraw/scene/types.d.ts +3 -3
  151. package/dist/types/excalidraw/snapping.d.ts +5 -5
  152. package/dist/types/excalidraw/types.d.ts +6 -6
  153. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +1 -1
  154. package/dist/types/utils/src/bbox.d.ts +2 -2
  155. package/dist/types/utils/src/export.d.ts +2 -2
  156. package/dist/types/utils/src/index.d.ts +1 -1
  157. package/dist/types/utils/src/shape.d.ts +4 -4
  158. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  159. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import type { ExcalidrawElement, FontFamilyValues } from "@excalidraw/element/types";
1
+ import type { ExcalidrawElement, FontFamilyValues } from "@misenkashari/excalidraw-element/types";
2
2
  import type { AppProps, AppState } from "@excalidraw/excalidraw/types";
3
3
  export declare const supportsResizeObserver: boolean;
4
4
  export declare const APP_NAME = "Excalidraw";
@@ -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,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 { NullableGridSize } from "@excalidraw/excalidraw/types";
3
3
  export declare const getSizeFromPoints: (points: readonly (GlobalPoint | LocalPoint)[]) => {
4
4
  width: number;
@@ -1,4 +1,4 @@
1
- import type { FontFamilyValues, FontString } from "@excalidraw/element/types";
1
+ import type { FontFamilyValues, FontString } from "@misenkashari/excalidraw-element/types";
2
2
  import type { ActiveTool, AppState, ToolType, UnsubscribeCallback, Zoom } from "@excalidraw/excalidraw/types";
3
3
  import type { MaybePromise, ResolutionType } from "./utility-types";
4
4
  import type { EVENT } from "./constants";
@@ -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,7 +1,7 @@
1
- import { type GlobalPoint } from "@excalidraw/math";
2
- import type { LineSegment, LocalPoint } from "@excalidraw/math";
1
+ import { type GlobalPoint } from "@misenkashari/excalidraw-math";
2
+ import type { LineSegment, LocalPoint } from "@misenkashari/excalidraw-math";
3
3
  import type { AppState } from "@excalidraw/excalidraw/types";
4
- import type { Bounds } from "@excalidraw/common";
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,5 +1,5 @@
1
- import { type Bounds } from "@excalidraw/common";
2
- import type { Degrees, GlobalPoint, LineSegment, LocalPoint } from "@excalidraw/math";
1
+ import { type Bounds } from "@misenkashari/excalidraw-common";
2
+ import type { Degrees, GlobalPoint, LineSegment, LocalPoint } from "@misenkashari/excalidraw-math";
3
3
  import type { AppState } from "@excalidraw/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";
@@ -1,4 +1,4 @@
1
- import type { GlobalPoint, LineSegment } from "@excalidraw/math";
1
+ import type { GlobalPoint, LineSegment } from "@misenkashari/excalidraw-math";
2
2
  import type { FrameNameBounds } from "@excalidraw/excalidraw/types";
3
3
  import type { ElementsMap, ExcalidrawBindableElement, ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap, Ordered } from "./types";
4
4
  export declare const shouldTestInside: (element: ExcalidrawElement) => boolean;
@@ -1,5 +1,5 @@
1
- import type { ExcalidrawElement, Ordered, OrderedExcalidrawElement, SceneElementsMap } from "@excalidraw/element/types";
2
- import type { DTO, ValueOf } from "@excalidraw/common/utility-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
3
  import type { AppState, ObservedAppState } from "@excalidraw/excalidraw/types";
4
4
  import { StoreSnapshot } from "./store";
5
5
  /**
@@ -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,5 +1,5 @@
1
1
  import type { AppState, NormalizedZoomValue, NullableGridSize, PointerDownState } from "@excalidraw/excalidraw/types";
2
- import type { NonDeletedExcalidrawElement } from "@excalidraw/element/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,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 { AppState } from "@excalidraw/excalidraw/types";
3
3
  import type { ExcalidrawElement, GroupId } from "./types";
4
4
  /**
@@ -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,5 +1,5 @@
1
1
  import type { ExcalidrawProps } from "@excalidraw/excalidraw/types";
2
- import type { MarkRequired } from "@excalidraw/common/utility-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,5 +1,5 @@
1
1
  import type { AppClassProperties, AppState, StaticCanvasAppState } from "@excalidraw/excalidraw/types";
2
- import type { ReadonlySetLike } from "@excalidraw/common/utility-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
1
  import type { AppClassProperties, AppState, InteractiveCanvasAppState } from "@excalidraw/excalidraw/types";
2
- import type { Mutable } from "@excalidraw/common/utility-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;
@@ -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";
1
+ import { type GlobalPoint, type LocalPoint } from "@misenkashari/excalidraw-math";
2
+ import { type Store } from "@misenkashari/excalidraw-element";
3
3
  import type { AppState, PointerCoords, InteractiveCanvasAppState, AppClassProperties, NullableGridSize, Zoom } from "@excalidraw/excalidraw/types";
4
- import type { Bounds } from "@excalidraw/common";
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,4 +1,4 @@
1
- import { type GlobalPoint } from "@excalidraw/math";
1
+ import { type GlobalPoint } from "@misenkashari/excalidraw-math";
2
2
  import type { AppState, StaticCanvasAppState, InteractiveCanvasAppState, ElementsPendingErasure, PendingExcalidrawElements } from "@excalidraw/excalidraw/types";
3
3
  import type { StaticCanvasRenderConfig, RenderableElementsMap, InteractiveCanvasRenderConfig } from "@excalidraw/excalidraw/scene/types";
4
4
  import type { ExcalidrawElement, ExcalidrawTextElement, NonDeletedExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawImageElement, ExcalidrawFrameLikeElement, NonDeletedSceneElementsMap, ElementsMap } from "./types";
@@ -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,4 +1,4 @@
1
- import { type LocalPoint } from "@excalidraw/math";
1
+ import { type LocalPoint } from "@misenkashari/excalidraw-math";
2
2
  import type { PointerDownState } from "@excalidraw/excalidraw/types";
3
3
  import type { Scene } from "./Scene";
4
4
  import type { BoundingBox } from "./bounds";
@@ -1,7 +1,7 @@
1
- import { type EditorInterface } from "@excalidraw/common";
2
- import type { GlobalPoint, LocalPoint } from "@excalidraw/math";
1
+ import { type EditorInterface } from "@misenkashari/excalidraw-common";
2
+ import type { GlobalPoint, LocalPoint } from "@misenkashari/excalidraw-math";
3
3
  import type { AppState, Zoom } from "@excalidraw/excalidraw/types";
4
- import type { Bounds } from "@excalidraw/common";
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,6 +1,6 @@
1
- import { type GeometricShape } from "@excalidraw/utils/shape";
2
- import { type LocalPoint } from "@excalidraw/math";
3
- import type { GlobalPoint } from "@excalidraw/math";
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
4
  import type { AppState, EmbedsValidationStatus } from "@excalidraw/excalidraw/types";
5
5
  import type { ElementShape, ElementShapes } from "@excalidraw/excalidraw/scene/types";
6
6
  import type { ExcalidrawElement, ExcalidrawSelectionElement, ExcalidrawLinearElement, ExcalidrawFreeDrawElement, ElementsMap, ExcalidrawLineElement } from "./types";
@@ -1,6 +1,6 @@
1
- import { Emitter } from "@excalidraw/common";
1
+ import { Emitter } from "@misenkashari/excalidraw-common";
2
2
  import type App from "@excalidraw/excalidraw/components/App";
3
- import type { DTO, ValueOf } from "@excalidraw/common/utility-types";
3
+ import type { DTO, ValueOf } from "@misenkashari/excalidraw-common/utility-types";
4
4
  import type { AppState, ObservedAppState } from "@excalidraw/excalidraw/types";
5
5
  import { ElementsDelta, AppStateDelta } from "./delta";
6
6
  import type { ApplyToOptions } from "./delta";
@@ -1,6 +1,6 @@
1
- import { type Radians } from "@excalidraw/math";
1
+ import { type Radians } from "@misenkashari/excalidraw-math";
2
2
  import type { AppState } from "@excalidraw/excalidraw/types";
3
- import type { ExtractSetType } from "@excalidraw/common/utility-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";
1
+ import { type EditorInterface } from "@misenkashari/excalidraw-common";
2
+ import type { Radians } from "@misenkashari/excalidraw-math";
3
3
  import type { InteractiveCanvasAppState, Zoom } from "@excalidraw/excalidraw/types";
4
- import type { Bounds } from "@excalidraw/common";
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
1
  import type { ElementOrToolType } from "@excalidraw/excalidraw/types";
2
- import type { MarkNonNullable } from "@excalidraw/common/utility-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,5 +1,5 @@
1
- import { type GlobalPoint } from "@excalidraw/math";
2
- import type { Curve, LineSegment } from "@excalidraw/math";
1
+ import { type GlobalPoint } from "@misenkashari/excalidraw-math";
2
+ import type { Curve, LineSegment } from "@misenkashari/excalidraw-math";
3
3
  import type { Zoom } from "@excalidraw/excalidraw/types";
4
4
  import type { ElementsMap, ExcalidrawArrowElement, ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawFreeDrawElement, ExcalidrawLinearElement, ExcalidrawRectanguloidElement } from "./types";
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import type { AppState } from "@excalidraw/excalidraw/types";
2
- import type { GlobalPoint } from "@excalidraw/math";
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
  /**