@excalidraw/excalidraw 0.18.0-5fffc47 → 0.18.0-6135548

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 (524) hide show
  1. package/dist/dev/{chunk-FB2NA5UG.js → chunk-6JJSWC4C.js} +1 -1
  2. package/dist/dev/{chunk-FB2NA5UG.js.map → chunk-6JJSWC4C.js.map} +2 -2
  3. package/dist/dev/chunk-DJHLEOOZ.js +69 -0
  4. package/dist/dev/chunk-DJHLEOOZ.js.map +7 -0
  5. package/dist/dev/{chunk-PWQMCSHA.js → chunk-GJCHM3LM.js} +91 -24
  6. package/dist/dev/chunk-GJCHM3LM.js.map +7 -0
  7. package/dist/dev/{chunk-YMRX7R7U.js → chunk-PW6TXCLQ.js} +270 -419
  8. package/dist/dev/chunk-PW6TXCLQ.js.map +7 -0
  9. package/dist/dev/{chunk-CP5DND7P.js → chunk-Y3BTNZQY.js} +2 -2
  10. package/dist/dev/data/{image-L23D26XS.js → image-2BHUUSLM.js} +3 -3
  11. package/dist/dev/index.css +937 -192
  12. package/dist/dev/index.css.map +3 -3
  13. package/dist/dev/index.js +10398 -8330
  14. package/dist/dev/index.js.map +4 -4
  15. package/dist/dev/locales/{ar-SA-XORAP2EK.js → ar-SA-JK5MQ7TT.js} +300 -142
  16. package/dist/dev/locales/ar-SA-JK5MQ7TT.js.map +7 -0
  17. package/dist/dev/locales/{az-AZ-NAUU3Z4Y.js → az-AZ-2PAD62G4.js} +241 -83
  18. package/dist/dev/locales/az-AZ-2PAD62G4.js.map +7 -0
  19. package/dist/dev/locales/{bg-BG-AAABLFCY.js → bg-BG-HUKVYCRK.js} +229 -71
  20. package/dist/dev/locales/bg-BG-HUKVYCRK.js.map +7 -0
  21. package/dist/dev/locales/{bn-BD-PM4AC5WG.js → bn-BD-V2CQI46P.js} +209 -51
  22. package/dist/dev/locales/bn-BD-V2CQI46P.js.map +7 -0
  23. package/dist/dev/locales/bn-IN-MBEO4C3J.js +744 -0
  24. package/dist/dev/locales/bn-IN-MBEO4C3J.js.map +7 -0
  25. package/dist/dev/locales/{ca-ES-YNNMFRQX.js → ca-ES-KWEKW4C3.js} +275 -117
  26. package/dist/dev/locales/ca-ES-KWEKW4C3.js.map +7 -0
  27. package/dist/dev/locales/{cs-CZ-DGZA5IKG.js → cs-CZ-W5AHZB5H.js} +229 -71
  28. package/dist/dev/locales/cs-CZ-W5AHZB5H.js.map +7 -0
  29. package/dist/dev/locales/{da-DK-N76F4QAJ.js → da-DK-ITTM6YM4.js} +298 -140
  30. package/dist/dev/locales/da-DK-ITTM6YM4.js.map +7 -0
  31. package/dist/dev/locales/de-CH-OAWPDQFJ.js +744 -0
  32. package/dist/dev/locales/de-CH-OAWPDQFJ.js.map +7 -0
  33. package/dist/dev/locales/{de-DE-DMRXZ2SZ.js → de-DE-ZRDYEPMS.js} +199 -41
  34. package/dist/dev/locales/de-DE-ZRDYEPMS.js.map +7 -0
  35. package/dist/dev/locales/{el-GR-HIKPLEXI.js → el-GR-QXASZLPE.js} +274 -116
  36. package/dist/dev/locales/el-GR-QXASZLPE.js.map +7 -0
  37. package/dist/dev/locales/{en-V3NQTBPG.js → en-JANWVQZF.js} +8 -2
  38. package/dist/dev/locales/{es-ES-AQYVXC32.js → es-ES-VLQBB7FJ.js} +212 -54
  39. package/dist/dev/locales/es-ES-VLQBB7FJ.js.map +7 -0
  40. package/dist/dev/locales/{eu-ES-3TOEU5DE.js → eu-ES-TF2DGTZU.js} +210 -52
  41. package/dist/dev/locales/eu-ES-TF2DGTZU.js.map +7 -0
  42. package/dist/dev/locales/{fa-IR-527GAKUP.js → fa-IR-ITKFQ7QV.js} +286 -128
  43. package/dist/dev/locales/fa-IR-ITKFQ7QV.js.map +7 -0
  44. package/dist/dev/locales/{fi-FI-M3WLVDFP.js → fi-FI-UWZRVXFI.js} +240 -82
  45. package/dist/dev/locales/fi-FI-UWZRVXFI.js.map +7 -0
  46. package/dist/dev/locales/{fr-FR-YE4VDJFI.js → fr-FR-A72LKGCO.js} +203 -45
  47. package/dist/dev/locales/fr-FR-A72LKGCO.js.map +7 -0
  48. package/dist/dev/locales/{gl-ES-KMXUYGUN.js → gl-ES-2QCVIBFP.js} +212 -54
  49. package/dist/dev/locales/gl-ES-2QCVIBFP.js.map +7 -0
  50. package/dist/dev/locales/he-IL-WJNUHU26.js +744 -0
  51. package/dist/dev/locales/he-IL-WJNUHU26.js.map +7 -0
  52. package/dist/dev/locales/hi-IN-XGMO235V.js +744 -0
  53. package/dist/dev/locales/hi-IN-XGMO235V.js.map +7 -0
  54. package/dist/dev/locales/{hu-HU-VIYZI3X4.js → hu-HU-37FDQFIS.js} +238 -80
  55. package/dist/dev/locales/hu-HU-37FDQFIS.js.map +7 -0
  56. package/dist/dev/locales/{id-ID-22TWZNLA.js → id-ID-EJIDCO4E.js} +245 -87
  57. package/dist/dev/locales/id-ID-EJIDCO4E.js.map +7 -0
  58. package/dist/dev/locales/{it-IT-MDEQ2SG3.js → it-IT-X34PIOJ2.js} +202 -44
  59. package/dist/dev/locales/it-IT-X34PIOJ2.js.map +7 -0
  60. package/dist/dev/locales/{ja-JP-K2DI4W6B.js → ja-JP-37FC23PR.js} +247 -89
  61. package/dist/dev/locales/ja-JP-37FC23PR.js.map +7 -0
  62. package/dist/dev/locales/{kaa-6BPSNM3R.js → kaa-7ZYDFVKA.js} +202 -44
  63. package/dist/dev/locales/kaa-7ZYDFVKA.js.map +7 -0
  64. package/dist/dev/locales/{kab-KAB-2S7ZURK7.js → kab-KAB-MILWXBA6.js} +210 -52
  65. package/dist/dev/locales/kab-KAB-MILWXBA6.js.map +7 -0
  66. package/dist/dev/locales/{kk-KZ-UJPYGRQQ.js → kk-KZ-7BWTPIAV.js} +175 -17
  67. package/dist/dev/locales/kk-KZ-7BWTPIAV.js.map +7 -0
  68. package/dist/dev/locales/{km-KH-M5T5JKUE.js → km-KH-BV4P2KSZ.js} +198 -40
  69. package/dist/dev/locales/km-KH-BV4P2KSZ.js.map +7 -0
  70. package/dist/dev/locales/{ko-KR-RQX37SNF.js → ko-KR-TSXE5P7B.js} +218 -60
  71. package/dist/dev/locales/ko-KR-TSXE5P7B.js.map +7 -0
  72. package/dist/dev/locales/{ku-TR-5XJDIERL.js → ku-TR-ASSXNN3U.js} +198 -40
  73. package/dist/dev/locales/ku-TR-ASSXNN3U.js.map +7 -0
  74. package/dist/dev/locales/{lt-LT-MGUBX6CA.js → lt-LT-G7RZYQQU.js} +179 -21
  75. package/dist/dev/locales/lt-LT-G7RZYQQU.js.map +7 -0
  76. package/dist/dev/locales/{lv-LV-MD7N5VHD.js → lv-LV-DXNPBJZU.js} +196 -38
  77. package/dist/dev/locales/lv-LV-DXNPBJZU.js.map +7 -0
  78. package/dist/dev/locales/{mr-IN-4XWMNGQC.js → mr-IN-7F2ZCTCF.js} +204 -46
  79. package/dist/dev/locales/mr-IN-7F2ZCTCF.js.map +7 -0
  80. package/dist/dev/locales/{my-MM-O4Z74GN5.js → my-MM-NBI3KQGW.js} +181 -23
  81. package/dist/dev/locales/my-MM-NBI3KQGW.js.map +7 -0
  82. package/dist/dev/locales/{nb-NO-BMB73KRH.js → nb-NO-4DCTQT6L.js} +220 -62
  83. package/dist/dev/locales/nb-NO-4DCTQT6L.js.map +7 -0
  84. package/dist/dev/locales/{nl-NL-F2257BLQ.js → nl-NL-XGZJ7V2V.js} +297 -139
  85. package/dist/dev/locales/nl-NL-XGZJ7V2V.js.map +7 -0
  86. package/dist/dev/locales/{nn-NO-NCORG7TS.js → nn-NO-FR534JV5.js} +201 -43
  87. package/dist/dev/locales/nn-NO-FR534JV5.js.map +7 -0
  88. package/dist/dev/locales/{oc-FR-ATFBDMF6.js → oc-FR-YQCIKZIK.js} +220 -62
  89. package/dist/dev/locales/oc-FR-YQCIKZIK.js.map +7 -0
  90. package/dist/dev/locales/{pa-IN-D2I375G4.js → pa-IN-UM43JGD2.js} +190 -32
  91. package/dist/dev/locales/pa-IN-UM43JGD2.js.map +7 -0
  92. package/dist/dev/locales/{percentages-YKFLWNK2.js → percentages-OGWD7R2K.js} +2 -2
  93. package/dist/dev/locales/{pl-PL-YJHOWAAW.js → pl-PL-2UGKA6HK.js} +214 -56
  94. package/dist/dev/locales/pl-PL-2UGKA6HK.js.map +7 -0
  95. package/dist/dev/locales/{pt-BR-APOPYZJ7.js → pt-BR-H23QFYE3.js} +237 -79
  96. package/dist/dev/locales/pt-BR-H23QFYE3.js.map +7 -0
  97. package/dist/dev/locales/pt-PT-RHKJH5I5.js +744 -0
  98. package/dist/dev/locales/pt-PT-RHKJH5I5.js.map +7 -0
  99. package/dist/dev/locales/{ro-RO-L575VRQA.js → ro-RO-IIFONL3T.js} +203 -45
  100. package/dist/dev/locales/ro-RO-IIFONL3T.js.map +7 -0
  101. package/dist/dev/locales/{ru-RU-BLG6HZG5.js → ru-RU-QEP6D7GK.js} +253 -95
  102. package/dist/dev/locales/ru-RU-QEP6D7GK.js.map +7 -0
  103. package/dist/dev/locales/si-LK-LZYJQLHF.js +744 -0
  104. package/dist/dev/locales/si-LK-LZYJQLHF.js.map +7 -0
  105. package/dist/dev/locales/{sk-SK-DY6IPO5U.js → sk-SK-RWC6UWGY.js} +200 -42
  106. package/dist/dev/locales/sk-SK-RWC6UWGY.js.map +7 -0
  107. package/dist/dev/locales/{sl-SI-5DZSRA47.js → sl-SI-QJT2CAUO.js} +197 -39
  108. package/dist/dev/locales/sl-SI-QJT2CAUO.js.map +7 -0
  109. package/dist/dev/locales/{sv-SE-V32YHALQ.js → sv-SE-3MAT3NDX.js} +202 -44
  110. package/dist/dev/locales/sv-SE-3MAT3NDX.js.map +7 -0
  111. package/dist/dev/locales/{ta-IN-5JRAGQAO.js → ta-IN-J7XOYF2T.js} +257 -99
  112. package/dist/dev/locales/ta-IN-J7XOYF2T.js.map +7 -0
  113. package/dist/dev/locales/{th-TH-55ACRHDJ.js → th-TH-2OI52EOQ.js} +289 -131
  114. package/dist/dev/locales/th-TH-2OI52EOQ.js.map +7 -0
  115. package/dist/dev/locales/{tr-TR-7QYBXDBO.js → tr-TR-G7TAUHUI.js} +257 -99
  116. package/dist/dev/locales/tr-TR-G7TAUHUI.js.map +7 -0
  117. package/dist/dev/locales/{uk-UA-TJS2TMRH.js → uk-UA-IVSVBJIG.js} +229 -71
  118. package/dist/dev/locales/uk-UA-IVSVBJIG.js.map +7 -0
  119. package/dist/dev/locales/{si-LK-KT7GGO6D.js → uz-UZ-KCVDUVDE.js} +212 -54
  120. package/dist/dev/locales/uz-UZ-KCVDUVDE.js.map +7 -0
  121. package/dist/dev/locales/vi-VN-KBZAVWP5.js +744 -0
  122. package/dist/dev/locales/vi-VN-KBZAVWP5.js.map +7 -0
  123. package/dist/dev/locales/{zh-CN-4MXUOFTH.js → zh-CN-IS26RG2D.js} +199 -41
  124. package/dist/dev/locales/zh-CN-IS26RG2D.js.map +7 -0
  125. package/dist/dev/locales/{zh-HK-RBTGIU3U.js → zh-HK-KBWQ6SJC.js} +175 -17
  126. package/dist/dev/locales/zh-HK-KBWQ6SJC.js.map +7 -0
  127. package/dist/dev/locales/{zh-TW-U5VF4CCU.js → zh-TW-JKJWJQ4J.js} +204 -46
  128. package/dist/dev/locales/zh-TW-JKJWJQ4J.js.map +7 -0
  129. package/dist/dev/subset-shared.chunk.js +2 -2
  130. package/dist/dev/subset-worker.chunk.js +2 -2
  131. package/dist/prod/chunk-AJI3LATG.js +1 -0
  132. package/dist/prod/{chunk-GF46JCB3.js → chunk-EODSYFCR.js} +7 -7
  133. package/dist/prod/chunk-R7EP47KM.js +4 -0
  134. package/dist/prod/{chunk-LS7FJGPW.js → chunk-Z5NKEFVG.js} +8 -8
  135. package/dist/prod/data/{image-NWF7UX55.js → image-WVUQOLPF.js} +1 -1
  136. package/dist/prod/index.css +1 -1
  137. package/dist/prod/index.js +34 -25
  138. package/dist/prod/locales/ar-SA-IYHKZRSE.js +8 -0
  139. package/dist/prod/locales/az-AZ-WL5GYRHK.js +1 -0
  140. package/dist/prod/locales/bg-BG-FXZYTRPD.js +5 -0
  141. package/dist/prod/locales/bn-BD-KO6YL5G2.js +3 -0
  142. package/dist/prod/locales/bn-IN-PC6JHKYB.js +3 -0
  143. package/dist/prod/locales/ca-ES-AREX5NEO.js +8 -0
  144. package/dist/prod/locales/cs-CZ-HXAZMFYH.js +7 -0
  145. package/dist/prod/locales/da-DK-5X7ZLFU3.js +2 -0
  146. package/dist/prod/locales/de-CH-76ZNVSOF.js +7 -0
  147. package/dist/prod/locales/de-DE-G3JVZ4MQ.js +7 -0
  148. package/dist/prod/locales/el-GR-4AZTZGY6.js +7 -0
  149. package/dist/prod/locales/en-2SFQVNRK.js +1 -0
  150. package/dist/prod/locales/es-ES-ART7BI3G.js +7 -0
  151. package/dist/prod/locales/eu-ES-BIF4XBMT.js +7 -0
  152. package/dist/prod/locales/fa-IR-D4HHKAAI.js +9 -0
  153. package/dist/prod/locales/fi-FI-O35ZY7UI.js +6 -0
  154. package/dist/prod/locales/fr-FR-XEFNCM4I.js +12 -0
  155. package/dist/prod/locales/gl-ES-U4NYM3X5.js +6 -0
  156. package/dist/prod/locales/he-IL-656ABAVQ.js +8 -0
  157. package/dist/prod/locales/hi-IN-Z55GAFFR.js +3 -0
  158. package/dist/prod/locales/hu-HU-UJ62DVIW.js +3 -0
  159. package/dist/prod/locales/id-ID-FLZFU3OO.js +8 -0
  160. package/dist/prod/locales/it-IT-GIGIGIBJ.js +12 -0
  161. package/dist/prod/locales/ja-JP-43VXGDWI.js +7 -0
  162. package/dist/prod/locales/kaa-L3IMSDYL.js +1 -0
  163. package/dist/prod/locales/kab-KAB-XKPWJLNL.js +4 -0
  164. package/dist/prod/locales/kk-KZ-SXPDDY2H.js +1 -0
  165. package/dist/prod/locales/km-KH-DOS4CPGC.js +7 -0
  166. package/dist/prod/locales/ko-KR-BGC6VCY4.js +5 -0
  167. package/dist/prod/locales/ku-TR-J7IUITIA.js +6 -0
  168. package/dist/prod/locales/lt-LT-AC3LV5KG.js +3 -0
  169. package/dist/prod/locales/lv-LV-I6AY7QG2.js +4 -0
  170. package/dist/prod/locales/mr-IN-5SP4HV5B.js +9 -0
  171. package/dist/prod/locales/my-MM-S7ECRBYZ.js +1 -0
  172. package/dist/prod/locales/nb-NO-6PNHTF4R.js +8 -0
  173. package/dist/prod/locales/nl-NL-R4C4SUIG.js +13 -0
  174. package/dist/prod/locales/nn-NO-3TFXTM7Y.js +4 -0
  175. package/dist/prod/locales/oc-FR-IK6GIE7H.js +4 -0
  176. package/dist/prod/locales/pa-IN-YAKHYJET.js +4 -0
  177. package/dist/prod/locales/percentages-OL6W367U.js +1 -0
  178. package/dist/prod/locales/pl-PL-BIY22ZWU.js +12 -0
  179. package/dist/prod/locales/pt-BR-Q23NUPD6.js +6 -0
  180. package/dist/prod/locales/pt-PT-LOPEJLPJ.js +8 -0
  181. package/dist/prod/locales/ro-RO-W3D2ZATV.js +12 -0
  182. package/dist/prod/locales/ru-RU-DCTW7QSH.js +10 -0
  183. package/dist/prod/locales/si-LK-FYRRHO3C.js +1 -0
  184. package/dist/prod/locales/sk-SK-MC7UOHQO.js +7 -0
  185. package/dist/prod/locales/sl-SI-L6B6HFY5.js +6 -0
  186. package/dist/prod/locales/sv-SE-KMY6L2BA.js +8 -0
  187. package/dist/prod/locales/ta-IN-ZQCYE2JK.js +6 -0
  188. package/dist/prod/locales/th-TH-WS7ECBAV.js +1 -0
  189. package/dist/prod/locales/tr-TR-S5FI7JRW.js +4 -0
  190. package/dist/prod/locales/uk-UA-4EZUWUSQ.js +6 -0
  191. package/dist/prod/locales/uz-UZ-OKHL6AFA.js +1 -0
  192. package/dist/prod/locales/vi-VN-K34TWHF7.js +7 -0
  193. package/dist/prod/locales/zh-CN-JE4UZWNO.js +11 -0
  194. package/dist/prod/locales/zh-HK-RM35YDXX.js +1 -0
  195. package/dist/prod/locales/zh-TW-ONGLV6Y5.js +9 -0
  196. package/dist/prod/subset-shared.chunk.js +1 -1
  197. package/dist/prod/subset-worker.chunk.js +1 -1
  198. package/dist/types/common/src/bounds.d.ts +10 -0
  199. package/dist/types/common/src/colors.d.ts +59 -39
  200. package/dist/types/common/src/constants.d.ts +15 -27
  201. package/dist/types/common/src/editorInterface.d.ts +34 -0
  202. package/dist/types/common/src/font-metadata.d.ts +1 -3
  203. package/dist/types/common/src/index.d.ts +2 -0
  204. package/dist/types/common/src/keys.d.ts +1 -1
  205. package/dist/types/common/src/utility-types.d.ts +0 -1
  206. package/dist/types/common/src/utils.d.ts +47 -35
  207. package/dist/types/element/src/Scene.d.ts +3 -3
  208. package/dist/types/element/src/binding.d.ts +58 -44
  209. package/dist/types/element/src/bounds.d.ts +2 -10
  210. package/dist/types/element/src/collision.d.ts +6 -2
  211. package/dist/types/element/src/comparisons.d.ts +7 -7
  212. package/dist/types/element/src/dragElements.d.ts +3 -3
  213. package/dist/types/element/src/duplicate.d.ts +3 -3
  214. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  215. package/dist/types/element/src/frame.d.ts +5 -1
  216. package/dist/types/element/src/heading.d.ts +2 -1
  217. package/dist/types/element/src/image.d.ts +1 -11
  218. package/dist/types/element/src/index.d.ts +1 -3
  219. package/dist/types/element/src/linearElementEditor.d.ts +16 -20
  220. package/dist/types/element/src/mutateElement.d.ts +3 -1
  221. package/dist/types/element/src/newElement.d.ts +6 -6
  222. package/dist/types/element/src/renderElement.d.ts +1 -7
  223. package/dist/types/element/src/resizeElements.d.ts +10 -10
  224. package/dist/types/element/src/resizeTest.d.ts +6 -5
  225. package/dist/types/element/src/selection.d.ts +3 -7
  226. package/dist/types/element/src/shape.d.ts +8 -7
  227. package/dist/types/element/src/textMeasurements.d.ts +1 -3
  228. package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
  229. package/dist/types/element/src/transformHandles.d.ts +8 -27
  230. package/dist/types/element/src/typeChecks.d.ts +4 -7
  231. package/dist/types/element/src/types.d.ts +7 -11
  232. package/dist/types/element/src/utils.d.ts +5 -2
  233. package/dist/types/element/src/zindex.d.ts +7 -1
  234. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +78 -136
  235. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
  236. package/dist/types/excalidraw/actions/actionBoundText.d.ts +57 -96
  237. package/dist/types/excalidraw/actions/actionCanvas.d.ts +341 -763
  238. package/dist/types/excalidraw/actions/actionClipboard.d.ts +76 -876
  239. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +27 -47
  240. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +92 -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 +23 -45
  244. package/dist/types/excalidraw/actions/actionElementLock.d.ts +56 -95
  245. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +28 -48
  246. package/dist/types/excalidraw/actions/actionExport.d.ts +124 -1129
  247. package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
  248. package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
  249. package/dist/types/excalidraw/actions/actionFrame.d.ts +193 -308
  250. package/dist/types/excalidraw/actions/actionGroup.d.ts +60 -107
  251. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +117 -177
  252. package/dist/types/excalidraw/actions/actionLink.d.ts +26 -46
  253. package/dist/types/excalidraw/actions/actionMenu.d.ts +21 -43
  254. package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
  255. package/dist/types/excalidraw/actions/actionProperties.d.ts +117 -2560
  256. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +30 -54
  257. package/dist/types/excalidraw/actions/actionStyles.d.ts +27 -47
  258. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  259. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +27 -47
  260. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +27 -47
  261. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +20 -42
  262. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  263. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +27 -47
  264. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +27 -47
  265. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +28 -48
  266. package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
  267. package/dist/types/excalidraw/actions/register.d.ts +2 -2
  268. package/dist/types/excalidraw/actions/types.d.ts +3 -3
  269. package/dist/types/excalidraw/appState.d.ts +7 -6
  270. package/dist/types/excalidraw/clipboard.d.ts +7 -31
  271. package/dist/types/excalidraw/components/Actions.d.ts +5 -2
  272. package/dist/types/excalidraw/components/App.d.ts +58 -58
  273. package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +1 -1
  274. package/dist/types/excalidraw/components/Card.d.ts +1 -3
  275. package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
  276. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
  277. package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
  278. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
  279. package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
  280. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
  281. package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
  282. package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
  283. package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
  284. package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
  285. package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
  286. package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
  287. package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
  288. package/dist/types/excalidraw/components/FilledButton.d.ts +2 -1
  289. package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
  290. package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
  291. package/dist/types/excalidraw/components/HintViewer.d.ts +4 -3
  292. package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
  293. package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
  294. package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
  295. package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
  296. package/dist/types/excalidraw/components/LinkButton.d.ts +4 -0
  297. package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
  298. package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -1
  299. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
  300. package/dist/types/excalidraw/components/Modal.d.ts +0 -1
  301. package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
  302. package/dist/types/excalidraw/components/Popover.d.ts +2 -1
  303. package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
  304. package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
  305. package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
  306. package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
  307. package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
  308. package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
  309. package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
  310. package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
  311. package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
  312. package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
  313. package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
  314. package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
  315. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
  316. package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
  317. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  318. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
  319. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
  320. package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
  321. package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
  322. package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
  323. package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
  324. package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
  325. package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
  326. package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
  327. package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
  328. package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
  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 +1 -1
  333. package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +9 -0
  334. package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
  335. package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
  336. package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
  337. package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
  338. package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
  339. package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
  340. package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
  341. package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
  342. package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
  343. package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
  344. package/dist/types/excalidraw/components/Toast.d.ts +3 -3
  345. package/dist/types/excalidraw/components/Trans.d.ts +2 -2
  346. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -3
  347. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -33
  348. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
  349. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
  350. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +12 -19
  351. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
  352. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
  353. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
  354. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
  355. package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
  356. package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
  357. package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
  358. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
  359. package/dist/types/excalidraw/components/icons.d.ts +21 -12
  360. package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
  361. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
  362. package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -32
  363. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
  364. package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
  365. package/dist/types/excalidraw/data/blob.d.ts +321 -3
  366. package/dist/types/excalidraw/data/encode.d.ts +4 -4
  367. package/dist/types/excalidraw/data/encryption.d.ts +5 -5
  368. package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
  369. package/dist/types/excalidraw/data/index.d.ts +3 -3
  370. package/dist/types/excalidraw/data/json.d.ts +159 -2
  371. package/dist/types/excalidraw/data/library.d.ts +24 -9
  372. package/dist/types/excalidraw/data/restore.d.ts +25 -10
  373. package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
  374. package/dist/types/excalidraw/errors.d.ts +14 -0
  375. package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
  376. package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
  377. package/dist/types/excalidraw/i18n.d.ts +2 -2
  378. package/dist/types/excalidraw/index.d.ts +6 -7
  379. package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
  380. package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
  381. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
  382. package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
  383. package/dist/types/excalidraw/scene/export.d.ts +2 -2
  384. package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
  385. package/dist/types/excalidraw/scene/types.d.ts +22 -5
  386. package/dist/types/excalidraw/shortcut.d.ts +1 -0
  387. package/dist/types/excalidraw/snapping.d.ts +5 -5
  388. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
  389. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
  390. package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
  391. package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
  392. package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
  393. package/dist/types/excalidraw/types.d.ts +22 -20
  394. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
  395. package/dist/types/math/src/polygon.d.ts +2 -2
  396. package/dist/types/math/src/range.d.ts +1 -3
  397. package/dist/types/math/src/segment.d.ts +3 -3
  398. package/dist/types/utils/src/bbox.d.ts +1 -1
  399. package/dist/types/utils/src/export.d.ts +5 -5
  400. package/dist/types/utils/src/shape.d.ts +6 -6
  401. package/dist/types/utils/src/withinBounds.d.ts +2 -2
  402. package/package.json +7 -8
  403. package/dist/dev/chunk-MFAYKRVR.js +0 -66
  404. package/dist/dev/chunk-MFAYKRVR.js.map +0 -7
  405. package/dist/dev/chunk-PWQMCSHA.js.map +0 -7
  406. package/dist/dev/chunk-YMRX7R7U.js.map +0 -7
  407. package/dist/dev/locales/ar-SA-XORAP2EK.js.map +0 -7
  408. package/dist/dev/locales/az-AZ-NAUU3Z4Y.js.map +0 -7
  409. package/dist/dev/locales/bg-BG-AAABLFCY.js.map +0 -7
  410. package/dist/dev/locales/bn-BD-PM4AC5WG.js.map +0 -7
  411. package/dist/dev/locales/ca-ES-YNNMFRQX.js.map +0 -7
  412. package/dist/dev/locales/cs-CZ-DGZA5IKG.js.map +0 -7
  413. package/dist/dev/locales/da-DK-N76F4QAJ.js.map +0 -7
  414. package/dist/dev/locales/de-DE-DMRXZ2SZ.js.map +0 -7
  415. package/dist/dev/locales/el-GR-HIKPLEXI.js.map +0 -7
  416. package/dist/dev/locales/es-ES-AQYVXC32.js.map +0 -7
  417. package/dist/dev/locales/eu-ES-3TOEU5DE.js.map +0 -7
  418. package/dist/dev/locales/fa-IR-527GAKUP.js.map +0 -7
  419. package/dist/dev/locales/fi-FI-M3WLVDFP.js.map +0 -7
  420. package/dist/dev/locales/fr-FR-YE4VDJFI.js.map +0 -7
  421. package/dist/dev/locales/gl-ES-KMXUYGUN.js.map +0 -7
  422. package/dist/dev/locales/he-IL-4MU5N22B.js +0 -586
  423. package/dist/dev/locales/he-IL-4MU5N22B.js.map +0 -7
  424. package/dist/dev/locales/hi-IN-ZHZNZWFC.js +0 -586
  425. package/dist/dev/locales/hi-IN-ZHZNZWFC.js.map +0 -7
  426. package/dist/dev/locales/hu-HU-VIYZI3X4.js.map +0 -7
  427. package/dist/dev/locales/id-ID-22TWZNLA.js.map +0 -7
  428. package/dist/dev/locales/it-IT-MDEQ2SG3.js.map +0 -7
  429. package/dist/dev/locales/ja-JP-K2DI4W6B.js.map +0 -7
  430. package/dist/dev/locales/kaa-6BPSNM3R.js.map +0 -7
  431. package/dist/dev/locales/kab-KAB-2S7ZURK7.js.map +0 -7
  432. package/dist/dev/locales/kk-KZ-UJPYGRQQ.js.map +0 -7
  433. package/dist/dev/locales/km-KH-M5T5JKUE.js.map +0 -7
  434. package/dist/dev/locales/ko-KR-RQX37SNF.js.map +0 -7
  435. package/dist/dev/locales/ku-TR-5XJDIERL.js.map +0 -7
  436. package/dist/dev/locales/lt-LT-MGUBX6CA.js.map +0 -7
  437. package/dist/dev/locales/lv-LV-MD7N5VHD.js.map +0 -7
  438. package/dist/dev/locales/mr-IN-4XWMNGQC.js.map +0 -7
  439. package/dist/dev/locales/my-MM-O4Z74GN5.js.map +0 -7
  440. package/dist/dev/locales/nb-NO-BMB73KRH.js.map +0 -7
  441. package/dist/dev/locales/nl-NL-F2257BLQ.js.map +0 -7
  442. package/dist/dev/locales/nn-NO-NCORG7TS.js.map +0 -7
  443. package/dist/dev/locales/oc-FR-ATFBDMF6.js.map +0 -7
  444. package/dist/dev/locales/pa-IN-D2I375G4.js.map +0 -7
  445. package/dist/dev/locales/pl-PL-YJHOWAAW.js.map +0 -7
  446. package/dist/dev/locales/pt-BR-APOPYZJ7.js.map +0 -7
  447. package/dist/dev/locales/pt-PT-W56WCN7P.js +0 -586
  448. package/dist/dev/locales/pt-PT-W56WCN7P.js.map +0 -7
  449. package/dist/dev/locales/ro-RO-L575VRQA.js.map +0 -7
  450. package/dist/dev/locales/ru-RU-BLG6HZG5.js.map +0 -7
  451. package/dist/dev/locales/si-LK-KT7GGO6D.js.map +0 -7
  452. package/dist/dev/locales/sk-SK-DY6IPO5U.js.map +0 -7
  453. package/dist/dev/locales/sl-SI-5DZSRA47.js.map +0 -7
  454. package/dist/dev/locales/sv-SE-V32YHALQ.js.map +0 -7
  455. package/dist/dev/locales/ta-IN-5JRAGQAO.js.map +0 -7
  456. package/dist/dev/locales/th-TH-55ACRHDJ.js.map +0 -7
  457. package/dist/dev/locales/tr-TR-7QYBXDBO.js.map +0 -7
  458. package/dist/dev/locales/uk-UA-TJS2TMRH.js.map +0 -7
  459. package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js +0 -586
  460. package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js.map +0 -7
  461. package/dist/dev/locales/zh-CN-4MXUOFTH.js.map +0 -7
  462. package/dist/dev/locales/zh-HK-RBTGIU3U.js.map +0 -7
  463. package/dist/dev/locales/zh-TW-U5VF4CCU.js.map +0 -7
  464. package/dist/prod/chunk-HT4FKTIQ.js +0 -4
  465. package/dist/prod/chunk-Z3N5DIM6.js +0 -1
  466. package/dist/prod/locales/ar-SA-G6X2FPQ2.js +0 -10
  467. package/dist/prod/locales/az-AZ-76LH7QW2.js +0 -1
  468. package/dist/prod/locales/bg-BG-XCXSNQG7.js +0 -5
  469. package/dist/prod/locales/bn-BD-2XOGV67Q.js +0 -5
  470. package/dist/prod/locales/ca-ES-6MX7JW3Y.js +0 -8
  471. package/dist/prod/locales/cs-CZ-2BRQDIVT.js +0 -11
  472. package/dist/prod/locales/da-DK-5WZEPLOC.js +0 -5
  473. package/dist/prod/locales/de-DE-XR44H4JA.js +0 -8
  474. package/dist/prod/locales/el-GR-BZB4AONW.js +0 -10
  475. package/dist/prod/locales/en-LQE6K457.js +0 -1
  476. package/dist/prod/locales/es-ES-U4NZUMDT.js +0 -9
  477. package/dist/prod/locales/eu-ES-A7QVB2H4.js +0 -11
  478. package/dist/prod/locales/fa-IR-HGAKTJCU.js +0 -8
  479. package/dist/prod/locales/fi-FI-Z5N7JZ37.js +0 -6
  480. package/dist/prod/locales/fr-FR-RHASNOE6.js +0 -9
  481. package/dist/prod/locales/gl-ES-HMX3MZ6V.js +0 -10
  482. package/dist/prod/locales/he-IL-6SHJWFNN.js +0 -10
  483. package/dist/prod/locales/hi-IN-IWLTKZ5I.js +0 -4
  484. package/dist/prod/locales/hu-HU-A5ZG7DT2.js +0 -7
  485. package/dist/prod/locales/id-ID-SAP4L64H.js +0 -10
  486. package/dist/prod/locales/it-IT-JPQ66NNP.js +0 -11
  487. package/dist/prod/locales/ja-JP-DBVTYXUO.js +0 -8
  488. package/dist/prod/locales/kaa-6HZHGXH3.js +0 -1
  489. package/dist/prod/locales/kab-KAB-ZGHBKWFO.js +0 -8
  490. package/dist/prod/locales/kk-KZ-P5N5QNE5.js +0 -1
  491. package/dist/prod/locales/km-KH-HSX4SM5Z.js +0 -11
  492. package/dist/prod/locales/ko-KR-MTYHY66A.js +0 -9
  493. package/dist/prod/locales/ku-TR-6OUDTVRD.js +0 -9
  494. package/dist/prod/locales/lt-LT-XHIRWOB4.js +0 -3
  495. package/dist/prod/locales/lv-LV-5QDEKY6T.js +0 -7
  496. package/dist/prod/locales/mr-IN-CRQNXWMA.js +0 -13
  497. package/dist/prod/locales/my-MM-5M5IBNSE.js +0 -1
  498. package/dist/prod/locales/nb-NO-T6EIAALU.js +0 -10
  499. package/dist/prod/locales/nl-NL-IS3SIHDZ.js +0 -8
  500. package/dist/prod/locales/nn-NO-6E72VCQL.js +0 -8
  501. package/dist/prod/locales/oc-FR-POXYY2M6.js +0 -8
  502. package/dist/prod/locales/pa-IN-N4M65BXN.js +0 -4
  503. package/dist/prod/locales/percentages-BXMCSKIN.js +0 -1
  504. package/dist/prod/locales/pl-PL-T2D74RX3.js +0 -9
  505. package/dist/prod/locales/pt-BR-5N22H2LF.js +0 -9
  506. package/dist/prod/locales/pt-PT-UZXXM6DQ.js +0 -9
  507. package/dist/prod/locales/ro-RO-JPDTUUEW.js +0 -11
  508. package/dist/prod/locales/ru-RU-B4JR7IUQ.js +0 -9
  509. package/dist/prod/locales/si-LK-N5RQ5JYF.js +0 -1
  510. package/dist/prod/locales/sk-SK-C5VTKIMK.js +0 -6
  511. package/dist/prod/locales/sl-SI-NN7IZMDC.js +0 -6
  512. package/dist/prod/locales/sv-SE-XGPEYMSR.js +0 -10
  513. package/dist/prod/locales/ta-IN-2NMHFXQM.js +0 -9
  514. package/dist/prod/locales/th-TH-HPSO5L25.js +0 -2
  515. package/dist/prod/locales/tr-TR-DEFEU3FU.js +0 -7
  516. package/dist/prod/locales/uk-UA-QMV73CPH.js +0 -6
  517. package/dist/prod/locales/vi-VN-M7AON7JQ.js +0 -5
  518. package/dist/prod/locales/zh-CN-LNUGB5OW.js +0 -10
  519. package/dist/prod/locales/zh-HK-E62DVLB3.js +0 -1
  520. package/dist/prod/locales/zh-TW-RAJ6MFWO.js +0 -9
  521. /package/dist/dev/{chunk-CP5DND7P.js.map → chunk-Y3BTNZQY.js.map} +0 -0
  522. /package/dist/dev/data/{image-L23D26XS.js.map → image-2BHUUSLM.js.map} +0 -0
  523. /package/dist/dev/locales/{en-V3NQTBPG.js.map → en-JANWVQZF.js.map} +0 -0
  524. /package/dist/dev/locales/{percentages-YKFLWNK2.js.map → percentages-OGWD7R2K.js.map} +0 -0
