@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,19 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { type SceneBounds } from "@excalidraw/element";
3
2
  import type { ExcalidrawElement } from "@excalidraw/element/types";
4
3
  import type { AppState, Offsets } from "../types";
5
- export declare const actionChangeViewBackgroundColor: {
6
- name: "changeViewBackgroundColor";
7
- label: string;
8
- trackEvent: false;
9
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
10
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
11
- appState: any;
12
- captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
13
- };
14
- PanelComponent: ({ elements, appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
15
- } & {
16
- keyTest?: undefined;
4
+ export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
5
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
17
6
  };
18
7
  export declare const actionClearCanvas: {
19
8
  name: "clearCanvas";
@@ -23,7 +12,7 @@ export declare const actionClearCanvas: {
23
12
  category: "canvas";
24
13
  };
25
14
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
26
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
15
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
27
16
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
28
17
  appState: {
29
18
  files: {};
@@ -59,31 +48,31 @@ export declare const actionClearCanvas: {
59
48
  clip: boolean;
60
49
  };
61
50
  name: string | null;
62
- zoom: Readonly<{
63
- value: import("../types").NormalizedZoomValue;
64
- }>;
51
+ zoom: import("../types").Zoom;
65
52
  scrollX: number;
66
53
  scrollY: number;
67
54
  viewModeEnabled: boolean;
68
- openDialog: {
55
+ openDialog: null | {
69
56
  name: "imageExport" | "help" | "jsonExport";
70
57
  } | {
71
58
  name: "ttd";
72
- tab: "mermaid" | "text-to-diagram";
59
+ tab: "text-to-diagram" | "mermaid";
73
60
  } | {
74
61
  name: "commandPalette";
62
+ } | {
63
+ name: "settings";
75
64
  } | {
76
65
  name: "elementLinkSelector";
77
- sourceElementId: string;
78
- } | null;
79
- editingGroupId: string | null;
66
+ sourceElementId: ExcalidrawElement["id"];
67
+ };
68
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
80
69
  selectedElementIds: Readonly<{
81
70
  [id: string]: true;
82
71
  }>;
83
72
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
84
73
  activeEmbeddable: {
85
74
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
86
- state: "active" | "hover";
75
+ state: "hover" | "active";
87
76
  } | null;
88
77
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
89
78
  selectedGroupIds: {
@@ -91,40 +80,28 @@ export declare const actionClearCanvas: {
91
80
  };
92
81
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
93
82
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
83
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
94
84
  isBindingEnabled: boolean;
95
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
85
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
96
86
  isRotating: boolean;
97
87
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
98
- collaborators: Map<import("../types").SocketId, Readonly<{
99
- pointer?: import("../types").CollaboratorPointer | undefined;
100
- button?: "up" | "down" | undefined;
101
- selectedElementIds?: Readonly<{
102
- [id: string]: true;
103
- }> | undefined;
104
- username?: string | null | undefined;
105
- userState?: import("@excalidraw/common").UserIdleState | undefined;
106
- color?: {
107
- background: string;
108
- stroke: string;
109
- } | undefined;
110
- avatarUrl?: string | undefined;
111
- id?: string | undefined;
112
- socketId?: import("../types").SocketId | undefined;
113
- isCurrentUser?: boolean | undefined;
114
- isInCall?: boolean | undefined;
115
- isSpeaking?: boolean | undefined;
116
- isMuted?: boolean | undefined;
117
- }>>;
88
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
118
89
  snapLines: readonly import("../snapping").SnapLine[];
119
90
  zenModeEnabled: boolean;
120
91
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
121
92
  isCropping: boolean;
122
- croppingElementId: string | null;
93
+ croppingElementId: ExcalidrawElement["id"] | null;
123
94
  searchMatches: Readonly<{
124
- focusedId: string | null;
95
+ focusedId: ExcalidrawElement["id"] | null;
125
96
  matches: readonly import("../types").SearchMatch[];
126
97
  }> | null;
127
98
  activeLockedId: string | null;
99
+ hoveredElementIds: Readonly<{
100
+ [id: string]: true;
101
+ }>;
102
+ shouldCacheIgnoreZoom: boolean;
103
+ exportScale: number;
104
+ bindMode: import("@excalidraw/element/types").BindMode;
128
105
  contextMenu: {
129
106
  items: import("../components/ContextMenu").ContextMenuItems;
130
107
  top: number;
@@ -132,55 +109,53 @@ export declare const actionClearCanvas: {
132
109
  } | null;
133
110
  showWelcomeScreen: boolean;
134
111
  isLoading: boolean;
135
- errorMessage: import("react").ReactNode;
136
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
112
+ errorMessage: React.ReactNode;
137
113
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
138
114
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
139
115
  editingFrame: string | null;
116
+ preferredSelectionTool: {
117
+ type: "selection" | "lasso";
118
+ initialized: boolean;
119
+ };
140
120
  exportWithDarkMode: boolean;
141
- exportScale: number;
142
121
  currentItemStrokeColor: string;
143
122
  currentItemBackgroundColor: string;
144
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
123
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
145
124
  currentItemStrokeWidth: number;
146
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
125
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
147
126
  currentItemRoughness: number;
148
127
  currentItemOpacity: number;
149
- currentItemFontFamily: number;
128
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
150
129
  currentItemFontSize: number;
151
- currentItemTextAlign: string;
130
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
152
131
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
153
132
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
154
- currentHoveredFontFamily: number | null;
133
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
155
134
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
156
- currentItemArrowType: "round" | "sharp" | "elbow";
135
+ currentItemArrowType: "sharp" | "round" | "elbow";
157
136
  cursorButton: "up" | "down";
158
137
  scrolledOutside: boolean;
159
138
  isResizing: boolean;
160
- openMenu: "canvas" | "shape" | null;
161
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
139
+ openMenu: "canvas" | null;
140
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
162
141
  openSidebar: {
163
- name: string;
164
- tab?: string | undefined;
142
+ name: import("../types").SidebarName;
143
+ tab?: import("../types").SidebarTabName;
165
144
  } | null;
166
145
  defaultSidebarDockedPreference: boolean;
167
146
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
168
- hoveredElementIds: Readonly<{
169
- [id: string]: true;
170
- }>;
171
147
  previousSelectedElementIds: {
172
148
  [id: string]: true;
173
149
  };
174
150
  selectedElementsAreBeingDragged: boolean;
175
- shouldCacheIgnoreZoom: boolean;
176
151
  toast: {
177
152
  message: string;
178
- closable?: boolean | undefined;
179
- duration?: number | undefined;
153
+ closable?: boolean;
154
+ duration?: number;
180
155
  } | null;
181
156
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
182
157
  currentChartType: import("@excalidraw/element/types").ChartType;
183
- showHyperlinkPopup: false | "editor" | "info";
158
+ showHyperlinkPopup: false | "info" | "editor";
184
159
  originSnapOffset: {
185
160
  x: number;
186
161
  y: number;
@@ -191,7 +166,6 @@ export declare const actionClearCanvas: {
191
166
  lockedMultiSelections: {
192
167
  [groupId: string]: true;
193
168
  };
194
- stylesPanelMode: "compact" | "full";
195
169
  };
196
170
  captureUpdate: "IMMEDIATELY";
197
171
  };
@@ -206,7 +180,7 @@ export declare const actionZoomIn: {
206
180
  trackEvent: {
207
181
  category: "canvas";
208
182
  };
209
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
183
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
210
184
  appState: {
211
185
  userToFollow: null;
212
186
  scrollX: number;
@@ -221,10 +195,10 @@ export declare const actionZoomIn: {
221
195
  } | null;
222
196
  showWelcomeScreen: boolean;
223
197
  isLoading: boolean;
224
- errorMessage: import("react").ReactNode;
198
+ errorMessage: React.ReactNode;
225
199
  activeEmbeddable: {
226
200
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
227
- state: "active" | "hover";
201
+ state: "hover" | "active";
228
202
  } | null;
229
203
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
230
204
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -232,7 +206,7 @@ export declare const actionZoomIn: {
232
206
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
233
207
  isBindingEnabled: boolean;
234
208
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
235
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
209
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
236
210
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
237
211
  frameRendering: {
238
212
  enabled: boolean;
@@ -248,6 +222,10 @@ export declare const actionZoomIn: {
248
222
  locked: boolean;
249
223
  fromSelection: boolean;
250
224
  } & import("../types").ActiveTool;
225
+ preferredSelectionTool: {
226
+ type: "selection" | "lasso";
227
+ initialized: boolean;
228
+ };
251
229
  penMode: boolean;
252
230
  penDetected: boolean;
253
231
  exportBackground: boolean;
@@ -256,42 +234,44 @@ export declare const actionZoomIn: {
256
234
  exportScale: number;
257
235
  currentItemStrokeColor: string;
258
236
  currentItemBackgroundColor: string;
259
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
237
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
260
238
  currentItemStrokeWidth: number;
261
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
239
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
262
240
  currentItemRoughness: number;
263
241
  currentItemOpacity: number;
264
- currentItemFontFamily: number;
242
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
265
243
  currentItemFontSize: number;
266
- currentItemTextAlign: string;
244
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
267
245
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
268
246
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
269
- currentHoveredFontFamily: number | null;
247
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
270
248
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
271
- currentItemArrowType: "round" | "sharp" | "elbow";
249
+ currentItemArrowType: "sharp" | "round" | "elbow";
272
250
  viewBackgroundColor: string;
273
251
  cursorButton: "up" | "down";
274
252
  scrolledOutside: boolean;
275
253
  name: string | null;
276
254
  isResizing: boolean;
277
255
  isRotating: boolean;
278
- openMenu: "canvas" | "shape" | null;
279
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
256
+ openMenu: "canvas" | null;
257
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
280
258
  openSidebar: {
281
- name: string;
282
- tab?: string | undefined;
259
+ name: import("../types").SidebarName;
260
+ tab?: import("../types").SidebarTabName;
283
261
  } | null;
284
- openDialog: {
262
+ openDialog: null | {
285
263
  name: "imageExport" | "help" | "jsonExport";
286
264
  } | {
287
265
  name: "ttd";
288
- tab: "mermaid" | "text-to-diagram";
266
+ tab: "text-to-diagram" | "mermaid";
289
267
  } | {
290
268
  name: "commandPalette";
269
+ } | {
270
+ name: "settings";
291
271
  } | {
292
272
  name: "elementLinkSelector";
293
- sourceElementId: string;
294
- } | null;
273
+ sourceElementId: ExcalidrawElement["id"];
274
+ };
295
275
  defaultSidebarDockedPreference: boolean;
296
276
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
297
277
  selectedElementIds: Readonly<{
@@ -307,8 +287,8 @@ export declare const actionZoomIn: {
307
287
  shouldCacheIgnoreZoom: boolean;
308
288
  toast: {
309
289
  message: string;
310
- closable?: boolean | undefined;
311
- duration?: number | undefined;
290
+ closable?: boolean;
291
+ duration?: number;
312
292
  } | null;
313
293
  zenModeEnabled: boolean;
314
294
  theme: import("@excalidraw/element/types").Theme;
@@ -319,32 +299,13 @@ export declare const actionZoomIn: {
319
299
  selectedGroupIds: {
320
300
  [groupId: string]: boolean;
321
301
  };
322
- editingGroupId: string | null;
302
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
323
303
  width: number;
324
304
  height: number;
325
305
  offsetTop: number;
326
306
  offsetLeft: number;
327
307
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
328
- collaborators: Map<import("../types").SocketId, Readonly<{
329
- pointer?: import("../types").CollaboratorPointer | undefined;
330
- button?: "up" | "down" | undefined;
331
- selectedElementIds?: Readonly<{
332
- [id: string]: true;
333
- }> | undefined;
334
- username?: string | null | undefined;
335
- userState?: import("@excalidraw/common").UserIdleState | undefined;
336
- color?: {
337
- background: string;
338
- stroke: string;
339
- } | undefined;
340
- avatarUrl?: string | undefined;
341
- id?: string | undefined;
342
- socketId?: import("../types").SocketId | undefined;
343
- isCurrentUser?: boolean | undefined;
344
- isInCall?: boolean | undefined;
345
- isSpeaking?: boolean | undefined;
346
- isMuted?: boolean | undefined;
347
- }>>;
308
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
348
309
  stats: {
349
310
  open: boolean;
350
311
  panels: number;
@@ -357,7 +318,7 @@ export declare const actionZoomIn: {
357
318
  shown: true;
358
319
  data: import("../charts").Spreadsheet;
359
320
  };
360
- showHyperlinkPopup: false | "editor" | "info";
321
+ showHyperlinkPopup: false | "info" | "editor";
361
322
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
362
323
  snapLines: readonly import("../snapping").SnapLine[];
363
324
  originSnapOffset: {
@@ -367,16 +328,16 @@ export declare const actionZoomIn: {
367
328
  objectsSnapModeEnabled: boolean;
368
329
  followedBy: Set<import("../types").SocketId>;
369
330
  isCropping: boolean;
370
- croppingElementId: string | null;
331
+ croppingElementId: ExcalidrawElement["id"] | null;
371
332
  searchMatches: Readonly<{
372
- focusedId: string | null;
333
+ focusedId: ExcalidrawElement["id"] | null;
373
334
  matches: readonly import("../types").SearchMatch[];
374
335
  }> | null;
375
336
  activeLockedId: string | null;
376
337
  lockedMultiSelections: {
377
338
  [groupId: string]: true;
378
339
  };
379
- stylesPanelMode: "compact" | "full";
340
+ bindMode: import("@excalidraw/element/types").BindMode;
380
341
  };
381
342
  captureUpdate: "EVENTUALLY";
382
343
  };
@@ -393,7 +354,7 @@ export declare const actionZoomOut: {
393
354
  trackEvent: {
394
355
  category: "canvas";
395
356
  };
396
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
357
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
397
358
  appState: {
398
359
  userToFollow: null;
399
360
  scrollX: number;
@@ -408,10 +369,10 @@ export declare const actionZoomOut: {
408
369
  } | null;
409
370
  showWelcomeScreen: boolean;
410
371
  isLoading: boolean;
411
- errorMessage: import("react").ReactNode;
372
+ errorMessage: React.ReactNode;
412
373
  activeEmbeddable: {
413
374
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
414
- state: "active" | "hover";
375
+ state: "hover" | "active";
415
376
  } | null;
416
377
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
417
378
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -419,7 +380,7 @@ export declare const actionZoomOut: {
419
380
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
420
381
  isBindingEnabled: boolean;
421
382
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
422
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
383
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
423
384
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
424
385
  frameRendering: {
425
386
  enabled: boolean;
@@ -435,6 +396,10 @@ export declare const actionZoomOut: {
435
396
  locked: boolean;
436
397
  fromSelection: boolean;
437
398
  } & import("../types").ActiveTool;
399
+ preferredSelectionTool: {
400
+ type: "selection" | "lasso";
401
+ initialized: boolean;
402
+ };
438
403
  penMode: boolean;
439
404
  penDetected: boolean;
440
405
  exportBackground: boolean;
@@ -443,42 +408,44 @@ export declare const actionZoomOut: {
443
408
  exportScale: number;
444
409
  currentItemStrokeColor: string;
445
410
  currentItemBackgroundColor: string;
446
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
411
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
447
412
  currentItemStrokeWidth: number;
448
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
413
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
449
414
  currentItemRoughness: number;
450
415
  currentItemOpacity: number;
451
- currentItemFontFamily: number;
416
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
452
417
  currentItemFontSize: number;
453
- currentItemTextAlign: string;
418
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
454
419
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
455
420
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
456
- currentHoveredFontFamily: number | null;
421
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
457
422
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
458
- currentItemArrowType: "round" | "sharp" | "elbow";
423
+ currentItemArrowType: "sharp" | "round" | "elbow";
459
424
  viewBackgroundColor: string;
460
425
  cursorButton: "up" | "down";
461
426
  scrolledOutside: boolean;
462
427
  name: string | null;
463
428
  isResizing: boolean;
464
429
  isRotating: boolean;
465
- openMenu: "canvas" | "shape" | null;
466
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
430
+ openMenu: "canvas" | null;
431
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
467
432
  openSidebar: {
468
- name: string;
469
- tab?: string | undefined;
433
+ name: import("../types").SidebarName;
434
+ tab?: import("../types").SidebarTabName;
470
435
  } | null;
471
- openDialog: {
436
+ openDialog: null | {
472
437
  name: "imageExport" | "help" | "jsonExport";
473
438
  } | {
474
439
  name: "ttd";
475
- tab: "mermaid" | "text-to-diagram";
440
+ tab: "text-to-diagram" | "mermaid";
476
441
  } | {
477
442
  name: "commandPalette";
443
+ } | {
444
+ name: "settings";
478
445
  } | {
479
446
  name: "elementLinkSelector";
480
- sourceElementId: string;
481
- } | null;
447
+ sourceElementId: ExcalidrawElement["id"];
448
+ };
482
449
  defaultSidebarDockedPreference: boolean;
483
450
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
484
451
  selectedElementIds: Readonly<{
@@ -494,8 +461,8 @@ export declare const actionZoomOut: {
494
461
  shouldCacheIgnoreZoom: boolean;
495
462
  toast: {
496
463
  message: string;
497
- closable?: boolean | undefined;
498
- duration?: number | undefined;
464
+ closable?: boolean;
465
+ duration?: number;
499
466
  } | null;
500
467
  zenModeEnabled: boolean;
501
468
  theme: import("@excalidraw/element/types").Theme;
@@ -506,32 +473,13 @@ export declare const actionZoomOut: {
506
473
  selectedGroupIds: {
507
474
  [groupId: string]: boolean;
508
475
  };
509
- editingGroupId: string | null;
476
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
510
477
  width: number;
511
478
  height: number;
512
479
  offsetTop: number;
513
480
  offsetLeft: number;
514
481
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
515
- collaborators: Map<import("../types").SocketId, Readonly<{
516
- pointer?: import("../types").CollaboratorPointer | undefined;
517
- button?: "up" | "down" | undefined;
518
- selectedElementIds?: Readonly<{
519
- [id: string]: true;
520
- }> | undefined;
521
- username?: string | null | undefined;
522
- userState?: import("@excalidraw/common").UserIdleState | undefined;
523
- color?: {
524
- background: string;
525
- stroke: string;
526
- } | undefined;
527
- avatarUrl?: string | undefined;
528
- id?: string | undefined;
529
- socketId?: import("../types").SocketId | undefined;
530
- isCurrentUser?: boolean | undefined;
531
- isInCall?: boolean | undefined;
532
- isSpeaking?: boolean | undefined;
533
- isMuted?: boolean | undefined;
534
- }>>;
482
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
535
483
  stats: {
536
484
  open: boolean;
537
485
  panels: number;
@@ -544,7 +492,7 @@ export declare const actionZoomOut: {
544
492
  shown: true;
545
493
  data: import("../charts").Spreadsheet;
546
494
  };
547
- showHyperlinkPopup: false | "editor" | "info";
495
+ showHyperlinkPopup: false | "info" | "editor";
548
496
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
549
497
  snapLines: readonly import("../snapping").SnapLine[];
550
498
  originSnapOffset: {
@@ -554,16 +502,16 @@ export declare const actionZoomOut: {
554
502
  objectsSnapModeEnabled: boolean;
555
503
  followedBy: Set<import("../types").SocketId>;
556
504
  isCropping: boolean;
557
- croppingElementId: string | null;
505
+ croppingElementId: ExcalidrawElement["id"] | null;
558
506
  searchMatches: Readonly<{
559
- focusedId: string | null;
507
+ focusedId: ExcalidrawElement["id"] | null;
560
508
  matches: readonly import("../types").SearchMatch[];
561
509
  }> | null;
562
510
  activeLockedId: string | null;
563
511
  lockedMultiSelections: {
564
512
  [groupId: string]: true;
565
513
  };
566
- stylesPanelMode: "compact" | "full";
514
+ bindMode: import("@excalidraw/element/types").BindMode;
567
515
  };
568
516
  captureUpdate: "EVENTUALLY";
569
517
  };
@@ -580,7 +528,7 @@ export declare const actionResetZoom: {
580
528
  trackEvent: {
581
529
  category: "canvas";
582
530
  };
583
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
531
+ perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
584
532
  appState: {
585
533
  userToFollow: null;
586
534
  scrollX: number;
@@ -595,10 +543,10 @@ export declare const actionResetZoom: {
595
543
  } | null;
596
544
  showWelcomeScreen: boolean;
597
545
  isLoading: boolean;
598
- errorMessage: import("react").ReactNode;
546
+ errorMessage: React.ReactNode;
599
547
  activeEmbeddable: {
600
548
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
601
- state: "active" | "hover";
549
+ state: "hover" | "active";
602
550
  } | null;
603
551
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
604
552
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -606,7 +554,7 @@ export declare const actionResetZoom: {
606
554
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
555
  isBindingEnabled: boolean;
608
556
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
609
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
557
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
610
558
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
611
559
  frameRendering: {
612
560
  enabled: boolean;
@@ -622,6 +570,10 @@ export declare const actionResetZoom: {
622
570
  locked: boolean;
623
571
  fromSelection: boolean;
624
572
  } & import("../types").ActiveTool;
573
+ preferredSelectionTool: {
574
+ type: "selection" | "lasso";
575
+ initialized: boolean;
576
+ };
625
577
  penMode: boolean;
626
578
  penDetected: boolean;
627
579
  exportBackground: boolean;
@@ -630,42 +582,44 @@ export declare const actionResetZoom: {
630
582
  exportScale: number;
631
583
  currentItemStrokeColor: string;
632
584
  currentItemBackgroundColor: string;
633
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
585
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
634
586
  currentItemStrokeWidth: number;
635
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
587
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
636
588
  currentItemRoughness: number;
637
589
  currentItemOpacity: number;
638
- currentItemFontFamily: number;
590
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
639
591
  currentItemFontSize: number;
640
- currentItemTextAlign: string;
592
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
641
593
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
642
594
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
643
- currentHoveredFontFamily: number | null;
595
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
644
596
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
645
- currentItemArrowType: "round" | "sharp" | "elbow";
597
+ currentItemArrowType: "sharp" | "round" | "elbow";
646
598
  viewBackgroundColor: string;
647
599
  cursorButton: "up" | "down";
648
600
  scrolledOutside: boolean;
649
601
  name: string | null;
650
602
  isResizing: boolean;
651
603
  isRotating: boolean;
652
- openMenu: "canvas" | "shape" | null;
653
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
604
+ openMenu: "canvas" | null;
605
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
654
606
  openSidebar: {
655
- name: string;
656
- tab?: string | undefined;
607
+ name: import("../types").SidebarName;
608
+ tab?: import("../types").SidebarTabName;
657
609
  } | null;
658
- openDialog: {
610
+ openDialog: null | {
659
611
  name: "imageExport" | "help" | "jsonExport";
660
612
  } | {
661
613
  name: "ttd";
662
- tab: "mermaid" | "text-to-diagram";
614
+ tab: "text-to-diagram" | "mermaid";
663
615
  } | {
664
616
  name: "commandPalette";
617
+ } | {
618
+ name: "settings";
665
619
  } | {
666
620
  name: "elementLinkSelector";
667
- sourceElementId: string;
668
- } | null;
621
+ sourceElementId: ExcalidrawElement["id"];
622
+ };
669
623
  defaultSidebarDockedPreference: boolean;
670
624
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
671
625
  selectedElementIds: Readonly<{
@@ -681,8 +635,8 @@ export declare const actionResetZoom: {
681
635
  shouldCacheIgnoreZoom: boolean;
682
636
  toast: {
683
637
  message: string;
684
- closable?: boolean | undefined;
685
- duration?: number | undefined;
638
+ closable?: boolean;
639
+ duration?: number;
686
640
  } | null;
687
641
  zenModeEnabled: boolean;
688
642
  theme: import("@excalidraw/element/types").Theme;
@@ -693,32 +647,13 @@ export declare const actionResetZoom: {
693
647
  selectedGroupIds: {
694
648
  [groupId: string]: boolean;
695
649
  };
696
- editingGroupId: string | null;
650
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
697
651
  width: number;
698
652
  height: number;
699
653
  offsetTop: number;
700
654
  offsetLeft: number;
701
655
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
702
- collaborators: Map<import("../types").SocketId, Readonly<{
703
- pointer?: import("../types").CollaboratorPointer | undefined;
704
- button?: "up" | "down" | undefined;
705
- selectedElementIds?: Readonly<{
706
- [id: string]: true;
707
- }> | undefined;
708
- username?: string | null | undefined;
709
- userState?: import("@excalidraw/common").UserIdleState | undefined;
710
- color?: {
711
- background: string;
712
- stroke: string;
713
- } | undefined;
714
- avatarUrl?: string | undefined;
715
- id?: string | undefined;
716
- socketId?: import("../types").SocketId | undefined;
717
- isCurrentUser?: boolean | undefined;
718
- isInCall?: boolean | undefined;
719
- isSpeaking?: boolean | undefined;
720
- isMuted?: boolean | undefined;
721
- }>>;
656
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
722
657
  stats: {
723
658
  open: boolean;
724
659
  panels: number;
@@ -731,7 +666,7 @@ export declare const actionResetZoom: {
731
666
  shown: true;
732
667
  data: import("../charts").Spreadsheet;
733
668
  };
734
- showHyperlinkPopup: false | "editor" | "info";
669
+ showHyperlinkPopup: false | "info" | "editor";
735
670
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
736
671
  snapLines: readonly import("../snapping").SnapLine[];
737
672
  originSnapOffset: {
@@ -741,16 +676,16 @@ export declare const actionResetZoom: {
741
676
  objectsSnapModeEnabled: boolean;
742
677
  followedBy: Set<import("../types").SocketId>;
743
678
  isCropping: boolean;
744
- croppingElementId: string | null;
679
+ croppingElementId: ExcalidrawElement["id"] | null;
745
680
  searchMatches: Readonly<{
746
- focusedId: string | null;
681
+ focusedId: ExcalidrawElement["id"] | null;
747
682
  matches: readonly import("../types").SearchMatch[];
748
683
  }> | null;
749
684
  activeLockedId: string | null;
750
685
  lockedMultiSelections: {
751
686
  [groupId: string]: true;
752
687
  };
753
- stylesPanelMode: "compact" | "full";
688
+ bindMode: import("@excalidraw/element/types").BindMode;
754
689
  };
755
690
  captureUpdate: "EVENTUALLY";
756
691
  };
@@ -761,19 +696,14 @@ export declare const actionResetZoom: {
761
696
  };
762
697
  export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
763
698
  bounds: SceneBounds;
764
- canvasOffsets?: Partial<{
765
- top: number;
766
- right: number;
767
- bottom: number;
768
- left: number;
769
- }> | undefined;
699
+ canvasOffsets?: Offsets;
770
700
  appState: Readonly<AppState>;
771
701
  /** whether to fit content to viewport (beyond >100%) */
772
702
  fitToViewport: boolean;
773
703
  /** zoom content to cover X of the viewport, when fitToViewport=true */
774
- viewportZoomFactor?: number | undefined;
775
- minZoom?: number | undefined;
776
- maxZoom?: number | undefined;
704
+ viewportZoomFactor?: number;
705
+ minZoom?: number;
706
+ maxZoom?: number;
777
707
  }) => {
778
708
  appState: {
779
709
  scrollX: number;
@@ -788,10 +718,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
788
718
  } | null;
789
719
  showWelcomeScreen: boolean;
790
720
  isLoading: boolean;
791
- errorMessage: import("react").ReactNode;
721
+ errorMessage: React.ReactNode;
792
722
  activeEmbeddable: {
793
723
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
794
- state: "active" | "hover";
724
+ state: "hover" | "active";
795
725
  } | null;
796
726
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
797
727
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -799,7 +729,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
799
729
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
800
730
  isBindingEnabled: boolean;
801
731
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
802
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
732
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
803
733
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
804
734
  frameRendering: {
805
735
  enabled: boolean;
@@ -815,6 +745,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
815
745
  locked: boolean;
816
746
  fromSelection: boolean;
817
747
  } & import("../types").ActiveTool;
748
+ preferredSelectionTool: {
749
+ type: "selection" | "lasso";
750
+ initialized: boolean;
751
+ };
818
752
  penMode: boolean;
819
753
  penDetected: boolean;
820
754
  exportBackground: boolean;
@@ -823,42 +757,44 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
823
757
  exportScale: number;
824
758
  currentItemStrokeColor: string;
825
759
  currentItemBackgroundColor: string;
826
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
760
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
827
761
  currentItemStrokeWidth: number;
828
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
762
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
829
763
  currentItemRoughness: number;
830
764
  currentItemOpacity: number;
831
- currentItemFontFamily: number;
765
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
832
766
  currentItemFontSize: number;
833
- currentItemTextAlign: string;
767
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
834
768
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
835
769
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
836
- currentHoveredFontFamily: number | null;
770
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
837
771
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
838
- currentItemArrowType: "round" | "sharp" | "elbow";
772
+ currentItemArrowType: "sharp" | "round" | "elbow";
839
773
  viewBackgroundColor: string;
840
774
  cursorButton: "up" | "down";
841
775
  scrolledOutside: boolean;
842
776
  name: string | null;
843
777
  isResizing: boolean;
844
778
  isRotating: boolean;
845
- openMenu: "canvas" | "shape" | null;
846
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
779
+ openMenu: "canvas" | null;
780
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
847
781
  openSidebar: {
848
- name: string;
849
- tab?: string | undefined;
782
+ name: import("../types").SidebarName;
783
+ tab?: import("../types").SidebarTabName;
850
784
  } | null;
851
- openDialog: {
785
+ openDialog: null | {
852
786
  name: "imageExport" | "help" | "jsonExport";
853
787
  } | {
854
788
  name: "ttd";
855
- tab: "mermaid" | "text-to-diagram";
789
+ tab: "text-to-diagram" | "mermaid";
856
790
  } | {
857
791
  name: "commandPalette";
792
+ } | {
793
+ name: "settings";
858
794
  } | {
859
795
  name: "elementLinkSelector";
860
- sourceElementId: string;
861
- } | null;
796
+ sourceElementId: ExcalidrawElement["id"];
797
+ };
862
798
  defaultSidebarDockedPreference: boolean;
863
799
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
864
800
  selectedElementIds: Readonly<{
@@ -874,8 +810,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
874
810
  shouldCacheIgnoreZoom: boolean;
875
811
  toast: {
876
812
  message: string;
877
- closable?: boolean | undefined;
878
- duration?: number | undefined;
813
+ closable?: boolean;
814
+ duration?: number;
879
815
  } | null;
880
816
  zenModeEnabled: boolean;
881
817
  theme: import("@excalidraw/element/types").Theme;
@@ -886,32 +822,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
886
822
  selectedGroupIds: {
887
823
  [groupId: string]: boolean;
888
824
  };
889
- editingGroupId: string | null;
825
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
890
826
  width: number;
891
827
  height: number;
892
828
  offsetTop: number;
893
829
  offsetLeft: number;
894
830
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
895
- collaborators: Map<import("../types").SocketId, Readonly<{
896
- pointer?: import("../types").CollaboratorPointer | undefined;
897
- button?: "up" | "down" | undefined;
898
- selectedElementIds?: Readonly<{
899
- [id: string]: true;
900
- }> | undefined;
901
- username?: string | null | undefined;
902
- userState?: import("@excalidraw/common").UserIdleState | undefined;
903
- color?: {
904
- background: string;
905
- stroke: string;
906
- } | undefined;
907
- avatarUrl?: string | undefined;
908
- id?: string | undefined;
909
- socketId?: import("../types").SocketId | undefined;
910
- isCurrentUser?: boolean | undefined;
911
- isInCall?: boolean | undefined;
912
- isSpeaking?: boolean | undefined;
913
- isMuted?: boolean | undefined;
914
- }>>;
831
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
915
832
  stats: {
916
833
  open: boolean;
917
834
  panels: number;
@@ -924,7 +841,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
924
841
  shown: true;
925
842
  data: import("../charts").Spreadsheet;
926
843
  };
927
- showHyperlinkPopup: false | "editor" | "info";
844
+ showHyperlinkPopup: false | "info" | "editor";
928
845
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
929
846
  snapLines: readonly import("../snapping").SnapLine[];
930
847
  originSnapOffset: {
@@ -935,34 +852,29 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
935
852
  userToFollow: import("../types").UserToFollow | null;
936
853
  followedBy: Set<import("../types").SocketId>;
937
854
  isCropping: boolean;
938
- croppingElementId: string | null;
855
+ croppingElementId: ExcalidrawElement["id"] | null;
939
856
  searchMatches: Readonly<{
940
- focusedId: string | null;
857
+ focusedId: ExcalidrawElement["id"] | null;
941
858
  matches: readonly import("../types").SearchMatch[];
942
859
  }> | null;
943
860
  activeLockedId: string | null;
944
861
  lockedMultiSelections: {
945
862
  [groupId: string]: true;
946
863
  };
947
- stylesPanelMode: "compact" | "full";
864
+ bindMode: import("@excalidraw/element/types").BindMode;
948
865
  };
949
866
  captureUpdate: "EVENTUALLY";
950
867
  };
951
868
  export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
952
- canvasOffsets?: Partial<{
953
- top: number;
954
- right: number;
955
- bottom: number;
956
- left: number;
957
- }> | undefined;
869
+ canvasOffsets?: Offsets;
958
870
  targetElements: readonly ExcalidrawElement[];
959
871
  appState: Readonly<AppState>;
960
872
  /** whether to fit content to viewport (beyond >100%) */
961
873
  fitToViewport: boolean;
962
874
  /** zoom content to cover X of the viewport, when fitToViewport=true */
963
- viewportZoomFactor?: number | undefined;
964
- minZoom?: number | undefined;
965
- maxZoom?: number | undefined;
875
+ viewportZoomFactor?: number;
876
+ minZoom?: number;
877
+ maxZoom?: number;
966
878
  }) => {
967
879
  appState: {
968
880
  scrollX: number;
@@ -977,10 +889,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
977
889
  } | null;
978
890
  showWelcomeScreen: boolean;
979
891
  isLoading: boolean;
980
- errorMessage: import("react").ReactNode;
892
+ errorMessage: React.ReactNode;
981
893
  activeEmbeddable: {
982
894
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
983
- state: "active" | "hover";
895
+ state: "hover" | "active";
984
896
  } | null;
985
897
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
986
898
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -988,7 +900,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
988
900
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
989
901
  isBindingEnabled: boolean;
990
902
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
991
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
903
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
992
904
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
993
905
  frameRendering: {
994
906
  enabled: boolean;
@@ -1004,6 +916,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1004
916
  locked: boolean;
1005
917
  fromSelection: boolean;
1006
918
  } & import("../types").ActiveTool;
919
+ preferredSelectionTool: {
920
+ type: "selection" | "lasso";
921
+ initialized: boolean;
922
+ };
1007
923
  penMode: boolean;
1008
924
  penDetected: boolean;
1009
925
  exportBackground: boolean;
@@ -1012,42 +928,44 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1012
928
  exportScale: number;
1013
929
  currentItemStrokeColor: string;
1014
930
  currentItemBackgroundColor: string;
1015
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
931
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1016
932
  currentItemStrokeWidth: number;
1017
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
933
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1018
934
  currentItemRoughness: number;
1019
935
  currentItemOpacity: number;
1020
- currentItemFontFamily: number;
936
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1021
937
  currentItemFontSize: number;
1022
- currentItemTextAlign: string;
938
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1023
939
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1024
940
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1025
- currentHoveredFontFamily: number | null;
941
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1026
942
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1027
- currentItemArrowType: "round" | "sharp" | "elbow";
943
+ currentItemArrowType: "sharp" | "round" | "elbow";
1028
944
  viewBackgroundColor: string;
1029
945
  cursorButton: "up" | "down";
1030
946
  scrolledOutside: boolean;
1031
947
  name: string | null;
1032
948
  isResizing: boolean;
1033
949
  isRotating: boolean;
1034
- openMenu: "canvas" | "shape" | null;
1035
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
950
+ openMenu: "canvas" | null;
951
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1036
952
  openSidebar: {
1037
- name: string;
1038
- tab?: string | undefined;
953
+ name: import("../types").SidebarName;
954
+ tab?: import("../types").SidebarTabName;
1039
955
  } | null;
1040
- openDialog: {
956
+ openDialog: null | {
1041
957
  name: "imageExport" | "help" | "jsonExport";
1042
958
  } | {
1043
959
  name: "ttd";
1044
- tab: "mermaid" | "text-to-diagram";
960
+ tab: "text-to-diagram" | "mermaid";
1045
961
  } | {
1046
962
  name: "commandPalette";
963
+ } | {
964
+ name: "settings";
1047
965
  } | {
1048
966
  name: "elementLinkSelector";
1049
- sourceElementId: string;
1050
- } | null;
967
+ sourceElementId: ExcalidrawElement["id"];
968
+ };
1051
969
  defaultSidebarDockedPreference: boolean;
1052
970
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1053
971
  selectedElementIds: Readonly<{
@@ -1063,8 +981,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1063
981
  shouldCacheIgnoreZoom: boolean;
1064
982
  toast: {
1065
983
  message: string;
1066
- closable?: boolean | undefined;
1067
- duration?: number | undefined;
984
+ closable?: boolean;
985
+ duration?: number;
1068
986
  } | null;
1069
987
  zenModeEnabled: boolean;
1070
988
  theme: import("@excalidraw/element/types").Theme;
@@ -1075,32 +993,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1075
993
  selectedGroupIds: {
1076
994
  [groupId: string]: boolean;
1077
995
  };
1078
- editingGroupId: string | null;
996
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1079
997
  width: number;
1080
998
  height: number;
1081
999
  offsetTop: number;
1082
1000
  offsetLeft: number;
1083
1001
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1084
- collaborators: Map<import("../types").SocketId, Readonly<{
1085
- pointer?: import("../types").CollaboratorPointer | undefined;
1086
- button?: "up" | "down" | undefined;
1087
- selectedElementIds?: Readonly<{
1088
- [id: string]: true;
1089
- }> | undefined;
1090
- username?: string | null | undefined;
1091
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1092
- color?: {
1093
- background: string;
1094
- stroke: string;
1095
- } | undefined;
1096
- avatarUrl?: string | undefined;
1097
- id?: string | undefined;
1098
- socketId?: import("../types").SocketId | undefined;
1099
- isCurrentUser?: boolean | undefined;
1100
- isInCall?: boolean | undefined;
1101
- isSpeaking?: boolean | undefined;
1102
- isMuted?: boolean | undefined;
1103
- }>>;
1002
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1104
1003
  stats: {
1105
1004
  open: boolean;
1106
1005
  panels: number;
@@ -1113,7 +1012,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1113
1012
  shown: true;
1114
1013
  data: import("../charts").Spreadsheet;
1115
1014
  };
1116
- showHyperlinkPopup: false | "editor" | "info";
1015
+ showHyperlinkPopup: false | "info" | "editor";
1117
1016
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1118
1017
  snapLines: readonly import("../snapping").SnapLine[];
1119
1018
  originSnapOffset: {
@@ -1124,16 +1023,16 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1124
1023
  userToFollow: import("../types").UserToFollow | null;
1125
1024
  followedBy: Set<import("../types").SocketId>;
1126
1025
  isCropping: boolean;
1127
- croppingElementId: string | null;
1026
+ croppingElementId: ExcalidrawElement["id"] | null;
1128
1027
  searchMatches: Readonly<{
1129
- focusedId: string | null;
1028
+ focusedId: ExcalidrawElement["id"] | null;
1130
1029
  matches: readonly import("../types").SearchMatch[];
1131
1030
  }> | null;
1132
1031
  activeLockedId: string | null;
1133
1032
  lockedMultiSelections: {
1134
1033
  [groupId: string]: true;
1135
1034
  };
1136
- stylesPanelMode: "compact" | "full";
1035
+ bindMode: import("@excalidraw/element/types").BindMode;
1137
1036
  };
1138
1037
  captureUpdate: "EVENTUALLY";
1139
1038
  };
@@ -1144,7 +1043,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1144
1043
  trackEvent: {
1145
1044
  category: "canvas";
1146
1045
  };
1147
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1046
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1148
1047
  appState: {
1149
1048
  scrollX: number;
1150
1049
  scrollY: number;
@@ -1158,10 +1057,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1158
1057
  } | null;
1159
1058
  showWelcomeScreen: boolean;
1160
1059
  isLoading: boolean;
1161
- errorMessage: import("react").ReactNode;
1060
+ errorMessage: React.ReactNode;
1162
1061
  activeEmbeddable: {
1163
1062
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1164
- state: "active" | "hover";
1063
+ state: "hover" | "active";
1165
1064
  } | null;
1166
1065
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1167
1066
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1169,7 +1068,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1169
1068
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1170
1069
  isBindingEnabled: boolean;
1171
1070
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1172
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1071
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1173
1072
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1174
1073
  frameRendering: {
1175
1074
  enabled: boolean;
@@ -1185,6 +1084,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1185
1084
  locked: boolean;
1186
1085
  fromSelection: boolean;
1187
1086
  } & import("../types").ActiveTool;
1087
+ preferredSelectionTool: {
1088
+ type: "selection" | "lasso";
1089
+ initialized: boolean;
1090
+ };
1188
1091
  penMode: boolean;
1189
1092
  penDetected: boolean;
1190
1093
  exportBackground: boolean;
@@ -1193,42 +1096,44 @@ export declare const actionZoomToFitSelectionInViewport: {
1193
1096
  exportScale: number;
1194
1097
  currentItemStrokeColor: string;
1195
1098
  currentItemBackgroundColor: string;
1196
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1099
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1197
1100
  currentItemStrokeWidth: number;
1198
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1101
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1199
1102
  currentItemRoughness: number;
1200
1103
  currentItemOpacity: number;
1201
- currentItemFontFamily: number;
1104
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1202
1105
  currentItemFontSize: number;
1203
- currentItemTextAlign: string;
1106
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1204
1107
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1205
1108
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1206
- currentHoveredFontFamily: number | null;
1109
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1207
1110
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1208
- currentItemArrowType: "round" | "sharp" | "elbow";
1111
+ currentItemArrowType: "sharp" | "round" | "elbow";
1209
1112
  viewBackgroundColor: string;
1210
1113
  cursorButton: "up" | "down";
1211
1114
  scrolledOutside: boolean;
1212
1115
  name: string | null;
1213
1116
  isResizing: boolean;
1214
1117
  isRotating: boolean;
1215
- openMenu: "canvas" | "shape" | null;
1216
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1118
+ openMenu: "canvas" | null;
1119
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1217
1120
  openSidebar: {
1218
- name: string;
1219
- tab?: string | undefined;
1121
+ name: import("../types").SidebarName;
1122
+ tab?: import("../types").SidebarTabName;
1220
1123
  } | null;
1221
- openDialog: {
1124
+ openDialog: null | {
1222
1125
  name: "imageExport" | "help" | "jsonExport";
1223
1126
  } | {
1224
1127
  name: "ttd";
1225
- tab: "mermaid" | "text-to-diagram";
1128
+ tab: "text-to-diagram" | "mermaid";
1226
1129
  } | {
1227
1130
  name: "commandPalette";
1131
+ } | {
1132
+ name: "settings";
1228
1133
  } | {
1229
1134
  name: "elementLinkSelector";
1230
- sourceElementId: string;
1231
- } | null;
1135
+ sourceElementId: ExcalidrawElement["id"];
1136
+ };
1232
1137
  defaultSidebarDockedPreference: boolean;
1233
1138
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1234
1139
  selectedElementIds: Readonly<{
@@ -1244,8 +1149,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1244
1149
  shouldCacheIgnoreZoom: boolean;
1245
1150
  toast: {
1246
1151
  message: string;
1247
- closable?: boolean | undefined;
1248
- duration?: number | undefined;
1152
+ closable?: boolean;
1153
+ duration?: number;
1249
1154
  } | null;
1250
1155
  zenModeEnabled: boolean;
1251
1156
  theme: import("@excalidraw/element/types").Theme;
@@ -1256,32 +1161,13 @@ export declare const actionZoomToFitSelectionInViewport: {
1256
1161
  selectedGroupIds: {
1257
1162
  [groupId: string]: boolean;
1258
1163
  };
1259
- editingGroupId: string | null;
1164
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1260
1165
  width: number;
1261
1166
  height: number;
1262
1167
  offsetTop: number;
1263
1168
  offsetLeft: number;
1264
1169
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1265
- collaborators: Map<import("../types").SocketId, Readonly<{
1266
- pointer?: import("../types").CollaboratorPointer | undefined;
1267
- button?: "up" | "down" | undefined;
1268
- selectedElementIds?: Readonly<{
1269
- [id: string]: true;
1270
- }> | undefined;
1271
- username?: string | null | undefined;
1272
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1273
- color?: {
1274
- background: string;
1275
- stroke: string;
1276
- } | undefined;
1277
- avatarUrl?: string | undefined;
1278
- id?: string | undefined;
1279
- socketId?: import("../types").SocketId | undefined;
1280
- isCurrentUser?: boolean | undefined;
1281
- isInCall?: boolean | undefined;
1282
- isSpeaking?: boolean | undefined;
1283
- isMuted?: boolean | undefined;
1284
- }>>;
1170
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1285
1171
  stats: {
1286
1172
  open: boolean;
1287
1173
  panels: number;
@@ -1294,7 +1180,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1294
1180
  shown: true;
1295
1181
  data: import("../charts").Spreadsheet;
1296
1182
  };
1297
- showHyperlinkPopup: false | "editor" | "info";
1183
+ showHyperlinkPopup: false | "info" | "editor";
1298
1184
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1299
1185
  snapLines: readonly import("../snapping").SnapLine[];
1300
1186
  originSnapOffset: {
@@ -1305,16 +1191,16 @@ export declare const actionZoomToFitSelectionInViewport: {
1305
1191
  userToFollow: import("../types").UserToFollow | null;
1306
1192
  followedBy: Set<import("../types").SocketId>;
1307
1193
  isCropping: boolean;
1308
- croppingElementId: string | null;
1194
+ croppingElementId: ExcalidrawElement["id"] | null;
1309
1195
  searchMatches: Readonly<{
1310
- focusedId: string | null;
1196
+ focusedId: ExcalidrawElement["id"] | null;
1311
1197
  matches: readonly import("../types").SearchMatch[];
1312
1198
  }> | null;
1313
1199
  activeLockedId: string | null;
1314
1200
  lockedMultiSelections: {
1315
1201
  [groupId: string]: true;
1316
1202
  };
1317
- stylesPanelMode: "compact" | "full";
1203
+ bindMode: import("@excalidraw/element/types").BindMode;
1318
1204
  };
1319
1205
  captureUpdate: "EVENTUALLY";
1320
1206
  };
@@ -1329,7 +1215,7 @@ export declare const actionZoomToFitSelection: {
1329
1215
  trackEvent: {
1330
1216
  category: "canvas";
1331
1217
  };
1332
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1218
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1333
1219
  appState: {
1334
1220
  scrollX: number;
1335
1221
  scrollY: number;
@@ -1343,10 +1229,10 @@ export declare const actionZoomToFitSelection: {
1343
1229
  } | null;
1344
1230
  showWelcomeScreen: boolean;
1345
1231
  isLoading: boolean;
1346
- errorMessage: import("react").ReactNode;
1232
+ errorMessage: React.ReactNode;
1347
1233
  activeEmbeddable: {
1348
1234
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1349
- state: "active" | "hover";
1235
+ state: "hover" | "active";
1350
1236
  } | null;
1351
1237
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1352
1238
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1354,7 +1240,7 @@ export declare const actionZoomToFitSelection: {
1354
1240
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1355
1241
  isBindingEnabled: boolean;
1356
1242
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1357
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1243
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1358
1244
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1359
1245
  frameRendering: {
1360
1246
  enabled: boolean;
@@ -1370,6 +1256,10 @@ export declare const actionZoomToFitSelection: {
1370
1256
  locked: boolean;
1371
1257
  fromSelection: boolean;
1372
1258
  } & import("../types").ActiveTool;
1259
+ preferredSelectionTool: {
1260
+ type: "selection" | "lasso";
1261
+ initialized: boolean;
1262
+ };
1373
1263
  penMode: boolean;
1374
1264
  penDetected: boolean;
1375
1265
  exportBackground: boolean;
@@ -1378,42 +1268,44 @@ export declare const actionZoomToFitSelection: {
1378
1268
  exportScale: number;
1379
1269
  currentItemStrokeColor: string;
1380
1270
  currentItemBackgroundColor: string;
1381
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1271
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1382
1272
  currentItemStrokeWidth: number;
1383
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1273
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1384
1274
  currentItemRoughness: number;
1385
1275
  currentItemOpacity: number;
1386
- currentItemFontFamily: number;
1276
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1387
1277
  currentItemFontSize: number;
1388
- currentItemTextAlign: string;
1278
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1389
1279
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1390
1280
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1391
- currentHoveredFontFamily: number | null;
1281
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1392
1282
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1393
- currentItemArrowType: "round" | "sharp" | "elbow";
1283
+ currentItemArrowType: "sharp" | "round" | "elbow";
1394
1284
  viewBackgroundColor: string;
1395
1285
  cursorButton: "up" | "down";
1396
1286
  scrolledOutside: boolean;
1397
1287
  name: string | null;
1398
1288
  isResizing: boolean;
1399
1289
  isRotating: boolean;
1400
- openMenu: "canvas" | "shape" | null;
1401
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1290
+ openMenu: "canvas" | null;
1291
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1402
1292
  openSidebar: {
1403
- name: string;
1404
- tab?: string | undefined;
1293
+ name: import("../types").SidebarName;
1294
+ tab?: import("../types").SidebarTabName;
1405
1295
  } | null;
1406
- openDialog: {
1296
+ openDialog: null | {
1407
1297
  name: "imageExport" | "help" | "jsonExport";
1408
1298
  } | {
1409
1299
  name: "ttd";
1410
- tab: "mermaid" | "text-to-diagram";
1300
+ tab: "text-to-diagram" | "mermaid";
1411
1301
  } | {
1412
1302
  name: "commandPalette";
1303
+ } | {
1304
+ name: "settings";
1413
1305
  } | {
1414
1306
  name: "elementLinkSelector";
1415
- sourceElementId: string;
1416
- } | null;
1307
+ sourceElementId: ExcalidrawElement["id"];
1308
+ };
1417
1309
  defaultSidebarDockedPreference: boolean;
1418
1310
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1419
1311
  selectedElementIds: Readonly<{
@@ -1429,8 +1321,8 @@ export declare const actionZoomToFitSelection: {
1429
1321
  shouldCacheIgnoreZoom: boolean;
1430
1322
  toast: {
1431
1323
  message: string;
1432
- closable?: boolean | undefined;
1433
- duration?: number | undefined;
1324
+ closable?: boolean;
1325
+ duration?: number;
1434
1326
  } | null;
1435
1327
  zenModeEnabled: boolean;
1436
1328
  theme: import("@excalidraw/element/types").Theme;
@@ -1441,32 +1333,13 @@ export declare const actionZoomToFitSelection: {
1441
1333
  selectedGroupIds: {
1442
1334
  [groupId: string]: boolean;
1443
1335
  };
1444
- editingGroupId: string | null;
1336
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1445
1337
  width: number;
1446
1338
  height: number;
1447
1339
  offsetTop: number;
1448
1340
  offsetLeft: number;
1449
1341
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1450
- collaborators: Map<import("../types").SocketId, Readonly<{
1451
- pointer?: import("../types").CollaboratorPointer | undefined;
1452
- button?: "up" | "down" | undefined;
1453
- selectedElementIds?: Readonly<{
1454
- [id: string]: true;
1455
- }> | undefined;
1456
- username?: string | null | undefined;
1457
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1458
- color?: {
1459
- background: string;
1460
- stroke: string;
1461
- } | undefined;
1462
- avatarUrl?: string | undefined;
1463
- id?: string | undefined;
1464
- socketId?: import("../types").SocketId | undefined;
1465
- isCurrentUser?: boolean | undefined;
1466
- isInCall?: boolean | undefined;
1467
- isSpeaking?: boolean | undefined;
1468
- isMuted?: boolean | undefined;
1469
- }>>;
1342
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1470
1343
  stats: {
1471
1344
  open: boolean;
1472
1345
  panels: number;
@@ -1479,7 +1352,7 @@ export declare const actionZoomToFitSelection: {
1479
1352
  shown: true;
1480
1353
  data: import("../charts").Spreadsheet;
1481
1354
  };
1482
- showHyperlinkPopup: false | "editor" | "info";
1355
+ showHyperlinkPopup: false | "info" | "editor";
1483
1356
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1484
1357
  snapLines: readonly import("../snapping").SnapLine[];
1485
1358
  originSnapOffset: {
@@ -1490,16 +1363,16 @@ export declare const actionZoomToFitSelection: {
1490
1363
  userToFollow: import("../types").UserToFollow | null;
1491
1364
  followedBy: Set<import("../types").SocketId>;
1492
1365
  isCropping: boolean;
1493
- croppingElementId: string | null;
1366
+ croppingElementId: ExcalidrawElement["id"] | null;
1494
1367
  searchMatches: Readonly<{
1495
- focusedId: string | null;
1368
+ focusedId: ExcalidrawElement["id"] | null;
1496
1369
  matches: readonly import("../types").SearchMatch[];
1497
1370
  }> | null;
1498
1371
  activeLockedId: string | null;
1499
1372
  lockedMultiSelections: {
1500
1373
  [groupId: string]: true;
1501
1374
  };
1502
- stylesPanelMode: "compact" | "full";
1375
+ bindMode: import("@excalidraw/element/types").BindMode;
1503
1376
  };
1504
1377
  captureUpdate: "EVENTUALLY";
1505
1378
  };
@@ -1515,7 +1388,7 @@ export declare const actionZoomToFit: {
1515
1388
  trackEvent: {
1516
1389
  category: "canvas";
1517
1390
  };
1518
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1391
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1519
1392
  appState: {
1520
1393
  scrollX: number;
1521
1394
  scrollY: number;
@@ -1529,10 +1402,10 @@ export declare const actionZoomToFit: {
1529
1402
  } | null;
1530
1403
  showWelcomeScreen: boolean;
1531
1404
  isLoading: boolean;
1532
- errorMessage: import("react").ReactNode;
1405
+ errorMessage: React.ReactNode;
1533
1406
  activeEmbeddable: {
1534
1407
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1535
- state: "active" | "hover";
1408
+ state: "hover" | "active";
1536
1409
  } | null;
1537
1410
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1538
1411
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1540,7 +1413,7 @@ export declare const actionZoomToFit: {
1540
1413
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1541
1414
  isBindingEnabled: boolean;
1542
1415
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1543
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1416
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1544
1417
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1545
1418
  frameRendering: {
1546
1419
  enabled: boolean;
@@ -1556,6 +1429,10 @@ export declare const actionZoomToFit: {
1556
1429
  locked: boolean;
1557
1430
  fromSelection: boolean;
1558
1431
  } & import("../types").ActiveTool;
1432
+ preferredSelectionTool: {
1433
+ type: "selection" | "lasso";
1434
+ initialized: boolean;
1435
+ };
1559
1436
  penMode: boolean;
1560
1437
  penDetected: boolean;
1561
1438
  exportBackground: boolean;
@@ -1564,42 +1441,44 @@ export declare const actionZoomToFit: {
1564
1441
  exportScale: number;
1565
1442
  currentItemStrokeColor: string;
1566
1443
  currentItemBackgroundColor: string;
1567
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1444
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1568
1445
  currentItemStrokeWidth: number;
1569
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1446
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1570
1447
  currentItemRoughness: number;
1571
1448
  currentItemOpacity: number;
1572
- currentItemFontFamily: number;
1449
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1573
1450
  currentItemFontSize: number;
1574
- currentItemTextAlign: string;
1451
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1575
1452
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1576
1453
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1577
- currentHoveredFontFamily: number | null;
1454
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1578
1455
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1579
- currentItemArrowType: "round" | "sharp" | "elbow";
1456
+ currentItemArrowType: "sharp" | "round" | "elbow";
1580
1457
  viewBackgroundColor: string;
1581
1458
  cursorButton: "up" | "down";
1582
1459
  scrolledOutside: boolean;
1583
1460
  name: string | null;
1584
1461
  isResizing: boolean;
1585
1462
  isRotating: boolean;
1586
- openMenu: "canvas" | "shape" | null;
1587
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1463
+ openMenu: "canvas" | null;
1464
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1588
1465
  openSidebar: {
1589
- name: string;
1590
- tab?: string | undefined;
1466
+ name: import("../types").SidebarName;
1467
+ tab?: import("../types").SidebarTabName;
1591
1468
  } | null;
1592
- openDialog: {
1469
+ openDialog: null | {
1593
1470
  name: "imageExport" | "help" | "jsonExport";
1594
1471
  } | {
1595
1472
  name: "ttd";
1596
- tab: "mermaid" | "text-to-diagram";
1473
+ tab: "text-to-diagram" | "mermaid";
1597
1474
  } | {
1598
1475
  name: "commandPalette";
1476
+ } | {
1477
+ name: "settings";
1599
1478
  } | {
1600
1479
  name: "elementLinkSelector";
1601
- sourceElementId: string;
1602
- } | null;
1480
+ sourceElementId: ExcalidrawElement["id"];
1481
+ };
1603
1482
  defaultSidebarDockedPreference: boolean;
1604
1483
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1605
1484
  selectedElementIds: Readonly<{
@@ -1615,8 +1494,8 @@ export declare const actionZoomToFit: {
1615
1494
  shouldCacheIgnoreZoom: boolean;
1616
1495
  toast: {
1617
1496
  message: string;
1618
- closable?: boolean | undefined;
1619
- duration?: number | undefined;
1497
+ closable?: boolean;
1498
+ duration?: number;
1620
1499
  } | null;
1621
1500
  zenModeEnabled: boolean;
1622
1501
  theme: import("@excalidraw/element/types").Theme;
@@ -1627,32 +1506,13 @@ export declare const actionZoomToFit: {
1627
1506
  selectedGroupIds: {
1628
1507
  [groupId: string]: boolean;
1629
1508
  };
1630
- editingGroupId: string | null;
1509
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1631
1510
  width: number;
1632
1511
  height: number;
1633
1512
  offsetTop: number;
1634
1513
  offsetLeft: number;
1635
1514
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1636
- collaborators: Map<import("../types").SocketId, Readonly<{
1637
- pointer?: import("../types").CollaboratorPointer | undefined;
1638
- button?: "up" | "down" | undefined;
1639
- selectedElementIds?: Readonly<{
1640
- [id: string]: true;
1641
- }> | undefined;
1642
- username?: string | null | undefined;
1643
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1644
- color?: {
1645
- background: string;
1646
- stroke: string;
1647
- } | undefined;
1648
- avatarUrl?: string | undefined;
1649
- id?: string | undefined;
1650
- socketId?: import("../types").SocketId | undefined;
1651
- isCurrentUser?: boolean | undefined;
1652
- isInCall?: boolean | undefined;
1653
- isSpeaking?: boolean | undefined;
1654
- isMuted?: boolean | undefined;
1655
- }>>;
1515
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1656
1516
  stats: {
1657
1517
  open: boolean;
1658
1518
  panels: number;
@@ -1665,7 +1525,7 @@ export declare const actionZoomToFit: {
1665
1525
  shown: true;
1666
1526
  data: import("../charts").Spreadsheet;
1667
1527
  };
1668
- showHyperlinkPopup: false | "editor" | "info";
1528
+ showHyperlinkPopup: false | "info" | "editor";
1669
1529
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1670
1530
  snapLines: readonly import("../snapping").SnapLine[];
1671
1531
  originSnapOffset: {
@@ -1676,16 +1536,16 @@ export declare const actionZoomToFit: {
1676
1536
  userToFollow: import("../types").UserToFollow | null;
1677
1537
  followedBy: Set<import("../types").SocketId>;
1678
1538
  isCropping: boolean;
1679
- croppingElementId: string | null;
1539
+ croppingElementId: ExcalidrawElement["id"] | null;
1680
1540
  searchMatches: Readonly<{
1681
- focusedId: string | null;
1541
+ focusedId: ExcalidrawElement["id"] | null;
1682
1542
  matches: readonly import("../types").SearchMatch[];
1683
1543
  }> | null;
1684
1544
  activeLockedId: string | null;
1685
1545
  lockedMultiSelections: {
1686
1546
  [groupId: string]: true;
1687
1547
  };
1688
- stylesPanelMode: "compact" | "full";
1548
+ bindMode: import("@excalidraw/element/types").BindMode;
1689
1549
  };
1690
1550
  captureUpdate: "EVENTUALLY";
1691
1551
  };
@@ -1693,193 +1553,8 @@ export declare const actionZoomToFit: {
1693
1553
  } & {
1694
1554
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1695
1555
  };
1696
- export declare const actionToggleTheme: {
1697
- name: "toggleTheme";
1698
- label: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>) => "buttons.lightMode" | "buttons.darkMode";
1699
- keywords: string[];
1700
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
1701
- viewMode: true;
1702
- trackEvent: {
1703
- category: "canvas";
1704
- };
1705
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1706
- appState: {
1707
- theme: any;
1708
- contextMenu: {
1709
- items: import("../components/ContextMenu").ContextMenuItems;
1710
- top: number;
1711
- left: number;
1712
- } | null;
1713
- showWelcomeScreen: boolean;
1714
- isLoading: boolean;
1715
- errorMessage: import("react").ReactNode;
1716
- activeEmbeddable: {
1717
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1718
- state: "active" | "hover";
1719
- } | null;
1720
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1721
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1722
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1723
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1724
- isBindingEnabled: boolean;
1725
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1726
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1727
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1728
- frameRendering: {
1729
- enabled: boolean;
1730
- name: boolean;
1731
- outline: boolean;
1732
- clip: boolean;
1733
- };
1734
- editingFrame: string | null;
1735
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1736
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1737
- activeTool: {
1738
- lastActiveTool: import("../types").ActiveTool | null;
1739
- locked: boolean;
1740
- fromSelection: boolean;
1741
- } & import("../types").ActiveTool;
1742
- penMode: boolean;
1743
- penDetected: boolean;
1744
- exportBackground: boolean;
1745
- exportEmbedScene: boolean;
1746
- exportWithDarkMode: boolean;
1747
- exportScale: number;
1748
- currentItemStrokeColor: string;
1749
- currentItemBackgroundColor: string;
1750
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1751
- currentItemStrokeWidth: number;
1752
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1753
- currentItemRoughness: number;
1754
- currentItemOpacity: number;
1755
- currentItemFontFamily: number;
1756
- currentItemFontSize: number;
1757
- currentItemTextAlign: string;
1758
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1759
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1760
- currentHoveredFontFamily: number | null;
1761
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1762
- currentItemArrowType: "round" | "sharp" | "elbow";
1763
- viewBackgroundColor: string;
1764
- scrollX: number;
1765
- scrollY: number;
1766
- cursorButton: "up" | "down";
1767
- scrolledOutside: boolean;
1768
- name: string | null;
1769
- isResizing: boolean;
1770
- isRotating: boolean;
1771
- zoom: Readonly<{
1772
- value: import("../types").NormalizedZoomValue;
1773
- }>;
1774
- openMenu: "canvas" | "shape" | null;
1775
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1776
- openSidebar: {
1777
- name: string;
1778
- tab?: string | undefined;
1779
- } | null;
1780
- openDialog: {
1781
- name: "imageExport" | "help" | "jsonExport";
1782
- } | {
1783
- name: "ttd";
1784
- tab: "mermaid" | "text-to-diagram";
1785
- } | {
1786
- name: "commandPalette";
1787
- } | {
1788
- name: "elementLinkSelector";
1789
- sourceElementId: string;
1790
- } | null;
1791
- defaultSidebarDockedPreference: boolean;
1792
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1793
- selectedElementIds: Readonly<{
1794
- [id: string]: true;
1795
- }>;
1796
- hoveredElementIds: Readonly<{
1797
- [id: string]: true;
1798
- }>;
1799
- previousSelectedElementIds: {
1800
- [id: string]: true;
1801
- };
1802
- selectedElementsAreBeingDragged: boolean;
1803
- shouldCacheIgnoreZoom: boolean;
1804
- toast: {
1805
- message: string;
1806
- closable?: boolean | undefined;
1807
- duration?: number | undefined;
1808
- } | null;
1809
- zenModeEnabled: boolean;
1810
- gridSize: number;
1811
- gridStep: number;
1812
- gridModeEnabled: boolean;
1813
- viewModeEnabled: boolean;
1814
- selectedGroupIds: {
1815
- [groupId: string]: boolean;
1816
- };
1817
- editingGroupId: string | null;
1818
- width: number;
1819
- height: number;
1820
- offsetTop: number;
1821
- offsetLeft: number;
1822
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1823
- collaborators: Map<import("../types").SocketId, Readonly<{
1824
- pointer?: import("../types").CollaboratorPointer | undefined;
1825
- button?: "up" | "down" | undefined;
1826
- selectedElementIds?: Readonly<{
1827
- [id: string]: true;
1828
- }> | undefined;
1829
- username?: string | null | undefined;
1830
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1831
- color?: {
1832
- background: string;
1833
- stroke: string;
1834
- } | undefined;
1835
- avatarUrl?: string | undefined;
1836
- id?: string | undefined;
1837
- socketId?: import("../types").SocketId | undefined;
1838
- isCurrentUser?: boolean | undefined;
1839
- isInCall?: boolean | undefined;
1840
- isSpeaking?: boolean | undefined;
1841
- isMuted?: boolean | undefined;
1842
- }>>;
1843
- stats: {
1844
- open: boolean;
1845
- panels: number;
1846
- };
1847
- currentChartType: import("@excalidraw/element/types").ChartType;
1848
- pasteDialog: {
1849
- shown: false;
1850
- data: null;
1851
- } | {
1852
- shown: true;
1853
- data: import("../charts").Spreadsheet;
1854
- };
1855
- showHyperlinkPopup: false | "editor" | "info";
1856
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1857
- snapLines: readonly import("../snapping").SnapLine[];
1858
- originSnapOffset: {
1859
- x: number;
1860
- y: number;
1861
- } | null;
1862
- objectsSnapModeEnabled: boolean;
1863
- userToFollow: import("../types").UserToFollow | null;
1864
- followedBy: Set<import("../types").SocketId>;
1865
- isCropping: boolean;
1866
- croppingElementId: string | null;
1867
- searchMatches: Readonly<{
1868
- focusedId: string | null;
1869
- matches: readonly import("../types").SearchMatch[];
1870
- }> | null;
1871
- activeLockedId: string | null;
1872
- lockedMultiSelections: {
1873
- [groupId: string]: true;
1874
- };
1875
- stylesPanelMode: "compact" | "full";
1876
- };
1877
- captureUpdate: "EVENTUALLY";
1878
- };
1879
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1880
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1881
- } & {
1882
- keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1556
+ export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
1557
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1883
1558
  };
1884
1559
  export declare const actionToggleEraserTool: {
1885
1560
  name: "toggleEraserTool";
@@ -1887,7 +1562,7 @@ export declare const actionToggleEraserTool: {
1887
1562
  trackEvent: {
1888
1563
  category: "toolbar";
1889
1564
  };
1890
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1565
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1891
1566
  appState: {
1892
1567
  selectedElementIds: {};
1893
1568
  selectedGroupIds: {};
@@ -1904,14 +1579,14 @@ export declare const actionToggleEraserTool: {
1904
1579
  } | null;
1905
1580
  showWelcomeScreen: boolean;
1906
1581
  isLoading: boolean;
1907
- errorMessage: import("react").ReactNode;
1582
+ errorMessage: React.ReactNode;
1908
1583
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1909
1584
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1910
1585
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1911
1586
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1912
1587
  isBindingEnabled: boolean;
1913
1588
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1914
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1589
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1915
1590
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1916
1591
  frameRendering: {
1917
1592
  enabled: boolean;
@@ -1922,6 +1597,10 @@ export declare const actionToggleEraserTool: {
1922
1597
  editingFrame: string | null;
1923
1598
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1924
1599
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1600
+ preferredSelectionTool: {
1601
+ type: "selection" | "lasso";
1602
+ initialized: boolean;
1603
+ };
1925
1604
  penMode: boolean;
1926
1605
  penDetected: boolean;
1927
1606
  exportBackground: boolean;
@@ -1930,19 +1609,19 @@ export declare const actionToggleEraserTool: {
1930
1609
  exportScale: number;
1931
1610
  currentItemStrokeColor: string;
1932
1611
  currentItemBackgroundColor: string;
1933
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1612
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1934
1613
  currentItemStrokeWidth: number;
1935
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1614
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1936
1615
  currentItemRoughness: number;
1937
1616
  currentItemOpacity: number;
1938
- currentItemFontFamily: number;
1617
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1939
1618
  currentItemFontSize: number;
1940
- currentItemTextAlign: string;
1619
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1941
1620
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1942
1621
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1943
- currentHoveredFontFamily: number | null;
1622
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1944
1623
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1945
- currentItemArrowType: "round" | "sharp" | "elbow";
1624
+ currentItemArrowType: "sharp" | "round" | "elbow";
1946
1625
  viewBackgroundColor: string;
1947
1626
  scrollX: number;
1948
1627
  scrollY: number;
@@ -1951,26 +1630,26 @@ export declare const actionToggleEraserTool: {
1951
1630
  name: string | null;
1952
1631
  isResizing: boolean;
1953
1632
  isRotating: boolean;
1954
- zoom: Readonly<{
1955
- value: import("../types").NormalizedZoomValue;
1956
- }>;
1957
- openMenu: "canvas" | "shape" | null;
1958
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1633
+ zoom: import("../types").Zoom;
1634
+ openMenu: "canvas" | null;
1635
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1959
1636
  openSidebar: {
1960
- name: string;
1961
- tab?: string | undefined;
1637
+ name: import("../types").SidebarName;
1638
+ tab?: import("../types").SidebarTabName;
1962
1639
  } | null;
1963
- openDialog: {
1640
+ openDialog: null | {
1964
1641
  name: "imageExport" | "help" | "jsonExport";
1965
1642
  } | {
1966
1643
  name: "ttd";
1967
- tab: "mermaid" | "text-to-diagram";
1644
+ tab: "text-to-diagram" | "mermaid";
1968
1645
  } | {
1969
1646
  name: "commandPalette";
1647
+ } | {
1648
+ name: "settings";
1970
1649
  } | {
1971
1650
  name: "elementLinkSelector";
1972
- sourceElementId: string;
1973
- } | null;
1651
+ sourceElementId: ExcalidrawElement["id"];
1652
+ };
1974
1653
  defaultSidebarDockedPreference: boolean;
1975
1654
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1976
1655
  hoveredElementIds: Readonly<{
@@ -1983,8 +1662,8 @@ export declare const actionToggleEraserTool: {
1983
1662
  shouldCacheIgnoreZoom: boolean;
1984
1663
  toast: {
1985
1664
  message: string;
1986
- closable?: boolean | undefined;
1987
- duration?: number | undefined;
1665
+ closable?: boolean;
1666
+ duration?: number;
1988
1667
  } | null;
1989
1668
  zenModeEnabled: boolean;
1990
1669
  theme: import("@excalidraw/element/types").Theme;
@@ -1992,32 +1671,13 @@ export declare const actionToggleEraserTool: {
1992
1671
  gridStep: number;
1993
1672
  gridModeEnabled: boolean;
1994
1673
  viewModeEnabled: boolean;
1995
- editingGroupId: string | null;
1674
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1996
1675
  width: number;
1997
1676
  height: number;
1998
1677
  offsetTop: number;
1999
1678
  offsetLeft: number;
2000
1679
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
2001
- collaborators: Map<import("../types").SocketId, Readonly<{
2002
- pointer?: import("../types").CollaboratorPointer | undefined;
2003
- button?: "up" | "down" | undefined;
2004
- selectedElementIds?: Readonly<{
2005
- [id: string]: true;
2006
- }> | undefined;
2007
- username?: string | null | undefined;
2008
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2009
- color?: {
2010
- background: string;
2011
- stroke: string;
2012
- } | undefined;
2013
- avatarUrl?: string | undefined;
2014
- id?: string | undefined;
2015
- socketId?: import("../types").SocketId | undefined;
2016
- isCurrentUser?: boolean | undefined;
2017
- isInCall?: boolean | undefined;
2018
- isSpeaking?: boolean | undefined;
2019
- isMuted?: boolean | undefined;
2020
- }>>;
1680
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2021
1681
  stats: {
2022
1682
  open: boolean;
2023
1683
  panels: number;
@@ -2030,7 +1690,7 @@ export declare const actionToggleEraserTool: {
2030
1690
  shown: true;
2031
1691
  data: import("../charts").Spreadsheet;
2032
1692
  };
2033
- showHyperlinkPopup: false | "editor" | "info";
1693
+ showHyperlinkPopup: false | "info" | "editor";
2034
1694
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2035
1695
  snapLines: readonly import("../snapping").SnapLine[];
2036
1696
  originSnapOffset: {
@@ -2041,16 +1701,16 @@ export declare const actionToggleEraserTool: {
2041
1701
  userToFollow: import("../types").UserToFollow | null;
2042
1702
  followedBy: Set<import("../types").SocketId>;
2043
1703
  isCropping: boolean;
2044
- croppingElementId: string | null;
1704
+ croppingElementId: ExcalidrawElement["id"] | null;
2045
1705
  searchMatches: Readonly<{
2046
- focusedId: string | null;
1706
+ focusedId: ExcalidrawElement["id"] | null;
2047
1707
  matches: readonly import("../types").SearchMatch[];
2048
1708
  }> | null;
2049
1709
  activeLockedId: string | null;
2050
1710
  lockedMultiSelections: {
2051
1711
  [groupId: string]: true;
2052
1712
  };
2053
- stylesPanelMode: "compact" | "full";
1713
+ bindMode: import("@excalidraw/element/types").BindMode;
2054
1714
  };
2055
1715
  captureUpdate: "IMMEDIATELY";
2056
1716
  };
@@ -2066,7 +1726,7 @@ export declare const actionToggleLassoTool: {
2066
1726
  category: "toolbar";
2067
1727
  };
2068
1728
  predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
2069
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1729
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
2070
1730
  appState: {
2071
1731
  selectedElementIds: {};
2072
1732
  selectedGroupIds: {};
@@ -2083,14 +1743,14 @@ export declare const actionToggleLassoTool: {
2083
1743
  } | null;
2084
1744
  showWelcomeScreen: boolean;
2085
1745
  isLoading: boolean;
2086
- errorMessage: import("react").ReactNode;
1746
+ errorMessage: React.ReactNode;
2087
1747
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2088
1748
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2089
1749
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2090
1750
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2091
1751
  isBindingEnabled: boolean;
2092
1752
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2093
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1753
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2094
1754
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2095
1755
  frameRendering: {
2096
1756
  enabled: boolean;
@@ -2101,6 +1761,10 @@ export declare const actionToggleLassoTool: {
2101
1761
  editingFrame: string | null;
2102
1762
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2103
1763
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1764
+ preferredSelectionTool: {
1765
+ type: "selection" | "lasso";
1766
+ initialized: boolean;
1767
+ };
2104
1768
  penMode: boolean;
2105
1769
  penDetected: boolean;
2106
1770
  exportBackground: boolean;
@@ -2109,19 +1773,19 @@ export declare const actionToggleLassoTool: {
2109
1773
  exportScale: number;
2110
1774
  currentItemStrokeColor: string;
2111
1775
  currentItemBackgroundColor: string;
2112
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1776
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
2113
1777
  currentItemStrokeWidth: number;
2114
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1778
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
2115
1779
  currentItemRoughness: number;
2116
1780
  currentItemOpacity: number;
2117
- currentItemFontFamily: number;
1781
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
2118
1782
  currentItemFontSize: number;
2119
- currentItemTextAlign: string;
1783
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
2120
1784
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2121
1785
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2122
- currentHoveredFontFamily: number | null;
1786
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
2123
1787
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2124
- currentItemArrowType: "round" | "sharp" | "elbow";
1788
+ currentItemArrowType: "sharp" | "round" | "elbow";
2125
1789
  viewBackgroundColor: string;
2126
1790
  scrollX: number;
2127
1791
  scrollY: number;
@@ -2130,26 +1794,26 @@ export declare const actionToggleLassoTool: {
2130
1794
  name: string | null;
2131
1795
  isResizing: boolean;
2132
1796
  isRotating: boolean;
2133
- zoom: Readonly<{
2134
- value: import("../types").NormalizedZoomValue;
2135
- }>;
2136
- openMenu: "canvas" | "shape" | null;
2137
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1797
+ zoom: import("../types").Zoom;
1798
+ openMenu: "canvas" | null;
1799
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2138
1800
  openSidebar: {
2139
- name: string;
2140
- tab?: string | undefined;
1801
+ name: import("../types").SidebarName;
1802
+ tab?: import("../types").SidebarTabName;
2141
1803
  } | null;
2142
- openDialog: {
1804
+ openDialog: null | {
2143
1805
  name: "imageExport" | "help" | "jsonExport";
2144
1806
  } | {
2145
1807
  name: "ttd";
2146
- tab: "mermaid" | "text-to-diagram";
1808
+ tab: "text-to-diagram" | "mermaid";
2147
1809
  } | {
2148
1810
  name: "commandPalette";
1811
+ } | {
1812
+ name: "settings";
2149
1813
  } | {
2150
1814
  name: "elementLinkSelector";
2151
- sourceElementId: string;
2152
- } | null;
1815
+ sourceElementId: ExcalidrawElement["id"];
1816
+ };
2153
1817
  defaultSidebarDockedPreference: boolean;
2154
1818
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2155
1819
  hoveredElementIds: Readonly<{
@@ -2162,8 +1826,8 @@ export declare const actionToggleLassoTool: {
2162
1826
  shouldCacheIgnoreZoom: boolean;
2163
1827
  toast: {
2164
1828
  message: string;
2165
- closable?: boolean | undefined;
2166
- duration?: number | undefined;
1829
+ closable?: boolean;
1830
+ duration?: number;
2167
1831
  } | null;
2168
1832
  zenModeEnabled: boolean;
2169
1833
  theme: import("@excalidraw/element/types").Theme;
@@ -2171,32 +1835,13 @@ export declare const actionToggleLassoTool: {
2171
1835
  gridStep: number;
2172
1836
  gridModeEnabled: boolean;
2173
1837
  viewModeEnabled: boolean;
2174
- editingGroupId: string | null;
1838
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2175
1839
  width: number;
2176
1840
  height: number;
2177
1841
  offsetTop: number;
2178
1842
  offsetLeft: number;
2179
1843
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
2180
- collaborators: Map<import("../types").SocketId, Readonly<{
2181
- pointer?: import("../types").CollaboratorPointer | undefined;
2182
- button?: "up" | "down" | undefined;
2183
- selectedElementIds?: Readonly<{
2184
- [id: string]: true;
2185
- }> | undefined;
2186
- username?: string | null | undefined;
2187
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2188
- color?: {
2189
- background: string;
2190
- stroke: string;
2191
- } | undefined;
2192
- avatarUrl?: string | undefined;
2193
- id?: string | undefined;
2194
- socketId?: import("../types").SocketId | undefined;
2195
- isCurrentUser?: boolean | undefined;
2196
- isInCall?: boolean | undefined;
2197
- isSpeaking?: boolean | undefined;
2198
- isMuted?: boolean | undefined;
2199
- }>>;
1844
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2200
1845
  stats: {
2201
1846
  open: boolean;
2202
1847
  panels: number;
@@ -2209,7 +1854,7 @@ export declare const actionToggleLassoTool: {
2209
1854
  shown: true;
2210
1855
  data: import("../charts").Spreadsheet;
2211
1856
  };
2212
- showHyperlinkPopup: false | "editor" | "info";
1857
+ showHyperlinkPopup: false | "info" | "editor";
2213
1858
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2214
1859
  snapLines: readonly import("../snapping").SnapLine[];
2215
1860
  originSnapOffset: {
@@ -2220,16 +1865,16 @@ export declare const actionToggleLassoTool: {
2220
1865
  userToFollow: import("../types").UserToFollow | null;
2221
1866
  followedBy: Set<import("../types").SocketId>;
2222
1867
  isCropping: boolean;
2223
- croppingElementId: string | null;
1868
+ croppingElementId: ExcalidrawElement["id"] | null;
2224
1869
  searchMatches: Readonly<{
2225
- focusedId: string | null;
1870
+ focusedId: ExcalidrawElement["id"] | null;
2226
1871
  matches: readonly import("../types").SearchMatch[];
2227
1872
  }> | null;
2228
1873
  activeLockedId: string | null;
2229
1874
  lockedMultiSelections: {
2230
1875
  [groupId: string]: true;
2231
1876
  };
2232
- stylesPanelMode: "compact" | "full";
1877
+ bindMode: import("@excalidraw/element/types").BindMode;
2233
1878
  };
2234
1879
  captureUpdate: "NEVER";
2235
1880
  };
@@ -2244,7 +1889,7 @@ export declare const actionToggleHandTool: {
2244
1889
  };
2245
1890
  icon: import("react/jsx-runtime").JSX.Element;
2246
1891
  viewMode: false;
2247
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1892
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
2248
1893
  appState: {
2249
1894
  selectedElementIds: {};
2250
1895
  selectedGroupIds: {};
@@ -2261,14 +1906,14 @@ export declare const actionToggleHandTool: {
2261
1906
  } | null;
2262
1907
  showWelcomeScreen: boolean;
2263
1908
  isLoading: boolean;
2264
- errorMessage: import("react").ReactNode;
1909
+ errorMessage: React.ReactNode;
2265
1910
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2266
1911
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2267
1912
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2268
1913
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2269
1914
  isBindingEnabled: boolean;
2270
1915
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2271
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1916
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2272
1917
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2273
1918
  frameRendering: {
2274
1919
  enabled: boolean;
@@ -2279,6 +1924,10 @@ export declare const actionToggleHandTool: {
2279
1924
  editingFrame: string | null;
2280
1925
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2281
1926
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1927
+ preferredSelectionTool: {
1928
+ type: "selection" | "lasso";
1929
+ initialized: boolean;
1930
+ };
2282
1931
  penMode: boolean;
2283
1932
  penDetected: boolean;
2284
1933
  exportBackground: boolean;
@@ -2287,19 +1936,19 @@ export declare const actionToggleHandTool: {
2287
1936
  exportScale: number;
2288
1937
  currentItemStrokeColor: string;
2289
1938
  currentItemBackgroundColor: string;
2290
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1939
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
2291
1940
  currentItemStrokeWidth: number;
2292
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1941
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
2293
1942
  currentItemRoughness: number;
2294
1943
  currentItemOpacity: number;
2295
- currentItemFontFamily: number;
1944
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
2296
1945
  currentItemFontSize: number;
2297
- currentItemTextAlign: string;
1946
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
2298
1947
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2299
1948
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2300
- currentHoveredFontFamily: number | null;
1949
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
2301
1950
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2302
- currentItemArrowType: "round" | "sharp" | "elbow";
1951
+ currentItemArrowType: "sharp" | "round" | "elbow";
2303
1952
  viewBackgroundColor: string;
2304
1953
  scrollX: number;
2305
1954
  scrollY: number;
@@ -2308,26 +1957,26 @@ export declare const actionToggleHandTool: {
2308
1957
  name: string | null;
2309
1958
  isResizing: boolean;
2310
1959
  isRotating: boolean;
2311
- zoom: Readonly<{
2312
- value: import("../types").NormalizedZoomValue;
2313
- }>;
2314
- openMenu: "canvas" | "shape" | null;
2315
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1960
+ zoom: import("../types").Zoom;
1961
+ openMenu: "canvas" | null;
1962
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2316
1963
  openSidebar: {
2317
- name: string;
2318
- tab?: string | undefined;
1964
+ name: import("../types").SidebarName;
1965
+ tab?: import("../types").SidebarTabName;
2319
1966
  } | null;
2320
- openDialog: {
1967
+ openDialog: null | {
2321
1968
  name: "imageExport" | "help" | "jsonExport";
2322
1969
  } | {
2323
1970
  name: "ttd";
2324
- tab: "mermaid" | "text-to-diagram";
1971
+ tab: "text-to-diagram" | "mermaid";
2325
1972
  } | {
2326
1973
  name: "commandPalette";
1974
+ } | {
1975
+ name: "settings";
2327
1976
  } | {
2328
1977
  name: "elementLinkSelector";
2329
- sourceElementId: string;
2330
- } | null;
1978
+ sourceElementId: ExcalidrawElement["id"];
1979
+ };
2331
1980
  defaultSidebarDockedPreference: boolean;
2332
1981
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2333
1982
  hoveredElementIds: Readonly<{
@@ -2340,8 +1989,8 @@ export declare const actionToggleHandTool: {
2340
1989
  shouldCacheIgnoreZoom: boolean;
2341
1990
  toast: {
2342
1991
  message: string;
2343
- closable?: boolean | undefined;
2344
- duration?: number | undefined;
1992
+ closable?: boolean;
1993
+ duration?: number;
2345
1994
  } | null;
2346
1995
  zenModeEnabled: boolean;
2347
1996
  theme: import("@excalidraw/element/types").Theme;
@@ -2349,32 +1998,13 @@ export declare const actionToggleHandTool: {
2349
1998
  gridStep: number;
2350
1999
  gridModeEnabled: boolean;
2351
2000
  viewModeEnabled: boolean;
2352
- editingGroupId: string | null;
2001
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2353
2002
  width: number;
2354
2003
  height: number;
2355
2004
  offsetTop: number;
2356
2005
  offsetLeft: number;
2357
2006
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
2358
- collaborators: Map<import("../types").SocketId, Readonly<{
2359
- pointer?: import("../types").CollaboratorPointer | undefined;
2360
- button?: "up" | "down" | undefined;
2361
- selectedElementIds?: Readonly<{
2362
- [id: string]: true;
2363
- }> | undefined;
2364
- username?: string | null | undefined;
2365
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2366
- color?: {
2367
- background: string;
2368
- stroke: string;
2369
- } | undefined;
2370
- avatarUrl?: string | undefined;
2371
- id?: string | undefined;
2372
- socketId?: import("../types").SocketId | undefined;
2373
- isCurrentUser?: boolean | undefined;
2374
- isInCall?: boolean | undefined;
2375
- isSpeaking?: boolean | undefined;
2376
- isMuted?: boolean | undefined;
2377
- }>>;
2007
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2378
2008
  stats: {
2379
2009
  open: boolean;
2380
2010
  panels: number;
@@ -2387,7 +2017,7 @@ export declare const actionToggleHandTool: {
2387
2017
  shown: true;
2388
2018
  data: import("../charts").Spreadsheet;
2389
2019
  };
2390
- showHyperlinkPopup: false | "editor" | "info";
2020
+ showHyperlinkPopup: false | "info" | "editor";
2391
2021
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2392
2022
  snapLines: readonly import("../snapping").SnapLine[];
2393
2023
  originSnapOffset: {
@@ -2398,16 +2028,16 @@ export declare const actionToggleHandTool: {
2398
2028
  userToFollow: import("../types").UserToFollow | null;
2399
2029
  followedBy: Set<import("../types").SocketId>;
2400
2030
  isCropping: boolean;
2401
- croppingElementId: string | null;
2031
+ croppingElementId: ExcalidrawElement["id"] | null;
2402
2032
  searchMatches: Readonly<{
2403
- focusedId: string | null;
2033
+ focusedId: ExcalidrawElement["id"] | null;
2404
2034
  matches: readonly import("../types").SearchMatch[];
2405
2035
  }> | null;
2406
2036
  activeLockedId: string | null;
2407
2037
  lockedMultiSelections: {
2408
2038
  [groupId: string]: true;
2409
2039
  };
2410
- stylesPanelMode: "compact" | "full";
2040
+ bindMode: import("@excalidraw/element/types").BindMode;
2411
2041
  };
2412
2042
  captureUpdate: "IMMEDIATELY";
2413
2043
  };