@myoc/excalidraw 0.19.521 → 0.19.522

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 (472) hide show
  1. package/CHANGELOG.md +227 -8
  2. package/dist/dev/{chunk-P7I4FGOG.js → chunk-6T5HZJCI.js} +2 -2
  3. package/dist/dev/chunk-72CYJXY3.js +69 -0
  4. package/dist/dev/chunk-72CYJXY3.js.map +7 -0
  5. package/dist/dev/{chunk-MN6E45MP.js → chunk-BCNQXIBK.js} +348 -85
  6. package/dist/dev/chunk-BCNQXIBK.js.map +7 -0
  7. package/dist/dev/{chunk-IU2VFRFU.js → chunk-SKCAT7JG.js} +19 -6
  8. package/dist/dev/chunk-SKCAT7JG.js.map +7 -0
  9. package/dist/dev/data/{image-ZYGVHYLC.js → image-NFLICJEW.js} +3 -3
  10. package/dist/dev/index.css +2198 -2250
  11. package/dist/dev/index.css.map +3 -3
  12. package/dist/dev/index.js +14897 -11932
  13. package/dist/dev/index.js.map +4 -4
  14. package/dist/dev/locales/{ar-SA-NFU76NHO.js → ar-SA-JEFXMY43.js} +69 -29
  15. package/dist/dev/locales/ar-SA-JEFXMY43.js.map +7 -0
  16. package/dist/dev/locales/{az-AZ-F7U432OF.js → az-AZ-K5GG7N2H.js} +47 -7
  17. package/dist/dev/locales/az-AZ-K5GG7N2H.js.map +7 -0
  18. package/dist/dev/locales/{bg-BG-VMJGHZ3R.js → bg-BG-YUNBCAUF.js} +47 -7
  19. package/dist/dev/locales/bg-BG-YUNBCAUF.js.map +7 -0
  20. package/dist/dev/locales/{bn-BD-ABWH5RGF.js → bn-BD-TASJ52R7.js} +47 -7
  21. package/dist/dev/locales/bn-BD-TASJ52R7.js.map +7 -0
  22. package/dist/dev/locales/{bn-IN-6FBCHDUY.js → bn-IN-CQJ5XUTI.js} +47 -7
  23. package/dist/dev/locales/bn-IN-CQJ5XUTI.js.map +7 -0
  24. package/dist/dev/locales/{ca-ES-UX7K2ENH.js → ca-ES-F62AQUFY.js} +47 -69
  25. package/dist/dev/locales/ca-ES-F62AQUFY.js.map +7 -0
  26. package/dist/dev/locales/{cs-CZ-TBYIRH36.js → cs-CZ-YHUNUU6P.js} +47 -69
  27. package/dist/dev/locales/cs-CZ-YHUNUU6P.js.map +7 -0
  28. package/dist/dev/locales/{da-DK-KW4TGU6O.js → da-DK-QU24E74Q.js} +47 -69
  29. package/dist/dev/locales/da-DK-QU24E74Q.js.map +7 -0
  30. package/dist/dev/locales/{de-CH-QSJHIHEN.js → de-CH-KLWBYLGC.js} +110 -132
  31. package/dist/dev/locales/de-CH-KLWBYLGC.js.map +7 -0
  32. package/dist/dev/locales/{de-DE-2WQ5IRPT.js → de-DE-UB755M7G.js} +110 -132
  33. package/dist/dev/locales/de-DE-UB755M7G.js.map +7 -0
  34. package/dist/dev/locales/{el-GR-N7JWYMV5.js → el-GR-J2BFDAEA.js} +47 -69
  35. package/dist/dev/locales/el-GR-J2BFDAEA.js.map +7 -0
  36. package/dist/dev/locales/{en-25BPHB4T.js → en-RETPDZ4S.js} +4 -2
  37. package/dist/dev/locales/{es-ES-37LJTLHM.js → es-ES-GL35U3D6.js} +97 -119
  38. package/dist/dev/locales/es-ES-GL35U3D6.js.map +7 -0
  39. package/dist/dev/locales/{eu-ES-2IFCUP7K.js → eu-ES-5LL7P4G7.js} +150 -172
  40. package/dist/dev/locales/eu-ES-5LL7P4G7.js.map +7 -0
  41. package/dist/dev/locales/{fa-IR-VDT7BNM4.js → fa-IR-2D6AXPSB.js} +52 -74
  42. package/dist/dev/locales/fa-IR-2D6AXPSB.js.map +7 -0
  43. package/dist/dev/locales/{fi-FI-HLYF5ISJ.js → fi-FI-WLH5PKEI.js} +47 -69
  44. package/dist/dev/locales/fi-FI-WLH5PKEI.js.map +7 -0
  45. package/dist/dev/locales/{fr-FR-5YNPDFPF.js → fr-FR-2OK3WPK2.js} +50 -72
  46. package/dist/dev/locales/fr-FR-2OK3WPK2.js.map +7 -0
  47. package/dist/dev/locales/{gl-ES-S56CRRSA.js → gl-ES-EZQPQSMM.js} +47 -69
  48. package/dist/dev/locales/gl-ES-EZQPQSMM.js.map +7 -0
  49. package/dist/dev/locales/{he-IL-7GR3BHPZ.js → he-IL-AZ66QXVH.js} +101 -123
  50. package/dist/dev/locales/he-IL-AZ66QXVH.js.map +7 -0
  51. package/dist/dev/locales/{hi-IN-AQ7X42V5.js → hi-IN-FLBMKLKL.js} +47 -69
  52. package/dist/dev/locales/hi-IN-FLBMKLKL.js.map +7 -0
  53. package/dist/dev/locales/{hu-HU-4HM3N3P3.js → hu-HU-VDOE4ASN.js} +47 -69
  54. package/dist/dev/locales/hu-HU-VDOE4ASN.js.map +7 -0
  55. package/dist/dev/locales/{id-ID-P7V2I35Q.js → id-ID-ONDPKYZS.js} +94 -116
  56. package/dist/dev/locales/id-ID-ONDPKYZS.js.map +7 -0
  57. package/dist/dev/locales/{it-IT-HUGIPGTB.js → it-IT-VBFSF2PC.js} +50 -72
  58. package/dist/dev/locales/it-IT-VBFSF2PC.js.map +7 -0
  59. package/dist/dev/locales/{ja-JP-XFX5V5ZL.js → ja-JP-HYYYQCGH.js} +141 -163
  60. package/dist/dev/locales/ja-JP-HYYYQCGH.js.map +7 -0
  61. package/dist/dev/locales/{kaa-X53Z7Q4I.js → kaa-TY3DGTWH.js} +47 -69
  62. package/dist/dev/locales/kaa-TY3DGTWH.js.map +7 -0
  63. package/dist/dev/locales/{kab-KAB-GGKAECT5.js → kab-KAB-IY5ZIQCV.js} +47 -69
  64. package/dist/dev/locales/kab-KAB-IY5ZIQCV.js.map +7 -0
  65. package/dist/dev/locales/{kk-KZ-Z6R3NY65.js → kk-KZ-XL46CODC.js} +47 -69
  66. package/dist/dev/locales/kk-KZ-XL46CODC.js.map +7 -0
  67. package/dist/dev/locales/{km-KH-DGK3UTBI.js → km-KH-SBKIWI6O.js} +47 -69
  68. package/dist/dev/locales/km-KH-SBKIWI6O.js.map +7 -0
  69. package/dist/dev/locales/{ko-KR-W7QZK3EC.js → ko-KR-G6PO3BPA.js} +109 -131
  70. package/dist/dev/locales/ko-KR-G6PO3BPA.js.map +7 -0
  71. package/dist/dev/locales/{ku-TR-3UJE7FNE.js → ku-TR-DCRJVW6B.js} +47 -69
  72. package/dist/dev/locales/ku-TR-DCRJVW6B.js.map +7 -0
  73. package/dist/dev/locales/{lt-LT-OTNQMXF6.js → lt-LT-HMDRWN2A.js} +47 -69
  74. package/dist/dev/locales/lt-LT-HMDRWN2A.js.map +7 -0
  75. package/dist/dev/locales/{lv-LV-Y44YX4AK.js → lv-LV-E7XBXM5Z.js} +47 -69
  76. package/dist/dev/locales/lv-LV-E7XBXM5Z.js.map +7 -0
  77. package/dist/dev/locales/{mr-IN-MT2HYNUI.js → mr-IN-7HMFEVFE.js} +48 -70
  78. package/dist/dev/locales/mr-IN-7HMFEVFE.js.map +7 -0
  79. package/dist/dev/locales/{my-MM-ZBRKQSW3.js → my-MM-L4VSI7TR.js} +47 -69
  80. package/dist/dev/locales/my-MM-L4VSI7TR.js.map +7 -0
  81. package/dist/dev/locales/{nb-NO-ZY7DB7O2.js → nb-NO-GBRDJCO7.js} +47 -69
  82. package/dist/dev/locales/nb-NO-GBRDJCO7.js.map +7 -0
  83. package/dist/dev/locales/{nl-NL-YLVMYG2H.js → nl-NL-Z3EVTIXJ.js} +52 -74
  84. package/dist/dev/locales/nl-NL-Z3EVTIXJ.js.map +7 -0
  85. package/dist/dev/locales/{nn-NO-4SXLBTTQ.js → nn-NO-WCTTYN3P.js} +47 -69
  86. package/dist/dev/locales/nn-NO-WCTTYN3P.js.map +7 -0
  87. package/dist/dev/locales/{oc-FR-NMOJCLB4.js → oc-FR-6IH2LZOZ.js} +47 -69
  88. package/dist/dev/locales/oc-FR-6IH2LZOZ.js.map +7 -0
  89. package/dist/dev/locales/{pa-IN-G5T3AUSW.js → pa-IN-3KCEDMBE.js} +47 -69
  90. package/dist/dev/locales/pa-IN-3KCEDMBE.js.map +7 -0
  91. package/dist/dev/locales/{percentages-ZRLRVMSI.js → percentages-DKKGPYTW.js} +2 -2
  92. package/dist/dev/locales/{pl-PL-TXUESISZ.js → pl-PL-OFE4QPOR.js} +47 -69
  93. package/dist/dev/locales/pl-PL-OFE4QPOR.js.map +7 -0
  94. package/dist/dev/locales/{pt-BR-KEMR6KPT.js → pt-BR-KFYVREQI.js} +94 -116
  95. package/dist/dev/locales/pt-BR-KFYVREQI.js.map +7 -0
  96. package/dist/dev/locales/{pt-PT-ZCG2G3PR.js → pt-PT-GZLT46KI.js} +92 -114
  97. package/dist/dev/locales/pt-PT-GZLT46KI.js.map +7 -0
  98. package/dist/dev/locales/{ro-RO-MDAUF4EM.js → ro-RO-DKVFNBHO.js} +50 -72
  99. package/dist/dev/locales/ro-RO-DKVFNBHO.js.map +7 -0
  100. package/dist/dev/locales/{ru-RU-ZIRVCAVQ.js → ru-RU-6JEBKTLT.js} +50 -72
  101. package/dist/dev/locales/ru-RU-6JEBKTLT.js.map +7 -0
  102. package/dist/dev/locales/{si-LK-FPEI3WT5.js → si-LK-6AKNCJA5.js} +47 -69
  103. package/dist/dev/locales/si-LK-6AKNCJA5.js.map +7 -0
  104. package/dist/dev/locales/{sk-SK-TZJ3W5LE.js → sk-SK-2ATL6K2E.js} +50 -72
  105. package/dist/dev/locales/sk-SK-2ATL6K2E.js.map +7 -0
  106. package/dist/dev/locales/{sl-SI-KIJ3UR57.js → sl-SI-YMMKUPW6.js} +47 -69
  107. package/dist/dev/locales/sl-SI-YMMKUPW6.js.map +7 -0
  108. package/dist/dev/locales/{sv-SE-WX2A2Y2N.js → sv-SE-WBMU72M2.js} +88 -110
  109. package/dist/dev/locales/sv-SE-WBMU72M2.js.map +7 -0
  110. package/dist/dev/locales/{ta-IN-ECFHL2WQ.js → ta-IN-OVDW7DBM.js} +47 -69
  111. package/dist/dev/locales/ta-IN-OVDW7DBM.js.map +7 -0
  112. package/dist/dev/locales/{th-TH-XIGNEM6A.js → th-TH-7L42SH4O.js} +73 -95
  113. package/dist/dev/locales/th-TH-7L42SH4O.js.map +7 -0
  114. package/dist/dev/locales/{tr-TR-RCLDMBSM.js → tr-TR-MPDZYTZ2.js} +83 -105
  115. package/dist/dev/locales/tr-TR-MPDZYTZ2.js.map +7 -0
  116. package/dist/dev/locales/{uk-UA-2ADII6GR.js → uk-UA-5SVBS74S.js} +66 -88
  117. package/dist/dev/locales/uk-UA-5SVBS74S.js.map +7 -0
  118. package/dist/dev/locales/{uz-UZ-COGLAKY3.js → uz-UZ-QYTGSZB2.js} +47 -69
  119. package/dist/dev/locales/uz-UZ-QYTGSZB2.js.map +7 -0
  120. package/dist/dev/locales/{vi-VN-QBW5T274.js → vi-VN-KMVP2XW5.js} +47 -69
  121. package/dist/dev/locales/vi-VN-KMVP2XW5.js.map +7 -0
  122. package/dist/dev/locales/{zh-CN-WONZCIPT.js → zh-CN-KR2L555J.js} +51 -73
  123. package/dist/dev/locales/zh-CN-KR2L555J.js.map +7 -0
  124. package/dist/dev/locales/{zh-HK-AJ2UN7VN.js → zh-HK-VFOCIZQM.js} +47 -69
  125. package/dist/dev/locales/zh-HK-VFOCIZQM.js.map +7 -0
  126. package/dist/dev/locales/{zh-TW-O73UCU5T.js → zh-TW-OIQ4BXFH.js} +91 -113
  127. package/dist/dev/locales/zh-TW-OIQ4BXFH.js.map +7 -0
  128. package/dist/dev/subset-shared.chunk.js +1 -1
  129. package/dist/dev/subset-worker.chunk.js +1 -1
  130. package/dist/prod/chunk-5XKZK2GL.js +1 -0
  131. package/dist/prod/chunk-66O5T5YX.js +4 -0
  132. package/dist/prod/chunk-DARW3V66.js +12 -0
  133. package/dist/prod/{chunk-ZYOK2JIN.js → chunk-SZWH77NQ.js} +1 -1
  134. package/dist/prod/data/image-AAJBLI3M.js +1 -0
  135. package/dist/prod/index.css +1 -1
  136. package/dist/prod/index.js +20 -111
  137. package/dist/prod/locales/ar-SA-E6E2KRZ5.js +10 -0
  138. package/dist/prod/locales/az-AZ-RDMGQYMZ.js +1 -0
  139. package/dist/prod/locales/bg-BG-CHUVCTEA.js +5 -0
  140. package/dist/prod/locales/bn-BD-ZMOEPIQW.js +3 -0
  141. package/dist/prod/locales/bn-IN-OHZAWF5C.js +3 -0
  142. package/dist/prod/locales/ca-ES-K4A7PUP4.js +8 -0
  143. package/dist/prod/locales/cs-CZ-RVP6YORC.js +7 -0
  144. package/dist/prod/locales/da-DK-ENJX4GIQ.js +2 -0
  145. package/dist/prod/locales/de-CH-VYBKDWRU.js +11 -0
  146. package/dist/prod/locales/de-DE-6MCXRRVA.js +11 -0
  147. package/dist/prod/locales/el-GR-WEDZAIPA.js +7 -0
  148. package/dist/prod/locales/en-RNZ7CUK6.js +1 -0
  149. package/dist/prod/locales/es-ES-LLEALNRO.js +11 -0
  150. package/dist/prod/locales/eu-ES-M4Y34NOW.js +8 -0
  151. package/dist/prod/locales/fa-IR-XSMVGGRV.js +9 -0
  152. package/dist/prod/locales/fi-FI-K2D3DDUS.js +6 -0
  153. package/dist/prod/locales/fr-FR-EQKMVJSO.js +12 -0
  154. package/dist/prod/locales/gl-ES-RCPQTYJV.js +6 -0
  155. package/dist/prod/locales/he-IL-RHAGKYKH.js +9 -0
  156. package/dist/prod/locales/hi-IN-3UDCLKHN.js +3 -0
  157. package/dist/prod/locales/hu-HU-T3REA7IL.js +3 -0
  158. package/dist/prod/locales/id-ID-KW4N25IN.js +8 -0
  159. package/dist/prod/locales/it-IT-LJVXK4LO.js +12 -0
  160. package/dist/prod/locales/ja-JP-GGGK3KPX.js +12 -0
  161. package/dist/prod/locales/kaa-TSEHAWJR.js +1 -0
  162. package/dist/prod/locales/kab-KAB-IWXTEINV.js +4 -0
  163. package/dist/prod/locales/kk-KZ-6GNYSAU7.js +1 -0
  164. package/dist/prod/locales/km-KH-ILUXSOEW.js +7 -0
  165. package/dist/prod/locales/ko-KR-FJWHM3OT.js +5 -0
  166. package/dist/prod/locales/ku-TR-DRDDAECA.js +6 -0
  167. package/dist/prod/locales/lt-LT-IYFIPPJI.js +3 -0
  168. package/dist/prod/locales/lv-LV-7F754RSS.js +4 -0
  169. package/dist/prod/locales/mr-IN-BYRIZ3PC.js +9 -0
  170. package/dist/prod/locales/my-MM-RBYJSIJ6.js +1 -0
  171. package/dist/prod/locales/nb-NO-EKTZIYSK.js +8 -0
  172. package/dist/prod/locales/nl-NL-UECYYIUK.js +13 -0
  173. package/dist/prod/locales/nn-NO-JPXGIDBA.js +4 -0
  174. package/dist/prod/locales/oc-FR-4RSIVDPZ.js +4 -0
  175. package/dist/prod/locales/pa-IN-GPHFXISR.js +4 -0
  176. package/dist/prod/locales/percentages-Q7USCRWZ.js +1 -0
  177. package/dist/prod/locales/pl-PL-HKHPAEVK.js +12 -0
  178. package/dist/prod/locales/pt-BR-UBWN6CKP.js +10 -0
  179. package/dist/prod/locales/pt-PT-XDY4S4SD.js +12 -0
  180. package/dist/prod/locales/ro-RO-2B3UXAQO.js +12 -0
  181. package/dist/prod/locales/ru-RU-EW52HAV3.js +10 -0
  182. package/dist/prod/locales/si-LK-PIEHI4JX.js +1 -0
  183. package/dist/prod/locales/sk-SK-TZXYYIFD.js +7 -0
  184. package/dist/prod/locales/sl-SI-VUDQNDF3.js +6 -0
  185. package/dist/prod/locales/sv-SE-IJTJRA7S.js +12 -0
  186. package/dist/prod/locales/ta-IN-Q5PXZT3U.js +6 -0
  187. package/dist/prod/locales/th-TH-HK66ZQXE.js +1 -0
  188. package/dist/prod/locales/tr-TR-CLYYPVPL.js +4 -0
  189. package/dist/prod/locales/uk-UA-YR4OMRYF.js +6 -0
  190. package/dist/prod/locales/uz-UZ-CY4LSY5Y.js +1 -0
  191. package/dist/prod/locales/vi-VN-UDAEMEBG.js +7 -0
  192. package/dist/prod/locales/zh-CN-EGBL23FT.js +11 -0
  193. package/dist/prod/locales/zh-HK-ZOJEG32A.js +1 -0
  194. package/dist/prod/locales/zh-TW-TM5HZP7M.js +13 -0
  195. package/dist/prod/subset-shared.chunk.js +1 -1
  196. package/dist/prod/subset-worker.chunk.js +1 -1
  197. package/dist/types/common/src/colors.d.ts +14 -0
  198. package/dist/types/common/src/constants.d.ts +3 -0
  199. package/dist/types/common/src/keys.d.ts +2 -0
  200. package/dist/types/common/src/points.d.ts +1 -1
  201. package/dist/types/common/src/utils.d.ts +1 -1
  202. package/dist/types/element/src/Scene.d.ts +1 -1
  203. package/dist/types/element/src/align.d.ts +2 -2
  204. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  205. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  206. package/dist/types/element/src/binding.d.ts +17 -8
  207. package/dist/types/element/src/bounds.d.ts +5 -9
  208. package/dist/types/element/src/bucketFill.d.ts +110 -0
  209. package/dist/types/element/src/collision.d.ts +1 -1
  210. package/dist/types/element/src/comparisons.d.ts +4 -4
  211. package/dist/types/element/src/convertToShape.d.ts +23 -0
  212. package/dist/types/element/src/distribute.d.ts +2 -2
  213. package/dist/types/element/src/dragElements.d.ts +27 -0
  214. package/dist/types/element/src/duplicate.d.ts +3 -3
  215. package/dist/types/element/src/embeddable.d.ts +2 -2
  216. package/dist/types/element/src/flowchart.d.ts +7 -7
  217. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  218. package/dist/types/element/src/frame.d.ts +4 -4
  219. package/dist/types/element/src/groups.d.ts +9 -9
  220. package/dist/types/element/src/index.d.ts +4 -1
  221. package/dist/types/element/src/linearElementEditor.d.ts +17 -10
  222. package/dist/types/element/src/newElement.d.ts +13 -0
  223. package/dist/types/element/src/renderElement.d.ts +0 -3
  224. package/dist/types/element/src/resizeElements.d.ts +2 -2
  225. package/dist/types/element/src/selection.d.ts +5 -5
  226. package/dist/types/element/src/shape.d.ts +12 -0
  227. package/dist/types/element/src/sortElements.d.ts +10 -0
  228. package/dist/types/element/src/textElement.d.ts +12 -9
  229. package/dist/types/element/src/transform.d.ts +2 -2
  230. package/dist/types/element/src/typeChecks.d.ts +25 -25
  231. package/dist/types/element/src/types.d.ts +2 -1
  232. package/dist/types/element/src/zindex.d.ts +2 -2
  233. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  234. package/dist/types/excalidraw/actions/actionBoundText.d.ts +24 -8
  235. package/dist/types/excalidraw/actions/actionCanvas.d.ts +128 -961
  236. package/dist/types/excalidraw/actions/actionClipboard.d.ts +24 -8
  237. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -4
  238. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +38 -13
  239. package/dist/types/excalidraw/actions/actionDeselect.d.ts +9 -4
  240. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  241. package/dist/types/excalidraw/actions/actionElementLink.d.ts +12 -4
  242. package/dist/types/excalidraw/actions/actionElementLock.d.ts +25 -9
  243. package/dist/types/excalidraw/actions/actionExport.d.ts +26 -10
  244. package/dist/types/excalidraw/actions/actionFrame.d.ts +47 -205
  245. package/dist/types/excalidraw/actions/actionGroup.d.ts +39 -23
  246. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +15 -6
  247. package/dist/types/excalidraw/actions/actionLink.d.ts +13 -5
  248. package/dist/types/excalidraw/actions/actionMenu.d.ts +12 -4
  249. package/dist/types/excalidraw/actions/actionProperties.d.ts +43 -24
  250. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -9
  251. package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -4
  252. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  253. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +14 -6
  254. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -9
  255. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +13 -5
  256. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -5
  257. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -9
  258. package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
  259. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -5
  260. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -6
  261. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -5
  262. package/dist/types/excalidraw/actions/index.d.ts +1 -2
  263. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  264. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  265. package/dist/types/excalidraw/actions/types.d.ts +8 -4
  266. package/dist/types/excalidraw/appState.d.ts +10 -5
  267. package/dist/types/excalidraw/components/Actions.d.ts +17 -12
  268. package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
  269. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  270. package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
  271. package/dist/types/excalidraw/components/App.d.ts +384 -60
  272. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  273. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  274. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  275. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
  276. package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
  277. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
  278. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
  279. package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
  280. package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
  281. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  282. package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
  283. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
  284. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  285. package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
  286. package/dist/types/excalidraw/components/Island.d.ts +7 -0
  287. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  288. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
  289. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  290. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  291. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  292. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  293. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  294. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  295. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  296. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  297. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  298. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  299. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  300. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  301. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  302. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  303. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  304. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  305. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  306. package/dist/types/excalidraw/components/Tools.d.ts +146 -0
  307. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  308. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  309. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -0
  310. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  311. package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
  312. package/dist/types/excalidraw/components/icons.d.ts +4 -1
  313. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  314. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  315. package/dist/types/excalidraw/context/tunnels.d.ts +0 -1
  316. package/dist/types/excalidraw/data/blob.d.ts +14 -6
  317. package/dist/types/excalidraw/data/index.d.ts +4 -4
  318. package/dist/types/excalidraw/data/json.d.ts +20 -12
  319. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  320. package/dist/types/excalidraw/index.d.ts +3 -3
  321. package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
  322. package/dist/types/excalidraw/renderer/interactiveScene.d.ts +10 -3
  323. package/dist/types/excalidraw/scene/Renderer.d.ts +11 -11
  324. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  325. package/dist/types/excalidraw/scene/index.d.ts +1 -1
  326. package/dist/types/excalidraw/scene/types.d.ts +4 -3
  327. package/dist/types/excalidraw/snapping.d.ts +7 -7
  328. package/dist/types/excalidraw/types.d.ts +423 -27
  329. package/dist/types/excalidraw/viewport.d.ts +283 -0
  330. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
  331. package/dist/types/laser-pointer/src/state.d.ts +1 -0
  332. package/dist/types/math/src/index.d.ts +1 -0
  333. package/dist/types/math/src/pca.d.ts +79 -0
  334. package/dist/types/math/src/polygon.d.ts +25 -1
  335. package/dist/types/utils/src/export.d.ts +3 -3
  336. package/package.json +4 -4
  337. package/dist/dev/chunk-IU2VFRFU.js.map +0 -7
  338. package/dist/dev/chunk-MN6E45MP.js.map +0 -7
  339. package/dist/dev/chunk-URPEKBQ3.js +0 -69
  340. package/dist/dev/chunk-URPEKBQ3.js.map +0 -7
  341. package/dist/dev/locales/ar-SA-NFU76NHO.js.map +0 -7
  342. package/dist/dev/locales/az-AZ-F7U432OF.js.map +0 -7
  343. package/dist/dev/locales/bg-BG-VMJGHZ3R.js.map +0 -7
  344. package/dist/dev/locales/bn-BD-ABWH5RGF.js.map +0 -7
  345. package/dist/dev/locales/bn-IN-6FBCHDUY.js.map +0 -7
  346. package/dist/dev/locales/ca-ES-UX7K2ENH.js.map +0 -7
  347. package/dist/dev/locales/cs-CZ-TBYIRH36.js.map +0 -7
  348. package/dist/dev/locales/da-DK-KW4TGU6O.js.map +0 -7
  349. package/dist/dev/locales/de-CH-QSJHIHEN.js.map +0 -7
  350. package/dist/dev/locales/de-DE-2WQ5IRPT.js.map +0 -7
  351. package/dist/dev/locales/el-GR-N7JWYMV5.js.map +0 -7
  352. package/dist/dev/locales/es-ES-37LJTLHM.js.map +0 -7
  353. package/dist/dev/locales/eu-ES-2IFCUP7K.js.map +0 -7
  354. package/dist/dev/locales/fa-IR-VDT7BNM4.js.map +0 -7
  355. package/dist/dev/locales/fi-FI-HLYF5ISJ.js.map +0 -7
  356. package/dist/dev/locales/fr-FR-5YNPDFPF.js.map +0 -7
  357. package/dist/dev/locales/gl-ES-S56CRRSA.js.map +0 -7
  358. package/dist/dev/locales/he-IL-7GR3BHPZ.js.map +0 -7
  359. package/dist/dev/locales/hi-IN-AQ7X42V5.js.map +0 -7
  360. package/dist/dev/locales/hu-HU-4HM3N3P3.js.map +0 -7
  361. package/dist/dev/locales/id-ID-P7V2I35Q.js.map +0 -7
  362. package/dist/dev/locales/it-IT-HUGIPGTB.js.map +0 -7
  363. package/dist/dev/locales/ja-JP-XFX5V5ZL.js.map +0 -7
  364. package/dist/dev/locales/kaa-X53Z7Q4I.js.map +0 -7
  365. package/dist/dev/locales/kab-KAB-GGKAECT5.js.map +0 -7
  366. package/dist/dev/locales/kk-KZ-Z6R3NY65.js.map +0 -7
  367. package/dist/dev/locales/km-KH-DGK3UTBI.js.map +0 -7
  368. package/dist/dev/locales/ko-KR-W7QZK3EC.js.map +0 -7
  369. package/dist/dev/locales/ku-TR-3UJE7FNE.js.map +0 -7
  370. package/dist/dev/locales/lt-LT-OTNQMXF6.js.map +0 -7
  371. package/dist/dev/locales/lv-LV-Y44YX4AK.js.map +0 -7
  372. package/dist/dev/locales/mr-IN-MT2HYNUI.js.map +0 -7
  373. package/dist/dev/locales/my-MM-ZBRKQSW3.js.map +0 -7
  374. package/dist/dev/locales/nb-NO-ZY7DB7O2.js.map +0 -7
  375. package/dist/dev/locales/nl-NL-YLVMYG2H.js.map +0 -7
  376. package/dist/dev/locales/nn-NO-4SXLBTTQ.js.map +0 -7
  377. package/dist/dev/locales/oc-FR-NMOJCLB4.js.map +0 -7
  378. package/dist/dev/locales/pa-IN-G5T3AUSW.js.map +0 -7
  379. package/dist/dev/locales/pl-PL-TXUESISZ.js.map +0 -7
  380. package/dist/dev/locales/pt-BR-KEMR6KPT.js.map +0 -7
  381. package/dist/dev/locales/pt-PT-ZCG2G3PR.js.map +0 -7
  382. package/dist/dev/locales/ro-RO-MDAUF4EM.js.map +0 -7
  383. package/dist/dev/locales/ru-RU-ZIRVCAVQ.js.map +0 -7
  384. package/dist/dev/locales/si-LK-FPEI3WT5.js.map +0 -7
  385. package/dist/dev/locales/sk-SK-TZJ3W5LE.js.map +0 -7
  386. package/dist/dev/locales/sl-SI-KIJ3UR57.js.map +0 -7
  387. package/dist/dev/locales/sv-SE-WX2A2Y2N.js.map +0 -7
  388. package/dist/dev/locales/ta-IN-ECFHL2WQ.js.map +0 -7
  389. package/dist/dev/locales/th-TH-XIGNEM6A.js.map +0 -7
  390. package/dist/dev/locales/tr-TR-RCLDMBSM.js.map +0 -7
  391. package/dist/dev/locales/uk-UA-2ADII6GR.js.map +0 -7
  392. package/dist/dev/locales/uz-UZ-COGLAKY3.js.map +0 -7
  393. package/dist/dev/locales/vi-VN-QBW5T274.js.map +0 -7
  394. package/dist/dev/locales/zh-CN-WONZCIPT.js.map +0 -7
  395. package/dist/dev/locales/zh-HK-AJ2UN7VN.js.map +0 -7
  396. package/dist/dev/locales/zh-TW-O73UCU5T.js.map +0 -7
  397. package/dist/prod/chunk-3PELD44J.js +0 -1
  398. package/dist/prod/chunk-3UXKIWVY.js +0 -12
  399. package/dist/prod/chunk-BNYGVLQX.js +0 -4
  400. package/dist/prod/data/image-OFIWDJ6Z.js +0 -1
  401. package/dist/prod/locales/ar-SA-3G7FTBZJ.js +0 -8
  402. package/dist/prod/locales/az-AZ-HMFZUPFL.js +0 -1
  403. package/dist/prod/locales/bg-BG-Y7OZ2DXF.js +0 -5
  404. package/dist/prod/locales/bn-BD-36TGMEAF.js +0 -3
  405. package/dist/prod/locales/bn-IN-FALW4RB5.js +0 -3
  406. package/dist/prod/locales/ca-ES-MJRJ6GTN.js +0 -8
  407. package/dist/prod/locales/cs-CZ-52YM52ZO.js +0 -7
  408. package/dist/prod/locales/da-DK-QEP42HP6.js +0 -2
  409. package/dist/prod/locales/de-CH-LGHSGO4X.js +0 -7
  410. package/dist/prod/locales/de-DE-GHNPPGTN.js +0 -7
  411. package/dist/prod/locales/el-GR-2UZLGABX.js +0 -7
  412. package/dist/prod/locales/en-AH5BYWXT.js +0 -1
  413. package/dist/prod/locales/es-ES-2NUH2FTW.js +0 -7
  414. package/dist/prod/locales/eu-ES-LW4CGHUU.js +0 -7
  415. package/dist/prod/locales/fa-IR-U32PFECK.js +0 -9
  416. package/dist/prod/locales/fi-FI-G7756HAK.js +0 -6
  417. package/dist/prod/locales/fr-FR-VIEH4DTC.js +0 -12
  418. package/dist/prod/locales/gl-ES-JWQDRMPC.js +0 -6
  419. package/dist/prod/locales/he-IL-YYBNMYP4.js +0 -8
  420. package/dist/prod/locales/hi-IN-4J4RW5AN.js +0 -3
  421. package/dist/prod/locales/hu-HU-MBXXMHSF.js +0 -3
  422. package/dist/prod/locales/id-ID-5U764SVL.js +0 -8
  423. package/dist/prod/locales/it-IT-7BNDK63V.js +0 -12
  424. package/dist/prod/locales/ja-JP-4SLEHWLA.js +0 -7
  425. package/dist/prod/locales/kaa-YHCGFUY5.js +0 -1
  426. package/dist/prod/locales/kab-KAB-LSGAIMUB.js +0 -4
  427. package/dist/prod/locales/kk-KZ-3YNSB7GZ.js +0 -1
  428. package/dist/prod/locales/km-KH-7GXC5R4I.js +0 -7
  429. package/dist/prod/locales/ko-KR-B6Q6YTFE.js +0 -5
  430. package/dist/prod/locales/ku-TR-FBC7A657.js +0 -6
  431. package/dist/prod/locales/lt-LT-NTZ3RRBU.js +0 -3
  432. package/dist/prod/locales/lv-LV-G24LH3KG.js +0 -4
  433. package/dist/prod/locales/mr-IN-FMZEIYNW.js +0 -9
  434. package/dist/prod/locales/my-MM-B6EJQIQF.js +0 -1
  435. package/dist/prod/locales/nb-NO-GEP6ZOEM.js +0 -8
  436. package/dist/prod/locales/nl-NL-4QUIWSVP.js +0 -13
  437. package/dist/prod/locales/nn-NO-P32L2VHA.js +0 -4
  438. package/dist/prod/locales/oc-FR-QRACY6JR.js +0 -4
  439. package/dist/prod/locales/pa-IN-GBDTCDVG.js +0 -4
  440. package/dist/prod/locales/percentages-5DKR754L.js +0 -1
  441. package/dist/prod/locales/pl-PL-2Y6CXCHK.js +0 -12
  442. package/dist/prod/locales/pt-BR-FKWT7UFL.js +0 -6
  443. package/dist/prod/locales/pt-PT-6EMD7SCZ.js +0 -8
  444. package/dist/prod/locales/ro-RO-XERO3Y25.js +0 -12
  445. package/dist/prod/locales/ru-RU-XKTTT4QL.js +0 -10
  446. package/dist/prod/locales/si-LK-MGLC5APF.js +0 -1
  447. package/dist/prod/locales/sk-SK-BMCDJLZC.js +0 -7
  448. package/dist/prod/locales/sl-SI-LAWKY4LU.js +0 -6
  449. package/dist/prod/locales/sv-SE-X2ORO3SG.js +0 -8
  450. package/dist/prod/locales/ta-IN-RZDP4ZDC.js +0 -6
  451. package/dist/prod/locales/th-TH-GY4Y5ENV.js +0 -1
  452. package/dist/prod/locales/tr-TR-CT4QTEX3.js +0 -4
  453. package/dist/prod/locales/uk-UA-XEPSQF3S.js +0 -6
  454. package/dist/prod/locales/uz-UZ-WM3HHDOU.js +0 -1
  455. package/dist/prod/locales/vi-VN-RFG3SAMP.js +0 -7
  456. package/dist/prod/locales/zh-CN-2WGTQQH5.js +0 -11
  457. package/dist/prod/locales/zh-HK-J64WV2A2.js +0 -1
  458. package/dist/prod/locales/zh-TW-4JITCNYX.js +0 -9
  459. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -180
  460. package/dist/types/excalidraw/components/DiagramToCodePlugin/DiagramToCodePlugin.d.ts +0 -4
  461. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  462. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  463. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -12
  464. package/dist/types/excalidraw/components/shapes.d.ts +0 -270
  465. package/dist/types/excalidraw/cursor.d.ts +0 -5
  466. package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
  467. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  468. package/dist/types/excalidraw/scroll.d.ts +0 -46
  469. /package/dist/dev/{chunk-P7I4FGOG.js.map → chunk-6T5HZJCI.js.map} +0 -0
  470. /package/dist/dev/data/{image-ZYGVHYLC.js.map → image-NFLICJEW.js.map} +0 -0
  471. /package/dist/dev/locales/{en-25BPHB4T.js.map → en-RETPDZ4S.js.map} +0 -0
  472. /package/dist/dev/locales/{percentages-ZRLRVMSI.js.map → percentages-DKKGPYTW.js.map} +0 -0
