@zsviczian/excalidraw 0.9.0-obsidian-image-support-2 → 0.9.0-obsidian-12

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 (141) hide show
  1. package/CHANGELOG.md +2 -3
  2. package/dist/excalidraw-assets-dev/{i18n-ar-SA-json-8617476a4caf18fc0371.js → i18n-ar-SA-json-f5bc447c49caabb08777.js} +1 -1
  3. package/dist/excalidraw-assets-dev/{i18n-bg-BG-json-709d1cdbcdd08cb4196e.js → i18n-bg-BG-json-268fa8b357a040664ce8.js} +1 -1
  4. package/dist/excalidraw-assets-dev/{i18n-ca-ES-json-00e9a306a6883ffbbe57.js → i18n-ca-ES-json-d97ba352ad60f0797523.js} +1 -1
  5. package/dist/excalidraw-assets-dev/{i18n-cs-CZ-json-bc9a303ff98ced90903d.js → i18n-cs-CZ-json-8461703358025fc2b6dc.js} +1 -1
  6. package/dist/excalidraw-assets-dev/{i18n-da-DK-json-43287c62e4e654a62e4b.js → i18n-da-DK-json-90c6fdbbb074b61c5a20.js} +1 -1
  7. package/dist/excalidraw-assets-dev/i18n-de-DE-json-0a324fb716f965b0dddf.js +22 -0
  8. package/dist/excalidraw-assets-dev/{i18n-el-GR-json-f03c81650fc237c5cf4a.js → i18n-el-GR-json-60644f69d25140bb113b.js} +1 -1
  9. package/dist/excalidraw-assets-dev/i18n-es-ES-json-f22bc8917f34334b9413.js +22 -0
  10. package/dist/excalidraw-assets-dev/{i18n-fa-IR-json-c234b5e54cd2a1672898.js → i18n-fa-IR-json-ad9af56c2e607428ff9e.js} +1 -1
  11. package/dist/excalidraw-assets-dev/{i18n-fi-FI-json-29106b8736c3568b0e7a.js → i18n-fi-FI-json-dbe77c440c89e6e51a98.js} +1 -1
  12. package/dist/excalidraw-assets-dev/{i18n-fr-FR-json-b4382269051ef449f22a.js → i18n-fr-FR-json-26b2114ab3c173967573.js} +1 -1
  13. package/dist/excalidraw-assets-dev/i18n-he-IL-json-6a3f5d88fc0995f20b58.js +22 -0
  14. package/dist/excalidraw-assets-dev/{i18n-hi-IN-json-dfd30ffcd688b76d247b.js → i18n-hi-IN-json-b9e68c32a5f7aba92b0c.js} +1 -1
  15. package/dist/excalidraw-assets-dev/{i18n-hu-HU-json-385ed66ee674f14883ce.js → i18n-hu-HU-json-e52b849fa7808ab1642d.js} +1 -1
  16. package/dist/excalidraw-assets-dev/{i18n-id-ID-json-8606e52f65cda64f84de.js → i18n-id-ID-json-084ef650c8942e0a678d.js} +1 -1
  17. package/dist/excalidraw-assets-dev/{i18n-it-IT-json-47d0eb1c1ca8ffcc6a8c.js → i18n-it-IT-json-fc098faed9756ac81bfc.js} +1 -1
  18. package/dist/excalidraw-assets-dev/{i18n-ja-JP-json-041d339b6d1c6c40a696.js → i18n-ja-JP-json-458325d0df58c790218d.js} +1 -1
  19. package/dist/excalidraw-assets-dev/{i18n-kab-KAB-json-bc3faead75b6f428fa0e.js → i18n-kab-KAB-json-cd5639624894a6578d48.js} +1 -1
  20. package/dist/excalidraw-assets-dev/i18n-kk-KZ-json-d9ef83d6f8accb6161ac.js +22 -0
  21. package/dist/excalidraw-assets-dev/{i18n-ko-KR-json-e3fba288c9957c8010cf.js → i18n-ko-KR-json-7003d57ae007abce987e.js} +1 -1
  22. package/dist/excalidraw-assets-dev/{i18n-lv-LV-json-08034ebe84bb974c35c3.js → i18n-lv-LV-json-c7f3087fbe25fd91d28f.js} +1 -1
  23. package/dist/excalidraw-assets-dev/{i18n-my-MM-json-cc0225c53edbf917e21f.js → i18n-my-MM-json-1e9b67199208e7f3d6e4.js} +1 -1
  24. package/dist/excalidraw-assets-dev/{i18n-nb-NO-json-34f0bfcf72c71d33376d.js → i18n-nb-NO-json-d1bd037aa6fa2661a5a5.js} +1 -1
  25. package/dist/excalidraw-assets-dev/{i18n-nl-NL-json-62820376fea0b9d31fc3.js → i18n-nl-NL-json-068663e2c9fdfa8b1088.js} +1 -1
  26. package/dist/excalidraw-assets-dev/{i18n-nn-NO-json-a3f47aba453d847cc65a.js → i18n-nn-NO-json-34ee131c5792da566465.js} +1 -1
  27. package/dist/excalidraw-assets-dev/{i18n-oc-FR-json-d731d0c7c25481aef3c8.js → i18n-oc-FR-json-dce5cf2df80149878122.js} +1 -1
  28. package/dist/excalidraw-assets-dev/{i18n-pa-IN-json-1ccfa9e432207fa34d73.js → i18n-pa-IN-json-8a107b529dc05d8452e0.js} +1 -1
  29. package/dist/excalidraw-assets-dev/{i18n-pl-PL-json-2c3192cda97bcdfaed27.js → i18n-pl-PL-json-7633a9ac5a0b4b5ff7aa.js} +1 -1
  30. package/dist/excalidraw-assets-dev/{i18n-pt-BR-json-8b1f19303a882e28bcb8.js → i18n-pt-BR-json-be80ffd0cddb3c1e247a.js} +1 -1
  31. package/dist/excalidraw-assets-dev/{i18n-pt-PT-json-8c9d24df4db900d7eed1.js → i18n-pt-PT-json-010c0841415e6f5c853f.js} +1 -1
  32. package/dist/excalidraw-assets-dev/{i18n-ro-RO-json-8ad16b7ee2c00730a103.js → i18n-ro-RO-json-81924c28265a0b32d1d8.js} +1 -1
  33. package/dist/excalidraw-assets-dev/{i18n-ru-RU-json-d0767891cb65e644f458.js → i18n-ru-RU-json-d4f396d603c2d30806a5.js} +1 -1
  34. package/dist/excalidraw-assets-dev/{i18n-sk-SK-json-e786dadba6fac2b1625b.js → i18n-sk-SK-json-8d26227b4ce6d0d9894d.js} +1 -1
  35. package/dist/excalidraw-assets-dev/{i18n-sv-SE-json-35b10171080a427d71a5.js → i18n-sv-SE-json-bf6597f23dc8825ed382.js} +1 -1
  36. package/dist/excalidraw-assets-dev/{i18n-tr-TR-json-a15ed70331602c0a16f7.js → i18n-tr-TR-json-5a4dc201a6382783d8ee.js} +1 -1
  37. package/dist/excalidraw-assets-dev/{i18n-uk-UA-json-df1cdfae3f8aa58d22bb.js → i18n-uk-UA-json-cf7be568bf38b167c01e.js} +1 -1
  38. package/dist/excalidraw-assets-dev/{i18n-zh-CN-json-342311fa1d0fa30c6828.js → i18n-zh-CN-json-04ce279401fdeb64c96c.js} +1 -1
  39. package/dist/excalidraw-assets-dev/{i18n-zh-TW-json-819e494f1f38cb9ef099.js → i18n-zh-TW-json-2cf881330938bf6bbb93.js} +1 -1
  40. package/dist/excalidraw-assets-dev/image-bd6a627ff1bbdbae8366.js +32 -0
  41. package/dist/excalidraw-assets-dev/vendor-ac67d7e09cdab8faffe3.js +323 -0
  42. package/dist/excalidraw.development.js +293 -505
  43. package/dist/excalidraw.production.min.js +1 -1
  44. package/dist/excalidraw.production.min.js.LICENSE.txt +0 -115
  45. package/package.json +1 -1
  46. package/types/actions/actionCanvas.d.ts +2 -4
  47. package/types/actions/manager.d.ts +11 -3
  48. package/types/actions/types.d.ts +8 -2
  49. package/types/appState.d.ts +4 -59
  50. package/types/components/Actions.d.ts +2 -5
  51. package/types/components/App.d.ts +5 -20
  52. package/types/components/LayerUI.d.ts +1 -4
  53. package/types/components/LibraryUnit.d.ts +2 -3
  54. package/types/components/MobileMenu.d.ts +1 -4
  55. package/types/components/ToolButton.d.ts +2 -5
  56. package/types/constants.d.ts +3 -3
  57. package/types/data/blob.d.ts +2 -4
  58. package/types/data/encode.d.ts +1 -2
  59. package/types/data/encryption.d.ts +9 -0
  60. package/types/data/filesystem.d.ts +18 -0
  61. package/types/data/index.d.ts +2 -2
  62. package/types/data/json.d.ts +2 -2
  63. package/types/data/resave.d.ts +1 -1
  64. package/types/element/collision.d.ts +2 -2
  65. package/types/element/dragElements.d.ts +1 -1
  66. package/types/element/index.d.ts +1 -2
  67. package/types/element/mutateElement.d.ts +1 -1
  68. package/types/element/newElement.d.ts +1 -4
  69. package/types/element/resizeElements.d.ts +3 -3
  70. package/types/element/typeChecks.d.ts +1 -2
  71. package/types/element/types.d.ts +2 -14
  72. package/types/excalidraw-app/data/FileSync.d.ts +0 -1
  73. package/types/excalidraw-app/data/firebase.d.ts +2 -2
  74. package/types/excalidraw-app/data/index.d.ts +5 -7
  75. package/types/excalidraw-app/data/localStorage.d.ts +1 -1
  76. package/types/keys.d.ts +3 -4
  77. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ar-SA-json-f5bc447c49caabb08777.d.ts +2 -0
  78. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-bg-BG-json-268fa8b357a040664ce8.d.ts +2 -0
  79. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ca-ES-json-d97ba352ad60f0797523.d.ts +2 -0
  80. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-cs-CZ-json-8461703358025fc2b6dc.d.ts +2 -0
  81. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-da-DK-json-90c6fdbbb074b61c5a20.d.ts +2 -0
  82. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-de-DE-json-0a324fb716f965b0dddf.d.ts +2 -0
  83. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-el-GR-json-60644f69d25140bb113b.d.ts +2 -0
  84. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-es-ES-json-f22bc8917f34334b9413.d.ts +2 -0
  85. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-fa-IR-json-ad9af56c2e607428ff9e.d.ts +2 -0
  86. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-fi-FI-json-dbe77c440c89e6e51a98.d.ts +2 -0
  87. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-fr-FR-json-26b2114ab3c173967573.d.ts +2 -0
  88. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-he-IL-json-6a3f5d88fc0995f20b58.d.ts +2 -0
  89. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-hi-IN-json-b9e68c32a5f7aba92b0c.d.ts +2 -0
  90. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-hu-HU-json-e52b849fa7808ab1642d.d.ts +2 -0
  91. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-id-ID-json-084ef650c8942e0a678d.d.ts +2 -0
  92. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-it-IT-json-fc098faed9756ac81bfc.d.ts +2 -0
  93. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ja-JP-json-458325d0df58c790218d.d.ts +2 -0
  94. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-kab-KAB-json-cd5639624894a6578d48.d.ts +2 -0
  95. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-kk-KZ-json-d9ef83d6f8accb6161ac.d.ts +2 -0
  96. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ko-KR-json-7003d57ae007abce987e.d.ts +2 -0
  97. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-lv-LV-json-c7f3087fbe25fd91d28f.d.ts +2 -0
  98. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-my-MM-json-1e9b67199208e7f3d6e4.d.ts +2 -0
  99. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-nb-NO-json-d1bd037aa6fa2661a5a5.d.ts +2 -0
  100. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-nl-NL-json-068663e2c9fdfa8b1088.d.ts +2 -0
  101. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-nn-NO-json-34ee131c5792da566465.d.ts +2 -0
  102. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-oc-FR-json-dce5cf2df80149878122.d.ts +2 -0
  103. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-pa-IN-json-8a107b529dc05d8452e0.d.ts +2 -0
  104. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-pl-PL-json-7633a9ac5a0b4b5ff7aa.d.ts +2 -0
  105. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-pt-BR-json-be80ffd0cddb3c1e247a.d.ts +2 -0
  106. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-pt-PT-json-010c0841415e6f5c853f.d.ts +2 -0
  107. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ro-RO-json-81924c28265a0b32d1d8.d.ts +2 -0
  108. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ru-RU-json-d4f396d603c2d30806a5.d.ts +2 -0
  109. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-sk-SK-json-8d26227b4ce6d0d9894d.d.ts +2 -0
  110. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-sv-SE-json-bf6597f23dc8825ed382.d.ts +2 -0
  111. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-tr-TR-json-5a4dc201a6382783d8ee.d.ts +2 -0
  112. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-uk-UA-json-cf7be568bf38b167c01e.d.ts +2 -0
  113. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-zh-CN-json-04ce279401fdeb64c96c.d.ts +2 -0
  114. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-zh-TW-json-2cf881330938bf6bbb93.d.ts +2 -0
  115. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-48c09dc0a5119be6727d.d.ts +0 -0
  116. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-5ccf8800f7bd347d72ef.d.ts +0 -0
  117. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-65e6a712958ab4666bf5.d.ts +0 -0
  118. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-bd6a627ff1bbdbae8366.d.ts +0 -0
  119. package/types/packages/excalidraw/dist/excalidraw-assets-dev/image-cfb39fdd62f69e9e3a6e.d.ts +0 -0
  120. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-0f2d4444f453c4f793d1.d.ts +0 -0
  121. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-73ece7f2b1768ce96827.d.ts +0 -0
  122. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-8ea1c8aa2827c2e56522.d.ts +0 -0
  123. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-ac67d7e09cdab8faffe3.d.ts +0 -0
  124. package/types/packages/excalidraw/dist/excalidraw-assets-dev/vendor-b50c1ad3339b726756c2.d.ts +0 -0
  125. package/types/packages/excalidraw/webpack.dev.config.d.ts +15 -8
  126. package/types/packages/utils.d.ts +1 -1
  127. package/types/renderer/renderElement.d.ts +2 -3
  128. package/types/renderer/renderScene.d.ts +2 -3
  129. package/types/scene/export.d.ts +1 -2
  130. package/types/scene/types.d.ts +3 -4
  131. package/types/shapes.d.ts +1 -5
  132. package/types/types.d.ts +3 -24
  133. package/types/zindex.d.ts +2 -2
  134. package/dist/excalidraw-assets-dev/Cascadia.woff2 +0 -0
  135. package/dist/excalidraw-assets-dev/Virgil.woff2 +0 -0
  136. package/dist/excalidraw-assets-dev/i18n-de-DE-json-32a0c6840217959c613d.js +0 -22
  137. package/dist/excalidraw-assets-dev/i18n-es-ES-json-e9fa5e81b395ea04cf35.js +0 -22
  138. package/dist/excalidraw-assets-dev/i18n-he-IL-json-9f9592408d2171d94d28.js +0 -22
  139. package/dist/excalidraw-assets-dev/i18n-kk-KZ-json-a7087f74220ab6202b31.js +0 -22
  140. package/dist/excalidraw-assets-dev/image-2767e46ad3f3f29617ea.js +0 -22
  141. package/dist/excalidraw-assets-dev/vendor-b648d92c35e91de1648e.js +0 -323
