@excalidraw/excalidraw 0.18.0-91c7748 → 0.18.0-9ba0f5d

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 (536) hide show
  1. package/dist/dev/{chunk-FB2NA5UG.js → chunk-6JJSWC4C.js} +1 -1
  2. package/dist/dev/{chunk-FB2NA5UG.js.map → chunk-6JJSWC4C.js.map} +2 -2
  3. package/dist/dev/chunk-DJHLEOOZ.js +69 -0
  4. package/dist/dev/chunk-DJHLEOOZ.js.map +7 -0
  5. package/dist/dev/{chunk-QF5FRM6O.js → chunk-MNO2YU5M.js} +101 -27
  6. package/dist/dev/chunk-MNO2YU5M.js.map +7 -0
  7. package/dist/dev/{chunk-LJB4UXX2.js → chunk-PW6TXCLQ.js} +311 -463
  8. package/dist/dev/chunk-PW6TXCLQ.js.map +7 -0
  9. package/dist/dev/{chunk-CP5DND7P.js → chunk-Y3BTNZQY.js} +2 -2
  10. package/dist/dev/data/{image-OLV524AK.js → image-2BHUUSLM.js} +3 -3
  11. package/dist/dev/index.css +2077 -1076
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +10972 -7971
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{ar-SA-XORAP2EK.js → ar-SA-JK5MQ7TT.js} +300 -142
  16. package/dist/dev/locales/ar-SA-JK5MQ7TT.js.map +7 -0
  17. package/dist/dev/locales/{az-AZ-NAUU3Z4Y.js → az-AZ-2PAD62G4.js} +241 -83
  18. package/dist/dev/locales/az-AZ-2PAD62G4.js.map +7 -0
  19. package/dist/dev/locales/{bg-BG-AAABLFCY.js → bg-BG-HUKVYCRK.js} +229 -71
  20. package/dist/dev/locales/bg-BG-HUKVYCRK.js.map +7 -0
  21. package/dist/dev/locales/{bn-BD-PM4AC5WG.js → bn-BD-V2CQI46P.js} +209 -51
  22. package/dist/dev/locales/bn-BD-V2CQI46P.js.map +7 -0
  23. package/dist/dev/locales/bn-IN-MBEO4C3J.js +744 -0
  24. package/dist/dev/locales/bn-IN-MBEO4C3J.js.map +7 -0
  25. package/dist/dev/locales/{ca-ES-YNNMFRQX.js → ca-ES-KWEKW4C3.js} +275 -117
  26. package/dist/dev/locales/ca-ES-KWEKW4C3.js.map +7 -0
  27. package/dist/dev/locales/{cs-CZ-DGZA5IKG.js → cs-CZ-W5AHZB5H.js} +229 -71
  28. package/dist/dev/locales/cs-CZ-W5AHZB5H.js.map +7 -0
  29. package/dist/dev/locales/{da-DK-N76F4QAJ.js → da-DK-ITTM6YM4.js} +298 -140
  30. package/dist/dev/locales/da-DK-ITTM6YM4.js.map +7 -0
  31. package/dist/dev/locales/de-CH-OAWPDQFJ.js +744 -0
  32. package/dist/dev/locales/de-CH-OAWPDQFJ.js.map +7 -0
  33. package/dist/dev/locales/{de-DE-DMRXZ2SZ.js → de-DE-ZRDYEPMS.js} +199 -41
  34. package/dist/dev/locales/de-DE-ZRDYEPMS.js.map +7 -0
  35. package/dist/dev/locales/{el-GR-HIKPLEXI.js → el-GR-QXASZLPE.js} +274 -116
  36. package/dist/dev/locales/el-GR-QXASZLPE.js.map +7 -0
  37. package/dist/dev/locales/{en-SMAPCEOQ.js → en-JRVQ7H6V.js} +8 -2
  38. package/dist/dev/locales/{es-ES-AQYVXC32.js → es-ES-VLQBB7FJ.js} +212 -54
  39. package/dist/dev/locales/es-ES-VLQBB7FJ.js.map +7 -0
  40. package/dist/dev/locales/{eu-ES-3TOEU5DE.js → eu-ES-TF2DGTZU.js} +210 -52
  41. package/dist/dev/locales/eu-ES-TF2DGTZU.js.map +7 -0
  42. package/dist/dev/locales/{fa-IR-527GAKUP.js → fa-IR-ITKFQ7QV.js} +286 -128
  43. package/dist/dev/locales/fa-IR-ITKFQ7QV.js.map +7 -0
  44. package/dist/dev/locales/{fi-FI-M3WLVDFP.js → fi-FI-UWZRVXFI.js} +240 -82
  45. package/dist/dev/locales/fi-FI-UWZRVXFI.js.map +7 -0
  46. package/dist/dev/locales/{fr-FR-YE4VDJFI.js → fr-FR-A72LKGCO.js} +203 -45
  47. package/dist/dev/locales/fr-FR-A72LKGCO.js.map +7 -0
  48. package/dist/dev/locales/{gl-ES-KMXUYGUN.js → gl-ES-2QCVIBFP.js} +212 -54
  49. package/dist/dev/locales/gl-ES-2QCVIBFP.js.map +7 -0
  50. package/dist/dev/locales/he-IL-WJNUHU26.js +744 -0
  51. package/dist/dev/locales/he-IL-WJNUHU26.js.map +7 -0
  52. package/dist/dev/locales/hi-IN-XGMO235V.js +744 -0
  53. package/dist/dev/locales/hi-IN-XGMO235V.js.map +7 -0
  54. package/dist/dev/locales/{hu-HU-VIYZI3X4.js → hu-HU-37FDQFIS.js} +238 -80
  55. package/dist/dev/locales/hu-HU-37FDQFIS.js.map +7 -0
  56. package/dist/dev/locales/{id-ID-22TWZNLA.js → id-ID-EJIDCO4E.js} +245 -87
  57. package/dist/dev/locales/id-ID-EJIDCO4E.js.map +7 -0
  58. package/dist/dev/locales/{it-IT-MDEQ2SG3.js → it-IT-X34PIOJ2.js} +202 -44
  59. package/dist/dev/locales/it-IT-X34PIOJ2.js.map +7 -0
  60. package/dist/dev/locales/{ja-JP-K2DI4W6B.js → ja-JP-37FC23PR.js} +247 -89
  61. package/dist/dev/locales/ja-JP-37FC23PR.js.map +7 -0
  62. package/dist/dev/locales/{kaa-6BPSNM3R.js → kaa-7ZYDFVKA.js} +202 -44
  63. package/dist/dev/locales/kaa-7ZYDFVKA.js.map +7 -0
  64. package/dist/dev/locales/{kab-KAB-2S7ZURK7.js → kab-KAB-MILWXBA6.js} +210 -52
  65. package/dist/dev/locales/kab-KAB-MILWXBA6.js.map +7 -0
  66. package/dist/dev/locales/{kk-KZ-UJPYGRQQ.js → kk-KZ-7BWTPIAV.js} +175 -17
  67. package/dist/dev/locales/kk-KZ-7BWTPIAV.js.map +7 -0
  68. package/dist/dev/locales/{km-KH-M5T5JKUE.js → km-KH-BV4P2KSZ.js} +198 -40
  69. package/dist/dev/locales/km-KH-BV4P2KSZ.js.map +7 -0
  70. package/dist/dev/locales/{ko-KR-RQX37SNF.js → ko-KR-TSXE5P7B.js} +218 -60
  71. package/dist/dev/locales/ko-KR-TSXE5P7B.js.map +7 -0
  72. package/dist/dev/locales/{ku-TR-5XJDIERL.js → ku-TR-ASSXNN3U.js} +198 -40
  73. package/dist/dev/locales/ku-TR-ASSXNN3U.js.map +7 -0
  74. package/dist/dev/locales/{lt-LT-MGUBX6CA.js → lt-LT-G7RZYQQU.js} +179 -21
  75. package/dist/dev/locales/lt-LT-G7RZYQQU.js.map +7 -0
  76. package/dist/dev/locales/{lv-LV-MD7N5VHD.js → lv-LV-DXNPBJZU.js} +196 -38
  77. package/dist/dev/locales/lv-LV-DXNPBJZU.js.map +7 -0
  78. package/dist/dev/locales/{mr-IN-4XWMNGQC.js → mr-IN-7F2ZCTCF.js} +204 -46
  79. package/dist/dev/locales/mr-IN-7F2ZCTCF.js.map +7 -0
  80. package/dist/dev/locales/{my-MM-O4Z74GN5.js → my-MM-NBI3KQGW.js} +181 -23
  81. package/dist/dev/locales/my-MM-NBI3KQGW.js.map +7 -0
  82. package/dist/dev/locales/{nb-NO-BMB73KRH.js → nb-NO-4DCTQT6L.js} +220 -62
  83. package/dist/dev/locales/nb-NO-4DCTQT6L.js.map +7 -0
  84. package/dist/dev/locales/{nl-NL-F2257BLQ.js → nl-NL-XGZJ7V2V.js} +297 -139
  85. package/dist/dev/locales/nl-NL-XGZJ7V2V.js.map +7 -0
  86. package/dist/dev/locales/{nn-NO-NCORG7TS.js → nn-NO-FR534JV5.js} +201 -43
  87. package/dist/dev/locales/nn-NO-FR534JV5.js.map +7 -0
  88. package/dist/dev/locales/{oc-FR-ATFBDMF6.js → oc-FR-YQCIKZIK.js} +220 -62
  89. package/dist/dev/locales/oc-FR-YQCIKZIK.js.map +7 -0
  90. package/dist/dev/locales/{pa-IN-D2I375G4.js → pa-IN-UM43JGD2.js} +190 -32
  91. package/dist/dev/locales/pa-IN-UM43JGD2.js.map +7 -0
  92. package/dist/dev/locales/{percentages-YKFLWNK2.js → percentages-OGWD7R2K.js} +2 -2
  93. package/dist/dev/locales/{pl-PL-YJHOWAAW.js → pl-PL-2UGKA6HK.js} +214 -56
  94. package/dist/dev/locales/pl-PL-2UGKA6HK.js.map +7 -0
  95. package/dist/dev/locales/{pt-BR-APOPYZJ7.js → pt-BR-H23QFYE3.js} +237 -79
  96. package/dist/dev/locales/pt-BR-H23QFYE3.js.map +7 -0
  97. package/dist/dev/locales/pt-PT-RHKJH5I5.js +744 -0
  98. package/dist/dev/locales/pt-PT-RHKJH5I5.js.map +7 -0
  99. package/dist/dev/locales/{ro-RO-L575VRQA.js → ro-RO-IIFONL3T.js} +203 -45
  100. package/dist/dev/locales/ro-RO-IIFONL3T.js.map +7 -0
  101. package/dist/dev/locales/{ru-RU-BLG6HZG5.js → ru-RU-QEP6D7GK.js} +253 -95
  102. package/dist/dev/locales/ru-RU-QEP6D7GK.js.map +7 -0
  103. package/dist/dev/locales/si-LK-LZYJQLHF.js +744 -0
  104. package/dist/dev/locales/si-LK-LZYJQLHF.js.map +7 -0
  105. package/dist/dev/locales/{sk-SK-DY6IPO5U.js → sk-SK-RWC6UWGY.js} +200 -42
  106. package/dist/dev/locales/sk-SK-RWC6UWGY.js.map +7 -0
  107. package/dist/dev/locales/{sl-SI-5DZSRA47.js → sl-SI-QJT2CAUO.js} +197 -39
  108. package/dist/dev/locales/sl-SI-QJT2CAUO.js.map +7 -0
  109. package/dist/dev/locales/{sv-SE-V32YHALQ.js → sv-SE-3MAT3NDX.js} +202 -44
  110. package/dist/dev/locales/sv-SE-3MAT3NDX.js.map +7 -0
  111. package/dist/dev/locales/{ta-IN-5JRAGQAO.js → ta-IN-J7XOYF2T.js} +257 -99
  112. package/dist/dev/locales/ta-IN-J7XOYF2T.js.map +7 -0
  113. package/dist/dev/locales/{th-TH-55ACRHDJ.js → th-TH-2OI52EOQ.js} +289 -131
  114. package/dist/dev/locales/th-TH-2OI52EOQ.js.map +7 -0
  115. package/dist/dev/locales/{tr-TR-7QYBXDBO.js → tr-TR-G7TAUHUI.js} +257 -99
  116. package/dist/dev/locales/tr-TR-G7TAUHUI.js.map +7 -0
  117. package/dist/dev/locales/{uk-UA-TJS2TMRH.js → uk-UA-IVSVBJIG.js} +229 -71
  118. package/dist/dev/locales/uk-UA-IVSVBJIG.js.map +7 -0
  119. package/dist/dev/locales/{si-LK-KT7GGO6D.js → uz-UZ-KCVDUVDE.js} +212 -54
  120. package/dist/dev/locales/uz-UZ-KCVDUVDE.js.map +7 -0
  121. package/dist/dev/locales/vi-VN-KBZAVWP5.js +744 -0
  122. package/dist/dev/locales/vi-VN-KBZAVWP5.js.map +7 -0
  123. package/dist/dev/locales/{zh-CN-4MXUOFTH.js → zh-CN-IS26RG2D.js} +199 -41
  124. package/dist/dev/locales/zh-CN-IS26RG2D.js.map +7 -0
  125. package/dist/dev/locales/{zh-HK-RBTGIU3U.js → zh-HK-KBWQ6SJC.js} +175 -17
  126. package/dist/dev/locales/zh-HK-KBWQ6SJC.js.map +7 -0
  127. package/dist/dev/locales/{zh-TW-U5VF4CCU.js → zh-TW-JKJWJQ4J.js} +204 -46
  128. package/dist/dev/locales/zh-TW-JKJWJQ4J.js.map +7 -0
  129. package/dist/dev/subset-shared.chunk.js +2 -2
  130. package/dist/dev/subset-worker.chunk.js +2 -2
  131. package/dist/prod/chunk-AJI3LATG.js +1 -0
  132. package/dist/prod/chunk-COMIBRVY.js +12 -0
  133. package/dist/prod/chunk-R7EP47KM.js +4 -0
  134. package/dist/prod/{chunk-LS7FJGPW.js → chunk-Z5NKEFVG.js} +8 -8
  135. package/dist/prod/data/{image-IFOCRD4I.js → image-WVUQOLPF.js} +1 -1
  136. package/dist/prod/index.css +1 -1
  137. package/dist/prod/index.js +35 -25
  138. package/dist/prod/locales/ar-SA-IYHKZRSE.js +8 -0
  139. package/dist/prod/locales/az-AZ-WL5GYRHK.js +1 -0
  140. package/dist/prod/locales/bg-BG-FXZYTRPD.js +5 -0
  141. package/dist/prod/locales/bn-BD-KO6YL5G2.js +3 -0
  142. package/dist/prod/locales/bn-IN-PC6JHKYB.js +3 -0
  143. package/dist/prod/locales/ca-ES-AREX5NEO.js +8 -0
  144. package/dist/prod/locales/cs-CZ-HXAZMFYH.js +7 -0
  145. package/dist/prod/locales/da-DK-5X7ZLFU3.js +2 -0
  146. package/dist/prod/locales/de-CH-76ZNVSOF.js +7 -0
  147. package/dist/prod/locales/de-DE-G3JVZ4MQ.js +7 -0
  148. package/dist/prod/locales/el-GR-4AZTZGY6.js +7 -0
  149. package/dist/prod/locales/en-TSRAEZ4E.js +1 -0
  150. package/dist/prod/locales/es-ES-ART7BI3G.js +7 -0
  151. package/dist/prod/locales/eu-ES-BIF4XBMT.js +7 -0
  152. package/dist/prod/locales/fa-IR-D4HHKAAI.js +9 -0
  153. package/dist/prod/locales/fi-FI-O35ZY7UI.js +6 -0
  154. package/dist/prod/locales/fr-FR-XEFNCM4I.js +12 -0
  155. package/dist/prod/locales/gl-ES-U4NYM3X5.js +6 -0
  156. package/dist/prod/locales/he-IL-656ABAVQ.js +8 -0
  157. package/dist/prod/locales/hi-IN-Z55GAFFR.js +3 -0
  158. package/dist/prod/locales/hu-HU-UJ62DVIW.js +3 -0
  159. package/dist/prod/locales/id-ID-FLZFU3OO.js +8 -0
  160. package/dist/prod/locales/it-IT-GIGIGIBJ.js +12 -0
  161. package/dist/prod/locales/ja-JP-43VXGDWI.js +7 -0
  162. package/dist/prod/locales/kaa-L3IMSDYL.js +1 -0
  163. package/dist/prod/locales/kab-KAB-XKPWJLNL.js +4 -0
  164. package/dist/prod/locales/kk-KZ-SXPDDY2H.js +1 -0
  165. package/dist/prod/locales/km-KH-DOS4CPGC.js +7 -0
  166. package/dist/prod/locales/ko-KR-BGC6VCY4.js +5 -0
  167. package/dist/prod/locales/ku-TR-J7IUITIA.js +6 -0
  168. package/dist/prod/locales/lt-LT-AC3LV5KG.js +3 -0
  169. package/dist/prod/locales/lv-LV-I6AY7QG2.js +4 -0
  170. package/dist/prod/locales/mr-IN-5SP4HV5B.js +9 -0
  171. package/dist/prod/locales/my-MM-S7ECRBYZ.js +1 -0
  172. package/dist/prod/locales/nb-NO-6PNHTF4R.js +8 -0
  173. package/dist/prod/locales/nl-NL-R4C4SUIG.js +13 -0
  174. package/dist/prod/locales/nn-NO-3TFXTM7Y.js +4 -0
  175. package/dist/prod/locales/oc-FR-IK6GIE7H.js +4 -0
  176. package/dist/prod/locales/pa-IN-YAKHYJET.js +4 -0
  177. package/dist/prod/locales/percentages-OL6W367U.js +1 -0
  178. package/dist/prod/locales/pl-PL-BIY22ZWU.js +12 -0
  179. package/dist/prod/locales/pt-BR-Q23NUPD6.js +6 -0
  180. package/dist/prod/locales/pt-PT-LOPEJLPJ.js +8 -0
  181. package/dist/prod/locales/ro-RO-W3D2ZATV.js +12 -0
  182. package/dist/prod/locales/ru-RU-DCTW7QSH.js +10 -0
  183. package/dist/prod/locales/si-LK-FYRRHO3C.js +1 -0
  184. package/dist/prod/locales/sk-SK-MC7UOHQO.js +7 -0
  185. package/dist/prod/locales/sl-SI-L6B6HFY5.js +6 -0
  186. package/dist/prod/locales/sv-SE-KMY6L2BA.js +8 -0
  187. package/dist/prod/locales/ta-IN-ZQCYE2JK.js +6 -0
  188. package/dist/prod/locales/th-TH-WS7ECBAV.js +1 -0
  189. package/dist/prod/locales/tr-TR-S5FI7JRW.js +4 -0
  190. package/dist/prod/locales/uk-UA-4EZUWUSQ.js +6 -0
  191. package/dist/prod/locales/uz-UZ-OKHL6AFA.js +1 -0
  192. package/dist/prod/locales/vi-VN-K34TWHF7.js +7 -0
  193. package/dist/prod/locales/zh-CN-JE4UZWNO.js +11 -0
  194. package/dist/prod/locales/zh-HK-RM35YDXX.js +1 -0
  195. package/dist/prod/locales/zh-TW-ONGLV6Y5.js +9 -0
  196. package/dist/prod/subset-shared.chunk.js +1 -1
  197. package/dist/prod/subset-worker.chunk.js +1 -1
  198. package/dist/types/common/src/bounds.d.ts +10 -0
  199. package/dist/types/common/src/colors.d.ts +59 -39
  200. package/dist/types/common/src/constants.d.ts +19 -27
  201. package/dist/types/common/src/editorInterface.d.ts +34 -0
  202. package/dist/types/common/src/font-metadata.d.ts +1 -3
  203. package/dist/types/common/src/index.d.ts +2 -0
  204. package/dist/types/common/src/keys.d.ts +1 -1
  205. package/dist/types/common/src/utility-types.d.ts +0 -1
  206. package/dist/types/common/src/utils.d.ts +49 -35
  207. package/dist/types/element/src/Scene.d.ts +3 -3
  208. package/dist/types/element/src/binding.d.ts +58 -44
  209. package/dist/types/element/src/bounds.d.ts +2 -10
  210. package/dist/types/element/src/collision.d.ts +6 -2
  211. package/dist/types/element/src/comparisons.d.ts +7 -7
  212. package/dist/types/element/src/dragElements.d.ts +3 -3
  213. package/dist/types/element/src/duplicate.d.ts +3 -3
  214. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  215. package/dist/types/element/src/frame.d.ts +5 -1
  216. package/dist/types/element/src/heading.d.ts +2 -1
  217. package/dist/types/element/src/image.d.ts +1 -11
  218. package/dist/types/element/src/index.d.ts +1 -3
  219. package/dist/types/element/src/linearElementEditor.d.ts +16 -20
  220. package/dist/types/element/src/mutateElement.d.ts +3 -1
  221. package/dist/types/element/src/newElement.d.ts +6 -6
  222. package/dist/types/element/src/renderElement.d.ts +1 -7
  223. package/dist/types/element/src/resizeElements.d.ts +10 -10
  224. package/dist/types/element/src/resizeTest.d.ts +6 -5
  225. package/dist/types/element/src/selection.d.ts +3 -7
  226. package/dist/types/element/src/shape.d.ts +8 -7
  227. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  228. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  229. package/dist/types/element/src/transformHandles.d.ts +8 -27
  230. package/dist/types/element/src/typeChecks.d.ts +4 -7
  231. package/dist/types/element/src/types.d.ts +7 -11
  232. package/dist/types/element/src/utils.d.ts +5 -2
  233. package/dist/types/element/src/zindex.d.ts +7 -1
  234. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +93 -139
  235. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  236. package/dist/types/excalidraw/actions/actionBoundText.d.ts +67 -98
  237. package/dist/types/excalidraw/actions/actionCanvas.d.ts +401 -771
  238. package/dist/types/excalidraw/actions/actionClipboard.d.ts +86 -862
  239. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +32 -48
  240. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +107 -159
  241. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  242. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  243. package/dist/types/excalidraw/actions/actionElementLink.d.ts +28 -46
  244. package/dist/types/excalidraw/actions/actionElementLock.d.ts +66 -97
  245. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +33 -49
  246. package/dist/types/excalidraw/actions/actionExport.d.ts +144 -1113
  247. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -396
  248. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  249. package/dist/types/excalidraw/actions/actionFrame.d.ts +213 -312
  250. package/dist/types/excalidraw/actions/actionGroup.d.ts +70 -109
  251. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +122 -178
  252. package/dist/types/excalidraw/actions/actionLink.d.ts +30 -46
  253. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -413
  254. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -361
  255. package/dist/types/excalidraw/actions/actionProperties.d.ts +127 -2510
  256. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +35 -55
  257. package/dist/types/excalidraw/actions/actionStyles.d.ts +32 -48
  258. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  259. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +32 -48
  260. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +32 -48
  261. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -43
  262. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  263. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -48
  264. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +32 -48
  265. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -49
  266. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  267. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  268. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  269. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  270. package/dist/types/excalidraw/appState.d.ts +12 -8
  271. package/dist/types/excalidraw/clipboard.d.ts +7 -31
  272. package/dist/types/excalidraw/components/Actions.d.ts +14 -4
  273. package/dist/types/excalidraw/components/App.d.ts +58 -59
  274. package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +1 -1
  275. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  276. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  277. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +1 -3
  278. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  279. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  280. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  281. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  282. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  283. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  284. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
  285. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  286. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  287. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  288. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  289. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  290. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  291. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
  292. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  293. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  294. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  295. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  296. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  297. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  298. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  299. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  300. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  301. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  302. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  303. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  304. package/dist/types/excalidraw/components/LinkButton.d.ts +4 -0
  305. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  306. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  307. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  308. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  309. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  310. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  311. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  312. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  313. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  314. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  315. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  316. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  317. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  318. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  319. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  320. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  321. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  322. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  323. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  324. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  325. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  326. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  327. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
  328. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  329. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
  330. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  331. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  332. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  333. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  334. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
  335. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  336. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  337. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  338. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  339. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  340. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
  341. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  342. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
  343. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  344. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  345. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  346. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  347. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
  348. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  349. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  350. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  351. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  352. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  353. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  354. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  355. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  356. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  357. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -32
  358. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +6 -5
  359. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  360. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +10 -18
  361. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +3 -3
  362. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  363. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  364. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  365. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  366. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  367. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  368. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  369. package/dist/types/excalidraw/components/icons.d.ts +21 -13
  370. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  371. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
  372. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +25 -30
  373. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  374. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  375. package/dist/types/excalidraw/data/blob.d.ts +323 -5
  376. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  377. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  378. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  379. package/dist/types/excalidraw/data/index.d.ts +3 -3
  380. package/dist/types/excalidraw/data/json.d.ts +159 -2
  381. package/dist/types/excalidraw/data/library.d.ts +24 -9
  382. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  383. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  384. package/dist/types/excalidraw/errors.d.ts +14 -0
  385. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  386. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  387. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  388. package/dist/types/excalidraw/i18n.d.ts +2 -2
  389. package/dist/types/excalidraw/index.d.ts +6 -7
  390. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  391. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  392. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  393. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  394. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  395. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  396. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  397. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  398. package/dist/types/excalidraw/snapping.d.ts +5 -5
  399. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  400. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  401. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  402. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  403. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  404. package/dist/types/excalidraw/types.d.ts +29 -22
  405. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  406. package/dist/types/math/src/polygon.d.ts +2 -2
  407. package/dist/types/math/src/range.d.ts +1 -3
  408. package/dist/types/math/src/segment.d.ts +3 -3
  409. package/dist/types/utils/src/bbox.d.ts +1 -1
  410. package/dist/types/utils/src/export.d.ts +5 -5
  411. package/dist/types/utils/src/shape.d.ts +6 -6
  412. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  413. package/package.json +7 -8
  414. package/dist/dev/chunk-LJB4UXX2.js.map +0 -7
  415. package/dist/dev/chunk-MFAYKRVR.js +0 -66
  416. package/dist/dev/chunk-MFAYKRVR.js.map +0 -7
  417. package/dist/dev/chunk-QF5FRM6O.js.map +0 -7
  418. package/dist/dev/locales/ar-SA-XORAP2EK.js.map +0 -7
  419. package/dist/dev/locales/az-AZ-NAUU3Z4Y.js.map +0 -7
  420. package/dist/dev/locales/bg-BG-AAABLFCY.js.map +0 -7
  421. package/dist/dev/locales/bn-BD-PM4AC5WG.js.map +0 -7
  422. package/dist/dev/locales/ca-ES-YNNMFRQX.js.map +0 -7
  423. package/dist/dev/locales/cs-CZ-DGZA5IKG.js.map +0 -7
  424. package/dist/dev/locales/da-DK-N76F4QAJ.js.map +0 -7
  425. package/dist/dev/locales/de-DE-DMRXZ2SZ.js.map +0 -7
  426. package/dist/dev/locales/el-GR-HIKPLEXI.js.map +0 -7
  427. package/dist/dev/locales/es-ES-AQYVXC32.js.map +0 -7
  428. package/dist/dev/locales/eu-ES-3TOEU5DE.js.map +0 -7
  429. package/dist/dev/locales/fa-IR-527GAKUP.js.map +0 -7
  430. package/dist/dev/locales/fi-FI-M3WLVDFP.js.map +0 -7
  431. package/dist/dev/locales/fr-FR-YE4VDJFI.js.map +0 -7
  432. package/dist/dev/locales/gl-ES-KMXUYGUN.js.map +0 -7
  433. package/dist/dev/locales/he-IL-4MU5N22B.js +0 -586
  434. package/dist/dev/locales/he-IL-4MU5N22B.js.map +0 -7
  435. package/dist/dev/locales/hi-IN-ZHZNZWFC.js +0 -586
  436. package/dist/dev/locales/hi-IN-ZHZNZWFC.js.map +0 -7
  437. package/dist/dev/locales/hu-HU-VIYZI3X4.js.map +0 -7
  438. package/dist/dev/locales/id-ID-22TWZNLA.js.map +0 -7
  439. package/dist/dev/locales/it-IT-MDEQ2SG3.js.map +0 -7
  440. package/dist/dev/locales/ja-JP-K2DI4W6B.js.map +0 -7
  441. package/dist/dev/locales/kaa-6BPSNM3R.js.map +0 -7
  442. package/dist/dev/locales/kab-KAB-2S7ZURK7.js.map +0 -7
  443. package/dist/dev/locales/kk-KZ-UJPYGRQQ.js.map +0 -7
  444. package/dist/dev/locales/km-KH-M5T5JKUE.js.map +0 -7
  445. package/dist/dev/locales/ko-KR-RQX37SNF.js.map +0 -7
  446. package/dist/dev/locales/ku-TR-5XJDIERL.js.map +0 -7
  447. package/dist/dev/locales/lt-LT-MGUBX6CA.js.map +0 -7
  448. package/dist/dev/locales/lv-LV-MD7N5VHD.js.map +0 -7
  449. package/dist/dev/locales/mr-IN-4XWMNGQC.js.map +0 -7
  450. package/dist/dev/locales/my-MM-O4Z74GN5.js.map +0 -7
  451. package/dist/dev/locales/nb-NO-BMB73KRH.js.map +0 -7
  452. package/dist/dev/locales/nl-NL-F2257BLQ.js.map +0 -7
  453. package/dist/dev/locales/nn-NO-NCORG7TS.js.map +0 -7
  454. package/dist/dev/locales/oc-FR-ATFBDMF6.js.map +0 -7
  455. package/dist/dev/locales/pa-IN-D2I375G4.js.map +0 -7
  456. package/dist/dev/locales/pl-PL-YJHOWAAW.js.map +0 -7
  457. package/dist/dev/locales/pt-BR-APOPYZJ7.js.map +0 -7
  458. package/dist/dev/locales/pt-PT-W56WCN7P.js +0 -586
  459. package/dist/dev/locales/pt-PT-W56WCN7P.js.map +0 -7
  460. package/dist/dev/locales/ro-RO-L575VRQA.js.map +0 -7
  461. package/dist/dev/locales/ru-RU-BLG6HZG5.js.map +0 -7
  462. package/dist/dev/locales/si-LK-KT7GGO6D.js.map +0 -7
  463. package/dist/dev/locales/sk-SK-DY6IPO5U.js.map +0 -7
  464. package/dist/dev/locales/sl-SI-5DZSRA47.js.map +0 -7
  465. package/dist/dev/locales/sv-SE-V32YHALQ.js.map +0 -7
  466. package/dist/dev/locales/ta-IN-5JRAGQAO.js.map +0 -7
  467. package/dist/dev/locales/th-TH-55ACRHDJ.js.map +0 -7
  468. package/dist/dev/locales/tr-TR-7QYBXDBO.js.map +0 -7
  469. package/dist/dev/locales/uk-UA-TJS2TMRH.js.map +0 -7
  470. package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js +0 -586
  471. package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js.map +0 -7
  472. package/dist/dev/locales/zh-CN-4MXUOFTH.js.map +0 -7
  473. package/dist/dev/locales/zh-HK-RBTGIU3U.js.map +0 -7
  474. package/dist/dev/locales/zh-TW-U5VF4CCU.js.map +0 -7
  475. package/dist/prod/chunk-I4UNSFV6.js +0 -12
  476. package/dist/prod/chunk-PYEQN4AH.js +0 -4
  477. package/dist/prod/chunk-Z3N5DIM6.js +0 -1
  478. package/dist/prod/locales/ar-SA-G6X2FPQ2.js +0 -10
  479. package/dist/prod/locales/az-AZ-76LH7QW2.js +0 -1
  480. package/dist/prod/locales/bg-BG-XCXSNQG7.js +0 -5
  481. package/dist/prod/locales/bn-BD-2XOGV67Q.js +0 -5
  482. package/dist/prod/locales/ca-ES-6MX7JW3Y.js +0 -8
  483. package/dist/prod/locales/cs-CZ-2BRQDIVT.js +0 -11
  484. package/dist/prod/locales/da-DK-5WZEPLOC.js +0 -5
  485. package/dist/prod/locales/de-DE-XR44H4JA.js +0 -8
  486. package/dist/prod/locales/el-GR-BZB4AONW.js +0 -10
  487. package/dist/prod/locales/en-TYY6KWIJ.js +0 -1
  488. package/dist/prod/locales/es-ES-U4NZUMDT.js +0 -9
  489. package/dist/prod/locales/eu-ES-A7QVB2H4.js +0 -11
  490. package/dist/prod/locales/fa-IR-HGAKTJCU.js +0 -8
  491. package/dist/prod/locales/fi-FI-Z5N7JZ37.js +0 -6
  492. package/dist/prod/locales/fr-FR-RHASNOE6.js +0 -9
  493. package/dist/prod/locales/gl-ES-HMX3MZ6V.js +0 -10
  494. package/dist/prod/locales/he-IL-6SHJWFNN.js +0 -10
  495. package/dist/prod/locales/hi-IN-IWLTKZ5I.js +0 -4
  496. package/dist/prod/locales/hu-HU-A5ZG7DT2.js +0 -7
  497. package/dist/prod/locales/id-ID-SAP4L64H.js +0 -10
  498. package/dist/prod/locales/it-IT-JPQ66NNP.js +0 -11
  499. package/dist/prod/locales/ja-JP-DBVTYXUO.js +0 -8
  500. package/dist/prod/locales/kaa-6HZHGXH3.js +0 -1
  501. package/dist/prod/locales/kab-KAB-ZGHBKWFO.js +0 -8
  502. package/dist/prod/locales/kk-KZ-P5N5QNE5.js +0 -1
  503. package/dist/prod/locales/km-KH-HSX4SM5Z.js +0 -11
  504. package/dist/prod/locales/ko-KR-MTYHY66A.js +0 -9
  505. package/dist/prod/locales/ku-TR-6OUDTVRD.js +0 -9
  506. package/dist/prod/locales/lt-LT-XHIRWOB4.js +0 -3
  507. package/dist/prod/locales/lv-LV-5QDEKY6T.js +0 -7
  508. package/dist/prod/locales/mr-IN-CRQNXWMA.js +0 -13
  509. package/dist/prod/locales/my-MM-5M5IBNSE.js +0 -1
  510. package/dist/prod/locales/nb-NO-T6EIAALU.js +0 -10
  511. package/dist/prod/locales/nl-NL-IS3SIHDZ.js +0 -8
  512. package/dist/prod/locales/nn-NO-6E72VCQL.js +0 -8
  513. package/dist/prod/locales/oc-FR-POXYY2M6.js +0 -8
  514. package/dist/prod/locales/pa-IN-N4M65BXN.js +0 -4
  515. package/dist/prod/locales/percentages-BXMCSKIN.js +0 -1
  516. package/dist/prod/locales/pl-PL-T2D74RX3.js +0 -9
  517. package/dist/prod/locales/pt-BR-5N22H2LF.js +0 -9
  518. package/dist/prod/locales/pt-PT-UZXXM6DQ.js +0 -9
  519. package/dist/prod/locales/ro-RO-JPDTUUEW.js +0 -11
  520. package/dist/prod/locales/ru-RU-B4JR7IUQ.js +0 -9
  521. package/dist/prod/locales/si-LK-N5RQ5JYF.js +0 -1
  522. package/dist/prod/locales/sk-SK-C5VTKIMK.js +0 -6
  523. package/dist/prod/locales/sl-SI-NN7IZMDC.js +0 -6
  524. package/dist/prod/locales/sv-SE-XGPEYMSR.js +0 -10
  525. package/dist/prod/locales/ta-IN-2NMHFXQM.js +0 -9
  526. package/dist/prod/locales/th-TH-HPSO5L25.js +0 -2
  527. package/dist/prod/locales/tr-TR-DEFEU3FU.js +0 -7
  528. package/dist/prod/locales/uk-UA-QMV73CPH.js +0 -6
  529. package/dist/prod/locales/vi-VN-M7AON7JQ.js +0 -5
  530. package/dist/prod/locales/zh-CN-LNUGB5OW.js +0 -10
  531. package/dist/prod/locales/zh-HK-E62DVLB3.js +0 -1
  532. package/dist/prod/locales/zh-TW-RAJ6MFWO.js +0 -9
  533. /package/dist/dev/{chunk-CP5DND7P.js.map → chunk-Y3BTNZQY.js.map} +0 -0
  534. /package/dist/dev/data/{image-OLV524AK.js.map → image-2BHUUSLM.js.map} +0 -0
  535. /package/dist/dev/locales/{en-SMAPCEOQ.js.map → en-JRVQ7H6V.js.map} +0 -0
  536. /package/dist/dev/locales/{percentages-YKFLWNK2.js.map → percentages-OGWD7R2K.js.map} +0 -0
