@excalidraw/excalidraw 0.18.0-9036812b6 → 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 (546) 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-FRLWKCNE.js → chunk-PW6TXCLQ.js} +330 -476
  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-T2LJEHDP.js → image-2BHUUSLM.js} +3 -3
  11. package/dist/dev/index.css +1900 -774
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +11938 -7867
  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-53OPA26C.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 +33 -26
  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 -34
  207. package/dist/types/element/src/Scene.d.ts +9 -5
  208. package/dist/types/element/src/binding.d.ts +58 -44
  209. package/dist/types/element/src/bounds.d.ts +3 -11
  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/delta.d.ts +6 -3
  213. package/dist/types/element/src/dragElements.d.ts +3 -3
  214. package/dist/types/element/src/duplicate.d.ts +3 -3
  215. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  216. package/dist/types/element/src/frame.d.ts +5 -1
  217. package/dist/types/element/src/heading.d.ts +2 -1
  218. package/dist/types/element/src/image.d.ts +1 -11
  219. package/dist/types/element/src/index.d.ts +2 -3
  220. package/dist/types/element/src/linearElementEditor.d.ts +16 -20
  221. package/dist/types/element/src/mutateElement.d.ts +3 -1
  222. package/dist/types/element/src/newElement.d.ts +6 -6
  223. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  224. package/dist/types/element/src/renderElement.d.ts +4 -7
  225. package/dist/types/element/src/resizeElements.d.ts +10 -10
  226. package/dist/types/element/src/resizeTest.d.ts +6 -5
  227. package/dist/types/element/src/selection.d.ts +3 -7
  228. package/dist/types/element/src/shape.d.ts +8 -7
  229. package/dist/types/element/src/store.d.ts +6 -1
  230. package/dist/types/element/src/textElement.d.ts +1 -1
  231. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  232. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  233. package/dist/types/element/src/transformHandles.d.ts +8 -27
  234. package/dist/types/element/src/typeChecks.d.ts +4 -7
  235. package/dist/types/element/src/types.d.ts +7 -11
  236. package/dist/types/element/src/utils.d.ts +5 -2
  237. package/dist/types/element/src/zindex.d.ts +7 -1
  238. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +93 -136
  239. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  240. package/dist/types/excalidraw/actions/actionBoundText.d.ts +67 -96
  241. package/dist/types/excalidraw/actions/actionCanvas.d.ts +402 -758
  242. package/dist/types/excalidraw/actions/actionClipboard.d.ts +86 -856
  243. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +32 -47
  244. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +107 -156
  245. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  246. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
  247. package/dist/types/excalidraw/actions/actionElementLink.d.ts +28 -45
  248. package/dist/types/excalidraw/actions/actionElementLock.d.ts +66 -95
  249. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +33 -48
  250. package/dist/types/excalidraw/actions/actionExport.d.ts +144 -1104
  251. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -394
  252. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  253. package/dist/types/excalidraw/actions/actionFrame.d.ts +213 -308
  254. package/dist/types/excalidraw/actions/actionGroup.d.ts +70 -107
  255. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +123 -178
  256. package/dist/types/excalidraw/actions/actionLink.d.ts +30 -45
  257. package/dist/types/excalidraw/actions/actionMenu.d.ts +27 -410
  258. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -359
  259. package/dist/types/excalidraw/actions/actionProperties.d.ts +129 -2488
  260. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +35 -54
  261. package/dist/types/excalidraw/actions/actionStyles.d.ts +32 -47
  262. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  263. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +32 -47
  264. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +32 -47
  265. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +25 -42
  266. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  267. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +32 -47
  268. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +32 -47
  269. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +33 -48
  270. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  271. package/dist/types/excalidraw/actions/index.d.ts +2 -2
  272. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  273. package/dist/types/excalidraw/actions/types.d.ts +4 -4
  274. package/dist/types/excalidraw/appState.d.ts +12 -7
  275. package/dist/types/excalidraw/clipboard.d.ts +55 -16
  276. package/dist/types/excalidraw/components/Actions.d.ts +22 -5
  277. package/dist/types/excalidraw/components/App.d.ts +67 -65
  278. package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +1 -1
  279. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  280. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  281. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
  282. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
  283. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +2 -1
  284. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +2 -1
  285. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  286. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  287. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  288. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
  289. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  290. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  291. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  292. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  293. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  294. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  295. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +1 -2
  296. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  297. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  298. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  299. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +3 -1
  300. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  301. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  302. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  303. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  304. package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
  305. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  306. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  307. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  308. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  309. package/dist/types/excalidraw/components/LinkButton.d.ts +4 -0
  310. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  311. package/dist/types/excalidraw/components/MobileMenu.d.ts +3 -5
  312. package/dist/types/excalidraw/components/MobileToolBar.d.ts +10 -0
  313. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  314. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  315. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  316. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  317. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  318. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  319. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  320. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  321. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  322. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  323. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  324. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  325. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  326. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  327. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  328. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  329. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  330. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  331. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  332. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  333. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
  334. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  335. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
  336. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  337. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  338. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  339. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  340. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
  341. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  342. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  343. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
  344. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
  345. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
  346. package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +2 -3
  347. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  348. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
  349. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  350. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  351. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  352. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  353. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
  354. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  355. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  356. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  357. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  358. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  359. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  360. package/dist/types/excalidraw/components/ToolPopover.d.ts +25 -0
  361. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  362. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  363. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -32
  364. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +6 -5
  365. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  366. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +10 -18
  367. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +3 -3
  368. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  369. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  370. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  371. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  372. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  373. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  374. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  375. package/dist/types/excalidraw/components/icons.d.ts +26 -12
  376. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  377. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
  378. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +25 -30
  379. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  380. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  381. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  382. package/dist/types/excalidraw/data/blob.d.ts +324 -10
  383. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  384. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  385. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  386. package/dist/types/excalidraw/data/index.d.ts +3 -3
  387. package/dist/types/excalidraw/data/json.d.ts +159 -2
  388. package/dist/types/excalidraw/data/library.d.ts +24 -9
  389. package/dist/types/excalidraw/data/restore.d.ts +27 -7
  390. package/dist/types/excalidraw/data/types.d.ts +4 -1
  391. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  392. package/dist/types/excalidraw/errors.d.ts +14 -0
  393. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  394. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  395. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  396. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  397. package/dist/types/excalidraw/i18n.d.ts +2 -2
  398. package/dist/types/excalidraw/index.d.ts +6 -7
  399. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  400. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  401. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  402. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  403. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  404. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  405. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  406. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  407. package/dist/types/excalidraw/snapping.d.ts +5 -5
  408. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  409. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  410. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  411. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  412. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  413. package/dist/types/excalidraw/types.d.ts +32 -20
  414. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  415. package/dist/types/math/src/polygon.d.ts +2 -2
  416. package/dist/types/math/src/range.d.ts +1 -3
  417. package/dist/types/math/src/segment.d.ts +4 -3
  418. package/dist/types/utils/src/bbox.d.ts +1 -1
  419. package/dist/types/utils/src/export.d.ts +5 -5
  420. package/dist/types/utils/src/shape.d.ts +6 -6
  421. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  422. package/history.ts +1 -1
  423. package/package.json +7 -8
  424. package/dist/dev/chunk-FRLWKCNE.js.map +0 -7
  425. package/dist/dev/chunk-MFAYKRVR.js +0 -66
  426. package/dist/dev/chunk-MFAYKRVR.js.map +0 -7
  427. package/dist/dev/chunk-QF5FRM6O.js.map +0 -7
  428. package/dist/dev/locales/ar-SA-XORAP2EK.js.map +0 -7
  429. package/dist/dev/locales/az-AZ-NAUU3Z4Y.js.map +0 -7
  430. package/dist/dev/locales/bg-BG-AAABLFCY.js.map +0 -7
  431. package/dist/dev/locales/bn-BD-PM4AC5WG.js.map +0 -7
  432. package/dist/dev/locales/ca-ES-YNNMFRQX.js.map +0 -7
  433. package/dist/dev/locales/cs-CZ-DGZA5IKG.js.map +0 -7
  434. package/dist/dev/locales/da-DK-N76F4QAJ.js.map +0 -7
  435. package/dist/dev/locales/de-DE-DMRXZ2SZ.js.map +0 -7
  436. package/dist/dev/locales/el-GR-HIKPLEXI.js.map +0 -7
  437. package/dist/dev/locales/es-ES-AQYVXC32.js.map +0 -7
  438. package/dist/dev/locales/eu-ES-3TOEU5DE.js.map +0 -7
  439. package/dist/dev/locales/fa-IR-527GAKUP.js.map +0 -7
  440. package/dist/dev/locales/fi-FI-M3WLVDFP.js.map +0 -7
  441. package/dist/dev/locales/fr-FR-YE4VDJFI.js.map +0 -7
  442. package/dist/dev/locales/gl-ES-KMXUYGUN.js.map +0 -7
  443. package/dist/dev/locales/he-IL-4MU5N22B.js +0 -586
  444. package/dist/dev/locales/he-IL-4MU5N22B.js.map +0 -7
  445. package/dist/dev/locales/hi-IN-ZHZNZWFC.js +0 -586
  446. package/dist/dev/locales/hi-IN-ZHZNZWFC.js.map +0 -7
  447. package/dist/dev/locales/hu-HU-VIYZI3X4.js.map +0 -7
  448. package/dist/dev/locales/id-ID-22TWZNLA.js.map +0 -7
  449. package/dist/dev/locales/it-IT-MDEQ2SG3.js.map +0 -7
  450. package/dist/dev/locales/ja-JP-K2DI4W6B.js.map +0 -7
  451. package/dist/dev/locales/kaa-6BPSNM3R.js.map +0 -7
  452. package/dist/dev/locales/kab-KAB-2S7ZURK7.js.map +0 -7
  453. package/dist/dev/locales/kk-KZ-UJPYGRQQ.js.map +0 -7
  454. package/dist/dev/locales/km-KH-M5T5JKUE.js.map +0 -7
  455. package/dist/dev/locales/ko-KR-RQX37SNF.js.map +0 -7
  456. package/dist/dev/locales/ku-TR-5XJDIERL.js.map +0 -7
  457. package/dist/dev/locales/lt-LT-MGUBX6CA.js.map +0 -7
  458. package/dist/dev/locales/lv-LV-MD7N5VHD.js.map +0 -7
  459. package/dist/dev/locales/mr-IN-4XWMNGQC.js.map +0 -7
  460. package/dist/dev/locales/my-MM-O4Z74GN5.js.map +0 -7
  461. package/dist/dev/locales/nb-NO-BMB73KRH.js.map +0 -7
  462. package/dist/dev/locales/nl-NL-F2257BLQ.js.map +0 -7
  463. package/dist/dev/locales/nn-NO-NCORG7TS.js.map +0 -7
  464. package/dist/dev/locales/oc-FR-ATFBDMF6.js.map +0 -7
  465. package/dist/dev/locales/pa-IN-D2I375G4.js.map +0 -7
  466. package/dist/dev/locales/pl-PL-YJHOWAAW.js.map +0 -7
  467. package/dist/dev/locales/pt-BR-APOPYZJ7.js.map +0 -7
  468. package/dist/dev/locales/pt-PT-W56WCN7P.js +0 -586
  469. package/dist/dev/locales/pt-PT-W56WCN7P.js.map +0 -7
  470. package/dist/dev/locales/ro-RO-L575VRQA.js.map +0 -7
  471. package/dist/dev/locales/ru-RU-BLG6HZG5.js.map +0 -7
  472. package/dist/dev/locales/si-LK-KT7GGO6D.js.map +0 -7
  473. package/dist/dev/locales/sk-SK-DY6IPO5U.js.map +0 -7
  474. package/dist/dev/locales/sl-SI-5DZSRA47.js.map +0 -7
  475. package/dist/dev/locales/sv-SE-V32YHALQ.js.map +0 -7
  476. package/dist/dev/locales/ta-IN-5JRAGQAO.js.map +0 -7
  477. package/dist/dev/locales/th-TH-55ACRHDJ.js.map +0 -7
  478. package/dist/dev/locales/tr-TR-7QYBXDBO.js.map +0 -7
  479. package/dist/dev/locales/uk-UA-TJS2TMRH.js.map +0 -7
  480. package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js +0 -586
  481. package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js.map +0 -7
  482. package/dist/dev/locales/zh-CN-4MXUOFTH.js.map +0 -7
  483. package/dist/dev/locales/zh-HK-RBTGIU3U.js.map +0 -7
  484. package/dist/dev/locales/zh-TW-U5VF4CCU.js.map +0 -7
  485. package/dist/prod/chunk-I4UNSFV6.js +0 -12
  486. package/dist/prod/chunk-YZO7PSYQ.js +0 -4
  487. package/dist/prod/chunk-Z3N5DIM6.js +0 -1
  488. package/dist/prod/locales/ar-SA-G6X2FPQ2.js +0 -10
  489. package/dist/prod/locales/az-AZ-76LH7QW2.js +0 -1
  490. package/dist/prod/locales/bg-BG-XCXSNQG7.js +0 -5
  491. package/dist/prod/locales/bn-BD-2XOGV67Q.js +0 -5
  492. package/dist/prod/locales/ca-ES-6MX7JW3Y.js +0 -8
  493. package/dist/prod/locales/cs-CZ-2BRQDIVT.js +0 -11
  494. package/dist/prod/locales/da-DK-5WZEPLOC.js +0 -5
  495. package/dist/prod/locales/de-DE-XR44H4JA.js +0 -8
  496. package/dist/prod/locales/el-GR-BZB4AONW.js +0 -10
  497. package/dist/prod/locales/en-TYY6KWIJ.js +0 -1
  498. package/dist/prod/locales/es-ES-U4NZUMDT.js +0 -9
  499. package/dist/prod/locales/eu-ES-A7QVB2H4.js +0 -11
  500. package/dist/prod/locales/fa-IR-HGAKTJCU.js +0 -8
  501. package/dist/prod/locales/fi-FI-Z5N7JZ37.js +0 -6
  502. package/dist/prod/locales/fr-FR-RHASNOE6.js +0 -9
  503. package/dist/prod/locales/gl-ES-HMX3MZ6V.js +0 -10
  504. package/dist/prod/locales/he-IL-6SHJWFNN.js +0 -10
  505. package/dist/prod/locales/hi-IN-IWLTKZ5I.js +0 -4
  506. package/dist/prod/locales/hu-HU-A5ZG7DT2.js +0 -7
  507. package/dist/prod/locales/id-ID-SAP4L64H.js +0 -10
  508. package/dist/prod/locales/it-IT-JPQ66NNP.js +0 -11
  509. package/dist/prod/locales/ja-JP-DBVTYXUO.js +0 -8
  510. package/dist/prod/locales/kaa-6HZHGXH3.js +0 -1
  511. package/dist/prod/locales/kab-KAB-ZGHBKWFO.js +0 -8
  512. package/dist/prod/locales/kk-KZ-P5N5QNE5.js +0 -1
  513. package/dist/prod/locales/km-KH-HSX4SM5Z.js +0 -11
  514. package/dist/prod/locales/ko-KR-MTYHY66A.js +0 -9
  515. package/dist/prod/locales/ku-TR-6OUDTVRD.js +0 -9
  516. package/dist/prod/locales/lt-LT-XHIRWOB4.js +0 -3
  517. package/dist/prod/locales/lv-LV-5QDEKY6T.js +0 -7
  518. package/dist/prod/locales/mr-IN-CRQNXWMA.js +0 -13
  519. package/dist/prod/locales/my-MM-5M5IBNSE.js +0 -1
  520. package/dist/prod/locales/nb-NO-T6EIAALU.js +0 -10
  521. package/dist/prod/locales/nl-NL-IS3SIHDZ.js +0 -8
  522. package/dist/prod/locales/nn-NO-6E72VCQL.js +0 -8
  523. package/dist/prod/locales/oc-FR-POXYY2M6.js +0 -8
  524. package/dist/prod/locales/pa-IN-N4M65BXN.js +0 -4
  525. package/dist/prod/locales/percentages-BXMCSKIN.js +0 -1
  526. package/dist/prod/locales/pl-PL-T2D74RX3.js +0 -9
  527. package/dist/prod/locales/pt-BR-5N22H2LF.js +0 -9
  528. package/dist/prod/locales/pt-PT-UZXXM6DQ.js +0 -9
  529. package/dist/prod/locales/ro-RO-JPDTUUEW.js +0 -11
  530. package/dist/prod/locales/ru-RU-B4JR7IUQ.js +0 -9
  531. package/dist/prod/locales/si-LK-N5RQ5JYF.js +0 -1
  532. package/dist/prod/locales/sk-SK-C5VTKIMK.js +0 -6
  533. package/dist/prod/locales/sl-SI-NN7IZMDC.js +0 -6
  534. package/dist/prod/locales/sv-SE-XGPEYMSR.js +0 -10
  535. package/dist/prod/locales/ta-IN-2NMHFXQM.js +0 -9
  536. package/dist/prod/locales/th-TH-HPSO5L25.js +0 -2
  537. package/dist/prod/locales/tr-TR-DEFEU3FU.js +0 -7
  538. package/dist/prod/locales/uk-UA-QMV73CPH.js +0 -6
  539. package/dist/prod/locales/vi-VN-M7AON7JQ.js +0 -5
  540. package/dist/prod/locales/zh-CN-LNUGB5OW.js +0 -10
  541. package/dist/prod/locales/zh-HK-E62DVLB3.js +0 -1
  542. package/dist/prod/locales/zh-TW-RAJ6MFWO.js +0 -9
  543. /package/dist/dev/{chunk-CP5DND7P.js.map → chunk-Y3BTNZQY.js.map} +0 -0
  544. /package/dist/dev/data/{image-T2LJEHDP.js.map → image-2BHUUSLM.js.map} +0 -0
  545. /package/dist/dev/locales/{en-SMAPCEOQ.js.map → en-JRVQ7H6V.js.map} +0 -0
  546. /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 }: 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" | 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;
