@excalidraw/excalidraw 0.18.0-c141960 → 0.18.0-c158187
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/dist/dev/{chunk-SJTAY27F.js → chunk-5A4X24JB.js} +135 -107
- package/dist/dev/chunk-5A4X24JB.js.map +7 -0
- package/dist/dev/{chunk-FB2NA5UG.js → chunk-6JJSWC4C.js} +1 -1
- package/dist/dev/{chunk-FB2NA5UG.js.map → chunk-6JJSWC4C.js.map} +2 -2
- package/dist/dev/{chunk-PMQWN2AA.js → chunk-DJHLEOOZ.js} +13 -13
- package/dist/dev/{chunk-PMQWN2AA.js.map → chunk-DJHLEOOZ.js.map} +1 -1
- package/dist/dev/{chunk-AWYOLLYX.js → chunk-OCFTI2BU.js} +2 -2
- package/dist/dev/{chunk-AWYOLLYX.js.map → chunk-OCFTI2BU.js.map} +1 -1
- package/dist/dev/data/{image-S2GFZH7W.js → image-Q6JHR7OE.js} +2 -2
- package/dist/dev/index.css +1 -3
- package/dist/dev/index.css.map +2 -2
- package/dist/dev/index.js +796 -1307
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{ar-SA-USQAA427.js → ar-SA-JK5MQ7TT.js} +2 -1
- package/dist/dev/locales/{ar-SA-USQAA427.js.map → ar-SA-JK5MQ7TT.js.map} +2 -2
- package/dist/dev/locales/{az-AZ-CVQRXULV.js → az-AZ-2PAD62G4.js} +2 -1
- package/dist/dev/locales/{az-AZ-CVQRXULV.js.map → az-AZ-2PAD62G4.js.map} +2 -2
- package/dist/dev/locales/{bg-BG-E4I2JVOQ.js → bg-BG-HUKVYCRK.js} +2 -1
- package/dist/dev/locales/{bg-BG-E4I2JVOQ.js.map → bg-BG-HUKVYCRK.js.map} +2 -2
- package/dist/dev/locales/{bn-BD-O55ROP2R.js → bn-BD-V2CQI46P.js} +2 -1
- package/dist/dev/locales/{bn-BD-O55ROP2R.js.map → bn-BD-V2CQI46P.js.map} +2 -2
- package/dist/dev/locales/{bn-IN-OL7OUKTP.js → bn-IN-MBEO4C3J.js} +2 -1
- package/dist/dev/locales/{bn-IN-OL7OUKTP.js.map → bn-IN-MBEO4C3J.js.map} +2 -2
- package/dist/dev/locales/{ca-ES-73KY52DM.js → ca-ES-KWEKW4C3.js} +2 -1
- package/dist/dev/locales/{ca-ES-73KY52DM.js.map → ca-ES-KWEKW4C3.js.map} +2 -2
- package/dist/dev/locales/{cs-CZ-2YGHPQ24.js → cs-CZ-W5AHZB5H.js} +2 -1
- package/dist/dev/locales/{cs-CZ-2YGHPQ24.js.map → cs-CZ-W5AHZB5H.js.map} +2 -2
- package/dist/dev/locales/{da-DK-OEIZIPJU.js → da-DK-ITTM6YM4.js} +2 -1
- package/dist/dev/locales/{da-DK-OEIZIPJU.js.map → da-DK-ITTM6YM4.js.map} +2 -2
- package/dist/dev/locales/{de-CH-4GJTW23D.js → de-CH-OAWPDQFJ.js} +2 -1
- package/dist/dev/locales/{de-CH-4GJTW23D.js.map → de-CH-OAWPDQFJ.js.map} +2 -2
- package/dist/dev/locales/{de-DE-YRH6WMM5.js → de-DE-ZRDYEPMS.js} +8 -7
- package/dist/dev/locales/de-DE-ZRDYEPMS.js.map +7 -0
- package/dist/dev/locales/{el-GR-W7S64QNM.js → el-GR-QXASZLPE.js} +2 -1
- package/dist/dev/locales/el-GR-QXASZLPE.js.map +7 -0
- package/dist/dev/locales/{en-ZO6QSABV.js → en-MLZIHOCR.js} +2 -2
- package/dist/dev/locales/{es-ES-7JEN5PTZ.js → es-ES-VLQBB7FJ.js} +4 -3
- package/dist/dev/locales/es-ES-VLQBB7FJ.js.map +7 -0
- package/dist/dev/locales/{eu-ES-HQNHU6VR.js → eu-ES-TF2DGTZU.js} +2 -1
- package/dist/dev/locales/{eu-ES-HQNHU6VR.js.map → eu-ES-TF2DGTZU.js.map} +2 -2
- package/dist/dev/locales/{fa-IR-IN6XOPA6.js → fa-IR-ITKFQ7QV.js} +2 -1
- package/dist/dev/locales/{fa-IR-IN6XOPA6.js.map → fa-IR-ITKFQ7QV.js.map} +2 -2
- package/dist/dev/locales/{fi-FI-5BAAYJDZ.js → fi-FI-UWZRVXFI.js} +2 -1
- package/dist/dev/locales/{fi-FI-5BAAYJDZ.js.map → fi-FI-UWZRVXFI.js.map} +2 -2
- package/dist/dev/locales/{fr-FR-KCXBY2R4.js → fr-FR-A72LKGCO.js} +2 -1
- package/dist/dev/locales/{fr-FR-KCXBY2R4.js.map → fr-FR-A72LKGCO.js.map} +2 -2
- package/dist/dev/locales/{gl-ES-5OPGWS6N.js → gl-ES-2QCVIBFP.js} +2 -1
- package/dist/dev/locales/{gl-ES-5OPGWS6N.js.map → gl-ES-2QCVIBFP.js.map} +2 -2
- package/dist/dev/locales/{he-IL-3A6ZWK6L.js → he-IL-WJNUHU26.js} +2 -1
- package/dist/dev/locales/{he-IL-3A6ZWK6L.js.map → he-IL-WJNUHU26.js.map} +2 -2
- package/dist/dev/locales/{hi-IN-HZTBH6EG.js → hi-IN-XGMO235V.js} +2 -1
- package/dist/dev/locales/{hi-IN-HZTBH6EG.js.map → hi-IN-XGMO235V.js.map} +2 -2
- package/dist/dev/locales/{hu-HU-52IRZEAZ.js → hu-HU-37FDQFIS.js} +2 -1
- package/dist/dev/locales/{hu-HU-52IRZEAZ.js.map → hu-HU-37FDQFIS.js.map} +2 -2
- package/dist/dev/locales/{id-ID-W6HBGXTS.js → id-ID-EJIDCO4E.js} +2 -1
- package/dist/dev/locales/{id-ID-W6HBGXTS.js.map → id-ID-EJIDCO4E.js.map} +2 -2
- package/dist/dev/locales/{it-IT-AV75ICYT.js → it-IT-X34PIOJ2.js} +49 -48
- package/dist/dev/locales/it-IT-X34PIOJ2.js.map +7 -0
- package/dist/dev/locales/{ja-JP-SS4G3ZXF.js → ja-JP-37FC23PR.js} +28 -27
- package/dist/dev/locales/ja-JP-37FC23PR.js.map +7 -0
- package/dist/dev/locales/{kaa-Y5BBB3IW.js → kaa-7ZYDFVKA.js} +2 -1
- package/dist/dev/locales/{kaa-Y5BBB3IW.js.map → kaa-7ZYDFVKA.js.map} +2 -2
- package/dist/dev/locales/{kab-KAB-KDVZQXBT.js → kab-KAB-MILWXBA6.js} +2 -1
- package/dist/dev/locales/{kab-KAB-KDVZQXBT.js.map → kab-KAB-MILWXBA6.js.map} +2 -2
- package/dist/dev/locales/{kk-KZ-762YODLJ.js → kk-KZ-7BWTPIAV.js} +2 -1
- package/dist/dev/locales/kk-KZ-7BWTPIAV.js.map +7 -0
- package/dist/dev/locales/{km-KH-K2TE5MIK.js → km-KH-BV4P2KSZ.js} +2 -1
- package/dist/dev/locales/{km-KH-K2TE5MIK.js.map → km-KH-BV4P2KSZ.js.map} +2 -2
- package/dist/dev/locales/{ko-KR-75RUMBCO.js → ko-KR-TSXE5P7B.js} +2 -1
- package/dist/dev/locales/{ko-KR-75RUMBCO.js.map → ko-KR-TSXE5P7B.js.map} +2 -2
- package/dist/dev/locales/{ku-TR-E6DJ6LYM.js → ku-TR-ASSXNN3U.js} +2 -1
- package/dist/dev/locales/{ku-TR-E6DJ6LYM.js.map → ku-TR-ASSXNN3U.js.map} +2 -2
- package/dist/dev/locales/{lt-LT-BYS5DA45.js → lt-LT-G7RZYQQU.js} +2 -1
- package/dist/dev/locales/{lt-LT-BYS5DA45.js.map → lt-LT-G7RZYQQU.js.map} +2 -2
- package/dist/dev/locales/{lv-LV-SPQ2VWX3.js → lv-LV-DXNPBJZU.js} +2 -1
- package/dist/dev/locales/{lv-LV-SPQ2VWX3.js.map → lv-LV-DXNPBJZU.js.map} +2 -2
- package/dist/dev/locales/{mr-IN-2HLK6LUA.js → mr-IN-7F2ZCTCF.js} +2 -1
- package/dist/dev/locales/{mr-IN-2HLK6LUA.js.map → mr-IN-7F2ZCTCF.js.map} +2 -2
- package/dist/dev/locales/{my-MM-P2LR44WR.js → my-MM-NBI3KQGW.js} +2 -1
- package/dist/dev/locales/{my-MM-P2LR44WR.js.map → my-MM-NBI3KQGW.js.map} +2 -2
- package/dist/dev/locales/{nb-NO-7YZHFFVS.js → nb-NO-4DCTQT6L.js} +2 -1
- package/dist/dev/locales/{nb-NO-7YZHFFVS.js.map → nb-NO-4DCTQT6L.js.map} +2 -2
- package/dist/dev/locales/{nl-NL-TF2OVIKN.js → nl-NL-XGZJ7V2V.js} +226 -225
- package/dist/dev/locales/nl-NL-XGZJ7V2V.js.map +7 -0
- package/dist/dev/locales/{nn-NO-2BWEL2IS.js → nn-NO-FR534JV5.js} +2 -1
- package/dist/dev/locales/{nn-NO-2BWEL2IS.js.map → nn-NO-FR534JV5.js.map} +2 -2
- package/dist/dev/locales/{oc-FR-5JYIFGLE.js → oc-FR-YQCIKZIK.js} +56 -55
- package/dist/dev/locales/oc-FR-YQCIKZIK.js.map +7 -0
- package/dist/dev/locales/{pa-IN-KBBGER76.js → pa-IN-UM43JGD2.js} +2 -1
- package/dist/dev/locales/{pa-IN-KBBGER76.js.map → pa-IN-UM43JGD2.js.map} +2 -2
- package/dist/dev/locales/{percentages-2RAYDWNS.js → percentages-OGWD7R2K.js} +2 -2
- package/dist/dev/locales/{pl-PL-BWZ2X734.js → pl-PL-2UGKA6HK.js} +2 -1
- package/dist/dev/locales/{pl-PL-BWZ2X734.js.map → pl-PL-2UGKA6HK.js.map} +2 -2
- package/dist/dev/locales/{pt-BR-ERVIQI63.js → pt-BR-H23QFYE3.js} +3 -2
- package/dist/dev/locales/pt-BR-H23QFYE3.js.map +7 -0
- package/dist/dev/locales/{pt-PT-ZNJ5NB5S.js → pt-PT-RHKJH5I5.js} +2 -1
- package/dist/dev/locales/{pt-PT-ZNJ5NB5S.js.map → pt-PT-RHKJH5I5.js.map} +2 -2
- package/dist/dev/locales/{ro-RO-UYNXGUB7.js → ro-RO-IIFONL3T.js} +2 -1
- package/dist/dev/locales/{ro-RO-UYNXGUB7.js.map → ro-RO-IIFONL3T.js.map} +2 -2
- package/dist/dev/locales/{ru-RU-F7LPIMGQ.js → ru-RU-QEP6D7GK.js} +49 -48
- package/dist/dev/locales/ru-RU-QEP6D7GK.js.map +7 -0
- package/dist/dev/locales/{si-LK-5GF2DJUH.js → si-LK-LZYJQLHF.js} +2 -1
- package/dist/dev/locales/{si-LK-5GF2DJUH.js.map → si-LK-LZYJQLHF.js.map} +2 -2
- package/dist/dev/locales/{sk-SK-H6WE7IJX.js → sk-SK-RWC6UWGY.js} +49 -48
- package/dist/dev/locales/sk-SK-RWC6UWGY.js.map +7 -0
- package/dist/dev/locales/{sl-SI-4PJ6LBI7.js → sl-SI-QJT2CAUO.js} +2 -1
- package/dist/dev/locales/{sl-SI-4PJ6LBI7.js.map → sl-SI-QJT2CAUO.js.map} +2 -2
- package/dist/dev/locales/{sv-SE-E5VQLCRE.js → sv-SE-3MAT3NDX.js} +5 -4
- package/dist/dev/locales/sv-SE-3MAT3NDX.js.map +7 -0
- package/dist/dev/locales/{ta-IN-2YWIVLKF.js → ta-IN-J7XOYF2T.js} +2 -1
- package/dist/dev/locales/{ta-IN-2YWIVLKF.js.map → ta-IN-J7XOYF2T.js.map} +2 -2
- package/dist/dev/locales/{th-TH-IV7RUTDK.js → th-TH-2OI52EOQ.js} +2 -1
- package/dist/dev/locales/{th-TH-IV7RUTDK.js.map → th-TH-2OI52EOQ.js.map} +2 -2
- package/dist/dev/locales/{tr-TR-LEQWIQH7.js → tr-TR-G7TAUHUI.js} +2 -1
- package/dist/dev/locales/{tr-TR-LEQWIQH7.js.map → tr-TR-G7TAUHUI.js.map} +2 -2
- package/dist/dev/locales/{uk-UA-DWVOQPTB.js → uk-UA-IVSVBJIG.js} +2 -1
- package/dist/dev/locales/{uk-UA-DWVOQPTB.js.map → uk-UA-IVSVBJIG.js.map} +2 -2
- package/dist/dev/locales/{uz-UZ-CKXQ3QKG.js → uz-UZ-KCVDUVDE.js} +2 -1
- package/dist/dev/locales/{uz-UZ-CKXQ3QKG.js.map → uz-UZ-KCVDUVDE.js.map} +2 -2
- package/dist/dev/locales/{vi-VN-3P6DZOGS.js → vi-VN-KBZAVWP5.js} +4 -3
- package/dist/dev/locales/{vi-VN-3P6DZOGS.js.map → vi-VN-KBZAVWP5.js.map} +2 -2
- package/dist/dev/locales/{zh-CN-XXVG53TQ.js → zh-CN-IS26RG2D.js} +2 -1
- package/dist/dev/locales/{zh-CN-XXVG53TQ.js.map → zh-CN-IS26RG2D.js.map} +2 -2
- package/dist/dev/locales/{zh-HK-JCHGKEUE.js → zh-HK-KBWQ6SJC.js} +2 -1
- package/dist/dev/locales/{zh-HK-JCHGKEUE.js.map → zh-HK-KBWQ6SJC.js.map} +2 -2
- package/dist/dev/locales/{zh-TW-ARVT7RZU.js → zh-TW-JKJWJQ4J.js} +2 -1
- package/dist/dev/locales/{zh-TW-ARVT7RZU.js.map → zh-TW-JKJWJQ4J.js.map} +2 -2
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-AJI3LATG.js +1 -0
- package/dist/prod/{chunk-N7QNUCIG.js → chunk-QNG5NH6R.js} +1 -1
- package/dist/prod/chunk-TIFXQFVB.js +4 -0
- package/dist/prod/{chunk-LS7FJGPW.js → chunk-Z5NKEFVG.js} +8 -8
- package/dist/prod/data/{image-SMWA6JLH.js → image-OPZV5J37.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +24 -24
- package/dist/prod/locales/{ar-SA-F62BVQMB.js → ar-SA-IYHKZRSE.js} +2 -2
- package/dist/prod/locales/{az-AZ-7PGSKYOB.js → az-AZ-WL5GYRHK.js} +1 -1
- package/dist/prod/locales/{bg-BG-AAEXMUQ4.js → bg-BG-FXZYTRPD.js} +1 -1
- package/dist/prod/locales/{bn-IN-YT3I2M3F.js → bn-BD-KO6YL5G2.js} +1 -1
- package/dist/prod/locales/{bn-BD-ONOFQYIQ.js → bn-IN-PC6JHKYB.js} +1 -1
- package/dist/prod/locales/{ca-ES-GG4YH2FN.js → ca-ES-AREX5NEO.js} +1 -1
- package/dist/prod/locales/{cs-CZ-IS5VTBOP.js → cs-CZ-HXAZMFYH.js} +2 -2
- package/dist/prod/locales/{da-DK-VPQ2KWAY.js → da-DK-5X7ZLFU3.js} +2 -2
- package/dist/prod/locales/{de-DE-RAT2LIDI.js → de-CH-76ZNVSOF.js} +1 -1
- package/dist/prod/locales/{de-CH-G4Y2G6IS.js → de-DE-G3JVZ4MQ.js} +3 -3
- package/dist/prod/locales/{el-GR-DNJB2AZO.js → el-GR-4AZTZGY6.js} +2 -2
- package/dist/prod/locales/{en-FOCNVEEU.js → en-BARVNJLJ.js} +1 -1
- package/dist/prod/locales/es-ES-ART7BI3G.js +7 -0
- package/dist/prod/locales/{eu-ES-XLOS36YS.js → eu-ES-BIF4XBMT.js} +2 -2
- package/dist/prod/locales/{fa-IR-J6Z2YOGX.js → fa-IR-D4HHKAAI.js} +1 -1
- package/dist/prod/locales/{fi-FI-B2IQ7SBP.js → fi-FI-O35ZY7UI.js} +1 -1
- package/dist/prod/locales/{fr-FR-N5BRDCMI.js → fr-FR-XEFNCM4I.js} +3 -3
- package/dist/prod/locales/{gl-ES-BOYALFRN.js → gl-ES-U4NYM3X5.js} +2 -2
- package/dist/prod/locales/{he-IL-H7M7HGY5.js → he-IL-656ABAVQ.js} +1 -1
- package/dist/prod/locales/{hi-IN-7AB5CA2Q.js → hi-IN-Z55GAFFR.js} +2 -2
- package/dist/prod/locales/{hu-HU-ZZM7UJLP.js → hu-HU-UJ62DVIW.js} +1 -1
- package/dist/prod/locales/{id-ID-RZ7JNCXA.js → id-ID-FLZFU3OO.js} +1 -1
- package/dist/prod/locales/it-IT-GIGIGIBJ.js +12 -0
- package/dist/prod/locales/ja-JP-43VXGDWI.js +7 -0
- package/dist/prod/locales/{kaa-QWYSGEM7.js → kaa-L3IMSDYL.js} +1 -1
- package/dist/prod/locales/{kab-KAB-Q3HBKQ5I.js → kab-KAB-XKPWJLNL.js} +2 -2
- package/dist/prod/locales/kk-KZ-SXPDDY2H.js +1 -0
- package/dist/prod/locales/{km-KH-CN6HHF5U.js → km-KH-DOS4CPGC.js} +3 -3
- package/dist/prod/locales/{ko-KR-SJQMUXM7.js → ko-KR-BGC6VCY4.js} +1 -1
- package/dist/prod/locales/{ku-TR-VM4BHTPC.js → ku-TR-J7IUITIA.js} +1 -1
- package/dist/prod/locales/{lt-LT-QIWZQ7AG.js → lt-LT-AC3LV5KG.js} +1 -1
- package/dist/prod/locales/{lv-LV-YQFCB4WZ.js → lv-LV-I6AY7QG2.js} +1 -1
- package/dist/prod/locales/{mr-IN-GR2ZJPSQ.js → mr-IN-5SP4HV5B.js} +2 -2
- package/dist/prod/locales/{my-MM-M5XJDJQ2.js → my-MM-S7ECRBYZ.js} +1 -1
- package/dist/prod/locales/{nb-NO-2RU2YF7H.js → nb-NO-6PNHTF4R.js} +1 -1
- package/dist/prod/locales/nl-NL-R4C4SUIG.js +13 -0
- package/dist/prod/locales/{nn-NO-72RCA552.js → nn-NO-3TFXTM7Y.js} +1 -1
- package/dist/prod/locales/oc-FR-IK6GIE7H.js +4 -0
- package/dist/prod/locales/{pa-IN-WESENMFH.js → pa-IN-YAKHYJET.js} +1 -1
- package/dist/prod/locales/percentages-OL6W367U.js +1 -0
- package/dist/prod/locales/{pl-PL-7C4NGVUA.js → pl-PL-BIY22ZWU.js} +2 -2
- package/dist/prod/locales/{pt-BR-QH23C2IX.js → pt-BR-Q23NUPD6.js} +2 -2
- package/dist/prod/locales/{pt-PT-O5XBATXI.js → pt-PT-LOPEJLPJ.js} +2 -2
- package/dist/prod/locales/{ro-RO-QHCHEGM5.js → ro-RO-W3D2ZATV.js} +2 -2
- package/dist/prod/locales/ru-RU-DCTW7QSH.js +10 -0
- package/dist/prod/locales/{si-LK-JYUINGNN.js → si-LK-FYRRHO3C.js} +1 -1
- package/dist/prod/locales/sk-SK-MC7UOHQO.js +7 -0
- package/dist/prod/locales/{sl-SI-5KPVX4FS.js → sl-SI-L6B6HFY5.js} +2 -2
- package/dist/prod/locales/{sv-SE-MVMXV6O4.js → sv-SE-KMY6L2BA.js} +3 -3
- package/dist/prod/locales/{ta-IN-A32FQB4D.js → ta-IN-ZQCYE2JK.js} +2 -2
- package/dist/prod/locales/{th-TH-CXMWNVBY.js → th-TH-WS7ECBAV.js} +1 -1
- package/dist/prod/locales/{tr-TR-YHFI3W2D.js → tr-TR-S5FI7JRW.js} +2 -2
- package/dist/prod/locales/{uk-UA-UTJIIKT5.js → uk-UA-4EZUWUSQ.js} +3 -3
- package/dist/prod/locales/{uz-UZ-H4EGTR7D.js → uz-UZ-OKHL6AFA.js} +1 -1
- package/dist/prod/locales/{vi-VN-XBV2ESZM.js → vi-VN-K34TWHF7.js} +2 -2
- package/dist/prod/locales/{zh-CN-CKCJ4HAO.js → zh-CN-JE4UZWNO.js} +2 -2
- package/dist/prod/locales/{zh-HK-ISASRRMF.js → zh-HK-RM35YDXX.js} +1 -1
- package/dist/prod/locales/{zh-TW-KYRW5V3R.js → zh-TW-ONGLV6Y5.js} +3 -3
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/common/src/bounds.d.ts +10 -0
- package/dist/types/common/src/colors.d.ts +5 -2
- package/dist/types/common/src/constants.d.ts +13 -11
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +1 -0
- package/dist/types/common/src/keys.d.ts +1 -1
- package/dist/types/common/src/utility-types.d.ts +0 -1
- package/dist/types/common/src/utils.d.ts +43 -33
- package/dist/types/common/src/visualdebug.d.ts +1 -1
- package/dist/types/element/src/Scene.d.ts +3 -3
- package/dist/types/element/src/binding.d.ts +6 -4
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +2 -2
- package/dist/types/element/src/comparisons.d.ts +7 -7
- package/dist/types/element/src/dragElements.d.ts +3 -3
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +5 -1
- package/dist/types/element/src/heading.d.ts +2 -1
- package/dist/types/element/src/image.d.ts +1 -11
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/linearElementEditor.d.ts +1 -2
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +6 -6
- package/dist/types/element/src/renderElement.d.ts +0 -6
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +1 -1
- package/dist/types/element/src/selection.d.ts +3 -7
- package/dist/types/element/src/shape.d.ts +8 -7
- package/dist/types/element/src/textMeasurements.d.ts +1 -3
- package/dist/types/{excalidraw/data → element/src}/transform.d.ts +3 -3
- package/dist/types/element/src/transformHandles.d.ts +3 -23
- package/dist/types/element/src/typeChecks.d.ts +2 -4
- package/dist/types/element/src/utils.d.ts +3 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +62 -126
- package/dist/types/excalidraw/actions/actionAlign.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +44 -87
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +263 -510
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +44 -87
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +21 -43
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +68 -136
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +18 -40
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +45 -88
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +22 -44
- package/dist/types/excalidraw/actions/actionExport.d.ts +85 -170
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -2
- package/dist/types/excalidraw/actions/actionFlip.d.ts +0 -1
- package/dist/types/excalidraw/actions/actionFrame.d.ts +167 -288
- package/dist/types/excalidraw/actions/actionGroup.d.ts +48 -99
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +102 -160
- package/dist/types/excalidraw/actions/actionLink.d.ts +22 -44
- package/dist/types/excalidraw/actions/actionMenu.d.ts +17 -39
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +14 -17
- package/dist/types/excalidraw/actions/actionProperties.d.ts +59 -102
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +24 -50
- package/dist/types/excalidraw/actions/actionStyles.d.ts +20 -42
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +22 -44
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +22 -44
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -38
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +22 -44
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +22 -44
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +22 -44
- package/dist/types/excalidraw/actions/actionZindex.d.ts +0 -1
- package/dist/types/excalidraw/actions/manager.d.ts +1 -1
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/appState.d.ts +3 -3
- package/dist/types/excalidraw/clipboard.d.ts +7 -31
- package/dist/types/excalidraw/components/Actions.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +33 -41
- package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +1 -1
- package/dist/types/excalidraw/components/Card.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +7 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +0 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +2 -2
- package/dist/types/excalidraw/components/DarkModeToggle.d.ts +1 -1
- package/dist/types/excalidraw/components/DefaultSidebar.d.ts +9 -13
- package/dist/types/excalidraw/components/ElementLinkDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/Ellipsify.d.ts +1 -2
- package/dist/types/excalidraw/components/ErrorDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/ExcalidrawLogo.d.ts +0 -1
- package/dist/types/excalidraw/components/EyeDropper.d.ts +0 -1
- package/dist/types/excalidraw/components/FontPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/HelpDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/InlineIcon.d.ts +2 -2
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +1 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +2 -3
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -1
- package/dist/types/excalidraw/components/Modal.d.ts +0 -1
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirm.d.ts +1 -1
- package/dist/types/excalidraw/components/RadioGroup.d.ts +0 -1
- package/dist/types/excalidraw/components/RadioSelection.d.ts +4 -4
- package/dist/types/excalidraw/components/ScrollableList.d.ts +0 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +15 -21
- package/dist/types/excalidraw/components/Sidebar/SidebarHeader.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/SidebarTab.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/Sidebar/SidebarTabs.d.ts +1 -2
- package/dist/types/excalidraw/components/Spinner.d.ts +4 -4
- package/dist/types/excalidraw/components/Stats/CanvasGrid.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/Collapsible.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +0 -1
- package/dist/types/excalidraw/components/Stats/index.d.ts +7 -8
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +0 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTab.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTrigger.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTabTriggers.d.ts +1 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogTrigger.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +2 -3
- package/dist/types/excalidraw/components/Toast.d.ts +3 -3
- package/dist/types/excalidraw/components/Trans.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +28 -32
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +5 -5
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuGroup.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +10 -18
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +3 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +0 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCustom.d.ts +2 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemLink.d.ts +6 -6
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuTrigger.d.ts +3 -4
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/hoc/withInternalFallback.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +11 -11
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +2 -13
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -28
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.Center.d.ts +6 -6
- package/dist/types/excalidraw/components/welcome-screen/WelcomeScreen.d.ts +15 -16
- package/dist/types/excalidraw/data/blob.d.ts +321 -3
- package/dist/types/excalidraw/data/encode.d.ts +4 -4
- package/dist/types/excalidraw/data/encryption.d.ts +5 -5
- package/dist/types/excalidraw/data/filesystem.d.ts +2 -2
- package/dist/types/excalidraw/data/index.d.ts +3 -3
- package/dist/types/excalidraw/data/json.d.ts +159 -2
- package/dist/types/excalidraw/data/library.d.ts +24 -9
- package/dist/types/excalidraw/data/restore.d.ts +25 -10
- package/dist/types/excalidraw/editor-jotai.d.ts +11 -11
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +1 -2
- package/dist/types/excalidraw/hooks/useScrollPosition.d.ts +1 -2
- package/dist/types/excalidraw/i18n.d.ts +2 -2
- package/dist/types/excalidraw/index.d.ts +2 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -4
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +5 -2
- package/dist/types/excalidraw/scene/export.d.ts +2 -2
- package/dist/types/excalidraw/scene/scroll.d.ts +1 -6
- package/dist/types/excalidraw/scene/types.d.ts +7 -2
- package/dist/types/excalidraw/snapping.d.ts +5 -5
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-bindings.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-loader.d.ts +1 -1
- package/dist/types/excalidraw/subset/harfbuzz/harfbuzz-wasm.d.ts +1 -1
- package/dist/types/excalidraw/subset/woff2/woff2-loader.d.ts +2 -2
- package/dist/types/excalidraw/subset/woff2/woff2-wasm.d.ts +1 -1
- package/dist/types/excalidraw/types.d.ts +1 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -2
- package/dist/types/math/src/polygon.d.ts +2 -2
- package/dist/types/math/src/range.d.ts +1 -3
- package/dist/types/math/src/segment.d.ts +3 -3
- package/dist/types/utils/src/bbox.d.ts +1 -1
- package/dist/types/utils/src/export.d.ts +5 -5
- package/dist/types/utils/src/shape.d.ts +6 -6
- package/dist/types/utils/src/withinBounds.d.ts +2 -2
- package/package.json +5 -5
- package/dist/dev/chunk-SJTAY27F.js.map +0 -7
- package/dist/dev/locales/de-DE-YRH6WMM5.js.map +0 -7
- package/dist/dev/locales/el-GR-W7S64QNM.js.map +0 -7
- package/dist/dev/locales/es-ES-7JEN5PTZ.js.map +0 -7
- package/dist/dev/locales/it-IT-AV75ICYT.js.map +0 -7
- package/dist/dev/locales/ja-JP-SS4G3ZXF.js.map +0 -7
- package/dist/dev/locales/kk-KZ-762YODLJ.js.map +0 -7
- package/dist/dev/locales/nl-NL-TF2OVIKN.js.map +0 -7
- package/dist/dev/locales/oc-FR-5JYIFGLE.js.map +0 -7
- package/dist/dev/locales/pt-BR-ERVIQI63.js.map +0 -7
- package/dist/dev/locales/ru-RU-F7LPIMGQ.js.map +0 -7
- package/dist/dev/locales/sk-SK-H6WE7IJX.js.map +0 -7
- package/dist/dev/locales/sv-SE-E5VQLCRE.js.map +0 -7
- package/dist/prod/chunk-KRJFZ5JQ.js +0 -1
- package/dist/prod/chunk-XJNFOLHK.js +0 -4
- package/dist/prod/locales/es-ES-IMTENLBU.js +0 -7
- package/dist/prod/locales/it-IT-ZX7HN56D.js +0 -8
- package/dist/prod/locales/ja-JP-NBNBUHIR.js +0 -7
- package/dist/prod/locales/kk-KZ-HF2NTCRX.js +0 -1
- package/dist/prod/locales/nl-NL-MUHXDQFK.js +0 -7
- package/dist/prod/locales/oc-FR-65ITQYQ2.js +0 -4
- package/dist/prod/locales/percentages-OEPNEGCM.js +0 -1
- package/dist/prod/locales/ru-RU-FUMQ2LLB.js +0 -6
- package/dist/prod/locales/sk-SK-R25O52BS.js +0 -7
- /package/dist/dev/data/{image-S2GFZH7W.js.map → image-Q6JHR7OE.js.map} +0 -0
- /package/dist/dev/locales/{en-ZO6QSABV.js.map → en-MLZIHOCR.js.map} +0 -0
- /package/dist/dev/locales/{percentages-2RAYDWNS.js.map → percentages-OGWD7R2K.js.map} +0 -0
|
@@ -36,7 +36,7 @@ export declare const ZoomActions: ({ renderAction, zoom, }: {
|
|
|
36
36
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
export declare const UndoRedoActions: ({ renderAction, className, }: {
|
|
38
38
|
renderAction: ActionManager["renderAction"];
|
|
39
|
-
className?: string
|
|
39
|
+
className?: string;
|
|
40
40
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
export declare const ExitZenModeButton: ({ actionManager, showExitZenModeBtn, }: {
|
|
42
42
|
actionManager: ActionManager;
|
|
@@ -10,6 +10,7 @@ import { Fonts } from "../fonts";
|
|
|
10
10
|
import { type WritableAtom } from "../editor-jotai";
|
|
11
11
|
import { Renderer } from "../scene/Renderer";
|
|
12
12
|
import { LaserTrails } from "../laser-trails";
|
|
13
|
+
import { isOverScrollBars } from "../scene/scrollbars";
|
|
13
14
|
import { LassoTrail } from "../lasso";
|
|
14
15
|
import { EraserTrail } from "../eraser";
|
|
15
16
|
import type { ExportedElements } from "../data";
|
|
@@ -28,7 +29,7 @@ export declare const useEditorInterface: () => Readonly<{
|
|
|
28
29
|
desktopUIMode: "compact" | "full";
|
|
29
30
|
userAgent: Readonly<{
|
|
30
31
|
isMobileDevice: boolean;
|
|
31
|
-
platform: "
|
|
32
|
+
platform: "ios" | "android" | "other" | "unknown";
|
|
32
33
|
}>;
|
|
33
34
|
isTouchScreen: boolean;
|
|
34
35
|
canFitSidebar: boolean;
|
|
@@ -114,11 +115,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
114
115
|
x: number;
|
|
115
116
|
y: number;
|
|
116
117
|
}>;
|
|
117
|
-
scrollbars:
|
|
118
|
-
isOverEither: boolean;
|
|
119
|
-
isOverHorizontal: boolean;
|
|
120
|
-
isOverVertical: boolean;
|
|
121
|
-
};
|
|
118
|
+
scrollbars: ReturnType<typeof isOverScrollBars>;
|
|
122
119
|
lastCoords: {
|
|
123
120
|
x: number;
|
|
124
121
|
y: number;
|
|
@@ -131,7 +128,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
131
128
|
x: number;
|
|
132
129
|
y: number;
|
|
133
130
|
};
|
|
134
|
-
arrowDirection: "
|
|
131
|
+
arrowDirection: "origin" | "end";
|
|
135
132
|
center: {
|
|
136
133
|
x: number;
|
|
137
134
|
y: number;
|
|
@@ -158,14 +155,10 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
158
155
|
blockDragging: boolean;
|
|
159
156
|
};
|
|
160
157
|
eventListeners: {
|
|
161
|
-
onMove:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
} | null;
|
|
166
|
-
onUp: ((event: PointerEvent) => void) | null;
|
|
167
|
-
onKeyDown: ((event: KeyboardEvent) => void) | null;
|
|
168
|
-
onKeyUp: ((event: KeyboardEvent) => void) | null;
|
|
158
|
+
onMove: null | ReturnType<typeof import("@excalidraw/common").throttleRAF>;
|
|
159
|
+
onUp: null | ((event: PointerEvent) => void);
|
|
160
|
+
onKeyDown: null | ((event: KeyboardEvent) => void);
|
|
161
|
+
onKeyUp: null | ((event: KeyboardEvent) => void);
|
|
169
162
|
};
|
|
170
163
|
boxSelection: {
|
|
171
164
|
hasOccurred: boolean;
|
|
@@ -184,11 +177,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
184
177
|
x: number;
|
|
185
178
|
y: number;
|
|
186
179
|
}>;
|
|
187
|
-
scrollbars:
|
|
188
|
-
isOverEither: boolean;
|
|
189
|
-
isOverHorizontal: boolean;
|
|
190
|
-
isOverVertical: boolean;
|
|
191
|
-
};
|
|
180
|
+
scrollbars: ReturnType<typeof isOverScrollBars>;
|
|
192
181
|
lastCoords: {
|
|
193
182
|
x: number;
|
|
194
183
|
y: number;
|
|
@@ -201,7 +190,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
201
190
|
x: number;
|
|
202
191
|
y: number;
|
|
203
192
|
};
|
|
204
|
-
arrowDirection: "
|
|
193
|
+
arrowDirection: "origin" | "end";
|
|
205
194
|
center: {
|
|
206
195
|
x: number;
|
|
207
196
|
y: number;
|
|
@@ -228,14 +217,10 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
228
217
|
blockDragging: boolean;
|
|
229
218
|
};
|
|
230
219
|
eventListeners: {
|
|
231
|
-
onMove:
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
} | null;
|
|
236
|
-
onUp: ((event: PointerEvent) => void) | null;
|
|
237
|
-
onKeyDown: ((event: KeyboardEvent) => void) | null;
|
|
238
|
-
onKeyUp: ((event: KeyboardEvent) => void) | null;
|
|
220
|
+
onMove: null | ReturnType<typeof import("@excalidraw/common").throttleRAF>;
|
|
221
|
+
onUp: null | ((event: PointerEvent) => void);
|
|
222
|
+
onKeyDown: null | ((event: KeyboardEvent) => void);
|
|
223
|
+
onKeyUp: null | ((event: KeyboardEvent) => void);
|
|
239
224
|
};
|
|
240
225
|
boxSelection: {
|
|
241
226
|
hasOccurred: boolean;
|
|
@@ -274,7 +259,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
274
259
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
275
260
|
focusContainer: AppClassProperties["focusContainer"];
|
|
276
261
|
getSceneElementsIncludingDeleted: () => readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
277
|
-
getSceneElementsMapIncludingDeleted: () =>
|
|
262
|
+
getSceneElementsMapIncludingDeleted: () => SceneElementsMap;
|
|
278
263
|
getSceneElements: () => readonly Ordered<NonDeletedExcalidrawElement>[];
|
|
279
264
|
onInsertElements: (elements: readonly ExcalidrawElement[]) => void;
|
|
280
265
|
onExportImage: (type: keyof typeof EXPORT_IMAGE_TYPES, elements: ExportedElements, opts: {
|
|
@@ -343,20 +328,27 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
343
328
|
setAppState: React.Component<any, AppState>["setState"];
|
|
344
329
|
removePointer: (event: React.PointerEvent<HTMLElement> | PointerEvent) => void;
|
|
345
330
|
toggleLock: (source?: "keyboard" | "ui") => void;
|
|
346
|
-
updateFrameRendering: (opts: Partial<
|
|
347
|
-
enabled: boolean;
|
|
348
|
-
name: boolean;
|
|
349
|
-
outline: boolean;
|
|
350
|
-
clip: boolean;
|
|
351
|
-
}> | ((prevState: AppState["frameRendering"]) => Partial<AppState["frameRendering"]>)) => void;
|
|
331
|
+
updateFrameRendering: (opts: Partial<AppState["frameRendering"]> | ((prevState: AppState["frameRendering"]) => Partial<AppState["frameRendering"]>)) => void;
|
|
352
332
|
togglePenMode: (force: boolean | null) => void;
|
|
353
333
|
onHandToolToggle: () => void;
|
|
354
334
|
/**
|
|
355
335
|
* Zooms on canvas viewport center
|
|
356
336
|
*/
|
|
357
|
-
zoomCanvas: (
|
|
337
|
+
zoomCanvas: (
|
|
338
|
+
/**
|
|
339
|
+
* Decimal fraction, auto-clamped between MIN_ZOOM and MAX_ZOOM.
|
|
340
|
+
* 1 = 100% zoom, 2 = 200% zoom, 0.5 = 50% zoom
|
|
341
|
+
*/
|
|
342
|
+
value: number) => void;
|
|
358
343
|
private cancelInProgressAnimation;
|
|
359
|
-
scrollToContent: (
|
|
344
|
+
scrollToContent: (
|
|
345
|
+
/**
|
|
346
|
+
* target to scroll to
|
|
347
|
+
*
|
|
348
|
+
* - string - id of element or group, or url containing elementLink
|
|
349
|
+
* - ExcalidrawElement | ExcalidrawElement[] - element(s) objects
|
|
350
|
+
*/
|
|
351
|
+
target?: string | ExcalidrawElement | readonly ExcalidrawElement[], opts?: ({
|
|
360
352
|
fitToContent?: boolean;
|
|
361
353
|
fitToViewport?: never;
|
|
362
354
|
viewportZoomFactor?: number;
|
|
@@ -393,7 +385,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
393
385
|
private addMissingFiles;
|
|
394
386
|
updateScene: <K extends keyof AppState>(sceneData: {
|
|
395
387
|
elements?: SceneData["elements"];
|
|
396
|
-
appState?: Pick<AppState, K> | null
|
|
388
|
+
appState?: Pick<AppState, K> | null;
|
|
397
389
|
collaborators?: SceneData["collaborators"];
|
|
398
390
|
/**
|
|
399
391
|
* Controls which updates should be captured by the `Store`. Captured updates are emmitted and listened to by other components, such as `History` for undo / redo purposes.
|
|
@@ -416,8 +408,8 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
416
408
|
*/
|
|
417
409
|
toggleSidebar: ({ name, tab, force, }: {
|
|
418
410
|
name: SidebarName | null;
|
|
419
|
-
tab?:
|
|
420
|
-
force?: boolean
|
|
411
|
+
tab?: SidebarTabName;
|
|
412
|
+
force?: boolean;
|
|
421
413
|
}) => boolean;
|
|
422
414
|
private updateCurrentCursorPosition;
|
|
423
415
|
getEditorUIOffsets: () => Offsets;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JSX } from "react";
|
|
2
|
-
export declare const ButtonIconCycle: <T extends
|
|
2
|
+
export declare const ButtonIconCycle: <T extends any>({ options, value, onChange, group, }: {
|
|
3
3
|
options: {
|
|
4
4
|
value: T;
|
|
5
5
|
text: string;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { ColorPickerType } from "./colorPickerUtils";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* tries to keep the input color as-is if it's valid, making minimal adjustments
|
|
4
|
+
* (trimming whitespace or adding `#` to hex colors)
|
|
5
|
+
*/
|
|
6
|
+
export declare const normalizeInputColor: (color: string) => string | null;
|
|
7
|
+
export declare const ColorInput: ({ color, onChange, label, colorPickerType, placeholder, }: {
|
|
3
8
|
color: string;
|
|
4
9
|
onChange: (color: string) => void;
|
|
5
10
|
label: string;
|
|
6
11
|
colorPickerType: ColorPickerType;
|
|
7
12
|
placeholder?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const ColorInput: ({ color, onChange, label, colorPickerType, placeholder, }: ColorInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,6 @@ import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
|
3
3
|
import "./ColorPicker.scss";
|
|
4
4
|
import type { ColorPickerType } from "./colorPickerUtils";
|
|
5
5
|
import type { AppState } from "../../types";
|
|
6
|
-
export declare const getColor: (color: string) => string | null;
|
|
7
6
|
interface ColorPickerProps {
|
|
8
7
|
type: ColorPickerType;
|
|
9
8
|
/**
|
|
@@ -16,8 +16,8 @@ export declare const adjustBoundTextSize: (container: ExcalidrawTextContainer, b
|
|
|
16
16
|
type ConversionType = "generic" | "linear" | null;
|
|
17
17
|
export declare const convertElementTypes: (app: App, { conversionType, nextType, direction, }: {
|
|
18
18
|
conversionType: ConversionType;
|
|
19
|
-
nextType?: ConvertibleTypes
|
|
20
|
-
direction?: "left" | "right"
|
|
19
|
+
nextType?: ConvertibleTypes;
|
|
20
|
+
direction?: "left" | "right";
|
|
21
21
|
}) => boolean;
|
|
22
22
|
export declare const getConversionTypeFromElements: (elements: ExcalidrawElement[]) => ConversionType;
|
|
23
23
|
export default ConvertElementTypePopup;
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { MarkOptional } from "@excalidraw/common/utility-types";
|
|
3
2
|
import "../components/dropdownMenu/DropdownMenu.scss";
|
|
4
3
|
import type { SidebarProps, SidebarTriggerProps } from "./Sidebar/common";
|
|
5
4
|
export declare const DefaultSidebar: import("react").FC<Omit<MarkOptional<Omit<{
|
|
6
|
-
name:
|
|
7
|
-
children:
|
|
8
|
-
onStateChange?: (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
docked?: boolean | undefined;
|
|
14
|
-
className?: string | undefined;
|
|
15
|
-
__fallback?: boolean | undefined;
|
|
5
|
+
name: import("../types").SidebarName;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
onStateChange?: (state: import("../types").AppState["openSidebar"]) => void;
|
|
8
|
+
onDock?: (docked: boolean) => void;
|
|
9
|
+
docked?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
__fallback?: boolean;
|
|
16
12
|
}, "name">, "children">, "onDock"> & {
|
|
17
13
|
/** pass `false` to disable docking */
|
|
18
14
|
onDock?: SidebarProps["onDock"] | false;
|
|
19
15
|
} & {
|
|
20
|
-
__fallback?: boolean
|
|
16
|
+
__fallback?: boolean;
|
|
21
17
|
}> & {
|
|
22
18
|
Trigger: import("react").FC<Omit<SidebarTriggerProps, "name"> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
23
|
-
__fallback?: boolean
|
|
19
|
+
__fallback?: boolean;
|
|
24
20
|
}>;
|
|
25
21
|
TabTriggers: {
|
|
26
22
|
({ children }: {
|
|
@@ -6,7 +6,7 @@ declare const ElementLinkDialog: ({ sourceElementId, onClose, appState, scene, g
|
|
|
6
6
|
sourceElementId: ExcalidrawElement["id"];
|
|
7
7
|
appState: UIAppState;
|
|
8
8
|
scene: Scene;
|
|
9
|
-
onClose?: (
|
|
9
|
+
onClose?: () => void;
|
|
10
10
|
generateLinkForSelection: AppProps["generateLinkForSelection"];
|
|
11
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default ElementLinkDialog;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Ellipsify: ({ children, ...rest }: {
|
|
3
2
|
children: React.ReactNode;
|
|
4
|
-
} &
|
|
3
|
+
} & React.HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type Library from "../data/library";
|
|
3
2
|
import type { LibraryItem, UIAppState } from "../types";
|
|
4
3
|
export declare const LibraryDropdownMenuButton: React.FC<{
|
|
@@ -14,5 +13,5 @@ export declare const LibraryDropdownMenuButton: React.FC<{
|
|
|
14
13
|
export declare const LibraryDropdownMenu: ({ selectedItems, onSelectItems, className, }: {
|
|
15
14
|
selectedItems: LibraryItem["id"][];
|
|
16
15
|
onSelectItems: (id: LibraryItem["id"][]) => void;
|
|
17
|
-
className?: string
|
|
16
|
+
className?: string;
|
|
18
17
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import "./LibraryUnit.scss";
|
|
3
2
|
import type { LibraryItem } from "../types";
|
|
4
3
|
import type { SvgCache } from "../hooks/useLibraryItemSvg";
|
|
5
4
|
export declare const LibraryUnit: import("react").MemoExoticComponent<({ id, elements, isPending, onClick, selected, onToggle, onDrag, svgCache, }: {
|
|
6
5
|
id: LibraryItem["id"] | /** for pending item */ null;
|
|
7
|
-
elements?:
|
|
8
|
-
isPending?: boolean
|
|
6
|
+
elements?: LibraryItem["elements"];
|
|
7
|
+
isPending?: boolean;
|
|
9
8
|
onClick: (id: LibraryItem["id"] | null) => void;
|
|
10
9
|
selected: boolean;
|
|
11
10
|
onToggle: (id: string, event: React.MouseEvent) => void;
|
|
@@ -4,7 +4,7 @@ export type OverwriteConfirmDialogProps = {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
};
|
|
6
6
|
declare const OverwriteConfirmDialog: React.FC<OverwriteConfirmDialogProps & {
|
|
7
|
-
__fallback?: boolean
|
|
7
|
+
__fallback?: boolean;
|
|
8
8
|
}> & {
|
|
9
9
|
Actions: (({ children }: {
|
|
10
10
|
children: React.ReactNode;
|
|
@@ -4,14 +4,14 @@ export declare const RadioSelection: <T extends Object>(props: {
|
|
|
4
4
|
value: T;
|
|
5
5
|
text: string;
|
|
6
6
|
icon: JSX.Element;
|
|
7
|
-
testId?: string
|
|
7
|
+
testId?: string;
|
|
8
8
|
/** if not supplied, defaults to value identity check */
|
|
9
|
-
active?: boolean
|
|
9
|
+
active?: boolean;
|
|
10
10
|
}[];
|
|
11
11
|
value: T | null;
|
|
12
|
-
type?: "
|
|
12
|
+
type?: "radio" | "button";
|
|
13
13
|
} & ({
|
|
14
|
-
type?: "radio"
|
|
14
|
+
type?: "radio";
|
|
15
15
|
group: string;
|
|
16
16
|
onChange: (value: T) => void;
|
|
17
17
|
} | {
|
|
@@ -12,33 +12,27 @@ export declare const isSidebarDockedAtom: import("jotai/vanilla/atom").Primitive
|
|
|
12
12
|
init: boolean;
|
|
13
13
|
};
|
|
14
14
|
export declare const SidebarInner: React.ForwardRefExoticComponent<Omit<{
|
|
15
|
-
name:
|
|
15
|
+
name: import("../../types").SidebarName;
|
|
16
16
|
children: React.ReactNode;
|
|
17
|
-
onStateChange?: (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
docked?: boolean | undefined;
|
|
23
|
-
className?: string | undefined;
|
|
24
|
-
__fallback?: boolean | undefined;
|
|
17
|
+
onStateChange?: (state: import("../../types").AppState["openSidebar"]) => void;
|
|
18
|
+
onDock?: (docked: boolean) => void;
|
|
19
|
+
docked?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
__fallback?: boolean;
|
|
25
22
|
} & Omit<React.RefAttributes<HTMLDivElement>, "onSelect">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
26
23
|
export declare const Sidebar: React.ForwardRefExoticComponent<{
|
|
27
|
-
name:
|
|
24
|
+
name: import("../../types").SidebarName;
|
|
28
25
|
children: React.ReactNode;
|
|
29
|
-
onStateChange?: (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
docked?: boolean | undefined;
|
|
35
|
-
className?: string | undefined;
|
|
36
|
-
__fallback?: boolean | undefined;
|
|
26
|
+
onStateChange?: (state: import("../../types").AppState["openSidebar"]) => void;
|
|
27
|
+
onDock?: (docked: boolean) => void;
|
|
28
|
+
docked?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
__fallback?: boolean;
|
|
37
31
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
38
32
|
Header: {
|
|
39
33
|
({ children, className, }: {
|
|
40
34
|
children?: React.ReactNode;
|
|
41
|
-
className?: string
|
|
35
|
+
className?: string;
|
|
42
36
|
}): import("react/jsx-runtime").JSX.Element;
|
|
43
37
|
displayName: string;
|
|
44
38
|
};
|
|
@@ -51,7 +45,7 @@ export declare const Sidebar: React.ForwardRefExoticComponent<{
|
|
|
51
45
|
TabTrigger: {
|
|
52
46
|
({ children, tab, onSelect, ...rest }: {
|
|
53
47
|
children: React.ReactNode;
|
|
54
|
-
tab:
|
|
48
|
+
tab: import("../../types").SidebarTabName;
|
|
55
49
|
onSelect?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
56
50
|
} & Omit<React.HTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
57
51
|
displayName: string;
|
|
@@ -64,7 +58,7 @@ export declare const Sidebar: React.ForwardRefExoticComponent<{
|
|
|
64
58
|
};
|
|
65
59
|
Tab: {
|
|
66
60
|
({ tab, children, ...rest }: {
|
|
67
|
-
tab:
|
|
61
|
+
tab: import("../../types").SidebarTabName;
|
|
68
62
|
children: React.ReactNode;
|
|
69
63
|
} & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
70
64
|
displayName: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { SidebarTabName } from "../../types";
|
|
3
2
|
export declare const SidebarTab: {
|
|
4
3
|
({ tab, children, ...rest }: {
|
|
5
4
|
tab: SidebarTabName;
|
|
6
5
|
children: React.ReactNode;
|
|
7
|
-
} &
|
|
6
|
+
} & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
displayName: string;
|
|
9
8
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { SidebarTabName } from "../../types";
|
|
3
2
|
export declare const SidebarTabTrigger: {
|
|
4
3
|
({ children, tab, onSelect, ...rest }: {
|
|
5
4
|
children: React.ReactNode;
|
|
6
5
|
tab: SidebarTabName;
|
|
7
6
|
onSelect?: React.ReactEventHandler<HTMLButtonElement> | undefined;
|
|
8
|
-
} & Omit<
|
|
7
|
+
} & Omit<React.HTMLAttributes<HTMLButtonElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
displayName: string;
|
|
10
9
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SidebarTabTriggers: {
|
|
3
2
|
({ children, ...rest }: {
|
|
4
3
|
children: React.ReactNode;
|
|
5
|
-
} & Omit<
|
|
4
|
+
} & Omit<React.RefAttributes<HTMLDivElement>, "onSelect">): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
displayName: string;
|
|
7
6
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SidebarTabs: {
|
|
3
2
|
({ children, ...rest }: {
|
|
4
3
|
children: React.ReactNode;
|
|
5
|
-
} & Omit<
|
|
4
|
+
} & Omit<React.RefAttributes<HTMLDivElement>, "onSelect">): import("react/jsx-runtime").JSX.Element | null;
|
|
6
5
|
displayName: string;
|
|
7
6
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./Spinner.scss";
|
|
2
2
|
declare const Spinner: ({ size, circleWidth, synchronized, className, }: {
|
|
3
|
-
size?: string | number
|
|
4
|
-
circleWidth?: number
|
|
5
|
-
synchronized?: boolean
|
|
6
|
-
className?: string
|
|
3
|
+
size?: string | number;
|
|
4
|
+
circleWidth?: number;
|
|
5
|
+
synchronized?: boolean;
|
|
6
|
+
className?: string;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default Spinner;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { NonDeletedExcalidrawElement } from "@excalidraw/element/types";
|
|
3
2
|
import "./Stats.scss";
|
|
4
3
|
import type { AppClassProperties, AppState, ExcalidrawProps } from "../../types";
|
|
@@ -12,18 +11,18 @@ export declare const Stats: {
|
|
|
12
11
|
StatsRow: {
|
|
13
12
|
({ children, columns, heading, style, ...rest }: {
|
|
14
13
|
children: React.ReactNode;
|
|
15
|
-
columns?: number
|
|
16
|
-
heading?: boolean
|
|
17
|
-
style?:
|
|
18
|
-
} &
|
|
14
|
+
columns?: number;
|
|
15
|
+
heading?: boolean;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
} & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
displayName: string;
|
|
20
19
|
};
|
|
21
20
|
StatsRows: {
|
|
22
21
|
({ children, order, style, ...rest }: {
|
|
23
22
|
children: React.ReactNode;
|
|
24
|
-
order?: number
|
|
25
|
-
style?:
|
|
26
|
-
} &
|
|
23
|
+
order?: number;
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
} & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
27
26
|
displayName: string;
|
|
28
27
|
};
|
|
29
28
|
};
|