@excalidraw/excalidraw 0.10.0 → 0.11.0-5346-59101a1

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 (404) hide show
  1. package/CHANGELOG.md +1153 -0
  2. package/README.md +537 -119
  3. package/README_NEXT.md +1345 -0
  4. package/dist/excalidraw-assets/i18n-ar-SA-json-f37c9765d6ba9c94db28.js +1 -0
  5. package/dist/excalidraw-assets/i18n-bg-BG-json-d8c72e41cf02e763b54c.js +1 -0
  6. package/dist/excalidraw-assets/i18n-bn-BD-json-246ddff2b69891d1399d.js +1 -0
  7. package/dist/excalidraw-assets/i18n-ca-ES-json-2583291c4633e96df9d6.js +1 -0
  8. package/dist/excalidraw-assets/i18n-cs-CZ-json-7fb82d30a7139f991154.js +1 -0
  9. package/dist/excalidraw-assets/i18n-da-DK-json-5f58e2d75044deee8410.js +1 -0
  10. package/dist/excalidraw-assets/i18n-de-DE-json-20912cca3094f0524a21.js +1 -0
  11. package/dist/excalidraw-assets/i18n-el-GR-json-96277306136a9ee3d56c.js +1 -0
  12. package/dist/excalidraw-assets/i18n-es-ES-json-2d9209d0d8b45e340212.js +1 -0
  13. package/dist/excalidraw-assets/i18n-eu-ES-json-40142a580d932c8cb50d.js +1 -0
  14. package/dist/excalidraw-assets/i18n-fa-IR-json-5aa04fe7e238f87f3607.js +1 -0
  15. package/dist/excalidraw-assets/i18n-fi-FI-json-2e5665a625fe47e2a60f.js +1 -0
  16. package/dist/excalidraw-assets/i18n-fr-FR-json-ad79d60ccbf7da435101.js +1 -0
  17. package/dist/excalidraw-assets/i18n-he-IL-json-5aa3ca202abb250e82bd.js +1 -0
  18. package/dist/excalidraw-assets/i18n-hi-IN-json-8fe2d63926e008f5725c.js +1 -0
  19. package/dist/excalidraw-assets/i18n-hu-HU-json-78e1c51d6d92ed32aa2f.js +1 -0
  20. package/dist/excalidraw-assets/i18n-id-ID-json-6c529ed7cc3d5353bdc0.js +1 -0
  21. package/dist/excalidraw-assets/i18n-it-IT-json-7c39e59e8682963a7851.js +1 -0
  22. package/dist/excalidraw-assets/i18n-ja-JP-json-2263e6c8e274763d04cc.js +1 -0
  23. package/dist/excalidraw-assets/i18n-kab-KAB-json-9974a930bde67748d79a.js +1 -0
  24. package/dist/excalidraw-assets/i18n-kk-KZ-json-b1da82815e51b638b28e.js +1 -0
  25. package/dist/excalidraw-assets/i18n-ko-KR-json-36dce31f57535a3884fc.js +1 -0
  26. package/dist/excalidraw-assets/i18n-lt-LT-json-7e4b8147241a2807a1f1.js +1 -0
  27. package/dist/excalidraw-assets/i18n-lv-LV-json-0292c4b3153e02ba01cc.js +1 -0
  28. package/dist/excalidraw-assets/i18n-mr-IN-json-85e3bad5588e60eda6ed.js +1 -0
  29. package/dist/excalidraw-assets/i18n-my-MM-json-a50d126ec63009915802.js +1 -0
  30. package/dist/excalidraw-assets/i18n-nb-NO-json-dd7cd6513e3d00551949.js +1 -0
  31. package/dist/excalidraw-assets/i18n-nl-NL-json-a2e36932c7b397dfdf8b.js +1 -0
  32. package/dist/excalidraw-assets/i18n-nn-NO-json-76159e8cfa136255e657.js +1 -0
  33. package/dist/excalidraw-assets/i18n-oc-FR-json-8fcbd2e5e589bc9b3f05.js +1 -0
  34. package/dist/excalidraw-assets/i18n-pa-IN-json-664d068563584bb41ae4.js +1 -0
  35. package/dist/excalidraw-assets/i18n-pl-PL-json-17d817993f240f65dc1f.js +1 -0
  36. package/dist/excalidraw-assets/i18n-pt-BR-json-dfbe3455644130e9851c.js +1 -0
  37. package/dist/excalidraw-assets/i18n-pt-PT-json-bda935fce18a7b179bcb.js +1 -0
  38. package/dist/excalidraw-assets/i18n-ro-RO-json-3473997bac53931c8b1c.js +1 -0
  39. package/dist/excalidraw-assets/i18n-ru-RU-json-2a58c91c91fbb9009a4a.js +1 -0
  40. package/dist/excalidraw-assets/i18n-si-LK-json-0ad49043e4c810f4e8f2.js +1 -0
  41. package/dist/excalidraw-assets/i18n-sk-SK-json-6a88d3cef7420263d448.js +1 -0
  42. package/dist/excalidraw-assets/i18n-sl-SI-json-d883f256ad475721b51e.js +1 -0
  43. package/dist/excalidraw-assets/i18n-sv-SE-json-ab9784b6a181e4b3e52b.js +1 -0
  44. package/dist/excalidraw-assets/i18n-ta-IN-json-49b6bc876b7703f493e7.js +1 -0
  45. package/dist/excalidraw-assets/i18n-tr-TR-json-e6a720f75140ee82da6d.js +1 -0
  46. package/dist/excalidraw-assets/i18n-uk-UA-json-1d95323ec8040114490e.js +1 -0
  47. package/dist/excalidraw-assets/i18n-zh-CN-json-facce09827627d918c14.js +1 -0
  48. package/dist/excalidraw-assets/i18n-zh-HK-json-a6e21fe69a6a6f8c8ea6.js +1 -0
  49. package/dist/excalidraw-assets/i18n-zh-TW-json-37610fbce479c7f8cef2.js +1 -0
  50. package/dist/excalidraw-assets/vendor-52b1f3361986b6c6a4fe.js +2 -0
  51. package/dist/excalidraw-assets/vendor-52b1f3361986b6c6a4fe.js.LICENSE.txt +12 -0
  52. package/dist/excalidraw-assets-dev/i18n-ar-SA-json-505ef559f47ea6b69719.js +22 -0
  53. package/dist/excalidraw-assets-dev/i18n-bg-BG-json-bcb00de8d85335103437.js +22 -0
  54. package/dist/excalidraw-assets-dev/i18n-bn-BD-json-20cb88b768b6656f69a0.js +22 -0
  55. package/dist/excalidraw-assets-dev/i18n-ca-ES-json-c0a2946ac526da48c821.js +22 -0
  56. package/dist/excalidraw-assets-dev/i18n-cs-CZ-json-3b57cc3db37bad8747c9.js +22 -0
  57. package/dist/excalidraw-assets-dev/i18n-da-DK-json-9fd1d27b5e867510c0c4.js +22 -0
  58. package/dist/excalidraw-assets-dev/i18n-de-DE-json-80aa4aed6cc5f0f47bec.js +22 -0
  59. package/dist/excalidraw-assets-dev/i18n-el-GR-json-08221c6f5387a7ef440e.js +22 -0
  60. package/dist/excalidraw-assets-dev/i18n-es-ES-json-bb7d7aa7840ad87ac15d.js +22 -0
  61. package/dist/excalidraw-assets-dev/i18n-eu-ES-json-1aff52bfd1a98cc073a3.js +22 -0
  62. package/dist/excalidraw-assets-dev/i18n-fa-IR-json-1af59f1130dd499b2aee.js +22 -0
  63. package/dist/excalidraw-assets-dev/i18n-fi-FI-json-874b4f80c8cb7c54ba9e.js +22 -0
  64. package/dist/excalidraw-assets-dev/i18n-fr-FR-json-b55b922b008349e24e30.js +22 -0
  65. package/dist/excalidraw-assets-dev/i18n-he-IL-json-e16fce9c2852e89a31f2.js +22 -0
  66. package/dist/excalidraw-assets-dev/i18n-hi-IN-json-96d1324664dcf226249e.js +22 -0
  67. package/dist/excalidraw-assets-dev/i18n-hu-HU-json-5e29c373127695ccfe28.js +22 -0
  68. package/dist/excalidraw-assets-dev/i18n-id-ID-json-c3b8c47e9f2cd5a218a4.js +22 -0
  69. package/dist/excalidraw-assets-dev/i18n-it-IT-json-c4ba0fd51730152b3389.js +22 -0
  70. package/dist/excalidraw-assets-dev/i18n-ja-JP-json-4fb9df48c7c2aca8709b.js +22 -0
  71. package/dist/excalidraw-assets-dev/i18n-kab-KAB-json-56a2f5b742bb44d84587.js +22 -0
  72. package/dist/excalidraw-assets-dev/i18n-kk-KZ-json-69f5849187a51635aa55.js +22 -0
  73. package/dist/excalidraw-assets-dev/i18n-ko-KR-json-be749d83561b4547fca0.js +22 -0
  74. package/dist/excalidraw-assets-dev/i18n-lt-LT-json-f74d8fbb36e64d164cb3.js +22 -0
  75. package/dist/excalidraw-assets-dev/i18n-lv-LV-json-05cafa9d59e825d37a30.js +22 -0
  76. package/dist/excalidraw-assets-dev/i18n-mr-IN-json-4df0aaed6b5bd9c354bf.js +22 -0
  77. package/dist/excalidraw-assets-dev/i18n-my-MM-json-10cd0a77755d74cc2d88.js +22 -0
  78. package/dist/excalidraw-assets-dev/i18n-nb-NO-json-0328d43c8eb21619f1ef.js +22 -0
  79. package/dist/excalidraw-assets-dev/i18n-nl-NL-json-ce7bba8e06a59e62a4d0.js +22 -0
  80. package/dist/excalidraw-assets-dev/i18n-nn-NO-json-64d56d9257aa9516e081.js +22 -0
  81. package/dist/excalidraw-assets-dev/i18n-oc-FR-json-efae2c9bbbc42a6f6c70.js +22 -0
  82. package/dist/excalidraw-assets-dev/i18n-pa-IN-json-6378d9552735e33a9fe3.js +22 -0
  83. package/dist/excalidraw-assets-dev/i18n-pl-PL-json-ed1bf39b6b8f8061299d.js +22 -0
  84. package/dist/excalidraw-assets-dev/i18n-pt-BR-json-2a02a619bfa9700ce852.js +22 -0
  85. package/dist/excalidraw-assets-dev/i18n-pt-PT-json-d28b9a54ff94e15ff9bb.js +22 -0
  86. package/dist/excalidraw-assets-dev/i18n-ro-RO-json-00d5715f05aa3063960a.js +22 -0
  87. package/dist/excalidraw-assets-dev/i18n-ru-RU-json-ac0637166d5b462e339f.js +22 -0
  88. package/dist/excalidraw-assets-dev/i18n-si-LK-json-63d7c3f1c548dd28b002.js +22 -0
  89. package/dist/excalidraw-assets-dev/i18n-sk-SK-json-42cdbcaa7b9a48f2d39f.js +22 -0
  90. package/dist/excalidraw-assets-dev/i18n-sl-SI-json-56b1f2e0db09f030df1d.js +22 -0
  91. package/dist/excalidraw-assets-dev/i18n-sv-SE-json-3eb8200f34c205bc6564.js +22 -0
  92. package/dist/excalidraw-assets-dev/i18n-ta-IN-json-6d1328c5b1be8952f272.js +22 -0
  93. package/dist/excalidraw-assets-dev/i18n-tr-TR-json-f19e7eace448e972fc37.js +22 -0
  94. package/dist/excalidraw-assets-dev/i18n-uk-UA-json-da0e1d496b320531f5dc.js +22 -0
  95. package/dist/excalidraw-assets-dev/i18n-zh-CN-json-84fc26b884a0a83892c9.js +22 -0
  96. package/dist/excalidraw-assets-dev/i18n-zh-HK-json-07799e9c9378a2263273.js +22 -0
  97. package/dist/excalidraw-assets-dev/i18n-zh-TW-json-61c7460fdc361e477121.js +22 -0
  98. package/dist/excalidraw-assets-dev/vendor-c0592035c3911af79359.js +98 -0
  99. package/dist/excalidraw.development.js +975 -286
  100. package/dist/excalidraw.production.min.js +1 -1
  101. package/dist/excalidraw.production.min.js.LICENSE.txt +9 -2
  102. package/package.json +32 -25
  103. package/types/actions/actionAddToLibrary.d.ts +298 -1
  104. package/types/actions/actionAlign.d.ts +91 -6
  105. package/types/actions/actionBoundText.d.ts +123 -0
  106. package/types/actions/actionCanvas.d.ts +861 -8
  107. package/types/actions/actionClipboard.d.ts +563 -4
  108. package/types/actions/actionDeleteSelected.d.ts +323 -1
  109. package/types/actions/actionDistribute.d.ts +33 -2
  110. package/types/actions/actionDuplicateSelection.d.ts +22 -1
  111. package/types/actions/actionExport.d.ts +956 -8
  112. package/types/actions/actionFinalize.d.ts +206 -1
  113. package/types/actions/actionFlip.d.ts +35 -2
  114. package/types/actions/actionGroup.d.ts +45 -2
  115. package/types/actions/actionMenu.d.ts +334 -4
  116. package/types/actions/actionNavigate.d.ts +14 -1
  117. package/types/actions/actionProperties.d.ts +1389 -12
  118. package/types/actions/actionSelectAll.d.ts +15 -1
  119. package/types/actions/actionStyles.d.ts +125 -2
  120. package/types/actions/actionToggleGridMode.d.ts +111 -1
  121. package/types/actions/actionToggleLock.d.ts +17 -0
  122. package/types/actions/actionToggleStats.d.ts +109 -1
  123. package/types/actions/actionToggleViewMode.d.ts +110 -1
  124. package/types/actions/actionToggleZenMode.d.ts +110 -1
  125. package/types/actions/actionZindex.d.ts +67 -4
  126. package/types/actions/index.d.ts +5 -2
  127. package/types/actions/manager.d.ts +6 -14
  128. package/types/actions/register.d.ts +3 -1
  129. package/types/actions/shortcuts.d.ts +2 -1
  130. package/types/actions/types.d.ts +13 -22
  131. package/types/align.d.ts +0 -1
  132. package/types/analytics.d.ts +1 -1
  133. package/types/appState.d.ts +27 -11
  134. package/types/charts.d.ts +8 -0
  135. package/types/clipboard.d.ts +5 -4
  136. package/types/components/Actions.d.ts +9 -5
  137. package/types/components/App.d.ts +67 -16
  138. package/types/components/Avatar.d.ts +3 -2
  139. package/types/components/ButtonIconSelect.d.ts +1 -0
  140. package/types/components/Card.d.ts +1 -1
  141. package/types/components/CheckboxItem.d.ts +2 -1
  142. package/types/components/ClearCanvas.d.ts +5 -0
  143. package/types/components/ColorPicker.d.ts +6 -1
  144. package/types/components/ConfirmDialog.d.ts +11 -0
  145. package/types/components/ContextMenu.d.ts +3 -0
  146. package/types/components/DarkModeToggle.d.ts +3 -3
  147. package/types/components/Dialog.d.ts +4 -2
  148. package/types/components/HintViewer.d.ts +3 -2
  149. package/types/components/ImageExportDialog.d.ts +5 -4
  150. package/types/components/InitializeApp.d.ts +2 -10
  151. package/types/components/JSONExportDialog.d.ts +6 -5
  152. package/types/components/LayerUI.d.ts +12 -5
  153. package/types/components/LibraryButton.d.ts +1 -0
  154. package/types/components/LibraryMenu.d.ts +18 -0
  155. package/types/components/LibraryMenuItems.d.ts +24 -0
  156. package/types/components/LibraryUnit.d.ts +9 -5
  157. package/types/components/LoadingMessage.d.ts +3 -1
  158. package/types/components/LockButton.d.ts +1 -0
  159. package/types/components/MobileMenu.d.ts +8 -2
  160. package/types/components/Modal.d.ts +1 -0
  161. package/types/components/PasteChartDialog.d.ts +1 -1
  162. package/types/components/PenModeButton.d.ts +13 -0
  163. package/types/components/Popover.d.ts +5 -1
  164. package/types/components/PublishLibrary.d.ts +17 -0
  165. package/types/components/SidebarLockButton.d.ts +9 -0
  166. package/types/components/SingleLibraryItem.d.ts +11 -0
  167. package/types/components/Spinner.d.ts +7 -0
  168. package/types/components/Stack.d.ts +1 -1
  169. package/types/components/ToolButton.d.ts +13 -2
  170. package/types/components/Tooltip.d.ts +9 -1
  171. package/types/components/UserList.d.ts +6 -5
  172. package/types/components/icons.d.ts +57 -40
  173. package/types/constants.d.ts +42 -8
  174. package/types/data/blob.d.ts +40 -4
  175. package/types/data/encode.d.ts +29 -1
  176. package/types/data/encryption.d.ts +9 -0
  177. package/types/data/filesystem.d.ts +5 -5
  178. package/types/data/index.d.ts +2 -2
  179. package/types/data/json.d.ts +8 -9
  180. package/types/data/library.d.ts +90 -8
  181. package/types/data/resave.d.ts +3 -3
  182. package/types/data/restore.d.ts +5 -3
  183. package/types/data/types.d.ts +9 -4
  184. package/types/{disitrubte.d.ts → distribute.d.ts} +0 -1
  185. package/types/element/Hyperlink.d.ts +131 -0
  186. package/types/element/bounds.d.ts +12 -1
  187. package/types/element/collision.d.ts +4 -2
  188. package/types/element/dragElements.d.ts +3 -5
  189. package/types/element/image.d.ts +22 -0
  190. package/types/element/index.d.ts +2 -4
  191. package/types/element/linearElementEditor.d.ts +142 -9
  192. package/types/element/mutateElement.d.ts +2 -2
  193. package/types/element/newElement.d.ts +8 -3
  194. package/types/element/resizeElements.d.ts +3 -3
  195. package/types/element/sizeHelpers.d.ts +2 -1
  196. package/types/element/textElement.d.ts +26 -2
  197. package/types/element/textWysiwyg.d.ts +6 -5
  198. package/types/element/typeChecks.d.ts +11 -5
  199. package/types/element/types.d.ts +35 -8
  200. package/types/galines.d.ts +1 -1
  201. package/types/groups.d.ts +1 -0
  202. package/types/i18n.d.ts +1 -1
  203. package/types/jotai.d.ts +120 -0
  204. package/types/keys.d.ts +10 -3
  205. package/types/packages/excalidraw/dist/{excalidraw-assets-dev/vendor-1f85eb76a52b1d218411.d.ts → excalidraw-assets/i18n-ar-SA-json-f37c9765d6ba9c94db28.d.ts} +0 -0
  206. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-ar-SA-json-a98b3a07a69a56aa6ddc.d.ts → i18n-bg-BG-json-d8c72e41cf02e763b54c.d.ts} +0 -0
  207. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-bg-BG-json-63af3f6053ca50d0c1a3.d.ts → i18n-bn-BD-json-246ddff2b69891d1399d.d.ts} +0 -0
  208. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-ca-ES-json-6f613ec62c184eed761c.d.ts → i18n-ca-ES-json-2583291c4633e96df9d6.d.ts} +0 -0
  209. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-cs-CZ-json-c485bdbc1ad44e51f1f1.d.ts → i18n-cs-CZ-json-7fb82d30a7139f991154.d.ts} +0 -0
  210. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-da-DK-json-fdc74fe43abb7f09253d.d.ts → i18n-da-DK-json-5f58e2d75044deee8410.d.ts} +0 -0
  211. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-de-DE-json-2984c3ea70efb6a7673c.d.ts → i18n-de-DE-json-20912cca3094f0524a21.d.ts} +0 -0
  212. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-el-GR-json-ef1babaff2ea7b0ca48c.d.ts → i18n-el-GR-json-96277306136a9ee3d56c.d.ts} +0 -0
  213. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-es-ES-json-770832e8199e76bcea31.d.ts → i18n-es-ES-json-2d9209d0d8b45e340212.d.ts} +0 -0
  214. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-fa-IR-json-5d17bed42e8aa3e26778.d.ts → i18n-eu-ES-json-40142a580d932c8cb50d.d.ts} +0 -0
  215. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-fi-FI-json-1856fe5f0aa5f6733c71.d.ts → i18n-fa-IR-json-5aa04fe7e238f87f3607.d.ts} +0 -0
  216. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-fr-FR-json-7e2c395dc072fbeb4dc8.d.ts → i18n-fi-FI-json-2e5665a625fe47e2a60f.d.ts} +0 -0
  217. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-he-IL-json-c22c852f5d1007b76cfd.d.ts → i18n-fr-FR-json-ad79d60ccbf7da435101.d.ts} +0 -0
  218. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-hi-IN-json-3577c3ff017e2af147ee.d.ts → i18n-he-IL-json-5aa3ca202abb250e82bd.d.ts} +0 -0
  219. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-hu-HU-json-2173dae4a84d3f943a3d.d.ts → i18n-hi-IN-json-8fe2d63926e008f5725c.d.ts} +0 -0
  220. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-id-ID-json-36ef4139fdc39bd473e9.d.ts → i18n-hu-HU-json-78e1c51d6d92ed32aa2f.d.ts} +0 -0
  221. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-it-IT-json-55de4a420bc2799d63ac.d.ts → i18n-id-ID-json-6c529ed7cc3d5353bdc0.d.ts} +0 -0
  222. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-ja-JP-json-10da607a92dd9ee4b6b1.d.ts → i18n-it-IT-json-7c39e59e8682963a7851.d.ts} +0 -0
  223. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-kab-KAB-json-72dfe5e520fb843a911e.d.ts → i18n-ja-JP-json-2263e6c8e274763d04cc.d.ts} +0 -0
  224. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-kk-KZ-json-72a00814a5ea1bc1bd4d.d.ts → i18n-kab-KAB-json-9974a930bde67748d79a.d.ts} +0 -0
  225. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-ko-KR-json-530261d88e915f413822.d.ts → i18n-kk-KZ-json-b1da82815e51b638b28e.d.ts} +0 -0
  226. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-lv-LV-json-efdf3550b88b63639a73.d.ts → i18n-ko-KR-json-36dce31f57535a3884fc.d.ts} +0 -0
  227. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-my-MM-json-9c8f0251105b94363a8f.d.ts → i18n-lt-LT-json-7e4b8147241a2807a1f1.d.ts} +0 -0
  228. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-nb-NO-json-102950eb1c0d17b2be82.d.ts → i18n-lv-LV-json-0292c4b3153e02ba01cc.d.ts} +0 -0
  229. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-nl-NL-json-220f20ddbd7092a3a948.d.ts → i18n-mr-IN-json-85e3bad5588e60eda6ed.d.ts} +0 -0
  230. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-nn-NO-json-5b64fbe09ec2fdc5c686.d.ts → i18n-my-MM-json-a50d126ec63009915802.d.ts} +0 -0
  231. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-oc-FR-json-3fb584025bb45201012f.d.ts → i18n-nb-NO-json-dd7cd6513e3d00551949.d.ts} +0 -0
  232. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-pa-IN-json-b7ad703689a54409b91a.d.ts → i18n-nl-NL-json-a2e36932c7b397dfdf8b.d.ts} +0 -0
  233. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-pl-PL-json-589514e9da02be71829e.d.ts → i18n-nn-NO-json-76159e8cfa136255e657.d.ts} +0 -0
  234. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-pt-BR-json-5eb00d985874b4016992.d.ts → i18n-oc-FR-json-8fcbd2e5e589bc9b3f05.d.ts} +0 -0
  235. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-pt-PT-json-fb8bc9b15f2d232ce452.d.ts → i18n-pa-IN-json-664d068563584bb41ae4.d.ts} +0 -0
  236. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-ro-RO-json-dc651de2037f6a904212.d.ts → i18n-pl-PL-json-17d817993f240f65dc1f.d.ts} +0 -0
  237. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-ru-RU-json-1620932d8cf3b49dbac7.d.ts → i18n-pt-BR-json-dfbe3455644130e9851c.d.ts} +0 -0
  238. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-sk-SK-json-4fc55e97187d84b3e35f.d.ts → i18n-pt-PT-json-bda935fce18a7b179bcb.d.ts} +0 -0
  239. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-sv-SE-json-5fd1ff062cab18b6c3ec.d.ts → i18n-ro-RO-json-3473997bac53931c8b1c.d.ts} +0 -0
  240. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-tr-TR-json-60da00067a54eacae6ea.d.ts → i18n-ru-RU-json-2a58c91c91fbb9009a4a.d.ts} +0 -0
  241. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-uk-UA-json-3398bd8076ace43903a4.d.ts → i18n-si-LK-json-0ad49043e4c810f4e8f2.d.ts} +0 -0
  242. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-zh-CN-json-9b20d01d442a9938174a.d.ts → i18n-sk-SK-json-6a88d3cef7420263d448.d.ts} +0 -0
  243. package/types/packages/excalidraw/dist/excalidraw-assets/{i18n-zh-TW-json-93a8203eb30054101fcc.d.ts → i18n-sl-SI-json-d883f256ad475721b51e.d.ts} +0 -0
  244. package/types/packages/excalidraw/dist/excalidraw-assets/{image-02a1f3ecd6baf42daaa6.d.ts → i18n-sv-SE-json-ab9784b6a181e4b3e52b.d.ts} +0 -0
  245. package/types/packages/excalidraw/dist/excalidraw-assets/{vendor-881ef50682618d9bd3d3.d.ts → i18n-ta-IN-json-49b6bc876b7703f493e7.d.ts} +0 -0
  246. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-tr-TR-json-e6a720f75140ee82da6d.d.ts +0 -0
  247. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-uk-UA-json-1d95323ec8040114490e.d.ts +0 -0
  248. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-CN-json-facce09827627d918c14.d.ts +0 -0
  249. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-HK-json-a6e21fe69a6a6f8c8ea6.d.ts +0 -0
  250. package/types/packages/excalidraw/dist/excalidraw-assets/i18n-zh-TW-json-37610fbce479c7f8cef2.d.ts +0 -0
  251. package/types/packages/excalidraw/dist/excalidraw-assets/vendor-52b1f3361986b6c6a4fe.d.ts +0 -0
  252. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-ar-SA-json-65bc67ce1607e71d3c60.d.ts → i18n-ar-SA-json-505ef559f47ea6b69719.d.ts} +0 -0
  253. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-bg-BG-json-2e34234671c3f27e834b.d.ts → i18n-bg-BG-json-bcb00de8d85335103437.d.ts} +0 -0
  254. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-ca-ES-json-fc2729f9ec4a48ef830f.d.ts → i18n-bn-BD-json-20cb88b768b6656f69a0.d.ts} +0 -0
  255. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-cs-CZ-json-a5b54f27dd83c625e776.d.ts → i18n-ca-ES-json-c0a2946ac526da48c821.d.ts} +0 -0
  256. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-da-DK-json-2e18fec0eace18cc9d20.d.ts → i18n-cs-CZ-json-3b57cc3db37bad8747c9.d.ts} +0 -0
  257. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-de-DE-json-28622f2358ee065e8411.d.ts → i18n-da-DK-json-9fd1d27b5e867510c0c4.d.ts} +0 -0
  258. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-el-GR-json-3d9a940ed9491b9addc3.d.ts → i18n-de-DE-json-80aa4aed6cc5f0f47bec.d.ts} +0 -0
  259. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-es-ES-json-db6707f20cd2518ad8b3.d.ts → i18n-el-GR-json-08221c6f5387a7ef440e.d.ts} +0 -0
  260. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-fa-IR-json-72cd5824085f3bfcb7a1.d.ts → i18n-es-ES-json-bb7d7aa7840ad87ac15d.d.ts} +0 -0
  261. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-fi-FI-json-1b66bec37676ad9aab1e.d.ts → i18n-eu-ES-json-1aff52bfd1a98cc073a3.d.ts} +0 -0
  262. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-fr-FR-json-843f8bcc26ecf3185344.d.ts → i18n-fa-IR-json-1af59f1130dd499b2aee.d.ts} +0 -0
  263. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-he-IL-json-2679793593de22336d48.d.ts → i18n-fi-FI-json-874b4f80c8cb7c54ba9e.d.ts} +0 -0
  264. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-hi-IN-json-732a1e3f06a5fbb83e8d.d.ts → i18n-fr-FR-json-b55b922b008349e24e30.d.ts} +0 -0
  265. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-hu-HU-json-d6b3d837d675d7375c1e.d.ts → i18n-he-IL-json-e16fce9c2852e89a31f2.d.ts} +0 -0
  266. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-id-ID-json-328fc20f45af18fbbc5b.d.ts → i18n-hi-IN-json-96d1324664dcf226249e.d.ts} +0 -0
  267. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-it-IT-json-6cfbb19fada476d23814.d.ts → i18n-hu-HU-json-5e29c373127695ccfe28.d.ts} +0 -0
  268. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-ja-JP-json-6c84ee63e3effba0eb0a.d.ts → i18n-id-ID-json-c3b8c47e9f2cd5a218a4.d.ts} +0 -0
  269. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-kab-KAB-json-404827528be2a446449d.d.ts → i18n-it-IT-json-c4ba0fd51730152b3389.d.ts} +0 -0
  270. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-kk-KZ-json-03875b16f2b5b4121983.d.ts → i18n-ja-JP-json-4fb9df48c7c2aca8709b.d.ts} +0 -0
  271. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-ko-KR-json-7cd7bfaf5e2b39bd15d8.d.ts → i18n-kab-KAB-json-56a2f5b742bb44d84587.d.ts} +0 -0
  272. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-lv-LV-json-af0cfb3eca967f0fe675.d.ts → i18n-kk-KZ-json-69f5849187a51635aa55.d.ts} +0 -0
  273. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-my-MM-json-b06767407455ca2f4c3f.d.ts → i18n-ko-KR-json-be749d83561b4547fca0.d.ts} +0 -0
  274. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-nb-NO-json-560905b77e939b594348.d.ts → i18n-lt-LT-json-f74d8fbb36e64d164cb3.d.ts} +0 -0
  275. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-nl-NL-json-f132a70ab7b920ac4d8f.d.ts → i18n-lv-LV-json-05cafa9d59e825d37a30.d.ts} +0 -0
  276. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-nn-NO-json-35e531bd3a461f0d1ceb.d.ts → i18n-mr-IN-json-4df0aaed6b5bd9c354bf.d.ts} +0 -0
  277. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-oc-FR-json-68dad2b665d95463621d.d.ts → i18n-my-MM-json-10cd0a77755d74cc2d88.d.ts} +0 -0
  278. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-pa-IN-json-6bec1f7f94b1cf3633f9.d.ts → i18n-nb-NO-json-0328d43c8eb21619f1ef.d.ts} +0 -0
  279. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-pl-PL-json-0b282a1f23c3aa2e8bbb.d.ts → i18n-nl-NL-json-ce7bba8e06a59e62a4d0.d.ts} +0 -0
  280. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-pt-BR-json-cb9dae4e4d99080bbd4c.d.ts → i18n-nn-NO-json-64d56d9257aa9516e081.d.ts} +0 -0
  281. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-pt-PT-json-cabfa4db01426846387f.d.ts → i18n-oc-FR-json-efae2c9bbbc42a6f6c70.d.ts} +0 -0
  282. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-ro-RO-json-0fc304e943c3727d3069.d.ts → i18n-pa-IN-json-6378d9552735e33a9fe3.d.ts} +0 -0
  283. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-ru-RU-json-aae276923a7448546ba9.d.ts → i18n-pl-PL-json-ed1bf39b6b8f8061299d.d.ts} +0 -0
  284. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-sk-SK-json-6672eb5c84a0d06bd3c2.d.ts → i18n-pt-BR-json-2a02a619bfa9700ce852.d.ts} +0 -0
  285. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-sv-SE-json-3738297ef992b7a4e69c.d.ts → i18n-pt-PT-json-d28b9a54ff94e15ff9bb.d.ts} +0 -0
  286. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-tr-TR-json-bc5117a1ab430f3e7fc5.d.ts → i18n-ro-RO-json-00d5715f05aa3063960a.d.ts} +0 -0
  287. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-uk-UA-json-24701ab6a0a1747281aa.d.ts → i18n-ru-RU-json-ac0637166d5b462e339f.d.ts} +0 -0
  288. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-zh-CN-json-77fd3d2d5c8b490cd9c9.d.ts → i18n-si-LK-json-63d7c3f1c548dd28b002.d.ts} +0 -0
  289. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{i18n-zh-TW-json-744589603e44fd0ca7ea.d.ts → i18n-sk-SK-json-42cdbcaa7b9a48f2d39f.d.ts} +0 -0
  290. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-sl-SI-json-56b1f2e0db09f030df1d.d.ts +2 -0
  291. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-sv-SE-json-3eb8200f34c205bc6564.d.ts +2 -0
  292. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-ta-IN-json-6d1328c5b1be8952f272.d.ts +2 -0
  293. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-tr-TR-json-f19e7eace448e972fc37.d.ts +2 -0
  294. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-uk-UA-json-da0e1d496b320531f5dc.d.ts +2 -0
  295. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-zh-CN-json-84fc26b884a0a83892c9.d.ts +2 -0
  296. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-zh-HK-json-07799e9c9378a2263273.d.ts +2 -0
  297. package/types/packages/excalidraw/dist/excalidraw-assets-dev/i18n-zh-TW-json-61c7460fdc361e477121.d.ts +2 -0
  298. package/types/packages/excalidraw/dist/excalidraw-assets-dev/{image-0ad20139bba28f28b031.d.ts → vendor-c0592035c3911af79359.d.ts} +0 -0
  299. package/types/packages/excalidraw/dist/excalidraw.production.min.d.ts +1 -3
  300. package/types/packages/excalidraw/entry.d.ts +0 -2
  301. package/types/packages/excalidraw/env.d.ts +1 -0
  302. package/types/packages/excalidraw/example/App.d.ts +8 -0
  303. package/types/packages/excalidraw/example/index.d.ts +1 -0
  304. package/types/packages/excalidraw/example/initialData.d.ts +172 -0
  305. package/types/packages/excalidraw/example/sidebar/Sidebar.d.ts +5 -0
  306. package/types/packages/excalidraw/index.d.ts +9 -7
  307. package/types/packages/excalidraw/webpack.dev-server.config.d.ts +19 -0
  308. package/types/packages/excalidraw/webpack.dev.config.d.ts +6 -8
  309. package/types/packages/excalidraw/webpack.prod.config.d.ts +7 -8
  310. package/types/packages/utils.d.ts +19 -9
  311. package/types/renderer/renderElement.d.ts +17 -5
  312. package/types/renderer/renderScene.d.ts +5 -9
  313. package/types/scene/Scene.d.ts +2 -3
  314. package/types/scene/comparisons.d.ts +3 -2
  315. package/types/scene/export.d.ts +4 -4
  316. package/types/scene/index.d.ts +2 -2
  317. package/types/scene/selection.d.ts +1 -1
  318. package/types/scene/types.d.ts +16 -8
  319. package/types/scene/zoom.d.ts +12 -5
  320. package/types/shapes.d.ts +7 -3
  321. package/types/types.d.ts +120 -25
  322. package/types/utils.d.ts +48 -8
  323. package/types/zindex.d.ts +2 -2
  324. package/dist/excalidraw-assets/i18n-ar-SA-json-a98b3a07a69a56aa6ddc.js +0 -1
  325. package/dist/excalidraw-assets/i18n-bg-BG-json-63af3f6053ca50d0c1a3.js +0 -1
  326. package/dist/excalidraw-assets/i18n-ca-ES-json-6f613ec62c184eed761c.js +0 -1
  327. package/dist/excalidraw-assets/i18n-cs-CZ-json-c485bdbc1ad44e51f1f1.js +0 -1
  328. package/dist/excalidraw-assets/i18n-da-DK-json-fdc74fe43abb7f09253d.js +0 -1
  329. package/dist/excalidraw-assets/i18n-de-DE-json-2984c3ea70efb6a7673c.js +0 -1
  330. package/dist/excalidraw-assets/i18n-el-GR-json-ef1babaff2ea7b0ca48c.js +0 -1
  331. package/dist/excalidraw-assets/i18n-es-ES-json-770832e8199e76bcea31.js +0 -1
  332. package/dist/excalidraw-assets/i18n-fa-IR-json-5d17bed42e8aa3e26778.js +0 -1
  333. package/dist/excalidraw-assets/i18n-fi-FI-json-1856fe5f0aa5f6733c71.js +0 -1
  334. package/dist/excalidraw-assets/i18n-fr-FR-json-7e2c395dc072fbeb4dc8.js +0 -1
  335. package/dist/excalidraw-assets/i18n-he-IL-json-c22c852f5d1007b76cfd.js +0 -1
  336. package/dist/excalidraw-assets/i18n-hi-IN-json-3577c3ff017e2af147ee.js +0 -1
  337. package/dist/excalidraw-assets/i18n-hu-HU-json-2173dae4a84d3f943a3d.js +0 -1
  338. package/dist/excalidraw-assets/i18n-id-ID-json-36ef4139fdc39bd473e9.js +0 -1
  339. package/dist/excalidraw-assets/i18n-it-IT-json-55de4a420bc2799d63ac.js +0 -1
  340. package/dist/excalidraw-assets/i18n-ja-JP-json-10da607a92dd9ee4b6b1.js +0 -1
  341. package/dist/excalidraw-assets/i18n-kab-KAB-json-72dfe5e520fb843a911e.js +0 -1
  342. package/dist/excalidraw-assets/i18n-kk-KZ-json-72a00814a5ea1bc1bd4d.js +0 -1
  343. package/dist/excalidraw-assets/i18n-ko-KR-json-530261d88e915f413822.js +0 -1
  344. package/dist/excalidraw-assets/i18n-lv-LV-json-efdf3550b88b63639a73.js +0 -1
  345. package/dist/excalidraw-assets/i18n-my-MM-json-9c8f0251105b94363a8f.js +0 -1
  346. package/dist/excalidraw-assets/i18n-nb-NO-json-102950eb1c0d17b2be82.js +0 -1
  347. package/dist/excalidraw-assets/i18n-nl-NL-json-220f20ddbd7092a3a948.js +0 -1
  348. package/dist/excalidraw-assets/i18n-nn-NO-json-5b64fbe09ec2fdc5c686.js +0 -1
  349. package/dist/excalidraw-assets/i18n-oc-FR-json-3fb584025bb45201012f.js +0 -1
  350. package/dist/excalidraw-assets/i18n-pa-IN-json-b7ad703689a54409b91a.js +0 -1
  351. package/dist/excalidraw-assets/i18n-pl-PL-json-589514e9da02be71829e.js +0 -1
  352. package/dist/excalidraw-assets/i18n-pt-BR-json-5eb00d985874b4016992.js +0 -1
  353. package/dist/excalidraw-assets/i18n-pt-PT-json-fb8bc9b15f2d232ce452.js +0 -1
  354. package/dist/excalidraw-assets/i18n-ro-RO-json-dc651de2037f6a904212.js +0 -1
  355. package/dist/excalidraw-assets/i18n-ru-RU-json-1620932d8cf3b49dbac7.js +0 -1
  356. package/dist/excalidraw-assets/i18n-sk-SK-json-4fc55e97187d84b3e35f.js +0 -1
  357. package/dist/excalidraw-assets/i18n-sv-SE-json-5fd1ff062cab18b6c3ec.js +0 -1
  358. package/dist/excalidraw-assets/i18n-tr-TR-json-60da00067a54eacae6ea.js +0 -1
  359. package/dist/excalidraw-assets/i18n-uk-UA-json-3398bd8076ace43903a4.js +0 -1
  360. package/dist/excalidraw-assets/i18n-zh-CN-json-9b20d01d442a9938174a.js +0 -1
  361. package/dist/excalidraw-assets/i18n-zh-TW-json-93a8203eb30054101fcc.js +0 -1
  362. package/dist/excalidraw-assets/image-02a1f3ecd6baf42daaa6.js +0 -1
  363. package/dist/excalidraw-assets/vendor-881ef50682618d9bd3d3.js +0 -2
  364. package/dist/excalidraw-assets/vendor-881ef50682618d9bd3d3.js.LICENSE.txt +0 -1
  365. package/dist/excalidraw-assets-dev/i18n-ar-SA-json-65bc67ce1607e71d3c60.js +0 -22
  366. package/dist/excalidraw-assets-dev/i18n-bg-BG-json-2e34234671c3f27e834b.js +0 -22
  367. package/dist/excalidraw-assets-dev/i18n-ca-ES-json-fc2729f9ec4a48ef830f.js +0 -22
  368. package/dist/excalidraw-assets-dev/i18n-cs-CZ-json-a5b54f27dd83c625e776.js +0 -22
  369. package/dist/excalidraw-assets-dev/i18n-da-DK-json-2e18fec0eace18cc9d20.js +0 -22
  370. package/dist/excalidraw-assets-dev/i18n-de-DE-json-28622f2358ee065e8411.js +0 -22
  371. package/dist/excalidraw-assets-dev/i18n-el-GR-json-3d9a940ed9491b9addc3.js +0 -22
  372. package/dist/excalidraw-assets-dev/i18n-es-ES-json-db6707f20cd2518ad8b3.js +0 -22
  373. package/dist/excalidraw-assets-dev/i18n-fa-IR-json-72cd5824085f3bfcb7a1.js +0 -22
  374. package/dist/excalidraw-assets-dev/i18n-fi-FI-json-1b66bec37676ad9aab1e.js +0 -22
  375. package/dist/excalidraw-assets-dev/i18n-fr-FR-json-843f8bcc26ecf3185344.js +0 -22
  376. package/dist/excalidraw-assets-dev/i18n-he-IL-json-2679793593de22336d48.js +0 -22
  377. package/dist/excalidraw-assets-dev/i18n-hi-IN-json-732a1e3f06a5fbb83e8d.js +0 -22
  378. package/dist/excalidraw-assets-dev/i18n-hu-HU-json-d6b3d837d675d7375c1e.js +0 -22
  379. package/dist/excalidraw-assets-dev/i18n-id-ID-json-328fc20f45af18fbbc5b.js +0 -22
  380. package/dist/excalidraw-assets-dev/i18n-it-IT-json-6cfbb19fada476d23814.js +0 -22
  381. package/dist/excalidraw-assets-dev/i18n-ja-JP-json-6c84ee63e3effba0eb0a.js +0 -22
  382. package/dist/excalidraw-assets-dev/i18n-kab-KAB-json-404827528be2a446449d.js +0 -22
  383. package/dist/excalidraw-assets-dev/i18n-kk-KZ-json-03875b16f2b5b4121983.js +0 -22
  384. package/dist/excalidraw-assets-dev/i18n-ko-KR-json-7cd7bfaf5e2b39bd15d8.js +0 -22
  385. package/dist/excalidraw-assets-dev/i18n-lv-LV-json-af0cfb3eca967f0fe675.js +0 -22
  386. package/dist/excalidraw-assets-dev/i18n-my-MM-json-b06767407455ca2f4c3f.js +0 -22
  387. package/dist/excalidraw-assets-dev/i18n-nb-NO-json-560905b77e939b594348.js +0 -22
  388. package/dist/excalidraw-assets-dev/i18n-nl-NL-json-f132a70ab7b920ac4d8f.js +0 -22
  389. package/dist/excalidraw-assets-dev/i18n-nn-NO-json-35e531bd3a461f0d1ceb.js +0 -22
  390. package/dist/excalidraw-assets-dev/i18n-oc-FR-json-68dad2b665d95463621d.js +0 -22
  391. package/dist/excalidraw-assets-dev/i18n-pa-IN-json-6bec1f7f94b1cf3633f9.js +0 -22
  392. package/dist/excalidraw-assets-dev/i18n-pl-PL-json-0b282a1f23c3aa2e8bbb.js +0 -22
  393. package/dist/excalidraw-assets-dev/i18n-pt-BR-json-cb9dae4e4d99080bbd4c.js +0 -22
  394. package/dist/excalidraw-assets-dev/i18n-pt-PT-json-cabfa4db01426846387f.js +0 -22
  395. package/dist/excalidraw-assets-dev/i18n-ro-RO-json-0fc304e943c3727d3069.js +0 -22
  396. package/dist/excalidraw-assets-dev/i18n-ru-RU-json-aae276923a7448546ba9.js +0 -22
  397. package/dist/excalidraw-assets-dev/i18n-sk-SK-json-6672eb5c84a0d06bd3c2.js +0 -22
  398. package/dist/excalidraw-assets-dev/i18n-sv-SE-json-3738297ef992b7a4e69c.js +0 -22
  399. package/dist/excalidraw-assets-dev/i18n-tr-TR-json-bc5117a1ab430f3e7fc5.js +0 -22
  400. package/dist/excalidraw-assets-dev/i18n-uk-UA-json-24701ab6a0a1747281aa.js +0 -22
  401. package/dist/excalidraw-assets-dev/i18n-zh-CN-json-77fd3d2d5c8b490cd9c9.js +0 -22
  402. package/dist/excalidraw-assets-dev/i18n-zh-TW-json-744589603e44fd0ca7ea.js +0 -22
  403. package/dist/excalidraw-assets-dev/image-0ad20139bba28f28b031.js +0 -32
  404. package/dist/excalidraw-assets-dev/vendor-1f85eb76a52b1d218411.js +0 -323