@@ -1,758 +1,17 @@
1
- /// <reference types="react" />
2
1
  import type { Theme } from "@excalidraw/element/types";
3
2
  import "../components/ToolIcon.scss";
4
- export declare const actionChangeProjectName: {
5
- name: "changeProjectName";
6
- label: string;
7
- trackEvent: false;
8
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
9
- appState: {
10
- name: any;
11
- contextMenu: {
12
- items: import("../components/ContextMenu").ContextMenuItems;
13
- top: number;
14
- left: number;
15
- } | null;
16
- showWelcomeScreen: boolean;
17
- isLoading: boolean;
18
- errorMessage: import("react").ReactNode;
19
- activeEmbeddable: {
20
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
21
- state: "active" | "hover";
22
- } | null;
23
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
24
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
25
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
26
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
27
- isBindingEnabled: boolean;
28
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
29
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
30
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
31
- frameRendering: {
32
- enabled: boolean;
33
- name: boolean;
34
- outline: boolean;
35
- clip: boolean;
36
- };
37
- editingFrame: string | null;
38
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
39
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
40
- activeTool: {
41
- lastActiveTool: import("../types").ActiveTool | null;
42
- locked: boolean;
43
- fromSelection: boolean;
44
- } & import("../types").ActiveTool;
45
- preferredSelectionTool: {
46
- type: "selection" | "lasso";
47
- initialized: boolean;
48
- };
49
- penMode: boolean;
50
- penDetected: boolean;
51
- exportBackground: boolean;
52
- exportEmbedScene: boolean;
53
- exportWithDarkMode: boolean;
54
- exportScale: number;
55
- currentItemStrokeColor: string;
56
- currentItemBackgroundColor: string;
57
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
58
- currentItemStrokeWidth: number;
59
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
60
- currentItemRoughness: number;
61
- currentItemOpacity: number;
62
- currentItemFontFamily: number;
63
- currentItemFontSize: number;
64
- currentItemTextAlign: string;
65
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
66
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
67
- currentHoveredFontFamily: number | null;
68
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
69
- currentItemArrowType: "round" | "sharp" | "elbow";
70
- viewBackgroundColor: string;
71
- scrollX: number;
72
- scrollY: number;
73
- cursorButton: "up" | "down";
74
- scrolledOutside: boolean;
75
- isResizing: boolean;
76
- isRotating: boolean;
77
- zoom: Readonly<{
78
- value: import("../types").NormalizedZoomValue;
79
- }>;
80
- openMenu: "canvas" | null;
81
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
82
- openSidebar: {
83
- name: string;
84
- tab?: string | undefined;
85
- } | null;
86
- openDialog: {
87
- name: "imageExport" | "help" | "jsonExport";
88
- } | {
89
- name: "ttd";
90
- tab: "mermaid" | "text-to-diagram";
91
- } | {
92
- name: "commandPalette";
93
- } | {
94
- name: "elementLinkSelector";
95
- sourceElementId: string;
96
- } | null;
97
- defaultSidebarDockedPreference: boolean;
98
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
99
- selectedElementIds: Readonly<{
100
- [id: string]: true;
101
- }>;
102
- hoveredElementIds: Readonly<{
103
- [id: string]: true;
104
- }>;
105
- previousSelectedElementIds: {
106
- [id: string]: true;
107
- };
108
- selectedElementsAreBeingDragged: boolean;
109
- shouldCacheIgnoreZoom: boolean;
110
- toast: {
111
- message: string;
112
- closable?: boolean | undefined;
113
- duration?: number | undefined;
114
- } | null;
115
- zenModeEnabled: boolean;
116
- theme: Theme;
117
- gridSize: number;
118
- gridStep: number;
119
- gridModeEnabled: boolean;
120
- viewModeEnabled: boolean;
121
- selectedGroupIds: {
122
- [groupId: string]: boolean;
123
- };
124
- editingGroupId: string | null;
125
- width: number;
126
- height: number;
127
- offsetTop: number;
128
- offsetLeft: number;
129
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
130
- collaborators: Map<import("../types").SocketId, Readonly<{
131
- pointer?: import("../types").CollaboratorPointer | undefined;
132
- button?: "up" | "down" | undefined;
133
- selectedElementIds?: Readonly<{
134
- [id: string]: true;
135
- }> | undefined;
136
- username?: string | null | undefined;
137
- userState?: import("@excalidraw/common").UserIdleState | undefined;
138
- color?: {
139
- background: string;
140
- stroke: string;
141
- } | undefined;
142
- avatarUrl?: string | undefined;
143
- id?: string | undefined;
144
- socketId?: import("../types").SocketId | undefined;
145
- isCurrentUser?: boolean | undefined;
146
- isInCall?: boolean | undefined;
147
- isSpeaking?: boolean | undefined;
148
- isMuted?: boolean | undefined;
149
- }>>;
150
- stats: {
151
- open: boolean;
152
- panels: number;
153
- };
154
- currentChartType: import("@excalidraw/element/types").ChartType;
155
- pasteDialog: {
156
- shown: false;
157
- data: null;
158
- } | {
159
- shown: true;
160
- data: import("../charts").Spreadsheet;
161
- };
162
- showHyperlinkPopup: false | "editor" | "info";
163
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
164
- snapLines: readonly import("../snapping").SnapLine[];
165
- originSnapOffset: {
166
- x: number;
167
- y: number;
168
- } | null;
169
- objectsSnapModeEnabled: boolean;
170
- userToFollow: import("../types").UserToFollow | null;
171
- followedBy: Set<import("../types").SocketId>;
172
- isCropping: boolean;
173
- croppingElementId: string | null;
174
- searchMatches: Readonly<{
175
- focusedId: string | null;
176
- matches: readonly import("../types").SearchMatch[];
177
- }> | null;
178
- activeLockedId: string | null;
179
- lockedMultiSelections: {
180
- [groupId: string]: true;
181
- };
182
- stylesPanelMode: "compact" | "full" | "mobile";
183
- };
184
- captureUpdate: "EVENTUALLY";
185
- };
186
- PanelComponent: ({ appState, updateData, appProps, data, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
187
- } & {
188
- keyTest?: undefined;
189
- };
190
- export declare const actionChangeExportScale: {
191
- name: "changeExportScale";
192
- label: string;
193
- trackEvent: {
194
- category: "export";
195
- action: string;
196
- };
197
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
198
- appState: {
199
- exportScale: any;
200
- contextMenu: {
201
- items: import("../components/ContextMenu").ContextMenuItems;
202
- top: number;
203
- left: number;
204
- } | null;
205
- showWelcomeScreen: boolean;
206
- isLoading: boolean;
207
- errorMessage: import("react").ReactNode;
208
- activeEmbeddable: {
209
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
210
- state: "active" | "hover";
211
- } | null;
212
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
213
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
214
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
215
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
216
- isBindingEnabled: boolean;
217
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
218
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
219
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
220
- frameRendering: {
221
- enabled: boolean;
222
- name: boolean;
223
- outline: boolean;
224
- clip: boolean;
225
- };
226
- editingFrame: string | null;
227
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
228
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
229
- activeTool: {
230
- lastActiveTool: import("../types").ActiveTool | null;
231
- locked: boolean;
232
- fromSelection: boolean;
233
- } & import("../types").ActiveTool;
234
- preferredSelectionTool: {
235
- type: "selection" | "lasso";
236
- initialized: boolean;
237
- };
238
- penMode: boolean;
239
- penDetected: boolean;
240
- exportBackground: boolean;
241
- exportEmbedScene: boolean;
242
- exportWithDarkMode: boolean;
243
- currentItemStrokeColor: string;
244
- currentItemBackgroundColor: string;
245
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
246
- currentItemStrokeWidth: number;
247
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
248
- currentItemRoughness: number;
249
- currentItemOpacity: number;
250
- currentItemFontFamily: number;
251
- currentItemFontSize: number;
252
- currentItemTextAlign: string;
253
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
254
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
255
- currentHoveredFontFamily: number | null;
256
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
257
- currentItemArrowType: "round" | "sharp" | "elbow";
258
- viewBackgroundColor: string;
259
- scrollX: number;
260
- scrollY: number;
261
- cursorButton: "up" | "down";
262
- scrolledOutside: boolean;
263
- name: string | null;
264
- isResizing: boolean;
265
- isRotating: boolean;
266
- zoom: Readonly<{
267
- value: import("../types").NormalizedZoomValue;
268
- }>;
269
- openMenu: "canvas" | null;
270
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
271
- openSidebar: {
272
- name: string;
273
- tab?: string | undefined;
274
- } | null;
275
- openDialog: {
276
- name: "imageExport" | "help" | "jsonExport";
277
- } | {
278
- name: "ttd";
279
- tab: "mermaid" | "text-to-diagram";
280
- } | {
281
- name: "commandPalette";
282
- } | {
283
- name: "elementLinkSelector";
284
- sourceElementId: string;
285
- } | null;
286
- defaultSidebarDockedPreference: boolean;
287
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
288
- selectedElementIds: Readonly<{
289
- [id: string]: true;
290
- }>;
291
- hoveredElementIds: Readonly<{
292
- [id: string]: true;
293
- }>;
294
- previousSelectedElementIds: {
295
- [id: string]: true;
296
- };
297
- selectedElementsAreBeingDragged: boolean;
298
- shouldCacheIgnoreZoom: boolean;
299
- toast: {
300
- message: string;
301
- closable?: boolean | undefined;
302
- duration?: number | undefined;
303
- } | null;
304
- zenModeEnabled: boolean;
305
- theme: Theme;
306
- gridSize: number;
307
- gridStep: number;
308
- gridModeEnabled: boolean;
309
- viewModeEnabled: boolean;
310
- selectedGroupIds: {
311
- [groupId: string]: boolean;
312
- };
313
- editingGroupId: string | null;
314
- width: number;
315
- height: number;
316
- offsetTop: number;
317
- offsetLeft: number;
318
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
319
- collaborators: Map<import("../types").SocketId, Readonly<{
320
- pointer?: import("../types").CollaboratorPointer | undefined;
321
- button?: "up" | "down" | undefined;
322
- selectedElementIds?: Readonly<{
323
- [id: string]: true;
324
- }> | undefined;
325
- username?: string | null | undefined;
326
- userState?: import("@excalidraw/common").UserIdleState | undefined;
327
- color?: {
328
- background: string;
329
- stroke: string;
330
- } | undefined;
331
- avatarUrl?: string | undefined;
332
- id?: string | undefined;
333
- socketId?: import("../types").SocketId | undefined;
334
- isCurrentUser?: boolean | undefined;
335
- isInCall?: boolean | undefined;
336
- isSpeaking?: boolean | undefined;
337
- isMuted?: boolean | undefined;
338
- }>>;
339
- stats: {
340
- open: boolean;
341
- panels: number;
342
- };
343
- currentChartType: import("@excalidraw/element/types").ChartType;
344
- pasteDialog: {
345
- shown: false;
346
- data: null;
347
- } | {
348
- shown: true;
349
- data: import("../charts").Spreadsheet;
350
- };
351
- showHyperlinkPopup: false | "editor" | "info";
352
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
353
- snapLines: readonly import("../snapping").SnapLine[];
354
- originSnapOffset: {
355
- x: number;
356
- y: number;
357
- } | null;
358
- objectsSnapModeEnabled: boolean;
359
- userToFollow: import("../types").UserToFollow | null;
360
- followedBy: Set<import("../types").SocketId>;
361
- isCropping: boolean;
362
- croppingElementId: string | null;
363
- searchMatches: Readonly<{
364
- focusedId: string | null;
365
- matches: readonly import("../types").SearchMatch[];
366
- }> | null;
367
- activeLockedId: string | null;
368
- lockedMultiSelections: {
369
- [groupId: string]: true;
370
- };
371
- stylesPanelMode: "compact" | "full" | "mobile";
372
- };
373
- captureUpdate: "EVENTUALLY";
374
- };
375
- PanelComponent: ({ elements: allElements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
376
- } & {
377
- keyTest?: undefined;
378
- };
379
- export declare const actionChangeExportBackground: {
380
- name: "changeExportBackground";
381
- label: string;
382
- trackEvent: {
383
- category: "export";
384
- action: string;
385
- };
386
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
387
- appState: {
388
- exportBackground: any;
389
- contextMenu: {
390
- items: import("../components/ContextMenu").ContextMenuItems;
391
- top: number;
392
- left: number;
393
- } | null;
394
- showWelcomeScreen: boolean;
395
- isLoading: boolean;
396
- errorMessage: import("react").ReactNode;
397
- activeEmbeddable: {
398
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
399
- state: "active" | "hover";
400
- } | null;
401
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
402
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
403
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
404
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
405
- isBindingEnabled: boolean;
406
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
407
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
408
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
409
- frameRendering: {
410
- enabled: boolean;
411
- name: boolean;
412
- outline: boolean;
413
- clip: boolean;
414
- };
415
- editingFrame: string | null;
416
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
417
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
418
- activeTool: {
419
- lastActiveTool: import("../types").ActiveTool | null;
420
- locked: boolean;
421
- fromSelection: boolean;
422
- } & import("../types").ActiveTool;
423
- preferredSelectionTool: {
424
- type: "selection" | "lasso";
425
- initialized: boolean;
426
- };
427
- penMode: boolean;
428
- penDetected: boolean;
429
- exportEmbedScene: boolean;
430
- exportWithDarkMode: boolean;
431
- exportScale: number;
432
- currentItemStrokeColor: string;
433
- currentItemBackgroundColor: string;
434
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
435
- currentItemStrokeWidth: number;
436
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
437
- currentItemRoughness: number;
438
- currentItemOpacity: number;
439
- currentItemFontFamily: number;
440
- currentItemFontSize: number;
441
- currentItemTextAlign: string;
442
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
443
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
444
- currentHoveredFontFamily: number | null;
445
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
446
- currentItemArrowType: "round" | "sharp" | "elbow";
447
- viewBackgroundColor: string;
448
- scrollX: number;
449
- scrollY: number;
450
- cursorButton: "up" | "down";
451
- scrolledOutside: boolean;
452
- name: string | null;
453
- isResizing: boolean;
454
- isRotating: boolean;
455
- zoom: Readonly<{
456
- value: import("../types").NormalizedZoomValue;
457
- }>;
458
- openMenu: "canvas" | null;
459
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
460
- openSidebar: {
461
- name: string;
462
- tab?: string | undefined;
463
- } | null;
464
- openDialog: {
465
- name: "imageExport" | "help" | "jsonExport";
466
- } | {
467
- name: "ttd";
468
- tab: "mermaid" | "text-to-diagram";
469
- } | {
470
- name: "commandPalette";
471
- } | {
472
- name: "elementLinkSelector";
473
- sourceElementId: string;
474
- } | null;
475
- defaultSidebarDockedPreference: boolean;
476
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
477
- selectedElementIds: Readonly<{
478
- [id: string]: true;
479
- }>;
480
- hoveredElementIds: Readonly<{
481
- [id: string]: true;
482
- }>;
483
- previousSelectedElementIds: {
484
- [id: string]: true;
485
- };
486
- selectedElementsAreBeingDragged: boolean;
487
- shouldCacheIgnoreZoom: boolean;
488
- toast: {
489
- message: string;
490
- closable?: boolean | undefined;
491
- duration?: number | undefined;
492
- } | null;
493
- zenModeEnabled: boolean;
494
- theme: Theme;
495
- gridSize: number;
496
- gridStep: number;
497
- gridModeEnabled: boolean;
498
- viewModeEnabled: boolean;
499
- selectedGroupIds: {
500
- [groupId: string]: boolean;
501
- };
502
- editingGroupId: string | null;
503
- width: number;
504
- height: number;
505
- offsetTop: number;
506
- offsetLeft: number;
507
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
508
- collaborators: Map<import("../types").SocketId, Readonly<{
509
- pointer?: import("../types").CollaboratorPointer | undefined;
510
- button?: "up" | "down" | undefined;
511
- selectedElementIds?: Readonly<{
512
- [id: string]: true;
513
- }> | undefined;
514
- username?: string | null | undefined;
515
- userState?: import("@excalidraw/common").UserIdleState | undefined;
516
- color?: {
517
- background: string;
518
- stroke: string;
519
- } | undefined;
520
- avatarUrl?: string | undefined;
521
- id?: string | undefined;
522
- socketId?: import("../types").SocketId | undefined;
523
- isCurrentUser?: boolean | undefined;
524
- isInCall?: boolean | undefined;
525
- isSpeaking?: boolean | undefined;
526
- isMuted?: boolean | undefined;
527
- }>>;
528
- stats: {
529
- open: boolean;
530
- panels: number;
531
- };
532
- currentChartType: import("@excalidraw/element/types").ChartType;
533
- pasteDialog: {
534
- shown: false;
535
- data: null;
536
- } | {
537
- shown: true;
538
- data: import("../charts").Spreadsheet;
539
- };
540
- showHyperlinkPopup: false | "editor" | "info";
541
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
542
- snapLines: readonly import("../snapping").SnapLine[];
543
- originSnapOffset: {
544
- x: number;
545
- y: number;
546
- } | null;
547
- objectsSnapModeEnabled: boolean;
548
- userToFollow: import("../types").UserToFollow | null;
549
- followedBy: Set<import("../types").SocketId>;
550
- isCropping: boolean;
551
- croppingElementId: string | null;
552
- searchMatches: Readonly<{
553
- focusedId: string | null;
554
- matches: readonly import("../types").SearchMatch[];
555
- }> | null;
556
- activeLockedId: string | null;
557
- lockedMultiSelections: {
558
- [groupId: string]: true;
559
- };
560
- stylesPanelMode: "compact" | "full" | "mobile";
561
- };
562
- captureUpdate: "EVENTUALLY";
563
- };
564
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
565
- } & {
566
- keyTest?: undefined;
567
- };
568
- export declare const actionChangeExportEmbedScene: {
569
- name: "changeExportEmbedScene";
570
- label: string;
571
- trackEvent: {
572
- category: "export";
573
- action: string;
574
- };
575
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
576
- appState: {
577
- exportEmbedScene: any;
578
- contextMenu: {
579
- items: import("../components/ContextMenu").ContextMenuItems;
580
- top: number;
581
- left: number;
582
- } | null;
583
- showWelcomeScreen: boolean;
584
- isLoading: boolean;
585
- errorMessage: import("react").ReactNode;
586
- activeEmbeddable: {
587
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
588
- state: "active" | "hover";
589
- } | null;
590
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
591
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
592
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
593
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
594
- isBindingEnabled: boolean;
595
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
596
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
597
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
598
- frameRendering: {
599
- enabled: boolean;
600
- name: boolean;
601
- outline: boolean;
602
- clip: boolean;
603
- };
604
- editingFrame: string | null;
605
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
606
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
607
- activeTool: {
608
- lastActiveTool: import("../types").ActiveTool | null;
609
- locked: boolean;
610
- fromSelection: boolean;
611
- } & import("../types").ActiveTool;
612
- preferredSelectionTool: {
613
- type: "selection" | "lasso";
614
- initialized: boolean;
615
- };
616
- penMode: boolean;
617
- penDetected: boolean;
618
- exportBackground: boolean;
619
- exportWithDarkMode: boolean;
620
- exportScale: number;
621
- currentItemStrokeColor: string;
622
- currentItemBackgroundColor: string;
623
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
624
- currentItemStrokeWidth: number;
625
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
626
- currentItemRoughness: number;
627
- currentItemOpacity: number;
628
- currentItemFontFamily: number;
629
- currentItemFontSize: number;
630
- currentItemTextAlign: string;
631
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
632
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
633
- currentHoveredFontFamily: number | null;
634
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
635
- currentItemArrowType: "round" | "sharp" | "elbow";
636
- viewBackgroundColor: string;
637
- scrollX: number;
638
- scrollY: number;
639
- cursorButton: "up" | "down";
640
- scrolledOutside: boolean;
641
- name: string | null;
642
- isResizing: boolean;
643
- isRotating: boolean;
644
- zoom: Readonly<{
645
- value: import("../types").NormalizedZoomValue;
646
- }>;
647
- openMenu: "canvas" | null;
648
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
649
- openSidebar: {
650
- name: string;
651
- tab?: string | undefined;
652
- } | null;
653
- openDialog: {
654
- name: "imageExport" | "help" | "jsonExport";
655
- } | {
656
- name: "ttd";
657
- tab: "mermaid" | "text-to-diagram";
658
- } | {
659
- name: "commandPalette";
660
- } | {
661
- name: "elementLinkSelector";
662
- sourceElementId: string;
663
- } | null;
664
- defaultSidebarDockedPreference: boolean;
665
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
666
- selectedElementIds: Readonly<{
667
- [id: string]: true;
668
- }>;
669
- hoveredElementIds: Readonly<{
670
- [id: string]: true;
671
- }>;
672
- previousSelectedElementIds: {
673
- [id: string]: true;
674
- };
675
- selectedElementsAreBeingDragged: boolean;
676
- shouldCacheIgnoreZoom: boolean;
677
- toast: {
678
- message: string;
679
- closable?: boolean | undefined;
680
- duration?: number | undefined;
681
- } | null;
682
- zenModeEnabled: boolean;
683
- theme: Theme;
684
- gridSize: number;
685
- gridStep: number;
686
- gridModeEnabled: boolean;
687
- viewModeEnabled: boolean;
688
- selectedGroupIds: {
689
- [groupId: string]: boolean;
690
- };
691
- editingGroupId: string | null;
692
- width: number;
693
- height: number;
694
- offsetTop: number;
695
- offsetLeft: number;
696
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
697
- collaborators: Map<import("../types").SocketId, Readonly<{
698
- pointer?: import("../types").CollaboratorPointer | undefined;
699
- button?: "up" | "down" | undefined;
700
- selectedElementIds?: Readonly<{
701
- [id: string]: true;
702
- }> | undefined;
703
- username?: string | null | undefined;
704
- userState?: import("@excalidraw/common").UserIdleState | undefined;
705
- color?: {
706
- background: string;
707
- stroke: string;
708
- } | undefined;
709
- avatarUrl?: string | undefined;
710
- id?: string | undefined;
711
- socketId?: import("../types").SocketId | undefined;
712
- isCurrentUser?: boolean | undefined;
713
- isInCall?: boolean | undefined;
714
- isSpeaking?: boolean | undefined;
715
- isMuted?: boolean | undefined;
716
- }>>;
717
- stats: {
718
- open: boolean;
719
- panels: number;
720
- };
721
- currentChartType: import("@excalidraw/element/types").ChartType;
722
- pasteDialog: {
723
- shown: false;
724
- data: null;
725
- } | {
726
- shown: true;
727
- data: import("../charts").Spreadsheet;
728
- };
729
- showHyperlinkPopup: false | "editor" | "info";
730
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
731
- snapLines: readonly import("../snapping").SnapLine[];
732
- originSnapOffset: {
733
- x: number;
734
- y: number;
735
- } | null;
736
- objectsSnapModeEnabled: boolean;
737
- userToFollow: import("../types").UserToFollow | null;
738
- followedBy: Set<import("../types").SocketId>;
739
- isCropping: boolean;
740
- croppingElementId: string | null;
741
- searchMatches: Readonly<{
742
- focusedId: string | null;
743
- matches: readonly import("../types").SearchMatch[];
744
- }> | null;
745
- activeLockedId: string | null;
746
- lockedMultiSelections: {
747
- [groupId: string]: true;
748
- };
749
- stylesPanelMode: "compact" | "full" | "mobile";
750
- };
751
- captureUpdate: "EVENTUALLY";
752
- };
753
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
754
- } & {
755
- keyTest?: undefined;
3
+ import type { AppState } from "../types";
4
+ export declare const actionChangeProjectName: import("./types").Action<string | null> & {
5
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
6
+ };
7
+ export declare const actionChangeExportScale: import("./types").Action<number> & {
8
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
9
+ };
10
+ export declare const actionChangeExportBackground: import("./types").Action<boolean> & {
11
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
12
+ };
13
+ export declare const actionChangeExportEmbedScene: import("./types").Action<boolean> & {
14
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
756
15
  };
757
16
  export declare const actionSaveToActiveFile: {
758
17
  name: "saveToActiveFile";
@@ -761,8 +20,8 @@ export declare const actionSaveToActiveFile: {
761
20
  trackEvent: {
762
21
  category: "export";
763
22
  };
764
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
765
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
23
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
24
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
766
25
  captureUpdate: "EVENTUALLY";
767
26
  appState: {
768
27
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -776,10 +35,10 @@ export declare const actionSaveToActiveFile: {
776
35
  } | null;
777
36
  showWelcomeScreen: boolean;
778
37
  isLoading: boolean;
779
- errorMessage: import("react").ReactNode;
38
+ errorMessage: React.ReactNode;
780
39
  activeEmbeddable: {
781
40
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
782
- state: "active" | "hover";
41
+ state: "hover" | "active";
783
42
  } | null;
784
43
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
785
44
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -787,7 +46,7 @@ export declare const actionSaveToActiveFile: {
787
46
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
788
47
  isBindingEnabled: boolean;
789
48
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
790
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
49
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
791
50
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
792
51
  frameRendering: {
793
52
  enabled: boolean;
@@ -815,19 +74,19 @@ export declare const actionSaveToActiveFile: {
815
74
  exportScale: number;
816
75
  currentItemStrokeColor: string;
817
76
  currentItemBackgroundColor: string;
818
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
77
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
819
78
  currentItemStrokeWidth: number;
820
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
79
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
821
80
  currentItemRoughness: number;
822
81
  currentItemOpacity: number;
823
- currentItemFontFamily: number;
82
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
824
83
  currentItemFontSize: number;
825
- currentItemTextAlign: string;
84
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
826
85
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
827
86
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
828
- currentHoveredFontFamily: number | null;
87
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
829
88
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
830
- currentItemArrowType: "round" | "sharp" | "elbow";
89
+ currentItemArrowType: "sharp" | "round" | "elbow";
831
90
  viewBackgroundColor: string;
832
91
  scrollX: number;
833
92
  scrollY: number;
@@ -836,26 +95,26 @@ export declare const actionSaveToActiveFile: {
836
95
  name: string | null;
837
96
  isResizing: boolean;
838
97
  isRotating: boolean;
839
- zoom: Readonly<{
840
- value: import("../types").NormalizedZoomValue;
841
- }>;
98
+ zoom: import("../types").Zoom;
842
99
  openMenu: "canvas" | null;
843
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
100
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
844
101
  openSidebar: {
845
- name: string;
846
- tab?: string | undefined;
102
+ name: import("../types").SidebarName;
103
+ tab?: import("../types").SidebarTabName;
847
104
  } | null;
848
- openDialog: {
105
+ openDialog: null | {
849
106
  name: "imageExport" | "help" | "jsonExport";
850
107
  } | {
851
108
  name: "ttd";
852
- tab: "mermaid" | "text-to-diagram";
109
+ tab: "text-to-diagram" | "mermaid";
853
110
  } | {
854
111
  name: "commandPalette";
112
+ } | {
113
+ name: "settings";
855
114
  } | {
856
115
  name: "elementLinkSelector";
857
- sourceElementId: string;
858
- } | null;
116
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
117
+ };
859
118
  defaultSidebarDockedPreference: boolean;
860
119
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
861
120
  selectedElementIds: Readonly<{
@@ -878,31 +137,12 @@ export declare const actionSaveToActiveFile: {
878
137
  selectedGroupIds: {
879
138
  [groupId: string]: boolean;
880
139
  };
881
- editingGroupId: string | null;
140
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
882
141
  width: number;
883
142
  height: number;
884
143
  offsetTop: number;
885
144
  offsetLeft: number;
886
- collaborators: Map<import("../types").SocketId, Readonly<{
887
- pointer?: import("../types").CollaboratorPointer | undefined;
888
- button?: "up" | "down" | undefined;
889
- selectedElementIds?: Readonly<{
890
- [id: string]: true;
891
- }> | undefined;
892
- username?: string | null | undefined;
893
- userState?: import("@excalidraw/common").UserIdleState | undefined;
894
- color?: {
895
- background: string;
896
- stroke: string;
897
- } | undefined;
898
- avatarUrl?: string | undefined;
899
- id?: string | undefined;
900
- socketId?: import("../types").SocketId | undefined;
901
- isCurrentUser?: boolean | undefined;
902
- isInCall?: boolean | undefined;
903
- isSpeaking?: boolean | undefined;
904
- isMuted?: boolean | undefined;
905
- }>>;
145
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
906
146
  stats: {
907
147
  open: boolean;
908
148
  panels: number;
@@ -915,7 +155,7 @@ export declare const actionSaveToActiveFile: {
915
155
  shown: true;
916
156
  data: import("../charts").Spreadsheet;
917
157
  };
918
- showHyperlinkPopup: false | "editor" | "info";
158
+ showHyperlinkPopup: false | "info" | "editor";
919
159
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
920
160
  snapLines: readonly import("../snapping").SnapLine[];
921
161
  originSnapOffset: {
@@ -926,16 +166,16 @@ export declare const actionSaveToActiveFile: {
926
166
  userToFollow: import("../types").UserToFollow | null;
927
167
  followedBy: Set<import("../types").SocketId>;
928
168
  isCropping: boolean;
929
- croppingElementId: string | null;
169
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
930
170
  searchMatches: Readonly<{
931
- focusedId: string | null;
171
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
932
172
  matches: readonly import("../types").SearchMatch[];
933
173
  }> | null;
934
174
  activeLockedId: string | null;
935
175
  lockedMultiSelections: {
936
176
  [groupId: string]: true;
937
177
  };
938
- stylesPanelMode: "compact" | "full" | "mobile";
178
+ bindMode: import("@excalidraw/element/types").BindMode;
939
179
  };
940
180
  } | {
941
181
  captureUpdate: "EVENTUALLY";
@@ -953,7 +193,7 @@ export declare const actionSaveFileToDisk: {
953
193
  trackEvent: {
954
194
  category: "export";
955
195
  };
956
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any, app: import("../types").AppClassProperties) => Promise<{
196
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: unknown, app: import("../types").AppClassProperties) => Promise<{
957
197
  captureUpdate: "EVENTUALLY";
958
198
  appState: {
959
199
  openDialog: null;
@@ -968,10 +208,10 @@ export declare const actionSaveFileToDisk: {
968
208
  } | null;
969
209
  showWelcomeScreen: boolean;
970
210
  isLoading: boolean;
971
- errorMessage: import("react").ReactNode;
211
+ errorMessage: React.ReactNode;
972
212
  activeEmbeddable: {
973
213
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
974
- state: "active" | "hover";
214
+ state: "hover" | "active";
975
215
  } | null;
976
216
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
977
217
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -979,7 +219,7 @@ export declare const actionSaveFileToDisk: {
979
219
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
980
220
  isBindingEnabled: boolean;
981
221
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
982
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
222
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
983
223
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
984
224
  frameRendering: {
985
225
  enabled: boolean;
@@ -1007,19 +247,19 @@ export declare const actionSaveFileToDisk: {
1007
247
  exportScale: number;
1008
248
  currentItemStrokeColor: string;
1009
249
  currentItemBackgroundColor: string;
1010
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
250
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1011
251
  currentItemStrokeWidth: number;
1012
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
252
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1013
253
  currentItemRoughness: number;
1014
254
  currentItemOpacity: number;
1015
- currentItemFontFamily: number;
255
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1016
256
  currentItemFontSize: number;
1017
- currentItemTextAlign: string;
257
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1018
258
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1019
259
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1020
- currentHoveredFontFamily: number | null;
260
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1021
261
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1022
- currentItemArrowType: "round" | "sharp" | "elbow";
262
+ currentItemArrowType: "sharp" | "round" | "elbow";
1023
263
  viewBackgroundColor: string;
1024
264
  scrollX: number;
1025
265
  scrollY: number;
@@ -1028,14 +268,12 @@ export declare const actionSaveFileToDisk: {
1028
268
  name: string | null;
1029
269
  isResizing: boolean;
1030
270
  isRotating: boolean;
1031
- zoom: Readonly<{
1032
- value: import("../types").NormalizedZoomValue;
1033
- }>;
271
+ zoom: import("../types").Zoom;
1034
272
  openMenu: "canvas" | null;
1035
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
273
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1036
274
  openSidebar: {
1037
- name: string;
1038
- tab?: string | undefined;
275
+ name: import("../types").SidebarName;
276
+ tab?: import("../types").SidebarTabName;
1039
277
  } | null;
1040
278
  defaultSidebarDockedPreference: boolean;
1041
279
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
@@ -1059,31 +297,12 @@ export declare const actionSaveFileToDisk: {
1059
297
  selectedGroupIds: {
1060
298
  [groupId: string]: boolean;
1061
299
  };
1062
- editingGroupId: string | null;
300
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1063
301
  width: number;
1064
302
  height: number;
1065
303
  offsetTop: number;
1066
304
  offsetLeft: number;
1067
- collaborators: Map<import("../types").SocketId, Readonly<{
1068
- pointer?: import("../types").CollaboratorPointer | undefined;
1069
- button?: "up" | "down" | undefined;
1070
- selectedElementIds?: Readonly<{
1071
- [id: string]: true;
1072
- }> | undefined;
1073
- username?: string | null | undefined;
1074
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1075
- color?: {
1076
- background: string;
1077
- stroke: string;
1078
- } | undefined;
1079
- avatarUrl?: string | undefined;
1080
- id?: string | undefined;
1081
- socketId?: import("../types").SocketId | undefined;
1082
- isCurrentUser?: boolean | undefined;
1083
- isInCall?: boolean | undefined;
1084
- isSpeaking?: boolean | undefined;
1085
- isMuted?: boolean | undefined;
1086
- }>>;
305
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1087
306
  stats: {
1088
307
  open: boolean;
1089
308
  panels: number;
@@ -1096,7 +315,7 @@ export declare const actionSaveFileToDisk: {
1096
315
  shown: true;
1097
316
  data: import("../charts").Spreadsheet;
1098
317
  };
1099
- showHyperlinkPopup: false | "editor" | "info";
318
+ showHyperlinkPopup: false | "info" | "editor";
1100
319
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1101
320
  snapLines: readonly import("../snapping").SnapLine[];
1102
321
  originSnapOffset: {
@@ -1107,16 +326,16 @@ export declare const actionSaveFileToDisk: {
1107
326
  userToFollow: import("../types").UserToFollow | null;
1108
327
  followedBy: Set<import("../types").SocketId>;
1109
328
  isCropping: boolean;
1110
- croppingElementId: string | null;
329
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1111
330
  searchMatches: Readonly<{
1112
- focusedId: string | null;
331
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1113
332
  matches: readonly import("../types").SearchMatch[];
1114
333
  }> | null;
1115
334
  activeLockedId: string | null;
1116
335
  lockedMultiSelections: {
1117
336
  [groupId: string]: true;
1118
337
  };
1119
- stylesPanelMode: "compact" | "full" | "mobile";
338
+ bindMode: import("@excalidraw/element/types").BindMode;
1120
339
  };
1121
340
  } | {
1122
341
  captureUpdate: "EVENTUALLY";
@@ -1133,11 +352,12 @@ export declare const actionLoadScene: {
1133
352
  trackEvent: {
1134
353
  category: "export";
1135
354
  };
1136
- predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1137
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: any, app: import("../types").AppClassProperties) => Promise<false | {
355
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
356
+ perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<false | {
1138
357
  elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
1139
358
  appState: {
1140
359
  viewBackgroundColor: string;
360
+ theme: Theme;
1141
361
  frameRendering: {
1142
362
  enabled: boolean;
1143
363
  name: boolean;
@@ -1145,32 +365,31 @@ export declare const actionLoadScene: {
1145
365
  clip: boolean;
1146
366
  };
1147
367
  name: string | null;
1148
- zoom: Readonly<{
1149
- value: import("../types").NormalizedZoomValue;
1150
- }>;
368
+ zoom: import("../types").Zoom;
1151
369
  scrollX: number;
1152
370
  scrollY: number;
1153
371
  viewModeEnabled: boolean;
1154
- openDialog: {
372
+ openDialog: null | {
1155
373
  name: "imageExport" | "help" | "jsonExport";
1156
374
  } | {
1157
375
  name: "ttd";
1158
- tab: "mermaid" | "text-to-diagram";
376
+ tab: "text-to-diagram" | "mermaid";
1159
377
  } | {
1160
378
  name: "commandPalette";
379
+ } | {
380
+ name: "settings";
1161
381
  } | {
1162
382
  name: "elementLinkSelector";
1163
- sourceElementId: string;
1164
- } | null;
1165
- editingGroupId: string | null;
383
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
384
+ };
385
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1166
386
  selectedElementIds: Readonly<{
1167
387
  [id: string]: true;
1168
388
  }>;
1169
389
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1170
- theme: Theme;
1171
390
  activeEmbeddable: {
1172
391
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1173
- state: "active" | "hover";
392
+ state: "hover" | "active";
1174
393
  } | null;
1175
394
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1176
395
  selectedGroupIds: {
@@ -1178,40 +397,29 @@ export declare const actionLoadScene: {
1178
397
  };
1179
398
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1180
399
  multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
400
+ newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1181
401
  isBindingEnabled: boolean;
1182
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
402
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1183
403
  isRotating: boolean;
1184
404
  elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1185
- collaborators: Map<import("../types").SocketId, Readonly<{
1186
- pointer?: import("../types").CollaboratorPointer | undefined;
1187
- button?: "up" | "down" | undefined;
1188
- selectedElementIds?: Readonly<{
1189
- [id: string]: true;
1190
- }> | undefined;
1191
- username?: string | null | undefined;
1192
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1193
- color?: {
1194
- background: string;
1195
- stroke: string;
1196
- } | undefined;
1197
- avatarUrl?: string | undefined;
1198
- id?: string | undefined;
1199
- socketId?: import("../types").SocketId | undefined;
1200
- isCurrentUser?: boolean | undefined;
1201
- isInCall?: boolean | undefined;
1202
- isSpeaking?: boolean | undefined;
1203
- isMuted?: boolean | undefined;
1204
- }>>;
405
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1205
406
  snapLines: readonly import("../snapping").SnapLine[];
1206
407
  zenModeEnabled: boolean;
1207
408
  editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1208
409
  isCropping: boolean;
1209
- croppingElementId: string | null;
410
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1210
411
  searchMatches: Readonly<{
1211
- focusedId: string | null;
412
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1212
413
  matches: readonly import("../types").SearchMatch[];
1213
414
  }> | null;
1214
415
  activeLockedId: string | null;
416
+ hoveredElementIds: Readonly<{
417
+ [id: string]: true;
418
+ }>;
419
+ shouldCacheIgnoreZoom: boolean;
420
+ exportScale: number;
421
+ bindMode: import("@excalidraw/element/types").BindMode;
422
+ gridSize: number;
1215
423
  contextMenu: {
1216
424
  items: import("../components/ContextMenu").ContextMenuItems;
1217
425
  top: number;
@@ -1219,8 +427,7 @@ export declare const actionLoadScene: {
1219
427
  } | null;
1220
428
  showWelcomeScreen: boolean;
1221
429
  isLoading: boolean;
1222
- errorMessage: import("react").ReactNode;
1223
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
430
+ errorMessage: React.ReactNode;
1224
431
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1225
432
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1226
433
  editingFrame: string | null;
@@ -1238,47 +445,41 @@ export declare const actionLoadScene: {
1238
445
  exportBackground: boolean;
1239
446
  exportEmbedScene: boolean;
1240
447
  exportWithDarkMode: boolean;
1241
- exportScale: number;
1242
448
  currentItemStrokeColor: string;
1243
449
  currentItemBackgroundColor: string;
1244
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
450
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1245
451
  currentItemStrokeWidth: number;
1246
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
452
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1247
453
  currentItemRoughness: number;
1248
454
  currentItemOpacity: number;
1249
- currentItemFontFamily: number;
455
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1250
456
  currentItemFontSize: number;
1251
- currentItemTextAlign: string;
457
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1252
458
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1253
459
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1254
- currentHoveredFontFamily: number | null;
460
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1255
461
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1256
- currentItemArrowType: "round" | "sharp" | "elbow";
462
+ currentItemArrowType: "sharp" | "round" | "elbow";
1257
463
  cursorButton: "up" | "down";
1258
464
  scrolledOutside: boolean;
1259
465
  isResizing: boolean;
1260
466
  openMenu: "canvas" | null;
1261
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
467
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1262
468
  openSidebar: {
1263
- name: string;
1264
- tab?: string | undefined;
469
+ name: import("../types").SidebarName;
470
+ tab?: import("../types").SidebarTabName;
1265
471
  } | null;
1266
472
  defaultSidebarDockedPreference: boolean;
1267
473
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1268
- hoveredElementIds: Readonly<{
1269
- [id: string]: true;
1270
- }>;
1271
474
  previousSelectedElementIds: {
1272
475
  [id: string]: true;
1273
476
  };
1274
477
  selectedElementsAreBeingDragged: boolean;
1275
- shouldCacheIgnoreZoom: boolean;
1276
478
  toast: {
1277
479
  message: string;
1278
- closable?: boolean | undefined;
1279
- duration?: number | undefined;
480
+ closable?: boolean;
481
+ duration?: number;
1280
482
  } | null;
1281
- gridSize: number;
1282
483
  gridStep: number;
1283
484
  gridModeEnabled: boolean;
1284
485
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
@@ -1294,7 +495,7 @@ export declare const actionLoadScene: {
1294
495
  shown: true;
1295
496
  data: import("../charts").Spreadsheet;
1296
497
  };
1297
- showHyperlinkPopup: false | "editor" | "info";
498
+ showHyperlinkPopup: false | "info" | "editor";
1298
499
  originSnapOffset: {
1299
500
  x: number;
1300
501
  y: number;
@@ -1305,7 +506,6 @@ export declare const actionLoadScene: {
1305
506
  lockedMultiSelections: {
1306
507
  [groupId: string]: true;
1307
508
  };
1308
- stylesPanelMode: "compact" | "full" | "mobile";
1309
509
  };
1310
510
  files: import("../types").BinaryFiles;
1311
511
  captureUpdate: "IMMEDIATELY";
@@ -1322,7 +522,7 @@ export declare const actionLoadScene: {
1322
522
  isLoading: boolean;
1323
523
  activeEmbeddable: {
1324
524
  element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1325
- state: "active" | "hover";
525
+ state: "hover" | "active";
1326
526
  } | null;
1327
527
  newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1328
528
  resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
@@ -1330,7 +530,7 @@ export declare const actionLoadScene: {
1330
530
  selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1331
531
  isBindingEnabled: boolean;
1332
532
  startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1333
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
533
+ suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1334
534
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1335
535
  frameRendering: {
1336
536
  enabled: boolean;
@@ -1358,19 +558,19 @@ export declare const actionLoadScene: {
1358
558
  exportScale: number;
1359
559
  currentItemStrokeColor: string;
1360
560
  currentItemBackgroundColor: string;
1361
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
561
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1362
562
  currentItemStrokeWidth: number;
1363
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
563
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1364
564
  currentItemRoughness: number;
1365
565
  currentItemOpacity: number;
1366
- currentItemFontFamily: number;
566
+ currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1367
567
  currentItemFontSize: number;
1368
- currentItemTextAlign: string;
568
+ currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1369
569
  currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1370
570
  currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1371
- currentHoveredFontFamily: number | null;
571
+ currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1372
572
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1373
- currentItemArrowType: "round" | "sharp" | "elbow";
573
+ currentItemArrowType: "sharp" | "round" | "elbow";
1374
574
  viewBackgroundColor: string;
1375
575
  scrollX: number;
1376
576
  scrollY: number;
@@ -1379,26 +579,26 @@ export declare const actionLoadScene: {
1379
579
  name: string | null;
1380
580
  isResizing: boolean;
1381
581
  isRotating: boolean;
1382
- zoom: Readonly<{
1383
- value: import("../types").NormalizedZoomValue;
1384
- }>;
582
+ zoom: import("../types").Zoom;
1385
583
  openMenu: "canvas" | null;
1386
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
584
+ openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1387
585
  openSidebar: {
1388
- name: string;
1389
- tab?: string | undefined;
586
+ name: import("../types").SidebarName;
587
+ tab?: import("../types").SidebarTabName;
1390
588
  } | null;
1391
- openDialog: {
589
+ openDialog: null | {
1392
590
  name: "imageExport" | "help" | "jsonExport";
1393
591
  } | {
1394
592
  name: "ttd";
1395
- tab: "mermaid" | "text-to-diagram";
593
+ tab: "text-to-diagram" | "mermaid";
1396
594
  } | {
1397
595
  name: "commandPalette";
596
+ } | {
597
+ name: "settings";
1398
598
  } | {
1399
599
  name: "elementLinkSelector";
1400
- sourceElementId: string;
1401
- } | null;
600
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
601
+ };
1402
602
  defaultSidebarDockedPreference: boolean;
1403
603
  lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1404
604
  selectedElementIds: Readonly<{
@@ -1414,8 +614,8 @@ export declare const actionLoadScene: {
1414
614
  shouldCacheIgnoreZoom: boolean;
1415
615
  toast: {
1416
616
  message: string;
1417
- closable?: boolean | undefined;
1418
- duration?: number | undefined;
617
+ closable?: boolean;
618
+ duration?: number;
1419
619
  } | null;
1420
620
  zenModeEnabled: boolean;
1421
621
  theme: Theme;
@@ -1426,32 +626,13 @@ export declare const actionLoadScene: {
1426
626
  selectedGroupIds: {
1427
627
  [groupId: string]: boolean;
1428
628
  };
1429
- editingGroupId: string | null;
629
+ editingGroupId: import("@excalidraw/element/types").GroupId | null;
1430
630
  width: number;
1431
631
  height: number;
1432
632
  offsetTop: number;
1433
633
  offsetLeft: number;
1434
634
  fileHandle: import("browser-fs-access").FileSystemHandle | null;
1435
- collaborators: Map<import("../types").SocketId, Readonly<{
1436
- pointer?: import("../types").CollaboratorPointer | undefined;
1437
- button?: "up" | "down" | undefined;
1438
- selectedElementIds?: Readonly<{
1439
- [id: string]: true;
1440
- }> | undefined;
1441
- username?: string | null | undefined;
1442
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1443
- color?: {
1444
- background: string;
1445
- stroke: string;
1446
- } | undefined;
1447
- avatarUrl?: string | undefined;
1448
- id?: string | undefined;
1449
- socketId?: import("../types").SocketId | undefined;
1450
- isCurrentUser?: boolean | undefined;
1451
- isInCall?: boolean | undefined;
1452
- isSpeaking?: boolean | undefined;
1453
- isMuted?: boolean | undefined;
1454
- }>>;
635
+ collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1455
636
  stats: {
1456
637
  open: boolean;
1457
638
  panels: number;
@@ -1464,7 +645,7 @@ export declare const actionLoadScene: {
1464
645
  shown: true;
1465
646
  data: import("../charts").Spreadsheet;
1466
647
  };
1467
- showHyperlinkPopup: false | "editor" | "info";
648
+ showHyperlinkPopup: false | "info" | "editor";
1468
649
  selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1469
650
  snapLines: readonly import("../snapping").SnapLine[];
1470
651
  originSnapOffset: {
@@ -1475,16 +656,16 @@ export declare const actionLoadScene: {
1475
656
  userToFollow: import("../types").UserToFollow | null;
1476
657
  followedBy: Set<import("../types").SocketId>;
1477
658
  isCropping: boolean;
1478
- croppingElementId: string | null;
659
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1479
660
  searchMatches: Readonly<{
1480
- focusedId: string | null;
661
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1481
662
  matches: readonly import("../types").SearchMatch[];
1482
663
  }> | null;
1483
664
  activeLockedId: string | null;
1484
665
  lockedMultiSelections: {
1485
666
  [groupId: string]: true;
1486
667
  };
1487
- stylesPanelMode: "compact" | "full" | "mobile";
668
+ bindMode: import("@excalidraw/element/types").BindMode;
1488
669
  };
1489
670
  files: import("../types").BinaryFiles;
1490
671
  captureUpdate: "EVENTUALLY";
@@ -1493,192 +674,6 @@ export declare const actionLoadScene: {
1493
674
  } & {
1494
675
  keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
1495
676
  };
1496
- export declare const actionExportWithDarkMode: {
1497
- name: "exportWithDarkMode";
1498
- label: string;
1499
- trackEvent: {
1500
- category: "export";
1501
- action: string;
1502
- };
1503
- perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, value: any) => {
1504
- appState: {
1505
- exportWithDarkMode: any;
1506
- contextMenu: {
1507
- items: import("../components/ContextMenu").ContextMenuItems;
1508
- top: number;
1509
- left: number;
1510
- } | null;
1511
- showWelcomeScreen: boolean;
1512
- isLoading: boolean;
1513
- errorMessage: import("react").ReactNode;
1514
- activeEmbeddable: {
1515
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
1516
- state: "active" | "hover";
1517
- } | null;
1518
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1519
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1520
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1521
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1522
- isBindingEnabled: boolean;
1523
- startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
1524
- suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
1525
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1526
- frameRendering: {
1527
- enabled: boolean;
1528
- name: boolean;
1529
- outline: boolean;
1530
- clip: boolean;
1531
- };
1532
- editingFrame: string | null;
1533
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawElement>[] | null;
1534
- editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1535
- activeTool: {
1536
- lastActiveTool: import("../types").ActiveTool | null;
1537
- locked: boolean;
1538
- fromSelection: boolean;
1539
- } & import("../types").ActiveTool;
1540
- preferredSelectionTool: {
1541
- type: "selection" | "lasso";
1542
- initialized: boolean;
1543
- };
1544
- penMode: boolean;
1545
- penDetected: boolean;
1546
- exportBackground: boolean;
1547
- exportEmbedScene: boolean;
1548
- exportScale: number;
1549
- currentItemStrokeColor: string;
1550
- currentItemBackgroundColor: string;
1551
- currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
1552
- currentItemStrokeWidth: number;
1553
- currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
1554
- currentItemRoughness: number;
1555
- currentItemOpacity: number;
1556
- currentItemFontFamily: number;
1557
- currentItemFontSize: number;
1558
- currentItemTextAlign: string;
1559
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1560
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1561
- currentHoveredFontFamily: number | null;
1562
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1563
- currentItemArrowType: "round" | "sharp" | "elbow";
1564
- viewBackgroundColor: string;
1565
- scrollX: number;
1566
- scrollY: number;
1567
- cursorButton: "up" | "down";
1568
- scrolledOutside: boolean;
1569
- name: string | null;
1570
- isResizing: boolean;
1571
- isRotating: boolean;
1572
- zoom: Readonly<{
1573
- value: import("../types").NormalizedZoomValue;
1574
- }>;
1575
- openMenu: "canvas" | null;
1576
- openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1577
- openSidebar: {
1578
- name: string;
1579
- tab?: string | undefined;
1580
- } | null;
1581
- openDialog: {
1582
- name: "imageExport" | "help" | "jsonExport";
1583
- } | {
1584
- name: "ttd";
1585
- tab: "mermaid" | "text-to-diagram";
1586
- } | {
1587
- name: "commandPalette";
1588
- } | {
1589
- name: "elementLinkSelector";
1590
- sourceElementId: string;
1591
- } | null;
1592
- defaultSidebarDockedPreference: boolean;
1593
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1594
- selectedElementIds: Readonly<{
1595
- [id: string]: true;
1596
- }>;
1597
- hoveredElementIds: Readonly<{
1598
- [id: string]: true;
1599
- }>;
1600
- previousSelectedElementIds: {
1601
- [id: string]: true;
1602
- };
1603
- selectedElementsAreBeingDragged: boolean;
1604
- shouldCacheIgnoreZoom: boolean;
1605
- toast: {
1606
- message: string;
1607
- closable?: boolean | undefined;
1608
- duration?: number | undefined;
1609
- } | null;
1610
- zenModeEnabled: boolean;
1611
- theme: Theme;
1612
- gridSize: number;
1613
- gridStep: number;
1614
- gridModeEnabled: boolean;
1615
- viewModeEnabled: boolean;
1616
- selectedGroupIds: {
1617
- [groupId: string]: boolean;
1618
- };
1619
- editingGroupId: string | null;
1620
- width: number;
1621
- height: number;
1622
- offsetTop: number;
1623
- offsetLeft: number;
1624
- fileHandle: import("browser-fs-access").FileSystemHandle | null;
1625
- collaborators: Map<import("../types").SocketId, Readonly<{
1626
- pointer?: import("../types").CollaboratorPointer | undefined;
1627
- button?: "up" | "down" | undefined;
1628
- selectedElementIds?: Readonly<{
1629
- [id: string]: true;
1630
- }> | undefined;
1631
- username?: string | null | undefined;
1632
- userState?: import("@excalidraw/common").UserIdleState | undefined;
1633
- color?: {
1634
- background: string;
1635
- stroke: string;
1636
- } | undefined;
1637
- avatarUrl?: string | undefined;
1638
- id?: string | undefined;
1639
- socketId?: import("../types").SocketId | undefined;
1640
- isCurrentUser?: boolean | undefined;
1641
- isInCall?: boolean | undefined;
1642
- isSpeaking?: boolean | undefined;
1643
- isMuted?: boolean | undefined;
1644
- }>>;
1645
- stats: {
1646
- open: boolean;
1647
- panels: number;
1648
- };
1649
- currentChartType: import("@excalidraw/element/types").ChartType;
1650
- pasteDialog: {
1651
- shown: false;
1652
- data: null;
1653
- } | {
1654
- shown: true;
1655
- data: import("../charts").Spreadsheet;
1656
- };
1657
- showHyperlinkPopup: false | "editor" | "info";
1658
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1659
- snapLines: readonly import("../snapping").SnapLine[];
1660
- originSnapOffset: {
1661
- x: number;
1662
- y: number;
1663
- } | null;
1664
- objectsSnapModeEnabled: boolean;
1665
- userToFollow: import("../types").UserToFollow | null;
1666
- followedBy: Set<import("../types").SocketId>;
1667
- isCropping: boolean;
1668
- croppingElementId: string | null;
1669
- searchMatches: Readonly<{
1670
- focusedId: string | null;
1671
- matches: readonly import("../types").SearchMatch[];
1672
- }> | null;
1673
- activeLockedId: string | null;
1674
- lockedMultiSelections: {
1675
- [groupId: string]: true;
1676
- };
1677
- stylesPanelMode: "compact" | "full" | "mobile";
1678
- };
1679
- captureUpdate: "EVENTUALLY";
1680
- };
1681
- PanelComponent: ({ appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
1682
- } & {
1683
- keyTest?: undefined;
677
+ export declare const actionExportWithDarkMode: import("./types").Action<boolean> & {
678
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1684
679
  };