@excalidraw/excalidraw 0.18.0-b9d27d3 → 0.18.0-c158187

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