@excalidraw/excalidraw 0.18.0-0457ac9 → 0.18.0-063e025
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.
- package/CHANGELOG.md +77 -6
- package/dist/dev/{chunk-EKHIECBR.js → chunk-CMENHO4Z.js} +685 -102
- package/dist/dev/chunk-CMENHO4Z.js.map +7 -0
- package/dist/dev/{chunk-4JOINNOK.js → chunk-IXWCXJ4O.js} +5 -1
- package/dist/dev/chunk-IXWCXJ4O.js.map +7 -0
- package/dist/dev/chunk-LCV6WMJR.js +69 -0
- package/dist/dev/chunk-LCV6WMJR.js.map +7 -0
- package/dist/dev/data/{image-MT4GFTQS.js → image-WQXG7XRL.js} +2 -2
- package/dist/dev/index.css +49 -3
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +3841 -2972
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{ar-SA-AGVJN2FU.js → ar-SA-2YSRL2Y5.js} +26 -4
- package/dist/dev/locales/ar-SA-2YSRL2Y5.js.map +7 -0
- package/dist/dev/locales/{az-AZ-62IXPX5D.js → az-AZ-Y4BDU6NT.js} +25 -3
- package/dist/dev/locales/az-AZ-Y4BDU6NT.js.map +7 -0
- package/dist/dev/locales/{bg-BG-UBDZF4KA.js → bg-BG-VL3Z2EMR.js} +25 -3
- package/dist/dev/locales/bg-BG-VL3Z2EMR.js.map +7 -0
- package/dist/dev/locales/{bn-BD-4TAUVZOD.js → bn-BD-4B2A67HP.js} +25 -3
- package/dist/dev/locales/bn-BD-4B2A67HP.js.map +7 -0
- package/dist/dev/locales/{bn-IN-PUGL2LDE.js → bn-IN-4LXCFZMW.js} +25 -3
- package/dist/dev/locales/bn-IN-4LXCFZMW.js.map +7 -0
- package/dist/dev/locales/{ca-ES-GEEW5L7T.js → ca-ES-M4YCZMII.js} +26 -4
- package/dist/dev/locales/ca-ES-M4YCZMII.js.map +7 -0
- package/dist/dev/locales/{cs-CZ-LNVE3QM5.js → cs-CZ-UFSXS6HC.js} +25 -3
- package/dist/dev/locales/cs-CZ-UFSXS6HC.js.map +7 -0
- package/dist/dev/locales/{da-DK-CAYJG7FJ.js → da-DK-GITJMZWC.js} +25 -3
- package/dist/dev/locales/da-DK-GITJMZWC.js.map +7 -0
- package/dist/dev/locales/{de-CH-GCXOD4LK.js → de-CH-AEAPIGWW.js} +26 -4
- package/dist/dev/locales/de-CH-AEAPIGWW.js.map +7 -0
- package/dist/dev/locales/{de-DE-CGDBECYD.js → de-DE-5ZLSO65Y.js} +26 -4
- package/dist/dev/locales/de-DE-5ZLSO65Y.js.map +7 -0
- package/dist/dev/locales/{el-GR-G5QZC24A.js → el-GR-GYPZT4GZ.js} +26 -4
- package/dist/dev/locales/el-GR-GYPZT4GZ.js.map +7 -0
- package/dist/dev/locales/{en-WD25OMHJ.js → en-FWAHFE2G.js} +2 -2
- package/dist/dev/locales/{es-ES-UMEOH76W.js → es-ES-JFMAP7BU.js} +26 -4
- package/dist/dev/locales/es-ES-JFMAP7BU.js.map +7 -0
- package/dist/dev/locales/{eu-ES-IWRZXJC5.js → eu-ES-WNVIIFRL.js} +26 -4
- package/dist/dev/locales/eu-ES-WNVIIFRL.js.map +7 -0
- package/dist/dev/locales/{fa-IR-QOYVIIJA.js → fa-IR-WYXLIZOT.js} +34 -12
- package/dist/dev/locales/fa-IR-WYXLIZOT.js.map +7 -0
- package/dist/dev/locales/{fi-FI-BXRW65OA.js → fi-FI-54NSFYWG.js} +25 -3
- package/dist/dev/locales/fi-FI-54NSFYWG.js.map +7 -0
- package/dist/dev/locales/{fr-FR-R2QH5VCW.js → fr-FR-D5OGMLN6.js} +63 -41
- package/dist/dev/locales/fr-FR-D5OGMLN6.js.map +7 -0
- package/dist/dev/locales/{gl-ES-4ES3ZADP.js → gl-ES-KHXPF3VA.js} +25 -3
- package/dist/dev/locales/gl-ES-KHXPF3VA.js.map +7 -0
- package/dist/dev/locales/{he-IL-TRQRRYPH.js → he-IL-QSUPCRTQ.js} +26 -4
- package/dist/dev/locales/he-IL-QSUPCRTQ.js.map +7 -0
- package/dist/dev/locales/{hi-IN-U46BOJEC.js → hi-IN-TY7QEP7S.js} +26 -4
- package/dist/dev/locales/hi-IN-TY7QEP7S.js.map +7 -0
- package/dist/dev/locales/{hu-HU-JDULJ6XL.js → hu-HU-FHTE6N2G.js} +25 -3
- package/dist/dev/locales/hu-HU-FHTE6N2G.js.map +7 -0
- package/dist/dev/locales/{id-ID-BLIXNCUT.js → id-ID-4WWGEFMB.js} +26 -4
- package/dist/dev/locales/id-ID-4WWGEFMB.js.map +7 -0
- package/dist/dev/locales/{it-IT-6TBW7RUK.js → it-IT-P47ZQPB3.js} +30 -8
- package/dist/dev/locales/it-IT-P47ZQPB3.js.map +7 -0
- package/dist/dev/locales/{ja-JP-6HYAQFYX.js → ja-JP-URB5LBRT.js} +165 -143
- package/dist/dev/locales/ja-JP-URB5LBRT.js.map +7 -0
- package/dist/dev/locales/{kaa-Z5UP62XJ.js → kaa-FMANZGDI.js} +25 -3
- package/dist/dev/locales/kaa-FMANZGDI.js.map +7 -0
- package/dist/dev/locales/{kab-KAB-Z7STWQKS.js → kab-KAB-LKRLZQXY.js} +25 -3
- package/dist/dev/locales/kab-KAB-LKRLZQXY.js.map +7 -0
- package/dist/dev/locales/{kk-KZ-BWHY45DX.js → kk-KZ-3254S5T2.js} +25 -3
- package/dist/dev/locales/kk-KZ-3254S5T2.js.map +7 -0
- package/dist/dev/locales/{km-KH-HGLNWNRU.js → km-KH-L5X6KSOP.js} +25 -3
- package/dist/dev/locales/km-KH-L5X6KSOP.js.map +7 -0
- package/dist/dev/locales/{ko-KR-CO36WKPC.js → ko-KR-MFE6HC5B.js} +25 -3
- package/dist/dev/locales/ko-KR-MFE6HC5B.js.map +7 -0
- package/dist/dev/locales/{ku-TR-AACVIARC.js → ku-TR-QMA34F2F.js} +25 -3
- package/dist/dev/locales/ku-TR-QMA34F2F.js.map +7 -0
- package/dist/dev/locales/{lt-LT-CFYYFLDV.js → lt-LT-ZZ4ADZ7N.js} +25 -3
- package/dist/dev/locales/lt-LT-ZZ4ADZ7N.js.map +7 -0
- package/dist/dev/locales/{lv-LV-QCBBOFFU.js → lv-LV-BXTRSXJG.js} +25 -3
- package/dist/dev/locales/lv-LV-BXTRSXJG.js.map +7 -0
- package/dist/dev/locales/{mr-IN-B2CM5GK5.js → mr-IN-57KQDHC2.js} +26 -4
- package/dist/dev/locales/mr-IN-57KQDHC2.js.map +7 -0
- package/dist/dev/locales/{my-MM-756BNN36.js → my-MM-63XGVQB2.js} +25 -3
- package/dist/dev/locales/my-MM-63XGVQB2.js.map +7 -0
- package/dist/dev/locales/{nb-NO-5BLHQI4J.js → nb-NO-355CTFN2.js} +26 -4
- package/dist/dev/locales/nb-NO-355CTFN2.js.map +7 -0
- package/dist/dev/locales/{nl-NL-225BLGAH.js → nl-NL-CYL7CDFO.js} +32 -10
- package/dist/dev/locales/nl-NL-CYL7CDFO.js.map +7 -0
- package/dist/dev/locales/{nn-NO-4J7MR6GH.js → nn-NO-XXWWVC6Z.js} +25 -3
- package/dist/dev/locales/nn-NO-XXWWVC6Z.js.map +7 -0
- package/dist/dev/locales/{oc-FR-XCETH7KF.js → oc-FR-DRSDA2BN.js} +26 -4
- package/dist/dev/locales/oc-FR-DRSDA2BN.js.map +7 -0
- package/dist/dev/locales/{pa-IN-32NBAN5L.js → pa-IN-QDAURTVI.js} +25 -3
- package/dist/dev/locales/pa-IN-QDAURTVI.js.map +7 -0
- package/dist/dev/locales/{percentages-ZRLRVMSI.js → percentages-QGLYMXSX.js} +2 -2
- package/dist/dev/locales/{pl-PL-R6OJ54BT.js → pl-PL-MVJZXY6Q.js} +26 -4
- package/dist/dev/locales/pl-PL-MVJZXY6Q.js.map +7 -0
- package/dist/dev/locales/{pt-BR-7AFGAKGR.js → pt-BR-YJKF7STY.js} +49 -27
- package/dist/dev/locales/pt-BR-YJKF7STY.js.map +7 -0
- package/dist/dev/locales/{pt-PT-S6BMW6MY.js → pt-PT-VDTL5PFO.js} +26 -4
- package/dist/dev/locales/pt-PT-VDTL5PFO.js.map +7 -0
- package/dist/dev/locales/{ro-RO-4JVGQHS2.js → ro-RO-UPPQBRED.js} +27 -5
- package/dist/dev/locales/ro-RO-UPPQBRED.js.map +7 -0
- package/dist/dev/locales/{ru-RU-IESI752T.js → ru-RU-W4CHGSNY.js} +32 -10
- package/dist/dev/locales/ru-RU-W4CHGSNY.js.map +7 -0
- package/dist/dev/locales/{si-LK-H75E7PKD.js → si-LK-YBM4EAKD.js} +26 -4
- package/dist/dev/locales/si-LK-YBM4EAKD.js.map +7 -0
- package/dist/dev/locales/{sk-SK-EUK2NR2F.js → sk-SK-7437AQRD.js} +26 -4
- package/dist/dev/locales/sk-SK-7437AQRD.js.map +7 -0
- package/dist/dev/locales/{sl-SI-AKW7R5PW.js → sl-SI-4HMLL4KH.js} +26 -4
- package/dist/dev/locales/sl-SI-4HMLL4KH.js.map +7 -0
- package/dist/dev/locales/{sv-SE-QIBOOXLJ.js → sv-SE-ZOD3YMID.js} +26 -4
- package/dist/dev/locales/sv-SE-ZOD3YMID.js.map +7 -0
- package/dist/dev/locales/{ta-IN-LBK2NQ5K.js → ta-IN-LS6WD24E.js} +25 -3
- package/dist/dev/locales/ta-IN-LS6WD24E.js.map +7 -0
- package/dist/dev/locales/{th-TH-YJ2E6GVT.js → th-TH-LOAXQ4RD.js} +70 -48
- package/dist/dev/locales/th-TH-LOAXQ4RD.js.map +7 -0
- package/dist/dev/locales/{tr-TR-Y5GO2XJW.js → tr-TR-CPR4DIZR.js} +70 -48
- package/dist/dev/locales/tr-TR-CPR4DIZR.js.map +7 -0
- package/dist/dev/locales/{uk-UA-XYAFHHJW.js → uk-UA-DVTOBJYO.js} +54 -32
- package/dist/dev/locales/uk-UA-DVTOBJYO.js.map +7 -0
- package/dist/dev/locales/{uz-UZ-LF3CBRYE.js → uz-UZ-DDPKFZAS.js} +25 -3
- package/dist/dev/locales/uz-UZ-DDPKFZAS.js.map +7 -0
- package/dist/dev/locales/{vi-VN-WDPZEUOJ.js → vi-VN-EIMT27KG.js} +25 -3
- package/dist/dev/locales/vi-VN-EIMT27KG.js.map +7 -0
- package/dist/dev/locales/{zh-CN-SZ37453H.js → zh-CN-2TSGH3JY.js} +34 -12
- package/dist/dev/locales/zh-CN-2TSGH3JY.js.map +7 -0
- package/dist/dev/locales/{zh-HK-QDQ5QNBC.js → zh-HK-FQYY5CF5.js} +25 -3
- package/dist/dev/locales/zh-HK-FQYY5CF5.js.map +7 -0
- package/dist/dev/locales/{zh-TW-CYU6GFBV.js → zh-TW-7WFSJB6W.js} +110 -88
- package/dist/dev/locales/zh-TW-7WFSJB6W.js.map +7 -0
- package/dist/prod/chunk-CJTDIR4C.js +1 -0
- package/dist/prod/chunk-U6RUAQJG.js +4 -0
- package/dist/prod/{chunk-LOOWOR4L.js → chunk-Z24UKHUO.js} +6 -6
- package/dist/prod/data/image-MPCRVOT4.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +37 -37
- package/dist/prod/locales/ar-SA-YLAB6A27.js +8 -0
- package/dist/prod/locales/az-AZ-5JXPK2I2.js +1 -0
- package/dist/prod/locales/bg-BG-NIQ2RVNG.js +5 -0
- package/dist/prod/locales/bn-BD-BN65R3DE.js +3 -0
- package/dist/prod/locales/bn-IN-2YT4KVKB.js +3 -0
- package/dist/prod/locales/ca-ES-KSERGC3M.js +8 -0
- package/dist/prod/locales/cs-CZ-EOMS3IHD.js +7 -0
- package/dist/prod/locales/da-DK-AVL3DJQK.js +2 -0
- package/dist/prod/locales/de-CH-M25HCZK4.js +7 -0
- package/dist/prod/locales/de-DE-BEN6XGXY.js +7 -0
- package/dist/prod/locales/el-GR-UBGIF2NW.js +7 -0
- package/dist/prod/locales/{en-CMP6EMR6.js → en-PCJ7LJZ2.js} +1 -1
- package/dist/prod/locales/es-ES-SQEM5MNY.js +7 -0
- package/dist/prod/locales/eu-ES-YG5N2JAG.js +7 -0
- package/dist/prod/locales/fa-IR-EVNM7MAJ.js +9 -0
- package/dist/prod/locales/fi-FI-MW7ZEZ64.js +6 -0
- package/dist/prod/locales/fr-FR-Q7ZPXBDE.js +12 -0
- package/dist/prod/locales/gl-ES-O5B74VQL.js +6 -0
- package/dist/prod/locales/he-IL-QGC2WXJA.js +8 -0
- package/dist/prod/locales/hi-IN-DEZ33NMQ.js +3 -0
- package/dist/prod/locales/hu-HU-2ZPNVYSC.js +3 -0
- package/dist/prod/locales/id-ID-W65WM5EO.js +8 -0
- package/dist/prod/locales/it-IT-GAWJM2XW.js +12 -0
- package/dist/prod/locales/ja-JP-FOAUPTH5.js +12 -0
- package/dist/prod/locales/kaa-UEDB54S7.js +1 -0
- package/dist/prod/locales/kab-KAB-CTLMBVE3.js +4 -0
- package/dist/prod/locales/kk-KZ-XZK63ADD.js +1 -0
- package/dist/prod/locales/km-KH-PBSJLZ2M.js +7 -0
- package/dist/prod/locales/ko-KR-YNTPN6WQ.js +5 -0
- package/dist/prod/locales/ku-TR-XUD5BUEU.js +6 -0
- package/dist/prod/locales/lt-LT-LYCDYH7O.js +3 -0
- package/dist/prod/locales/lv-LV-7ROPDEEI.js +4 -0
- package/dist/prod/locales/mr-IN-TU6BXRKP.js +9 -0
- package/dist/prod/locales/my-MM-SJ3RWIEQ.js +1 -0
- package/dist/prod/locales/nb-NO-GONF2AKR.js +8 -0
- package/dist/prod/locales/nl-NL-UZF6UEKB.js +13 -0
- package/dist/prod/locales/nn-NO-ZVFRXEEO.js +4 -0
- package/dist/prod/locales/oc-FR-MBF2Z56W.js +4 -0
- package/dist/prod/locales/pa-IN-3JCDVKKL.js +4 -0
- package/dist/prod/locales/percentages-WBIPKLEE.js +1 -0
- package/dist/prod/locales/pl-PL-EERMMCTN.js +12 -0
- package/dist/prod/locales/pt-BR-W4AF5QMX.js +6 -0
- package/dist/prod/locales/pt-PT-GNPUWAHX.js +8 -0
- package/dist/prod/locales/ro-RO-DXHP33S5.js +12 -0
- package/dist/prod/locales/ru-RU-TTW2P7NF.js +10 -0
- package/dist/prod/locales/si-LK-BE6O7LVF.js +1 -0
- package/dist/prod/locales/sk-SK-OI3KJLWQ.js +7 -0
- package/dist/prod/locales/sl-SI-HF74RBGV.js +6 -0
- package/dist/prod/locales/sv-SE-TXR2SQGA.js +8 -0
- package/dist/prod/locales/ta-IN-Y2DOZGBR.js +6 -0
- package/dist/prod/locales/th-TH-JUAISFQR.js +1 -0
- package/dist/prod/locales/tr-TR-U3HGKQXH.js +4 -0
- package/dist/prod/locales/uk-UA-FP2TKAFK.js +6 -0
- package/dist/prod/locales/uz-UZ-WY5QKWXJ.js +1 -0
- package/dist/prod/locales/vi-VN-DE5I4H6K.js +7 -0
- package/dist/prod/locales/zh-CN-VWHOHS7G.js +11 -0
- package/dist/prod/locales/zh-HK-KQF7FW7H.js +1 -0
- package/dist/prod/locales/zh-TW-6VHVWZKW.js +13 -0
- package/dist/types/common/src/colors.d.ts +1 -1
- package/dist/types/common/src/constants.d.ts +9 -7
- package/dist/types/common/src/utils.d.ts +0 -42
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +2 -2
- package/dist/types/element/src/binding.d.ts +6 -6
- package/dist/types/element/src/bounds.d.ts +19 -6
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/comparisons.d.ts +1 -0
- package/dist/types/element/src/distribute.d.ts +2 -2
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +3 -3
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +4 -4
- package/dist/types/element/src/groups.d.ts +9 -9
- package/dist/types/element/src/index.d.ts +1 -1
- package/dist/types/element/src/linearElementEditor.d.ts +10 -10
- package/dist/types/element/src/newElement.d.ts +1 -0
- package/dist/types/element/src/renderElement.d.ts +0 -3
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +5 -5
- package/dist/types/element/src/textElement.d.ts +7 -7
- package/dist/types/element/src/transform.d.ts +2 -2
- package/dist/types/element/src/typeChecks.d.ts +25 -25
- package/dist/types/element/src/types.d.ts +8 -1
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +12 -6
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +8 -4
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +61 -389
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +8 -4
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +13 -7
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +9 -5
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +8 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +29 -20
- package/dist/types/excalidraw/actions/actionGroup.d.ts +23 -19
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +7 -4
- package/dist/types/excalidraw/actions/actionLink.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionMenu.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +35 -22
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +9 -7
- package/dist/types/excalidraw/actions/actionStyles.d.ts +4 -2
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +8 -7
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +8 -7
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +5 -3
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +5 -3
- package/dist/types/excalidraw/actions/index.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +4 -4
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +2 -3
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +61 -32
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +2 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +6 -3
- package/dist/types/excalidraw/data/blob.d.ts +8 -4
- package/dist/types/excalidraw/data/index.d.ts +4 -4
- package/dist/types/excalidraw/data/json.d.ts +10 -8
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +4 -2
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/animation.d.ts +5 -1
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
- package/dist/types/excalidraw/scene/Renderer.d.ts +12 -11
- package/dist/types/excalidraw/scene/export.d.ts +3 -3
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +1 -3
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +168 -11
- package/dist/types/excalidraw/viewport.d.ts +316 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +35 -0
- package/dist/types/utils/src/export.d.ts +3 -3
- package/dist/types/utils/src/index.d.ts +1 -2
- package/package.json +4 -4
- package/dist/dev/chunk-4JOINNOK.js.map +0 -7
- package/dist/dev/chunk-EKHIECBR.js.map +0 -7
- package/dist/dev/chunk-URPEKBQ3.js +0 -69
- package/dist/dev/chunk-URPEKBQ3.js.map +0 -7
- package/dist/dev/locales/ar-SA-AGVJN2FU.js.map +0 -7
- package/dist/dev/locales/az-AZ-62IXPX5D.js.map +0 -7
- package/dist/dev/locales/bg-BG-UBDZF4KA.js.map +0 -7
- package/dist/dev/locales/bn-BD-4TAUVZOD.js.map +0 -7
- package/dist/dev/locales/bn-IN-PUGL2LDE.js.map +0 -7
- package/dist/dev/locales/ca-ES-GEEW5L7T.js.map +0 -7
- package/dist/dev/locales/cs-CZ-LNVE3QM5.js.map +0 -7
- package/dist/dev/locales/da-DK-CAYJG7FJ.js.map +0 -7
- package/dist/dev/locales/de-CH-GCXOD4LK.js.map +0 -7
- package/dist/dev/locales/de-DE-CGDBECYD.js.map +0 -7
- package/dist/dev/locales/el-GR-G5QZC24A.js.map +0 -7
- package/dist/dev/locales/es-ES-UMEOH76W.js.map +0 -7
- package/dist/dev/locales/eu-ES-IWRZXJC5.js.map +0 -7
- package/dist/dev/locales/fa-IR-QOYVIIJA.js.map +0 -7
- package/dist/dev/locales/fi-FI-BXRW65OA.js.map +0 -7
- package/dist/dev/locales/fr-FR-R2QH5VCW.js.map +0 -7
- package/dist/dev/locales/gl-ES-4ES3ZADP.js.map +0 -7
- package/dist/dev/locales/he-IL-TRQRRYPH.js.map +0 -7
- package/dist/dev/locales/hi-IN-U46BOJEC.js.map +0 -7
- package/dist/dev/locales/hu-HU-JDULJ6XL.js.map +0 -7
- package/dist/dev/locales/id-ID-BLIXNCUT.js.map +0 -7
- package/dist/dev/locales/it-IT-6TBW7RUK.js.map +0 -7
- package/dist/dev/locales/ja-JP-6HYAQFYX.js.map +0 -7
- package/dist/dev/locales/kaa-Z5UP62XJ.js.map +0 -7
- package/dist/dev/locales/kab-KAB-Z7STWQKS.js.map +0 -7
- package/dist/dev/locales/kk-KZ-BWHY45DX.js.map +0 -7
- package/dist/dev/locales/km-KH-HGLNWNRU.js.map +0 -7
- package/dist/dev/locales/ko-KR-CO36WKPC.js.map +0 -7
- package/dist/dev/locales/ku-TR-AACVIARC.js.map +0 -7
- package/dist/dev/locales/lt-LT-CFYYFLDV.js.map +0 -7
- package/dist/dev/locales/lv-LV-QCBBOFFU.js.map +0 -7
- package/dist/dev/locales/mr-IN-B2CM5GK5.js.map +0 -7
- package/dist/dev/locales/my-MM-756BNN36.js.map +0 -7
- package/dist/dev/locales/nb-NO-5BLHQI4J.js.map +0 -7
- package/dist/dev/locales/nl-NL-225BLGAH.js.map +0 -7
- package/dist/dev/locales/nn-NO-4J7MR6GH.js.map +0 -7
- package/dist/dev/locales/oc-FR-XCETH7KF.js.map +0 -7
- package/dist/dev/locales/pa-IN-32NBAN5L.js.map +0 -7
- package/dist/dev/locales/pl-PL-R6OJ54BT.js.map +0 -7
- package/dist/dev/locales/pt-BR-7AFGAKGR.js.map +0 -7
- package/dist/dev/locales/pt-PT-S6BMW6MY.js.map +0 -7
- package/dist/dev/locales/ro-RO-4JVGQHS2.js.map +0 -7
- package/dist/dev/locales/ru-RU-IESI752T.js.map +0 -7
- package/dist/dev/locales/si-LK-H75E7PKD.js.map +0 -7
- package/dist/dev/locales/sk-SK-EUK2NR2F.js.map +0 -7
- package/dist/dev/locales/sl-SI-AKW7R5PW.js.map +0 -7
- package/dist/dev/locales/sv-SE-QIBOOXLJ.js.map +0 -7
- package/dist/dev/locales/ta-IN-LBK2NQ5K.js.map +0 -7
- package/dist/dev/locales/th-TH-YJ2E6GVT.js.map +0 -7
- package/dist/dev/locales/tr-TR-Y5GO2XJW.js.map +0 -7
- package/dist/dev/locales/uk-UA-XYAFHHJW.js.map +0 -7
- package/dist/dev/locales/uz-UZ-LF3CBRYE.js.map +0 -7
- package/dist/dev/locales/vi-VN-WDPZEUOJ.js.map +0 -7
- package/dist/dev/locales/zh-CN-SZ37453H.js.map +0 -7
- package/dist/dev/locales/zh-HK-QDQ5QNBC.js.map +0 -7
- package/dist/dev/locales/zh-TW-CYU6GFBV.js.map +0 -7
- package/dist/prod/chunk-3PELD44J.js +0 -1
- package/dist/prod/chunk-WMDFGAFD.js +0 -4
- package/dist/prod/data/image-KGGK4BDN.js +0 -1
- package/dist/prod/locales/ar-SA-NXDWD63E.js +0 -8
- package/dist/prod/locales/az-AZ-MXSORGZV.js +0 -1
- package/dist/prod/locales/bg-BG-O6MV2KSF.js +0 -5
- package/dist/prod/locales/bn-BD-T2VJNT7N.js +0 -3
- package/dist/prod/locales/bn-IN-MMW2ORAC.js +0 -3
- package/dist/prod/locales/ca-ES-MKBCGNOG.js +0 -8
- package/dist/prod/locales/cs-CZ-V77HGUP7.js +0 -7
- package/dist/prod/locales/da-DK-I5RFNTM4.js +0 -2
- package/dist/prod/locales/de-CH-WLRDEVBV.js +0 -7
- package/dist/prod/locales/de-DE-DTI4WUSC.js +0 -7
- package/dist/prod/locales/el-GR-ZXDJ2OS4.js +0 -7
- package/dist/prod/locales/es-ES-DYQHAD43.js +0 -7
- package/dist/prod/locales/eu-ES-QDSYU5Y3.js +0 -7
- package/dist/prod/locales/fa-IR-26LZG4PM.js +0 -9
- package/dist/prod/locales/fi-FI-6YS4KDE4.js +0 -6
- package/dist/prod/locales/fr-FR-BRLLPTZC.js +0 -12
- package/dist/prod/locales/gl-ES-OKUZTLYG.js +0 -6
- package/dist/prod/locales/he-IL-26MGYIU7.js +0 -8
- package/dist/prod/locales/hi-IN-Q4ZOGTP2.js +0 -3
- package/dist/prod/locales/hu-HU-P2OXPSN5.js +0 -3
- package/dist/prod/locales/id-ID-2EIKXYN6.js +0 -8
- package/dist/prod/locales/it-IT-4CFKVXI2.js +0 -12
- package/dist/prod/locales/ja-JP-MAND2Z4V.js +0 -7
- package/dist/prod/locales/kaa-HQRTCXTJ.js +0 -1
- package/dist/prod/locales/kab-KAB-JKIKKTGH.js +0 -4
- package/dist/prod/locales/kk-KZ-HXQ63ZFC.js +0 -1
- package/dist/prod/locales/km-KH-PKL3LSGX.js +0 -7
- package/dist/prod/locales/ko-KR-KXLREZX3.js +0 -5
- package/dist/prod/locales/ku-TR-MJ4IER3X.js +0 -6
- package/dist/prod/locales/lt-LT-H6WFQ6FJ.js +0 -3
- package/dist/prod/locales/lv-LV-GOCK6SJW.js +0 -4
- package/dist/prod/locales/mr-IN-IXVLDMEQ.js +0 -9
- package/dist/prod/locales/my-MM-YG6MYTTD.js +0 -1
- package/dist/prod/locales/nb-NO-XGWJISD2.js +0 -8
- package/dist/prod/locales/nl-NL-XVDVCPNC.js +0 -13
- package/dist/prod/locales/nn-NO-EMX5MJX5.js +0 -4
- package/dist/prod/locales/oc-FR-ROEINTVO.js +0 -4
- package/dist/prod/locales/pa-IN-ZYN6SUDY.js +0 -4
- package/dist/prod/locales/percentages-5DKR754L.js +0 -1
- package/dist/prod/locales/pl-PL-6VTG7PHC.js +0 -12
- package/dist/prod/locales/pt-BR-5YFKRR5G.js +0 -6
- package/dist/prod/locales/pt-PT-GEIXXZ67.js +0 -8
- package/dist/prod/locales/ro-RO-E2P6TFZI.js +0 -12
- package/dist/prod/locales/ru-RU-YBIIY43T.js +0 -10
- package/dist/prod/locales/si-LK-673C2CI2.js +0 -1
- package/dist/prod/locales/sk-SK-CKZHQ4AP.js +0 -7
- package/dist/prod/locales/sl-SI-557H2GWM.js +0 -6
- package/dist/prod/locales/sv-SE-XOPKKDWS.js +0 -8
- package/dist/prod/locales/ta-IN-XBH7DQI3.js +0 -6
- package/dist/prod/locales/th-TH-TOCWH3R4.js +0 -1
- package/dist/prod/locales/tr-TR-GXW6CYY5.js +0 -4
- package/dist/prod/locales/uk-UA-IJKTNUDG.js +0 -6
- package/dist/prod/locales/uz-UZ-TBZZEA4V.js +0 -1
- package/dist/prod/locales/vi-VN-MULSGNVB.js +0 -7
- package/dist/prod/locales/zh-CN-MVX3E32U.js +0 -11
- package/dist/prod/locales/zh-HK-JNU5RLIE.js +0 -1
- package/dist/prod/locales/zh-TW-LENVCA6T.js +0 -9
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
- /package/dist/dev/data/{image-MT4GFTQS.js.map → image-WQXG7XRL.js.map} +0 -0
- /package/dist/dev/locales/{en-WD25OMHJ.js.map → en-FWAHFE2G.js.map} +0 -0
- /package/dist/dev/locales/{percentages-ZRLRVMSI.js.map → percentages-QGLYMXSX.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -15,14 +15,78 @@ 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
|
|
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).
|
|
21
|
+
|
|
22
|
+
#### Breaking changes
|
|
23
|
+
|
|
24
|
+
- `ExcalidrawAPI.scrollToContent(target?, opts?)` was replaced with `ExcalidrawAPI.setViewport(opts | null)`.
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
// before
|
|
28
|
+
excalidrawAPI.scrollToContent(element, {
|
|
29
|
+
fitToViewport: true,
|
|
30
|
+
animate: true,
|
|
31
|
+
});
|
|
32
|
+
// after
|
|
33
|
+
excalidrawAPI.setViewport({ target: element, fit: "contain" });
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- `target` is required and no longer defaults to the whole scene — pass `target: excalidrawAPI.getSceneElements()` for the old default. Besides element(s) or an element id / element-link URL, it now also accepts `Bounds` and `{ x, y, width?, height? }` rects (missing dimensions default to the viewport size). Deleted and non-scene elements in the target are filtered out with a console warning.
|
|
37
|
+
- `fitToContent` / `fitToViewport` were replaced by `fit: "scale-down" | "contain"` respectively, defaulting to `"scale-down"` (zoomed so the target fits, at most 100%). Previously the default depended on the target: element-id / element-link (string) targets defaulted to fit-to-content — matching the new default — while element(s) or omitted targets defaulted to recentering at the current zoom without changing it; pass `fit: "none"` for that behavior.
|
|
38
|
+
- `animate` / `duration` were replaced by `animation: boolean | { duration?: number }`. Navigation now always animates by default; previously only string targets did, while element(s) targets jumped unless `animate: true` — pass `animation: false` to jump instantly.
|
|
39
|
+
- `canvasOffsets` was replaced by `offsets`, which also accepts UI-derived offsets (see Features below).
|
|
40
|
+
- `viewportZoomFactor`, `minZoom`, and `maxZoom` are no longer supported.
|
|
41
|
+
|
|
42
|
+
- `zoomToFitBounds` takes `fit: "scale-down" | "contain" | "none"` instead of `fitToViewport` / `viewportZoomFactor`, and no longer rounds the resulting zoom down to the nearest 10% step by default — pass `steppedZoom: true` to keep the old rounding.
|
|
43
|
+
|
|
44
|
+
#### Features
|
|
45
|
+
|
|
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.
|
|
47
|
+
|
|
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.
|
|
49
|
+
|
|
50
|
+
- 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
|
+
|
|
52
|
+
- 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
|
+
|
|
18
54
|
### Breaking changes
|
|
19
55
|
|
|
56
|
+
- `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
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
import { useExcalidrawStateValue } from "@excalidraw/excalidraw";
|
|
60
|
+
|
|
61
|
+
const ZoomReadout = () => {
|
|
62
|
+
// `undefined` on initial render, before the editor API initializes
|
|
63
|
+
const zoomValue = useExcalidrawStateValue(
|
|
64
|
+
(appState) => appState.zoom.value,
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
if (zoomValue == null) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return <div>{(zoomValue * 100).toFixed(0)}%</div>;
|
|
72
|
+
};
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Outside of React components, you can also subscribe via `ExcalidrawAPI.onStateChange((appState) => appState.zoom.value, (zoomValue) => {...})`, or keep using the existing `onScrollChange(scrollX, scrollY, zoom)` prop.
|
|
76
|
+
|
|
77
|
+
- Theme changes initiated by the default UI are now delegated to `<Excalidraw onThemeChange={(theme) => ...} />` when supplied. If `onThemeChange` is not supplied, light/dark theme toggling still falls back to updating the internal editor state.
|
|
78
|
+
|
|
79
|
+
- `MainMenu.DefaultItems.ToggleTheme` no longer accepts the item-level `onSelect` callback. Host apps that need to control light/dark/system theme should pass `onThemeChange` to `<Excalidraw />` instead.
|
|
80
|
+
- `MainMenu.DefaultItems.ToggleTheme` with system theme support now uses `allowSystemTheme` together with `theme={Theme | "system"}` only to render the selected value. For the regular light/dark item, pass `allowSystemTheme={false}`.
|
|
81
|
+
- `CommandPalette.defaultItems.toggleTheme` was removed. The default theme command is now rendered by the command palette itself when `UIOptions.canvasActions.toggleTheme` enables the action (see below).
|
|
82
|
+
- `UIOptions.canvasActions.toggleTheme` still controls default theme UI availability. When it is `null`, it defaults to `true` if `props.theme` is omitted or `props.onThemeChange` is supplied, and otherwise defaults to disabled.
|
|
83
|
+
|
|
20
84
|
- Renamed the `excalidrawAPI` prop to `onExcalidrawAPI`.
|
|
21
|
-
- `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` & `
|
|
85
|
+
- `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).
|
|
22
86
|
|
|
23
87
|
### Features
|
|
24
88
|
|
|
25
|
-
- 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
|
|
89
|
+
- 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.
|
|
26
90
|
|
|
27
91
|
- Added `onMount`, `onInitialize`, and `onUnmount` props. `onMount` receives `{ excalidrawAPI, container }` once the editor root is mounted. `onInitialize` fires once the initial scene has loaded. `onUnmount` fires just before unmounting.
|
|
28
92
|
|
|
@@ -36,7 +100,10 @@ Please add the latest change on the top under the correct section.
|
|
|
36
100
|
});
|
|
37
101
|
|
|
38
102
|
api.onEvent("editor:initialize").then((readyApi) => {
|
|
39
|
-
readyApi.
|
|
103
|
+
readyApi.setViewport({
|
|
104
|
+
target: readyApi.getSceneElements(),
|
|
105
|
+
animation: false,
|
|
106
|
+
});
|
|
40
107
|
});
|
|
41
108
|
}}
|
|
42
109
|
/>
|
|
@@ -46,7 +113,7 @@ Please add the latest change on the top under the correct section.
|
|
|
46
113
|
|
|
47
114
|
- Also added `"editor:unmount"` lifecycle event, only accessible via `api.onEvent("editor:unmount")`.
|
|
48
115
|
|
|
49
|
-
- Exported `<ExcalidrawAPIProvider/>`, `useExcalidrawAPI()`, `
|
|
116
|
+
- Exported `<ExcalidrawAPIProvider/>`, `useExcalidrawAPI()`, `useExcalidrawStateValue(prop | props | selectorFunction)`, and `useOnExcalidrawStateChange(prop | props | selectorFunction, callback)` from the package. The imperative API also now exposes `onStateChange(prop | props | selectorFunction, callback?)`, and `onEvent(name, callback)`.
|
|
50
117
|
|
|
51
118
|
```tsx
|
|
52
119
|
<ExcalidrawAPIProvider>
|
|
@@ -55,12 +122,12 @@ Please add the latest change on the top under the correct section.
|
|
|
55
122
|
</ExcalidrawAPIProvider>;
|
|
56
123
|
|
|
57
124
|
function Logger() {
|
|
58
|
-
// initially null before the ExcalidrawAPIProvider initializes
|
|
125
|
+
// initially null before the ExcalidrawAPIProvider initializes after
|
|
59
126
|
// <Excalidraw/> renders
|
|
60
127
|
// When <Excalidraw/> unmounts, is reset back to null
|
|
61
128
|
const api = useExcalidrawAPI();
|
|
62
129
|
|
|
63
|
-
|
|
130
|
+
useExcalidrawStateValue("viewModeEnabled", (viewModeEnabled) => {
|
|
64
131
|
console.log("view mode changed:", viewModeEnabled);
|
|
65
132
|
});
|
|
66
133
|
|
|
@@ -94,6 +161,10 @@ Please add the latest change on the top under the correct section.
|
|
|
94
161
|
|
|
95
162
|
## Excalidraw Library
|
|
96
163
|
|
|
164
|
+
### Breaking changes
|
|
165
|
+
|
|
166
|
+
- `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
|
+
|
|
97
168
|
## 0.18.0 (2025-03-11)
|
|
98
169
|
|
|
99
170
|
### Highlights
|