@@ -1,25 +1,22 @@
1
- import { type SceneBounds } from "@excalidraw/element";
2
- import type { ExcalidrawElement } from "@excalidraw/element/types";
3
- import type { AppState, Offsets } from "../types";
1
+ import type { AppState } from "../types";
4
2
  export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
5
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
3
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
6
4
  };
7
5
  export declare const actionZoomIn: {
8
6
  name: "zoomIn";
9
7
  label: string;
10
8
  viewMode: true;
9
+ navigation: true;
11
10
  icon: import("react/jsx-runtime").JSX.Element;
12
11
  trackEvent: {
13
12
  category: "canvas";
14
13
  };
14
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
15
15
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
16
16
  appState: {
17
- userToFollow: null;
17
+ zoom: import("../types").Zoom;
18
18
  scrollX: number;
19
19
  scrollY: number;
20
- zoom: {
21
- value: import("../types").NormalizedZoomValue;
22
- };
23
20
  contextMenu: {
24
21
  items: import("../components/ContextMenu").ContextMenuItems;
25
22
  top: number;
@@ -56,6 +53,10 @@ export declare const actionZoomIn: {
56
53
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
57
54
  midPoint?: import("@excalidraw/math").GlobalPoint;
58
55
  } | null;
56
+ hoveredArrowTextAnchor: {
57
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
58
+ anchor: "start" | "end" | "label";
59
+ } | null;
59
60
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
60
61
  frameRendering: {
61
62
  enabled: boolean;
@@ -63,8 +64,8 @@ export declare const actionZoomIn: {
63
64
  outline: boolean;
64
65
  clip: boolean;
65
66
  };
66
- editingFrame: string | null;
67
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
67
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
68
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
68
69
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
69
70
  activeTool: {
70
71
  lastActiveTool: import("../types").ActiveTool | null;
@@ -83,9 +84,9 @@ export declare const actionZoomIn: {
83
84
  exportScale: number;
84
85
  currentItemStrokeColor: string;
85
86
  currentItemBackgroundColor: string;
86
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
87
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
87
88
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
88
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
89
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
89
90
  currentItemRoughness: number;
90
91
  currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
91
92
  currentItemOpacity: number;
@@ -98,6 +99,7 @@ export declare const actionZoomIn: {
98
99
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
99
100
  currentItemArrowType: "sharp" | "round" | "elbow";
100
101
  viewBackgroundColor: string;
102
+ scrollConstraints: import("../types").ScrollConstraints | null;
101
103
  cursorButton: "up" | "down";
102
104
  scrolledOutside: boolean;
103
105
  name: string | null;
@@ -115,7 +117,7 @@ export declare const actionZoomIn: {
115
117
  name: "settings";
116
118
  } | {
117
119
  name: "elementLinkSelector";
118
- sourceElementId: ExcalidrawElement["id"];
120
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
119
121
  } | {
120
122
  name: "charts";
121
123
  data: import("../charts").Spreadsheet;
@@ -168,11 +170,10 @@ export declare const actionZoomIn: {
168
170
  y: number;
169
171
  } | null;
170
172
  objectsSnapModeEnabled: boolean;
171
- followedBy: Set<import("../types").SocketId>;
172
173
  isCropping: boolean;
173
- croppingElementId: ExcalidrawElement["id"] | null;
174
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
174
175
  searchMatches: Readonly<{
175
- focusedId: ExcalidrawElement["id"] | null;
176
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
176
177
  matches: readonly import("../types").SearchMatch[];
177
178
  }> | null;
178
179
  activeLockedId: string | null;
@@ -180,10 +181,15 @@ export declare const actionZoomIn: {
180
181
  [groupId: string]: true;
181
182
  };
182
183
  bindMode: import("@excalidraw/element/types").BindMode;
184
+ colorTopPicks: {
185
+ elementStroke: readonly string[] | null;
186
+ elementBackground: readonly string[] | null;
187
+ bucketFill: readonly string[] | null;
188
+ };
183
189
  };
184
190
  captureUpdate: "EVENTUALLY";
185
191
  };
186
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
192
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
187
193
  keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
188
194
  } & {
189
195
  keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
@@ -193,17 +199,16 @@ export declare const actionZoomOut: {
193
199
  label: string;
194
200
  icon: import("react/jsx-runtime").JSX.Element;
195
201
  viewMode: true;
202
+ navigation: true;
196
203
  trackEvent: {
197
204
  category: "canvas";
198
205
  };
206
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
199
207
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
200
208
  appState: {
201
- userToFollow: null;
209
+ zoom: import("../types").Zoom;
202
210
  scrollX: number;
203
211
  scrollY: number;
204
- zoom: {
205
- value: import("../types").NormalizedZoomValue;
206
- };
207
212
  contextMenu: {
208
213
  items: import("../components/ContextMenu").ContextMenuItems;
209
214
  top: number;
@@ -240,6 +245,10 @@ export declare const actionZoomOut: {
240
245
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
241
246
  midPoint?: import("@excalidraw/math").GlobalPoint;
242
247
  } | null;
248
+ hoveredArrowTextAnchor: {
249
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
250
+ anchor: "start" | "end" | "label";
251
+ } | null;
243
252
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
244
253
  frameRendering: {
245
254
  enabled: boolean;
@@ -247,8 +256,8 @@ export declare const actionZoomOut: {
247
256
  outline: boolean;
248
257
  clip: boolean;
249
258
  };
250
- editingFrame: string | null;
251
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
259
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
260
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
252
261
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
253
262
  activeTool: {
254
263
  lastActiveTool: import("../types").ActiveTool | null;
@@ -267,9 +276,9 @@ export declare const actionZoomOut: {
267
276
  exportScale: number;
268
277
  currentItemStrokeColor: string;
269
278
  currentItemBackgroundColor: string;
270
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
279
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
271
280
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
272
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
281
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
273
282
  currentItemRoughness: number;
274
283
  currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
275
284
  currentItemOpacity: number;
@@ -282,6 +291,7 @@ export declare const actionZoomOut: {
282
291
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
283
292
  currentItemArrowType: "sharp" | "round" | "elbow";
284
293
  viewBackgroundColor: string;
294
+ scrollConstraints: import("../types").ScrollConstraints | null;
285
295
  cursorButton: "up" | "down";
286
296
  scrolledOutside: boolean;
287
297
  name: string | null;
@@ -299,7 +309,7 @@ export declare const actionZoomOut: {
299
309
  name: "settings";
300
310
  } | {
301
311
  name: "elementLinkSelector";
302
- sourceElementId: ExcalidrawElement["id"];
312
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
303
313
  } | {
304
314
  name: "charts";
305
315
  data: import("../charts").Spreadsheet;
@@ -352,11 +362,10 @@ export declare const actionZoomOut: {
352
362
  y: number;
353
363
  } | null;
354
364
  objectsSnapModeEnabled: boolean;
355
- followedBy: Set<import("../types").SocketId>;
356
365
  isCropping: boolean;
357
- croppingElementId: ExcalidrawElement["id"] | null;
366
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
358
367
  searchMatches: Readonly<{
359
- focusedId: ExcalidrawElement["id"] | null;
368
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
360
369
  matches: readonly import("../types").SearchMatch[];
361
370
  }> | null;
362
371
  activeLockedId: string | null;
@@ -364,10 +373,15 @@ export declare const actionZoomOut: {
364
373
  [groupId: string]: true;
365
374
  };
366
375
  bindMode: import("@excalidraw/element/types").BindMode;
376
+ colorTopPicks: {
377
+ elementStroke: readonly string[] | null;
378
+ elementBackground: readonly string[] | null;
379
+ bucketFill: readonly string[] | null;
380
+ };
367
381
  };
368
382
  captureUpdate: "EVENTUALLY";
369
383
  };
370
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
384
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
371
385
  keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
372
386
  } & {
373
387
  keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
@@ -377,17 +391,16 @@ export declare const actionResetZoom: {
377
391
  label: string;
378
392
  icon: import("react/jsx-runtime").JSX.Element;
379
393
  viewMode: true;
394
+ navigation: true;
380
395
  trackEvent: {
381
396
  category: "canvas";
382
397
  };
398
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
383
399
  perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
384
400
  appState: {
385
- userToFollow: null;
401
+ zoom: import("../types").Zoom;
386
402
  scrollX: number;
387
403
  scrollY: number;
388
- zoom: {
389
- value: import("../types").NormalizedZoomValue;
390
- };
391
404
  contextMenu: {
392
405
  items: import("../components/ContextMenu").ContextMenuItems;
393
406
  top: number;
@@ -424,6 +437,10 @@ export declare const actionResetZoom: {
424
437
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
425
438
  midPoint?: import("@excalidraw/math").GlobalPoint;
426
439
  } | null;
440
+ hoveredArrowTextAnchor: {
441
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
442
+ anchor: "start" | "end" | "label";
443
+ } | null;
427
444
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
428
445
  frameRendering: {
429
446
  enabled: boolean;
@@ -431,8 +448,8 @@ export declare const actionResetZoom: {
431
448
  outline: boolean;
432
449
  clip: boolean;
433
450
  };
434
- editingFrame: string | null;
435
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
451
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
452
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
436
453
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
437
454
  activeTool: {
438
455
  lastActiveTool: import("../types").ActiveTool | null;
@@ -451,9 +468,9 @@ export declare const actionResetZoom: {
451
468
  exportScale: number;
452
469
  currentItemStrokeColor: string;
453
470
  currentItemBackgroundColor: string;
454
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
471
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
455
472
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
456
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
473
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
457
474
  currentItemRoughness: number;
458
475
  currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
459
476
  currentItemOpacity: number;
@@ -466,6 +483,7 @@ export declare const actionResetZoom: {
466
483
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
467
484
  currentItemArrowType: "sharp" | "round" | "elbow";
468
485
  viewBackgroundColor: string;
486
+ scrollConstraints: import("../types").ScrollConstraints | null;
469
487
  cursorButton: "up" | "down";
470
488
  scrolledOutside: boolean;
471
489
  name: string | null;
@@ -483,7 +501,7 @@ export declare const actionResetZoom: {
483
501
  name: "settings";
484
502
  } | {
485
503
  name: "elementLinkSelector";
486
- sourceElementId: ExcalidrawElement["id"];
504
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
487
505
  } | {
488
506
  name: "charts";
489
507
  data: import("../charts").Spreadsheet;
@@ -536,11 +554,10 @@ export declare const actionResetZoom: {
536
554
  y: number;
537
555
  } | null;
538
556
  objectsSnapModeEnabled: boolean;
539
- followedBy: Set<import("../types").SocketId>;
540
557
  isCropping: boolean;
541
- croppingElementId: ExcalidrawElement["id"] | null;
558
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
542
559
  searchMatches: Readonly<{
543
- focusedId: ExcalidrawElement["id"] | null;
560
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
544
561
  matches: readonly import("../types").SearchMatch[];
545
562
  }> | null;
546
563
  activeLockedId: string | null;
@@ -548,390 +565,34 @@ export declare const actionResetZoom: {
548
565
  [groupId: string]: true;
549
566
  };
550
567
  bindMode: import("@excalidraw/element/types").BindMode;
568
+ colorTopPicks: {
569
+ elementStroke: readonly string[] | null;
570
+ elementBackground: readonly string[] | null;
571
+ bucketFill: readonly string[] | null;
572
+ };
551
573
  };
552
574
  captureUpdate: "EVENTUALLY";
553
575
  };
554
- PanelComponent: ({ updateData, appState }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
576
+ PanelComponent: ({ updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
555
577
  keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
556
578
  } & {
557
579
  keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
558
580
  };
559
- export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
560
- bounds: SceneBounds;
561
- canvasOffsets?: Offsets;
562
- appState: Readonly<AppState>;
563
- /** whether to fit content to viewport (beyond >100%) */
564
- fitToViewport: boolean;
565
- /** zoom content to cover X of the viewport, when fitToViewport=true */
566
- viewportZoomFactor?: number;
567
- minZoom?: number;
568
- maxZoom?: number;
569
- }) => {
570
- appState: {
571
- scrollX: number;
572
- scrollY: number;
573
- zoom: {
574
- value: import("../types").NormalizedZoomValue;
575
- };
576
- contextMenu: {
577
- items: import("../components/ContextMenu").ContextMenuItems;
578
- top: number;
579
- left: number;
580
- } | null;
581
- showWelcomeScreen: boolean;
582
- isLoading: boolean;
583
- myocSimplifiedMode: boolean;
584
- dontResizeLimitMBs: number;
585
- hideMainMenus: boolean;
586
- wheelZoomsOnDefault?: boolean;
587
- arrangeConfiguration: {
588
- algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
589
- gap: number;
590
- };
591
- normaliseConfiguration: {
592
- mode: import("../types").NormaliseMode;
593
- metric: import("../types").NormaliseMetric;
594
- };
595
- errorMessage: React.ReactNode;
596
- activeEmbeddable: {
597
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
598
- state: "hover" | "active";
599
- } | null;
600
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
601
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
602
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
603
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
604
- isBindingEnabled: boolean;
605
- boxSelectionMode: import("../types").BoxSelectionMode;
606
- bindingPreference: "enabled" | "disabled";
607
- isMidpointSnappingEnabled: boolean;
608
- suggestedBinding: {
609
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
610
- midPoint?: import("@excalidraw/math").GlobalPoint;
611
- } | null;
612
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
613
- frameRendering: {
614
- enabled: boolean;
615
- name: boolean;
616
- outline: boolean;
617
- clip: boolean;
618
- };
619
- editingFrame: string | null;
620
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
621
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
622
- activeTool: {
623
- lastActiveTool: import("../types").ActiveTool | null;
624
- locked: boolean;
625
- fromSelection: boolean;
626
- } & import("../types").ActiveTool;
627
- preferredSelectionTool: {
628
- type: "selection" | "lasso";
629
- initialized: boolean;
630
- };
631
- penMode: boolean;
632
- penDetected: boolean;
633
- exportBackground: boolean;
634
- exportEmbedScene: boolean;
635
- exportWithDarkMode: boolean;
636
- exportScale: number;
637
- currentItemStrokeColor: string;
638
- currentItemBackgroundColor: string;
639
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
640
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
641
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
642
- currentItemRoughness: number;
643
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
644
- currentItemOpacity: number;
645
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
646
- currentItemFontSize: number;
647
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
648
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
649
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
650
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
651
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
652
- currentItemArrowType: "sharp" | "round" | "elbow";
653
- viewBackgroundColor: string;
654
- cursorButton: "up" | "down";
655
- scrolledOutside: boolean;
656
- name: string | null;
657
- isResizing: boolean;
658
- isRotating: boolean;
659
- openMenu: "canvas" | null;
660
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
661
- openSidebar: {
662
- name: import("../types").SidebarName;
663
- tab?: import("../types").SidebarTabName;
664
- } | null;
665
- openDialog: null | {
666
- name: "imageExport" | "help" | "jsonExport";
667
- } | {
668
- name: "settings";
669
- } | {
670
- name: "elementLinkSelector";
671
- sourceElementId: ExcalidrawElement["id"];
672
- } | {
673
- name: "charts";
674
- data: import("../charts").Spreadsheet;
675
- rawText: string;
676
- };
677
- defaultSidebarDockedPreference: boolean;
678
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
679
- selectedElementIds: Readonly<{
680
- [id: string]: true;
681
- }>;
682
- hoveredElementIds: Readonly<{
683
- [id: string]: true;
684
- }>;
685
- previousSelectedElementIds: {
686
- [id: string]: true;
687
- };
688
- selectedElementsAreBeingDragged: boolean;
689
- shouldCacheIgnoreZoom: boolean;
690
- toast: {
691
- message: React.ReactNode;
692
- closable?: boolean;
693
- duration?: number;
694
- } | null;
695
- zenModeEnabled: boolean;
696
- theme: import("@excalidraw/element/types").Theme;
697
- gridSize: number;
698
- gridStep: number;
699
- gridModeEnabled: boolean;
700
- viewModeEnabled: boolean;
701
- viewModeOnly: boolean;
702
- selectedGroupIds: {
703
- [groupId: string]: boolean;
704
- };
705
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
706
- width: number;
707
- height: number;
708
- offsetTop: number;
709
- offsetLeft: number;
710
- fileHandle: FileSystemFileHandle | null;
711
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
712
- stats: {
713
- open: boolean;
714
- panels: number;
715
- };
716
- showHyperlinkPopup: false | "info" | "editor";
717
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
718
- snapLines: readonly import("../snapping").SnapLine[];
719
- originSnapOffset: {
720
- x: number;
721
- y: number;
722
- } | null;
723
- objectsSnapModeEnabled: boolean;
724
- userToFollow: import("../types").UserToFollow | null;
725
- followedBy: Set<import("../types").SocketId>;
726
- isCropping: boolean;
727
- croppingElementId: ExcalidrawElement["id"] | null;
728
- searchMatches: Readonly<{
729
- focusedId: ExcalidrawElement["id"] | null;
730
- matches: readonly import("../types").SearchMatch[];
731
- }> | null;
732
- activeLockedId: string | null;
733
- lockedMultiSelections: {
734
- [groupId: string]: true;
735
- };
736
- bindMode: import("@excalidraw/element/types").BindMode;
737
- };
738
- captureUpdate: "EVENTUALLY";
739
- };
740
- export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
741
- canvasOffsets?: Offsets;
742
- targetElements: readonly ExcalidrawElement[];
743
- appState: Readonly<AppState>;
744
- /** whether to fit content to viewport (beyond >100%) */
745
- fitToViewport: boolean;
746
- /** zoom content to cover X of the viewport, when fitToViewport=true */
747
- viewportZoomFactor?: number;
748
- minZoom?: number;
749
- maxZoom?: number;
750
- }) => {
751
- appState: {
752
- scrollX: number;
753
- scrollY: number;
754
- zoom: {
755
- value: import("../types").NormalizedZoomValue;
756
- };
757
- contextMenu: {
758
- items: import("../components/ContextMenu").ContextMenuItems;
759
- top: number;
760
- left: number;
761
- } | null;
762
- showWelcomeScreen: boolean;
763
- isLoading: boolean;
764
- myocSimplifiedMode: boolean;
765
- dontResizeLimitMBs: number;
766
- hideMainMenus: boolean;
767
- wheelZoomsOnDefault?: boolean;
768
- arrangeConfiguration: {
769
- algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
770
- gap: number;
771
- };
772
- normaliseConfiguration: {
773
- mode: import("../types").NormaliseMode;
774
- metric: import("../types").NormaliseMetric;
775
- };
776
- errorMessage: React.ReactNode;
777
- activeEmbeddable: {
778
- element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
779
- state: "hover" | "active";
780
- } | null;
781
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
782
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
783
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
784
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
785
- isBindingEnabled: boolean;
786
- boxSelectionMode: import("../types").BoxSelectionMode;
787
- bindingPreference: "enabled" | "disabled";
788
- isMidpointSnappingEnabled: boolean;
789
- suggestedBinding: {
790
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
791
- midPoint?: import("@excalidraw/math").GlobalPoint;
792
- } | null;
793
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
794
- frameRendering: {
795
- enabled: boolean;
796
- name: boolean;
797
- outline: boolean;
798
- clip: boolean;
799
- };
800
- editingFrame: string | null;
801
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
802
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
803
- activeTool: {
804
- lastActiveTool: import("../types").ActiveTool | null;
805
- locked: boolean;
806
- fromSelection: boolean;
807
- } & import("../types").ActiveTool;
808
- preferredSelectionTool: {
809
- type: "selection" | "lasso";
810
- initialized: boolean;
811
- };
812
- penMode: boolean;
813
- penDetected: boolean;
814
- exportBackground: boolean;
815
- exportEmbedScene: boolean;
816
- exportWithDarkMode: boolean;
817
- exportScale: number;
818
- currentItemStrokeColor: string;
819
- currentItemBackgroundColor: string;
820
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
821
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
822
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
823
- currentItemRoughness: number;
824
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
825
- currentItemOpacity: number;
826
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
827
- currentItemFontSize: number;
828
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
829
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
830
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
831
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
832
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
833
- currentItemArrowType: "sharp" | "round" | "elbow";
834
- viewBackgroundColor: string;
835
- cursorButton: "up" | "down";
836
- scrolledOutside: boolean;
837
- name: string | null;
838
- isResizing: boolean;
839
- isRotating: boolean;
840
- openMenu: "canvas" | null;
841
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
842
- openSidebar: {
843
- name: import("../types").SidebarName;
844
- tab?: import("../types").SidebarTabName;
845
- } | null;
846
- openDialog: null | {
847
- name: "imageExport" | "help" | "jsonExport";
848
- } | {
849
- name: "settings";
850
- } | {
851
- name: "elementLinkSelector";
852
- sourceElementId: ExcalidrawElement["id"];
853
- } | {
854
- name: "charts";
855
- data: import("../charts").Spreadsheet;
856
- rawText: string;
857
- };
858
- defaultSidebarDockedPreference: boolean;
859
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
860
- selectedElementIds: Readonly<{
861
- [id: string]: true;
862
- }>;
863
- hoveredElementIds: Readonly<{
864
- [id: string]: true;
865
- }>;
866
- previousSelectedElementIds: {
867
- [id: string]: true;
868
- };
869
- selectedElementsAreBeingDragged: boolean;
870
- shouldCacheIgnoreZoom: boolean;
871
- toast: {
872
- message: React.ReactNode;
873
- closable?: boolean;
874
- duration?: number;
875
- } | null;
876
- zenModeEnabled: boolean;
877
- theme: import("@excalidraw/element/types").Theme;
878
- gridSize: number;
879
- gridStep: number;
880
- gridModeEnabled: boolean;
881
- viewModeEnabled: boolean;
882
- viewModeOnly: boolean;
883
- selectedGroupIds: {
884
- [groupId: string]: boolean;
885
- };
886
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
887
- width: number;
888
- height: number;
889
- offsetTop: number;
890
- offsetLeft: number;
891
- fileHandle: FileSystemFileHandle | null;
892
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
893
- stats: {
894
- open: boolean;
895
- panels: number;
896
- };
897
- showHyperlinkPopup: false | "info" | "editor";
898
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
899
- snapLines: readonly import("../snapping").SnapLine[];
900
- originSnapOffset: {
901
- x: number;
902
- y: number;
903
- } | null;
904
- objectsSnapModeEnabled: boolean;
905
- userToFollow: import("../types").UserToFollow | null;
906
- followedBy: Set<import("../types").SocketId>;
907
- isCropping: boolean;
908
- croppingElementId: ExcalidrawElement["id"] | null;
909
- searchMatches: Readonly<{
910
- focusedId: ExcalidrawElement["id"] | null;
911
- matches: readonly import("../types").SearchMatch[];
912
- }> | null;
913
- activeLockedId: string | null;
914
- lockedMultiSelections: {
915
- [groupId: string]: true;
916
- };
917
- bindMode: import("@excalidraw/element/types").BindMode;
918
- };
919
- captureUpdate: "EVENTUALLY";
920
- };
921
581
  export declare const actionZoomToFitSelectionInViewport: {
922
582
  name: "zoomToFitSelectionInViewport";
923
583
  label: string;
924
584
  icon: import("react/jsx-runtime").JSX.Element;
585
+ viewMode: true;
586
+ navigation: true;
925
587
  trackEvent: {
926
588
  category: "canvas";
927
589
  };
590
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
928
591
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
929
592
  appState: {
593
+ zoom: import("../types").Zoom;
930
594
  scrollX: number;
931
595
  scrollY: number;
932
- zoom: {
933
- value: import("../types").NormalizedZoomValue;
934
- };
935
596
  contextMenu: {
936
597
  items: import("../components/ContextMenu").ContextMenuItems;
937
598
  top: number;
@@ -968,6 +629,10 @@ export declare const actionZoomToFitSelectionInViewport: {
968
629
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
969
630
  midPoint?: import("@excalidraw/math").GlobalPoint;
970
631
  } | null;
632
+ hoveredArrowTextAnchor: {
633
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
634
+ anchor: "start" | "end" | "label";
635
+ } | null;
971
636
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
972
637
  frameRendering: {
973
638
  enabled: boolean;
@@ -975,8 +640,8 @@ export declare const actionZoomToFitSelectionInViewport: {
975
640
  outline: boolean;
976
641
  clip: boolean;
977
642
  };
978
- editingFrame: string | null;
979
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
643
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
644
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
980
645
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
981
646
  activeTool: {
982
647
  lastActiveTool: import("../types").ActiveTool | null;
@@ -995,9 +660,9 @@ export declare const actionZoomToFitSelectionInViewport: {
995
660
  exportScale: number;
996
661
  currentItemStrokeColor: string;
997
662
  currentItemBackgroundColor: string;
998
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
663
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
999
664
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1000
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
665
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1001
666
  currentItemRoughness: number;
1002
667
  currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1003
668
  currentItemOpacity: number;
@@ -1010,6 +675,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1010
675
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1011
676
  currentItemArrowType: "sharp" | "round" | "elbow";
1012
677
  viewBackgroundColor: string;
678
+ scrollConstraints: import("../types").ScrollConstraints | null;
1013
679
  cursorButton: "up" | "down";
1014
680
  scrolledOutside: boolean;
1015
681
  name: string | null;
@@ -1027,7 +693,7 @@ export declare const actionZoomToFitSelectionInViewport: {
1027
693
  name: "settings";
1028
694
  } | {
1029
695
  name: "elementLinkSelector";
1030
- sourceElementId: ExcalidrawElement["id"];
696
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1031
697
  } | {
1032
698
  name: "charts";
1033
699
  data: import("../charts").Spreadsheet;
@@ -1080,12 +746,10 @@ export declare const actionZoomToFitSelectionInViewport: {
1080
746
  y: number;
1081
747
  } | null;
1082
748
  objectsSnapModeEnabled: boolean;
1083
- userToFollow: import("../types").UserToFollow | null;
1084
- followedBy: Set<import("../types").SocketId>;
1085
749
  isCropping: boolean;
1086
- croppingElementId: ExcalidrawElement["id"] | null;
750
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1087
751
  searchMatches: Readonly<{
1088
- focusedId: ExcalidrawElement["id"] | null;
752
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1089
753
  matches: readonly import("../types").SearchMatch[];
1090
754
  }> | null;
1091
755
  activeLockedId: string | null;
@@ -1093,6 +757,11 @@ export declare const actionZoomToFitSelectionInViewport: {
1093
757
  [groupId: string]: true;
1094
758
  };
1095
759
  bindMode: import("@excalidraw/element/types").BindMode;
760
+ colorTopPicks: {
761
+ elementStroke: readonly string[] | null;
762
+ elementBackground: readonly string[] | null;
763
+ bucketFill: readonly string[] | null;
764
+ };
1096
765
  };
1097
766
  captureUpdate: "EVENTUALLY";
1098
767
  };
@@ -1104,16 +773,17 @@ export declare const actionZoomToFitSelection: {
1104
773
  name: "zoomToFitSelection";
1105
774
  label: string;
1106
775
  icon: import("react/jsx-runtime").JSX.Element;
776
+ viewMode: true;
777
+ navigation: true;
1107
778
  trackEvent: {
1108
779
  category: "canvas";
1109
780
  };
781
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1110
782
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1111
783
  appState: {
784
+ zoom: import("../types").Zoom;
1112
785
  scrollX: number;
1113
786
  scrollY: number;
1114
- zoom: {
1115
- value: import("../types").NormalizedZoomValue;
1116
- };
1117
787
  contextMenu: {
1118
788
  items: import("../components/ContextMenu").ContextMenuItems;
1119
789
  top: number;
@@ -1150,6 +820,10 @@ export declare const actionZoomToFitSelection: {
1150
820
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1151
821
  midPoint?: import("@excalidraw/math").GlobalPoint;
1152
822
  } | null;
823
+ hoveredArrowTextAnchor: {
824
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
825
+ anchor: "start" | "end" | "label";
826
+ } | null;
1153
827
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1154
828
  frameRendering: {
1155
829
  enabled: boolean;
@@ -1157,8 +831,8 @@ export declare const actionZoomToFitSelection: {
1157
831
  outline: boolean;
1158
832
  clip: boolean;
1159
833
  };
1160
- editingFrame: string | null;
1161
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
834
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
835
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
1162
836
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1163
837
  activeTool: {
1164
838
  lastActiveTool: import("../types").ActiveTool | null;
@@ -1177,9 +851,9 @@ export declare const actionZoomToFitSelection: {
1177
851
  exportScale: number;
1178
852
  currentItemStrokeColor: string;
1179
853
  currentItemBackgroundColor: string;
1180
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
854
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1181
855
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1182
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
856
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1183
857
  currentItemRoughness: number;
1184
858
  currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1185
859
  currentItemOpacity: number;
@@ -1192,6 +866,7 @@ export declare const actionZoomToFitSelection: {
1192
866
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1193
867
  currentItemArrowType: "sharp" | "round" | "elbow";
1194
868
  viewBackgroundColor: string;
869
+ scrollConstraints: import("../types").ScrollConstraints | null;
1195
870
  cursorButton: "up" | "down";
1196
871
  scrolledOutside: boolean;
1197
872
  name: string | null;
@@ -1209,7 +884,7 @@ export declare const actionZoomToFitSelection: {
1209
884
  name: "settings";
1210
885
  } | {
1211
886
  name: "elementLinkSelector";
1212
- sourceElementId: ExcalidrawElement["id"];
887
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1213
888
  } | {
1214
889
  name: "charts";
1215
890
  data: import("../charts").Spreadsheet;
@@ -1262,12 +937,10 @@ export declare const actionZoomToFitSelection: {
1262
937
  y: number;
1263
938
  } | null;
1264
939
  objectsSnapModeEnabled: boolean;
1265
- userToFollow: import("../types").UserToFollow | null;
1266
- followedBy: Set<import("../types").SocketId>;
1267
940
  isCropping: boolean;
1268
- croppingElementId: ExcalidrawElement["id"] | null;
941
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1269
942
  searchMatches: Readonly<{
1270
- focusedId: ExcalidrawElement["id"] | null;
943
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1271
944
  matches: readonly import("../types").SearchMatch[];
1272
945
  }> | null;
1273
946
  activeLockedId: string | null;
@@ -1275,6 +948,11 @@ export declare const actionZoomToFitSelection: {
1275
948
  [groupId: string]: true;
1276
949
  };
1277
950
  bindMode: import("@excalidraw/element/types").BindMode;
951
+ colorTopPicks: {
952
+ elementStroke: readonly string[] | null;
953
+ elementBackground: readonly string[] | null;
954
+ bucketFill: readonly string[] | null;
955
+ };
1278
956
  };
1279
957
  captureUpdate: "EVENTUALLY";
1280
958
  };
@@ -1287,16 +965,16 @@ export declare const actionZoomToFit: {
1287
965
  label: string;
1288
966
  icon: import("react/jsx-runtime").JSX.Element;
1289
967
  viewMode: true;
968
+ navigation: true;
1290
969
  trackEvent: {
1291
970
  category: "canvas";
1292
971
  };
972
+ predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: AppState, appProps: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1293
973
  perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1294
974
  appState: {
975
+ zoom: import("../types").Zoom;
1295
976
  scrollX: number;
1296
977
  scrollY: number;
1297
- zoom: {
1298
- value: import("../types").NormalizedZoomValue;
1299
- };
1300
978
  contextMenu: {
1301
979
  items: import("../components/ContextMenu").ContextMenuItems;
1302
980
  top: number;
@@ -1333,6 +1011,10 @@ export declare const actionZoomToFit: {
1333
1011
  element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1334
1012
  midPoint?: import("@excalidraw/math").GlobalPoint;
1335
1013
  } | null;
1014
+ hoveredArrowTextAnchor: {
1015
+ elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
1016
+ anchor: "start" | "end" | "label";
1017
+ } | null;
1336
1018
  frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1337
1019
  frameRendering: {
1338
1020
  enabled: boolean;
@@ -1340,8 +1022,8 @@ export declare const actionZoomToFit: {
1340
1022
  outline: boolean;
1341
1023
  clip: boolean;
1342
1024
  };
1343
- editingFrame: string | null;
1344
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1025
+ editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
1026
+ elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
1345
1027
  editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1346
1028
  activeTool: {
1347
1029
  lastActiveTool: import("../types").ActiveTool | null;
@@ -1360,9 +1042,9 @@ export declare const actionZoomToFit: {
1360
1042
  exportScale: number;
1361
1043
  currentItemStrokeColor: string;
1362
1044
  currentItemBackgroundColor: string;
1363
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1045
+ currentItemFillStyle: import("@excalidraw/element/types").ExcalidrawElement["fillStyle"];
1364
1046
  currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1365
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1047
+ currentItemStrokeStyle: import("@excalidraw/element/types").ExcalidrawElement["strokeStyle"];
1366
1048
  currentItemRoughness: number;
1367
1049
  currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1368
1050
  currentItemOpacity: number;
@@ -1375,6 +1057,7 @@ export declare const actionZoomToFit: {
1375
1057
  currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1376
1058
  currentItemArrowType: "sharp" | "round" | "elbow";
1377
1059
  viewBackgroundColor: string;
1060
+ scrollConstraints: import("../types").ScrollConstraints | null;
1378
1061
  cursorButton: "up" | "down";
1379
1062
  scrolledOutside: boolean;
1380
1063
  name: string | null;
@@ -1392,7 +1075,7 @@ export declare const actionZoomToFit: {
1392
1075
  name: "settings";
1393
1076
  } | {
1394
1077
  name: "elementLinkSelector";
1395
- sourceElementId: ExcalidrawElement["id"];
1078
+ sourceElementId: import("@excalidraw/element/types").ExcalidrawElement["id"];
1396
1079
  } | {
1397
1080
  name: "charts";
1398
1081
  data: import("../charts").Spreadsheet;
@@ -1445,12 +1128,10 @@ export declare const actionZoomToFit: {
1445
1128
  y: number;
1446
1129
  } | null;
1447
1130
  objectsSnapModeEnabled: boolean;
1448
- userToFollow: import("../types").UserToFollow | null;
1449
- followedBy: Set<import("../types").SocketId>;
1450
1131
  isCropping: boolean;
1451
- croppingElementId: ExcalidrawElement["id"] | null;
1132
+ croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1452
1133
  searchMatches: Readonly<{
1453
- focusedId: ExcalidrawElement["id"] | null;
1134
+ focusedId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
1454
1135
  matches: readonly import("../types").SearchMatch[];
1455
1136
  }> | null;
1456
1137
  activeLockedId: string | null;
@@ -1458,6 +1139,11 @@ export declare const actionZoomToFit: {
1458
1139
  [groupId: string]: true;
1459
1140
  };
1460
1141
  bindMode: import("@excalidraw/element/types").BindMode;
1142
+ colorTopPicks: {
1143
+ elementStroke: readonly string[] | null;
1144
+ elementBackground: readonly string[] | null;
1145
+ bucketFill: readonly string[] | null;
1146
+ };
1461
1147
  };
1462
1148
  captureUpdate: "EVENTUALLY";
1463
1149
  };
@@ -1466,524 +1152,5 @@ export declare const actionZoomToFit: {
1466
1152
  keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1467
1153
  };
1468
1154
  export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
1469
- keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1470
- };
1471
- export declare const actionToggleEraserTool: {
1472
- name: "toggleEraserTool";
1473
- label: string;
1474
- trackEvent: {
1475
- category: "toolbar";
1476
- };
1477
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1478
- appState: {
1479
- selectedElementIds: {};
1480
- selectedGroupIds: {};
1481
- activeEmbeddable: null;
1482
- activeTool: {
1483
- lastActiveTool: import("../types").ActiveTool | null;
1484
- locked: boolean;
1485
- fromSelection: boolean;
1486
- } & import("../types").ActiveTool;
1487
- contextMenu: {
1488
- items: import("../components/ContextMenu").ContextMenuItems;
1489
- top: number;
1490
- left: number;
1491
- } | null;
1492
- showWelcomeScreen: boolean;
1493
- isLoading: boolean;
1494
- myocSimplifiedMode: boolean;
1495
- dontResizeLimitMBs: number;
1496
- hideMainMenus: boolean;
1497
- wheelZoomsOnDefault?: boolean;
1498
- arrangeConfiguration: {
1499
- algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
1500
- gap: number;
1501
- };
1502
- normaliseConfiguration: {
1503
- mode: import("../types").NormaliseMode;
1504
- metric: import("../types").NormaliseMetric;
1505
- };
1506
- errorMessage: React.ReactNode;
1507
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1508
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1509
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1510
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1511
- isBindingEnabled: boolean;
1512
- boxSelectionMode: import("../types").BoxSelectionMode;
1513
- bindingPreference: "enabled" | "disabled";
1514
- isMidpointSnappingEnabled: boolean;
1515
- suggestedBinding: {
1516
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1517
- midPoint?: import("@excalidraw/math").GlobalPoint;
1518
- } | null;
1519
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1520
- frameRendering: {
1521
- enabled: boolean;
1522
- name: boolean;
1523
- outline: boolean;
1524
- clip: boolean;
1525
- };
1526
- editingFrame: string | null;
1527
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1528
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1529
- preferredSelectionTool: {
1530
- type: "selection" | "lasso";
1531
- initialized: boolean;
1532
- };
1533
- penMode: boolean;
1534
- penDetected: boolean;
1535
- exportBackground: boolean;
1536
- exportEmbedScene: boolean;
1537
- exportWithDarkMode: boolean;
1538
- exportScale: number;
1539
- currentItemStrokeColor: string;
1540
- currentItemBackgroundColor: string;
1541
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1542
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1543
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1544
- currentItemRoughness: number;
1545
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1546
- currentItemOpacity: number;
1547
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1548
- currentItemFontSize: number;
1549
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1550
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1551
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1552
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1553
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1554
- currentItemArrowType: "sharp" | "round" | "elbow";
1555
- viewBackgroundColor: string;
1556
- scrollX: number;
1557
- scrollY: number;
1558
- cursorButton: "up" | "down";
1559
- scrolledOutside: boolean;
1560
- name: string | null;
1561
- isResizing: boolean;
1562
- isRotating: boolean;
1563
- zoom: import("../types").Zoom;
1564
- openMenu: "canvas" | null;
1565
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1566
- openSidebar: {
1567
- name: import("../types").SidebarName;
1568
- tab?: import("../types").SidebarTabName;
1569
- } | null;
1570
- openDialog: null | {
1571
- name: "imageExport" | "help" | "jsonExport";
1572
- } | {
1573
- name: "settings";
1574
- } | {
1575
- name: "elementLinkSelector";
1576
- sourceElementId: ExcalidrawElement["id"];
1577
- } | {
1578
- name: "charts";
1579
- data: import("../charts").Spreadsheet;
1580
- rawText: string;
1581
- };
1582
- defaultSidebarDockedPreference: boolean;
1583
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1584
- hoveredElementIds: Readonly<{
1585
- [id: string]: true;
1586
- }>;
1587
- previousSelectedElementIds: {
1588
- [id: string]: true;
1589
- };
1590
- selectedElementsAreBeingDragged: boolean;
1591
- shouldCacheIgnoreZoom: boolean;
1592
- toast: {
1593
- message: React.ReactNode;
1594
- closable?: boolean;
1595
- duration?: number;
1596
- } | null;
1597
- zenModeEnabled: boolean;
1598
- theme: import("@excalidraw/element/types").Theme;
1599
- gridSize: number;
1600
- gridStep: number;
1601
- gridModeEnabled: boolean;
1602
- viewModeEnabled: boolean;
1603
- viewModeOnly: boolean;
1604
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
1605
- width: number;
1606
- height: number;
1607
- offsetTop: number;
1608
- offsetLeft: number;
1609
- fileHandle: FileSystemFileHandle | null;
1610
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1611
- stats: {
1612
- open: boolean;
1613
- panels: number;
1614
- };
1615
- showHyperlinkPopup: false | "info" | "editor";
1616
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1617
- snapLines: readonly import("../snapping").SnapLine[];
1618
- originSnapOffset: {
1619
- x: number;
1620
- y: number;
1621
- } | null;
1622
- objectsSnapModeEnabled: boolean;
1623
- userToFollow: import("../types").UserToFollow | null;
1624
- followedBy: Set<import("../types").SocketId>;
1625
- isCropping: boolean;
1626
- croppingElementId: ExcalidrawElement["id"] | null;
1627
- searchMatches: Readonly<{
1628
- focusedId: ExcalidrawElement["id"] | null;
1629
- matches: readonly import("../types").SearchMatch[];
1630
- }> | null;
1631
- activeLockedId: string | null;
1632
- lockedMultiSelections: {
1633
- [groupId: string]: true;
1634
- };
1635
- bindMode: import("@excalidraw/element/types").BindMode;
1636
- };
1637
- captureUpdate: "IMMEDIATELY";
1638
- };
1639
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1640
- } & {
1641
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1642
- };
1643
- export declare const actionToggleLassoTool: {
1644
- name: "toggleLassoTool";
1645
- label: string;
1646
- icon: import("react/jsx-runtime").JSX.Element;
1647
- trackEvent: {
1648
- category: "toolbar";
1649
- };
1650
- predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
1651
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1652
- appState: {
1653
- selectedElementIds: {};
1654
- selectedGroupIds: {};
1655
- activeEmbeddable: null;
1656
- activeTool: {
1657
- lastActiveTool: import("../types").ActiveTool | null;
1658
- locked: boolean;
1659
- fromSelection: boolean;
1660
- } & import("../types").ActiveTool;
1661
- contextMenu: {
1662
- items: import("../components/ContextMenu").ContextMenuItems;
1663
- top: number;
1664
- left: number;
1665
- } | null;
1666
- showWelcomeScreen: boolean;
1667
- isLoading: boolean;
1668
- myocSimplifiedMode: boolean;
1669
- dontResizeLimitMBs: number;
1670
- hideMainMenus: boolean;
1671
- wheelZoomsOnDefault?: boolean;
1672
- arrangeConfiguration: {
1673
- algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
1674
- gap: number;
1675
- };
1676
- normaliseConfiguration: {
1677
- mode: import("../types").NormaliseMode;
1678
- metric: import("../types").NormaliseMetric;
1679
- };
1680
- errorMessage: React.ReactNode;
1681
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1682
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1683
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1684
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1685
- isBindingEnabled: boolean;
1686
- boxSelectionMode: import("../types").BoxSelectionMode;
1687
- bindingPreference: "enabled" | "disabled";
1688
- isMidpointSnappingEnabled: boolean;
1689
- suggestedBinding: {
1690
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1691
- midPoint?: import("@excalidraw/math").GlobalPoint;
1692
- } | null;
1693
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1694
- frameRendering: {
1695
- enabled: boolean;
1696
- name: boolean;
1697
- outline: boolean;
1698
- clip: boolean;
1699
- };
1700
- editingFrame: string | null;
1701
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1702
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1703
- preferredSelectionTool: {
1704
- type: "selection" | "lasso";
1705
- initialized: boolean;
1706
- };
1707
- penMode: boolean;
1708
- penDetected: boolean;
1709
- exportBackground: boolean;
1710
- exportEmbedScene: boolean;
1711
- exportWithDarkMode: boolean;
1712
- exportScale: number;
1713
- currentItemStrokeColor: string;
1714
- currentItemBackgroundColor: string;
1715
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1716
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1717
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1718
- currentItemRoughness: number;
1719
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1720
- currentItemOpacity: number;
1721
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1722
- currentItemFontSize: number;
1723
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1724
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1725
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1726
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1727
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1728
- currentItemArrowType: "sharp" | "round" | "elbow";
1729
- viewBackgroundColor: string;
1730
- scrollX: number;
1731
- scrollY: number;
1732
- cursorButton: "up" | "down";
1733
- scrolledOutside: boolean;
1734
- name: string | null;
1735
- isResizing: boolean;
1736
- isRotating: boolean;
1737
- zoom: import("../types").Zoom;
1738
- openMenu: "canvas" | null;
1739
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1740
- openSidebar: {
1741
- name: import("../types").SidebarName;
1742
- tab?: import("../types").SidebarTabName;
1743
- } | null;
1744
- openDialog: null | {
1745
- name: "imageExport" | "help" | "jsonExport";
1746
- } | {
1747
- name: "settings";
1748
- } | {
1749
- name: "elementLinkSelector";
1750
- sourceElementId: ExcalidrawElement["id"];
1751
- } | {
1752
- name: "charts";
1753
- data: import("../charts").Spreadsheet;
1754
- rawText: string;
1755
- };
1756
- defaultSidebarDockedPreference: boolean;
1757
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1758
- hoveredElementIds: Readonly<{
1759
- [id: string]: true;
1760
- }>;
1761
- previousSelectedElementIds: {
1762
- [id: string]: true;
1763
- };
1764
- selectedElementsAreBeingDragged: boolean;
1765
- shouldCacheIgnoreZoom: boolean;
1766
- toast: {
1767
- message: React.ReactNode;
1768
- closable?: boolean;
1769
- duration?: number;
1770
- } | null;
1771
- zenModeEnabled: boolean;
1772
- theme: import("@excalidraw/element/types").Theme;
1773
- gridSize: number;
1774
- gridStep: number;
1775
- gridModeEnabled: boolean;
1776
- viewModeEnabled: boolean;
1777
- viewModeOnly: boolean;
1778
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
1779
- width: number;
1780
- height: number;
1781
- offsetTop: number;
1782
- offsetLeft: number;
1783
- fileHandle: FileSystemFileHandle | null;
1784
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1785
- stats: {
1786
- open: boolean;
1787
- panels: number;
1788
- };
1789
- showHyperlinkPopup: false | "info" | "editor";
1790
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1791
- snapLines: readonly import("../snapping").SnapLine[];
1792
- originSnapOffset: {
1793
- x: number;
1794
- y: number;
1795
- } | null;
1796
- objectsSnapModeEnabled: boolean;
1797
- userToFollow: import("../types").UserToFollow | null;
1798
- followedBy: Set<import("../types").SocketId>;
1799
- isCropping: boolean;
1800
- croppingElementId: ExcalidrawElement["id"] | null;
1801
- searchMatches: Readonly<{
1802
- focusedId: ExcalidrawElement["id"] | null;
1803
- matches: readonly import("../types").SearchMatch[];
1804
- }> | null;
1805
- activeLockedId: string | null;
1806
- lockedMultiSelections: {
1807
- [groupId: string]: true;
1808
- };
1809
- bindMode: import("@excalidraw/element/types").BindMode;
1810
- };
1811
- captureUpdate: "NEVER";
1812
- };
1813
- } & {
1814
- keyTest?: undefined;
1815
- };
1816
- export declare const actionToggleHandTool: {
1817
- name: "toggleHandTool";
1818
- label: string;
1819
- trackEvent: {
1820
- category: "toolbar";
1821
- };
1822
- icon: import("react/jsx-runtime").JSX.Element;
1823
- viewMode: false;
1824
- perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
1825
- appState: {
1826
- selectedElementIds: {};
1827
- selectedGroupIds: {};
1828
- activeEmbeddable: null;
1829
- activeTool: {
1830
- lastActiveTool: import("../types").ActiveTool | null;
1831
- locked: boolean;
1832
- fromSelection: boolean;
1833
- } & import("../types").ActiveTool;
1834
- contextMenu: {
1835
- items: import("../components/ContextMenu").ContextMenuItems;
1836
- top: number;
1837
- left: number;
1838
- } | null;
1839
- showWelcomeScreen: boolean;
1840
- isLoading: boolean;
1841
- myocSimplifiedMode: boolean;
1842
- dontResizeLimitMBs: number;
1843
- hideMainMenus: boolean;
1844
- wheelZoomsOnDefault?: boolean;
1845
- arrangeConfiguration: {
1846
- algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
1847
- gap: number;
1848
- };
1849
- normaliseConfiguration: {
1850
- mode: import("../types").NormaliseMode;
1851
- metric: import("../types").NormaliseMetric;
1852
- };
1853
- errorMessage: React.ReactNode;
1854
- newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
1855
- resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1856
- multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
1857
- selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
1858
- isBindingEnabled: boolean;
1859
- boxSelectionMode: import("../types").BoxSelectionMode;
1860
- bindingPreference: "enabled" | "disabled";
1861
- isMidpointSnappingEnabled: boolean;
1862
- suggestedBinding: {
1863
- element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
1864
- midPoint?: import("@excalidraw/math").GlobalPoint;
1865
- } | null;
1866
- frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
1867
- frameRendering: {
1868
- enabled: boolean;
1869
- name: boolean;
1870
- outline: boolean;
1871
- clip: boolean;
1872
- };
1873
- editingFrame: string | null;
1874
- elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
1875
- editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
1876
- preferredSelectionTool: {
1877
- type: "selection" | "lasso";
1878
- initialized: boolean;
1879
- };
1880
- penMode: boolean;
1881
- penDetected: boolean;
1882
- exportBackground: boolean;
1883
- exportEmbedScene: boolean;
1884
- exportWithDarkMode: boolean;
1885
- exportScale: number;
1886
- currentItemStrokeColor: string;
1887
- currentItemBackgroundColor: string;
1888
- currentItemFillStyle: ExcalidrawElement["fillStyle"];
1889
- currentItemStrokeWidthKey: import("@excalidraw/common").StrokeWidthKey;
1890
- currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
1891
- currentItemRoughness: number;
1892
- currentItemStrokeVariability: import("@excalidraw/element/types").StrokeVariability;
1893
- currentItemOpacity: number;
1894
- currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
1895
- currentItemFontSize: number;
1896
- currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
1897
- currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1898
- currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
1899
- currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
1900
- currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
1901
- currentItemArrowType: "sharp" | "round" | "elbow";
1902
- viewBackgroundColor: string;
1903
- scrollX: number;
1904
- scrollY: number;
1905
- cursorButton: "up" | "down";
1906
- scrolledOutside: boolean;
1907
- name: string | null;
1908
- isResizing: boolean;
1909
- isRotating: boolean;
1910
- zoom: import("../types").Zoom;
1911
- openMenu: "canvas" | null;
1912
- openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
1913
- openSidebar: {
1914
- name: import("../types").SidebarName;
1915
- tab?: import("../types").SidebarTabName;
1916
- } | null;
1917
- openDialog: null | {
1918
- name: "imageExport" | "help" | "jsonExport";
1919
- } | {
1920
- name: "settings";
1921
- } | {
1922
- name: "elementLinkSelector";
1923
- sourceElementId: ExcalidrawElement["id"];
1924
- } | {
1925
- name: "charts";
1926
- data: import("../charts").Spreadsheet;
1927
- rawText: string;
1928
- };
1929
- defaultSidebarDockedPreference: boolean;
1930
- lastPointerDownWith: import("@excalidraw/element/types").PointerType;
1931
- hoveredElementIds: Readonly<{
1932
- [id: string]: true;
1933
- }>;
1934
- previousSelectedElementIds: {
1935
- [id: string]: true;
1936
- };
1937
- selectedElementsAreBeingDragged: boolean;
1938
- shouldCacheIgnoreZoom: boolean;
1939
- toast: {
1940
- message: React.ReactNode;
1941
- closable?: boolean;
1942
- duration?: number;
1943
- } | null;
1944
- zenModeEnabled: boolean;
1945
- theme: import("@excalidraw/element/types").Theme;
1946
- gridSize: number;
1947
- gridStep: number;
1948
- gridModeEnabled: boolean;
1949
- viewModeEnabled: boolean;
1950
- viewModeOnly: boolean;
1951
- editingGroupId: import("@excalidraw/element/types").GroupId | null;
1952
- width: number;
1953
- height: number;
1954
- offsetTop: number;
1955
- offsetLeft: number;
1956
- fileHandle: FileSystemFileHandle | null;
1957
- collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
1958
- stats: {
1959
- open: boolean;
1960
- panels: number;
1961
- };
1962
- showHyperlinkPopup: false | "info" | "editor";
1963
- selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
1964
- snapLines: readonly import("../snapping").SnapLine[];
1965
- originSnapOffset: {
1966
- x: number;
1967
- y: number;
1968
- } | null;
1969
- objectsSnapModeEnabled: boolean;
1970
- userToFollow: import("../types").UserToFollow | null;
1971
- followedBy: Set<import("../types").SocketId>;
1972
- isCropping: boolean;
1973
- croppingElementId: ExcalidrawElement["id"] | null;
1974
- searchMatches: Readonly<{
1975
- focusedId: ExcalidrawElement["id"] | null;
1976
- matches: readonly import("../types").SearchMatch[];
1977
- }> | null;
1978
- activeLockedId: string | null;
1979
- lockedMultiSelections: {
1980
- [groupId: string]: true;
1981
- };
1982
- bindMode: import("@excalidraw/element/types").BindMode;
1983
- };
1984
- captureUpdate: "IMMEDIATELY";
1985
- };
1986
- keyTest: (event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean;
1987
- } & {
1988
- keyTest?: ((event: import("react").KeyboardEvent<Element> | KeyboardEvent) => boolean) | undefined;
1155
+ keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
1989
1156
  };