@@ -1,4 +1,4 @@
1
- import { ExcalidrawElement, ExcalidrawImageElement, ExcalidrawTextElement, ExcalidrawLinearElement, ExcalidrawGenericElement, NonDeleted, TextAlign, GroupId, VerticalAlign, Arrowhead, ExcalidrawFreeDrawElement, FontFamilyValues } from "../element/types";
1
+ import { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawLinearElement, ExcalidrawGenericElement, NonDeleted, TextAlign, GroupId, VerticalAlign, Arrowhead, ExcalidrawFreeDrawElement, FontFamilyValues } from "../element/types";
2
2
  import { AppState } from "../types";
3
3
  declare type ElementConstructorOpts = MarkOptional<Omit<ExcalidrawGenericElement, "id" | "type" | "isDeleted">, "width" | "height" | "angle" | "groupIds" | "boundElementIds" | "seed" | "version" | "versionNonce">;
4
4
  export declare const newElement: (opts: {
@@ -28,9 +28,6 @@ export declare const newLinearElement: (opts: {
28
28
  endArrowhead: Arrowhead | null;
29
29
  points?: ExcalidrawLinearElement["points"];
30
30
  } & ElementConstructorOpts) => NonDeleted<ExcalidrawLinearElement>;
31
- export declare const newImageElement: (opts: {
32
- type: ExcalidrawImageElement["type"];
33
- } & ElementConstructorOpts) => NonDeleted<ExcalidrawImageElement>;
34
31
  export declare const deepCopyElement: (val: any, depth?: number) => any;
35
32
  /**
36
33
  * Duplicate an element, often used in the alt-drag operation.
@@ -2,8 +2,8 @@ import { ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted } from
2
2
  import { MaybeTransformHandleType, TransformHandleDirection } from "./transformHandles";
3
3
  import { PointerDownState } from "../types";
4
4
  export declare const normalizeAngle: (angle: number) => number;
5
- export declare const transformElements: (pointerDownState: PointerDownState, transformHandleType: MaybeTransformHandleType, selectedElements: readonly NonDeletedExcalidrawElement[], resizeArrowDirection: "origin" | "end", shouldRotateWithDiscreteAngle: boolean, shouldResizeFromCenter: boolean, shouldMaintainAspectRatio: boolean, pointerX: number, pointerY: number, centerX: number, centerY: number) => boolean;
6
- export declare const reshapeSingleTwoPointElement: (element: NonDeleted<ExcalidrawLinearElement>, resizeArrowDirection: "origin" | "end", shouldRotateWithDiscreteAngle: boolean, pointerX: number, pointerY: number) => void;
7
- export declare const resizeSingleElement: (stateAtResizeStart: NonDeletedExcalidrawElement, shouldMaintainAspectRatio: boolean, element: NonDeletedExcalidrawElement, transformHandleDirection: TransformHandleDirection, shouldResizeFromCenter: boolean, pointerX: number, pointerY: number) => void;
5
+ export declare const transformElements: (pointerDownState: PointerDownState, transformHandleType: MaybeTransformHandleType, selectedElements: readonly NonDeletedExcalidrawElement[], resizeArrowDirection: "origin" | "end", isRotateWithDiscreteAngle: boolean, isResizeCenterPoint: boolean, shouldKeepSidesRatio: boolean, pointerX: number, pointerY: number, centerX: number, centerY: number) => boolean;
6
+ export declare const reshapeSingleTwoPointElement: (element: NonDeleted<ExcalidrawLinearElement>, resizeArrowDirection: "origin" | "end", isRotateWithDiscreteAngle: boolean, pointerX: number, pointerY: number) => void;
7
+ export declare const resizeSingleElement: (stateAtResizeStart: NonDeletedExcalidrawElement, shouldKeepSidesRatio: boolean, element: NonDeletedExcalidrawElement, transformHandleDirection: TransformHandleDirection, isResizeFromCenter: boolean, pointerX: number, pointerY: number) => void;
8
8
  export declare const getResizeOffsetXY: (transformHandleType: MaybeTransformHandleType, selectedElements: NonDeletedExcalidrawElement[], x: number, y: number) => [number, number];
9
9
  export declare const getResizeArrowDirection: (transformHandleType: MaybeTransformHandleType, element: NonDeleted<ExcalidrawLinearElement>) => "origin" | "end";
@@ -1,6 +1,5 @@
1
- import { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawGenericElement, ExcalidrawFreeDrawElement, InitializedExcalidrawImageElement } from "./types";
1
+ import { ExcalidrawElement, ExcalidrawTextElement, ExcalidrawLinearElement, ExcalidrawBindableElement, ExcalidrawGenericElement, ExcalidrawFreeDrawElement } from "./types";
2
2
  export declare const isGenericElement: (element: ExcalidrawElement | null) => element is ExcalidrawGenericElement;
3
- export declare const isInitializedImageElement: (element: ExcalidrawElement | null) => element is InitializedExcalidrawImageElement;
4
3
  export declare const isTextElement: (element: ExcalidrawElement | null) => element is ExcalidrawTextElement;
5
4
  export declare const isFreeDrawElement: (element?: ExcalidrawElement | null | undefined) => element is ExcalidrawFreeDrawElement;
6
5
  export declare const isFreeDrawElementType: (elementType: ExcalidrawElement["type"]) => boolean;
@@ -57,15 +57,6 @@ export declare type ExcalidrawDiamondElement = _ExcalidrawElementBase & {
57
57
  export declare type ExcalidrawEllipseElement = _ExcalidrawElementBase & {
58
58
  type: "ellipse";
59
59
  };
60
- export declare type ExcalidrawImageElement = _ExcalidrawElementBase & Readonly<{
61
- type: "image";
62
- imageId: ImageId | null;
63
- /** whether respective file is persisted */
64
- status: "pending" | "saved";
65
- /** X and Y scale factors <-1, 1>, used for image axis flipping */
66
- scale: [number, number];
67
- }>;
68
- export declare type InitializedExcalidrawImageElement = MarkNonNullable<ExcalidrawImageElement, "imageId">;
69
60
  /**
70
61
  * These are elements that don't have any additional properties.
71
62
  */
@@ -75,7 +66,7 @@ export declare type ExcalidrawGenericElement = ExcalidrawSelectionElement | Exca
75
66
  * no computed data. The list of all ExcalidrawElements should be shareable
76
67
  * between peers and contain no state local to the peer.
77
68
  */
78
- export declare type ExcalidrawElement = ExcalidrawGenericElement | ExcalidrawTextElement | ExcalidrawLinearElement | ExcalidrawFreeDrawElement | ExcalidrawImageElement;
69
+ export declare type ExcalidrawElement = ExcalidrawGenericElement | ExcalidrawTextElement | ExcalidrawLinearElement | ExcalidrawFreeDrawElement;
79
70
  export declare type NonDeleted<TElement extends ExcalidrawElement> = TElement & {
80
71
  isDeleted: false;
81
72
  };
@@ -90,7 +81,7 @@ export declare type ExcalidrawTextElement = _ExcalidrawElementBase & Readonly<{
90
81
  textAlign: TextAlign;
91
82
  verticalAlign: VerticalAlign;
92
83
  }>;
93
- export declare type ExcalidrawBindableElement = ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawEllipseElement | ExcalidrawTextElement | ExcalidrawImageElement;
84
+ export declare type ExcalidrawBindableElement = ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawEllipseElement | ExcalidrawTextElement;
94
85
  export declare type PointBinding = {
95
86
  elementId: ExcalidrawBindableElement["id"];
96
87
  focus: number;
@@ -113,7 +104,4 @@ export declare type ExcalidrawFreeDrawElement = _ExcalidrawElementBase & Readonl
113
104
  simulatePressure: boolean;
114
105
  lastCommittedPoint: Point | null;
115
106
  }>;
116
- export declare type ImageId = string & {
117
- _brand: "ImageId";
118
- };
119
107
  export {};
@@ -14,7 +14,6 @@ export declare class FileSync {
14
14
  }>;
15
15
  saveFiles: (data: {
16
16
  addedFiles: Map<ImageId, DataURL>;
17
- removedFiles: Map<ImageId, true>;
18
17
  }) => Promise<{
19
18
  savedFiles: Map<ImageId, true>;
20
19
  erroredFiles: Map<ImageId, true>;
@@ -4,9 +4,9 @@ import Portal from "../collab/Portal";
4
4
  import { BinaryFileData, DataURL } from "../../types";
5
5
  export declare const loadFirebaseStorage: () => Promise<typeof import("firebase/app").default>;
6
6
  export declare const isSavedToFirebase: (portal: Portal, elements: readonly ExcalidrawElement[]) => boolean;
7
- export declare const saveFilesToFirebase: ({ prefix, decryptionKey, files, allowedTypes, maxBytes, }: {
7
+ export declare const saveFilesToFirebase: ({ prefix, encryptionKey, files, allowedTypes, maxBytes, }: {
8
8
  prefix: string;
9
- decryptionKey: string;
9
+ encryptionKey: string;
10
10
  files: Map<ImageId, DataURL>;
11
11
  allowedTypes: string[];
12
12
  maxBytes: number;
@@ -1,6 +1,6 @@
1
1
  import { ImportedDataState } from "../../data/types";
2
2
  import { ExcalidrawElement } from "../../element/types";
3
- import { AppState, DataURL, UserIdleState } from "../../types";
3
+ import { AppState, UserIdleState } from "../../types";
4
4
  export declare const generateEncryptionKey: () => Promise<string | undefined>;
5
5
  export declare const SOCKET_SERVER: string;
6
6
  export declare type EncryptedData = {
@@ -136,7 +136,7 @@ export declare const loadScene: (id: string | null, privateKey: string | null, l
136
136
  };
137
137
  editingGroupId: string | null;
138
138
  isLibraryOpen: boolean;
139
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
139
+ fileHandle: import("@dwelle/browser-fs-access").FileSystemHandle | null;
140
140
  collaborators: Map<string, import("../../types").Collaborator>;
141
141
  showStats: boolean;
142
142
  currentChartType: import("../../element/types").ChartType;
@@ -152,10 +152,8 @@ export declare const loadScene: (id: string | null, privateKey: string | null, l
152
152
  commitToHistory: boolean;
153
153
  }>;
154
154
  export declare const exportToBackend: (elements: readonly ExcalidrawElement[], appState: AppState) => Promise<void>;
155
- export declare const dataURLToBlob: (dataURL: DataURL) => Blob;
156
- export declare const arrayBufferToDataURL: (buffer: ArrayBuffer, mimeType: string) => Promise<DataURL>;
157
- export declare const encryptData: (key: string, data: Blob | string) => Promise<{
158
- blob: Blob;
155
+ export declare const encryptData: (key: string, data: Uint8Array | Blob | File | string) => Promise<{
156
+ encryptedBuffer: ArrayBuffer;
159
157
  iv: Uint8Array;
160
158
  }>;
161
- export declare const getDataURL: (file: File) => Promise<DataURL>;
159
+ export declare const decryptData: (iv: ArrayBuffer, encrypted: ArrayBuffer, privateKey: string) => Promise<ArrayBuffer>;
@@ -82,7 +82,7 @@ export declare const importFromLocalStorage: () => {
82
82
  toastMessage: string | null;
83
83
  viewModeEnabled: boolean;
84
84
  isLibraryOpen: boolean;
85
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
85
+ fileHandle: import("@dwelle/browser-fs-access").FileSystemHandle | null;
86
86
  collaborators: Map<string, import("../../types").Collaborator>;
87
87
  pasteDialog: {
88
88
  shown: false;
package/types/keys.d.ts CHANGED
@@ -42,7 +42,6 @@ export declare const KEYS: {
42
42
  readonly D: "d";
43
43
  readonly E: "e";
44
44
  readonly G: "g";
45
- readonly I: "i";
46
45
  readonly L: "l";
47
46
  readonly O: "o";
48
47
  readonly P: "p";
@@ -57,6 +56,6 @@ export declare const KEYS: {
57
56
  };
58
57
  export declare type Key = keyof typeof KEYS;
59
58
  export declare const isArrowKey: (key: string) => boolean;
60
- export declare const shouldResizeFromCenter: (event: MouseEvent | KeyboardEvent) => boolean;
61
- export declare const shouldMaintainAspectRatio: (event: MouseEvent | KeyboardEvent) => boolean;
62
- export declare const shouldRotateWithDiscreteAngle: (event: MouseEvent | KeyboardEvent) => boolean;
59
+ export declare const getResizeCenterPointKey: (event: MouseEvent | KeyboardEvent) => boolean;
60
+ export declare const getResizeWithSidesSameLengthKey: (event: MouseEvent | KeyboardEvent) => boolean;
61
+ export declare const getRotateWithDiscreteAngleKey: (event: MouseEvent | KeyboardEvent) => boolean;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -31,26 +31,33 @@ export namespace module {
31
31
  };
32
32
  };
33
33
  })[];
34
+ type?: undefined;
34
35
  } | {
35
36
  test: RegExp;
36
37
  exclude: RegExp;
37
- use: {
38
+ use: ({
38
39
  loader: string;
39
40
  options: {
40
41
  transpileOnly: boolean;
41
42
  configFile: string;
43
+ presets?: undefined;
44
+ plugins?: undefined;
42
45
  };
43
- }[];
44
- } | {
45
- test: RegExp;
46
- use: {
46
+ } | {
47
47
  loader: string;
48
48
  options: {
49
- name: string;
50
- outputPath: string;
49
+ presets: string[];
50
+ plugins: string[];
51
+ transpileOnly?: undefined;
52
+ configFile?: undefined;
51
53
  };
52
- }[];
54
+ })[];
55
+ type?: undefined;
56
+ } | {
57
+ test: RegExp;
58
+ type: string;
53
59
  exclude?: undefined;
60
+ use?: undefined;
54
61
  })[];
55
62
  }
56
63
  export namespace optimization {
@@ -9,7 +9,7 @@ declare type ExportOpts = {
9
9
  scale: number;
10
10
  };
11
11
  };
12
- export declare const exportToCanvas: ({ elements, appState, getDimensions, }: ExportOpts) => Promise<HTMLCanvasElement>;
12
+ export declare const exportToCanvas: ({ elements, appState, getDimensions, }: ExportOpts) => HTMLCanvasElement;
13
13
  export declare const exportToBlob: (opts: ExportOpts & {
14
14
  mimeType?: string;
15
15
  quality?: number;
@@ -3,11 +3,10 @@ import { RoughCanvas } from "roughjs/bin/canvas";
3
3
  import { Drawable, Options } from "roughjs/bin/core";
4
4
  import { RoughSVG } from "roughjs/bin/svg";
5
5
  import { SceneState } from "../scene/types";
6
- import { AppState, Zoom } from "../types";
6
+ import { Zoom } from "../types";
7
7
  export interface ExcalidrawElementWithCanvas {
8
8
  element: ExcalidrawElement | ExcalidrawTextElement;
9
9
  canvas: HTMLCanvasElement;
10
- theme: SceneState["theme"];
11
10
  canvasZoom: Zoom["value"];
12
11
  canvasOffsetX: number;
13
12
  canvasOffsetY: number;
@@ -16,7 +15,7 @@ export declare const getShapeForElement: (element: ExcalidrawElement) => Drawabl
16
15
  export declare const invalidateShapeForElement: (element: ExcalidrawElement) => boolean;
17
16
  export declare const generateRoughOptions: (element: ExcalidrawElement, continuousPath?: boolean) => Options;
18
17
  export declare const renderElement: (element: NonDeletedExcalidrawElement, rc: RoughCanvas, context: CanvasRenderingContext2D, renderOptimizations: boolean, sceneState: SceneState) => void;
19
- export declare const renderElementToSvg: (element: NonDeletedExcalidrawElement, rsvg: RoughSVG, svgRoot: SVGElement, files: AppState["files"], offsetX?: number | undefined, offsetY?: number | undefined) => void;
18
+ export declare const renderElementToSvg: (element: NonDeletedExcalidrawElement, rsvg: RoughSVG, svgRoot: SVGElement, offsetX?: number | undefined, offsetY?: number | undefined) => void;
20
19
  export declare const pathsCache: WeakMap<ExcalidrawFreeDrawElement, Path2D>;
21
20
  export declare function generateFreeDrawShape(element: ExcalidrawFreeDrawElement): Path2D;
22
21
  export declare function getFreeDrawPath2D(element: ExcalidrawFreeDrawElement): Path2D | undefined;
@@ -3,12 +3,11 @@ import { RoughSVG } from "roughjs/bin/svg";
3
3
  import { AppState } from "../types";
4
4
  import { NonDeletedExcalidrawElement } from "../element/types";
5
5
  import { SceneState } from "../scene/types";
6
- export declare const renderScene: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState, selectionElement: NonDeletedExcalidrawElement | null, scale: number, rc: RoughCanvas, canvas: HTMLCanvasElement, sceneState: SceneState, { renderScrollbars, renderSelection, renderOptimizations, renderGrid, isExport, }?: {
6
+ export declare const renderScene: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState, selectionElement: NonDeletedExcalidrawElement | null, scale: number, rc: RoughCanvas, canvas: HTMLCanvasElement, sceneState: SceneState, { renderScrollbars, renderSelection, renderOptimizations, renderGrid, }?: {
7
7
  renderScrollbars?: boolean | undefined;
8
8
  renderSelection?: boolean | undefined;
9
9
  renderOptimizations?: boolean | undefined;
10
10
  renderGrid?: boolean | undefined;
11
- isExport?: boolean | undefined;
12
11
  }) => {
13
12
  atLeastOneVisibleElement: boolean;
14
13
  scrollBars?: undefined;
@@ -16,7 +15,7 @@ export declare const renderScene: (elements: readonly NonDeletedExcalidrawElemen
16
15
  atLeastOneVisibleElement: boolean;
17
16
  scrollBars: import("../scene/types").ScrollBars | undefined;
18
17
  };
19
- export declare const renderSceneToSvg: (elements: readonly NonDeletedExcalidrawElement[], rsvg: RoughSVG, svgRoot: SVGElement, files: AppState["files"], { offsetX, offsetY, }?: {
18
+ export declare const renderSceneToSvg: (elements: readonly NonDeletedExcalidrawElement[], rsvg: RoughSVG, svgRoot: SVGElement, { offsetX, offsetY, }?: {
20
19
  offsetX?: number | undefined;
21
20
  offsetY?: number | undefined;
22
21
  }) => void;
@@ -8,7 +8,7 @@ export declare const exportToCanvas: (elements: readonly NonDeletedExcalidrawEle
8
8
  }, createCanvas?: (width: number, height: number) => {
9
9
  canvas: HTMLCanvasElement;
10
10
  scale: number;
11
- }) => Promise<HTMLCanvasElement>;
11
+ }) => HTMLCanvasElement;
12
12
  export declare const exportToSvg: (elements: readonly NonDeletedExcalidrawElement[], appState: {
13
13
  exportBackground: boolean;
14
14
  exportPadding?: number;
@@ -16,6 +16,5 @@ export declare const exportToSvg: (elements: readonly NonDeletedExcalidrawElemen
16
16
  viewBackgroundColor: string;
17
17
  exportWithDarkMode?: boolean;
18
18
  exportEmbedScene?: boolean;
19
- files: AppState["files"];
20
19
  }) => Promise<SVGSVGElement>;
21
20
  export declare const getExportSize: (elements: readonly NonDeletedExcalidrawElement[], exportPadding: number, scale: number) => [number, number];
@@ -1,9 +1,10 @@
1
- import { ExcalidrawTextElement, ImageId } from "../element/types";
2
- import { AppState, Zoom } from "../types";
1
+ import { ExcalidrawTextElement } from "../element/types";
2
+ import { Zoom } from "../types";
3
3
  export declare type SceneState = {
4
4
  scrollX: number;
5
5
  scrollY: number;
6
6
  viewBackgroundColor: string | null;
7
+ exportWithDarkMode?: boolean;
7
8
  zoom: Zoom;
8
9
  shouldCacheIgnoreZoom: boolean;
9
10
  remotePointerViewportCoords: {
@@ -24,8 +25,6 @@ export declare type SceneState = {
24
25
  remotePointerUserStates: {
25
26
  [id: string]: string;
26
27
  };
27
- theme: AppState["theme"];
28
- imageCache: Map<ImageId, HTMLImageElement>;
29
28
  };
30
29
  export declare type SceneScroll = {
31
30
  scrollX: number;
package/types/shapes.d.ts CHANGED
@@ -31,9 +31,5 @@ export declare const SHAPES: readonly [{
31
31
  readonly icon: JSX.Element;
32
32
  readonly value: "text";
33
33
  readonly key: "t";
34
- }, {
35
- readonly icon: JSX.Element;
36
- readonly value: "image";
37
- readonly key: "i";
38
34
  }];
39
- export declare const findShapeByKey: (key: string) => "line" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "text" | "arrow" | "freedraw" | null;
35
+ export declare const findShapeByKey: (key: string) => "line" | "selection" | "rectangle" | "diamond" | "ellipse" | "text" | "arrow" | "freedraw" | null;
package/types/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, ExcalidrawTextElement, ImageId, ExcalidrawImageElement } from "./element/types";
2
+ import { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, ExcalidrawTextElement } from "./element/types";
3
3
  import { SHAPES } from "./shapes";
4
4
  import { Point as RoughPoint } from "roughjs/bin/geometry";
5
5
  import { LinearElementEditor } from "./element/linearElementEditor";
@@ -12,7 +12,7 @@ import { Language } from "./i18n";
12
12
  import { ClipboardData } from "./clipboard";
13
13
  import { isOverScrollBars } from "./scene";
14
14
  import { MaybeTransformHandleType } from "./element/transformHandles";
15
- import Library from "./data/library";
15
+ import { FileSystemHandle } from "./data/filesystem";
16
16
  export declare type Point = Readonly<RoughPoint>;
17
17
  export declare type Collaborator = {
18
18
  pointer?: {
@@ -28,16 +28,7 @@ export declare type Collaborator = {
28
28
  stroke: string;
29
29
  };
30
30
  };
31
- export declare type DataURL = string & {
32
- _brand: "DataURL";
33
- };
34
- export declare type BinaryFileData = {
35
- type: "image" | "other";
36
- id: ImageId;
37
- dataURL: DataURL;
38
- };
39
31
  export declare type AppState = {
40
- files: Record<ExcalidrawElement["id"], BinaryFileData>;
41
32
  isLoading: boolean;
42
33
  errorMessage: string | null;
43
34
  draggingElement: NonDeletedExcalidrawElement | null;
@@ -106,7 +97,7 @@ export declare type AppState = {
106
97
  offsetTop: number;
107
98
  offsetLeft: number;
108
99
  isLibraryOpen: boolean;
109
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
100
+ fileHandle: FileSystemHandle | null;
110
101
  collaborators: Map<string, Collaborator>;
111
102
  showStats: boolean;
112
103
  currentChartType: ChartType;
@@ -117,8 +108,6 @@ export declare type AppState = {
117
108
  shown: true;
118
109
  data: Spreadsheet;
119
110
  };
120
- /** imageElement waiting to be placed on canvas */
121
- pendingImageElement: NonDeleted<ExcalidrawImageElement> | null;
122
111
  };
123
112
  export declare type NormalizedZoomValue = number & {
124
113
  _brand: "normalizedZoom";
@@ -224,15 +213,6 @@ export declare type AppProps = ExcalidrawProps & {
224
213
  detectScroll: boolean;
225
214
  handleKeyboardGlobally: boolean;
226
215
  };
227
- /** A subset of App class properties that we need to use elsewhere
228
- * in the app, eg Manager. Factored out into a separate type to keep DRY. */
229
- export declare type AppClassProperties = {
230
- props: AppProps;
231
- canvas: HTMLCanvasElement | null;
232
- focusContainer(): void;
233
- library: Library;
234
- imageCache: Map<ImageId, HTMLImageElement>;
235
- };
236
216
  export declare type PointerDownState = Readonly<{
237
217
  origin: Readonly<{
238
218
  x: number;
@@ -297,7 +277,6 @@ export declare type ExcalidrawImperativeAPI = {
297
277
  refresh: InstanceType<typeof App>["refresh"];
298
278
  importLibrary: InstanceType<typeof App>["importLibraryFromUrl"];
299
279
  setToastMessage: InstanceType<typeof App>["setToastMessage"];
300
- setFiles: (data: AppState["files"][number][]) => void;
301
280
  readyPromise: ResolvablePromise<ExcalidrawImperativeAPI>;
302
281
  ready: true;
303
282
  id: string;
package/types/zindex.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ExcalidrawElement } from "./element/types";
2
2
  import { AppState } from "./types";
3
- export declare const moveOneLeft: (elements: readonly ExcalidrawElement[], appState: AppState) => (import("./element/types").ExcalidrawLinearElement | import("./element/types").ExcalidrawSelectionElement | import("./element/types").ExcalidrawRectangleElement | import("./element/types").ExcalidrawDiamondElement | import("./element/types").ExcalidrawEllipseElement | import("./element/types").ExcalidrawImageElement | import("./element/types").ExcalidrawTextElement | import("./element/types").ExcalidrawFreeDrawElement)[];
4
- export declare const moveOneRight: (elements: readonly ExcalidrawElement[], appState: AppState) => (import("./element/types").ExcalidrawLinearElement | import("./element/types").ExcalidrawSelectionElement | import("./element/types").ExcalidrawRectangleElement | import("./element/types").ExcalidrawDiamondElement | import("./element/types").ExcalidrawEllipseElement | import("./element/types").ExcalidrawImageElement | import("./element/types").ExcalidrawTextElement | import("./element/types").ExcalidrawFreeDrawElement)[];
3
+ export declare const moveOneLeft: (elements: readonly ExcalidrawElement[], appState: AppState) => (import("./element/types").ExcalidrawLinearElement | import("./element/types").ExcalidrawSelectionElement | import("./element/types").ExcalidrawRectangleElement | import("./element/types").ExcalidrawDiamondElement | import("./element/types").ExcalidrawEllipseElement | import("./element/types").ExcalidrawTextElement | import("./element/types").ExcalidrawFreeDrawElement)[];
4
+ export declare const moveOneRight: (elements: readonly ExcalidrawElement[], appState: AppState) => (import("./element/types").ExcalidrawLinearElement | import("./element/types").ExcalidrawSelectionElement | import("./element/types").ExcalidrawRectangleElement | import("./element/types").ExcalidrawDiamondElement | import("./element/types").ExcalidrawEllipseElement | import("./element/types").ExcalidrawTextElement | import("./element/types").ExcalidrawFreeDrawElement)[];
5
5
  export declare const moveAllLeft: (elements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[];
6
6
  export declare const moveAllRight: (elements: readonly ExcalidrawElement[], appState: AppState) => readonly ExcalidrawElement[];