@excalidraw/excalidraw 0.18.0-d9e8a33 → 0.18.0-dabd83c
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 +215 -8
- package/dist/dev/{chunk-4JOINNOK.js → chunk-2JLIBETV.js} +68 -8
- package/dist/dev/chunk-2JLIBETV.js.map +7 -0
- package/dist/dev/chunk-4S62H332.js +69 -0
- package/dist/dev/chunk-4S62H332.js.map +7 -0
- package/dist/dev/chunk-CB5LBNRX.js +385 -0
- package/dist/dev/chunk-CB5LBNRX.js.map +7 -0
- package/dist/dev/{chunk-FZXBOFJP.js → chunk-KIKYBMIR.js} +3462 -1858
- package/dist/dev/chunk-KIKYBMIR.js.map +7 -0
- package/dist/dev/data/{image-E6NJP7SZ.js → image-KXBHBTID.js} +2 -2
- package/dist/dev/index.css +1182 -700
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +23351 -13854
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{ar-SA-AGVJN2FU.js → ar-SA-YR7MCNK4.js} +191 -98
- package/dist/dev/locales/ar-SA-YR7MCNK4.js.map +7 -0
- package/dist/dev/locales/{az-AZ-62IXPX5D.js → az-AZ-ZBXCKPE2.js} +128 -35
- package/dist/dev/locales/az-AZ-ZBXCKPE2.js.map +7 -0
- package/dist/dev/locales/{bg-BG-UBDZF4KA.js → bg-BG-2ZAAYJML.js} +99 -6
- package/dist/dev/locales/bg-BG-2ZAAYJML.js.map +7 -0
- package/dist/dev/locales/{bn-BD-4TAUVZOD.js → bn-BD-GV6U222M.js} +99 -6
- package/dist/dev/locales/bn-BD-GV6U222M.js.map +7 -0
- package/dist/dev/locales/{bn-IN-PUGL2LDE.js → bn-IN-VWHFNEO6.js} +99 -6
- package/dist/dev/locales/bn-IN-VWHFNEO6.js.map +7 -0
- package/dist/dev/locales/{ca-ES-GEEW5L7T.js → ca-ES-EX2VSRUJ.js} +100 -7
- package/dist/dev/locales/ca-ES-EX2VSRUJ.js.map +7 -0
- package/dist/dev/locales/{cs-CZ-LNVE3QM5.js → cs-CZ-ZKHL5BC4.js} +245 -152
- package/dist/dev/locales/cs-CZ-ZKHL5BC4.js.map +7 -0
- package/dist/dev/locales/da-DK-GWXMAGLS.js +891 -0
- package/dist/dev/locales/da-DK-GWXMAGLS.js.map +7 -0
- package/dist/dev/locales/{de-CH-GCXOD4LK.js → de-CH-ZYE4KIVF.js} +208 -115
- package/dist/dev/locales/de-CH-ZYE4KIVF.js.map +7 -0
- package/dist/dev/locales/{de-DE-CGDBECYD.js → de-DE-W5KZA3XL.js} +208 -115
- package/dist/dev/locales/de-DE-W5KZA3XL.js.map +7 -0
- package/dist/dev/locales/{el-GR-G5QZC24A.js → el-GR-LNENOXDS.js} +100 -7
- package/dist/dev/locales/el-GR-LNENOXDS.js.map +7 -0
- package/dist/dev/locales/{en-WD25OMHJ.js → en-56333ONP.js} +6 -2
- package/dist/dev/locales/{es-ES-UMEOH76W.js → es-ES-KVQKK6BK.js} +196 -103
- package/dist/dev/locales/es-ES-KVQKK6BK.js.map +7 -0
- package/dist/dev/locales/{eu-ES-IWRZXJC5.js → eu-ES-K74P2OHT.js} +252 -159
- package/dist/dev/locales/eu-ES-K74P2OHT.js.map +7 -0
- package/dist/dev/locales/{fa-IR-QOYVIIJA.js → fa-IR-UVPVVOK6.js} +191 -98
- package/dist/dev/locales/fa-IR-UVPVVOK6.js.map +7 -0
- package/dist/dev/locales/{fi-FI-BXRW65OA.js → fi-FI-5IH5HHFB.js} +99 -6
- package/dist/dev/locales/fi-FI-5IH5HHFB.js.map +7 -0
- package/dist/dev/locales/{fr-FR-R2QH5VCW.js → fr-FR-6TIQQ2YA.js} +141 -48
- package/dist/dev/locales/fr-FR-6TIQQ2YA.js.map +7 -0
- package/dist/dev/locales/{gl-ES-4ES3ZADP.js → gl-ES-BFS3F2IP.js} +99 -6
- package/dist/dev/locales/gl-ES-BFS3F2IP.js.map +7 -0
- package/dist/dev/locales/{he-IL-TRQRRYPH.js → he-IL-XFUVMK5F.js} +196 -103
- package/dist/dev/locales/he-IL-XFUVMK5F.js.map +7 -0
- package/dist/dev/locales/{hi-IN-U46BOJEC.js → hi-IN-KWN5S7EG.js} +177 -84
- package/dist/dev/locales/hi-IN-KWN5S7EG.js.map +7 -0
- package/dist/dev/locales/{hu-HU-JDULJ6XL.js → hu-HU-XILWCIZQ.js} +285 -192
- package/dist/dev/locales/hu-HU-XILWCIZQ.js.map +7 -0
- package/dist/dev/locales/{id-ID-BLIXNCUT.js → id-ID-FNUVAAM3.js} +189 -96
- package/dist/dev/locales/id-ID-FNUVAAM3.js.map +7 -0
- package/dist/dev/locales/{it-IT-6TBW7RUK.js → it-IT-P6FPL2AC.js} +104 -11
- package/dist/dev/locales/it-IT-P6FPL2AC.js.map +7 -0
- package/dist/dev/locales/{ja-JP-6HYAQFYX.js → ja-JP-6PNFICRT.js} +244 -151
- package/dist/dev/locales/ja-JP-6PNFICRT.js.map +7 -0
- package/dist/dev/locales/{kaa-Z5UP62XJ.js → kaa-J7KKY4JW.js} +99 -6
- package/dist/dev/locales/kaa-J7KKY4JW.js.map +7 -0
- package/dist/dev/locales/{kab-KAB-Z7STWQKS.js → kab-KAB-44EE672Q.js} +99 -6
- package/dist/dev/locales/kab-KAB-44EE672Q.js.map +7 -0
- package/dist/dev/locales/{kk-KZ-BWHY45DX.js → kk-KZ-M3SY27TR.js} +100 -7
- package/dist/dev/locales/kk-KZ-M3SY27TR.js.map +7 -0
- package/dist/dev/locales/{km-KH-HGLNWNRU.js → km-KH-BH436F3B.js} +99 -6
- package/dist/dev/locales/km-KH-BH436F3B.js.map +7 -0
- package/dist/dev/locales/{ko-KR-CO36WKPC.js → ko-KR-OCUNIAMU.js} +247 -154
- package/dist/dev/locales/ko-KR-OCUNIAMU.js.map +7 -0
- package/dist/dev/locales/{ku-TR-AACVIARC.js → ku-TR-DG5I2OEB.js} +100 -7
- package/dist/dev/locales/ku-TR-DG5I2OEB.js.map +7 -0
- package/dist/dev/locales/{lt-LT-CFYYFLDV.js → lt-LT-CFE6GJFO.js} +99 -6
- package/dist/dev/locales/lt-LT-CFE6GJFO.js.map +7 -0
- package/dist/dev/locales/{lv-LV-QCBBOFFU.js → lv-LV-5UXRK5LK.js} +99 -6
- package/dist/dev/locales/lv-LV-5UXRK5LK.js.map +7 -0
- package/dist/dev/locales/{mr-IN-B2CM5GK5.js → mr-IN-JJJ7JEIQ.js} +103 -10
- package/dist/dev/locales/mr-IN-JJJ7JEIQ.js.map +7 -0
- package/dist/dev/locales/{my-MM-756BNN36.js → my-MM-6Y5MTUYZ.js} +100 -7
- package/dist/dev/locales/my-MM-6Y5MTUYZ.js.map +7 -0
- package/dist/dev/locales/{nb-NO-5BLHQI4J.js → nb-NO-OJ2J57UW.js} +185 -92
- package/dist/dev/locales/nb-NO-OJ2J57UW.js.map +7 -0
- package/dist/dev/locales/{nl-NL-225BLGAH.js → nl-NL-ZMGK5L2A.js} +150 -57
- package/dist/dev/locales/nl-NL-ZMGK5L2A.js.map +7 -0
- package/dist/dev/locales/nn-NO-DILC455A.js +891 -0
- package/dist/dev/locales/nn-NO-DILC455A.js.map +7 -0
- package/dist/dev/locales/{oc-FR-XCETH7KF.js → oc-FR-TBAPFIFP.js} +100 -7
- package/dist/dev/locales/oc-FR-TBAPFIFP.js.map +7 -0
- package/dist/dev/locales/{pa-IN-32NBAN5L.js → pa-IN-H7KGTW7K.js} +99 -6
- package/dist/dev/locales/pa-IN-H7KGTW7K.js.map +7 -0
- package/dist/dev/locales/{percentages-ZRLRVMSI.js → percentages-7WBDDXTY.js} +2 -2
- package/dist/dev/locales/{pl-PL-R6OJ54BT.js → pl-PL-6ZGDB43Y.js} +139 -46
- package/dist/dev/locales/pl-PL-6ZGDB43Y.js.map +7 -0
- package/dist/dev/locales/{pt-BR-7AFGAKGR.js → pt-BR-4CXNOML2.js} +187 -94
- package/dist/dev/locales/pt-BR-4CXNOML2.js.map +7 -0
- package/dist/dev/locales/{pt-PT-S6BMW6MY.js → pt-PT-TOMIGAYH.js} +185 -92
- package/dist/dev/locales/pt-PT-TOMIGAYH.js.map +7 -0
- package/dist/dev/locales/{ro-RO-4JVGQHS2.js → ro-RO-DOXV5F2Q.js} +104 -11
- package/dist/dev/locales/ro-RO-DOXV5F2Q.js.map +7 -0
- package/dist/dev/locales/{ru-RU-IESI752T.js → ru-RU-5U265TMV.js} +107 -14
- package/dist/dev/locales/ru-RU-5U265TMV.js.map +7 -0
- package/dist/dev/locales/{si-LK-H75E7PKD.js → si-LK-OGZXL3BT.js} +100 -7
- package/dist/dev/locales/si-LK-OGZXL3BT.js.map +7 -0
- package/dist/dev/locales/{sk-SK-EUK2NR2F.js → sk-SK-JG2AKJPH.js} +137 -44
- package/dist/dev/locales/sk-SK-JG2AKJPH.js.map +7 -0
- package/dist/dev/locales/{sl-SI-AKW7R5PW.js → sl-SI-54ZO5ZSD.js} +185 -92
- package/dist/dev/locales/sl-SI-54ZO5ZSD.js.map +7 -0
- package/dist/dev/locales/{sv-SE-QIBOOXLJ.js → sv-SE-3POS3WZH.js} +182 -89
- package/dist/dev/locales/sv-SE-3POS3WZH.js.map +7 -0
- package/dist/dev/locales/{ta-IN-LBK2NQ5K.js → ta-IN-Y4IRR3JL.js} +99 -6
- package/dist/dev/locales/ta-IN-Y4IRR3JL.js.map +7 -0
- package/dist/dev/locales/th-TH-PFUZOVDY.js +891 -0
- package/dist/dev/locales/th-TH-PFUZOVDY.js.map +7 -0
- package/dist/dev/locales/{tr-TR-Y5GO2XJW.js → tr-TR-TO5WQZYI.js} +176 -83
- package/dist/dev/locales/tr-TR-TO5WQZYI.js.map +7 -0
- package/dist/dev/locales/{uk-UA-XYAFHHJW.js → uk-UA-ZAXUXI3N.js} +188 -95
- package/dist/dev/locales/uk-UA-ZAXUXI3N.js.map +7 -0
- package/dist/dev/locales/{uz-UZ-LF3CBRYE.js → uz-UZ-CPWHQIND.js} +101 -8
- package/dist/dev/locales/uz-UZ-CPWHQIND.js.map +7 -0
- package/dist/dev/locales/{vi-VN-WDPZEUOJ.js → vi-VN-KOPFLJUU.js} +99 -6
- package/dist/dev/locales/vi-VN-KOPFLJUU.js.map +7 -0
- package/dist/dev/locales/{zh-CN-SZ37453H.js → zh-CN-GULBHSU5.js} +139 -46
- package/dist/dev/locales/zh-CN-GULBHSU5.js.map +7 -0
- package/dist/dev/locales/{zh-HK-QDQ5QNBC.js → zh-HK-BQEHPCOZ.js} +99 -6
- package/dist/dev/locales/zh-HK-BQEHPCOZ.js.map +7 -0
- package/dist/dev/locales/{zh-TW-CYU6GFBV.js → zh-TW-CKEFVLXW.js} +185 -92
- package/dist/dev/locales/zh-TW-CKEFVLXW.js.map +7 -0
- package/dist/dev/minimap-controller.chunk.js +516 -0
- package/dist/dev/minimap-controller.chunk.js.map +7 -0
- package/dist/dev/minimap-shared.chunk.js +19 -0
- package/dist/dev/minimap-shared.chunk.js.map +7 -0
- package/dist/dev/minimap-worker.chunk.js +20 -0
- package/dist/dev/minimap-worker.chunk.js.map +7 -0
- package/dist/prod/chunk-FPHVY4UD.js +1 -0
- package/dist/prod/chunk-OIG3OHGV.js +11 -0
- package/dist/prod/chunk-QGKI6IJO.js +5 -0
- package/dist/prod/chunk-TLY2GM7R.js +1 -0
- package/dist/prod/data/{image-J2CAS7OM.js → image-4J2CUBE2.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +76 -101
- package/dist/prod/locales/ar-SA-5PG7V5EO.js +12 -0
- package/dist/prod/locales/az-AZ-R5PIN4QX.js +1 -0
- package/dist/prod/locales/bg-BG-7O26EXOO.js +5 -0
- package/dist/prod/locales/bn-BD-HFUYVZBL.js +3 -0
- package/dist/prod/locales/bn-IN-CGKI7RJZ.js +3 -0
- package/dist/prod/locales/ca-ES-2XVDQTRM.js +8 -0
- package/dist/prod/locales/cs-CZ-LYQQVZTU.js +12 -0
- package/dist/prod/locales/da-DK-74L3IIHC.js +12 -0
- package/dist/prod/locales/de-CH-ESDMSEY2.js +11 -0
- package/dist/prod/locales/de-DE-AWQAQ5MM.js +11 -0
- package/dist/prod/locales/el-GR-XKFHXYJL.js +7 -0
- package/dist/prod/locales/en-ZM4QJEDL.js +1 -0
- package/dist/prod/locales/es-ES-7FASZ2HS.js +12 -0
- package/dist/prod/locales/eu-ES-XQCVGEM7.js +8 -0
- package/dist/prod/locales/fa-IR-WCOKBPIV.js +13 -0
- package/dist/prod/locales/fi-FI-D27CLN2M.js +6 -0
- package/dist/prod/locales/fr-FR-3R3JUNNU.js +12 -0
- package/dist/prod/locales/gl-ES-QWUPPZGY.js +6 -0
- package/dist/prod/locales/he-IL-WG32KK3Y.js +9 -0
- package/dist/prod/locales/hi-IN-2KMQE37Z.js +7 -0
- package/dist/prod/locales/hu-HU-LNQSDLNX.js +10 -0
- package/dist/prod/locales/id-ID-VKXDAHVE.js +8 -0
- package/dist/prod/locales/it-IT-Y2AQYZ6X.js +12 -0
- package/dist/prod/locales/ja-JP-DKRHFBGJ.js +12 -0
- package/dist/prod/locales/kaa-MBUZHFTE.js +1 -0
- package/dist/prod/locales/kab-KAB-YRKCE6RZ.js +4 -0
- package/dist/prod/locales/kk-KZ-OL5E5FB2.js +1 -0
- package/dist/prod/locales/km-KH-3C3DBY4D.js +7 -0
- package/dist/prod/locales/ko-KR-252XVXUO.js +6 -0
- package/dist/prod/locales/ku-TR-S47WOAKQ.js +6 -0
- package/dist/prod/locales/lt-LT-N4MVADKY.js +3 -0
- package/dist/prod/locales/lv-LV-MKWAOMCV.js +4 -0
- package/dist/prod/locales/mr-IN-5ZQ2KKKF.js +9 -0
- package/dist/prod/locales/my-MM-CQPBAZ3C.js +1 -0
- package/dist/prod/locales/nb-NO-LS7WR2LB.js +12 -0
- package/dist/prod/locales/nl-NL-ZFIUCB43.js +13 -0
- package/dist/prod/locales/nn-NO-C6VZYYA6.js +12 -0
- package/dist/prod/locales/oc-FR-HKE2Q4EB.js +4 -0
- package/dist/prod/locales/pa-IN-VRRGDGPO.js +4 -0
- package/dist/prod/locales/percentages-GNMENYOM.js +1 -0
- package/dist/prod/locales/pl-PL-IKDJKYZ6.js +12 -0
- package/dist/prod/locales/pt-BR-3SLYBSE5.js +10 -0
- package/dist/prod/locales/pt-PT-IYSDXHUK.js +12 -0
- package/dist/prod/locales/ro-RO-UJRVVPIC.js +12 -0
- package/dist/prod/locales/ru-RU-HZIM2YEB.js +10 -0
- package/dist/prod/locales/si-LK-2245BBTR.js +1 -0
- package/dist/prod/locales/sk-SK-3XJXPZL2.js +7 -0
- package/dist/prod/locales/sl-SI-ZG25RUOF.js +8 -0
- package/dist/prod/locales/sv-SE-AMO52AAG.js +12 -0
- package/dist/prod/locales/ta-IN-XBEQL7OQ.js +6 -0
- package/dist/prod/locales/th-TH-4B4GT7FX.js +12 -0
- package/dist/prod/locales/tr-TR-XTNMRUZW.js +4 -0
- package/dist/prod/locales/uk-UA-5VOP37JY.js +10 -0
- package/dist/prod/locales/uz-UZ-5K434UFF.js +1 -0
- package/dist/prod/locales/vi-VN-FWZOJUQD.js +7 -0
- package/dist/prod/locales/zh-CN-P75PHRVR.js +11 -0
- package/dist/prod/locales/zh-HK-5LPNYYDF.js +1 -0
- package/dist/prod/locales/zh-TW-GELCCBTD.js +13 -0
- package/dist/prod/minimap-controller.chunk.js +1 -0
- package/dist/prod/minimap-shared.chunk.js +1 -0
- package/dist/prod/minimap-worker.chunk.js +1 -0
- package/dist/types/common/src/colors.d.ts +23 -1
- package/dist/types/common/src/constants.d.ts +68 -7
- package/dist/types/common/src/keys.d.ts +6 -0
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/common/src/utils.d.ts +13 -44
- package/dist/types/element/src/Scene.d.ts +7 -5
- package/dist/types/element/src/align.d.ts +5 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrows/focus.d.ts +5 -2
- package/dist/types/element/src/binding.d.ts +90 -13
- package/dist/types/element/src/bounds.d.ts +28 -7
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +21 -5
- package/dist/types/element/src/comparisons.d.ts +8 -5
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- package/dist/types/element/src/distribute.d.ts +5 -2
- package/dist/types/element/src/dragElements.d.ts +34 -2
- package/dist/types/element/src/duplicate.d.ts +64 -3
- package/dist/types/element/src/elbowArrow.d.ts +5 -0
- package/dist/types/element/src/embeddable.d.ts +3 -2
- package/dist/types/element/src/flowchart.d.ts +9 -11
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +30 -11
- package/dist/types/element/src/groups.d.ts +10 -15
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +7 -1
- package/dist/types/element/src/linearElementEditor.d.ts +31 -11
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/mutateElement.d.ts +1 -1
- package/dist/types/element/src/newElement.d.ts +55 -3
- package/dist/types/element/src/renderElement.d.ts +31 -7
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +14 -4
- package/dist/types/element/src/selection.d.ts +7 -13
- package/dist/types/element/src/shape.d.ts +29 -1
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/sortElements.d.ts +10 -0
- package/dist/types/element/src/stickyNote.d.ts +191 -0
- package/dist/types/element/src/textElement.d.ts +22 -10
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +3 -2
- package/dist/types/element/src/transform.d.ts +31 -8
- package/dist/types/element/src/typeChecks.d.ts +29 -27
- package/dist/types/element/src/types.d.ts +43 -7
- package/dist/types/element/src/utils.d.ts +15 -4
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +98 -18
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +79 -204
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +309 -954
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +68 -12
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +34 -6
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -521
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +36 -8
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +34 -6
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +69 -13
- package/dist/types/excalidraw/actions/actionExport.d.ts +76 -20
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +132 -652
- package/dist/types/excalidraw/actions/actionGroup.d.ts +83 -27
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +89 -9
- package/dist/types/excalidraw/actions/actionLink.d.ts +35 -7
- package/dist/types/excalidraw/actions/actionMenu.d.ts +34 -6
- package/dist/types/excalidraw/actions/actionProperties.d.ts +106 -34
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +40 -12
- package/dist/types/excalidraw/actions/actionStyles.d.ts +31 -7
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +35 -7
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +38 -11
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +35 -7
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +206 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +35 -7
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +38 -11
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleShowHints.d.ts} +50 -19
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +35 -7
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +36 -8
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +35 -7
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/actions/index.d.ts +4 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +37 -12
- package/dist/types/excalidraw/charts/charts.bar.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +6 -5
- package/dist/types/excalidraw/charts/charts.line.d.ts +2 -1
- package/dist/types/excalidraw/charts/charts.radar.d.ts +2 -1
- package/dist/types/excalidraw/charts/index.d.ts +2 -1
- package/dist/types/excalidraw/components/Actions.d.ts +26 -13
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
- package/dist/types/excalidraw/components/App.clipboard.d.ts +59 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +335 -111
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
- package/dist/types/excalidraw/components/App.text.d.ts +194 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +133 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
- 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/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
- package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
- package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- 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 +4 -2
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +14 -1
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +16 -0
- package/dist/types/excalidraw/components/Toast.d.ts +12 -1
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
- package/dist/types/excalidraw/components/Tools.d.ts +151 -0
- package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +3 -2
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
- package/dist/types/excalidraw/components/icons.d.ts +8 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +10 -4
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/data/blob.d.ts +84 -28
- package/dist/types/excalidraw/data/index.d.ts +7 -7
- package/dist/types/excalidraw/data/json.d.ts +48 -20
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
- package/dist/types/excalidraw/history.d.ts +10 -4
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/index.d.ts +10 -4
- 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/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
- package/dist/types/excalidraw/scene/export.d.ts +344 -21
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +30 -5
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +617 -29
- package/dist/types/excalidraw/viewport.d.ts +308 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +13 -3
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- 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 +36 -0
- package/dist/types/math/src/constants.d.ts +0 -1
- package/dist/types/math/src/curve.d.ts +19 -12
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/pca.d.ts +79 -0
- package/dist/types/math/src/point.d.ts +1 -0
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/utils/src/index.d.ts +4 -3
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/history.ts +29 -4
- package/package.json +6 -7
- package/dist/dev/chunk-4JOINNOK.js.map +0 -7
- package/dist/dev/chunk-FZXBOFJP.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 +0 -798
- 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 +0 -798
- 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 +0 -798
- 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-LOOWOR4L.js +0 -12
- package/dist/prod/chunk-YKPWT25G.js +0 -4
- 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/en-CMP6EMR6.js +0 -1
- 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/components/FollowMode/FollowMode.d.ts +0 -10
- package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
- package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
- package/dist/types/excalidraw/components/shapes.d.ts +0 -263
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/export.d.ts +0 -35
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
- /package/dist/dev/data/{image-E6NJP7SZ.js.map → image-KXBHBTID.js.map} +0 -0
- /package/dist/dev/locales/{en-WD25OMHJ.js.map → en-56333ONP.js.map} +0 -0
- /package/dist/dev/locales/{percentages-ZRLRVMSI.js.map → percentages-7WBDDXTY.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -13,16 +13,214 @@ Please add the latest change on the top under the correct section.
|
|
|
13
13
|
|
|
14
14
|
## Unreleased
|
|
15
15
|
|
|
16
|
+
### Minimap, zoom menu and `ui.disabled` (2026-11-12) [#12605](https://github.com/excalidraw/excalidraw/pull/12605), [#12606](https://github.com/excalidraw/excalidraw/pull/12606)
|
|
17
|
+
|
|
18
|
+
- A toggleable minimap above the bottom-left canvas actions: drag its viewport (or press outside of it) to pan, wheel over it to zoom. Toggled from the footer button next to the zoom level, the Preferences menu, the command palette and the context menu; stored as `appState.minimapEnabled` (in the browser, not in exported files). Not shown on phones or in editors shorter than 500px.
|
|
19
|
+
- The zoom out / zoom in buttons are replaced by a zoom menu on the zoom level (zoom in and out, zoom to fit, zoom to selection, reset zoom), sharing the footer island with the minimap toggle. The zoom in, zoom out and reset zoom actions are unchanged.
|
|
20
|
+
- New `ui={{ disabled: { minimap: true } }}`, the opt-out form of the `ui` prop: the full default UI minus the listed controls. It removes the minimap and every way to toggle it.
|
|
21
|
+
- Without the minimap toggle (`ui.disabled.minimap`, or the reduced UI of `ui={{ enabled: { zoom: true } }}`), the zoom controls stay the zoom out / zoom level / zoom in buttons.
|
|
22
|
+
|
|
23
|
+
### Arrows aren't clipped to frames (2026-10-31) [#12516](https://github.com/excalidraw/excalidraw/pull/12516)
|
|
24
|
+
|
|
25
|
+
- Arrows and their labels are no longer clipped to the frame they belong to, so they can connect elements across and out of frames, and their part outside the frame can be selected. They still belong to their frame, so they're moved, copied and deleted with it, but only while one of their ends is in it (bound to an element in the frame, or inside it). An arrow whose ends both leave its frame (moved, bound to elements outside it, or with the elements it's bound to) leaves the frame.
|
|
26
|
+
- Exporting a frame (and `getElementsOverlappingFrame`) now includes other frames' arrows that reach into it, like other elements overlapping it.
|
|
27
|
+
- Moving a frame (dragging it, with the arrow keys or from the stats panel) keeps its arrows bound to the elements that don't move with it, instead of unbinding them.
|
|
28
|
+
|
|
29
|
+
### Flowchart navigation (2026-10-30) [#12502](https://github.com/excalidraw/excalidraw/pull/12502)
|
|
30
|
+
|
|
31
|
+
- Alt+arrow keys move the selection to the flowchart node that's visually next in that direction, whether or not it's linked to the selected node. They used to follow only the arrows bound to the pressed side, cycle through siblings on repeated presses, and fall back to any linked node when nothing was that way.
|
|
32
|
+
- The nearest node of the first non-empty tier wins: nodes in line (sharing the row for ←/→, the column for ↑/↓), then linked nodes whose center lies past the selected node's edge, then nodes whose center lies within the 45° cone of the pressed direction, then any node whose center lies past that edge. Near-ties go to linked nodes, then the node more level with the selected one's center, then reading order.
|
|
33
|
+
- Nodes connected by plain (non-elbow) arrows now count as part of the flowchart too, both for Alt+arrow navigation and for the nodes Ctrl+arrows keeps new nodes clear of.
|
|
34
|
+
|
|
35
|
+
### Export API: `exportScene` (2026-10-18) [#12347](https://github.com/excalidraw/excalidraw/pull/12347)
|
|
36
|
+
|
|
37
|
+
Breaking. `exportToCanvas`, `exportToBlob` and `exportToSvg` (in both `@excalidraw/excalidraw` and `@excalidraw/utils`) are replaced by a single `exportScene`, and every rendering option moved from `appState` into an explicit `config`.
|
|
38
|
+
|
|
39
|
+
- `exportScene({ type, data, config })` with `type` `"canvas"`, `"png"`, `"jpeg"` or `"svg"` resolves to an `HTMLCanvasElement`, a `Blob` or an `SVGSVGElement`. `exportToClipboard({ type: "png" | "svg" | "json", data, config })` stays. Types: `ExportSceneData`, `ExportSceneConfig`, `ExportSceneOptions`.
|
|
40
|
+
- `data` is `{ elements, appState?, files? }`, the shape of a `.excalidraw` file. Only the scene settings a file stores are read from `appState`: `viewBackgroundColor` as the default background, and the grid settings that `embedScene` embeds. Any other key is ignored, so passing a live `appState` can't affect the output.
|
|
41
|
+
- Migration:
|
|
42
|
+
|
|
43
|
+
| Before | Now |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| `exportToCanvas({ elements, appState, files, … })` | `exportScene({ type: "canvas", data: { elements, appState, files }, config })` |
|
|
46
|
+
| `exportToBlob({ …, mimeType, quality })` | `exportScene({ type: "png" \| "jpeg", …, config })` — `quality` is JPEG-only |
|
|
47
|
+
| `exportToSvg({ … })` | `exportScene({ type: "svg", … })` |
|
|
48
|
+
| `appState.exportBackground: false` | `config.canvasBackgroundColor: false` (a color string overrides the background; JPEG always gets one) |
|
|
49
|
+
| `appState.exportWithDarkMode` | `config.theme: "dark"` |
|
|
50
|
+
| `appState.exportScale` | `config.scale` (also multiplies a `maxWidthOrHeight` result) |
|
|
51
|
+
| `appState.exportEmbedScene` | `config.embedScene` (png, svg) |
|
|
52
|
+
| `appState.frameRendering` | `config.frames: { name?, outline?, clip? }` |
|
|
53
|
+
| `exportPadding` | `config.padding` (default 10, as before) |
|
|
54
|
+
| `getDimensions: (w, h) => ({ width, height, scale })` | `config.width`/`height`, `maxWidthOrHeight` or `widthOrHeight`, plus `config.scale` — a number, or `(width, height) => number` receiving the export size at scale 1 (padding included), e.g. to cap the output by a pixel budget |
|
|
55
|
+
| `maxWidthOrHeight`, `exportingFrame`, `renderEmbeddables`, `skipInliningFonts`, `reuseImages` | same names, in `config` |
|
|
56
|
+
|
|
57
|
+
- New sizing options: `width`/`height` (only one given: the other follows the content's aspect ratio), `widthOrHeight` (scales the longest side to exactly that size), `fit: "contain" | "none"` and `position: "center" | "topLeft"` within a `width`/`height` frame, and `x`/`y`/`origin` to export a region (cropped, with padding on all sides). The size options are mutually exclusive in the types, and `fit`, `position` and `x`/`y` only combine with `width`/`height`.
|
|
58
|
+
- `config.environment` for non-browser hosts and other windows, the same for every format: `createCanvas` (e.g. `node-canvas`), `createImage`, `createPath`, `document` (the one SVG is built in, e.g. `linkedom`), `textMetrics` and `loadFonts`.
|
|
59
|
+
- Canvas dimensions are rounded instead of truncated, so float noise no longer costs a pixel (a 20.5px frame-label band now rounds up), and are at least 1px (flat content with no padding used to produce an empty canvas that couldn't be encoded).
|
|
60
|
+
- In dark exports, frame names now use the editor's dark frame-name color (they were dark-filtered twice and came out lighter).
|
|
61
|
+
|
|
62
|
+
### Selection API (2026-10-10) [#12258](https://github.com/excalidraw/excalidraw/pull/12258)
|
|
63
|
+
|
|
64
|
+
- New `excalidrawAPI.selection`: `select(elements, opts?)`, `add(elements, opts?)`, `remove(elements, opts?)` and `clear(opts?)`, taking elements or their ids, one or many. Missing and deleted elements are skipped.
|
|
65
|
+
- It follows the editor's rules: an element is selected with its group, a frame and its children aren't selected at the same time, and locked elements are skipped. Text editing and cropping end, and the link popup of a lone selected element with a link shows.
|
|
66
|
+
- Options: `deep` selects the elements themselves rather than their groups, editing their group if they share one (as Ctrl/Cmd+click does); `includeLocked` selects locked elements too; `captureUpdate` records the change for undo as for `updateScene()` — by default it's recorded along with the next undoable change.
|
|
67
|
+
- Like `updateScene()`, the change applies on the next render: read it back through `onChange()` or `getAppState()` after that. It works in view mode too, where the selection shows without the transform handles.
|
|
68
|
+
|
|
69
|
+
### Wheel navigation (2026-09-13) [#12099](https://github.com/excalidraw/excalidraw/pull/12099)
|
|
70
|
+
|
|
71
|
+
- Scrolling while holding the wheel (middle) mouse button zooms the canvas around the pointer, the same as ctrl/cmd+wheel — a wheel-button pan can be zoomed one-handed, without reaching for a modifier.
|
|
72
|
+
- New `appState.inputDevice` preference (`"auto" | "mouse" | "trackpad"`, default `"auto"`, persisted in browser storage) selecting the wheel mappings. With `"trackpad"` a plain wheel pans; with `"mouse"` a plain wheel zooms. Ctrl/cmd+wheel (how a pinch is delivered) zooms with either device. Shift+wheel pans horizontally, and ctrl/cmd+shift+wheel pans vertically. The wheel-button zoom above is unaffected. `"auto"` is reserved for detecting the device from the wheel events and resolves to `"trackpad"` until that is implemented (`resolveInputDevice()`). Set it from the new "Input device" radio in the main menu's preferences submenu, also exposed as `MainMenu.DefaultItems.Preferences.InputDevice`.
|
|
73
|
+
|
|
74
|
+
### Sticky notes (2026-09-06) [#12064](https://github.com/excalidraw/excalidraw/pull/12064)
|
|
75
|
+
|
|
76
|
+
- New `stickynote` element type and toolbar tool (`N`): an always-filled, flat-rendered note whose label auto-fits — the font shrinks from the user's size down to a minimum, and only then does the note grow in height (it never shrinks below the height the user gave it). Click to place a 250×250 note, drag to size it (previewed at the dragged size, snapped to a font-aware minimum on release); text editing starts right away.
|
|
77
|
+
- Element model: the note carries `baseHeight` (the user's height; `height ≥ baseHeight`), its label carries `baseFontSize` (the user's font ceiling, `null`/absent on any other text) while `fontSize` holds the fitted size. Read a text element's user-facing size through `getBaseFontSize(text, elementsMap)`.
|
|
78
|
+
- Sticky notes are their own color domain: new `appState.currentItemStickynoteStrokeColor` (the note's text color) and `appState.currentItemStickynoteBackgroundColor` defaults, and new customizable top-pick slots `appState.colorTopPicks.stickyNoteStroke` / `stickyNoteBackground`. The stroke and background pickers, both eyedroppers and paste-styles resolve their target (regular / sticky / mixed) at execution time. A note and its label share one ink (the stroke picker reads "Text color" for notes): coloring the label while editing colors the note too, binding a colored text gives the note its color, and the creation-date footer always paints in that ink.
|
|
79
|
+
- Skeleton API: `convertToExcalidrawElements([{ type: "stickynote", x, y, label?: { text, fontSize? } }])` creates a note (and fitted label); see the element-skeleton docs.
|
|
80
|
+
- Tools can be dragged out of the toolbar: drag the sticky note button onto the canvas to drop a default-sized note where you release it, previewed translucently while dragging (nothing reaches the scene, history or collaborators until the drop; Escape cancels). The mechanism is generic — other tools can opt in.
|
|
81
|
+
- Toolbar: on desktop and tablet the image tool moved into the "More tools" menu (still `9`; `UIOptions.tools.image` keeps hiding it; the mobile toolbar keeps its image slot), and tool badges now show the letter shortcuts (`R`, `T`, `N`, …) instead of the numbers, which are no longer contiguous. The number keys keep working.
|
|
82
|
+
- Each note shows its creation date (`element.created`) in a footer band — "7 Sep", or "7 Sep 2025" once the year differs — on canvas and in SVG/PNG exports. The band is reserved in the note's layout, so the label never overlaps it; notes without a timestamp keep the band empty.
|
|
83
|
+
- Resize semantics: a note's corners resize proportionally by default and scale the label's font ceiling with the note (Shift frees them); its edges resize freely by default (Shift constrains them). Drag-creation is proportional by default too (Shift frees it) and never touches the font ceiling. Width-only gestures keep the base height, height gestures set it, aspect-locked multi-select and Stats group edits scale the ceiling; flips preserve everything. Arrows bound to a note follow it as it grows.
|
|
84
|
+
|
|
16
85
|
## Excalidraw API
|
|
17
86
|
|
|
18
|
-
###
|
|
87
|
+
### `setViewport` stops following a collaborator (2026-09-26) [#12184](https://github.com/excalidraw/excalidraw/pull/12184)
|
|
88
|
+
|
|
89
|
+
- `setViewport` now asks to stop following a collaborator whenever it navigates (`onUserFollow` with `action: "UNFOLLOW"`, if `userToFollow` is set), as a user's pan or zoom does. `setViewport(null)` (clearing a lock) and a target that doesn't resolve don't navigate, and leave following alone.
|
|
90
|
+
|
|
91
|
+
### `onDuplicate` can replace and veto duplicates (2026-09-18) [#12124](https://github.com/excalidraw/excalidraw/pull/12124)
|
|
92
|
+
|
|
93
|
+
- `props.onDuplicate` may now return new objects for the duplicated elements in every duplication path. Previously the editor kept using the objects it created, so on paste (and library insert) the frame assignment and bound text redraw went to objects that were no longer in the scene, and alt-drag dragged an element that wasn't in the scene. The returned changes are now merged into the editor's duplicates, so they're part of the duplication's own undo entry and durable increment (no follow-up `updateScene` needed).
|
|
94
|
+
- When pasting or inserting onto a frame, the duplicates passed to `onDuplicate` already have their `frameId` set (and are ordered under the frame).
|
|
95
|
+
- Omitting a duplicate from the returned array (or returning it as deleted) now reliably prevents that element from being duplicated — previously pasting over a frame brought it back, and alt-drag broke. References to it from the remaining duplicates (bindings, `boundElements`, `frameId`) are cleared, and a bound text isn't duplicated without its container. If no duplicate remains, the duplication is cancelled and the returned elements are ignored: paste and the duplicate action do nothing, and alt-drag moves the original elements instead. When only some duplicates are vetoed during alt-drag, their originals stay where they were.
|
|
96
|
+
- `onDuplicate` may return `false` to prevent the duplication as a whole (same as omitting every duplicate, without having to find them).
|
|
97
|
+
- `onDuplicate` receives a third argument with lookups covering just the elements taking part in the duplication, so you don't have to derive them by scanning the scene: `{ duplicateElements, originalElements, origIdToDuplicateId, duplicateIdToOrigId }` — the duplicates by id, the elements they were made from by id, and their ids mapped in both directions (`duplicateIdToOrigId` to look up a duplicate's original while modifying it, `origIdToDuplicateId` e.g. for remapping element ids you keep in `customData`). On paste and library insert the originals are the inserted elements, which aren't part of the scene. The maps are read-only.
|
|
98
|
+
|
|
99
|
+
### Host-controlled active tool (2026-07-14) [#11665](https://github.com/excalidraw/excalidraw/pull/11665)
|
|
100
|
+
|
|
101
|
+
- 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.
|
|
102
|
+
|
|
103
|
+
### User-driven tools while non-interactive (2026-07-14) [#11665](https://github.com/excalidraw/excalidraw/pull/11665)
|
|
104
|
+
|
|
105
|
+
- 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).
|
|
106
|
+
|
|
107
|
+
- 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.
|
|
108
|
+
|
|
109
|
+
### Interaction and UI control (2026-07-05) [#11605](https://github.com/excalidraw/excalidraw/pull/11605)
|
|
110
|
+
|
|
111
|
+
- 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.
|
|
112
|
+
|
|
113
|
+
- 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.
|
|
114
|
+
|
|
115
|
+
### Tool system & toolbar rework [#11649](https://github.com/excalidraw/excalidraw/pull/11649)
|
|
116
|
+
|
|
117
|
+
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.
|
|
118
|
+
|
|
119
|
+
#### Breaking changes
|
|
120
|
+
|
|
121
|
+
- `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.
|
|
122
|
+
|
|
123
|
+
- 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:
|
|
124
|
+
|
|
125
|
+
- 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.
|
|
126
|
+
- `<Sidebar.Trigger>` (including the default Library trigger) renders a `<button>` instead of a `<label>` + checkbox.
|
|
127
|
+
|
|
128
|
+
- Removed internal actions superseded by the `setActiveTool` funnel and the tool registry: `toggleHandTool`, `toggleEraserTool`, `toggleLassoTool`, `setFrameAsActiveTool`, `setEmbeddableAsActiveTool` (these `ActionName`s no longer exist).
|
|
129
|
+
|
|
130
|
+
#### Behavior changes
|
|
131
|
+
|
|
132
|
+
- 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.
|
|
133
|
+
- Clicking the active selection tool switches to lasso on all platforms (previously this only worked on iOS due to a controlled-radio quirk).
|
|
134
|
+
- Tool letter shortcuts are CapsLock-insensitive, `Shift+letter` never switches tools, and `Ctrl+E` no longer toggles the eraser.
|
|
135
|
+
- Switching tools no longer creates undo-history entries.
|
|
136
|
+
- 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.
|
|
137
|
+
- Pen mode now activates on the first pen tap on any tool button (previously deferred and occasionally dropped).
|
|
138
|
+
|
|
139
|
+
#### Fixes
|
|
140
|
+
|
|
141
|
+
- Mobile toolbar popovers: the active option stays highlighted after tapping it (the highlight was being suppressed by sticky touch-hover).
|
|
142
|
+
- The active-tool highlight can no longer desync from the actually active tool (controlled-radio DOM desync).
|
|
143
|
+
|
|
144
|
+
### Viewport control & scroll/zoom locking (2026-07-03) [#11554](https://github.com/excalidraw/excalidraw/pull/11554)
|
|
145
|
+
|
|
146
|
+
`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.
|
|
147
|
+
|
|
148
|
+
#### Breaking changes
|
|
149
|
+
|
|
150
|
+
- `ExcalidrawAPI.scrollToContent(target?, opts?)` was replaced with `ExcalidrawAPI.setViewport(opts | null)`.
|
|
151
|
+
|
|
152
|
+
```tsx
|
|
153
|
+
// before
|
|
154
|
+
excalidrawAPI.scrollToContent(element, {
|
|
155
|
+
fitToViewport: true,
|
|
156
|
+
animate: true,
|
|
157
|
+
});
|
|
158
|
+
// after
|
|
159
|
+
excalidrawAPI.setViewport({ target: element, fit: "contain" });
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
- `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.
|
|
163
|
+
- `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.
|
|
164
|
+
- `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.
|
|
165
|
+
- `canvasOffsets` was replaced by `offsets`, which also accepts UI-derived offsets (see Features below).
|
|
166
|
+
- `viewportZoomFactor`, `minZoom`, and `maxZoom` are no longer supported.
|
|
167
|
+
|
|
168
|
+
- `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.
|
|
169
|
+
|
|
170
|
+
#### Features
|
|
171
|
+
|
|
172
|
+
- `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.
|
|
173
|
+
|
|
174
|
+
- `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.
|
|
175
|
+
|
|
176
|
+
- 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)
|
|
177
|
+
|
|
178
|
+
- 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`.
|
|
179
|
+
|
|
180
|
+
- 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.
|
|
181
|
+
|
|
182
|
+
### Other Breaking changes
|
|
183
|
+
|
|
184
|
+
- `convertToExcalidrawElements()` places bound arrows where their bindings put them, as the editor does whenever it updates their bindings (e.g. on undo/redo, or moving what they're bound to), instead of keeping their ends exactly where given. An end given just short of what it's bound to is extended onto it, and one beyond its binding area is unbound. Shapes created from an arrow's `start`/`end` are placed along its end segment. [#12425](https://github.com/excalidraw/excalidraw/pull/12425)
|
|
185
|
+
|
|
186
|
+
- `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:
|
|
187
|
+
|
|
188
|
+
```tsx
|
|
189
|
+
import { useExcalidrawStateValue } from "@excalidraw/excalidraw";
|
|
190
|
+
|
|
191
|
+
const ZoomReadout = () => {
|
|
192
|
+
// `undefined` on initial render, before the editor API initializes
|
|
193
|
+
const zoomValue = useExcalidrawStateValue(
|
|
194
|
+
(appState) => appState.zoom.value,
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
if (zoomValue == null) {
|
|
198
|
+
return null;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return <div>{(zoomValue * 100).toFixed(0)}%</div>;
|
|
202
|
+
};
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
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.
|
|
206
|
+
|
|
207
|
+
- 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.
|
|
208
|
+
|
|
209
|
+
- `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.
|
|
210
|
+
- `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}`.
|
|
211
|
+
- `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).
|
|
212
|
+
- `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.
|
|
19
213
|
|
|
20
214
|
- 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` & `
|
|
215
|
+
- `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
216
|
|
|
23
|
-
### Features
|
|
217
|
+
### Other Features
|
|
218
|
+
|
|
219
|
+
- Mermaid diagrams (in the TTD dialog and on paste) are converted with `@excalidraw/mermaid-to-excalidraw` v3, which lays them out with [Pele](https://pele.run) instead of Mermaid, no longer bundled. Layouts differ from before, `swimlane-beta` diagrams are supported, and Gantt charts, quadrant charts and timelines are converted to elements instead of an image. Each diagram type's code is loaded the first time one is converted. Flowchart edges are elbow arrows, unless the definition sets its own curve (in its front matter or `%%{init}%%`), and class diagram namespaces are drawn as boxes like flowchart subgraphs. [#12480](https://github.com/excalidraw/excalidraw/pull/12480), [#12481](https://github.com/excalidraw/excalidraw/pull/12481), [#12535](https://github.com/excalidraw/excalidraw/pull/12535)
|
|
220
|
+
|
|
221
|
+
- `label.labelPosition` (0–1) of skeleton arrows places their label along the arrow, instead of halfway. [#12425](https://github.com/excalidraw/excalidraw/pull/12425)
|
|
24
222
|
|
|
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
|
|
223
|
+
- 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
224
|
|
|
27
225
|
- 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
226
|
|
|
@@ -36,7 +234,10 @@ Please add the latest change on the top under the correct section.
|
|
|
36
234
|
});
|
|
37
235
|
|
|
38
236
|
api.onEvent("editor:initialize").then((readyApi) => {
|
|
39
|
-
readyApi.
|
|
237
|
+
readyApi.setViewport({
|
|
238
|
+
target: readyApi.getSceneElements(),
|
|
239
|
+
animation: false,
|
|
240
|
+
});
|
|
40
241
|
});
|
|
41
242
|
}}
|
|
42
243
|
/>
|
|
@@ -46,7 +247,7 @@ Please add the latest change on the top under the correct section.
|
|
|
46
247
|
|
|
47
248
|
- Also added `"editor:unmount"` lifecycle event, only accessible via `api.onEvent("editor:unmount")`.
|
|
48
249
|
|
|
49
|
-
- Exported `<ExcalidrawAPIProvider/>`, `useExcalidrawAPI()`, `
|
|
250
|
+
- 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
251
|
|
|
51
252
|
```tsx
|
|
52
253
|
<ExcalidrawAPIProvider>
|
|
@@ -55,12 +256,12 @@ Please add the latest change on the top under the correct section.
|
|
|
55
256
|
</ExcalidrawAPIProvider>;
|
|
56
257
|
|
|
57
258
|
function Logger() {
|
|
58
|
-
// initially null before the ExcalidrawAPIProvider initializes
|
|
259
|
+
// initially null before the ExcalidrawAPIProvider initializes after
|
|
59
260
|
// <Excalidraw/> renders
|
|
60
261
|
// When <Excalidraw/> unmounts, is reset back to null
|
|
61
262
|
const api = useExcalidrawAPI();
|
|
62
263
|
|
|
63
|
-
|
|
264
|
+
useExcalidrawStateValue("viewModeEnabled", (viewModeEnabled) => {
|
|
64
265
|
console.log("view mode changed:", viewModeEnabled);
|
|
65
266
|
});
|
|
66
267
|
|
|
@@ -94,6 +295,12 @@ Please add the latest change on the top under the correct section.
|
|
|
94
295
|
|
|
95
296
|
## Excalidraw Library
|
|
96
297
|
|
|
298
|
+
### Breaking changes
|
|
299
|
+
|
|
300
|
+
- `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).
|
|
301
|
+
|
|
302
|
+
- `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).
|
|
303
|
+
|
|
97
304
|
## 0.18.0 (2025-03-11)
|
|
98
305
|
|
|
99
306
|
### Highlights
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
// locales/en.json
|
|
2
2
|
var labels = {
|
|
3
|
+
signUp: "Sign up",
|
|
4
|
+
signIn: "Sign in",
|
|
5
|
+
upgrade: "Upgrade",
|
|
6
|
+
tryExcalidrawPlus: "Try Excalidraw+",
|
|
7
|
+
plusFreeTrial: "14-day free trial",
|
|
3
8
|
paste: "Paste",
|
|
4
9
|
pasteAsPlaintext: "Paste as plaintext",
|
|
5
10
|
pasteCharts: "Paste charts",
|
|
@@ -25,6 +30,7 @@ var labels = {
|
|
|
25
30
|
copyStyles: "Copy styles",
|
|
26
31
|
pasteStyles: "Paste styles",
|
|
27
32
|
stroke: "Stroke",
|
|
33
|
+
textColor: "Text color",
|
|
28
34
|
changeStroke: "Change stroke color",
|
|
29
35
|
background: "Background",
|
|
30
36
|
changeBackground: "Change background color",
|
|
@@ -35,6 +41,9 @@ var labels = {
|
|
|
35
41
|
strokeStyle_dashed: "Dashed",
|
|
36
42
|
strokeStyle_dotted: "Dotted",
|
|
37
43
|
sloppiness: "Sloppiness",
|
|
44
|
+
pressure: "Pressure",
|
|
45
|
+
pressure_constant: "Constant",
|
|
46
|
+
pressure_variable: "Variable",
|
|
38
47
|
opacity: "Opacity",
|
|
39
48
|
textAlign: "Text align",
|
|
40
49
|
edges: "Edges",
|
|
@@ -106,7 +115,10 @@ var labels = {
|
|
|
106
115
|
group: "Group selection",
|
|
107
116
|
ungroup: "Ungroup selection",
|
|
108
117
|
collaborators: "Collaborators",
|
|
118
|
+
you: "You",
|
|
109
119
|
toggleGrid: "Toggle grid",
|
|
120
|
+
minimap: "Minimap",
|
|
121
|
+
zoom: "Zoom",
|
|
110
122
|
addToLibrary: "Add to library",
|
|
111
123
|
removeFromLibrary: "Remove from library",
|
|
112
124
|
libraryLoadingMessage: "Loading library\u2026",
|
|
@@ -176,11 +188,14 @@ var labels = {
|
|
|
176
188
|
zoomToFit: "Zoom to fit all elements",
|
|
177
189
|
installPWA: "Install Excalidraw locally (PWA)",
|
|
178
190
|
autoResize: "Enable text auto-resizing",
|
|
191
|
+
toggleAutoResize: "Toggle text auto-resizing",
|
|
179
192
|
imageCropping: "Image cropping",
|
|
180
193
|
unCroppedDimension: "Uncropped dimension",
|
|
181
194
|
copyElementLink: "Copy link to object",
|
|
182
195
|
linkToElement: "Link to object",
|
|
183
196
|
wrapSelectionInFrame: "Wrap selection in frame",
|
|
197
|
+
removeFrame: "Remove frame",
|
|
198
|
+
toggleWrap: "Wrap or unwrap selection",
|
|
184
199
|
tab: "Tab",
|
|
185
200
|
shapeSwitch: "Switch shape",
|
|
186
201
|
preferences: "Preferences",
|
|
@@ -189,7 +204,11 @@ var labels = {
|
|
|
189
204
|
boxSelectionContain: "Wrap",
|
|
190
205
|
boxSelectionOverlap: "Overlap",
|
|
191
206
|
arrowBinding: "Arrow binding",
|
|
192
|
-
midpointSnapping: "Snap to midpoints"
|
|
207
|
+
midpointSnapping: "Snap to midpoints",
|
|
208
|
+
showHints: "Toolbar hints",
|
|
209
|
+
inputDevice: "Input",
|
|
210
|
+
inputDeviceTrackpad: "Trackpad",
|
|
211
|
+
inputDeviceMouse: "Mouse"
|
|
193
212
|
};
|
|
194
213
|
var elementLink = {
|
|
195
214
|
title: "Link to object",
|
|
@@ -233,12 +252,14 @@ var buttons = {
|
|
|
233
252
|
zoomIn: "Zoom in",
|
|
234
253
|
zoomOut: "Zoom out",
|
|
235
254
|
resetZoom: "Reset zoom",
|
|
255
|
+
zoomToFit: "Zoom to fit",
|
|
236
256
|
menu: "Menu",
|
|
237
257
|
done: "Done",
|
|
238
258
|
edit: "Edit",
|
|
239
259
|
undo: "Undo",
|
|
240
260
|
redo: "Redo",
|
|
241
261
|
resetLibrary: "Reset library",
|
|
262
|
+
reset: "Reset",
|
|
242
263
|
createNewRoom: "Create new room",
|
|
243
264
|
fullScreen: "Full screen",
|
|
244
265
|
darkMode: "Dark mode",
|
|
@@ -326,13 +347,20 @@ var toolBar = {
|
|
|
326
347
|
eraser: "Eraser",
|
|
327
348
|
frame: "Frame tool",
|
|
328
349
|
magicframe: "Wireframe to code",
|
|
350
|
+
stickynote: "Sticky note",
|
|
329
351
|
embeddable: "Web Embed",
|
|
330
352
|
laser: "Laser pointer",
|
|
353
|
+
autoshape: "Draw to shape",
|
|
354
|
+
bucketfill: "Bucket fill",
|
|
331
355
|
hand: "Hand (panning tool)",
|
|
332
356
|
extraTools: "More tools",
|
|
333
357
|
mermaidToExcalidraw: "Mermaid to Excalidraw",
|
|
334
358
|
convertElementType: "Toggle shape type"
|
|
335
359
|
};
|
|
360
|
+
var bucketfill = {
|
|
361
|
+
noRegion: "Couldn't find an enclosed region to fill here.",
|
|
362
|
+
tooComplex: "This region is too complex to fill."
|
|
363
|
+
};
|
|
336
364
|
var element = {
|
|
337
365
|
rectangle: "Rectangle",
|
|
338
366
|
diamond: "Diamond",
|
|
@@ -345,6 +373,7 @@ var element = {
|
|
|
345
373
|
group: "Group",
|
|
346
374
|
frame: "Frame",
|
|
347
375
|
magicframe: "Wireframe to code",
|
|
376
|
+
stickynote: "Sticky note",
|
|
348
377
|
embeddable: "Web Embed",
|
|
349
378
|
selection: "Selection",
|
|
350
379
|
iframe: "IFrame"
|
|
@@ -363,13 +392,18 @@ var hints = {
|
|
|
363
392
|
freeDraw: "Click and drag, release when you're finished",
|
|
364
393
|
text: "Tip: you can also add text by double-clicking anywhere with the selection tool",
|
|
365
394
|
embeddable: "Click-drag to create a website embed",
|
|
395
|
+
stickynote: "Click to place a note, or drag to size it",
|
|
396
|
+
autoshape: "Draw rectangles, circles, diamonds, lines and arrows",
|
|
366
397
|
text_selected: "Double-click or press {{shortcut}} to edit text",
|
|
367
398
|
text_editing: "Press {{shortcut_1}} or {{shortcut_2}} to finish editing",
|
|
399
|
+
toggleTextAutoResize: "{{shortcut}} to toggle text auto-resize",
|
|
368
400
|
linearElementMulti: "Click on last point or press {{shortcut_1}} or {{shortcut_2}} to finish",
|
|
369
401
|
lockAngle: "You can constrain angle by holding {{shortcut}}",
|
|
370
402
|
resize: "You can constrain proportions by holding {{shortcut_1}} while resizing,\nhold {{shortcut_2}} to resize from the center",
|
|
371
403
|
resizeImage: "You can resize freely by holding {{shortcut_1}},\nhold {{shortcut_2}} to resize from the center",
|
|
404
|
+
resizeStickyNote: "hold {{shortcut_1}} to resize freely, {{shortcut_2}} to resize from the center",
|
|
372
405
|
rotate: "You can constrain angles by holding {{shortcut}} while rotating",
|
|
406
|
+
toggleArrowhead: "Double-click to toggle the arrowhead",
|
|
373
407
|
lineEditor_info: "Hold {{shortcut_1}} and Double-click or press {{shortcut_2}} to edit points",
|
|
374
408
|
lineEditor_line_info: "Double-click or press {{shortcut}} to edit points",
|
|
375
409
|
lineEditor_pointSelected: "Press {{shortcut_1}} to remove point(s),\n{{shortcut_2}} to duplicate, or drag to move",
|
|
@@ -378,6 +412,7 @@ var hints = {
|
|
|
378
412
|
bindTextToElement: "{{shortcut}} to add text",
|
|
379
413
|
createFlowchart: "{{shortcut}} to create a flowchart",
|
|
380
414
|
deepBoxSelect: "Hold {{shortcut}} to deep select, and to prevent dragging",
|
|
415
|
+
cycleSelection: "{{shortcut}}-click to cycle selection, or drag to duplicate",
|
|
381
416
|
eraserRevert: "Hold {{shortcut}} to revert the elements marked for deletion",
|
|
382
417
|
firefox_clipboard_write: 'This feature can likely be enabled by setting the "dom.events.asyncClipboard.clipboardItem" flag to "true". To change the browser flags in Firefox, visit the "about:config" page.',
|
|
383
418
|
disableSnapping: "Hold {{shortcut}} to disable snapping",
|
|
@@ -555,7 +590,10 @@ var toast = {
|
|
|
555
590
|
fileSavedToFilename: "Saved to {filename}",
|
|
556
591
|
canvas: "canvas",
|
|
557
592
|
selection: "selection",
|
|
558
|
-
|
|
593
|
+
pastedAsSingleText: "Pasted as a single text element.",
|
|
594
|
+
splitIntoTextElements: "Split into separate text elements",
|
|
595
|
+
pastedAsTextElements: "Pasted as separate text elements.",
|
|
596
|
+
pasteAsSingleText: "Paste as a single text element",
|
|
559
597
|
unableToEmbed: "Embedding this url is currently not allowed. Raise an issue on GitHub to request the url whitelisted",
|
|
560
598
|
unrecognizedLinkFormat: "The link you embedded does not match the expected format. Please try to paste the 'embed' string provided by the source site",
|
|
561
599
|
elementLinkCopied: "Link copied to clipboard"
|
|
@@ -598,7 +636,11 @@ var colorPicker = {
|
|
|
598
636
|
colors: "Colors",
|
|
599
637
|
shades: "Shades",
|
|
600
638
|
hexCode: "Hex code",
|
|
601
|
-
noShades: "No shades available for this color"
|
|
639
|
+
noShades: "No shades available for this color",
|
|
640
|
+
invalidColor: "Not a valid color",
|
|
641
|
+
invalidHexLength: "Hex code must be 3, 4, 6, or 8 characters",
|
|
642
|
+
topPicksTip: "Tip: drag any color onto your top picks to pin it",
|
|
643
|
+
resetTopPicks: "Reset to default top picks"
|
|
602
644
|
};
|
|
603
645
|
var overwriteConfirm = {
|
|
604
646
|
action: {
|
|
@@ -631,15 +673,27 @@ var overwriteConfirm = {
|
|
|
631
673
|
}
|
|
632
674
|
}
|
|
633
675
|
};
|
|
676
|
+
var fileDrop = {
|
|
677
|
+
replace: "Drop to replace content",
|
|
678
|
+
add: "Drop to add to canvas",
|
|
679
|
+
importLibrary: "Drop to import library",
|
|
680
|
+
replaceHint: "Hold <shift>Shift</shift> to keep existing content",
|
|
681
|
+
keepHint: "Your existing content will be kept",
|
|
682
|
+
libraryHint: "Library files will append",
|
|
683
|
+
replacedToast: "Content replaced. {{shortcut}} to undo"
|
|
684
|
+
};
|
|
634
685
|
var mermaid = {
|
|
635
686
|
title: "Mermaid to Excalidraw",
|
|
636
687
|
button: "Insert",
|
|
637
|
-
description: "
|
|
688
|
+
description: "<flowchartLink>Flowcharts</flowchartLink>, <sequenceLink>Sequence</sequenceLink>, <classLink>Class</classLink>, <stateLink>State</stateLink> and <erdLink>Entity Relationship</erdLink> diagrams, <ganttLink>Gantt charts</ganttLink>, <quadrantLink>Quadrant charts</quadrantLink> and <timelineLink>Timelines</timelineLink> are converted to Excalidraw elements. Other types are inserted as an image.",
|
|
638
689
|
syntax: "Mermaid Syntax",
|
|
639
690
|
preview: "Preview",
|
|
640
691
|
label: "Mermaid",
|
|
641
|
-
inputPlaceholder: "Write Mermaid diagram
|
|
642
|
-
autoFixAvailable: "Auto-fix is available"
|
|
692
|
+
inputPlaceholder: "Write Mermaid diagram definition here...",
|
|
693
|
+
autoFixAvailable: "Auto-fix is available",
|
|
694
|
+
loadError: "Couldn't load Mermaid. Check your internet connection and try again.",
|
|
695
|
+
loadErrorReload: "Couldn't load Mermaid. Reload the page to try again.",
|
|
696
|
+
reload: "Reload"
|
|
643
697
|
};
|
|
644
698
|
var ttd = {
|
|
645
699
|
error: "Error!"
|
|
@@ -696,7 +750,9 @@ var fontList = {
|
|
|
696
750
|
},
|
|
697
751
|
sceneFonts: "In this scene",
|
|
698
752
|
availableFonts: "Available fonts",
|
|
699
|
-
empty: "No fonts found"
|
|
753
|
+
empty: "No fonts found",
|
|
754
|
+
topPicksTip: "Tip: drag any font onto your top picks to pin it",
|
|
755
|
+
resetTopPicks: "Reset to default top picks"
|
|
700
756
|
};
|
|
701
757
|
var userList = {
|
|
702
758
|
empty: "No users found",
|
|
@@ -744,6 +800,7 @@ var en_default = {
|
|
|
744
800
|
alerts,
|
|
745
801
|
errors,
|
|
746
802
|
toolBar,
|
|
803
|
+
bucketfill,
|
|
747
804
|
element,
|
|
748
805
|
headings,
|
|
749
806
|
hints,
|
|
@@ -767,6 +824,7 @@ var en_default = {
|
|
|
767
824
|
welcomeScreen,
|
|
768
825
|
colorPicker,
|
|
769
826
|
overwriteConfirm,
|
|
827
|
+
fileDrop,
|
|
770
828
|
mermaid,
|
|
771
829
|
ttd,
|
|
772
830
|
chat,
|
|
@@ -786,6 +844,7 @@ export {
|
|
|
786
844
|
alerts,
|
|
787
845
|
errors,
|
|
788
846
|
toolBar,
|
|
847
|
+
bucketfill,
|
|
789
848
|
element,
|
|
790
849
|
headings,
|
|
791
850
|
hints,
|
|
@@ -809,6 +868,7 @@ export {
|
|
|
809
868
|
welcomeScreen,
|
|
810
869
|
colorPicker,
|
|
811
870
|
overwriteConfirm,
|
|
871
|
+
fileDrop,
|
|
812
872
|
mermaid,
|
|
813
873
|
ttd,
|
|
814
874
|
chat,
|
|
@@ -819,4 +879,4 @@ export {
|
|
|
819
879
|
keys,
|
|
820
880
|
en_default
|
|
821
881
|
};
|
|
822
|
-
//# sourceMappingURL=chunk-
|
|
882
|
+
//# sourceMappingURL=chunk-2JLIBETV.js.map
|