@@ -1,7 +1,7 @@
1
- import type { UserIdleState } from "@excalidraw/common";
1
+ import type { UserIdleState, EditorInterface } from "@excalidraw/common";
2
2
  import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "@excalidraw/element/types";
3
3
  import type { MakeBrand } from "@excalidraw/common/utility-types";
4
- import type { AppClassProperties, AppState, EmbedsValidationStatus, ElementsPendingErasure, InteractiveCanvasAppState, StaticCanvasAppState, SocketId, Device, PendingExcalidrawElements } from "../types";
4
+ import type { AppClassProperties, AppState, EmbedsValidationStatus, ElementsPendingErasure, InteractiveCanvasAppState, StaticCanvasAppState, SocketId, PendingExcalidrawElements } from "../types";
5
5
  import type { RoughCanvas } from "roughjs/bin/canvas";
6
6
  import type { Drawable } from "roughjs/bin/core";
7
7
  export type RenderableElementsMap = NonDeletedElementsMap & MakeBrand<"RenderableElementsMap">;
@@ -15,6 +15,7 @@ export type StaticCanvasRenderConfig = {
15
15
  embedsValidationStatus: EmbedsValidationStatus;
16
16
  elementsPendingErasure: ElementsPendingErasure;
17
17
  pendingFlowchartNodes: PendingExcalidrawElements | null;
18
+ theme: AppState["theme"];
18
19
  };