@@ -17,10 +17,10 @@ export declare const CURSOR_TYPE: {
17
17
  AUTO: string;
18
18
  };
19
19
  export declare const POINTER_BUTTON: {
20
- MAIN: number;
21
- WHEEL: number;
22
- SECONDARY: number;
23
- TOUCH: number;
20
+ readonly MAIN: 0;
21
+ readonly WHEEL: 1;
22
+ readonly SECONDARY: 2;
23
+ readonly TOUCH: -1;
24
24
  };
25
25
  export declare enum EVENT {
26
26
  COPY = "copy",
@@ -47,7 +47,8 @@ export declare enum EVENT {
47
47
  TOUCH_END = "touchend",
48
48
  HASHCHANGE = "hashchange",
49
49
  VISIBILITY_CHANGE = "visibilitychange",
50
- SCROLL = "scroll"
50
+ SCROLL = "scroll",
51
+ EXCALIDRAW_LINK = "excalidraw-link"
51
52
  }
52
53
  export declare const ENV: {
53
54
  TEST: string;
@@ -61,6 +62,10 @@ export declare const FONT_FAMILY: {
61
62
  Helvetica: number;
62
63
  Cascadia: number;
63
64
  };
65
+ export declare const THEME: {
66
+ LIGHT: string;
67
+ DARK: string;
68
+ };
64
69
  export declare const WINDOWS_EMOJI_FALLBACK_FONT = "Segoe UI Emoji";
65
70
  export declare const DEFAULT_FONT_SIZE = 20;
66
71
  export declare const DEFAULT_FONT_FAMILY: FontFamilyValues;
@@ -72,6 +77,14 @@ export declare const GRID_SIZE = 20;
72
77
  export declare const MIME_TYPES: {
73
78
  readonly excalidraw: "application/vnd.excalidraw+json";
74
79
  readonly excalidrawlib: "application/vnd.excalidrawlib+json";
80
+ readonly json: "application/json";
81
+ readonly svg: "image/svg+xml";
82
+ readonly "excalidraw.svg": "image/svg+xml";
83
+ readonly png: "image/png";
84
+ readonly "excalidraw.png": "image/png";
85
+ readonly jpg: "image/jpeg";
86
+ readonly gif: "image/gif";
87
+ readonly binary: "application/octet-stream";
75
88
  };
76
89
  export declare const EXPORT_DATA_TYPES: {
77
90
  readonly excalidraw: "excalidraw";
@@ -79,9 +92,7 @@ export declare const EXPORT_DATA_TYPES: {
79
92
  readonly excalidrawLibrary: "excalidrawlib";
80
93
  };
81
94
  export declare const EXPORT_SOURCE: string;
82
- export declare const STORAGE_KEYS: {
83
- readonly LOCAL_STORAGE_LIBRARY: "excalidraw-library";
84
- };
95
+ export declare const IMAGE_RENDER_TIMEOUT = 500;
85
96
  export declare const TAP_TWICE_TIMEOUT = 300;
86
97
  export declare const TOUCH_CTX_MENU_TIMEOUT = 500;
87
98
  export declare const TITLE_TIMEOUT = 10000;
@@ -89,6 +100,7 @@ export declare const TOAST_TIMEOUT = 5000;
89
100
  export declare const VERSION_TIMEOUT = 30000;
90
101
  export declare const SCROLL_TIMEOUT = 100;
91
102
  export declare const ZOOM_STEP = 0.1;
103
+ export declare const HYPERLINK_TOOLTIP_DELAY = 300;
92
104
  export declare const IDLE_THRESHOLD = 60000;
93
105
  export declare const ACTIVE_THRESHOLD = 3000;
94
106
  export declare const MODES: {
@@ -104,9 +116,31 @@ export declare const URL_HASH_KEYS: {
104
116
  readonly addLibrary: "addLibrary";
105
117
  };
106
118
  export declare const DEFAULT_UI_OPTIONS: AppProps["UIOptions"];
119
+ export declare const MQ_SM_MAX_WIDTH = 640;
107
120
  export declare const MQ_MAX_WIDTH_PORTRAIT = 730;
108
121
  export declare const MQ_MAX_WIDTH_LANDSCAPE = 1000;
109
122
  export declare const MQ_MAX_HEIGHT_LANDSCAPE = 500;
123
+ export declare const MQ_RIGHT_SIDEBAR_MIN_WIDTH = 1229;
124
+ export declare const LIBRARY_SIDEBAR_WIDTH: number;
110
125
  export declare const MAX_DECIMALS_FOR_SVG_EXPORT = 2;
111
126
  export declare const EXPORT_SCALES: number[];
112
127
  export declare const DEFAULT_EXPORT_PADDING = 10;
128
+ export declare const DEFAULT_MAX_IMAGE_WIDTH_OR_HEIGHT = 1440;
129
+ export declare const ALLOWED_IMAGE_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/svg+xml", "image/gif"];
130
+ export declare const MAX_ALLOWED_FILE_BYTES: number;
131
+ export declare const SVG_NS = "http://www.w3.org/2000/svg";
132
+ export declare const ENCRYPTION_KEY_BITS = 128;
133
+ export declare const VERSIONS: {
134
+ readonly excalidraw: 2;
135
+ readonly excalidrawLibrary: 2;
136
+ };
137
+ export declare const BOUND_TEXT_PADDING = 5;
138
+ export declare const VERTICAL_ALIGN: {
139
+ TOP: string;
140
+ MIDDLE: string;
141
+ BOTTOM: string;
142
+ };
143
+ export declare const ELEMENT_READY_TO_ERASE_OPACITY = 20;
144
+ export declare const COOKIES: {
145
+ readonly AUTH_STATE_COOKIE: "excplus-auth";
146
+ };
@@ -1,11 +1,47 @@
1
- import { ExcalidrawElement } from "../element/types";
2
- import { AppState } from "../types";
1
+ import { ALLOWED_IMAGE_MIME_TYPES, MIME_TYPES } from "../constants";
2
+ import { ExcalidrawElement, FileId } from "../element/types";
3
+ import { AppState, DataURL, LibraryItem } from "../types";
3
4
  import { FileSystemHandle } from "./filesystem";
4
5
  import { ImportedLibraryData } from "./types";
5
6
  export declare const getMimeType: (blob: Blob | string) => string;
6
7
  export declare const getFileHandleType: (handle: FileSystemHandle | null) => string | null;
7
8
  export declare const isImageFileHandleType: (type: string | null) => type is "svg" | "png";
8
9
  export declare const isImageFileHandle: (handle: FileSystemHandle | null) => boolean;
9
- export declare const loadFromBlob: (blob: Blob, localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | null) => Promise<import("./restore").RestoredDataState>;
10
- export declare const loadLibraryFromBlob: (blob: Blob) => Promise<ImportedLibraryData>;
10
+ export declare const isSupportedImageFile: (blob: Blob | null | undefined) => blob is Blob & {
11
+ type: typeof ALLOWED_IMAGE_MIME_TYPES[number];
12
+ };
13
+ export declare const loadSceneOrLibraryFromBlob: (blob: Blob | File, localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | null, fileHandle?: FileSystemHandle | null | undefined) => Promise<{
14
+ type: "application/vnd.excalidraw+json";
15
+ data: import("./restore").RestoredDataState;
16
+ } | {
17
+ type: "application/vnd.excalidrawlib+json";
18
+ data: ImportedLibraryData;
19
+ }>;
20
+ export declare const loadFromBlob: (blob: Blob, localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | null, fileHandle?: FileSystemHandle | null | undefined) => Promise<import("./restore").RestoredDataState>;
21
+ export declare const parseLibraryJSON: (json: string, defaultStatus?: LibraryItem["status"]) => LibraryItem[];
22
+ export declare const loadLibraryFromBlob: (blob: Blob, defaultStatus?: LibraryItem["status"]) => Promise<LibraryItem[]>;
11
23
  export declare const canvasToBlob: (canvas: HTMLCanvasElement) => Promise<Blob>;
24
+ /** generates SHA-1 digest from supplied file (if not supported, falls back
25
+ to a 40-char base64 random id) */
26
+ export declare const generateIdFromFile: (file: File) => Promise<FileId>;
27
+ export declare const getDataURL: (file: Blob | File) => Promise<DataURL>;
28
+ export declare const dataURLToFile: (dataURL: DataURL, filename?: string) => File;
29
+ export declare const resizeImageFile: (file: File, opts: {
30
+ /** undefined indicates auto */
31
+ outputType?: typeof MIME_TYPES["jpg"];
32
+ maxWidthOrHeight: number;
33
+ }) => Promise<File>;
34
+ export declare const SVGStringToFile: (SVGString: string, filename?: string) => File & {
35
+ type: typeof MIME_TYPES.svg;
36
+ };
37
+ export declare const getFileFromEvent: (event: React.DragEvent<HTMLDivElement>) => Promise<{
38
+ file: File | null;
39
+ fileHandle: FileSystemHandle | null;
40
+ }>;
41
+ export declare const getFileHandle: (event: React.DragEvent<HTMLDivElement>) => Promise<FileSystemHandle | null>;
42
+ export declare const createFile: (blob: File | Blob | ArrayBuffer, mimeType: ValueOf<typeof MIME_TYPES>, name: string | undefined) => File;
43
+ /** attemps to detect correct mimeType if none is set, or if an image
44
+ * has an incorrect extension.
45
+ * Note: doesn't handle missing .excalidraw/.excalidrawlib extension */
46
+ export declare const normalizeFile: (file: File) => Promise<File>;
47
+ export declare const blobToArrayBuffer: (blob: Blob) => Promise<ArrayBuffer>;
@@ -1,4 +1,4 @@
1
- export declare const toByteString: (data: string | Uint8Array) => Promise<string>;
1
+ export declare const toByteString: (data: string | Uint8Array | ArrayBuffer) => Promise<string>;
2
2
  /**
3
3
  * @param isByteString set to true if already byte string to prevent bloat
4
4
  * due to reencoding
@@ -22,4 +22,32 @@ export declare const encode: ({ text, compress, }: {
22
22
  compress?: boolean | undefined;
23
23
  }) => Promise<EncodedData>;
24
24
  export declare const decode: (data: EncodedData) => Promise<string>;
25
+ /**
26
+ * The returned buffer has following format:
27
+ * `[]` refers to a buffers wrapper (see `concatBuffers`)
28
+ *
29
+ * [
30
+ * encodingMetadataBuffer,
31
+ * iv,
32
+ * [
33
+ * contentsMetadataBuffer
34
+ * contentsBuffer
35
+ * ]
36
+ * ]
37
+ */
38
+ export declare const compressData: <T extends Record<string, any> = never>(dataBuffer: Uint8Array, options: {
39
+ encryptionKey: string;
40
+ } & ([T] extends [never] ? {
41
+ metadata?: T | undefined;
42
+ } : {
43
+ metadata: T;
44
+ })) => Promise<Uint8Array>;
45
+ export declare const decompressData: <T extends Record<string, any>>(bufferView: Uint8Array, options: {
46
+ decryptionKey: string;
47
+ }) => Promise<{
48
+ /** metadata source is always JSON so we can decode it here */
49
+ metadata: T;
50
+ /** data can be anything so the caller must decode it */
51
+ data: Uint8Array;
52
+ }>;
25
53
  export {};
@@ -0,0 +1,9 @@
1
+ export declare const IV_LENGTH_BYTES = 12;
2
+ export declare const createIV: () => Uint8Array;
3
+ export declare const generateEncryptionKey: <T extends "string" | "cryptoKey" = "string">(returnAs?: T | undefined) => Promise<T extends "cryptoKey" ? CryptoKey : string>;
4
+ export declare const getCryptoKey: (key: string, usage: KeyUsage) => Promise<CryptoKey>;
5
+ export declare const encryptData: (key: string | CryptoKey, data: Uint8Array | ArrayBuffer | Blob | File | string) => Promise<{
6
+ encryptedBuffer: ArrayBuffer;
7
+ iv: Uint8Array;
8
+ }>;
9
+ export declare const decryptData: (iv: Uint8Array, encrypted: Uint8Array | ArrayBuffer, privateKey: string) => Promise<ArrayBuffer>;
@@ -1,16 +1,16 @@
1
- import { FileWithHandle, FileSystemHandle, supported as nativeFileSystemSupported } from "@dwelle/browser-fs-access";
2
- declare type FILE_EXTENSION = "jpg" | "png" | "svg" | "json" | "excalidraw" | "excalidrawlib";
1
+ import { FileSystemHandle, supported as nativeFileSystemSupported } from "browser-fs-access";
2
+ declare type FILE_EXTENSION = "gif" | "jpg" | "png" | "excalidraw.png" | "svg" | "excalidraw.svg" | "json" | "excalidraw" | "excalidrawlib";
3
3
  export declare const fileOpen: <M extends boolean | undefined = false>(opts: {
4
4
  extensions?: FILE_EXTENSION[] | undefined;
5
- description?: string | undefined;
5
+ description: string;
6
6
  multiple?: M | undefined;
7
- }) => Promise<M extends false | undefined ? FileWithHandle : FileWithHandle[]>;
7
+ }) => Promise<M extends false | undefined ? File : File[]>;
8
8
  export declare const fileSave: (blob: Blob, opts: {
9
9
  /** supply without the extension */
10
10
  name: string;
11
11
  /** file extension */
12
12
  extension: FILE_EXTENSION;
13
- description?: string;
13
+ description: string;
14
14
  /** existing FileSystemHandle */
15
15
  fileHandle?: FileSystemHandle | null;
16
16
  }) => Promise<FileSystemHandle | null>;
@@ -1,10 +1,10 @@
1
1
  import { NonDeletedExcalidrawElement } from "../element/types";
2
2
  import { ExportType } from "../scene/types";
3
- import { AppState } from "../types";
3
+ import { AppState, BinaryFiles } from "../types";
4
4
  import { FileSystemHandle } from "./filesystem";
5
5
  export { loadFromBlob } from "./blob";
6
6
  export { loadFromJSON, saveAsJSON } from "./json";
7
- export declare const exportCanvas: (type: ExportType, elements: readonly NonDeletedExcalidrawElement[], appState: AppState, { exportBackground, exportPadding, viewBackgroundColor, name, fileHandle, }: {
7
+ export declare const exportCanvas: (type: Omit<ExportType, "backend">, elements: readonly NonDeletedExcalidrawElement[], appState: AppState, files: BinaryFiles, { exportBackground, exportPadding, viewBackgroundColor, name, fileHandle, }: {
8
8
  exportBackground: boolean;
9
9
  exportPadding?: number | undefined;
10
10
  viewBackgroundColor: string;
@@ -1,10 +1,9 @@
1
1
  import { ExcalidrawElement } from "../element/types";
2
- import { AppState } from "../types";
3
- import { ImportedDataState } from "./types";
4
- import Library from "./library";
5
- export declare const serializeAsJSON: (elements: readonly ExcalidrawElement[], appState: Partial<AppState>) => string;
6
- export declare const saveAsJSON: (elements: readonly ExcalidrawElement[], appState: AppState) => Promise<{
7
- fileHandle: import("@dwelle/browser-fs-access").FileSystemHandle | null;
2
+ import { AppState, BinaryFiles, LibraryItems } from "../types";
3
+ import { ImportedDataState, ImportedLibraryData } from "./types";
4
+ export declare const serializeAsJSON: (elements: readonly ExcalidrawElement[], appState: Partial<AppState>, files: BinaryFiles, type: "local" | "database") => string;
5
+ export declare const saveAsJSON: (elements: readonly ExcalidrawElement[], appState: AppState, files: BinaryFiles) => Promise<{
6
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
8
7
  }>;
9
8
  export declare const loadFromJSON: (localAppState: AppState, localElements: readonly ExcalidrawElement[] | null) => Promise<import("./restore").RestoredDataState>;
10
9
  export declare const isValidExcalidrawData: (data?: {
@@ -12,6 +11,6 @@ export declare const isValidExcalidrawData: (data?: {
12
11
  elements?: any;
13
12
  appState?: any;
14
13
  } | undefined) => data is ImportedDataState;
15
- export declare const isValidLibrary: (json: any) => any;
16
- export declare const saveLibraryAsJSON: (library: Library) => Promise<void>;
17
- export declare const importLibraryFromJSON: (library: Library) => Promise<void>;
14
+ export declare const isValidLibrary: (json: any) => json is ImportedLibraryData;
15
+ export declare const serializeLibraryAsJSON: (libraryItems: LibraryItems) => string;
16
+ export declare const saveLibraryAsJSON: (libraryItems: LibraryItems) => Promise<void>;
@@ -1,14 +1,96 @@
1
- import { LibraryItems, LibraryItem } from "../types";
1
+ import { LibraryItems, ExcalidrawImperativeAPI, LibraryItemsSource } from "../types";
2
2
  import type App from "../components/App";
3
+ import { ExcalidrawElement } from "../element/types";
4
+ export declare const libraryItemsAtom: import("jotai").Atom<{
5
+ status: "loading" | "loaded";
6
+ isInitialized: boolean;
7
+ libraryItems: LibraryItems;
8
+ }> & {
9
+ write: (get: {
10
+ <Value>(atom: import("jotai").Atom<Value | Promise<Value>>): Value;
11
+ <Value_1>(atom: import("jotai").Atom<Promise<Value_1>>): Value_1;
12
+ <Value_2>(atom: import("jotai").Atom<Value_2>): Value_2 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_2;
13
+ } & {
14
+ <Value_3>(atom: import("jotai").Atom<Value_3 | Promise<Value_3>>, options: {
15
+ unstable_promise: true;
16
+ }): Value_3 | Promise<Value_3>;
17
+ <Value_4>(atom: import("jotai").Atom<Promise<Value_4>>, options: {
18
+ unstable_promise: true;
19
+ }): Value_4 | Promise<Value_4>;
20
+ <Value_5>(atom: import("jotai").Atom<Value_5>, options: {
21
+ unstable_promise: true;
22
+ }): (Value_5 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5) | Promise<Value_5 extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? V extends Promise<infer V> ? any : V : V : V : V : V : V : V : V : V : V : Value_5>;
23
+ }, set: {
24
+ <Value_6, Result extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_6, undefined, Result>): Result;
25
+ <Value_7, Update, Result_1 extends void | Promise<void>>(atom: import("jotai").WritableAtom<Value_7, Update, Result_1>, update: Update): Result_1;
26
+ }, update: {
27
+ status: "loading" | "loaded";
28
+ isInitialized: boolean;
29
+ libraryItems: LibraryItems;
30
+ } | ((prev: {
31
+ status: "loading" | "loaded";
32
+ isInitialized: boolean;
33
+ libraryItems: LibraryItems;
34
+ }) => {
35
+ status: "loading" | "loaded";
36
+ isInitialized: boolean;
37
+ libraryItems: LibraryItems;
38
+ })) => void;
39
+ onMount?: (<S extends (update: {
40
+ status: "loading" | "loaded";
41
+ isInitialized: boolean;
42
+ libraryItems: LibraryItems;
43
+ } | ((prev: {
44
+ status: "loading" | "loaded";
45
+ isInitialized: boolean;
46
+ libraryItems: LibraryItems;
47
+ }) => {
48
+ status: "loading" | "loaded";
49
+ isInitialized: boolean;
50
+ libraryItems: LibraryItems;
51
+ })) => void>(setAtom: S) => void | (() => void)) | undefined;
52
+ } & {
53
+ init: {
54
+ status: "loading" | "loaded";
55
+ isInitialized: boolean;
56
+ libraryItems: LibraryItems;
57
+ };
58
+ };
59
+ /** Merges otherItems into localItems. Unique items in otherItems array are
60
+ sorted first. */
61
+ export declare const mergeLibraryItems: (localItems: LibraryItems, otherItems: LibraryItems) => LibraryItems;
3
62
  declare class Library {
4
- private libraryCache;
63
+ /** latest libraryItems */
64
+ private lastLibraryItems;
65
+ /** indicates whether library is initialized with library items (has gone
66
+ * though at least one update) */
67
+ private isInitialized;
5
68
  private app;
6
69
  constructor(app: App);
7
- resetLibrary: () => Promise<void>;
8
- restoreLibraryItem: (libraryItem: LibraryItem) => LibraryItem | null;
9
- /** imports library (currently merges, removing duplicates) */
10
- importLibrary(blob: Blob): Promise<void>;
11
- loadLibrary: () => Promise<LibraryItems>;
12
- saveLibrary: (items: LibraryItems) => Promise<void>;
70
+ private updateQueue;
71
+ private getLastUpdateTask;
72
+ private notifyListeners;
73
+ resetLibrary: () => Promise<LibraryItems>;
74
+ /**
75
+ * @returns latest cloned libraryItems. Awaits all in-progress updates first.
76
+ */
77
+ getLatestLibrary: () => Promise<LibraryItems>;
78
+ updateLibrary: ({ libraryItems, prompt, merge, openLibraryMenu, defaultStatus, }: {
79
+ libraryItems: LibraryItemsSource;
80
+ merge?: boolean | undefined;
81
+ prompt?: boolean | undefined;
82
+ openLibraryMenu?: boolean | undefined;
83
+ defaultStatus?: "published" | "unpublished" | undefined;
84
+ }) => Promise<LibraryItems>;
85
+ setLibrary: (libraryItems: LibraryItems | Promise<LibraryItems> | ((latestLibraryItems: LibraryItems) => LibraryItems | Promise<LibraryItems>)) => Promise<LibraryItems>;
13
86
  }
14
87
  export default Library;
88
+ export declare const distributeLibraryItemsOnSquareGrid: (libraryItems: LibraryItems) => ExcalidrawElement[];
89
+ export declare const parseLibraryTokensFromUrl: () => {
90
+ libraryUrl: string;
91
+ idToken: string | null;
92
+ } | null;
93
+ export declare const useHandleLibrary: ({ excalidrawAPI, getInitialLibraryItems, }: {
94
+ excalidrawAPI: ExcalidrawImperativeAPI | null;
95
+ getInitialLibraryItems?: (() => LibraryItemsSource) | undefined;
96
+ }) => void;
@@ -1,5 +1,5 @@
1
1
  import { ExcalidrawElement } from "../element/types";
2
- import { AppState } from "../types";
3
- export declare const resaveAsImageWithScene: (elements: readonly ExcalidrawElement[], appState: AppState) => Promise<{
4
- fileHandle: import("@dwelle/browser-fs-access").FileSystemHandle;
2
+ import { AppState, BinaryFiles } from "../types";
3
+ export declare const resaveAsImageWithScene: (elements: readonly ExcalidrawElement[], appState: AppState, files: BinaryFiles) => Promise<{
4
+ fileHandle: import("browser-fs-access").FileSystemHandle;
5
5
  }>;
@@ -1,13 +1,15 @@
1
1
  import { ExcalidrawElement } from "../element/types";
2
- import { AppState } from "../types";
2
+ import { AppState, BinaryFiles, LibraryItem } from "../types";
3
3
  import { ImportedDataState } from "./types";
4
4
  declare type RestoredAppState = Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
5
- export declare const AllowedExcalidrawElementTypes: Record<ExcalidrawElement["type"], true>;
5
+ export declare const AllowedExcalidrawActiveTools: Record<AppState["activeTool"]["type"], boolean>;
6
6
  export declare type RestoredDataState = {
7
7
  elements: ExcalidrawElement[];
8
8
  appState: RestoredAppState;
9
+ files: BinaryFiles;
9
10
  };
10
11
  export declare const restoreElements: (elements: ImportedDataState["elements"], localElements: readonly ExcalidrawElement[] | null | undefined) => ExcalidrawElement[];
11
12
  export declare const restoreAppState: (appState: ImportedDataState["appState"], localAppState: Partial<AppState> | null | undefined) => RestoredAppState;
12
- export declare const restore: (data: ImportedDataState | null, localAppState: Partial<AppState> | null | undefined, localElements: readonly ExcalidrawElement[] | null | undefined) => RestoredDataState;
13
+ export declare const restore: (data: Pick<ImportedDataState, "appState" | "elements" | "files"> | null, localAppState: Partial<AppState> | null | undefined, localElements: readonly ExcalidrawElement[] | null | undefined) => RestoredDataState;
14
+ export declare const restoreLibraryItems: (libraryItems: ImportedDataState["libraryItems"], defaultStatus: LibraryItem["status"]) => LibraryItem[];
13
15
  export {};
@@ -1,12 +1,14 @@
1
1
  import { ExcalidrawElement } from "../element/types";
2
- import { AppState, LibraryItems } from "../types";
2
+ import { AppState, BinaryFiles, LibraryItems, LibraryItems_anyVersion } from "../types";
3
3
  import type { cleanAppStateForExport } from "../appState";
4
+ import { VERSIONS } from "../constants";
4
5
  export interface ExportedDataState {
5
6
  type: string;
6
7
  version: number;
7
8
  source: string;
8
9
  elements: readonly ExcalidrawElement[];
9
10
  appState: ReturnType<typeof cleanAppStateForExport>;
11
+ files: BinaryFiles | undefined;
10
12
  }
11
13
  export interface ImportedDataState {
12
14
  type?: string;
@@ -15,13 +17,16 @@ export interface ImportedDataState {
15
17
  elements?: readonly ExcalidrawElement[] | null;
16
18
  appState?: Readonly<Partial<AppState>> | null;
17
19
  scrollToContent?: boolean;
18
- libraryItems?: LibraryItems;
20
+ libraryItems?: LibraryItems_anyVersion;
21
+ files?: BinaryFiles;
19
22
  }
20
23
  export interface ExportedLibraryData {
21
24
  type: string;
22
- version: number;
25
+ version: typeof VERSIONS.excalidrawLibrary;
23
26
  source: string;
24
- library: LibraryItems;
27
+ libraryItems: LibraryItems;
25
28
  }
26
29
  export interface ImportedLibraryData extends Partial<ExportedLibraryData> {
30
+ /** @deprecated v1 */
31
+ library?: LibraryItems;
27
32
  }
@@ -4,4 +4,3 @@ export interface Distribution {
4
4
  axis: "x" | "y";
5
5
  }
6
6
  export declare const distributeElements: (selectedElements: ExcalidrawElement[], distribution: Distribution) => ExcalidrawElement[];
7
- export declare const getMaximumGroups: (elements: ExcalidrawElement[]) => ExcalidrawElement[][];
@@ -0,0 +1,131 @@
1
+ /// <reference types="react" />
2
+ import { AppState, ExcalidrawProps } from "../types";
3
+ import { NonDeletedExcalidrawElement } from "./types";
4
+ import { Bounds } from "./bounds";
5
+ import "./Hyperlink.scss";
6
+ export declare const EXTERNAL_LINK_IMG: HTMLImageElement;
7
+ export declare const Hyperlink: ({ element, appState, setAppState, onLinkOpen, }: {
8
+ element: NonDeletedExcalidrawElement;
9
+ appState: AppState;
10
+ setAppState: React.Component<any, AppState>["setState"];
11
+ onLinkOpen: ExcalidrawProps["onLinkOpen"];
12
+ }) => JSX.Element | null;
13
+ export declare const normalizeLink: (link: string) => string;
14
+ export declare const isLocalLink: (link: string | null) => boolean;
15
+ export declare const actionLink: {
16
+ name: "hyperlink";
17
+ perform: (elements: readonly import("./types").ExcalidrawElement[], appState: Readonly<AppState>) => false | {
18
+ elements: readonly import("./types").ExcalidrawElement[];
19
+ appState: {
20
+ showHyperlinkPopup: "editor";
21
+ openMenu: null;
22
+ isLoading: boolean;
23
+ errorMessage: string | null;
24
+ draggingElement: NonDeletedExcalidrawElement | null;
25
+ resizingElement: NonDeletedExcalidrawElement | null;
26
+ multiElement: import("./types").NonDeleted<import("./types").ExcalidrawLinearElement> | null;
27
+ selectionElement: NonDeletedExcalidrawElement | null;
28
+ isBindingEnabled: boolean;
29
+ startBoundElement: import("./types").NonDeleted<import("./types").ExcalidrawBindableElement> | null;
30
+ suggestedBindings: import("./binding").SuggestedBinding[];
31
+ editingElement: NonDeletedExcalidrawElement | null;
32
+ editingLinearElement: import("./linearElementEditor").LinearElementEditor | null;
33
+ activeTool: {
34
+ type: "line" | "arrow" | "text" | "selection" | "rectangle" | "diamond" | "ellipse" | "image" | "freedraw" | "eraser";
35
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
36
+ locked: boolean;
37
+ customType: null;
38
+ } | {
39
+ type: "custom";
40
+ customType: string;
41
+ lastActiveToolBeforeEraser: import("../types").LastActiveToolBeforeEraser;
42
+ locked: boolean;
43
+ };
44
+ penMode: boolean;
45
+ penDetected: boolean;
46
+ exportBackground: boolean;
47
+ exportEmbedScene: boolean;
48
+ exportWithDarkMode: boolean;
49
+ exportScale: number;
50
+ currentItemStrokeColor: string;
51
+ currentItemBackgroundColor: string;
52
+ currentItemFillStyle: import("./types").FillStyle;
53
+ currentItemStrokeWidth: number;
54
+ currentItemStrokeStyle: import("./types").StrokeStyle;
55
+ currentItemRoughness: number;
56
+ currentItemOpacity: number;
57
+ currentItemFontFamily: number;
58
+ currentItemFontSize: number;
59
+ currentItemTextAlign: import("./types").TextAlign;
60
+ currentItemStrokeSharpness: import("./types").StrokeSharpness;
61
+ currentItemStartArrowhead: import("./types").Arrowhead | null;
62
+ currentItemEndArrowhead: import("./types").Arrowhead | null;
63
+ currentItemLinearStrokeSharpness: import("./types").StrokeSharpness;
64
+ viewBackgroundColor: string;
65
+ scrollX: number;
66
+ scrollY: number;
67
+ cursorButton: "up" | "down";
68
+ scrolledOutside: boolean;
69
+ name: string;
70
+ isResizing: boolean;
71
+ isRotating: boolean;
72
+ zoom: Readonly<{
73
+ value: import("../types").NormalizedZoomValue;
74
+ }>;
75
+ openPopup: "canvasColorPicker" | "backgroundColorPicker" | "strokeColorPicker" | null;
76
+ lastPointerDownWith: import("./types").PointerType;
77
+ selectedElementIds: {
78
+ [id: string]: boolean;
79
+ };
80
+ previousSelectedElementIds: {
81
+ [id: string]: boolean;
82
+ };
83
+ shouldCacheIgnoreZoom: boolean;
84
+ showHelpDialog: boolean;
85
+ toastMessage: string | null;
86
+ zenModeEnabled: boolean;
87
+ theme: string;
88
+ gridSize: number | null;
89
+ viewModeEnabled: boolean;
90
+ selectedGroupIds: {
91
+ [groupId: string]: boolean;
92
+ };
93
+ editingGroupId: string | null;
94
+ width: number;
95
+ height: number;
96
+ offsetTop: number;
97
+ offsetLeft: number;
98
+ isLibraryOpen: boolean;
99
+ isLibraryMenuDocked: boolean;
100
+ fileHandle: import("browser-fs-access").FileSystemHandle | null;
101
+ collaborators: Map<string, import("../types").Collaborator>;
102
+ showStats: boolean;
103
+ currentChartType: import("./types").ChartType;
104
+ pasteDialog: {
105
+ shown: false;
106
+ data: null;
107
+ } | {
108
+ shown: true;
109
+ data: import("../charts").Spreadsheet;
110
+ };
111
+ pendingImageElementId: string | null;
112
+ };
113
+ commitToHistory: true;
114
+ };
115
+ trackEvent: {
116
+ category: "hyperlink";
117
+ action: string;
118
+ };
119
+ keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
120
+ contextItemLabel: (elements: readonly import("./types").ExcalidrawElement[], appState: Readonly<AppState>) => "labels.link.edit" | "labels.link.create";
121
+ contextItemPredicate: (elements: readonly import("./types").ExcalidrawElement[], appState: AppState) => boolean;
122
+ PanelComponent: ({ elements, appState, updateData }: import("react").PropsWithChildren<import("../actions/types").PanelComponentProps>) => JSX.Element;
123
+ } & {
124
+ keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
125
+ };
126
+ export declare const getContextMenuLabel: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState) => "labels.link.edit" | "labels.link.create";
127
+ export declare const getLinkHandleFromCoords: ([x1, y1, x2, y2]: Bounds, angle: number, appState: AppState) => [x: number, y: number, width: number, height: number];
128
+ export declare const isPointHittingLinkIcon: (element: NonDeletedExcalidrawElement, appState: AppState, [x, y]: readonly [number, number], isMobile: boolean) => boolean;
129
+ export declare const showHyperlinkTooltip: (element: NonDeletedExcalidrawElement, appState: AppState) => void;
130
+ export declare const hideHyperlinkToolip: () => void;
131
+ export declare const shouldHideLinkPopup: (element: NonDeletedExcalidrawElement, appState: AppState, [clientX, clientY]: readonly [number, number]) => Boolean;
@@ -1,4 +1,4 @@
1
- import { ExcalidrawElement, ExcalidrawLinearElement, Arrowhead } from "./types";
1
+ import { ExcalidrawElement, ExcalidrawLinearElement, Arrowhead, NonDeleted } from "./types";
2
2
  import { Drawable, Op } from "roughjs/bin/core";
3
3
  export declare type Bounds = readonly [number, number, number, number];
4
4
  export declare const getElementAbsoluteCoords: (element: ExcalidrawElement) => Bounds;
@@ -14,3 +14,14 @@ export declare const getClosestElementBounds: (elements: readonly ExcalidrawElem
14
14
  x: number;
15
15
  y: number;
16
16
  }) => [number, number, number, number];
17
+ export interface Box {
18
+ minX: number;
19
+ minY: number;
20
+ maxX: number;
21
+ maxY: number;
22
+ midX: number;
23
+ midY: number;
24
+ width: number;
25
+ height: number;
26
+ }
27
+ export declare const getCommonBoundingBox: (elements: ExcalidrawElement[] | readonly NonDeleted<ExcalidrawElement>[]) => Box;
@@ -1,9 +1,11 @@
1
1
  import * as GA from "../ga";
2
- import { NonDeletedExcalidrawElement, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawRectangleElement, ExcalidrawDiamondElement, ExcalidrawTextElement, ExcalidrawEllipseElement, NonDeleted } from "./types";
2
+ import { NonDeletedExcalidrawElement, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawRectangleElement, ExcalidrawDiamondElement, ExcalidrawTextElement, ExcalidrawEllipseElement, NonDeleted, ExcalidrawImageElement } from "./types";
3
3
  import { Point } from "../types";
4
4
  import { AppState } from "../types";
5
5
  export declare const hitTest: (element: NonDeletedExcalidrawElement, appState: AppState, x: number, y: number) => boolean;
6
6
  export declare const isHittingElementBoundingBoxWithoutHittingElement: (element: NonDeletedExcalidrawElement, appState: AppState, x: number, y: number) => boolean;
7
+ export declare const isHittingElementNotConsideringBoundingBox: (element: NonDeletedExcalidrawElement, appState: AppState, point: readonly [number, number]) => boolean;
8
+ export declare const isPointHittingElementBoundingBox: (element: NonDeleted<ExcalidrawElement>, [x, y]: readonly [number, number], threshold: number) => boolean;
7
9
  export declare const bindingBorderTest: (element: NonDeleted<ExcalidrawBindableElement>, { x, y }: {
8
10
  x: number;
9
11
  y: number;
@@ -16,4 +18,4 @@ export declare const determineFocusPoint: (element: ExcalidrawBindableElement, f
16
18
  export declare const intersectElementWithLine: (element: ExcalidrawBindableElement, a: readonly [number, number], b: readonly [number, number], gap?: number) => Point[];
17
19
  export declare const getCircleIntersections: (center: readonly [number, number, number, number, number, number, number, number], radius: number, line: readonly [number, number, number, number, number, number, number, number]) => GA.Point[];
18
20
  export declare const findFocusPointForEllipse: (ellipse: ExcalidrawEllipseElement, relativeDistance: number, point: readonly [number, number, number, number, number, number, number, number]) => readonly [number, number, number, number, number, number, number, number];
19
- export declare const findFocusPointForRectangulars: (element: ExcalidrawRectangleElement | ExcalidrawDiamondElement | ExcalidrawTextElement, relativeDistance: number, point: readonly [number, number, number, number, number, number, number, number]) => readonly [number, number, number, number, number, number, number, number];
21
+ export declare const findFocusPointForRectangulars: (element: ExcalidrawRectangleElement | ExcalidrawImageElement | ExcalidrawDiamondElement | ExcalidrawTextElement, relativeDistance: number, point: readonly [number, number, number, number, number, number, number, number]) => readonly [number, number, number, number, number, number, number, number];
@@ -1,7 +1,5 @@
1
- import { SHAPES } from "../shapes";
2
- import Scene from "../scene/Scene";
3
1
  import { NonDeletedExcalidrawElement } from "./types";
4
- import { PointerDownState } from "../types";
5
- export declare const dragSelectedElements: (pointerDownState: PointerDownState, selectedElements: NonDeletedExcalidrawElement[], pointerX: number, pointerY: number, scene: Scene, lockDirection?: boolean, distanceX?: number, distanceY?: number) => void;
2
+ import { AppState, PointerDownState } from "../types";
3
+ export declare const dragSelectedElements: (pointerDownState: PointerDownState, selectedElements: NonDeletedExcalidrawElement[], pointerX: number, pointerY: number, lockDirection: boolean | undefined, distanceX: number | undefined, distanceY: number | undefined, appState: AppState) => void;
6
4
  export declare const getDragOffsetXY: (selectedElements: NonDeletedExcalidrawElement[], x: number, y: number) => [number, number];
7
- export declare const dragNewElement: (draggingElement: NonDeletedExcalidrawElement, elementType: typeof SHAPES[number]["value"], originX: number, originY: number, x: number, y: number, width: number, height: number, isResizeWithSidesSameLength: boolean, isResizeCenterPoint: boolean) => void;
5
+ export declare const dragNewElement: (draggingElement: NonDeletedExcalidrawElement, elementType: AppState["activeTool"]["type"], originX: number, originY: number, x: number, y: number, width: number, height: number, shouldMaintainAspectRatio: boolean, shouldResizeFromCenter: boolean, widthAspectRatio?: number | null | undefined) => void;