@dwelle/excalidraw 0.5.0-aee77a4 → 0.5.0-afa1e11cf

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 (461) hide show
  1. package/CHANGELOG.md +55 -6
  2. package/dist/dev/{chunk-7PSZ5NAU.js → chunk-2VQ5HBIZ.js} +2 -2
  3. package/dist/dev/{chunk-7PSZ5NAU.js.map → chunk-2VQ5HBIZ.js.map} +1 -1
  4. package/dist/dev/{chunk-KMKDSKPP.js → chunk-EQF7WOOX.js} +5685 -3916
  5. package/dist/dev/chunk-EQF7WOOX.js.map +7 -0
  6. package/dist/dev/chunk-HY55C7T4.js +69 -0
  7. package/dist/dev/{chunk-URPEKBQ3.js.map → chunk-HY55C7T4.js.map} +1 -1
  8. package/dist/dev/{chunk-L5TK3F2L.js → chunk-QLBMTSCL.js} +15 -2
  9. package/dist/dev/chunk-QLBMTSCL.js.map +7 -0
  10. package/dist/dev/components/TTDDialog/{CodeMirrorEditor-33NYKHBV.js → CodeMirrorEditor-2FO6KLFM.js} +2 -2
  11. package/dist/dev/data/{image-F4QVJM47.js → image-ZL7MMAUH.js} +3 -3
  12. package/dist/dev/index.css +458 -517
  13. package/dist/dev/index.css.map +3 -3
  14. package/dist/dev/index.js +6957 -4428
  15. package/dist/dev/index.js.map +4 -4
  16. package/dist/dev/locales/{ar-SA-AGVJN2FU.js → ar-SA-YEOLME2Y.js} +79 -46
  17. package/dist/dev/locales/ar-SA-YEOLME2Y.js.map +7 -0
  18. package/dist/dev/locales/{az-AZ-62IXPX5D.js → az-AZ-DQL36U4O.js} +37 -4
  19. package/dist/dev/locales/az-AZ-DQL36U4O.js.map +7 -0
  20. package/dist/dev/locales/{bg-BG-UBDZF4KA.js → bg-BG-LG6R5FEQ.js} +37 -4
  21. package/dist/dev/locales/bg-BG-LG6R5FEQ.js.map +7 -0
  22. package/dist/dev/locales/{bn-BD-4TAUVZOD.js → bn-BD-W63P7JT5.js} +37 -4
  23. package/dist/dev/locales/bn-BD-W63P7JT5.js.map +7 -0
  24. package/dist/dev/locales/{bn-IN-PUGL2LDE.js → bn-IN-SCHACAA6.js} +37 -4
  25. package/dist/dev/locales/bn-IN-SCHACAA6.js.map +7 -0
  26. package/dist/dev/locales/{ca-ES-GEEW5L7T.js → ca-ES-XP3CQTWV.js} +38 -5
  27. package/dist/dev/locales/ca-ES-XP3CQTWV.js.map +7 -0
  28. package/dist/dev/locales/{cs-CZ-LNVE3QM5.js → cs-CZ-EXLEOJMD.js} +37 -4
  29. package/dist/dev/locales/cs-CZ-EXLEOJMD.js.map +7 -0
  30. package/dist/dev/locales/{da-DK-CAYJG7FJ.js → da-DK-46ONLZRX.js} +37 -4
  31. package/dist/dev/locales/da-DK-46ONLZRX.js.map +7 -0
  32. package/dist/dev/locales/{de-CH-GCXOD4LK.js → de-CH-A5QH3YGW.js} +145 -112
  33. package/dist/dev/locales/de-CH-A5QH3YGW.js.map +7 -0
  34. package/dist/dev/locales/{de-DE-CGDBECYD.js → de-DE-FVCCKR5N.js} +145 -112
  35. package/dist/dev/locales/de-DE-FVCCKR5N.js.map +7 -0
  36. package/dist/dev/locales/{el-GR-G5QZC24A.js → el-GR-SB4MX5JS.js} +38 -5
  37. package/dist/dev/locales/el-GR-SB4MX5JS.js.map +7 -0
  38. package/dist/dev/locales/{en-7NUPYLED.js → en-N5KZ66E6.js} +4 -2
  39. package/dist/dev/locales/{es-ES-UMEOH76W.js → es-ES-VRTYQG6S.js} +132 -99
  40. package/dist/dev/locales/es-ES-VRTYQG6S.js.map +7 -0
  41. package/dist/dev/locales/{eu-ES-IWRZXJC5.js → eu-ES-3OHEU2YV.js} +191 -158
  42. package/dist/dev/locales/eu-ES-3OHEU2YV.js.map +7 -0
  43. package/dist/dev/locales/{fa-IR-QOYVIIJA.js → fa-IR-74WR2KXF.js} +46 -13
  44. package/dist/dev/locales/fa-IR-74WR2KXF.js.map +7 -0
  45. package/dist/dev/locales/{fi-FI-BXRW65OA.js → fi-FI-XZQC4II2.js} +37 -4
  46. package/dist/dev/locales/fi-FI-XZQC4II2.js.map +7 -0
  47. package/dist/dev/locales/{fr-FR-R2QH5VCW.js → fr-FR-RABBDBKM.js} +75 -42
  48. package/dist/dev/locales/fr-FR-RABBDBKM.js.map +7 -0
  49. package/dist/dev/locales/{gl-ES-4ES3ZADP.js → gl-ES-OU3Q6XUE.js} +37 -4
  50. package/dist/dev/locales/gl-ES-OU3Q6XUE.js.map +7 -0
  51. package/dist/dev/locales/{he-IL-TRQRRYPH.js → he-IL-6NCD5D54.js} +102 -69
  52. package/dist/dev/locales/he-IL-6NCD5D54.js.map +7 -0
  53. package/dist/dev/locales/{hi-IN-U46BOJEC.js → hi-IN-M54WKOJI.js} +38 -5
  54. package/dist/dev/locales/hi-IN-M54WKOJI.js.map +7 -0
  55. package/dist/dev/locales/{hu-HU-JDULJ6XL.js → hu-HU-HAW63BCI.js} +37 -4
  56. package/dist/dev/locales/hu-HU-HAW63BCI.js.map +7 -0
  57. package/dist/dev/locales/{id-ID-BLIXNCUT.js → id-ID-TFSPHGWX.js} +67 -34
  58. package/dist/dev/locales/id-ID-TFSPHGWX.js.map +7 -0
  59. package/dist/dev/locales/{it-IT-6TBW7RUK.js → it-IT-MH3BAO5W.js} +42 -9
  60. package/dist/dev/locales/it-IT-MH3BAO5W.js.map +7 -0
  61. package/dist/dev/locales/{ja-JP-6HYAQFYX.js → ja-JP-UGJBHLX6.js} +177 -144
  62. package/dist/dev/locales/ja-JP-UGJBHLX6.js.map +7 -0
  63. package/dist/dev/locales/{kaa-Z5UP62XJ.js → kaa-5ZUEYWIM.js} +37 -4
  64. package/dist/dev/locales/kaa-5ZUEYWIM.js.map +7 -0
  65. package/dist/dev/locales/{kab-KAB-Z7STWQKS.js → kab-KAB-RLAZQZSM.js} +37 -4
  66. package/dist/dev/locales/kab-KAB-RLAZQZSM.js.map +7 -0
  67. package/dist/dev/locales/{kk-KZ-BWHY45DX.js → kk-KZ-CIP7GOIF.js} +37 -4
  68. package/dist/dev/locales/kk-KZ-CIP7GOIF.js.map +7 -0
  69. package/dist/dev/locales/{km-KH-HGLNWNRU.js → km-KH-YMR4247H.js} +37 -4
  70. package/dist/dev/locales/km-KH-YMR4247H.js.map +7 -0
  71. package/dist/dev/locales/{ko-KR-CO36WKPC.js → ko-KR-WGKQKR2R.js} +121 -88
  72. package/dist/dev/locales/ko-KR-WGKQKR2R.js.map +7 -0
  73. package/dist/dev/locales/{ku-TR-AACVIARC.js → ku-TR-ZSJN6TN6.js} +37 -4
  74. package/dist/dev/locales/ku-TR-ZSJN6TN6.js.map +7 -0
  75. package/dist/dev/locales/{lt-LT-CFYYFLDV.js → lt-LT-FT6ZGIZP.js} +37 -4
  76. package/dist/dev/locales/lt-LT-FT6ZGIZP.js.map +7 -0
  77. package/dist/dev/locales/{lv-LV-QCBBOFFU.js → lv-LV-U74YKDPR.js} +37 -4
  78. package/dist/dev/locales/lv-LV-U74YKDPR.js.map +7 -0
  79. package/dist/dev/locales/{mr-IN-B2CM5GK5.js → mr-IN-KN72LOIA.js} +40 -7
  80. package/dist/dev/locales/mr-IN-KN72LOIA.js.map +7 -0
  81. package/dist/dev/locales/{my-MM-756BNN36.js → my-MM-E57NLQ7W.js} +37 -4
  82. package/dist/dev/locales/my-MM-E57NLQ7W.js.map +7 -0
  83. package/dist/dev/locales/{nb-NO-5BLHQI4J.js → nb-NO-FYQDWD7X.js} +38 -5
  84. package/dist/dev/locales/nb-NO-FYQDWD7X.js.map +7 -0
  85. package/dist/dev/locales/{nl-NL-225BLGAH.js → nl-NL-D5MZQRAC.js} +47 -14
  86. package/dist/dev/locales/nl-NL-D5MZQRAC.js.map +7 -0
  87. package/dist/dev/locales/{nn-NO-4J7MR6GH.js → nn-NO-5ZEUZJV4.js} +37 -4
  88. package/dist/dev/locales/nn-NO-5ZEUZJV4.js.map +7 -0
  89. package/dist/dev/locales/{oc-FR-XCETH7KF.js → oc-FR-MVW6LDAP.js} +38 -5
  90. package/dist/dev/locales/oc-FR-MVW6LDAP.js.map +7 -0
  91. package/dist/dev/locales/{pa-IN-32NBAN5L.js → pa-IN-2NH3SVNI.js} +37 -4
  92. package/dist/dev/locales/pa-IN-2NH3SVNI.js.map +7 -0
  93. package/dist/dev/locales/{percentages-ZRLRVMSI.js → percentages-QBBLQLIV.js} +2 -2
  94. package/dist/dev/locales/{pl-PL-R6OJ54BT.js → pl-PL-M6LYWLHY.js} +38 -5
  95. package/dist/dev/locales/pl-PL-M6LYWLHY.js.map +7 -0
  96. package/dist/dev/locales/{pt-BR-7AFGAKGR.js → pt-BR-27M3CCS7.js} +124 -91
  97. package/dist/dev/locales/pt-BR-27M3CCS7.js.map +7 -0
  98. package/dist/dev/locales/{pt-PT-S6BMW6MY.js → pt-PT-V3C226NP.js} +123 -90
  99. package/dist/dev/locales/pt-PT-V3C226NP.js.map +7 -0
  100. package/dist/dev/locales/{ro-RO-4JVGQHS2.js → ro-RO-S4GNBAJI.js} +42 -9
  101. package/dist/dev/locales/ro-RO-S4GNBAJI.js.map +7 -0
  102. package/dist/dev/locales/{ru-RU-IESI752T.js → ru-RU-CRRT5JUZ.js} +44 -11
  103. package/dist/dev/locales/ru-RU-CRRT5JUZ.js.map +7 -0
  104. package/dist/dev/locales/{si-LK-H75E7PKD.js → si-LK-APMICZ7H.js} +38 -5
  105. package/dist/dev/locales/si-LK-APMICZ7H.js.map +7 -0
  106. package/dist/dev/locales/{sk-SK-EUK2NR2F.js → sk-SK-7ZFDZG6Y.js} +75 -42
  107. package/dist/dev/locales/sk-SK-7ZFDZG6Y.js.map +7 -0
  108. package/dist/dev/locales/{sl-SI-AKW7R5PW.js → sl-SI-BBENCX7D.js} +38 -5
  109. package/dist/dev/locales/sl-SI-BBENCX7D.js.map +7 -0
  110. package/dist/dev/locales/{sv-SE-QIBOOXLJ.js → sv-SE-35QJIOEW.js} +119 -86
  111. package/dist/dev/locales/sv-SE-35QJIOEW.js.map +7 -0
  112. package/dist/dev/locales/{ta-IN-LBK2NQ5K.js → ta-IN-4N5CFIWZ.js} +37 -4
  113. package/dist/dev/locales/ta-IN-4N5CFIWZ.js.map +7 -0
  114. package/dist/dev/locales/{th-TH-YJ2E6GVT.js → th-TH-2F4V4IDB.js} +82 -49
  115. package/dist/dev/locales/th-TH-2F4V4IDB.js.map +7 -0
  116. package/dist/dev/locales/{tr-TR-Y5GO2XJW.js → tr-TR-NDFP3F7P.js} +114 -81
  117. package/dist/dev/locales/tr-TR-NDFP3F7P.js.map +7 -0
  118. package/dist/dev/locales/{uk-UA-XYAFHHJW.js → uk-UA-4I6VBQZ5.js} +66 -33
  119. package/dist/dev/locales/uk-UA-4I6VBQZ5.js.map +7 -0
  120. package/dist/dev/locales/{uz-UZ-LF3CBRYE.js → uz-UZ-UVKC7UNZ.js} +37 -4
  121. package/dist/dev/locales/uz-UZ-UVKC7UNZ.js.map +7 -0
  122. package/dist/dev/locales/{vi-VN-WDPZEUOJ.js → vi-VN-UQCETDRL.js} +37 -4
  123. package/dist/dev/locales/vi-VN-UQCETDRL.js.map +7 -0
  124. package/dist/dev/locales/{zh-CN-SZ37453H.js → zh-CN-RSRHKN75.js} +76 -43
  125. package/dist/dev/locales/zh-CN-RSRHKN75.js.map +7 -0
  126. package/dist/dev/locales/{zh-HK-QDQ5QNBC.js → zh-HK-XSFQ32U4.js} +37 -4
  127. package/dist/dev/locales/zh-HK-XSFQ32U4.js.map +7 -0
  128. package/dist/dev/locales/{zh-TW-CYU6GFBV.js → zh-TW-KFVYWRFJ.js} +122 -89
  129. package/dist/dev/locales/zh-TW-KFVYWRFJ.js.map +7 -0
  130. package/dist/dev/subset-shared.chunk.js +1 -1
  131. package/dist/dev/subset-worker.chunk.js +1 -1
  132. package/dist/prod/chunk-32LIYTST.js +34 -0
  133. package/dist/prod/chunk-7XWMRXBY.js +1 -0
  134. package/dist/prod/{chunk-YI6WNTBI.js → chunk-GXCKUVI6.js} +6 -6
  135. package/dist/prod/{chunk-GQMIMNEC.js → chunk-WAQVM3DF.js} +1 -1
  136. package/dist/prod/components/TTDDialog/{CodeMirrorEditor-MVUGL3IG.js → CodeMirrorEditor-6G5V4W6Q.js} +1 -1
  137. package/dist/prod/data/image-OVXRUDVN.js +1 -0
  138. package/dist/prod/index.css +1 -1
  139. package/dist/prod/index.js +32 -32
  140. package/dist/prod/locales/ar-SA-PQUY64WN.js +10 -0
  141. package/dist/prod/locales/az-AZ-OXJXL76K.js +1 -0
  142. package/dist/prod/locales/bg-BG-W2GKIJDF.js +5 -0
  143. package/dist/prod/locales/bn-BD-TGL7M4PJ.js +3 -0
  144. package/dist/prod/locales/bn-IN-BKETKYEH.js +3 -0
  145. package/dist/prod/locales/ca-ES-LD5SCRVV.js +8 -0
  146. package/dist/prod/locales/cs-CZ-OFPU5DBV.js +7 -0
  147. package/dist/prod/locales/da-DK-FRDJFYWF.js +2 -0
  148. package/dist/prod/locales/de-CH-ZG7H3QK3.js +11 -0
  149. package/dist/prod/locales/de-DE-SIJYH4IH.js +11 -0
  150. package/dist/prod/locales/el-GR-IEE2CGI2.js +7 -0
  151. package/dist/prod/locales/en-AG7RKVLW.js +1 -0
  152. package/dist/prod/locales/es-ES-TVVPWKV5.js +12 -0
  153. package/dist/prod/locales/eu-ES-CGBMFQDT.js +8 -0
  154. package/dist/prod/locales/fa-IR-IE6XAPR4.js +9 -0
  155. package/dist/prod/locales/fi-FI-P7TKNHRM.js +6 -0
  156. package/dist/prod/locales/fr-FR-QI2XZNT7.js +12 -0
  157. package/dist/prod/locales/gl-ES-TLYCNOZZ.js +6 -0
  158. package/dist/prod/locales/he-IL-ZX43XLGP.js +9 -0
  159. package/dist/prod/locales/hi-IN-UTYRMTUF.js +3 -0
  160. package/dist/prod/locales/hu-HU-AJOSEBW6.js +3 -0
  161. package/dist/prod/locales/id-ID-ETLTVG6C.js +8 -0
  162. package/dist/prod/locales/it-IT-B4B6TP6L.js +12 -0
  163. package/dist/prod/locales/ja-JP-IYKVURR5.js +12 -0
  164. package/dist/prod/locales/kaa-SE2BUIKX.js +1 -0
  165. package/dist/prod/locales/kab-KAB-Y3GLKXLR.js +4 -0
  166. package/dist/prod/locales/kk-KZ-ABWUFVOH.js +1 -0
  167. package/dist/prod/locales/km-KH-PCWDKPHP.js +7 -0
  168. package/dist/prod/locales/ko-KR-7JQDXKGM.js +5 -0
  169. package/dist/prod/locales/ku-TR-NAH2Q5B7.js +6 -0
  170. package/dist/prod/locales/lt-LT-VQFYRSNQ.js +3 -0
  171. package/dist/prod/locales/lv-LV-T62VSYUM.js +4 -0
  172. package/dist/prod/locales/mr-IN-V4FHLCJE.js +9 -0
  173. package/dist/prod/locales/my-MM-E3SQ6E54.js +1 -0
  174. package/dist/prod/locales/nb-NO-MLNOFN5H.js +8 -0
  175. package/dist/prod/locales/nl-NL-D5L3ZV4M.js +13 -0
  176. package/dist/prod/locales/nn-NO-NNHDGPKB.js +4 -0
  177. package/dist/prod/locales/oc-FR-DWCRF55G.js +4 -0
  178. package/dist/prod/locales/pa-IN-3JSAY44M.js +4 -0
  179. package/dist/prod/locales/percentages-ETZPVQEE.js +1 -0
  180. package/dist/prod/locales/pl-PL-ACURYKP3.js +12 -0
  181. package/dist/prod/locales/pt-BR-LOX7MLGD.js +10 -0
  182. package/dist/prod/locales/pt-PT-CZ2U2RFQ.js +12 -0
  183. package/dist/prod/locales/ro-RO-2HECL2X6.js +12 -0
  184. package/dist/prod/locales/ru-RU-HAYNXO46.js +10 -0
  185. package/dist/prod/locales/si-LK-W5KNS4H6.js +1 -0
  186. package/dist/prod/locales/sk-SK-7K2CFGDV.js +7 -0
  187. package/dist/prod/locales/sl-SI-OXV2QZWW.js +6 -0
  188. package/dist/prod/locales/sv-SE-JTOBZRGL.js +12 -0
  189. package/dist/prod/locales/ta-IN-KFAVKXGT.js +6 -0
  190. package/dist/prod/locales/th-TH-VDMSCPDL.js +1 -0
  191. package/dist/prod/locales/tr-TR-CEZ6GX45.js +4 -0
  192. package/dist/prod/locales/uk-UA-Q3H3OXQC.js +6 -0
  193. package/dist/prod/locales/uz-UZ-NGCSWWPX.js +1 -0
  194. package/dist/prod/locales/vi-VN-P3NDEVPS.js +7 -0
  195. package/dist/prod/locales/zh-CN-SS3O57GA.js +11 -0
  196. package/dist/prod/locales/zh-HK-LWJT3VCF.js +1 -0
  197. package/dist/prod/locales/zh-TW-VJXC72RT.js +13 -0
  198. package/dist/prod/subset-shared.chunk.js +1 -1
  199. package/dist/prod/subset-worker.chunk.js +1 -1
  200. package/dist/types/common/src/colors.d.ts +10 -0
  201. package/dist/types/common/src/constants.d.ts +3 -0
  202. package/dist/types/common/src/keys.d.ts +2 -0
  203. package/dist/types/common/src/points.d.ts +1 -1
  204. package/dist/types/common/src/utils.d.ts +1 -1
  205. package/dist/types/element/src/Scene.d.ts +1 -1
  206. package/dist/types/element/src/align.d.ts +2 -2
  207. package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
  208. package/dist/types/element/src/arrows/focus.d.ts +5 -2
  209. package/dist/types/element/src/binding.d.ts +17 -8
  210. package/dist/types/element/src/bounds.d.ts +5 -5
  211. package/dist/types/element/src/bucketFill.d.ts +110 -0
  212. package/dist/types/element/src/collision.d.ts +1 -1
  213. package/dist/types/element/src/comparisons.d.ts +4 -4
  214. package/dist/types/element/src/convertToShape.d.ts +23 -0
  215. package/dist/types/element/src/distribute.d.ts +2 -2
  216. package/dist/types/element/src/dragElements.d.ts +27 -0
  217. package/dist/types/element/src/duplicate.d.ts +3 -3
  218. package/dist/types/element/src/embeddable.d.ts +2 -2
  219. package/dist/types/element/src/flowchart.d.ts +7 -7
  220. package/dist/types/element/src/fractionalIndex.d.ts +2 -2
  221. package/dist/types/element/src/frame.d.ts +4 -4
  222. package/dist/types/element/src/groups.d.ts +7 -7
  223. package/dist/types/element/src/index.d.ts +4 -1
  224. package/dist/types/element/src/linearElementEditor.d.ts +17 -10
  225. package/dist/types/element/src/newElement.d.ts +13 -0
  226. package/dist/types/element/src/renderElement.d.ts +7 -4
  227. package/dist/types/element/src/resizeElements.d.ts +2 -2
  228. package/dist/types/element/src/selection.d.ts +5 -5
  229. package/dist/types/element/src/shape.d.ts +12 -0
  230. package/dist/types/element/src/sortElements.d.ts +10 -0
  231. package/dist/types/element/src/textElement.d.ts +12 -9
  232. package/dist/types/element/src/transform.d.ts +2 -2
  233. package/dist/types/element/src/typeChecks.d.ts +25 -25
  234. package/dist/types/element/src/types.d.ts +2 -1
  235. package/dist/types/element/src/zindex.d.ts +2 -2
  236. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +18 -12
  237. package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
  238. package/dist/types/excalidraw/actions/actionBoundText.d.ts +12 -8
  239. package/dist/types/excalidraw/actions/actionCanvas.d.ts +65 -544
  240. package/dist/types/excalidraw/actions/actionClipboard.d.ts +12 -8
  241. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +6 -4
  242. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +20 -13
  243. package/dist/types/excalidraw/actions/actionDeselect.d.ts +3 -4
  244. package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
  245. package/dist/types/excalidraw/actions/actionElementLink.d.ts +6 -4
  246. package/dist/types/excalidraw/actions/actionElementLock.d.ts +12 -8
  247. package/dist/types/excalidraw/actions/actionExport.d.ts +14 -10
  248. package/dist/types/excalidraw/actions/actionFrame.d.ts +18 -187
  249. package/dist/types/excalidraw/actions/actionGroup.d.ts +13 -9
  250. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -4
  251. package/dist/types/excalidraw/actions/actionLink.d.ts +6 -4
  252. package/dist/types/excalidraw/actions/actionMenu.d.ts +6 -4
  253. package/dist/types/excalidraw/actions/actionProperties.d.ts +31 -24
  254. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +11 -9
  255. package/dist/types/excalidraw/actions/actionStyles.d.ts +6 -4
  256. package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
  257. package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +6 -4
  258. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +6 -4
  259. package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +6 -4
  260. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +6 -4
  261. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -4
  262. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +6 -4
  263. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -5
  264. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +6 -4
  265. package/dist/types/excalidraw/actions/index.d.ts +1 -2
  266. package/dist/types/excalidraw/actions/manager.d.ts +1 -0
  267. package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
  268. package/dist/types/excalidraw/actions/types.d.ts +5 -1
  269. package/dist/types/excalidraw/appState.d.ts +4 -4
  270. package/dist/types/excalidraw/components/Actions.d.ts +16 -10
  271. package/dist/types/excalidraw/components/App.arrowText.d.ts +72 -0
  272. package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
  273. package/dist/types/excalidraw/components/App.cursor.d.ts +30 -0
  274. package/dist/types/excalidraw/components/App.d.ts +354 -79
  275. package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
  276. package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
  277. package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
  278. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +3 -1
  279. package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +1 -0
  280. package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +6 -1
  281. package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
  282. package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
  283. package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
  284. package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
  285. package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
  286. package/dist/types/excalidraw/components/LayerUI.d.ts +5 -3
  287. package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
  288. package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
  289. package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
  290. package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
  291. package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
  292. package/dist/types/excalidraw/components/Popover.d.ts +1 -3
  293. package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
  294. package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
  295. package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
  296. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
  297. package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
  298. package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
  299. package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
  300. package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
  301. package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
  302. package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
  303. package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
  304. package/dist/types/excalidraw/components/Tools.d.ts +146 -0
  305. package/dist/types/excalidraw/components/UserList.d.ts +3 -2
  306. package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
  307. package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -0
  308. package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
  309. package/dist/types/excalidraw/components/icons.d.ts +4 -1
  310. package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
  311. package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
  312. package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
  313. package/dist/types/excalidraw/data/blob.d.ts +16 -12
  314. package/dist/types/excalidraw/data/index.d.ts +4 -4
  315. package/dist/types/excalidraw/data/json.d.ts +14 -12
  316. package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
  317. package/dist/types/excalidraw/elementAnimator.d.ts +52 -0
  318. package/dist/types/excalidraw/index.d.ts +4 -2
  319. package/dist/types/excalidraw/scene/Renderer.d.ts +11 -11
  320. package/dist/types/excalidraw/scene/export.d.ts +3 -3
  321. package/dist/types/excalidraw/scene/types.d.ts +12 -2
  322. package/dist/types/excalidraw/snapping.d.ts +7 -7
  323. package/dist/types/excalidraw/types.d.ts +291 -29
  324. package/dist/types/excalidraw/viewport.d.ts +21 -67
  325. package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
  326. package/dist/types/laser-pointer/src/state.d.ts +1 -0
  327. package/dist/types/math/src/index.d.ts +1 -0
  328. package/dist/types/math/src/pca.d.ts +79 -0
  329. package/dist/types/math/src/polygon.d.ts +25 -1
  330. package/package.json +2 -2
  331. package/dist/dev/chunk-KMKDSKPP.js.map +0 -7
  332. package/dist/dev/chunk-L5TK3F2L.js.map +0 -7
  333. package/dist/dev/chunk-URPEKBQ3.js +0 -69
  334. package/dist/dev/locales/ar-SA-AGVJN2FU.js.map +0 -7
  335. package/dist/dev/locales/az-AZ-62IXPX5D.js.map +0 -7
  336. package/dist/dev/locales/bg-BG-UBDZF4KA.js.map +0 -7
  337. package/dist/dev/locales/bn-BD-4TAUVZOD.js.map +0 -7
  338. package/dist/dev/locales/bn-IN-PUGL2LDE.js.map +0 -7
  339. package/dist/dev/locales/ca-ES-GEEW5L7T.js.map +0 -7
  340. package/dist/dev/locales/cs-CZ-LNVE3QM5.js.map +0 -7
  341. package/dist/dev/locales/da-DK-CAYJG7FJ.js.map +0 -7
  342. package/dist/dev/locales/de-CH-GCXOD4LK.js.map +0 -7
  343. package/dist/dev/locales/de-DE-CGDBECYD.js.map +0 -7
  344. package/dist/dev/locales/el-GR-G5QZC24A.js.map +0 -7
  345. package/dist/dev/locales/es-ES-UMEOH76W.js.map +0 -7
  346. package/dist/dev/locales/eu-ES-IWRZXJC5.js.map +0 -7
  347. package/dist/dev/locales/fa-IR-QOYVIIJA.js.map +0 -7
  348. package/dist/dev/locales/fi-FI-BXRW65OA.js.map +0 -7
  349. package/dist/dev/locales/fr-FR-R2QH5VCW.js.map +0 -7
  350. package/dist/dev/locales/gl-ES-4ES3ZADP.js.map +0 -7
  351. package/dist/dev/locales/he-IL-TRQRRYPH.js.map +0 -7
  352. package/dist/dev/locales/hi-IN-U46BOJEC.js.map +0 -7
  353. package/dist/dev/locales/hu-HU-JDULJ6XL.js.map +0 -7
  354. package/dist/dev/locales/id-ID-BLIXNCUT.js.map +0 -7
  355. package/dist/dev/locales/it-IT-6TBW7RUK.js.map +0 -7
  356. package/dist/dev/locales/ja-JP-6HYAQFYX.js.map +0 -7
  357. package/dist/dev/locales/kaa-Z5UP62XJ.js.map +0 -7
  358. package/dist/dev/locales/kab-KAB-Z7STWQKS.js.map +0 -7
  359. package/dist/dev/locales/kk-KZ-BWHY45DX.js.map +0 -7
  360. package/dist/dev/locales/km-KH-HGLNWNRU.js.map +0 -7
  361. package/dist/dev/locales/ko-KR-CO36WKPC.js.map +0 -7
  362. package/dist/dev/locales/ku-TR-AACVIARC.js.map +0 -7
  363. package/dist/dev/locales/lt-LT-CFYYFLDV.js.map +0 -7
  364. package/dist/dev/locales/lv-LV-QCBBOFFU.js.map +0 -7
  365. package/dist/dev/locales/mr-IN-B2CM5GK5.js.map +0 -7
  366. package/dist/dev/locales/my-MM-756BNN36.js.map +0 -7
  367. package/dist/dev/locales/nb-NO-5BLHQI4J.js.map +0 -7
  368. package/dist/dev/locales/nl-NL-225BLGAH.js.map +0 -7
  369. package/dist/dev/locales/nn-NO-4J7MR6GH.js.map +0 -7
  370. package/dist/dev/locales/oc-FR-XCETH7KF.js.map +0 -7
  371. package/dist/dev/locales/pa-IN-32NBAN5L.js.map +0 -7
  372. package/dist/dev/locales/pl-PL-R6OJ54BT.js.map +0 -7
  373. package/dist/dev/locales/pt-BR-7AFGAKGR.js.map +0 -7
  374. package/dist/dev/locales/pt-PT-S6BMW6MY.js.map +0 -7
  375. package/dist/dev/locales/ro-RO-4JVGQHS2.js.map +0 -7
  376. package/dist/dev/locales/ru-RU-IESI752T.js.map +0 -7
  377. package/dist/dev/locales/si-LK-H75E7PKD.js.map +0 -7
  378. package/dist/dev/locales/sk-SK-EUK2NR2F.js.map +0 -7
  379. package/dist/dev/locales/sl-SI-AKW7R5PW.js.map +0 -7
  380. package/dist/dev/locales/sv-SE-QIBOOXLJ.js.map +0 -7
  381. package/dist/dev/locales/ta-IN-LBK2NQ5K.js.map +0 -7
  382. package/dist/dev/locales/th-TH-YJ2E6GVT.js.map +0 -7
  383. package/dist/dev/locales/tr-TR-Y5GO2XJW.js.map +0 -7
  384. package/dist/dev/locales/uk-UA-XYAFHHJW.js.map +0 -7
  385. package/dist/dev/locales/uz-UZ-LF3CBRYE.js.map +0 -7
  386. package/dist/dev/locales/vi-VN-WDPZEUOJ.js.map +0 -7
  387. package/dist/dev/locales/zh-CN-SZ37453H.js.map +0 -7
  388. package/dist/dev/locales/zh-HK-QDQ5QNBC.js.map +0 -7
  389. package/dist/dev/locales/zh-TW-CYU6GFBV.js.map +0 -7
  390. package/dist/prod/chunk-2EAGZNAM.js +0 -34
  391. package/dist/prod/chunk-3PELD44J.js +0 -1
  392. package/dist/prod/data/image-45GW2AOF.js +0 -1
  393. package/dist/prod/locales/ar-SA-NXDWD63E.js +0 -8
  394. package/dist/prod/locales/az-AZ-MXSORGZV.js +0 -1
  395. package/dist/prod/locales/bg-BG-O6MV2KSF.js +0 -5
  396. package/dist/prod/locales/bn-BD-T2VJNT7N.js +0 -3
  397. package/dist/prod/locales/bn-IN-MMW2ORAC.js +0 -3
  398. package/dist/prod/locales/ca-ES-MKBCGNOG.js +0 -8
  399. package/dist/prod/locales/cs-CZ-V77HGUP7.js +0 -7
  400. package/dist/prod/locales/da-DK-I5RFNTM4.js +0 -2
  401. package/dist/prod/locales/de-CH-WLRDEVBV.js +0 -7
  402. package/dist/prod/locales/de-DE-DTI4WUSC.js +0 -7
  403. package/dist/prod/locales/el-GR-ZXDJ2OS4.js +0 -7
  404. package/dist/prod/locales/en-WABAEZHC.js +0 -1
  405. package/dist/prod/locales/es-ES-DYQHAD43.js +0 -7
  406. package/dist/prod/locales/eu-ES-QDSYU5Y3.js +0 -7
  407. package/dist/prod/locales/fa-IR-26LZG4PM.js +0 -9
  408. package/dist/prod/locales/fi-FI-6YS4KDE4.js +0 -6
  409. package/dist/prod/locales/fr-FR-BRLLPTZC.js +0 -12
  410. package/dist/prod/locales/gl-ES-OKUZTLYG.js +0 -6
  411. package/dist/prod/locales/he-IL-26MGYIU7.js +0 -8
  412. package/dist/prod/locales/hi-IN-Q4ZOGTP2.js +0 -3
  413. package/dist/prod/locales/hu-HU-P2OXPSN5.js +0 -3
  414. package/dist/prod/locales/id-ID-2EIKXYN6.js +0 -8
  415. package/dist/prod/locales/it-IT-4CFKVXI2.js +0 -12
  416. package/dist/prod/locales/ja-JP-MAND2Z4V.js +0 -7
  417. package/dist/prod/locales/kaa-HQRTCXTJ.js +0 -1
  418. package/dist/prod/locales/kab-KAB-JKIKKTGH.js +0 -4
  419. package/dist/prod/locales/kk-KZ-HXQ63ZFC.js +0 -1
  420. package/dist/prod/locales/km-KH-PKL3LSGX.js +0 -7
  421. package/dist/prod/locales/ko-KR-KXLREZX3.js +0 -5
  422. package/dist/prod/locales/ku-TR-MJ4IER3X.js +0 -6
  423. package/dist/prod/locales/lt-LT-H6WFQ6FJ.js +0 -3
  424. package/dist/prod/locales/lv-LV-GOCK6SJW.js +0 -4
  425. package/dist/prod/locales/mr-IN-IXVLDMEQ.js +0 -9
  426. package/dist/prod/locales/my-MM-YG6MYTTD.js +0 -1
  427. package/dist/prod/locales/nb-NO-XGWJISD2.js +0 -8
  428. package/dist/prod/locales/nl-NL-XVDVCPNC.js +0 -13
  429. package/dist/prod/locales/nn-NO-EMX5MJX5.js +0 -4
  430. package/dist/prod/locales/oc-FR-ROEINTVO.js +0 -4
  431. package/dist/prod/locales/pa-IN-ZYN6SUDY.js +0 -4
  432. package/dist/prod/locales/percentages-5DKR754L.js +0 -1
  433. package/dist/prod/locales/pl-PL-6VTG7PHC.js +0 -12
  434. package/dist/prod/locales/pt-BR-5YFKRR5G.js +0 -6
  435. package/dist/prod/locales/pt-PT-GEIXXZ67.js +0 -8
  436. package/dist/prod/locales/ro-RO-E2P6TFZI.js +0 -12
  437. package/dist/prod/locales/ru-RU-YBIIY43T.js +0 -10
  438. package/dist/prod/locales/si-LK-673C2CI2.js +0 -1
  439. package/dist/prod/locales/sk-SK-CKZHQ4AP.js +0 -7
  440. package/dist/prod/locales/sl-SI-557H2GWM.js +0 -6
  441. package/dist/prod/locales/sv-SE-XOPKKDWS.js +0 -8
  442. package/dist/prod/locales/ta-IN-XBH7DQI3.js +0 -6
  443. package/dist/prod/locales/th-TH-TOCWH3R4.js +0 -1
  444. package/dist/prod/locales/tr-TR-GXW6CYY5.js +0 -4
  445. package/dist/prod/locales/uk-UA-IJKTNUDG.js +0 -6
  446. package/dist/prod/locales/uz-UZ-TBZZEA4V.js +0 -1
  447. package/dist/prod/locales/vi-VN-MULSGNVB.js +0 -7
  448. package/dist/prod/locales/zh-CN-MVX3E32U.js +0 -11
  449. package/dist/prod/locales/zh-HK-JNU5RLIE.js +0 -1
  450. package/dist/prod/locales/zh-TW-LENVCA6T.js +0 -9
  451. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -173
  452. package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
  453. package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
  454. package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
  455. package/dist/types/excalidraw/components/shapes.d.ts +0 -270
  456. package/dist/types/excalidraw/cursor.d.ts +0 -5
  457. package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
  458. /package/dist/dev/components/TTDDialog/{CodeMirrorEditor-33NYKHBV.js.map → CodeMirrorEditor-2FO6KLFM.js.map} +0 -0
  459. /package/dist/dev/data/{image-F4QVJM47.js.map → image-ZL7MMAUH.js.map} +0 -0
  460. /package/dist/dev/locales/{en-7NUPYLED.js.map → en-N5KZ66E6.js.map} +0 -0
  461. /package/dist/dev/locales/{percentages-ZRLRVMSI.js.map → percentages-QBBLQLIV.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -15,9 +15,54 @@ Please add the latest change on the top under the correct section.
15
15
 
16
16
  ## Excalidraw API
17
17
 
18
- ### Viewport control & scroll/zoom locking
18
+ ### Host-controlled active tool (2026-07-14) [#11665](https://github.com/excalidraw/excalidraw/pull/11665)
19
19
 
20
- `ExcalidrawAPI.scrollToContent` was rebuilt into `ExcalidrawAPI.setViewport()` — a single API for navigating the viewport (`fit: "scale-down" | "contain" | "none"`), locking scroll/zoom to a target (with rubberband overscroll), fitting around the rendered editor UI, and initializing the viewport on scene load [#11554](https://github.com/excalidraw/excalidraw/pull/11554).
20
+ - Added `activeTool` prop (`{ type: ToolType } | { type: "custom"; customType: string }`) for forcing the active editor tool (controlled). While set, user- and API-driven tool switching is ignored `setActiveTool` refuses non-matching activations with a console warning, non-forced toolbar buttons render disabled, and the tool-lock toggle (`Q`) is inert and the editor snaps back if internal flows reset the tool (e.g. `restore()` on scene load). The forced tool behaves as if locked — it doesn't revert to selection after use and drawn elements aren't auto-selected — without mutating `appState.activeTool.locked`, so the user's persisted padlock preference stays untouched. Unset the prop to return tool control to the editor (the current tool stays active). The forced tool must be activatable to take effect — not disabled via `UIOptions.tools`, and (while non-interactive) allowed via `interaction.enabled.tools`; otherwise the editor stays on the `selection` tool and applies the forced tool once it becomes activatable. `image` cannot be forced (its activation opens the file picker). Composes with `interaction.enabled.tools` for presentation-style hosts: force `laser` for the presenter, `selection` + `interaction={false}` for viewers.
21
+
22
+ ### User-driven tools while non-interactive (2026-07-14) [#11665](https://github.com/excalidraw/excalidraw/pull/11665)
23
+
24
+ - Added `interaction.enabled.tools` (`{ laser?: boolean; custom?: boolean }`) — the listed tools stay user-driven while the editor is otherwise non-interactive: pointer input keeps driving the tool when it's the active tool. With `laser` enabled, pointer strokes draw laser trails and pointer positions keep broadcasting through `onPointerUpdate`, so e.g. collaborators see a presenter's laser & cursor while the presenter's editor is otherwise inert. With `custom` enabled, custom tools (`activeTool.type === "custom"`) keep receiving `onPointerDown` / `onPointerUp` — activate them with `locked: true` or they revert to the selection tool (and go inert) after the first pointer interaction. Enabling a tool does not enable user-driven tool _switching_ — the keyboard stays disabled and tool selection remains host-driven (`ExcalidrawAPI.setActiveTool`). Composes with `enabled.navigation`: the enabled tool wins the primary-pointer drag, while wheel input (and wheel-button drag) still pans/zooms. The editor consumes touch input over the canvas while the active tool is enabled (strokes don't scroll the page).
25
+
26
+ - While the editor is non-interactive, `ExcalidrawAPI.setActiveTool` only activates tools allowed via `interaction.enabled.tools` — activating any other tool is refused with a console warning (previously the switch went through even though the tool couldn't be used, e.g. updating the canvas cursor). The same invariant is maintained for the tool state itself: when the active tool loses its exception (e.g. `enabled.tools` changes, or the editor becomes fully non-interactive mid-session), it resets to the default `selection` tool, so stale tool state — e.g. a presenter's laser after handing off — doesn't leak through `onChange` / collab pointer payloads.
27
+
28
+ ### Interaction and UI control (2026-07-05) [#11605](https://github.com/excalidraw/excalidraw/pull/11605)
29
+
30
+ - Added `interaction` prop (`boolean | { enabled?: { navigation?: boolean; links?: boolean; embeds?: boolean; interactiveContent?: boolean; browserZoom?: boolean } }`). When set to `false`, the editor becomes fully inert for the user — no panning, zooming, selecting, editing, keyboard shortcuts, clipboard, or drag&drop. It implies view mode (`appState.viewModeEnabled` reports `true` and cannot be unset while non-interactive), and the page scrolls naturally over the component since wheel/touch input is no longer captured (the browser's own zoom is still prevented over the editor by default). Interactions under `enabled` are opt-in exceptions: with `navigation` allowed, the user can pan (pointer drag, wheel, PageUp/PageDown — shift for horizontal) and zoom (ctrl/cmd + wheel, pinch, and the canvas zoom & zoom-to-fit shortcuts — ctrl/cmd +/-/0, shift+1/2/3) the canvas view-mode style — respecting `appState.scrollConstraints`, so it composes with viewport locking for constrained viewers, while the rest of the keyboard stays disabled and the editor consumes wheel & touch input again (the page no longer scrolls over the editor); with `links` allowed, link icons render and linked elements stay clickable (view-mode behavior: clicking anywhere on a linked element opens its link) while the editor stays otherwise non-interactive — when links are not allowed, link icons are not rendered at all; with `embeds` allowed, embeddable & iframe elements stay interactive (hover & click activates them, view-mode style); `interactiveContent` is an additive shorthand enabling `links` & `embeds` (and future interactive content kinds) together; with `browserZoom` allowed, the browser's own zoom gestures (ctrl/cmd + wheel, pinch, keyboard) stay available over the editor (moot when `navigation` is allowed, since the editor consumes the zoom input instead). The scene still renders and remains fully controllable through the imperative API (`updateScene`, `setViewport`, ...), making it suitable for live previews, thumbnails, and annotation overlays.
31
+
32
+ - Added `ui` prop (`boolean | { enabled: { zoom?: boolean; scrollBackToContent?: boolean } }`). When set to `false`, Excalidraw's default UI is not rendered — toolbar, default menu and footer controls, sidebars, canvas popups, and context menu. The object form likewise hides the default UI but opts the zoom controls and/or scroll-back-to-content button back in. Canvas content (elements, text editing, frame names, embeds) still renders, and the editor remains interactive unless `interaction={false}` is set as well. Host children continue to mount (they may be functional, e.g. a collaboration component), and host-supplied UI — including Excalidraw-exported components such as `<MainMenu>` and `<Footer>` — continues to render together with any supporting dialogs it opens. You're responsible for hiding your own presentational components.
33
+
34
+ ### Tool system & toolbar rework [#11649](https://github.com/excalidraw/excalidraw/pull/11649)
35
+
36
+ The toolbar UI was rewritten from hidden radio/checkbox inputs to real `<button>` elements composed from a central tool registry, and all tool activation now goes through a single `setActiveTool` code path.
37
+
38
+ #### Breaking changes
39
+
40
+ - `ExcalidrawAPI.setActiveTool(tool, keepSelection?)` — the second parameter changed from a boolean to an options object: `setActiveTool(tool, { keepSelection?: boolean; toggle?: boolean = false })`. The hand and eraser tools are now _toggle tools_: activating one records the previously active tool, and if `toggle=true`, activating it again switches back — including via `setActiveTool` itself, so repeated `setActiveTool({ type: "hand" }, { toggle: true })` calls alternate rather than no-op. By default `false` for idempotent activation.
41
+
42
+ - Tool buttons render as semantic `<button>` elements with `aria-pressed` instead of `<label>`-wrapped hidden `<input type="radio">` / `<input type="checkbox">`. If you style or query the editor DOM:
43
+
44
+ - The `.ToolIcon_type_radio`, `.ToolIcon_type_checkbox`, and `.ToolIcon--selected` class names no longer exist — the pressed state is exposed through the `.ToolIcon--checked` class and the `aria-pressed` attribute.
45
+ - `<Sidebar.Trigger>` (including the default Library trigger) renders a `<button>` instead of a `<label>` + checkbox.
46
+
47
+ - Removed internal actions superseded by the `setActiveTool` funnel and the tool registry: `toggleHandTool`, `toggleEraserTool`, `toggleLassoTool`, `setFrameAsActiveTool`, `setEmbeddableAsActiveTool` (these `ActionName`s no longer exist).
48
+
49
+ #### Behavior changes
50
+
51
+ - Hand (`H`) and eraser (`E`) shortcuts now reliably toggle back to the previously active tool (previously inconsistent across platforms and input paths, and unavailable for hand in view mode). Pressing `Escape` while hand or eraser is active likewise returns to the previous tool. Re-clicking their toolbar buttons is a no-op.
52
+ - Clicking the active selection tool switches to lasso on all platforms (previously this only worked on iOS due to a controlled-radio quirk).
53
+ - Tool letter shortcuts are CapsLock-insensitive, `Shift+letter` never switches tools, and `Ctrl+E` no longer toggles the eraser.
54
+ - Switching tools no longer creates undo-history entries.
55
+ - Command palette tool commands are derived from the tool registry: the duplicate "Hand" entry is gone, "Web Embed" was added, and "Lasso" is always listed.
56
+ - Pen mode now activates on the first pen tap on any tool button (previously deferred and occasionally dropped).
57
+
58
+ #### Fixes
59
+
60
+ - Mobile toolbar popovers: the active option stays highlighted after tapping it (the highlight was being suppressed by sticky touch-hover).
61
+ - The active-tool highlight can no longer desync from the actually active tool (controlled-radio DOM desync).
62
+
63
+ ### Viewport control & scroll/zoom locking (2026-07-03) [#11554](https://github.com/excalidraw/excalidraw/pull/11554)
64
+
65
+ `ExcalidrawAPI.scrollToContent` was rebuilt into `ExcalidrawAPI.setViewport()` — a single API for navigating the viewport (`fit: "scale-down" | "contain" | "none"`), locking scroll/zoom to a target (with rubberband overscroll), fitting around the rendered editor UI, and initializing the viewport on scene load.
21
66
 
22
67
  #### Breaking changes
23
68
 
@@ -43,15 +88,17 @@ Please add the latest change on the top under the correct section.
43
88
 
44
89
  #### Features
45
90
 
46
- - `setViewport({ ..., lock })` locks the viewport to the resolved target: `lock.scroll` constrains panning to the target box and `lock.zoom` makes the resolved zoom the minimum zoom (zooming in stays allowed). When the navigation is animated, the lock is installed once the viewport settles. `setViewport(null)` clears an active lock without navigating; a navigation without `lock` also supersedes a previously installed one.
91
+ - `setViewport({ ..., lock })` locks the viewport to the resolved target: `lock.scroll` constrains panning to the target box and `lock.zoom` makes the resolved zoom the minimum zoom (zooming in stays allowed). During an animated navigation into a locked viewport, user pan, zoom, fit, and page-navigation input is consumed without mutating or cancelling the transition; the destination lock is installed together with the final viewport once the animation settles. A newer `setViewport(...)` supersedes the transition and starts from the currently rendered viewport. `setViewport(null)` cancels a pending transition and clears any pending or active lock without navigating; a navigation without `lock` likewise supersedes any lock.
92
+
93
+ - `lock.overscroll` adds a rubberband to the lock: panning can overshoot the constraint by the given amount (viewport px, zoom-independent) and snaps back once wheel input settles or the active pointer or multi-finger gesture is released. Defaults to `true` = `DEFAULT_OVERSCROLL` (150px, exported from the package root); pass a number to customize, or `false` / `0` for a rigid lock. Zooming itself remains hard-clamped against the lock, gliding along its edge instead of overscrolling, and stays available during snap-back without cancelling the rubberband animation or discarding its existing screen-space overscroll.
47
94
 
48
- - `lock.overscroll` adds a rubberband to the lock: panning can overshoot the constraint by the given amount (viewport px, zoom-independent) and snaps back once the interaction settles on touch, once the multi-finger gesture ends. Defaults to `true` = `DEFAULT_OVERSCROLL` (150px, exported from the package root); pass a number to customize, or `false` / `0` for a rigid lock. Zooming is always hard-clamped against the lock, gliding along its edge instead of overscrolling.
95
+ - While a lock is active, the zoom-to-fit shortcuts (shift+1/2/3) target the locked box instead of the scene elements (with no selection), so they return the viewport to the lock's resting state; reset-zoom (ctrl/cmd+0) resets to the lock's minimum zoom instead of 100%. Fit results are always re-clamped against the lock. [#11605](https://github.com/excalidraw/excalidraw/pull/11605)
49
96
 
50
97
  - Added `<Excalidraw initialState={{ viewport }} />` for initializing the viewport (and optionally installing a lock) once on scene load. Accepts the same options as `setViewport` except `animation`, and takes precedence over `initialData.scrollToContent`.
51
98
 
52
99
  - The `offsets` option (on `setViewport` and `initialState.viewport`) insets the usable viewport per side so targets aren't fitted underneath overlaid UI. It combines static pixel sides with `ui: true | ViewportOffsetsOptions`, which measures the currently rendered editor UI (toolbar, styles panel, sidebar…) — with configurable padding, per-side overrides, and reserving space for currently-hidden surfaces (`reserve: { stylesPanel?: boolean; sidebar?: boolean }`). The same measurement is exposed through the new `ExcalidrawAPI.getViewportOffsets(opts?)`, and custom UI rendered inside the editor container can opt into being measured via the `data-viewport-ui="top" | "bottom" | "side"` attribute.
53
100
 
54
- ### Breaking changes
101
+ ### Other Breaking changes
55
102
 
56
103
  - `UIAppState` no longer includes `zoom`, `shouldCacheIgnoreZoom`, and the canvas-interaction transients `snapLines`, `originSnapOffset`, `suggestedBinding`, `frameToHighlight`, and `elementsToHighlight`. These update per pointermove or per animation frame and no longer re-render the editor UI, so UI render props receiving `UIAppState` (`renderCustomStats`, custom `<Footer/>` content, etc.) don't receive them anymore and would render stale values if they read them off the full `AppState`. Subscribe through `useExcalidrawStateValue` instead — the component re-renders only when the selected value changes:
57
104
 
@@ -84,7 +131,7 @@ Please add the latest change on the top under the correct section.
84
131
  - Renamed the `excalidrawAPI` prop to `onExcalidrawAPI`.
85
132
  - `onExcalidrawAPI` is now called on mount (instead of during constructor), and later on unmount (with `null` value). The API may be removed altogether in the future (you can use `onMount` & `onUnmount` to manage the `ExcalidrawAPI` object (e.g. to cache it to a global state), already).
86
133
 
87
- ### Features
134
+ ### Other Features
88
135
 
89
136
  - Added `ExcalidrawAPI.isDestroyed` flag. Set to `true` once the editor unmounts. Calling any `get*` method, `onStateChange`, or `onEvent` on a destroyed API instance will throw in development and `console.error` in production. The `ExcalidrawAPI` will be reset to `null` on unmount, but to be extra safe, you should check `ExcalidrawAPI.isDestroyed` before calling these methods to guard against subtle race conditions in your code.
90
137
 
@@ -163,6 +210,8 @@ Please add the latest change on the top under the correct section.
163
210
 
164
211
  ### Breaking changes
165
212
 
213
+ - `updateActiveTool` (from `@excalidraw/common`): the `lastActiveToolBeforeEraser` property of the `data` parameter was renamed to `lastActiveTool` (it was already stored under that name on `appState.activeTool`, and is no longer eraser-specific).
214
+
166
215
  - `getClosestElementBounds` is no longer exported from `@excalidraw/element`. Use `getCommonBounds` / `getElementBounds` from `@excalidraw/element`, or reimplement the closest-target distance check with `getElementBounds` if you need the same behavior [#11554](https://github.com/excalidraw/excalidraw/pull/11554).
167
216
 
168
217
  ## 0.18.0 (2025-03-11)
@@ -1,7 +1,7 @@
1
1
  // <define:import.meta.env>
2
- var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@excalidraw/excalidraw", PKG_VERSION: "0.5.0-aee77a4", DEV: true };
2
+ var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3016", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3001", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@dwelle/excalidraw", PKG_VERSION: "0.5.0-d6c4dc6c4", DEV: true };
3
3
 
4
4
  export {
5
5
  define_import_meta_env_default
6
6
  };
7
- //# sourceMappingURL=chunk-7PSZ5NAU.js.map
7
+ //# sourceMappingURL=chunk-2VQ5HBIZ.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["<define:import.meta.env>"],
4
4
  "sourcesContent": [""],
5
- "mappings": ";AAAA,uCAAC,MAAO,eAAc,6BAA8B,2CAA0C,8BAA+B,gDAA+C,sBAAuB,oCAAmC,0BAA2B,gFAA+E,wBAAyB,yBAAwB,kBAAmB,+BAA8B,mBAAoB,yBAAwB,qBAAsB,yBAAwB,0BAA2B,mRAA0S,kCAAmC,IAAG,0BAA2B,QAAO,cAAe,SAAQ,eAAgB,QAAO,mDAAoD,IAAG,2BAA4B,QAAO,wBAAyB,QAAO,qBAAsB,SAAQ,iCAAkC,wZAAuZ,iCAAkC,IAAG,UAAW,0BAAyB,aAAc,iBAAgB,KAAM,KAAI;",
5
+ "mappings": ";AAAA,uCAAC,MAAO,eAAc,6BAA8B,2CAA0C,8BAA+B,gDAA+C,sBAAuB,oCAAmC,0BAA2B,gFAA+E,wBAAyB,yBAAwB,kBAAmB,+BAA8B,mBAAoB,yBAAwB,qBAAsB,yBAAwB,0BAA2B,mRAA0S,kCAAmC,IAAG,0BAA2B,QAAO,cAAe,SAAQ,eAAgB,QAAO,mDAAoD,IAAG,2BAA4B,QAAO,wBAAyB,QAAO,qBAAsB,SAAQ,iCAAkC,wZAAuZ,iCAAkC,IAAG,UAAW,sBAAqB,aAAc,mBAAkB,KAAM,KAAI;",
6
6
  "names": []
7
7
  }