19
20
  export type SVGRenderConfig = {
20
21
  offsetX: number;
@@ -32,6 +33,7 @@ export type SVGRenderConfig = {
32
33
  * @default true
33
34
  */
34
35
  reuseImages: boolean;
36
+ theme: AppState["theme"];
35
37
  };
36
38
  export type InteractiveCanvasRenderConfig = {
37
39
  remoteSelectedElementIds: Map<ExcalidrawElement["id"], SocketId[]>;
@@ -43,6 +45,10 @@ export type InteractiveCanvasRenderConfig = {
43
45
  remotePointerUsernames: Map<SocketId, string>;
44
46
  remotePointerButton: Map<SocketId, string | undefined>;
45
47
  selectionColor: string;
48
+ lastViewportPosition: {
49
+ x: number;
50
+ y: number;
51
+ };
46
52
  renderScrollbars?: boolean;
47
53
  };
48
54
  export type RenderInteractiveSceneCallback = {
@@ -60,7 +66,13 @@ export type StaticSceneRenderConfig = {
60
66
  appState: StaticCanvasAppState;
61
67
  renderConfig: StaticCanvasRenderConfig;
62
68
  };
69
+ export type InteractiveSceneRenderAnimationState = {
70
+ bindingHighlight: {
71
+ runtime: number;
72
+ } | undefined;
73
+ };
63
74
  export type InteractiveSceneRenderConfig = {
75
+ app: AppClassProperties;
64
76
  canvas: HTMLCanvasElement | null;
65
77
  elementsMap: RenderableElementsMap;
66
78
  visibleElements: readonly NonDeletedExcalidrawElement[];
@@ -69,8 +81,10 @@ export type InteractiveSceneRenderConfig = {
69
81
  scale: number;
70
82
  appState: InteractiveCanvasAppState;
71
83
  renderConfig: InteractiveCanvasRenderConfig;
72
- device: Device;
84
+ editorInterface: EditorInterface;
73
85
  callback: (data: RenderInteractiveSceneCallback) => void;
86
+ animationState?: InteractiveSceneRenderAnimationState;
87
+ deltaTime: number;
74
88
  };
75
89
  export type NewElementSceneRenderConfig = {
76
90
  canvas: HTMLCanvasElement | null;
@@ -103,14 +117,17 @@ export type ScrollBars = {
103
117
  deltaMultiplier: number;
104
118
  } | null;
105
119
  };
106
- export type ElementShape = Drawable | Drawable[] | null;
120
+ export type SVGPathString = string & {
121
+ __brand: "SVGPathString";
122
+ };
123
+ export type ElementShape = Drawable | Drawable[] | Path2D | (Drawable | SVGPathString)[] | null;
107
124
  export type ElementShapes = {
108
125
  rectangle: Drawable;
109
126
  ellipse: Drawable;
110
127
  diamond: Drawable;
111
128
  iframe: Drawable;
112
129
  embeddable: Drawable;
113
- freedraw: Drawable | null;
130
+ freedraw: (Drawable | SVGPathString)[];
114
131
  arrow: Drawable[];
115
132
  line: Drawable[];
116
133
  text: null;
@@ -0,0 +1 @@
1
+ export declare const getShortcutKey: (shortcut: string) => string;
@@ -1,6 +1,6 @@
1
1
  import { type GlobalPoint } from "@excalidraw/math";
2
2
  import type { InclusiveRange } from "@excalidraw/math";
3
- import type { Bounds } from "@excalidraw/element";
3
+ import type { Bounds } from "@excalidraw/common";
4
4
  import type { MaybeTransformHandleType } from "@excalidraw/element";
5
5
  import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
6
6
  import type { AppClassProperties, AppState, KeyboardModifiersObject } from "./types";
@@ -70,9 +70,9 @@ export declare const isSnappingEnabled: ({ event, app, selectedElements, }: {
70
70
  }) => boolean;
71
71
  export declare const areRoughlyEqual: (a: number, b: number, precision?: number) => boolean;
72
72
  export declare const getElementsCorners: (elements: ExcalidrawElement[], elementsMap: ElementsMap, { omitCenter, boundingBoxCorners, dragOffset, }?: {
73
- omitCenter?: boolean | undefined;
74
- boundingBoxCorners?: boolean | undefined;
75
- dragOffset?: Vector2D | undefined;
73
+ omitCenter?: boolean;
74
+ boundingBoxCorners?: boolean;
75
+ dragOffset?: Vector2D;
76
76
  }) => GlobalPoint[];
77
77
  export declare const getVisibleGaps: (elements: readonly NonDeletedExcalidrawElement[], selectedElements: ExcalidrawElement[], appState: AppState, elementsMap: ElementsMap) => {
78
78
  horizontalGaps: Gap[];
@@ -107,5 +107,5 @@ export declare const getSnapLinesAtPointer: (elements: readonly ExcalidrawElemen
107
107
  };
108
108
  snapLines: PointerSnapLine[];
109
109
  };
110
- export declare const isActiveToolNonLinearSnappable: (activeToolType: AppState["activeTool"]["type"]) => boolean;
110
+ export declare const isActiveToolNonLinearSnappable: (activeToolType: AppState["activeTool"]["type"]) => activeToolType is "text" | "rectangle" | "diamond" | "ellipse" | "image" | "frame" | "magicframe";
111
111
  export {};
@@ -38,7 +38,7 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38
38
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39
39
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
40
  */
41
- declare function subset(hbSubsetWasm: any, heapu8: Uint8Array, font: ArrayBuffer, codePoints: ReadonlySet<number>): Uint8Array;
41
+ declare function subset(hbSubsetWasm: any, heapu8: Uint8Array, font: ArrayBuffer, codePoints: ReadonlySet<number>): Uint8Array<ArrayBuffer>;
42
42
  declare const _default: {
43
43
  subset: typeof subset;
44
44
  };
@@ -7,7 +7,7 @@
7
7
  * In the future consider separating common utils into a separate shared chunk.
8
8
  */
9
9
  declare const load: () => Promise<{
10
- subset: (fontBuffer: ArrayBuffer, codePoints: ReadonlySet<number>) => Uint8Array;
10
+ subset: (fontBuffer: ArrayBuffer, codePoints: ReadonlySet<number>) => Uint8Array<ArrayBuffer>;
11
11
  }>;
12
12
  declare const _default: () => ReturnType<typeof load>;
13
13
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: Uint8Array;
1
+ declare const _default: Uint8Array<ArrayBuffer>;
2
2
  export default _default;
@@ -7,8 +7,8 @@
7
7
  * In the future consider separating common utils into a separate shared chunk.
8
8
  */
9
9
  declare const load: () => Promise<{
10
- compress: (buffer: ArrayBuffer) => Uint8Array;
11
- decompress: (buffer: ArrayBuffer) => Uint8Array;
10
+ compress: (buffer: ArrayBuffer) => Uint8Array<ArrayBuffer>;
11
+ decompress: (buffer: ArrayBuffer) => Uint8Array<ArrayBuffer>;
12
12
  }>;
13
13
  declare const _default: () => ReturnType<typeof load>;
14
14
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: Uint8Array;
1
+ declare const _default: Uint8Array<ArrayBuffer>;
2
2
  export default _default;
@@ -1,8 +1,7 @@
1
- import type { IMAGE_MIME_TYPES, UserIdleState, throttleRAF, MIME_TYPES } from "@excalidraw/common";
2
- import type { SuggestedBinding } from "@excalidraw/element";
1
+ import type { IMAGE_MIME_TYPES, UserIdleState, throttleRAF, MIME_TYPES, EditorInterface } from "@excalidraw/common";
3
2
  import type { LinearElementEditor } from "@excalidraw/element";
4
3
  import type { MaybeTransformHandleType } from "@excalidraw/element";
5
- import type { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, FileId, Theme, StrokeRoundness, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeLikeElement, OrderedExcalidrawElement, ExcalidrawNonSelectionElement } from "@excalidraw/element/types";
4
+ import type { PointerType, ExcalidrawLinearElement, NonDeletedExcalidrawElement, NonDeleted, TextAlign, ExcalidrawElement, GroupId, ExcalidrawBindableElement, Arrowhead, ChartType, FontFamilyValues, FileId, Theme, StrokeRoundness, ExcalidrawEmbeddableElement, ExcalidrawMagicFrameElement, ExcalidrawFrameLikeElement, ExcalidrawElementType, ExcalidrawIframeLikeElement, OrderedExcalidrawElement, ExcalidrawNonSelectionElement, BindMode } from "@excalidraw/element/types";
6
5
  import type { Merge, MaybePromise, ValueOf, MakeBrand } from "@excalidraw/common/utility-types";
7
6
  import type { CaptureUpdateActionType, DurableIncrement, EphemeralIncrement } from "@excalidraw/element";
8
7
  import type { Action } from "./actions/types";
@@ -125,6 +124,7 @@ export type StaticCanvasAppState = Readonly<_CommonCanvasAppState & {
125
124
  frameRendering: AppState["frameRendering"];
126
125
  currentHoveredFontFamily: AppState["currentHoveredFontFamily"];
127
126
  hoveredElementIds: AppState["hoveredElementIds"];
127
+ suggestedBinding: AppState["suggestedBinding"];
128
128
  croppingElementId: AppState["croppingElementId"];
129
129
  }>;
130
130
  export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
@@ -133,8 +133,9 @@ export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
133
133
  selectedGroupIds: AppState["selectedGroupIds"];
134
134
  selectedLinearElement: AppState["selectedLinearElement"];
135
135
  multiElement: AppState["multiElement"];
136
+ newElement: AppState["newElement"];
136
137
  isBindingEnabled: AppState["isBindingEnabled"];
137
- suggestedBindings: AppState["suggestedBindings"];
138
+ suggestedBinding: AppState["suggestedBinding"];
138
139
  isRotating: AppState["isRotating"];
139
140
  elementsToHighlight: AppState["elementsToHighlight"];
140
141
  collaborators: AppState["collaborators"];
@@ -145,6 +146,10 @@ export type InteractiveCanvasAppState = Readonly<_CommonCanvasAppState & {
145
146
  croppingElementId: AppState["croppingElementId"];
146
147
  searchMatches: AppState["searchMatches"];
147
148
  activeLockedId: AppState["activeLockedId"];
149
+ hoveredElementIds: AppState["hoveredElementIds"];
150
+ frameRendering: AppState["frameRendering"];
151
+ shouldCacheIgnoreZoom: AppState["shouldCacheIgnoreZoom"];
152
+ exportScale: AppState["exportScale"];
148
153
  }>;
149
154
  export type ObservedAppState = ObservedStandaloneAppState & ObservedElementsAppState;
150
155
  export type ObservedStandaloneAppState = {
@@ -198,7 +203,7 @@ export interface AppState {
198
203
  selectionElement: NonDeletedExcalidrawElement | null;
199
204
  isBindingEnabled: boolean;
200
205
  startBoundElement: NonDeleted<ExcalidrawBindableElement> | null;
201
- suggestedBindings: SuggestedBinding[];
206
+ suggestedBinding: NonDeleted<ExcalidrawBindableElement> | null;
202
207
  frameToHighlight: NonDeleted<ExcalidrawFrameLikeElement> | null;
203
208
  frameRendering: {
204
209
  enabled: boolean;
@@ -221,6 +226,10 @@ export interface AppState {
221
226
  locked: boolean;
222
227
  fromSelection: boolean;
223
228
  } & ActiveTool;
229
+ preferredSelectionTool: {
230
+ type: "selection" | "lasso";
231
+ initialized: boolean;
232
+ };
224
233
  penMode: boolean;
225
234
  penDetected: boolean;
226
235
  exportBackground: boolean;
@@ -251,7 +260,7 @@ export interface AppState {
251
260
  isResizing: boolean;
252
261
  isRotating: boolean;
253
262
  zoom: Zoom;
254
- openMenu: "canvas" | "shape" | null;
263
+ openMenu: "canvas" | null;
255
264
  openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
256
265
  openSidebar: {
257
266
  name: SidebarName;
@@ -264,6 +273,8 @@ export interface AppState {
264
273
  tab: "text-to-diagram" | "mermaid";
265
274
  } | {
266
275
  name: "commandPalette";
276
+ } | {
277
+ name: "settings";
267
278
  } | {
268
279
  name: "elementLinkSelector";
269
280
  sourceElementId: ExcalidrawElement["id"];
@@ -351,8 +362,7 @@ export interface AppState {
351
362
  lockedMultiSelections: {
352
363
  [groupId: string]: true;
353
364
  };
354
- /** properties sidebar mode - determines whether to show compact or complete sidebar */
355
- stylesPanelMode: "compact" | "full";
365
+ bindMode: BindMode;
356
366
  }
357
367
  export type SearchMatch = {
358
368
  id: string;
@@ -365,7 +375,7 @@ export type SearchMatch = {
365
375
  showOnCanvas: boolean;
366
376
  }[];
367
377
  };
368
- export type UIAppState = Omit<AppState, "suggestedBindings" | "startBoundElement" | "cursorButton" | "scrollX" | "scrollY">;
378
+ export type UIAppState = Omit<AppState, "startBoundElement" | "cursorButton" | "scrollX" | "scrollY">;
369
379
  export type NormalizedZoomValue = number & {
370
380
  _brand: "normalizedZoom";
371
381
  };
@@ -443,6 +453,7 @@ export interface ExcalidrawProps {
443
453
  onDuplicate?: (nextElements: readonly ExcalidrawElement[],
444
454
  /** excludes the duplicated elements */
445
455
  prevElements: readonly ExcalidrawElement[]) => ExcalidrawElement[] | void;
456
+ renderTopLeftUI?: (isMobile: boolean, appState: UIAppState) => JSX.Element | null;
446
457
  renderTopRightUI?: (isMobile: boolean, appState: UIAppState) => JSX.Element | null;
447
458
  langCode?: Language["code"];
448
459
  viewModeEnabled?: boolean;
@@ -500,6 +511,11 @@ export type UIOptions = Partial<{
500
511
  tools: {
501
512
  image: boolean;
502
513
  };
514
+ /**
515
+ * Optionally control the editor form factor and desktop UI mode from the host app.
516
+ * If not provided, we will take care of it internally.
517
+ */
518
+ getFormFactor?: (editorWidth: number, editorHeight: number) => EditorInterface["formFactor"];
503
519
  /** @deprecated does nothing. Will be removed in 0.15 */
504
520
  welcomeScreen?: boolean;
505
521
  }>;
@@ -530,7 +546,7 @@ export type AppClassProperties = {
530
546
  mimeType: ValueOf<typeof IMAGE_MIME_TYPES>;
531
547
  }>;
532
548
  files: BinaryFiles;
533
- device: App["device"];
549
+ editorInterface: App["editorInterface"];
534
550
  scene: App["scene"];
535
551
  syncActionResult: App["syncActionResult"];
536
552
  fonts: App["fonts"];
@@ -559,7 +575,8 @@ export type AppClassProperties = {
559
575
  excalidrawContainerValue: App["excalidrawContainerValue"];
560
576
  onPointerUpEmitter: App["onPointerUpEmitter"];
561
577
  updateEditorAtom: App["updateEditorAtom"];
562
- defaultSelectionTool: "selection" | "lasso";
578
+ onPointerDownEmitter: App["onPointerDownEmitter"];
579
+ bindModeHandler: App["bindModeHandler"];
563
580
  };
564
581
  export type PointerDownState = Readonly<{
565
582
  origin: Readonly<{
@@ -645,6 +662,7 @@ export interface ExcalidrawImperativeAPI {
645
662
  setCursor: InstanceType<typeof App>["setCursor"];
646
663
  resetCursor: InstanceType<typeof App>["resetCursor"];
647
664
  toggleSidebar: InstanceType<typeof App>["toggleSidebar"];
665
+ getEditorInterface: () => EditorInterface;
648
666
  /**
649
667
  * Disables rendering of frames (including element clipping), but currently
650
668
  * the frames are still interactive in edit mode. As such, this API should be
@@ -658,17 +676,6 @@ export interface ExcalidrawImperativeAPI {
658
676
  onScrollChange: (callback: (scrollX: number, scrollY: number, zoom: Zoom) => void) => UnsubscribeCallback;
659
677
  onUserFollow: (callback: (payload: OnUserFollowedPayload) => void) => UnsubscribeCallback;
660
678
  }
661
- export type Device = Readonly<{
662
- viewport: {
663
- isMobile: boolean;
664
- isLandscape: boolean;
665
- };
666
- editor: {
667
- isMobile: boolean;
668
- canFitSidebar: boolean;
669
- };
670
- isTouchScreen: boolean;
671
- }>;
672
679
  export type FrameNameBounds = {
673
680
  x: number;
674
681
  y: number;
@@ -9,7 +9,7 @@ export declare const textWysiwyg: ({ id, onChange, onSubmit, getViewportCoords,
9
9
  * Note: `text`, which can be wrapped and therefore different from `originalText`,
10
10
  * is derived from `originalText`
11
11
  */
12
- onChange?: ((nextOriginalText: string) => void) | undefined;
12
+ onChange?: (nextOriginalText: string) => void;
13
13
  onSubmit: (data: {
14
14
  viaKeyboard: boolean;
15
15
  nextOriginalText: string;
@@ -19,6 +19,6 @@ export declare const textWysiwyg: ({ id, onChange, onSubmit, getViewportCoords,
19
19
  canvas: HTMLCanvasElement;
20
20
  excalidrawContainer: HTMLDivElement | null;
21
21
  app: App;
22
- autoSelect?: boolean | undefined;
22
+ autoSelect?: boolean;
23
23
  }) => SubmitHandler;
24
24
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { GlobalPoint, LocalPoint, Polygon } from "./types";
2
2
  export declare function polygon<Point extends GlobalPoint | LocalPoint>(...points: Point[]): Polygon<Point>;
3
3
  export declare function polygonFromPoints<Point extends GlobalPoint | LocalPoint>(points: Point[]): Polygon<Point>;
4
- export declare const polygonIncludesPoint: <Point extends GlobalPoint | LocalPoint>(point: Point, polygon: Polygon<Point>) => boolean;
4
+ export declare const polygonIncludesPoint: <Point extends LocalPoint | GlobalPoint>(point: Point, polygon: Polygon<Point>) => boolean;
5
5
  export declare const polygonIncludesPointNonZero: <Point extends [number, number]>(point: Point, polygon: Point[]) => boolean;
6
- export declare const pointOnPolygon: <Point extends GlobalPoint | LocalPoint>(p: Point, poly: Polygon<Point>, threshold?: number) => boolean;
6
+ export declare const pointOnPolygon: <Point extends LocalPoint | GlobalPoint>(p: Point, poly: Polygon<Point>, threshold?: number) => boolean;
@@ -13,9 +13,7 @@ export declare function rangeInclusive(start: number, end: number): InclusiveRan
13
13
  * @param pair The number pair to convert to an inclusive range
14
14
  * @returns The new inclusive range
15
15
  */
16
- export declare function rangeInclusiveFromPair(pair: [start: number, end: number]): [number, number] & {
17
- _brand: "excalimath_degree";
18
- };
16
+ export declare function rangeInclusiveFromPair(pair: [start: number, end: number]): InclusiveRange;
19
17
  /**
20
18
  * Given two ranges, return if the two ranges overlap with each other e.g.
21
19
  * [1, 3] overlaps with [2, 4] while [1, 3] does not overlap with [4, 5].
@@ -21,14 +21,14 @@ export declare const isLineSegment: <Point extends GlobalPoint | LocalPoint>(seg
21
21
  * @param origin
22
22
  * @returns
23
23
  */
24
- export declare const lineSegmentRotate: <Point extends GlobalPoint | LocalPoint>(l: LineSegment<Point>, angle: Radians, origin?: Point | undefined) => LineSegment<Point>;
24
+ export declare const lineSegmentRotate: <Point extends LocalPoint | GlobalPoint>(l: LineSegment<Point>, angle: Radians, origin?: Point) => LineSegment<Point>;
25
25
  /**
26
26
  * Calculates the point two line segments with a definite start and end point
27
27
  * intersect at.
28
28
  */
29
29
  export declare const segmentsIntersectAt: <Point extends GlobalPoint | LocalPoint>(a: Readonly<LineSegment<Point>>, b: Readonly<LineSegment<Point>>) => Point | null;
30
- export declare const pointOnLineSegment: <Point extends GlobalPoint | LocalPoint>(point: Point, line: LineSegment<Point>, threshold?: number) => boolean;
31
- export declare const distanceToLineSegment: <Point extends GlobalPoint | LocalPoint>(point: Point, line: LineSegment<Point>) => number;
30
+ export declare const pointOnLineSegment: <Point extends LocalPoint | GlobalPoint>(point: Point, line: LineSegment<Point>, threshold?: number) => boolean;
31
+ export declare const distanceToLineSegment: <Point extends LocalPoint | GlobalPoint>(point: Point, line: LineSegment<Point>) => number;
32
32
  /**
33
33
  * Returns the intersection point of a segment and a line
34
34
  *
@@ -1,5 +1,5 @@
1
1
  import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
2
- import type { Bounds } from "@excalidraw/element";
2
+ import type { Bounds } from "@excalidraw/common";
3
3
  export type LineSegment<P extends LocalPoint | GlobalPoint> = [P, P];
4
4
  export declare function getBBox<P extends LocalPoint | GlobalPoint>(line: LineSegment<P>): Bounds;
5
5
  export declare function doBBoxesIntersect(a: Bounds, b: Bounds): boolean;
@@ -15,7 +15,7 @@ type ExportOpts = {
15
15
  };
16
16
  };
17
17
  export declare const exportToCanvas: ({ elements, appState, files, maxWidthOrHeight, getDimensions, exportPadding, exportingFrame, }: ExportOpts & {
18
- exportPadding?: number | undefined;
18
+ exportPadding?: number;
19
19
  }) => Promise<HTMLCanvasElement>;
20
20
  export declare const exportToBlob: (opts: ExportOpts & {
21
21
  mimeType?: string;
@@ -23,10 +23,10 @@ export declare const exportToBlob: (opts: ExportOpts & {
23
23
  exportPadding?: number;
24
24
  }) => Promise<Blob>;
25
25
  export declare const exportToSvg: ({ elements, appState, files, exportPadding, renderEmbeddables, exportingFrame, skipInliningFonts, reuseImages, }: Omit<ExportOpts, "getDimensions"> & {
26
- exportPadding?: number | undefined;
27
- renderEmbeddables?: boolean | undefined;
28
- skipInliningFonts?: true | undefined;
29
- reuseImages?: boolean | undefined;
26
+ exportPadding?: number;
27
+ renderEmbeddables?: boolean;
28
+ skipInliningFonts?: true;
29
+ reuseImages?: boolean;
30
30
  }) => Promise<SVGSVGElement>;
31
31
  export declare const exportToClipboard: (opts: ExportOpts & {
32
32
  mimeType?: string;
@@ -46,13 +46,13 @@ export declare const getClosedCurveShape: <Point extends GlobalPoint | LocalPoin
46
46
  * @param gap Optional value to inflate the shape before testing
47
47
  * @returns An array of intersections
48
48
  */
49
- export declare const segmentIntersectRectangleElement: <Point extends GlobalPoint | LocalPoint>(element: ExcalidrawBindableElement, segment: LineSegment<Point>, gap?: number) => Point[];
50
- export declare const pointOnEllipse: <Point extends GlobalPoint | LocalPoint>(point: Point, ellipse: Ellipse<Point>, threshold?: number) => boolean;
51
- export declare const pointInEllipse: <Point extends GlobalPoint | LocalPoint>(p: Point, ellipse: Ellipse<Point>) => boolean;
52
- export declare const ellipseAxes: <Point extends GlobalPoint | LocalPoint>(ellipse: Ellipse<Point>) => {
49
+ export declare const segmentIntersectRectangleElement: <Point extends LocalPoint | GlobalPoint>(element: ExcalidrawBindableElement, segment: LineSegment<Point>, gap?: number) => Point[];
50
+ export declare const pointOnEllipse: <Point extends LocalPoint | GlobalPoint>(point: Point, ellipse: Ellipse<Point>, threshold?: number) => boolean;
51
+ export declare const pointInEllipse: <Point extends LocalPoint | GlobalPoint>(p: Point, ellipse: Ellipse<Point>) => boolean;
52
+ export declare const ellipseAxes: <Point extends LocalPoint | GlobalPoint>(ellipse: Ellipse<Point>) => {
53
53
  majorAxis: number;
54
54
  minorAxis: number;
55
55
  };
56
- export declare const ellipseFocusToCenter: <Point extends GlobalPoint | LocalPoint>(ellipse: Ellipse<Point>) => number;
57
- export declare const ellipseExtremes: <Point extends GlobalPoint | LocalPoint>(ellipse: Ellipse<Point>) => import("@excalidraw/math").Vector[];
56
+ export declare const ellipseFocusToCenter: <Point extends LocalPoint | GlobalPoint>(ellipse: Ellipse<Point>) => number;
57
+ export declare const ellipseExtremes: <Point extends LocalPoint | GlobalPoint>(ellipse: Ellipse<Point>) => import("@excalidraw/math").Vector[];
58
58
  export {};
@@ -1,4 +1,4 @@
1
- import type { Bounds } from "@excalidraw/element";
1
+ import { type Bounds } from "@excalidraw/common";
2
2
  import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw/element/types";
3
3
  type Element = NonDeletedExcalidrawElement;
4
4
  type Elements = readonly NonDeletedExcalidrawElement[];
@@ -8,7 +8,7 @@ export declare const elementsOverlappingBBox: ({ elements, bounds, type, errorMa
8
8
  elements: Elements;
9
9
  bounds: Bounds | ExcalidrawElement;
10
10
  /** safety offset. Defaults to 0. */
11
- errorMargin?: number | undefined;
11
+ errorMargin?: number;
12
12
  /**
13
13
  * - overlap: elements overlapping or inside bounds
14
14
  * - contain: elements inside bounds or bounds inside elements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@excalidraw/excalidraw",
3
- "version": "0.18.0-91c7748",
3
+ "version": "0.18.0-9ba0f5d",
4
4
  "type": "module",
5
5
  "types": "./dist/types/excalidraw/index.d.ts",
6
6
  "main": "./dist/prod/index.js",
@@ -79,11 +79,11 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "@braintree/sanitize-url": "6.0.2",
82
- "@excalidraw/common": "0.18.0-91c7748",
83
- "@excalidraw/element": "0.18.0-91c7748",
84
- "@excalidraw/math": "0.18.0-91c7748",
82
+ "@excalidraw/common": "0.18.0-9ba0f5d",
83
+ "@excalidraw/element": "0.18.0-9ba0f5d",
85
84
  "@excalidraw/laser-pointer": "1.3.1",
86
- "@excalidraw/mermaid-to-excalidraw": "1.1.3",
85
+ "@excalidraw/math": "0.18.0-9ba0f5d",
86
+ "@excalidraw/mermaid-to-excalidraw": "2.0.0-rfc3",
87
87
  "@excalidraw/random-username": "1.1.0",
88
88
  "@radix-ui/react-popover": "1.1.6",
89
89
  "@radix-ui/react-tabs": "1.1.3",
@@ -97,10 +97,9 @@
97
97
  "image-blob-reduce": "3.0.1",
98
98
  "jotai": "2.11.0",
99
99
  "jotai-scope": "0.7.2",
100
- "lodash.throttle": "4.1.1",
101
100
  "lodash.debounce": "4.0.8",
101
+ "lodash.throttle": "4.1.1",
102
102
  "nanoid": "3.3.3",
103
- "open-color": "1.9.1",
104
103
  "pako": "2.0.3",
105
104
  "perfect-freehand": "1.2.0",
106
105
  "pica": "7.1.1",
@@ -133,6 +132,6 @@
133
132
  "fonteditor-core": "2.4.1",
134
133
  "harfbuzzjs": "0.3.6",
135
134
  "jest-diff": "29.7.0",
136
- "typescript": "4.9.4"
135
+ "typescript": "5.9.3"
137
136
  }
138
137
  }