@@ -205,7 +180,7 @@ export declare const actionZoomIn: {
205
180
  trackEvent: {
206
181
  category: "canvas";
207
182
  };
208
- 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) => {
209
184
  appState: {
210
185
  userToFollow: null;
211
186
  scrollX: number;
@@ -220,10 +195,10 @@ export declare const actionZoomIn: {
220
195
  } | null;
221
196
  showWelcomeScreen: boolean;
222
197
  isLoading: boolean;
223
- errorMessage: import("react").ReactNode;
198
+ errorMessage: React.ReactNode;
224
199
  activeEmbeddable: {
225
200
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
226
- state: "active" | "hover";
201
+ state: "hover" | "active";
227
202
  } | null;
228
203
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
229
204
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -231,7 +206,7 @@ export declare const actionZoomIn: {
231
206
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
232
207
  isBindingEnabled: boolean;
233
208
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
234
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
209
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
235
210
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
236
211
  frameRendering: {
237
212
  enabled: boolean;
@@ -247,6 +222,10 @@ export declare const actionZoomIn: {
247
222
  locked: boolean;
248
223
  fromSelection: boolean;
249
224
  } & import("../types").ActiveTool;
225
+ preferredSelectionTool: {
226
+ type: "selection" | "lasso";
227
+ initialized: boolean;
228
+ };
250
229
  penMode: boolean;
251
230
  penDetected: boolean;
252
231
  exportBackground: boolean;
@@ -255,42 +234,44 @@ export declare const actionZoomIn: {
255
234
  exportScale: number;
256
235
  currentItemStrokeColor: string;
257
236
  currentItemBackgroundColor: string;
258
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
237
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
259
238
  currentItemStrokeWidth: number;
260
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
239
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
261
240
  currentItemRoughness: number;
262
241
  currentItemOpacity: number;
263
- currentItemFontFamily: number;
242
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
264
243
  currentItemFontSize: number;
265
- currentItemTextAlign: string;
244
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
266
245
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
267
246
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
268
- currentHoveredFontFamily: number | null;
247
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
269
248
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
270
- currentItemArrowType: "round" | "sharp" | "elbow";
249
+ currentItemArrowType: "sharp" | "round" | "elbow";
271
250
  viewBackgroundColor: string;
272
251
  cursorButton: "up" | "down";
273
252
  scrolledOutside: boolean;
274
253
  name: string | null;
275
254
  isResizing: boolean;
276
255
  isRotating: boolean;
277
- openMenu: "canvas" | "shape" | null;
278
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
256
+ openMenu: "canvas" | null;
257
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
279
258
  openSidebar: {
280
- name: string;
281
- tab?: string | undefined;
259
+ name: import("../types").SidebarName;
260
+ tab?: import("../types").SidebarTabName;
282
261
  } | null;
283
- openDialog: {
262
+ openDialog: null | {
284
263
  name: "imageExport" | "help" | "jsonExport";
285
264
  } | {
286
265
  name: "ttd";
287
- tab: "mermaid" | "text-to-diagram";
266
+ tab: "text-to-diagram" | "mermaid";
288
267
  } | {
289
268
  name: "commandPalette";
269
+ } | {
270
+ name: "settings";
290
271
  } | {
291
272
  name: "elementLinkSelector";
292
- sourceElementId: string;
293
- } | null;
273
+ sourceElementId: ExcalidrawElement["id"];
274
+ };
294
275
  defaultSidebarDockedPreference: boolean;
295
276
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
296
277
  selectedElementIds: Readonly<{
@@ -306,8 +287,8 @@ export declare const actionZoomIn: {
306
287
  shouldCacheIgnoreZoom: boolean;
307
288
  toast: {
308
289
  message: string;
309
- closable?: boolean | undefined;
310
- duration?: number | undefined;
290
+ closable?: boolean;
291
+ duration?: number;
311
292
  } | null;
312
293
  zenModeEnabled: boolean;
313
294
  theme: import("@excalidraw/element/types").Theme;
@@ -318,32 +299,13 @@ export declare const actionZoomIn: {
318
299
  selectedGroupIds: {
319
300
  [groupId: string]: boolean;
320
301
  };
321
- editingGroupId: string | null;
302
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
322
303
  width: number;
323
304
  height: number;
324
305
  offsetTop: number;
325
306
  offsetLeft: number;
326
307
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
327
- collaborators: Map<import("../types").SocketId, Readonly<{
328
- pointer?: import("../types").CollaboratorPointer | undefined;
329
- button?: "up" | "down" | undefined;
330
- selectedElementIds?: Readonly<{
331
- [id: string]: true;
332
- }> | undefined;
333
- username?: string | null | undefined;
334
- userState?: import("@excalidraw/common").UserIdleState | undefined;
335
- color?: {
336
- background: string;
337
- stroke: string;
338
- } | undefined;
339
- avatarUrl?: string | undefined;
340
- id?: string | undefined;
341
- socketId?: import("../types").SocketId | undefined;
342
- isCurrentUser?: boolean | undefined;
343
- isInCall?: boolean | undefined;
344
- isSpeaking?: boolean | undefined;
345
- isMuted?: boolean | undefined;
346
- }>>;
308
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
347
309
  stats: {
348
310
  open: boolean;
349
311
  panels: number;
@@ -356,7 +318,7 @@ export declare const actionZoomIn: {
356
318
  shown: true;
357
319
  data: import("../charts").Spreadsheet;
358
320
  };
359
- showHyperlinkPopup: false | "editor" | "info";
321
+ showHyperlinkPopup: false | "info" | "editor";
360
322
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
361
323
  snapLines: readonly import("../snapping").SnapLine[];
362
324
  originSnapOffset: {
@@ -366,15 +328,16 @@ export declare const actionZoomIn: {
366
328
  objectsSnapModeEnabled: boolean;
367
329
  followedBy: Set<import("../types").SocketId>;
368
330
  isCropping: boolean;
369
- croppingElementId: string | null;
331
+ croppingElementId: ExcalidrawElement["id"] | null;
370
332
  searchMatches: Readonly<{
371
- focusedId: string | null;
333
+ focusedId: ExcalidrawElement["id"] | null;
372
334
  matches: readonly import("../types").SearchMatch[];
373
335
  }> | null;
374
336
  activeLockedId: string | null;
375
337
  lockedMultiSelections: {
376
338
  [groupId: string]: true;
377
339
  };
340
+ bindMode: import("@excalidraw/element/types").BindMode;
378
341
  };
379
342
  captureUpdate: "EVENTUALLY";
380
343
  };
@@ -391,7 +354,7 @@ export declare const actionZoomOut: {
391
354
  trackEvent: {
392
355
  category: "canvas";
393
356
  };
394
- 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) => {
395
358
  appState: {
396
359
  userToFollow: null;
397
360
  scrollX: number;
@@ -406,10 +369,10 @@ export declare const actionZoomOut: {
406
369
  } | null;
407
370
  showWelcomeScreen: boolean;
408
371
  isLoading: boolean;
409
- errorMessage: import("react").ReactNode;
372
+ errorMessage: React.ReactNode;
410
373
  activeEmbeddable: {
411
374
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
412
- state: "active" | "hover";
375
+ state: "hover" | "active";
413
376
  } | null;
414
377
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
415
378
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -417,7 +380,7 @@ export declare const actionZoomOut: {
417
380
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
418
381
  isBindingEnabled: boolean;
419
382
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
420
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
383
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
421
384
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
422
385
  frameRendering: {
423
386
  enabled: boolean;
@@ -433,6 +396,10 @@ export declare const actionZoomOut: {
433
396
  locked: boolean;
434
397
  fromSelection: boolean;
435
398
  } & import("../types").ActiveTool;
399
+ preferredSelectionTool: {
400
+ type: "selection" | "lasso";
401
+ initialized: boolean;
402
+ };
436
403
  penMode: boolean;
437
404
  penDetected: boolean;
438
405
  exportBackground: boolean;
@@ -441,42 +408,44 @@ export declare const actionZoomOut: {
441
408
  exportScale: number;
442
409
  currentItemStrokeColor: string;
443
410
  currentItemBackgroundColor: string;
444
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
411
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
445
412
  currentItemStrokeWidth: number;
446
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
413
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
447
414
  currentItemRoughness: number;
448
415
  currentItemOpacity: number;
449
- currentItemFontFamily: number;
416
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
450
417
  currentItemFontSize: number;
451
- currentItemTextAlign: string;
418
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
452
419
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
453
420
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
454
- currentHoveredFontFamily: number | null;
421
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
455
422
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
456
- currentItemArrowType: "round" | "sharp" | "elbow";
423
+ currentItemArrowType: "sharp" | "round" | "elbow";
457
424
  viewBackgroundColor: string;
458
425
  cursorButton: "up" | "down";
459
426
  scrolledOutside: boolean;
460
427
  name: string | null;
461
428
  isResizing: boolean;
462
429
  isRotating: boolean;
463
- openMenu: "canvas" | "shape" | null;
464
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
430
+ openMenu: "canvas" | null;
431
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
465
432
  openSidebar: {
466
- name: string;
467
- tab?: string | undefined;
433
+ name: import("../types").SidebarName;
434
+ tab?: import("../types").SidebarTabName;
468
435
  } | null;
469
- openDialog: {
436
+ openDialog: null | {
470
437
  name: "imageExport" | "help" | "jsonExport";
471
438
  } | {
472
439
  name: "ttd";
473
- tab: "mermaid" | "text-to-diagram";
440
+ tab: "text-to-diagram" | "mermaid";
474
441
  } | {
475
442
  name: "commandPalette";
443
+ } | {
444
+ name: "settings";
476
445
  } | {
477
446
  name: "elementLinkSelector";
478
- sourceElementId: string;
479
- } | null;
447
+ sourceElementId: ExcalidrawElement["id"];
448
+ };
480
449
  defaultSidebarDockedPreference: boolean;
481
450
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
482
451
  selectedElementIds: Readonly<{
@@ -492,8 +461,8 @@ export declare const actionZoomOut: {
492
461
  shouldCacheIgnoreZoom: boolean;
493
462
  toast: {
494
463
  message: string;
495
- closable?: boolean | undefined;
496
- duration?: number | undefined;
464
+ closable?: boolean;
465
+ duration?: number;
497
466
  } | null;
498
467
  zenModeEnabled: boolean;
499
468
  theme: import("@excalidraw/element/types").Theme;
@@ -504,32 +473,13 @@ export declare const actionZoomOut: {
504
473
  selectedGroupIds: {
505
474
  [groupId: string]: boolean;
506
475
  };
507
- editingGroupId: string | null;
476
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
508
477
  width: number;
509
478
  height: number;
510
479
  offsetTop: number;
511
480
  offsetLeft: number;
512
481
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
513
- collaborators: Map<import("../types").SocketId, Readonly<{
514
- pointer?: import("../types").CollaboratorPointer | undefined;
515
- button?: "up" | "down" | undefined;
516
- selectedElementIds?: Readonly<{
517
- [id: string]: true;
518
- }> | undefined;
519
- username?: string | null | undefined;
520
- userState?: import("@excalidraw/common").UserIdleState | undefined;
521
- color?: {
522
- background: string;
523
- stroke: string;
524
- } | undefined;
525
- avatarUrl?: string | undefined;
526
- id?: string | undefined;
527
- socketId?: import("../types").SocketId | undefined;
528
- isCurrentUser?: boolean | undefined;
529
- isInCall?: boolean | undefined;
530
- isSpeaking?: boolean | undefined;
531
- isMuted?: boolean | undefined;
532
- }>>;
482
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
533
483
  stats: {
534
484
  open: boolean;
535
485
  panels: number;
@@ -542,7 +492,7 @@ export declare const actionZoomOut: {
542
492
  shown: true;
543
493
  data: import("../charts").Spreadsheet;
544
494
  };
545
- showHyperlinkPopup: false | "editor" | "info";
495
+ showHyperlinkPopup: false | "info" | "editor";
546
496
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
547
497
  snapLines: readonly import("../snapping").SnapLine[];
548
498
  originSnapOffset: {
@@ -552,15 +502,16 @@ export declare const actionZoomOut: {
552
502
  objectsSnapModeEnabled: boolean;
553
503
  followedBy: Set<import("../types").SocketId>;
554
504
  isCropping: boolean;
555
- croppingElementId: string | null;
505
+ croppingElementId: ExcalidrawElement["id"] | null;
556
506
  searchMatches: Readonly<{
557
- focusedId: string | null;
507
+ focusedId: ExcalidrawElement["id"] | null;
558
508
  matches: readonly import("../types").SearchMatch[];
559
509
  }> | null;
560
510
  activeLockedId: string | null;
561
511
  lockedMultiSelections: {
562
512
  [groupId: string]: true;
563
513
  };
514
+ bindMode: import("@excalidraw/element/types").BindMode;
564
515
  };
565
516
  captureUpdate: "EVENTUALLY";
566
517
  };
@@ -577,7 +528,7 @@ export declare const actionResetZoom: {
577
528
  trackEvent: {
578
529
  category: "canvas";
579
530
  };
580
- 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) => {
581
532
  appState: {
582
533
  userToFollow: null;
583
534
  scrollX: number;
@@ -592,10 +543,10 @@ export declare const actionResetZoom: {
592
543
  } | null;
593
544
  showWelcomeScreen: boolean;
594
545
  isLoading: boolean;
595
- errorMessage: import("react").ReactNode;
546
+ errorMessage: React.ReactNode;
596
547
  activeEmbeddable: {
597
548
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
598
- state: "active" | "hover";
549
+ state: "hover" | "active";
599
550
  } | null;
600
551
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
601
552
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -603,7 +554,7 @@ export declare const actionResetZoom: {
603
554
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
604
555
  isBindingEnabled: boolean;
605
556
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
606
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
557
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
607
558
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
608
559
  frameRendering: {
609
560
  enabled: boolean;
@@ -619,6 +570,10 @@ export declare const actionResetZoom: {
619
570
  locked: boolean;
620
571
  fromSelection: boolean;
621
572
  } & import("../types").ActiveTool;
573
+ preferredSelectionTool: {
574
+ type: "selection" | "lasso";
575
+ initialized: boolean;
576
+ };
622
577
  penMode: boolean;
623
578
  penDetected: boolean;
624
579
  exportBackground: boolean;
@@ -627,42 +582,44 @@ export declare const actionResetZoom: {
627
582
  exportScale: number;
628
583
  currentItemStrokeColor: string;
629
584
  currentItemBackgroundColor: string;
630
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
585
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
631
586
  currentItemStrokeWidth: number;
632
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
587
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
633
588
  currentItemRoughness: number;
634
589
  currentItemOpacity: number;
635
- currentItemFontFamily: number;
590
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
636
591
  currentItemFontSize: number;
637
- currentItemTextAlign: string;
592
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
638
593
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
639
594
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
640
- currentHoveredFontFamily: number | null;
595
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
641
596
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
642
- currentItemArrowType: "round" | "sharp" | "elbow";
597
+ currentItemArrowType: "sharp" | "round" | "elbow";
643
598
  viewBackgroundColor: string;
644
599
  cursorButton: "up" | "down";
645
600
  scrolledOutside: boolean;
646
601
  name: string | null;
647
602
  isResizing: boolean;
648
603
  isRotating: boolean;
649
- openMenu: "canvas" | "shape" | null;
650
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
604
+ openMenu: "canvas" | null;
605
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
651
606
  openSidebar: {
652
- name: string;
653
- tab?: string | undefined;
607
+ name: import("../types").SidebarName;
608
+ tab?: import("../types").SidebarTabName;
654
609
  } | null;
655
- openDialog: {
610
+ openDialog: null | {
656
611
  name: "imageExport" | "help" | "jsonExport";
657
612
  } | {
658
613
  name: "ttd";
659
- tab: "mermaid" | "text-to-diagram";
614
+ tab: "text-to-diagram" | "mermaid";
660
615
  } | {
661
616
  name: "commandPalette";
617
+ } | {
618
+ name: "settings";
662
619
  } | {
663
620
  name: "elementLinkSelector";
664
- sourceElementId: string;
665
- } | null;
621
+ sourceElementId: ExcalidrawElement["id"];
622
+ };
666
623
  defaultSidebarDockedPreference: boolean;
667
624
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
668
625
  selectedElementIds: Readonly<{
@@ -678,8 +635,8 @@ export declare const actionResetZoom: {
678
635
  shouldCacheIgnoreZoom: boolean;
679
636
  toast: {
680
637
  message: string;
681
- closable?: boolean | undefined;
682
- duration?: number | undefined;
638
+ closable?: boolean;
639
+ duration?: number;
683
640
  } | null;
684
641
  zenModeEnabled: boolean;
685
642
  theme: import("@excalidraw/element/types").Theme;
@@ -690,32 +647,13 @@ export declare const actionResetZoom: {
690
647
  selectedGroupIds: {
691
648
  [groupId: string]: boolean;
692
649
  };
693
- editingGroupId: string | null;
650
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
694
651
  width: number;
695
652
  height: number;
696
653
  offsetTop: number;
697
654
  offsetLeft: number;
698
655
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
699
- collaborators: Map<import("../types").SocketId, Readonly<{
700
- pointer?: import("../types").CollaboratorPointer | undefined;
701
- button?: "up" | "down" | undefined;
702
- selectedElementIds?: Readonly<{
703
- [id: string]: true;
704
- }> | undefined;
705
- username?: string | null | undefined;
706
- userState?: import("@excalidraw/common").UserIdleState | undefined;
707
- color?: {
708
- background: string;
709
- stroke: string;
710
- } | undefined;
711
- avatarUrl?: string | undefined;
712
- id?: string | undefined;
713
- socketId?: import("../types").SocketId | undefined;
714
- isCurrentUser?: boolean | undefined;
715
- isInCall?: boolean | undefined;
716
- isSpeaking?: boolean | undefined;
717
- isMuted?: boolean | undefined;
718
- }>>;
656
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
719
657
  stats: {
720
658
  open: boolean;
721
659
  panels: number;
@@ -728,7 +666,7 @@ export declare const actionResetZoom: {
728
666
  shown: true;
729
667
  data: import("../charts").Spreadsheet;
730
668
  };
731
- showHyperlinkPopup: false | "editor" | "info";
669
+ showHyperlinkPopup: false | "info" | "editor";
732
670
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
733
671
  snapLines: readonly import("../snapping").SnapLine[];
734
672
  originSnapOffset: {
@@ -738,15 +676,16 @@ export declare const actionResetZoom: {
738
676
  objectsSnapModeEnabled: boolean;
739
677
  followedBy: Set<import("../types").SocketId>;
740
678
  isCropping: boolean;
741
- croppingElementId: string | null;
679
+ croppingElementId: ExcalidrawElement["id"] | null;
742
680
  searchMatches: Readonly<{
743
- focusedId: string | null;
681
+ focusedId: ExcalidrawElement["id"] | null;
744
682
  matches: readonly import("../types").SearchMatch[];
745
683
  }> | null;
746
684
  activeLockedId: string | null;
747
685
  lockedMultiSelections: {
748
686
  [groupId: string]: true;
749
687
  };
688
+ bindMode: import("@excalidraw/element/types").BindMode;
750
689
  };
751
690
  captureUpdate: "EVENTUALLY";
752
691
  };
@@ -757,19 +696,14 @@ export declare const actionResetZoom: {
757
696
  };
758
697
  export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
759
698
  bounds: SceneBounds;
760
- canvasOffsets?: Partial<{
761
- top: number;
762
- right: number;
763
- bottom: number;
764
- left: number;
765
- }> | undefined;
699
+ canvasOffsets?: Offsets;
766
700
  appState: Readonly<AppState>;
767
701
  /** whether to fit content to viewport (beyond >100%) */
768
702
  fitToViewport: boolean;
769
703
  /** zoom content to cover X of the viewport, when fitToViewport=true */
770
- viewportZoomFactor?: number | undefined;
771
- minZoom?: number | undefined;
772
- maxZoom?: number | undefined;
704
+ viewportZoomFactor?: number;
705
+ minZoom?: number;
706
+ maxZoom?: number;
773
707
  }) => {
774
708
  appState: {
775
709
  scrollX: number;
@@ -784,10 +718,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
784
718
  } | null;
785
719
  showWelcomeScreen: boolean;
786
720
  isLoading: boolean;
787
- errorMessage: import("react").ReactNode;
721
+ errorMessage: React.ReactNode;
788
722
  activeEmbeddable: {
789
723
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
790
- state: "active" | "hover";
724
+ state: "hover" | "active";
791
725
  } | null;
792
726
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
793
727
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -795,7 +729,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
795
729
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
796
730
  isBindingEnabled: boolean;
797
731
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
798
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
732
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
799
733
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
800
734
  frameRendering: {
801
735
  enabled: boolean;
@@ -811,6 +745,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
811
745
  locked: boolean;
812
746
  fromSelection: boolean;
813
747
  } & import("../types").ActiveTool;
748
+ preferredSelectionTool: {
749
+ type: "selection" | "lasso";
750
+ initialized: boolean;
751
+ };
814
752
  penMode: boolean;
815
753
  penDetected: boolean;
816
754
  exportBackground: boolean;
@@ -819,42 +757,44 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
819
757
  exportScale: number;
820
758
  currentItemStrokeColor: string;
821
759
  currentItemBackgroundColor: string;
822
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
760
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
823
761
  currentItemStrokeWidth: number;
824
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
762
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
825
763
  currentItemRoughness: number;
826
764
  currentItemOpacity: number;
827
- currentItemFontFamily: number;
765
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
828
766
  currentItemFontSize: number;
829
- currentItemTextAlign: string;
767
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
830
768
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
831
769
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
832
- currentHoveredFontFamily: number | null;
770
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
833
771
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
834
- currentItemArrowType: "round" | "sharp" | "elbow";
772
+ currentItemArrowType: "sharp" | "round" | "elbow";
835
773
  viewBackgroundColor: string;
836
774
  cursorButton: "up" | "down";
837
775
  scrolledOutside: boolean;
838
776
  name: string | null;
839
777
  isResizing: boolean;
840
778
  isRotating: boolean;
841
- openMenu: "canvas" | "shape" | null;
842
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
779
+ openMenu: "canvas" | null;
780
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
843
781
  openSidebar: {
844
- name: string;
845
- tab?: string | undefined;
782
+ name: import("../types").SidebarName;
783
+ tab?: import("../types").SidebarTabName;
846
784
  } | null;
847
- openDialog: {
785
+ openDialog: null | {
848
786
  name: "imageExport" | "help" | "jsonExport";
849
787
  } | {
850
788
  name: "ttd";
851
- tab: "mermaid" | "text-to-diagram";
789
+ tab: "text-to-diagram" | "mermaid";
852
790
  } | {
853
791
  name: "commandPalette";
792
+ } | {
793
+ name: "settings";
854
794
  } | {
855
795
  name: "elementLinkSelector";
856
- sourceElementId: string;
857
- } | null;
796
+ sourceElementId: ExcalidrawElement["id"];
797
+ };
858
798
  defaultSidebarDockedPreference: boolean;
859
799
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
860
800
  selectedElementIds: Readonly<{
@@ -870,8 +810,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
870
810
  shouldCacheIgnoreZoom: boolean;
871
811
  toast: {
872
812
  message: string;
873
- closable?: boolean | undefined;
874
- duration?: number | undefined;
813
+ closable?: boolean;
814
+ duration?: number;
875
815
  } | null;
876
816
  zenModeEnabled: boolean;
877
817
  theme: import("@excalidraw/element/types").Theme;
@@ -882,32 +822,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
882
822
  selectedGroupIds: {
883
823
  [groupId: string]: boolean;
884
824
  };
885
- editingGroupId: string | null;
825
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
886
826
  width: number;
887
827
  height: number;
888
828
  offsetTop: number;
889
829
  offsetLeft: number;
890
830
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
891
- collaborators: Map<import("../types").SocketId, Readonly<{
892
- pointer?: import("../types").CollaboratorPointer | undefined;
893
- button?: "up" | "down" | undefined;
894
- selectedElementIds?: Readonly<{
895
- [id: string]: true;
896
- }> | undefined;
897
- username?: string | null | undefined;
898
- userState?: import("@excalidraw/common").UserIdleState | undefined;
899
- color?: {
900
- background: string;
901
- stroke: string;
902
- } | undefined;
903
- avatarUrl?: string | undefined;
904
- id?: string | undefined;
905
- socketId?: import("../types").SocketId | undefined;
906
- isCurrentUser?: boolean | undefined;
907
- isInCall?: boolean | undefined;
908
- isSpeaking?: boolean | undefined;
909
- isMuted?: boolean | undefined;
910
- }>>;
831
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
911
832
  stats: {
912
833
  open: boolean;
913
834
  panels: number;
@@ -920,7 +841,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
920
841
  shown: true;
921
842
  data: import("../charts").Spreadsheet;
922
843
  };
923
- showHyperlinkPopup: false | "editor" | "info";
844
+ showHyperlinkPopup: false | "info" | "editor";
924
845
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
925
846
  snapLines: readonly import("../snapping").SnapLine[];
926
847
  originSnapOffset: {
@@ -931,33 +852,29 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
931
852
  userToFollow: import("../types").UserToFollow | null;
932
853
  followedBy: Set<import("../types").SocketId>;
933
854
  isCropping: boolean;
934
- croppingElementId: string | null;
855
+ croppingElementId: ExcalidrawElement["id"] | null;
935
856
  searchMatches: Readonly<{
936
- focusedId: string | null;
857
+ focusedId: ExcalidrawElement["id"] | null;
937
858
  matches: readonly import("../types").SearchMatch[];
938
859
  }> | null;
939
860
  activeLockedId: string | null;
940
861
  lockedMultiSelections: {
941
862
  [groupId: string]: true;
942
863
  };
864
+ bindMode: import("@excalidraw/element/types").BindMode;
943
865
  };
944
866
  captureUpdate: "EVENTUALLY";
945
867
  };
946
868
  export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
947
- canvasOffsets?: Partial<{
948
- top: number;
949
- right: number;
950
- bottom: number;
951
- left: number;
952
- }> | undefined;
869
+ canvasOffsets?: Offsets;
953
870
  targetElements: readonly ExcalidrawElement[];
954
871
  appState: Readonly<AppState>;
955
872
  /** whether to fit content to viewport (beyond >100%) */
956
873
  fitToViewport: boolean;
957
874
  /** zoom content to cover X of the viewport, when fitToViewport=true */
958
- viewportZoomFactor?: number | undefined;
959
- minZoom?: number | undefined;
960
- maxZoom?: number | undefined;
875
+ viewportZoomFactor?: number;
876
+ minZoom?: number;
877
+ maxZoom?: number;
961
878
  }) => {
962
879
  appState: {
963
880
  scrollX: number;
@@ -972,10 +889,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
972
889
  } | null;
973
890
  showWelcomeScreen: boolean;
974
891
  isLoading: boolean;
975
- errorMessage: import("react").ReactNode;
892
+ errorMessage: React.ReactNode;
976
893
  activeEmbeddable: {
977
894
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
978
- state: "active" | "hover";
895
+ state: "hover" | "active";
979
896
  } | null;
980
897
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
981
898
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -983,7 +900,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
983
900
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
984
901
  isBindingEnabled: boolean;
985
902
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
986
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
903
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
987
904
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
988
905
  frameRendering: {
989
906
  enabled: boolean;
@@ -999,6 +916,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
999
916
  locked: boolean;
1000
917
  fromSelection: boolean;
1001
918
  } & import("../types").ActiveTool;
919
+ preferredSelectionTool: {
920
+ type: "selection" | "lasso";
921
+ initialized: boolean;
922
+ };
1002
923
  penMode: boolean;
1003
924
  penDetected: boolean;
1004
925
  exportBackground: boolean;
@@ -1007,42 +928,44 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1007
928
  exportScale: number;
1008
929
  currentItemStrokeColor: string;
1009
930
  currentItemBackgroundColor: string;
1010
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
931
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1011
932
  currentItemStrokeWidth: number;
1012
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
933
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1013
934
  currentItemRoughness: number;
1014
935
  currentItemOpacity: number;
1015
- currentItemFontFamily: number;
936
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1016
937
  currentItemFontSize: number;
1017
- currentItemTextAlign: string;
938
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1018
939
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1019
940
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1020
- currentHoveredFontFamily: number | null;
941
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1021
942
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1022
- currentItemArrowType: "round" | "sharp" | "elbow";
943
+ currentItemArrowType: "sharp" | "round" | "elbow";
1023
944
  viewBackgroundColor: string;
1024
945
  cursorButton: "up" | "down";
1025
946
  scrolledOutside: boolean;
1026
947
  name: string | null;
1027
948
  isResizing: boolean;
1028
949
  isRotating: boolean;
1029
- openMenu: "canvas" | "shape" | null;
1030
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
950
+ openMenu: "canvas" | null;
951
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1031
952
  openSidebar: {
1032
- name: string;
1033
- tab?: string | undefined;
953
+ name: import("../types").SidebarName;
954
+ tab?: import("../types").SidebarTabName;
1034
955
  } | null;
1035
- openDialog: {
956
+ openDialog: null | {
1036
957
  name: "imageExport" | "help" | "jsonExport";
1037
958
  } | {
1038
959
  name: "ttd";
1039
- tab: "mermaid" | "text-to-diagram";
960
+ tab: "text-to-diagram" | "mermaid";
1040
961
  } | {
1041
962
  name: "commandPalette";
963
+ } | {
964
+ name: "settings";
1042
965
  } | {
1043
966
  name: "elementLinkSelector";
1044
- sourceElementId: string;
1045
- } | null;
967
+ sourceElementId: ExcalidrawElement["id"];
968
+ };
1046
969
  defaultSidebarDockedPreference: boolean;
1047
970
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1048
971
  selectedElementIds: Readonly<{
@@ -1058,8 +981,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1058
981
  shouldCacheIgnoreZoom: boolean;
1059
982
  toast: {
1060
983
  message: string;
1061
- closable?: boolean | undefined;
1062
- duration?: number | undefined;
984
+ closable?: boolean;
985
+ duration?: number;
1063
986
  } | null;
1064
987
  zenModeEnabled: boolean;
1065
988
  theme: import("@excalidraw/element/types").Theme;
@@ -1070,32 +993,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1070
993
  selectedGroupIds: {
1071
994
  [groupId: string]: boolean;
1072
995
  };
1073
- editingGroupId: string | null;
996
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1074
997
  width: number;
1075
998
  height: number;
1076
999
  offsetTop: number;
1077
1000
  offsetLeft: number;
1078
1001
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1079
- collaborators: Map<import("../types").SocketId, Readonly<{
1080
- pointer?: import("../types").CollaboratorPointer | undefined;
1081
- button?: "up" | "down" | undefined;
1082
- selectedElementIds?: Readonly<{
1083
- [id: string]: true;
1084
- }> | undefined;
1085
- username?: string | null | undefined;
1086
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1087
- color?: {
1088
- background: string;
1089
- stroke: string;
1090
- } | undefined;
1091
- avatarUrl?: string | undefined;
1092
- id?: string | undefined;
1093
- socketId?: import("../types").SocketId | undefined;
1094
- isCurrentUser?: boolean | undefined;
1095
- isInCall?: boolean | undefined;
1096
- isSpeaking?: boolean | undefined;
1097
- isMuted?: boolean | undefined;
1098
- }>>;
1002
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1099
1003
  stats: {
1100
1004
  open: boolean;
1101
1005
  panels: number;
@@ -1108,7 +1012,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1108
1012
  shown: true;
1109
1013
  data: import("../charts").Spreadsheet;
1110
1014
  };
1111
- showHyperlinkPopup: false | "editor" | "info";
1015
+ showHyperlinkPopup: false | "info" | "editor";
1112
1016
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1113
1017
  snapLines: readonly import("../snapping").SnapLine[];
1114
1018
  originSnapOffset: {
@@ -1119,15 +1023,16 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
1119
1023
  userToFollow: import("../types").UserToFollow | null;
1120
1024
  followedBy: Set<import("../types").SocketId>;
1121
1025
  isCropping: boolean;
1122
- croppingElementId: string | null;
1026
+ croppingElementId: ExcalidrawElement["id"] | null;
1123
1027
  searchMatches: Readonly<{
1124
- focusedId: string | null;
1028
+ focusedId: ExcalidrawElement["id"] | null;
1125
1029
  matches: readonly import("../types").SearchMatch[];
1126
1030
  }> | null;
1127
1031
  activeLockedId: string | null;
1128
1032
  lockedMultiSelections: {
1129
1033
  [groupId: string]: true;
1130
1034
  };
1035
+ bindMode: import("@excalidraw/element/types").BindMode;
1131
1036
  };
1132
1037
  captureUpdate: "EVENTUALLY";
1133
1038
  };
@@ -1138,7 +1043,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1138
1043
  trackEvent: {
1139
1044
  category: "canvas";
1140
1045
  };
1141
- 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) => {
1142
1047
  appState: {
1143
1048
  scrollX: number;
1144
1049
  scrollY: number;
@@ -1152,10 +1057,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1152
1057
  } | null;
1153
1058
  showWelcomeScreen: boolean;
1154
1059
  isLoading: boolean;
1155
- errorMessage: import("react").ReactNode;
1060
+ errorMessage: React.ReactNode;
1156
1061
  activeEmbeddable: {
1157
1062
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1158
- state: "active" | "hover";
1063
+ state: "hover" | "active";
1159
1064
  } | null;
1160
1065
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1161
1066
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1163,7 +1068,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1163
1068
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1164
1069
  isBindingEnabled: boolean;
1165
1070
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1166
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1071
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1167
1072
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1168
1073
  frameRendering: {
1169
1074
  enabled: boolean;
@@ -1179,6 +1084,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1179
1084
  locked: boolean;
1180
1085
  fromSelection: boolean;
1181
1086
  } & import("../types").ActiveTool;
1087
+ preferredSelectionTool: {
1088
+ type: "selection" | "lasso";
1089
+ initialized: boolean;
1090
+ };
1182
1091
  penMode: boolean;
1183
1092
  penDetected: boolean;
1184
1093
  exportBackground: boolean;
@@ -1187,42 +1096,44 @@ export declare const actionZoomToFitSelectionInViewport: {
1187
1096
  exportScale: number;
1188
1097
  currentItemStrokeColor: string;
1189
1098
  currentItemBackgroundColor: string;
1190
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1099
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1191
1100
  currentItemStrokeWidth: number;
1192
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1101
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1193
1102
  currentItemRoughness: number;
1194
1103
  currentItemOpacity: number;
1195
- currentItemFontFamily: number;
1104
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1196
1105
  currentItemFontSize: number;
1197
- currentItemTextAlign: string;
1106
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1198
1107
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1199
1108
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1200
- currentHoveredFontFamily: number | null;
1109
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1201
1110
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1202
- currentItemArrowType: "round" | "sharp" | "elbow";
1111
+ currentItemArrowType: "sharp" | "round" | "elbow";
1203
1112
  viewBackgroundColor: string;
1204
1113
  cursorButton: "up" | "down";
1205
1114
  scrolledOutside: boolean;
1206
1115
  name: string | null;
1207
1116
  isResizing: boolean;
1208
1117
  isRotating: boolean;
1209
- openMenu: "canvas" | "shape" | null;
1210
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1118
+ openMenu: "canvas" | null;
1119
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1211
1120
  openSidebar: {
1212
- name: string;
1213
- tab?: string | undefined;
1121
+ name: import("../types").SidebarName;
1122
+ tab?: import("../types").SidebarTabName;
1214
1123
  } | null;
1215
- openDialog: {
1124
+ openDialog: null | {
1216
1125
  name: "imageExport" | "help" | "jsonExport";
1217
1126
  } | {
1218
1127
  name: "ttd";
1219
- tab: "mermaid" | "text-to-diagram";
1128
+ tab: "text-to-diagram" | "mermaid";
1220
1129
  } | {
1221
1130
  name: "commandPalette";
1131
+ } | {
1132
+ name: "settings";
1222
1133
  } | {
1223
1134
  name: "elementLinkSelector";
1224
- sourceElementId: string;
1225
- } | null;
1135
+ sourceElementId: ExcalidrawElement["id"];
1136
+ };
1226
1137
  defaultSidebarDockedPreference: boolean;
1227
1138
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1228
1139
  selectedElementIds: Readonly<{
@@ -1238,8 +1149,8 @@ export declare const actionZoomToFitSelectionInViewport: {
1238
1149
  shouldCacheIgnoreZoom: boolean;
1239
1150
  toast: {
1240
1151
  message: string;
1241
- closable?: boolean | undefined;
1242
- duration?: number | undefined;
1152
+ closable?: boolean;
1153
+ duration?: number;
1243
1154
  } | null;
1244
1155
  zenModeEnabled: boolean;
1245
1156
  theme: import("@excalidraw/element/types").Theme;
@@ -1250,32 +1161,13 @@ export declare const actionZoomToFitSelectionInViewport: {
1250
1161
  selectedGroupIds: {
1251
1162
  [groupId: string]: boolean;
1252
1163
  };
1253
- editingGroupId: string | null;
1164
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1254
1165
  width: number;
1255
1166
  height: number;
1256
1167
  offsetTop: number;
1257
1168
  offsetLeft: number;
1258
1169
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1259
- collaborators: Map<import("../types").SocketId, Readonly<{
1260
- pointer?: import("../types").CollaboratorPointer | undefined;
1261
- button?: "up" | "down" | undefined;
1262
- selectedElementIds?: Readonly<{
1263
- [id: string]: true;
1264
- }> | undefined;
1265
- username?: string | null | undefined;
1266
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1267
- color?: {
1268
- background: string;
1269
- stroke: string;
1270
- } | undefined;
1271
- avatarUrl?: string | undefined;
1272
- id?: string | undefined;
1273
- socketId?: import("../types").SocketId | undefined;
1274
- isCurrentUser?: boolean | undefined;
1275
- isInCall?: boolean | undefined;
1276
- isSpeaking?: boolean | undefined;
1277
- isMuted?: boolean | undefined;
1278
- }>>;
1170
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1279
1171
  stats: {
1280
1172
  open: boolean;
1281
1173
  panels: number;
@@ -1288,7 +1180,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1288
1180
  shown: true;
1289
1181
  data: import("../charts").Spreadsheet;
1290
1182
  };
1291
- showHyperlinkPopup: false | "editor" | "info";
1183
+ showHyperlinkPopup: false | "info" | "editor";
1292
1184
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1293
1185
  snapLines: readonly import("../snapping").SnapLine[];
1294
1186
  originSnapOffset: {
@@ -1299,15 +1191,16 @@ export declare const actionZoomToFitSelectionInViewport: {
1299
1191
  userToFollow: import("../types").UserToFollow | null;
1300
1192
  followedBy: Set<import("../types").SocketId>;
1301
1193
  isCropping: boolean;
1302
- croppingElementId: string | null;
1194
+ croppingElementId: ExcalidrawElement["id"] | null;
1303
1195
  searchMatches: Readonly<{
1304
- focusedId: string | null;
1196
+ focusedId: ExcalidrawElement["id"] | null;
1305
1197
  matches: readonly import("../types").SearchMatch[];
1306
1198
  }> | null;
1307
1199
  activeLockedId: string | null;
1308
1200
  lockedMultiSelections: {
1309
1201
  [groupId: string]: true;
1310
1202
  };
1203
+ bindMode: import("@excalidraw/element/types").BindMode;
1311
1204
  };
1312
1205
  captureUpdate: "EVENTUALLY";
1313
1206
  };
@@ -1322,7 +1215,7 @@ export declare const actionZoomToFitSelection: {
1322
1215
  trackEvent: {
1323
1216
  category: "canvas";
1324
1217
  };
1325
- 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) => {
1326
1219
  appState: {
1327
1220
  scrollX: number;
1328
1221
  scrollY: number;
@@ -1336,10 +1229,10 @@ export declare const actionZoomToFitSelection: {
1336
1229
  } | null;
1337
1230
  showWelcomeScreen: boolean;
1338
1231
  isLoading: boolean;
1339
- errorMessage: import("react").ReactNode;
1232
+ errorMessage: React.ReactNode;
1340
1233
  activeEmbeddable: {
1341
1234
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1342
- state: "active" | "hover";
1235
+ state: "hover" | "active";
1343
1236
  } | null;
1344
1237
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1345
1238
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1347,7 +1240,7 @@ export declare const actionZoomToFitSelection: {
1347
1240
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1348
1241
  isBindingEnabled: boolean;
1349
1242
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1350
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1243
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1351
1244
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1352
1245
  frameRendering: {
1353
1246
  enabled: boolean;
@@ -1363,6 +1256,10 @@ export declare const actionZoomToFitSelection: {
1363
1256
  locked: boolean;
1364
1257
  fromSelection: boolean;
1365
1258
  } & import("../types").ActiveTool;
1259
+ preferredSelectionTool: {
1260
+ type: "selection" | "lasso";
1261
+ initialized: boolean;
1262
+ };
1366
1263
  penMode: boolean;
1367
1264
  penDetected: boolean;
1368
1265
  exportBackground: boolean;
@@ -1371,42 +1268,44 @@ export declare const actionZoomToFitSelection: {
1371
1268
  exportScale: number;
1372
1269
  currentItemStrokeColor: string;
1373
1270
  currentItemBackgroundColor: string;
1374
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1271
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1375
1272
  currentItemStrokeWidth: number;
1376
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1273
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1377
1274
  currentItemRoughness: number;
1378
1275
  currentItemOpacity: number;
1379
- currentItemFontFamily: number;
1276
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1380
1277
  currentItemFontSize: number;
1381
- currentItemTextAlign: string;
1278
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1382
1279
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1383
1280
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1384
- currentHoveredFontFamily: number | null;
1281
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1385
1282
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1386
- currentItemArrowType: "round" | "sharp" | "elbow";
1283
+ currentItemArrowType: "sharp" | "round" | "elbow";
1387
1284
  viewBackgroundColor: string;
1388
1285
  cursorButton: "up" | "down";
1389
1286
  scrolledOutside: boolean;
1390
1287
  name: string | null;
1391
1288
  isResizing: boolean;
1392
1289
  isRotating: boolean;
1393
- openMenu: "canvas" | "shape" | null;
1394
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1290
+ openMenu: "canvas" | null;
1291
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1395
1292
  openSidebar: {
1396
- name: string;
1397
- tab?: string | undefined;
1293
+ name: import("../types").SidebarName;
1294
+ tab?: import("../types").SidebarTabName;
1398
1295
  } | null;
1399
- openDialog: {
1296
+ openDialog: null | {
1400
1297
  name: "imageExport" | "help" | "jsonExport";
1401
1298
  } | {
1402
1299
  name: "ttd";
1403
- tab: "mermaid" | "text-to-diagram";
1300
+ tab: "text-to-diagram" | "mermaid";
1404
1301
  } | {
1405
1302
  name: "commandPalette";
1303
+ } | {
1304
+ name: "settings";
1406
1305
  } | {
1407
1306
  name: "elementLinkSelector";
1408
- sourceElementId: string;
1409
- } | null;
1307
+ sourceElementId: ExcalidrawElement["id"];
1308
+ };
1410
1309
  defaultSidebarDockedPreference: boolean;
1411
1310
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1412
1311
  selectedElementIds: Readonly<{
@@ -1422,8 +1321,8 @@ export declare const actionZoomToFitSelection: {
1422
1321
  shouldCacheIgnoreZoom: boolean;
1423
1322
  toast: {
1424
1323
  message: string;
1425
- closable?: boolean | undefined;
1426
- duration?: number | undefined;
1324
+ closable?: boolean;
1325
+ duration?: number;
1427
1326
  } | null;
1428
1327
  zenModeEnabled: boolean;
1429
1328
  theme: import("@excalidraw/element/types").Theme;
@@ -1434,32 +1333,13 @@ export declare const actionZoomToFitSelection: {
1434
1333
  selectedGroupIds: {
1435
1334
  [groupId: string]: boolean;
1436
1335
  };
1437
- editingGroupId: string | null;
1336
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1438
1337
  width: number;
1439
1338
  height: number;
1440
1339
  offsetTop: number;
1441
1340
  offsetLeft: number;
1442
1341
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1443
- collaborators: Map<import("../types").SocketId, Readonly<{
1444
- pointer?: import("../types").CollaboratorPointer | undefined;
1445
- button?: "up" | "down" | undefined;
1446
- selectedElementIds?: Readonly<{
1447
- [id: string]: true;
1448
- }> | undefined;
1449
- username?: string | null | undefined;
1450
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1451
- color?: {
1452
- background: string;
1453
- stroke: string;
1454
- } | undefined;
1455
- avatarUrl?: string | undefined;
1456
- id?: string | undefined;
1457
- socketId?: import("../types").SocketId | undefined;
1458
- isCurrentUser?: boolean | undefined;
1459
- isInCall?: boolean | undefined;
1460
- isSpeaking?: boolean | undefined;
1461
- isMuted?: boolean | undefined;
1462
- }>>;
1342
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1463
1343
  stats: {
1464
1344
  open: boolean;
1465
1345
  panels: number;
@@ -1472,7 +1352,7 @@ export declare const actionZoomToFitSelection: {
1472
1352
  shown: true;
1473
1353
  data: import("../charts").Spreadsheet;
1474
1354
  };
1475
- showHyperlinkPopup: false | "editor" | "info";
1355
+ showHyperlinkPopup: false | "info" | "editor";
1476
1356
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1477
1357
  snapLines: readonly import("../snapping").SnapLine[];
1478
1358
  originSnapOffset: {
@@ -1483,15 +1363,16 @@ export declare const actionZoomToFitSelection: {
1483
1363
  userToFollow: import("../types").UserToFollow | null;
1484
1364
  followedBy: Set<import("../types").SocketId>;
1485
1365
  isCropping: boolean;
1486
- croppingElementId: string | null;
1366
+ croppingElementId: ExcalidrawElement["id"] | null;
1487
1367
  searchMatches: Readonly<{
1488
- focusedId: string | null;
1368
+ focusedId: ExcalidrawElement["id"] | null;
1489
1369
  matches: readonly import("../types").SearchMatch[];
1490
1370
  }> | null;
1491
1371
  activeLockedId: string | null;
1492
1372
  lockedMultiSelections: {
1493
1373
  [groupId: string]: true;
1494
1374
  };
1375
+ bindMode: import("@excalidraw/element/types").BindMode;
1495
1376
  };
1496
1377
  captureUpdate: "EVENTUALLY";
1497
1378
  };
@@ -1507,7 +1388,7 @@ export declare const actionZoomToFit: {
1507
1388
  trackEvent: {
1508
1389
  category: "canvas";
1509
1390
  };
1510
- 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) => {
1511
1392
  appState: {
1512
1393
  scrollX: number;
1513
1394
  scrollY: number;
@@ -1521,10 +1402,10 @@ export declare const actionZoomToFit: {
1521
1402
  } | null;
1522
1403
  showWelcomeScreen: boolean;
1523
1404
  isLoading: boolean;
1524
- errorMessage: import("react").ReactNode;
1405
+ errorMessage: React.ReactNode;
1525
1406
  activeEmbeddable: {
1526
1407
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1527
- state: "active" | "hover";
1408
+ state: "hover" | "active";
1528
1409
  } | null;
1529
1410
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1530
1411
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1532,7 +1413,7 @@ export declare const actionZoomToFit: {
1532
1413
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1533
1414
  isBindingEnabled: boolean;
1534
1415
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1535
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1416
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1536
1417
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1537
1418
  frameRendering: {
1538
1419
  enabled: boolean;
@@ -1548,6 +1429,10 @@ export declare const actionZoomToFit: {
1548
1429
  locked: boolean;
1549
1430
  fromSelection: boolean;
1550
1431
  } & import("../types").ActiveTool;
1432
+ preferredSelectionTool: {
1433
+ type: "selection" | "lasso";
1434
+ initialized: boolean;
1435
+ };
1551
1436
  penMode: boolean;
1552
1437
  penDetected: boolean;
1553
1438
  exportBackground: boolean;
@@ -1556,42 +1441,44 @@ export declare const actionZoomToFit: {
1556
1441
  exportScale: number;
1557
1442
  currentItemStrokeColor: string;
1558
1443
  currentItemBackgroundColor: string;
1559
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1444
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1560
1445
  currentItemStrokeWidth: number;
1561
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1446
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1562
1447
  currentItemRoughness: number;
1563
1448
  currentItemOpacity: number;
1564
- currentItemFontFamily: number;
1449
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1565
1450
  currentItemFontSize: number;
1566
- currentItemTextAlign: string;
1451
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1567
1452
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1568
1453
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1569
- currentHoveredFontFamily: number | null;
1454
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1570
1455
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1571
- currentItemArrowType: "round" | "sharp" | "elbow";
1456
+ currentItemArrowType: "sharp" | "round" | "elbow";
1572
1457
  viewBackgroundColor: string;
1573
1458
  cursorButton: "up" | "down";
1574
1459
  scrolledOutside: boolean;
1575
1460
  name: string | null;
1576
1461
  isResizing: boolean;
1577
1462
  isRotating: boolean;
1578
- openMenu: "canvas" | "shape" | null;
1579
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1463
+ openMenu: "canvas" | null;
1464
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1580
1465
  openSidebar: {
1581
- name: string;
1582
- tab?: string | undefined;
1466
+ name: import("../types").SidebarName;
1467
+ tab?: import("../types").SidebarTabName;
1583
1468
  } | null;
1584
- openDialog: {
1469
+ openDialog: null | {
1585
1470
  name: "imageExport" | "help" | "jsonExport";
1586
1471
  } | {
1587
1472
  name: "ttd";
1588
- tab: "mermaid" | "text-to-diagram";
1473
+ tab: "text-to-diagram" | "mermaid";
1589
1474
  } | {
1590
1475
  name: "commandPalette";
1476
+ } | {
1477
+ name: "settings";
1591
1478
  } | {
1592
1479
  name: "elementLinkSelector";
1593
- sourceElementId: string;
1594
- } | null;
1480
+ sourceElementId: ExcalidrawElement["id"];
1481
+ };
1595
1482
  defaultSidebarDockedPreference: boolean;
1596
1483
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1597
1484
  selectedElementIds: Readonly<{
@@ -1607,8 +1494,8 @@ export declare const actionZoomToFit: {
1607
1494
  shouldCacheIgnoreZoom: boolean;
1608
1495
  toast: {
1609
1496
  message: string;
1610
- closable?: boolean | undefined;
1611
- duration?: number | undefined;
1497
+ closable?: boolean;
1498
+ duration?: number;
1612
1499
  } | null;
1613
1500
  zenModeEnabled: boolean;
1614
1501
  theme: import("@excalidraw/element/types").Theme;
@@ -1619,32 +1506,13 @@ export declare const actionZoomToFit: {
1619
1506
  selectedGroupIds: {
1620
1507
  [groupId: string]: boolean;
1621
1508
  };
1622
- editingGroupId: string | null;
1509
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1623
1510
  width: number;
1624
1511
  height: number;
1625
1512
  offsetTop: number;
1626
1513
  offsetLeft: number;
1627
1514
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1628
- collaborators: Map<import("../types").SocketId, Readonly<{
1629
- pointer?: import("../types").CollaboratorPointer | undefined;
1630
- button?: "up" | "down" | undefined;
1631
- selectedElementIds?: Readonly<{
1632
- [id: string]: true;
1633
- }> | undefined;
1634
- username?: string | null | undefined;
1635
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1636
- color?: {
1637
- background: string;
1638
- stroke: string;
1639
- } | undefined;
1640
- avatarUrl?: string | undefined;
1641
- id?: string | undefined;
1642
- socketId?: import("../types").SocketId | undefined;
1643
- isCurrentUser?: boolean | undefined;
1644
- isInCall?: boolean | undefined;
1645
- isSpeaking?: boolean | undefined;
1646
- isMuted?: boolean | undefined;
1647
- }>>;
1515
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1648
1516
  stats: {
1649
1517
  open: boolean;
1650
1518
  panels: number;
@@ -1657,7 +1525,7 @@ export declare const actionZoomToFit: {
1657
1525
  shown: true;
1658
1526
  data: import("../charts").Spreadsheet;
1659
1527
  };
1660
- showHyperlinkPopup: false | "editor" | "info";
1528
+ showHyperlinkPopup: false | "info" | "editor";
1661
1529
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1662
1530
  snapLines: readonly import("../snapping").SnapLine[];
1663
1531
  originSnapOffset: {
@@ -1668,15 +1536,16 @@ export declare const actionZoomToFit: {
1668
1536
  userToFollow: import("../types").UserToFollow | null;
1669
1537
  followedBy: Set<import("../types").SocketId>;
1670
1538
  isCropping: boolean;
1671
- croppingElementId: string | null;
1539
+ croppingElementId: ExcalidrawElement["id"] | null;
1672
1540
  searchMatches: Readonly<{
1673
- focusedId: string | null;
1541
+ focusedId: ExcalidrawElement["id"] | null;
1674
1542
  matches: readonly import("../types").SearchMatch[];
1675
1543
  }> | null;
1676
1544
  activeLockedId: string | null;
1677
1545
  lockedMultiSelections: {
1678
1546
  [groupId: string]: true;
1679
1547
  };
1548
+ bindMode: import("@excalidraw/element/types").BindMode;
1680
1549
  };
1681
1550
  captureUpdate: "EVENTUALLY";
1682
1551
  };
@@ -1684,192 +1553,8 @@ export declare const actionZoomToFit: {
1684
1553
  } & {
1685
1554
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1686
1555
  };
1687
- export declare const actionToggleTheme: {
1688
- name: "toggleTheme";
1689
- label: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>) => "buttons.lightMode" | "buttons.darkMode";
1690
- keywords: string[];
1691
- icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
1692
- viewMode: true;
1693
- trackEvent: {
1694
- category: "canvas";
1695
- };
1696
- perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
1697
- appState: {
1698
- theme: any;
1699
- contextMenu: {
1700
- items: import("../components/ContextMenu").ContextMenuItems;
1701
- top: number;
1702
- left: number;
1703
- } | null;
1704
- showWelcomeScreen: boolean;
1705
- isLoading: boolean;
1706
- errorMessage: import("react").ReactNode;
1707
- activeEmbeddable: {
1708
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1709
- state: "active" | "hover";
1710
- } | null;
1711
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1712
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1713
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1714
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1715
- isBindingEnabled: boolean;
1716
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1717
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1718
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1719
- frameRendering: {
1720
- enabled: boolean;
1721
- name: boolean;
1722
- outline: boolean;
1723
- clip: boolean;
1724
- };
1725
- editingFrame: string | null;
1726
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1727
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1728
- activeTool: {
1729
- lastActiveTool: import("../types").ActiveTool | null;
1730
- locked: boolean;
1731
- fromSelection: boolean;
1732
- } & import("../types").ActiveTool;
1733
- penMode: boolean;
1734
- penDetected: boolean;
1735
- exportBackground: boolean;
1736
- exportEmbedScene: boolean;
1737
- exportWithDarkMode: boolean;
1738
- exportScale: number;
1739
- currentItemStrokeColor: string;
1740
- currentItemBackgroundColor: string;
1741
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1742
- currentItemStrokeWidth: number;
1743
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1744
- currentItemRoughness: number;
1745
- currentItemOpacity: number;
1746
- currentItemFontFamily: number;
1747
- currentItemFontSize: number;
1748
- currentItemTextAlign: string;
1749
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1750
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1751
- currentHoveredFontFamily: number | null;
1752
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1753
- currentItemArrowType: "round" | "sharp" | "elbow";
1754
- viewBackgroundColor: string;
1755
- scrollX: number;
1756
- scrollY: number;
1757
- cursorButton: "up" | "down";
1758
- scrolledOutside: boolean;
1759
- name: string | null;
1760
- isResizing: boolean;
1761
- isRotating: boolean;
1762
- zoom: Readonly<{
1763
- value: import("../types").NormalizedZoomValue;
1764
- }>;
1765
- openMenu: "canvas" | "shape" | null;
1766
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1767
- openSidebar: {
1768
- name: string;
1769
- tab?: string | undefined;
1770
- } | null;
1771
- openDialog: {
1772
- name: "imageExport" | "help" | "jsonExport";
1773
- } | {
1774
- name: "ttd";
1775
- tab: "mermaid" | "text-to-diagram";
1776
- } | {
1777
- name: "commandPalette";
1778
- } | {
1779
- name: "elementLinkSelector";
1780
- sourceElementId: string;
1781
- } | null;
1782
- defaultSidebarDockedPreference: boolean;
1783
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1784
- selectedElementIds: Readonly<{
1785
- [id: string]: true;
1786
- }>;
1787
- hoveredElementIds: Readonly<{
1788
- [id: string]: true;
1789
- }>;
1790
- previousSelectedElementIds: {
1791
- [id: string]: true;
1792
- };
1793
- selectedElementsAreBeingDragged: boolean;
1794
- shouldCacheIgnoreZoom: boolean;
1795
- toast: {
1796
- message: string;
1797
- closable?: boolean | undefined;
1798
- duration?: number | undefined;
1799
- } | null;
1800
- zenModeEnabled: boolean;
1801
- gridSize: number;
1802
- gridStep: number;
1803
- gridModeEnabled: boolean;
1804
- viewModeEnabled: boolean;
1805
- selectedGroupIds: {
1806
- [groupId: string]: boolean;
1807
- };
1808
- editingGroupId: string | null;
1809
- width: number;
1810
- height: number;
1811
- offsetTop: number;
1812
- offsetLeft: number;
1813
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1814
- collaborators: Map<import("../types").SocketId, Readonly<{
1815
- pointer?: import("../types").CollaboratorPointer | undefined;
1816
- button?: "up" | "down" | undefined;
1817
- selectedElementIds?: Readonly<{
1818
- [id: string]: true;
1819
- }> | undefined;
1820
- username?: string | null | undefined;
1821
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1822
- color?: {
1823
- background: string;
1824
- stroke: string;
1825
- } | undefined;
1826
- avatarUrl?: string | undefined;
1827
- id?: string | undefined;
1828
- socketId?: import("../types").SocketId | undefined;
1829
- isCurrentUser?: boolean | undefined;
1830
- isInCall?: boolean | undefined;
1831
- isSpeaking?: boolean | undefined;
1832
- isMuted?: boolean | undefined;
1833
- }>>;
1834
- stats: {
1835
- open: boolean;
1836
- panels: number;
1837
- };
1838
- currentChartType: import("@excalidraw/element/types").ChartType;
1839
- pasteDialog: {
1840
- shown: false;
1841
- data: null;
1842
- } | {
1843
- shown: true;
1844
- data: import("../charts").Spreadsheet;
1845
- };
1846
- showHyperlinkPopup: false | "editor" | "info";
1847
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1848
- snapLines: readonly import("../snapping").SnapLine[];
1849
- originSnapOffset: {
1850
- x: number;
1851
- y: number;
1852
- } | null;
1853
- objectsSnapModeEnabled: boolean;
1854
- userToFollow: import("../types").UserToFollow | null;
1855
- followedBy: Set<import("../types").SocketId>;
1856
- isCropping: boolean;
1857
- croppingElementId: string | null;
1858
- searchMatches: Readonly<{
1859
- focusedId: string | null;
1860
- matches: readonly import("../types").SearchMatch[];
1861
- }> | null;
1862
- activeLockedId: string | null;
1863
- lockedMultiSelections: {
1864
- [groupId: string]: true;
1865
- };
1866
- };
1867
- captureUpdate: "EVENTUALLY";
1868
- };
1869
- keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
1870
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1871
- } & {
1872
- 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;
1873
1558
  };
1874
1559
  export declare const actionToggleEraserTool: {
1875
1560
  name: "toggleEraserTool";
@@ -1877,7 +1562,7 @@ export declare const actionToggleEraserTool: {
1877
1562
  trackEvent: {
1878
1563
  category: "toolbar";
1879
1564
  };
1880
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>) => {
1565
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1881
1566
  appState: {
1882
1567
  selectedElementIds: {};
1883
1568
  selectedGroupIds: {};
@@ -1894,14 +1579,14 @@ export declare const actionToggleEraserTool: {
1894
1579
  } | null;
1895
1580
  showWelcomeScreen: boolean;
1896
1581
  isLoading: boolean;
1897
- errorMessage: import("react").ReactNode;
1582
+ errorMessage: React.ReactNode;
1898
1583
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1899
1584
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1900
1585
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1901
1586
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1902
1587
  isBindingEnabled: boolean;
1903
1588
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1904
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1589
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1905
1590
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1906
1591
  frameRendering: {
1907
1592
  enabled: boolean;
@@ -1912,6 +1597,10 @@ export declare const actionToggleEraserTool: {
1912
1597
  editingFrame: string | null;
1913
1598
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1914
1599
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1600
+ preferredSelectionTool: {
1601
+ type: "selection" | "lasso";
1602
+ initialized: boolean;
1603
+ };
1915
1604
  penMode: boolean;
1916
1605
  penDetected: boolean;
1917
1606
  exportBackground: boolean;
@@ -1920,19 +1609,19 @@ export declare const actionToggleEraserTool: {
1920
1609
  exportScale: number;
1921
1610
  currentItemStrokeColor: string;
1922
1611
  currentItemBackgroundColor: string;
1923
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1612
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
1924
1613
  currentItemStrokeWidth: number;
1925
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1614
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1926
1615
  currentItemRoughness: number;
1927
1616
  currentItemOpacity: number;
1928
- currentItemFontFamily: number;
1617
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1929
1618
  currentItemFontSize: number;
1930
- currentItemTextAlign: string;
1619
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1931
1620
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1932
1621
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1933
- currentHoveredFontFamily: number | null;
1622
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1934
1623
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1935
- currentItemArrowType: "round" | "sharp" | "elbow";
1624
+ currentItemArrowType: "sharp" | "round" | "elbow";
1936
1625
  viewBackgroundColor: string;
1937
1626
  scrollX: number;
1938
1627
  scrollY: number;
@@ -1941,26 +1630,26 @@ export declare const actionToggleEraserTool: {
1941
1630
  name: string | null;
1942
1631
  isResizing: boolean;
1943
1632
  isRotating: boolean;
1944
- zoom: Readonly<{
1945
- value: import("../types").NormalizedZoomValue;
1946
- }>;
1947
- openMenu: "canvas" | "shape" | null;
1948
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1633
+ zoom: import("../types").Zoom;
1634
+ openMenu: "canvas" | null;
1635
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1949
1636
  openSidebar: {
1950
- name: string;
1951
- tab?: string | undefined;
1637
+ name: import("../types").SidebarName;
1638
+ tab?: import("../types").SidebarTabName;
1952
1639
  } | null;
1953
- openDialog: {
1640
+ openDialog: null | {
1954
1641
  name: "imageExport" | "help" | "jsonExport";
1955
1642
  } | {
1956
1643
  name: "ttd";
1957
- tab: "mermaid" | "text-to-diagram";
1644
+ tab: "text-to-diagram" | "mermaid";
1958
1645
  } | {
1959
1646
  name: "commandPalette";
1647
+ } | {
1648
+ name: "settings";
1960
1649
  } | {
1961
1650
  name: "elementLinkSelector";
1962
- sourceElementId: string;
1963
- } | null;
1651
+ sourceElementId: ExcalidrawElement["id"];
1652
+ };
1964
1653
  defaultSidebarDockedPreference: boolean;
1965
1654
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1966
1655
  hoveredElementIds: Readonly<{
@@ -1973,8 +1662,8 @@ export declare const actionToggleEraserTool: {
1973
1662
  shouldCacheIgnoreZoom: boolean;
1974
1663
  toast: {
1975
1664
  message: string;
1976
- closable?: boolean | undefined;
1977
- duration?: number | undefined;
1665
+ closable?: boolean;
1666
+ duration?: number;
1978
1667
  } | null;
1979
1668
  zenModeEnabled: boolean;
1980
1669
  theme: import("@excalidraw/element/types").Theme;
@@ -1982,32 +1671,13 @@ export declare const actionToggleEraserTool: {
1982
1671
  gridStep: number;
1983
1672
  gridModeEnabled: boolean;
1984
1673
  viewModeEnabled: boolean;
1985
- editingGroupId: string | null;
1674
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1986
1675
  width: number;
1987
1676
  height: number;
1988
1677
  offsetTop: number;
1989
1678
  offsetLeft: number;
1990
1679
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1991
- collaborators: Map<import("../types").SocketId, Readonly<{
1992
- pointer?: import("../types").CollaboratorPointer | undefined;
1993
- button?: "up" | "down" | undefined;
1994
- selectedElementIds?: Readonly<{
1995
- [id: string]: true;
1996
- }> | undefined;
1997
- username?: string | null | undefined;
1998
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1999
- color?: {
2000
- background: string;
2001
- stroke: string;
2002
- } | undefined;
2003
- avatarUrl?: string | undefined;
2004
- id?: string | undefined;
2005
- socketId?: import("../types").SocketId | undefined;
2006
- isCurrentUser?: boolean | undefined;
2007
- isInCall?: boolean | undefined;
2008
- isSpeaking?: boolean | undefined;
2009
- isMuted?: boolean | undefined;
2010
- }>>;
1680
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2011
1681
  stats: {
2012
1682
  open: boolean;
2013
1683
  panels: number;
@@ -2020,7 +1690,7 @@ export declare const actionToggleEraserTool: {
2020
1690
  shown: true;
2021
1691
  data: import("../charts").Spreadsheet;
2022
1692
  };
2023
- showHyperlinkPopup: false | "editor" | "info";
1693
+ showHyperlinkPopup: false | "info" | "editor";
2024
1694
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2025
1695
  snapLines: readonly import("../snapping").SnapLine[];
2026
1696
  originSnapOffset: {
@@ -2031,15 +1701,16 @@ export declare const actionToggleEraserTool: {
2031
1701
  userToFollow: import("../types").UserToFollow | null;
2032
1702
  followedBy: Set<import("../types").SocketId>;
2033
1703
  isCropping: boolean;
2034
- croppingElementId: string | null;
1704
+ croppingElementId: ExcalidrawElement["id"] | null;
2035
1705
  searchMatches: Readonly<{
2036
- focusedId: string | null;
1706
+ focusedId: ExcalidrawElement["id"] | null;
2037
1707
  matches: readonly import("../types").SearchMatch[];
2038
1708
  }> | null;
2039
1709
  activeLockedId: string | null;
2040
1710
  lockedMultiSelections: {
2041
1711
  [groupId: string]: true;
2042
1712
  };
1713
+ bindMode: import("@excalidraw/element/types").BindMode;
2043
1714
  };
2044
1715
  captureUpdate: "IMMEDIATELY";
2045
1716
  };
@@ -2054,7 +1725,8 @@ export declare const actionToggleLassoTool: {
2054
1725
  trackEvent: {
2055
1726
  category: "toolbar";
2056
1727
  };
2057
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: any, app: import("../types").AppClassProperties) => {
1728
+ predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1729
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
2058
1730
  appState: {
2059
1731
  selectedElementIds: {};
2060
1732
  selectedGroupIds: {};
@@ -2071,14 +1743,14 @@ export declare const actionToggleLassoTool: {
2071
1743
  } | null;
2072
1744
  showWelcomeScreen: boolean;
2073
1745
  isLoading: boolean;
2074
- errorMessage: import("react").ReactNode;
1746
+ errorMessage: React.ReactNode;
2075
1747
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2076
1748
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2077
1749
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2078
1750
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2079
1751
  isBindingEnabled: boolean;
2080
1752
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2081
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1753
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2082
1754
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2083
1755
  frameRendering: {
2084
1756
  enabled: boolean;
@@ -2089,6 +1761,10 @@ export declare const actionToggleLassoTool: {
2089
1761
  editingFrame: string | null;
2090
1762
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2091
1763
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1764
+ preferredSelectionTool: {
1765
+ type: "selection" | "lasso";
1766
+ initialized: boolean;
1767
+ };
2092
1768
  penMode: boolean;
2093
1769
  penDetected: boolean;
2094
1770
  exportBackground: boolean;
@@ -2097,19 +1773,19 @@ export declare const actionToggleLassoTool: {
2097
1773
  exportScale: number;
2098
1774
  currentItemStrokeColor: string;
2099
1775
  currentItemBackgroundColor: string;
2100
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1776
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
2101
1777
  currentItemStrokeWidth: number;
2102
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1778
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
2103
1779
  currentItemRoughness: number;
2104
1780
  currentItemOpacity: number;
2105
- currentItemFontFamily: number;
1781
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
2106
1782
  currentItemFontSize: number;
2107
- currentItemTextAlign: string;
1783
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
2108
1784
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2109
1785
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2110
- currentHoveredFontFamily: number | null;
1786
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
2111
1787
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2112
- currentItemArrowType: "round" | "sharp" | "elbow";
1788
+ currentItemArrowType: "sharp" | "round" | "elbow";
2113
1789
  viewBackgroundColor: string;
2114
1790
  scrollX: number;
2115
1791
  scrollY: number;
@@ -2118,26 +1794,26 @@ export declare const actionToggleLassoTool: {
2118
1794
  name: string | null;
2119
1795
  isResizing: boolean;
2120
1796
  isRotating: boolean;
2121
- zoom: Readonly<{
2122
- value: import("../types").NormalizedZoomValue;
2123
- }>;
2124
- openMenu: "canvas" | "shape" | null;
2125
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1797
+ zoom: import("../types").Zoom;
1798
+ openMenu: "canvas" | null;
1799
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2126
1800
  openSidebar: {
2127
- name: string;
2128
- tab?: string | undefined;
1801
+ name: import("../types").SidebarName;
1802
+ tab?: import("../types").SidebarTabName;
2129
1803
  } | null;
2130
- openDialog: {
1804
+ openDialog: null | {
2131
1805
  name: "imageExport" | "help" | "jsonExport";
2132
1806
  } | {
2133
1807
  name: "ttd";
2134
- tab: "mermaid" | "text-to-diagram";
1808
+ tab: "text-to-diagram" | "mermaid";
2135
1809
  } | {
2136
1810
  name: "commandPalette";
1811
+ } | {
1812
+ name: "settings";
2137
1813
  } | {
2138
1814
  name: "elementLinkSelector";
2139
- sourceElementId: string;
2140
- } | null;
1815
+ sourceElementId: ExcalidrawElement["id"];
1816
+ };
2141
1817
  defaultSidebarDockedPreference: boolean;
2142
1818
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2143
1819
  hoveredElementIds: Readonly<{
@@ -2150,8 +1826,8 @@ export declare const actionToggleLassoTool: {
2150
1826
  shouldCacheIgnoreZoom: boolean;
2151
1827
  toast: {
2152
1828
  message: string;
2153
- closable?: boolean | undefined;
2154
- duration?: number | undefined;
1829
+ closable?: boolean;
1830
+ duration?: number;
2155
1831
  } | null;
2156
1832
  zenModeEnabled: boolean;
2157
1833
  theme: import("@excalidraw/element/types").Theme;
@@ -2159,32 +1835,13 @@ export declare const actionToggleLassoTool: {
2159
1835
  gridStep: number;
2160
1836
  gridModeEnabled: boolean;
2161
1837
  viewModeEnabled: boolean;
2162
- editingGroupId: string | null;
1838
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2163
1839
  width: number;
2164
1840
  height: number;
2165
1841
  offsetTop: number;
2166
1842
  offsetLeft: number;
2167
1843
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
2168
- collaborators: Map<import("../types").SocketId, Readonly<{
2169
- pointer?: import("../types").CollaboratorPointer | undefined;
2170
- button?: "up" | "down" | undefined;
2171
- selectedElementIds?: Readonly<{
2172
- [id: string]: true;
2173
- }> | undefined;
2174
- username?: string | null | undefined;
2175
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2176
- color?: {
2177
- background: string;
2178
- stroke: string;
2179
- } | undefined;
2180
- avatarUrl?: string | undefined;
2181
- id?: string | undefined;
2182
- socketId?: import("../types").SocketId | undefined;
2183
- isCurrentUser?: boolean | undefined;
2184
- isInCall?: boolean | undefined;
2185
- isSpeaking?: boolean | undefined;
2186
- isMuted?: boolean | undefined;
2187
- }>>;
1844
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2188
1845
  stats: {
2189
1846
  open: boolean;
2190
1847
  panels: number;
@@ -2197,7 +1854,7 @@ export declare const actionToggleLassoTool: {
2197
1854
  shown: true;
2198
1855
  data: import("../charts").Spreadsheet;
2199
1856
  };
2200
- showHyperlinkPopup: false | "editor" | "info";
1857
+ showHyperlinkPopup: false | "info" | "editor";
2201
1858
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2202
1859
  snapLines: readonly import("../snapping").SnapLine[];
2203
1860
  originSnapOffset: {
@@ -2208,15 +1865,16 @@ export declare const actionToggleLassoTool: {
2208
1865
  userToFollow: import("../types").UserToFollow | null;
2209
1866
  followedBy: Set<import("../types").SocketId>;
2210
1867
  isCropping: boolean;
2211
- croppingElementId: string | null;
1868
+ croppingElementId: ExcalidrawElement["id"] | null;
2212
1869
  searchMatches: Readonly<{
2213
- focusedId: string | null;
1870
+ focusedId: ExcalidrawElement["id"] | null;
2214
1871
  matches: readonly import("../types").SearchMatch[];
2215
1872
  }> | null;
2216
1873
  activeLockedId: string | null;
2217
1874
  lockedMultiSelections: {
2218
1875
  [groupId: string]: true;
2219
1876
  };
1877
+ bindMode: import("@excalidraw/element/types").BindMode;
2220
1878
  };
2221
1879
  captureUpdate: "NEVER";
2222
1880
  };
@@ -2231,7 +1889,7 @@ export declare const actionToggleHandTool: {
2231
1889
  };
2232
1890
  icon: import("react/jsx-runtime").JSX.Element;
2233
1891
  viewMode: false;
2234
- 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) => {
2235
1893
  appState: {
2236
1894
  selectedElementIds: {};
2237
1895
  selectedGroupIds: {};
@@ -2248,14 +1906,14 @@ export declare const actionToggleHandTool: {
2248
1906
  } | null;
2249
1907
  showWelcomeScreen: boolean;
2250
1908
  isLoading: boolean;
2251
- errorMessage: import("react").ReactNode;
1909
+ errorMessage: React.ReactNode;
2252
1910
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
2253
1911
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2254
1912
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
2255
1913
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
2256
1914
  isBindingEnabled: boolean;
2257
1915
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2258
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1916
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
2259
1917
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
2260
1918
  frameRendering: {
2261
1919
  enabled: boolean;
@@ -2266,6 +1924,10 @@ export declare const actionToggleHandTool: {
2266
1924
  editingFrame: string | null;
2267
1925
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
2268
1926
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1927
+ preferredSelectionTool: {
1928
+ type: "selection" | "lasso";
1929
+ initialized: boolean;
1930
+ };
2269
1931
  penMode: boolean;
2270
1932
  penDetected: boolean;
2271
1933
  exportBackground: boolean;
@@ -2274,19 +1936,19 @@ export declare const actionToggleHandTool: {
2274
1936
  exportScale: number;
2275
1937
  currentItemStrokeColor: string;
2276
1938
  currentItemBackgroundColor: string;
2277
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1939
+ currentItemFillStyle: ExcalidrawElement["fillStyle"];
2278
1940
  currentItemStrokeWidth: number;
2279
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1941
+ currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
2280
1942
  currentItemRoughness: number;
2281
1943
  currentItemOpacity: number;
2282
- currentItemFontFamily: number;
1944
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
2283
1945
  currentItemFontSize: number;
2284
- currentItemTextAlign: string;
1946
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
2285
1947
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2286
1948
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
2287
- currentHoveredFontFamily: number | null;
1949
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
2288
1950
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
2289
- currentItemArrowType: "round" | "sharp" | "elbow";
1951
+ currentItemArrowType: "sharp" | "round" | "elbow";
2290
1952
  viewBackgroundColor: string;
2291
1953
  scrollX: number;
2292
1954
  scrollY: number;
@@ -2295,26 +1957,26 @@ export declare const actionToggleHandTool: {
2295
1957
  name: string | null;
2296
1958
  isResizing: boolean;
2297
1959
  isRotating: boolean;
2298
- zoom: Readonly<{
2299
- value: import("../types").NormalizedZoomValue;
2300
- }>;
2301
- openMenu: "canvas" | "shape" | null;
2302
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | null;
1960
+ zoom: import("../types").Zoom;
1961
+ openMenu: "canvas" | null;
1962
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
2303
1963
  openSidebar: {
2304
- name: string;
2305
- tab?: string | undefined;
1964
+ name: import("../types").SidebarName;
1965
+ tab?: import("../types").SidebarTabName;
2306
1966
  } | null;
2307
- openDialog: {
1967
+ openDialog: null | {
2308
1968
  name: "imageExport" | "help" | "jsonExport";
2309
1969
  } | {
2310
1970
  name: "ttd";
2311
- tab: "mermaid" | "text-to-diagram";
1971
+ tab: "text-to-diagram" | "mermaid";
2312
1972
  } | {
2313
1973
  name: "commandPalette";
1974
+ } | {
1975
+ name: "settings";
2314
1976
  } | {
2315
1977
  name: "elementLinkSelector";
2316
- sourceElementId: string;
2317
- } | null;
1978
+ sourceElementId: ExcalidrawElement["id"];
1979
+ };
2318
1980
  defaultSidebarDockedPreference: boolean;
2319
1981
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
2320
1982
  hoveredElementIds: Readonly<{
@@ -2327,8 +1989,8 @@ export declare const actionToggleHandTool: {
2327
1989
  shouldCacheIgnoreZoom: boolean;
2328
1990
  toast: {
2329
1991
  message: string;
2330
- closable?: boolean | undefined;
2331
- duration?: number | undefined;
1992
+ closable?: boolean;
1993
+ duration?: number;
2332
1994
  } | null;
2333
1995
  zenModeEnabled: boolean;
2334
1996
  theme: import("@excalidraw/element/types").Theme;
@@ -2336,32 +1998,13 @@ export declare const actionToggleHandTool: {
2336
1998
  gridStep: number;
2337
1999
  gridModeEnabled: boolean;
2338
2000
  viewModeEnabled: boolean;
2339
- editingGroupId: string | null;
2001
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
2340
2002
  width: number;
2341
2003
  height: number;
2342
2004
  offsetTop: number;
2343
2005
  offsetLeft: number;
2344
2006
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
2345
- collaborators: Map<import("../types").SocketId, Readonly<{
2346
- pointer?: import("../types").CollaboratorPointer | undefined;
2347
- button?: "up" | "down" | undefined;
2348
- selectedElementIds?: Readonly<{
2349
- [id: string]: true;
2350
- }> | undefined;
2351
- username?: string | null | undefined;
2352
- userState?: import("@excalidraw/common").UserIdleState | undefined;
2353
- color?: {
2354
- background: string;
2355
- stroke: string;
2356
- } | undefined;
2357
- avatarUrl?: string | undefined;
2358
- id?: string | undefined;
2359
- socketId?: import("../types").SocketId | undefined;
2360
- isCurrentUser?: boolean | undefined;
2361
- isInCall?: boolean | undefined;
2362
- isSpeaking?: boolean | undefined;
2363
- isMuted?: boolean | undefined;
2364
- }>>;
2007
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
2365
2008
  stats: {
2366
2009
  open: boolean;
2367
2010
  panels: number;
@@ -2374,7 +2017,7 @@ export declare const actionToggleHandTool: {
2374
2017
  shown: true;
2375
2018
  data: import("../charts").Spreadsheet;
2376
2019
  };
2377
- showHyperlinkPopup: false | "editor" | "info";
2020
+ showHyperlinkPopup: false | "info" | "editor";
2378
2021
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
2379
2022
  snapLines: readonly import("../snapping").SnapLine[];
2380
2023
  originSnapOffset: {
@@ -2385,15 +2028,16 @@ export declare const actionToggleHandTool: {
2385
2028
  userToFollow: import("../types").UserToFollow | null;
2386
2029
  followedBy: Set<import("../types").SocketId>;
2387
2030
  isCropping: boolean;
2388
- croppingElementId: string | null;
2031
+ croppingElementId: ExcalidrawElement["id"] | null;
2389
2032
  searchMatches: Readonly<{
2390
- focusedId: string | null;
2033
+ focusedId: ExcalidrawElement["id"] | null;
2391
2034
  matches: readonly import("../types").SearchMatch[];
2392
2035
  }> | null;
2393
2036
  activeLockedId: string | null;
2394
2037
  lockedMultiSelections: {
2395
2038
  [groupId: string]: true;
2396
2039
  };
2040
+ bindMode: import("@excalidraw/element/types").BindMode;
2397
2041
  };
2398
2042
  captureUpdate: "IMMEDIATELY";
2399
2043
  };