@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
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type SceneBounds } from "@excalidraw/element";
|
|
3
2
|
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
4
3
|
import type { AppState, Offsets } from "../types";
|
|
5
4
|
export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
|
|
6
|
-
keyTest?: ((event: KeyboardEvent |
|
|
5
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
7
6
|
};
|
|
8
7
|
export declare const actionClearCanvas: {
|
|
9
8
|
name: "clearCanvas";
|
|
@@ -49,33 +48,31 @@ export declare const actionClearCanvas: {
|
|
|
49
48
|
clip: boolean;
|
|
50
49
|
};
|
|
51
50
|
name: string | null;
|
|
52
|
-
zoom:
|
|
53
|
-
value: import("../types").NormalizedZoomValue;
|
|
54
|
-
}>;
|
|
51
|
+
zoom: import("../types").Zoom;
|
|
55
52
|
scrollX: number;
|
|
56
53
|
scrollY: number;
|
|
57
54
|
viewModeEnabled: boolean;
|
|
58
|
-
openDialog: {
|
|
55
|
+
openDialog: null | {
|
|
59
56
|
name: "imageExport" | "help" | "jsonExport";
|
|
60
57
|
} | {
|
|
61
58
|
name: "ttd";
|
|
62
|
-
tab: "
|
|
59
|
+
tab: "text-to-diagram" | "mermaid";
|
|
63
60
|
} | {
|
|
64
61
|
name: "commandPalette";
|
|
65
62
|
} | {
|
|
66
63
|
name: "settings";
|
|
67
64
|
} | {
|
|
68
65
|
name: "elementLinkSelector";
|
|
69
|
-
sourceElementId:
|
|
70
|
-
}
|
|
71
|
-
editingGroupId:
|
|
66
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
67
|
+
};
|
|
68
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
72
69
|
selectedElementIds: Readonly<{
|
|
73
70
|
[id: string]: true;
|
|
74
71
|
}>;
|
|
75
72
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
76
73
|
activeEmbeddable: {
|
|
77
74
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
78
|
-
state: "
|
|
75
|
+
state: "hover" | "active";
|
|
79
76
|
} | null;
|
|
80
77
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
81
78
|
selectedGroupIds: {
|
|
@@ -88,33 +85,14 @@ export declare const actionClearCanvas: {
|
|
|
88
85
|
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
89
86
|
isRotating: boolean;
|
|
90
87
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
91
|
-
collaborators: Map<import("../types").SocketId,
|
|
92
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
93
|
-
button?: "up" | "down" | undefined;
|
|
94
|
-
selectedElementIds?: Readonly<{
|
|
95
|
-
[id: string]: true;
|
|
96
|
-
}> | undefined;
|
|
97
|
-
username?: string | null | undefined;
|
|
98
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
99
|
-
color?: {
|
|
100
|
-
background: string;
|
|
101
|
-
stroke: string;
|
|
102
|
-
} | undefined;
|
|
103
|
-
avatarUrl?: string | undefined;
|
|
104
|
-
id?: string | undefined;
|
|
105
|
-
socketId?: import("../types").SocketId | undefined;
|
|
106
|
-
isCurrentUser?: boolean | undefined;
|
|
107
|
-
isInCall?: boolean | undefined;
|
|
108
|
-
isSpeaking?: boolean | undefined;
|
|
109
|
-
isMuted?: boolean | undefined;
|
|
110
|
-
}>>;
|
|
88
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
111
89
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
112
90
|
zenModeEnabled: boolean;
|
|
113
91
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
114
92
|
isCropping: boolean;
|
|
115
|
-
croppingElementId:
|
|
93
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
116
94
|
searchMatches: Readonly<{
|
|
117
|
-
focusedId:
|
|
95
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
118
96
|
matches: readonly import("../types").SearchMatch[];
|
|
119
97
|
}> | null;
|
|
120
98
|
activeLockedId: string | null;
|
|
@@ -131,7 +109,7 @@ export declare const actionClearCanvas: {
|
|
|
131
109
|
} | null;
|
|
132
110
|
showWelcomeScreen: boolean;
|
|
133
111
|
isLoading: boolean;
|
|
134
|
-
errorMessage:
|
|
112
|
+
errorMessage: React.ReactNode;
|
|
135
113
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
136
114
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
137
115
|
editingFrame: string | null;
|
|
@@ -142,27 +120,27 @@ export declare const actionClearCanvas: {
|
|
|
142
120
|
exportWithDarkMode: boolean;
|
|
143
121
|
currentItemStrokeColor: string;
|
|
144
122
|
currentItemBackgroundColor: string;
|
|
145
|
-
currentItemFillStyle:
|
|
123
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
146
124
|
currentItemStrokeWidth: number;
|
|
147
|
-
currentItemStrokeStyle:
|
|
125
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
148
126
|
currentItemRoughness: number;
|
|
149
127
|
currentItemOpacity: number;
|
|
150
|
-
currentItemFontFamily:
|
|
128
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
151
129
|
currentItemFontSize: number;
|
|
152
|
-
currentItemTextAlign:
|
|
130
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
153
131
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
154
132
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
155
|
-
currentHoveredFontFamily:
|
|
133
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
156
134
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
157
|
-
currentItemArrowType: "
|
|
135
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
158
136
|
cursorButton: "up" | "down";
|
|
159
137
|
scrolledOutside: boolean;
|
|
160
138
|
isResizing: boolean;
|
|
161
139
|
openMenu: "canvas" | null;
|
|
162
|
-
openPopup: "
|
|
140
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
163
141
|
openSidebar: {
|
|
164
|
-
name:
|
|
165
|
-
tab?:
|
|
142
|
+
name: import("../types").SidebarName;
|
|
143
|
+
tab?: import("../types").SidebarTabName;
|
|
166
144
|
} | null;
|
|
167
145
|
defaultSidebarDockedPreference: boolean;
|
|
168
146
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
@@ -172,8 +150,8 @@ export declare const actionClearCanvas: {
|
|
|
172
150
|
selectedElementsAreBeingDragged: boolean;
|
|
173
151
|
toast: {
|
|
174
152
|
message: string;
|
|
175
|
-
closable?: boolean
|
|
176
|
-
duration?: number
|
|
153
|
+
closable?: boolean;
|
|
154
|
+
duration?: number;
|
|
177
155
|
} | null;
|
|
178
156
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
179
157
|
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
@@ -217,10 +195,10 @@ export declare const actionZoomIn: {
|
|
|
217
195
|
} | null;
|
|
218
196
|
showWelcomeScreen: boolean;
|
|
219
197
|
isLoading: boolean;
|
|
220
|
-
errorMessage:
|
|
198
|
+
errorMessage: React.ReactNode;
|
|
221
199
|
activeEmbeddable: {
|
|
222
200
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
223
|
-
state: "
|
|
201
|
+
state: "hover" | "active";
|
|
224
202
|
} | null;
|
|
225
203
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
226
204
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -256,19 +234,19 @@ export declare const actionZoomIn: {
|
|
|
256
234
|
exportScale: number;
|
|
257
235
|
currentItemStrokeColor: string;
|
|
258
236
|
currentItemBackgroundColor: string;
|
|
259
|
-
currentItemFillStyle:
|
|
237
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
260
238
|
currentItemStrokeWidth: number;
|
|
261
|
-
currentItemStrokeStyle:
|
|
239
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
262
240
|
currentItemRoughness: number;
|
|
263
241
|
currentItemOpacity: number;
|
|
264
|
-
currentItemFontFamily:
|
|
242
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
265
243
|
currentItemFontSize: number;
|
|
266
|
-
currentItemTextAlign:
|
|
244
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
267
245
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
268
246
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
269
|
-
currentHoveredFontFamily:
|
|
247
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
270
248
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
271
|
-
currentItemArrowType: "
|
|
249
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
272
250
|
viewBackgroundColor: string;
|
|
273
251
|
cursorButton: "up" | "down";
|
|
274
252
|
scrolledOutside: boolean;
|
|
@@ -276,24 +254,24 @@ export declare const actionZoomIn: {
|
|
|
276
254
|
isResizing: boolean;
|
|
277
255
|
isRotating: boolean;
|
|
278
256
|
openMenu: "canvas" | null;
|
|
279
|
-
openPopup: "
|
|
257
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
280
258
|
openSidebar: {
|
|
281
|
-
name:
|
|
282
|
-
tab?:
|
|
259
|
+
name: import("../types").SidebarName;
|
|
260
|
+
tab?: import("../types").SidebarTabName;
|
|
283
261
|
} | null;
|
|
284
|
-
openDialog: {
|
|
262
|
+
openDialog: null | {
|
|
285
263
|
name: "imageExport" | "help" | "jsonExport";
|
|
286
264
|
} | {
|
|
287
265
|
name: "ttd";
|
|
288
|
-
tab: "
|
|
266
|
+
tab: "text-to-diagram" | "mermaid";
|
|
289
267
|
} | {
|
|
290
268
|
name: "commandPalette";
|
|
291
269
|
} | {
|
|
292
270
|
name: "settings";
|
|
293
271
|
} | {
|
|
294
272
|
name: "elementLinkSelector";
|
|
295
|
-
sourceElementId:
|
|
296
|
-
}
|
|
273
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
274
|
+
};
|
|
297
275
|
defaultSidebarDockedPreference: boolean;
|
|
298
276
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
299
277
|
selectedElementIds: Readonly<{
|
|
@@ -309,8 +287,8 @@ export declare const actionZoomIn: {
|
|
|
309
287
|
shouldCacheIgnoreZoom: boolean;
|
|
310
288
|
toast: {
|
|
311
289
|
message: string;
|
|
312
|
-
closable?: boolean
|
|
313
|
-
duration?: number
|
|
290
|
+
closable?: boolean;
|
|
291
|
+
duration?: number;
|
|
314
292
|
} | null;
|
|
315
293
|
zenModeEnabled: boolean;
|
|
316
294
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -321,32 +299,13 @@ export declare const actionZoomIn: {
|
|
|
321
299
|
selectedGroupIds: {
|
|
322
300
|
[groupId: string]: boolean;
|
|
323
301
|
};
|
|
324
|
-
editingGroupId:
|
|
302
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
325
303
|
width: number;
|
|
326
304
|
height: number;
|
|
327
305
|
offsetTop: number;
|
|
328
306
|
offsetLeft: number;
|
|
329
307
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
330
|
-
collaborators: Map<import("../types").SocketId,
|
|
331
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
332
|
-
button?: "up" | "down" | undefined;
|
|
333
|
-
selectedElementIds?: Readonly<{
|
|
334
|
-
[id: string]: true;
|
|
335
|
-
}> | undefined;
|
|
336
|
-
username?: string | null | undefined;
|
|
337
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
338
|
-
color?: {
|
|
339
|
-
background: string;
|
|
340
|
-
stroke: string;
|
|
341
|
-
} | undefined;
|
|
342
|
-
avatarUrl?: string | undefined;
|
|
343
|
-
id?: string | undefined;
|
|
344
|
-
socketId?: import("../types").SocketId | undefined;
|
|
345
|
-
isCurrentUser?: boolean | undefined;
|
|
346
|
-
isInCall?: boolean | undefined;
|
|
347
|
-
isSpeaking?: boolean | undefined;
|
|
348
|
-
isMuted?: boolean | undefined;
|
|
349
|
-
}>>;
|
|
308
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
350
309
|
stats: {
|
|
351
310
|
open: boolean;
|
|
352
311
|
panels: number;
|
|
@@ -369,9 +328,9 @@ export declare const actionZoomIn: {
|
|
|
369
328
|
objectsSnapModeEnabled: boolean;
|
|
370
329
|
followedBy: Set<import("../types").SocketId>;
|
|
371
330
|
isCropping: boolean;
|
|
372
|
-
croppingElementId:
|
|
331
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
373
332
|
searchMatches: Readonly<{
|
|
374
|
-
focusedId:
|
|
333
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
375
334
|
matches: readonly import("../types").SearchMatch[];
|
|
376
335
|
}> | null;
|
|
377
336
|
activeLockedId: string | null;
|
|
@@ -410,10 +369,10 @@ export declare const actionZoomOut: {
|
|
|
410
369
|
} | null;
|
|
411
370
|
showWelcomeScreen: boolean;
|
|
412
371
|
isLoading: boolean;
|
|
413
|
-
errorMessage:
|
|
372
|
+
errorMessage: React.ReactNode;
|
|
414
373
|
activeEmbeddable: {
|
|
415
374
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
416
|
-
state: "
|
|
375
|
+
state: "hover" | "active";
|
|
417
376
|
} | null;
|
|
418
377
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
419
378
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -449,19 +408,19 @@ export declare const actionZoomOut: {
|
|
|
449
408
|
exportScale: number;
|
|
450
409
|
currentItemStrokeColor: string;
|
|
451
410
|
currentItemBackgroundColor: string;
|
|
452
|
-
currentItemFillStyle:
|
|
411
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
453
412
|
currentItemStrokeWidth: number;
|
|
454
|
-
currentItemStrokeStyle:
|
|
413
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
455
414
|
currentItemRoughness: number;
|
|
456
415
|
currentItemOpacity: number;
|
|
457
|
-
currentItemFontFamily:
|
|
416
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
458
417
|
currentItemFontSize: number;
|
|
459
|
-
currentItemTextAlign:
|
|
418
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
460
419
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
461
420
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
462
|
-
currentHoveredFontFamily:
|
|
421
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
463
422
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
464
|
-
currentItemArrowType: "
|
|
423
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
465
424
|
viewBackgroundColor: string;
|
|
466
425
|
cursorButton: "up" | "down";
|
|
467
426
|
scrolledOutside: boolean;
|
|
@@ -469,24 +428,24 @@ export declare const actionZoomOut: {
|
|
|
469
428
|
isResizing: boolean;
|
|
470
429
|
isRotating: boolean;
|
|
471
430
|
openMenu: "canvas" | null;
|
|
472
|
-
openPopup: "
|
|
431
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
473
432
|
openSidebar: {
|
|
474
|
-
name:
|
|
475
|
-
tab?:
|
|
433
|
+
name: import("../types").SidebarName;
|
|
434
|
+
tab?: import("../types").SidebarTabName;
|
|
476
435
|
} | null;
|
|
477
|
-
openDialog: {
|
|
436
|
+
openDialog: null | {
|
|
478
437
|
name: "imageExport" | "help" | "jsonExport";
|
|
479
438
|
} | {
|
|
480
439
|
name: "ttd";
|
|
481
|
-
tab: "
|
|
440
|
+
tab: "text-to-diagram" | "mermaid";
|
|
482
441
|
} | {
|
|
483
442
|
name: "commandPalette";
|
|
484
443
|
} | {
|
|
485
444
|
name: "settings";
|
|
486
445
|
} | {
|
|
487
446
|
name: "elementLinkSelector";
|
|
488
|
-
sourceElementId:
|
|
489
|
-
}
|
|
447
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
448
|
+
};
|
|
490
449
|
defaultSidebarDockedPreference: boolean;
|
|
491
450
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
492
451
|
selectedElementIds: Readonly<{
|
|
@@ -502,8 +461,8 @@ export declare const actionZoomOut: {
|
|
|
502
461
|
shouldCacheIgnoreZoom: boolean;
|
|
503
462
|
toast: {
|
|
504
463
|
message: string;
|
|
505
|
-
closable?: boolean
|
|
506
|
-
duration?: number
|
|
464
|
+
closable?: boolean;
|
|
465
|
+
duration?: number;
|
|
507
466
|
} | null;
|
|
508
467
|
zenModeEnabled: boolean;
|
|
509
468
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -514,32 +473,13 @@ export declare const actionZoomOut: {
|
|
|
514
473
|
selectedGroupIds: {
|
|
515
474
|
[groupId: string]: boolean;
|
|
516
475
|
};
|
|
517
|
-
editingGroupId:
|
|
476
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
518
477
|
width: number;
|
|
519
478
|
height: number;
|
|
520
479
|
offsetTop: number;
|
|
521
480
|
offsetLeft: number;
|
|
522
481
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
523
|
-
collaborators: Map<import("../types").SocketId,
|
|
524
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
525
|
-
button?: "up" | "down" | undefined;
|
|
526
|
-
selectedElementIds?: Readonly<{
|
|
527
|
-
[id: string]: true;
|
|
528
|
-
}> | undefined;
|
|
529
|
-
username?: string | null | undefined;
|
|
530
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
531
|
-
color?: {
|
|
532
|
-
background: string;
|
|
533
|
-
stroke: string;
|
|
534
|
-
} | undefined;
|
|
535
|
-
avatarUrl?: string | undefined;
|
|
536
|
-
id?: string | undefined;
|
|
537
|
-
socketId?: import("../types").SocketId | undefined;
|
|
538
|
-
isCurrentUser?: boolean | undefined;
|
|
539
|
-
isInCall?: boolean | undefined;
|
|
540
|
-
isSpeaking?: boolean | undefined;
|
|
541
|
-
isMuted?: boolean | undefined;
|
|
542
|
-
}>>;
|
|
482
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
543
483
|
stats: {
|
|
544
484
|
open: boolean;
|
|
545
485
|
panels: number;
|
|
@@ -562,9 +502,9 @@ export declare const actionZoomOut: {
|
|
|
562
502
|
objectsSnapModeEnabled: boolean;
|
|
563
503
|
followedBy: Set<import("../types").SocketId>;
|
|
564
504
|
isCropping: boolean;
|
|
565
|
-
croppingElementId:
|
|
505
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
566
506
|
searchMatches: Readonly<{
|
|
567
|
-
focusedId:
|
|
507
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
568
508
|
matches: readonly import("../types").SearchMatch[];
|
|
569
509
|
}> | null;
|
|
570
510
|
activeLockedId: string | null;
|
|
@@ -603,10 +543,10 @@ export declare const actionResetZoom: {
|
|
|
603
543
|
} | null;
|
|
604
544
|
showWelcomeScreen: boolean;
|
|
605
545
|
isLoading: boolean;
|
|
606
|
-
errorMessage:
|
|
546
|
+
errorMessage: React.ReactNode;
|
|
607
547
|
activeEmbeddable: {
|
|
608
548
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
609
|
-
state: "
|
|
549
|
+
state: "hover" | "active";
|
|
610
550
|
} | null;
|
|
611
551
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
612
552
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -642,19 +582,19 @@ export declare const actionResetZoom: {
|
|
|
642
582
|
exportScale: number;
|
|
643
583
|
currentItemStrokeColor: string;
|
|
644
584
|
currentItemBackgroundColor: string;
|
|
645
|
-
currentItemFillStyle:
|
|
585
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
646
586
|
currentItemStrokeWidth: number;
|
|
647
|
-
currentItemStrokeStyle:
|
|
587
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
648
588
|
currentItemRoughness: number;
|
|
649
589
|
currentItemOpacity: number;
|
|
650
|
-
currentItemFontFamily:
|
|
590
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
651
591
|
currentItemFontSize: number;
|
|
652
|
-
currentItemTextAlign:
|
|
592
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
653
593
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
654
594
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
655
|
-
currentHoveredFontFamily:
|
|
595
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
656
596
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
657
|
-
currentItemArrowType: "
|
|
597
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
658
598
|
viewBackgroundColor: string;
|
|
659
599
|
cursorButton: "up" | "down";
|
|
660
600
|
scrolledOutside: boolean;
|
|
@@ -662,24 +602,24 @@ export declare const actionResetZoom: {
|
|
|
662
602
|
isResizing: boolean;
|
|
663
603
|
isRotating: boolean;
|
|
664
604
|
openMenu: "canvas" | null;
|
|
665
|
-
openPopup: "
|
|
605
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
666
606
|
openSidebar: {
|
|
667
|
-
name:
|
|
668
|
-
tab?:
|
|
607
|
+
name: import("../types").SidebarName;
|
|
608
|
+
tab?: import("../types").SidebarTabName;
|
|
669
609
|
} | null;
|
|
670
|
-
openDialog: {
|
|
610
|
+
openDialog: null | {
|
|
671
611
|
name: "imageExport" | "help" | "jsonExport";
|
|
672
612
|
} | {
|
|
673
613
|
name: "ttd";
|
|
674
|
-
tab: "
|
|
614
|
+
tab: "text-to-diagram" | "mermaid";
|
|
675
615
|
} | {
|
|
676
616
|
name: "commandPalette";
|
|
677
617
|
} | {
|
|
678
618
|
name: "settings";
|
|
679
619
|
} | {
|
|
680
620
|
name: "elementLinkSelector";
|
|
681
|
-
sourceElementId:
|
|
682
|
-
}
|
|
621
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
622
|
+
};
|
|
683
623
|
defaultSidebarDockedPreference: boolean;
|
|
684
624
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
685
625
|
selectedElementIds: Readonly<{
|
|
@@ -695,8 +635,8 @@ export declare const actionResetZoom: {
|
|
|
695
635
|
shouldCacheIgnoreZoom: boolean;
|
|
696
636
|
toast: {
|
|
697
637
|
message: string;
|
|
698
|
-
closable?: boolean
|
|
699
|
-
duration?: number
|
|
638
|
+
closable?: boolean;
|
|
639
|
+
duration?: number;
|
|
700
640
|
} | null;
|
|
701
641
|
zenModeEnabled: boolean;
|
|
702
642
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -707,32 +647,13 @@ export declare const actionResetZoom: {
|
|
|
707
647
|
selectedGroupIds: {
|
|
708
648
|
[groupId: string]: boolean;
|
|
709
649
|
};
|
|
710
|
-
editingGroupId:
|
|
650
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
711
651
|
width: number;
|
|
712
652
|
height: number;
|
|
713
653
|
offsetTop: number;
|
|
714
654
|
offsetLeft: number;
|
|
715
655
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
716
|
-
collaborators: Map<import("../types").SocketId,
|
|
717
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
718
|
-
button?: "up" | "down" | undefined;
|
|
719
|
-
selectedElementIds?: Readonly<{
|
|
720
|
-
[id: string]: true;
|
|
721
|
-
}> | undefined;
|
|
722
|
-
username?: string | null | undefined;
|
|
723
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
724
|
-
color?: {
|
|
725
|
-
background: string;
|
|
726
|
-
stroke: string;
|
|
727
|
-
} | undefined;
|
|
728
|
-
avatarUrl?: string | undefined;
|
|
729
|
-
id?: string | undefined;
|
|
730
|
-
socketId?: import("../types").SocketId | undefined;
|
|
731
|
-
isCurrentUser?: boolean | undefined;
|
|
732
|
-
isInCall?: boolean | undefined;
|
|
733
|
-
isSpeaking?: boolean | undefined;
|
|
734
|
-
isMuted?: boolean | undefined;
|
|
735
|
-
}>>;
|
|
656
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
736
657
|
stats: {
|
|
737
658
|
open: boolean;
|
|
738
659
|
panels: number;
|
|
@@ -755,9 +676,9 @@ export declare const actionResetZoom: {
|
|
|
755
676
|
objectsSnapModeEnabled: boolean;
|
|
756
677
|
followedBy: Set<import("../types").SocketId>;
|
|
757
678
|
isCropping: boolean;
|
|
758
|
-
croppingElementId:
|
|
679
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
759
680
|
searchMatches: Readonly<{
|
|
760
|
-
focusedId:
|
|
681
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
761
682
|
matches: readonly import("../types").SearchMatch[];
|
|
762
683
|
}> | null;
|
|
763
684
|
activeLockedId: string | null;
|
|
@@ -775,19 +696,14 @@ export declare const actionResetZoom: {
|
|
|
775
696
|
};
|
|
776
697
|
export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
777
698
|
bounds: SceneBounds;
|
|
778
|
-
canvasOffsets?:
|
|
779
|
-
top: number;
|
|
780
|
-
right: number;
|
|
781
|
-
bottom: number;
|
|
782
|
-
left: number;
|
|
783
|
-
}> | undefined;
|
|
699
|
+
canvasOffsets?: Offsets;
|
|
784
700
|
appState: Readonly<AppState>;
|
|
785
701
|
/** whether to fit content to viewport (beyond >100%) */
|
|
786
702
|
fitToViewport: boolean;
|
|
787
703
|
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
788
|
-
viewportZoomFactor?: number
|
|
789
|
-
minZoom?: number
|
|
790
|
-
maxZoom?: number
|
|
704
|
+
viewportZoomFactor?: number;
|
|
705
|
+
minZoom?: number;
|
|
706
|
+
maxZoom?: number;
|
|
791
707
|
}) => {
|
|
792
708
|
appState: {
|
|
793
709
|
scrollX: number;
|
|
@@ -802,10 +718,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
802
718
|
} | null;
|
|
803
719
|
showWelcomeScreen: boolean;
|
|
804
720
|
isLoading: boolean;
|
|
805
|
-
errorMessage:
|
|
721
|
+
errorMessage: React.ReactNode;
|
|
806
722
|
activeEmbeddable: {
|
|
807
723
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
808
|
-
state: "
|
|
724
|
+
state: "hover" | "active";
|
|
809
725
|
} | null;
|
|
810
726
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
811
727
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -841,19 +757,19 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
841
757
|
exportScale: number;
|
|
842
758
|
currentItemStrokeColor: string;
|
|
843
759
|
currentItemBackgroundColor: string;
|
|
844
|
-
currentItemFillStyle:
|
|
760
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
845
761
|
currentItemStrokeWidth: number;
|
|
846
|
-
currentItemStrokeStyle:
|
|
762
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
847
763
|
currentItemRoughness: number;
|
|
848
764
|
currentItemOpacity: number;
|
|
849
|
-
currentItemFontFamily:
|
|
765
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
850
766
|
currentItemFontSize: number;
|
|
851
|
-
currentItemTextAlign:
|
|
767
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
852
768
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
853
769
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
854
|
-
currentHoveredFontFamily:
|
|
770
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
855
771
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
856
|
-
currentItemArrowType: "
|
|
772
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
857
773
|
viewBackgroundColor: string;
|
|
858
774
|
cursorButton: "up" | "down";
|
|
859
775
|
scrolledOutside: boolean;
|
|
@@ -861,24 +777,24 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
861
777
|
isResizing: boolean;
|
|
862
778
|
isRotating: boolean;
|
|
863
779
|
openMenu: "canvas" | null;
|
|
864
|
-
openPopup: "
|
|
780
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
865
781
|
openSidebar: {
|
|
866
|
-
name:
|
|
867
|
-
tab?:
|
|
782
|
+
name: import("../types").SidebarName;
|
|
783
|
+
tab?: import("../types").SidebarTabName;
|
|
868
784
|
} | null;
|
|
869
|
-
openDialog: {
|
|
785
|
+
openDialog: null | {
|
|
870
786
|
name: "imageExport" | "help" | "jsonExport";
|
|
871
787
|
} | {
|
|
872
788
|
name: "ttd";
|
|
873
|
-
tab: "
|
|
789
|
+
tab: "text-to-diagram" | "mermaid";
|
|
874
790
|
} | {
|
|
875
791
|
name: "commandPalette";
|
|
876
792
|
} | {
|
|
877
793
|
name: "settings";
|
|
878
794
|
} | {
|
|
879
795
|
name: "elementLinkSelector";
|
|
880
|
-
sourceElementId:
|
|
881
|
-
}
|
|
796
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
797
|
+
};
|
|
882
798
|
defaultSidebarDockedPreference: boolean;
|
|
883
799
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
884
800
|
selectedElementIds: Readonly<{
|
|
@@ -894,8 +810,8 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
894
810
|
shouldCacheIgnoreZoom: boolean;
|
|
895
811
|
toast: {
|
|
896
812
|
message: string;
|
|
897
|
-
closable?: boolean
|
|
898
|
-
duration?: number
|
|
813
|
+
closable?: boolean;
|
|
814
|
+
duration?: number;
|
|
899
815
|
} | null;
|
|
900
816
|
zenModeEnabled: boolean;
|
|
901
817
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -906,32 +822,13 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
906
822
|
selectedGroupIds: {
|
|
907
823
|
[groupId: string]: boolean;
|
|
908
824
|
};
|
|
909
|
-
editingGroupId:
|
|
825
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
910
826
|
width: number;
|
|
911
827
|
height: number;
|
|
912
828
|
offsetTop: number;
|
|
913
829
|
offsetLeft: number;
|
|
914
830
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
915
|
-
collaborators: Map<import("../types").SocketId,
|
|
916
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
917
|
-
button?: "up" | "down" | undefined;
|
|
918
|
-
selectedElementIds?: Readonly<{
|
|
919
|
-
[id: string]: true;
|
|
920
|
-
}> | undefined;
|
|
921
|
-
username?: string | null | undefined;
|
|
922
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
923
|
-
color?: {
|
|
924
|
-
background: string;
|
|
925
|
-
stroke: string;
|
|
926
|
-
} | undefined;
|
|
927
|
-
avatarUrl?: string | undefined;
|
|
928
|
-
id?: string | undefined;
|
|
929
|
-
socketId?: import("../types").SocketId | undefined;
|
|
930
|
-
isCurrentUser?: boolean | undefined;
|
|
931
|
-
isInCall?: boolean | undefined;
|
|
932
|
-
isSpeaking?: boolean | undefined;
|
|
933
|
-
isMuted?: boolean | undefined;
|
|
934
|
-
}>>;
|
|
831
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
935
832
|
stats: {
|
|
936
833
|
open: boolean;
|
|
937
834
|
panels: number;
|
|
@@ -955,9 +852,9 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
955
852
|
userToFollow: import("../types").UserToFollow | null;
|
|
956
853
|
followedBy: Set<import("../types").SocketId>;
|
|
957
854
|
isCropping: boolean;
|
|
958
|
-
croppingElementId:
|
|
855
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
959
856
|
searchMatches: Readonly<{
|
|
960
|
-
focusedId:
|
|
857
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
961
858
|
matches: readonly import("../types").SearchMatch[];
|
|
962
859
|
}> | null;
|
|
963
860
|
activeLockedId: string | null;
|
|
@@ -969,20 +866,15 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
969
866
|
captureUpdate: "EVENTUALLY";
|
|
970
867
|
};
|
|
971
868
|
export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
972
|
-
canvasOffsets?:
|
|
973
|
-
top: number;
|
|
974
|
-
right: number;
|
|
975
|
-
bottom: number;
|
|
976
|
-
left: number;
|
|
977
|
-
}> | undefined;
|
|
869
|
+
canvasOffsets?: Offsets;
|
|
978
870
|
targetElements: readonly ExcalidrawElement[];
|
|
979
871
|
appState: Readonly<AppState>;
|
|
980
872
|
/** whether to fit content to viewport (beyond >100%) */
|
|
981
873
|
fitToViewport: boolean;
|
|
982
874
|
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
983
|
-
viewportZoomFactor?: number
|
|
984
|
-
minZoom?: number
|
|
985
|
-
maxZoom?: number
|
|
875
|
+
viewportZoomFactor?: number;
|
|
876
|
+
minZoom?: number;
|
|
877
|
+
maxZoom?: number;
|
|
986
878
|
}) => {
|
|
987
879
|
appState: {
|
|
988
880
|
scrollX: number;
|
|
@@ -997,10 +889,10 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
997
889
|
} | null;
|
|
998
890
|
showWelcomeScreen: boolean;
|
|
999
891
|
isLoading: boolean;
|
|
1000
|
-
errorMessage:
|
|
892
|
+
errorMessage: React.ReactNode;
|
|
1001
893
|
activeEmbeddable: {
|
|
1002
894
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1003
|
-
state: "
|
|
895
|
+
state: "hover" | "active";
|
|
1004
896
|
} | null;
|
|
1005
897
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1006
898
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1036,19 +928,19 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1036
928
|
exportScale: number;
|
|
1037
929
|
currentItemStrokeColor: string;
|
|
1038
930
|
currentItemBackgroundColor: string;
|
|
1039
|
-
currentItemFillStyle:
|
|
931
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1040
932
|
currentItemStrokeWidth: number;
|
|
1041
|
-
currentItemStrokeStyle:
|
|
933
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1042
934
|
currentItemRoughness: number;
|
|
1043
935
|
currentItemOpacity: number;
|
|
1044
|
-
currentItemFontFamily:
|
|
936
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1045
937
|
currentItemFontSize: number;
|
|
1046
|
-
currentItemTextAlign:
|
|
938
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1047
939
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1048
940
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1049
|
-
currentHoveredFontFamily:
|
|
941
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1050
942
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1051
|
-
currentItemArrowType: "
|
|
943
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1052
944
|
viewBackgroundColor: string;
|
|
1053
945
|
cursorButton: "up" | "down";
|
|
1054
946
|
scrolledOutside: boolean;
|
|
@@ -1056,24 +948,24 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1056
948
|
isResizing: boolean;
|
|
1057
949
|
isRotating: boolean;
|
|
1058
950
|
openMenu: "canvas" | null;
|
|
1059
|
-
openPopup: "
|
|
951
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1060
952
|
openSidebar: {
|
|
1061
|
-
name:
|
|
1062
|
-
tab?:
|
|
953
|
+
name: import("../types").SidebarName;
|
|
954
|
+
tab?: import("../types").SidebarTabName;
|
|
1063
955
|
} | null;
|
|
1064
|
-
openDialog: {
|
|
956
|
+
openDialog: null | {
|
|
1065
957
|
name: "imageExport" | "help" | "jsonExport";
|
|
1066
958
|
} | {
|
|
1067
959
|
name: "ttd";
|
|
1068
|
-
tab: "
|
|
960
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1069
961
|
} | {
|
|
1070
962
|
name: "commandPalette";
|
|
1071
963
|
} | {
|
|
1072
964
|
name: "settings";
|
|
1073
965
|
} | {
|
|
1074
966
|
name: "elementLinkSelector";
|
|
1075
|
-
sourceElementId:
|
|
1076
|
-
}
|
|
967
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
968
|
+
};
|
|
1077
969
|
defaultSidebarDockedPreference: boolean;
|
|
1078
970
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1079
971
|
selectedElementIds: Readonly<{
|
|
@@ -1089,8 +981,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1089
981
|
shouldCacheIgnoreZoom: boolean;
|
|
1090
982
|
toast: {
|
|
1091
983
|
message: string;
|
|
1092
|
-
closable?: boolean
|
|
1093
|
-
duration?: number
|
|
984
|
+
closable?: boolean;
|
|
985
|
+
duration?: number;
|
|
1094
986
|
} | null;
|
|
1095
987
|
zenModeEnabled: boolean;
|
|
1096
988
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1101,32 +993,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1101
993
|
selectedGroupIds: {
|
|
1102
994
|
[groupId: string]: boolean;
|
|
1103
995
|
};
|
|
1104
|
-
editingGroupId:
|
|
996
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1105
997
|
width: number;
|
|
1106
998
|
height: number;
|
|
1107
999
|
offsetTop: number;
|
|
1108
1000
|
offsetLeft: number;
|
|
1109
1001
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1110
|
-
collaborators: Map<import("../types").SocketId,
|
|
1111
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1112
|
-
button?: "up" | "down" | undefined;
|
|
1113
|
-
selectedElementIds?: Readonly<{
|
|
1114
|
-
[id: string]: true;
|
|
1115
|
-
}> | undefined;
|
|
1116
|
-
username?: string | null | undefined;
|
|
1117
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1118
|
-
color?: {
|
|
1119
|
-
background: string;
|
|
1120
|
-
stroke: string;
|
|
1121
|
-
} | undefined;
|
|
1122
|
-
avatarUrl?: string | undefined;
|
|
1123
|
-
id?: string | undefined;
|
|
1124
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1125
|
-
isCurrentUser?: boolean | undefined;
|
|
1126
|
-
isInCall?: boolean | undefined;
|
|
1127
|
-
isSpeaking?: boolean | undefined;
|
|
1128
|
-
isMuted?: boolean | undefined;
|
|
1129
|
-
}>>;
|
|
1002
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1130
1003
|
stats: {
|
|
1131
1004
|
open: boolean;
|
|
1132
1005
|
panels: number;
|
|
@@ -1150,9 +1023,9 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1150
1023
|
userToFollow: import("../types").UserToFollow | null;
|
|
1151
1024
|
followedBy: Set<import("../types").SocketId>;
|
|
1152
1025
|
isCropping: boolean;
|
|
1153
|
-
croppingElementId:
|
|
1026
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1154
1027
|
searchMatches: Readonly<{
|
|
1155
|
-
focusedId:
|
|
1028
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1156
1029
|
matches: readonly import("../types").SearchMatch[];
|
|
1157
1030
|
}> | null;
|
|
1158
1031
|
activeLockedId: string | null;
|
|
@@ -1184,10 +1057,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1184
1057
|
} | null;
|
|
1185
1058
|
showWelcomeScreen: boolean;
|
|
1186
1059
|
isLoading: boolean;
|
|
1187
|
-
errorMessage:
|
|
1060
|
+
errorMessage: React.ReactNode;
|
|
1188
1061
|
activeEmbeddable: {
|
|
1189
1062
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1190
|
-
state: "
|
|
1063
|
+
state: "hover" | "active";
|
|
1191
1064
|
} | null;
|
|
1192
1065
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1193
1066
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1223,19 +1096,19 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1223
1096
|
exportScale: number;
|
|
1224
1097
|
currentItemStrokeColor: string;
|
|
1225
1098
|
currentItemBackgroundColor: string;
|
|
1226
|
-
currentItemFillStyle:
|
|
1099
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1227
1100
|
currentItemStrokeWidth: number;
|
|
1228
|
-
currentItemStrokeStyle:
|
|
1101
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1229
1102
|
currentItemRoughness: number;
|
|
1230
1103
|
currentItemOpacity: number;
|
|
1231
|
-
currentItemFontFamily:
|
|
1104
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1232
1105
|
currentItemFontSize: number;
|
|
1233
|
-
currentItemTextAlign:
|
|
1106
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1234
1107
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1235
1108
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1236
|
-
currentHoveredFontFamily:
|
|
1109
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1237
1110
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1238
|
-
currentItemArrowType: "
|
|
1111
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1239
1112
|
viewBackgroundColor: string;
|
|
1240
1113
|
cursorButton: "up" | "down";
|
|
1241
1114
|
scrolledOutside: boolean;
|
|
@@ -1243,24 +1116,24 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1243
1116
|
isResizing: boolean;
|
|
1244
1117
|
isRotating: boolean;
|
|
1245
1118
|
openMenu: "canvas" | null;
|
|
1246
|
-
openPopup: "
|
|
1119
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1247
1120
|
openSidebar: {
|
|
1248
|
-
name:
|
|
1249
|
-
tab?:
|
|
1121
|
+
name: import("../types").SidebarName;
|
|
1122
|
+
tab?: import("../types").SidebarTabName;
|
|
1250
1123
|
} | null;
|
|
1251
|
-
openDialog: {
|
|
1124
|
+
openDialog: null | {
|
|
1252
1125
|
name: "imageExport" | "help" | "jsonExport";
|
|
1253
1126
|
} | {
|
|
1254
1127
|
name: "ttd";
|
|
1255
|
-
tab: "
|
|
1128
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1256
1129
|
} | {
|
|
1257
1130
|
name: "commandPalette";
|
|
1258
1131
|
} | {
|
|
1259
1132
|
name: "settings";
|
|
1260
1133
|
} | {
|
|
1261
1134
|
name: "elementLinkSelector";
|
|
1262
|
-
sourceElementId:
|
|
1263
|
-
}
|
|
1135
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1136
|
+
};
|
|
1264
1137
|
defaultSidebarDockedPreference: boolean;
|
|
1265
1138
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1266
1139
|
selectedElementIds: Readonly<{
|
|
@@ -1276,8 +1149,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1276
1149
|
shouldCacheIgnoreZoom: boolean;
|
|
1277
1150
|
toast: {
|
|
1278
1151
|
message: string;
|
|
1279
|
-
closable?: boolean
|
|
1280
|
-
duration?: number
|
|
1152
|
+
closable?: boolean;
|
|
1153
|
+
duration?: number;
|
|
1281
1154
|
} | null;
|
|
1282
1155
|
zenModeEnabled: boolean;
|
|
1283
1156
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1288,32 +1161,13 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1288
1161
|
selectedGroupIds: {
|
|
1289
1162
|
[groupId: string]: boolean;
|
|
1290
1163
|
};
|
|
1291
|
-
editingGroupId:
|
|
1164
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1292
1165
|
width: number;
|
|
1293
1166
|
height: number;
|
|
1294
1167
|
offsetTop: number;
|
|
1295
1168
|
offsetLeft: number;
|
|
1296
1169
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1297
|
-
collaborators: Map<import("../types").SocketId,
|
|
1298
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1299
|
-
button?: "up" | "down" | undefined;
|
|
1300
|
-
selectedElementIds?: Readonly<{
|
|
1301
|
-
[id: string]: true;
|
|
1302
|
-
}> | undefined;
|
|
1303
|
-
username?: string | null | undefined;
|
|
1304
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1305
|
-
color?: {
|
|
1306
|
-
background: string;
|
|
1307
|
-
stroke: string;
|
|
1308
|
-
} | undefined;
|
|
1309
|
-
avatarUrl?: string | undefined;
|
|
1310
|
-
id?: string | undefined;
|
|
1311
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1312
|
-
isCurrentUser?: boolean | undefined;
|
|
1313
|
-
isInCall?: boolean | undefined;
|
|
1314
|
-
isSpeaking?: boolean | undefined;
|
|
1315
|
-
isMuted?: boolean | undefined;
|
|
1316
|
-
}>>;
|
|
1170
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1317
1171
|
stats: {
|
|
1318
1172
|
open: boolean;
|
|
1319
1173
|
panels: number;
|
|
@@ -1337,9 +1191,9 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1337
1191
|
userToFollow: import("../types").UserToFollow | null;
|
|
1338
1192
|
followedBy: Set<import("../types").SocketId>;
|
|
1339
1193
|
isCropping: boolean;
|
|
1340
|
-
croppingElementId:
|
|
1194
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1341
1195
|
searchMatches: Readonly<{
|
|
1342
|
-
focusedId:
|
|
1196
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1343
1197
|
matches: readonly import("../types").SearchMatch[];
|
|
1344
1198
|
}> | null;
|
|
1345
1199
|
activeLockedId: string | null;
|
|
@@ -1375,10 +1229,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1375
1229
|
} | null;
|
|
1376
1230
|
showWelcomeScreen: boolean;
|
|
1377
1231
|
isLoading: boolean;
|
|
1378
|
-
errorMessage:
|
|
1232
|
+
errorMessage: React.ReactNode;
|
|
1379
1233
|
activeEmbeddable: {
|
|
1380
1234
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1381
|
-
state: "
|
|
1235
|
+
state: "hover" | "active";
|
|
1382
1236
|
} | null;
|
|
1383
1237
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1384
1238
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1414,19 +1268,19 @@ export declare const actionZoomToFitSelection: {
|
|
|
1414
1268
|
exportScale: number;
|
|
1415
1269
|
currentItemStrokeColor: string;
|
|
1416
1270
|
currentItemBackgroundColor: string;
|
|
1417
|
-
currentItemFillStyle:
|
|
1271
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1418
1272
|
currentItemStrokeWidth: number;
|
|
1419
|
-
currentItemStrokeStyle:
|
|
1273
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1420
1274
|
currentItemRoughness: number;
|
|
1421
1275
|
currentItemOpacity: number;
|
|
1422
|
-
currentItemFontFamily:
|
|
1276
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1423
1277
|
currentItemFontSize: number;
|
|
1424
|
-
currentItemTextAlign:
|
|
1278
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1425
1279
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1426
1280
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1427
|
-
currentHoveredFontFamily:
|
|
1281
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1428
1282
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1429
|
-
currentItemArrowType: "
|
|
1283
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1430
1284
|
viewBackgroundColor: string;
|
|
1431
1285
|
cursorButton: "up" | "down";
|
|
1432
1286
|
scrolledOutside: boolean;
|
|
@@ -1434,24 +1288,24 @@ export declare const actionZoomToFitSelection: {
|
|
|
1434
1288
|
isResizing: boolean;
|
|
1435
1289
|
isRotating: boolean;
|
|
1436
1290
|
openMenu: "canvas" | null;
|
|
1437
|
-
openPopup: "
|
|
1291
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1438
1292
|
openSidebar: {
|
|
1439
|
-
name:
|
|
1440
|
-
tab?:
|
|
1293
|
+
name: import("../types").SidebarName;
|
|
1294
|
+
tab?: import("../types").SidebarTabName;
|
|
1441
1295
|
} | null;
|
|
1442
|
-
openDialog: {
|
|
1296
|
+
openDialog: null | {
|
|
1443
1297
|
name: "imageExport" | "help" | "jsonExport";
|
|
1444
1298
|
} | {
|
|
1445
1299
|
name: "ttd";
|
|
1446
|
-
tab: "
|
|
1300
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1447
1301
|
} | {
|
|
1448
1302
|
name: "commandPalette";
|
|
1449
1303
|
} | {
|
|
1450
1304
|
name: "settings";
|
|
1451
1305
|
} | {
|
|
1452
1306
|
name: "elementLinkSelector";
|
|
1453
|
-
sourceElementId:
|
|
1454
|
-
}
|
|
1307
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1308
|
+
};
|
|
1455
1309
|
defaultSidebarDockedPreference: boolean;
|
|
1456
1310
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1457
1311
|
selectedElementIds: Readonly<{
|
|
@@ -1467,8 +1321,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1467
1321
|
shouldCacheIgnoreZoom: boolean;
|
|
1468
1322
|
toast: {
|
|
1469
1323
|
message: string;
|
|
1470
|
-
closable?: boolean
|
|
1471
|
-
duration?: number
|
|
1324
|
+
closable?: boolean;
|
|
1325
|
+
duration?: number;
|
|
1472
1326
|
} | null;
|
|
1473
1327
|
zenModeEnabled: boolean;
|
|
1474
1328
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1479,32 +1333,13 @@ export declare const actionZoomToFitSelection: {
|
|
|
1479
1333
|
selectedGroupIds: {
|
|
1480
1334
|
[groupId: string]: boolean;
|
|
1481
1335
|
};
|
|
1482
|
-
editingGroupId:
|
|
1336
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1483
1337
|
width: number;
|
|
1484
1338
|
height: number;
|
|
1485
1339
|
offsetTop: number;
|
|
1486
1340
|
offsetLeft: number;
|
|
1487
1341
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1488
|
-
collaborators: Map<import("../types").SocketId,
|
|
1489
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1490
|
-
button?: "up" | "down" | undefined;
|
|
1491
|
-
selectedElementIds?: Readonly<{
|
|
1492
|
-
[id: string]: true;
|
|
1493
|
-
}> | undefined;
|
|
1494
|
-
username?: string | null | undefined;
|
|
1495
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1496
|
-
color?: {
|
|
1497
|
-
background: string;
|
|
1498
|
-
stroke: string;
|
|
1499
|
-
} | undefined;
|
|
1500
|
-
avatarUrl?: string | undefined;
|
|
1501
|
-
id?: string | undefined;
|
|
1502
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1503
|
-
isCurrentUser?: boolean | undefined;
|
|
1504
|
-
isInCall?: boolean | undefined;
|
|
1505
|
-
isSpeaking?: boolean | undefined;
|
|
1506
|
-
isMuted?: boolean | undefined;
|
|
1507
|
-
}>>;
|
|
1342
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1508
1343
|
stats: {
|
|
1509
1344
|
open: boolean;
|
|
1510
1345
|
panels: number;
|
|
@@ -1528,9 +1363,9 @@ export declare const actionZoomToFitSelection: {
|
|
|
1528
1363
|
userToFollow: import("../types").UserToFollow | null;
|
|
1529
1364
|
followedBy: Set<import("../types").SocketId>;
|
|
1530
1365
|
isCropping: boolean;
|
|
1531
|
-
croppingElementId:
|
|
1366
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1532
1367
|
searchMatches: Readonly<{
|
|
1533
|
-
focusedId:
|
|
1368
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1534
1369
|
matches: readonly import("../types").SearchMatch[];
|
|
1535
1370
|
}> | null;
|
|
1536
1371
|
activeLockedId: string | null;
|
|
@@ -1567,10 +1402,10 @@ export declare const actionZoomToFit: {
|
|
|
1567
1402
|
} | null;
|
|
1568
1403
|
showWelcomeScreen: boolean;
|
|
1569
1404
|
isLoading: boolean;
|
|
1570
|
-
errorMessage:
|
|
1405
|
+
errorMessage: React.ReactNode;
|
|
1571
1406
|
activeEmbeddable: {
|
|
1572
1407
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1573
|
-
state: "
|
|
1408
|
+
state: "hover" | "active";
|
|
1574
1409
|
} | null;
|
|
1575
1410
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1576
1411
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1606,19 +1441,19 @@ export declare const actionZoomToFit: {
|
|
|
1606
1441
|
exportScale: number;
|
|
1607
1442
|
currentItemStrokeColor: string;
|
|
1608
1443
|
currentItemBackgroundColor: string;
|
|
1609
|
-
currentItemFillStyle:
|
|
1444
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1610
1445
|
currentItemStrokeWidth: number;
|
|
1611
|
-
currentItemStrokeStyle:
|
|
1446
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1612
1447
|
currentItemRoughness: number;
|
|
1613
1448
|
currentItemOpacity: number;
|
|
1614
|
-
currentItemFontFamily:
|
|
1449
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1615
1450
|
currentItemFontSize: number;
|
|
1616
|
-
currentItemTextAlign:
|
|
1451
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1617
1452
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1618
1453
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1619
|
-
currentHoveredFontFamily:
|
|
1454
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1620
1455
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1621
|
-
currentItemArrowType: "
|
|
1456
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1622
1457
|
viewBackgroundColor: string;
|
|
1623
1458
|
cursorButton: "up" | "down";
|
|
1624
1459
|
scrolledOutside: boolean;
|
|
@@ -1626,24 +1461,24 @@ export declare const actionZoomToFit: {
|
|
|
1626
1461
|
isResizing: boolean;
|
|
1627
1462
|
isRotating: boolean;
|
|
1628
1463
|
openMenu: "canvas" | null;
|
|
1629
|
-
openPopup: "
|
|
1464
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1630
1465
|
openSidebar: {
|
|
1631
|
-
name:
|
|
1632
|
-
tab?:
|
|
1466
|
+
name: import("../types").SidebarName;
|
|
1467
|
+
tab?: import("../types").SidebarTabName;
|
|
1633
1468
|
} | null;
|
|
1634
|
-
openDialog: {
|
|
1469
|
+
openDialog: null | {
|
|
1635
1470
|
name: "imageExport" | "help" | "jsonExport";
|
|
1636
1471
|
} | {
|
|
1637
1472
|
name: "ttd";
|
|
1638
|
-
tab: "
|
|
1473
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1639
1474
|
} | {
|
|
1640
1475
|
name: "commandPalette";
|
|
1641
1476
|
} | {
|
|
1642
1477
|
name: "settings";
|
|
1643
1478
|
} | {
|
|
1644
1479
|
name: "elementLinkSelector";
|
|
1645
|
-
sourceElementId:
|
|
1646
|
-
}
|
|
1480
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1481
|
+
};
|
|
1647
1482
|
defaultSidebarDockedPreference: boolean;
|
|
1648
1483
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1649
1484
|
selectedElementIds: Readonly<{
|
|
@@ -1659,8 +1494,8 @@ export declare const actionZoomToFit: {
|
|
|
1659
1494
|
shouldCacheIgnoreZoom: boolean;
|
|
1660
1495
|
toast: {
|
|
1661
1496
|
message: string;
|
|
1662
|
-
closable?: boolean
|
|
1663
|
-
duration?: number
|
|
1497
|
+
closable?: boolean;
|
|
1498
|
+
duration?: number;
|
|
1664
1499
|
} | null;
|
|
1665
1500
|
zenModeEnabled: boolean;
|
|
1666
1501
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1671,32 +1506,13 @@ export declare const actionZoomToFit: {
|
|
|
1671
1506
|
selectedGroupIds: {
|
|
1672
1507
|
[groupId: string]: boolean;
|
|
1673
1508
|
};
|
|
1674
|
-
editingGroupId:
|
|
1509
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1675
1510
|
width: number;
|
|
1676
1511
|
height: number;
|
|
1677
1512
|
offsetTop: number;
|
|
1678
1513
|
offsetLeft: number;
|
|
1679
1514
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1680
|
-
collaborators: Map<import("../types").SocketId,
|
|
1681
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1682
|
-
button?: "up" | "down" | undefined;
|
|
1683
|
-
selectedElementIds?: Readonly<{
|
|
1684
|
-
[id: string]: true;
|
|
1685
|
-
}> | undefined;
|
|
1686
|
-
username?: string | null | undefined;
|
|
1687
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1688
|
-
color?: {
|
|
1689
|
-
background: string;
|
|
1690
|
-
stroke: string;
|
|
1691
|
-
} | undefined;
|
|
1692
|
-
avatarUrl?: string | undefined;
|
|
1693
|
-
id?: string | undefined;
|
|
1694
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1695
|
-
isCurrentUser?: boolean | undefined;
|
|
1696
|
-
isInCall?: boolean | undefined;
|
|
1697
|
-
isSpeaking?: boolean | undefined;
|
|
1698
|
-
isMuted?: boolean | undefined;
|
|
1699
|
-
}>>;
|
|
1515
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1700
1516
|
stats: {
|
|
1701
1517
|
open: boolean;
|
|
1702
1518
|
panels: number;
|
|
@@ -1720,9 +1536,9 @@ export declare const actionZoomToFit: {
|
|
|
1720
1536
|
userToFollow: import("../types").UserToFollow | null;
|
|
1721
1537
|
followedBy: Set<import("../types").SocketId>;
|
|
1722
1538
|
isCropping: boolean;
|
|
1723
|
-
croppingElementId:
|
|
1539
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1724
1540
|
searchMatches: Readonly<{
|
|
1725
|
-
focusedId:
|
|
1541
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1726
1542
|
matches: readonly import("../types").SearchMatch[];
|
|
1727
1543
|
}> | null;
|
|
1728
1544
|
activeLockedId: string | null;
|
|
@@ -1738,7 +1554,7 @@ export declare const actionZoomToFit: {
|
|
|
1738
1554
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1739
1555
|
};
|
|
1740
1556
|
export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
|
|
1741
|
-
keyTest?: ((event: KeyboardEvent |
|
|
1557
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
1742
1558
|
};
|
|
1743
1559
|
export declare const actionToggleEraserTool: {
|
|
1744
1560
|
name: "toggleEraserTool";
|
|
@@ -1763,7 +1579,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1763
1579
|
} | null;
|
|
1764
1580
|
showWelcomeScreen: boolean;
|
|
1765
1581
|
isLoading: boolean;
|
|
1766
|
-
errorMessage:
|
|
1582
|
+
errorMessage: React.ReactNode;
|
|
1767
1583
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1768
1584
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1769
1585
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
@@ -1793,19 +1609,19 @@ export declare const actionToggleEraserTool: {
|
|
|
1793
1609
|
exportScale: number;
|
|
1794
1610
|
currentItemStrokeColor: string;
|
|
1795
1611
|
currentItemBackgroundColor: string;
|
|
1796
|
-
currentItemFillStyle:
|
|
1612
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1797
1613
|
currentItemStrokeWidth: number;
|
|
1798
|
-
currentItemStrokeStyle:
|
|
1614
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1799
1615
|
currentItemRoughness: number;
|
|
1800
1616
|
currentItemOpacity: number;
|
|
1801
|
-
currentItemFontFamily:
|
|
1617
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1802
1618
|
currentItemFontSize: number;
|
|
1803
|
-
currentItemTextAlign:
|
|
1619
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1804
1620
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1805
1621
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1806
|
-
currentHoveredFontFamily:
|
|
1622
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1807
1623
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1808
|
-
currentItemArrowType: "
|
|
1624
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1809
1625
|
viewBackgroundColor: string;
|
|
1810
1626
|
scrollX: number;
|
|
1811
1627
|
scrollY: number;
|
|
@@ -1814,28 +1630,26 @@ export declare const actionToggleEraserTool: {
|
|
|
1814
1630
|
name: string | null;
|
|
1815
1631
|
isResizing: boolean;
|
|
1816
1632
|
isRotating: boolean;
|
|
1817
|
-
zoom:
|
|
1818
|
-
value: import("../types").NormalizedZoomValue;
|
|
1819
|
-
}>;
|
|
1633
|
+
zoom: import("../types").Zoom;
|
|
1820
1634
|
openMenu: "canvas" | null;
|
|
1821
|
-
openPopup: "
|
|
1635
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1822
1636
|
openSidebar: {
|
|
1823
|
-
name:
|
|
1824
|
-
tab?:
|
|
1637
|
+
name: import("../types").SidebarName;
|
|
1638
|
+
tab?: import("../types").SidebarTabName;
|
|
1825
1639
|
} | null;
|
|
1826
|
-
openDialog: {
|
|
1640
|
+
openDialog: null | {
|
|
1827
1641
|
name: "imageExport" | "help" | "jsonExport";
|
|
1828
1642
|
} | {
|
|
1829
1643
|
name: "ttd";
|
|
1830
|
-
tab: "
|
|
1644
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1831
1645
|
} | {
|
|
1832
1646
|
name: "commandPalette";
|
|
1833
1647
|
} | {
|
|
1834
1648
|
name: "settings";
|
|
1835
1649
|
} | {
|
|
1836
1650
|
name: "elementLinkSelector";
|
|
1837
|
-
sourceElementId:
|
|
1838
|
-
}
|
|
1651
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1652
|
+
};
|
|
1839
1653
|
defaultSidebarDockedPreference: boolean;
|
|
1840
1654
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1841
1655
|
hoveredElementIds: Readonly<{
|
|
@@ -1848,8 +1662,8 @@ export declare const actionToggleEraserTool: {
|
|
|
1848
1662
|
shouldCacheIgnoreZoom: boolean;
|
|
1849
1663
|
toast: {
|
|
1850
1664
|
message: string;
|
|
1851
|
-
closable?: boolean
|
|
1852
|
-
duration?: number
|
|
1665
|
+
closable?: boolean;
|
|
1666
|
+
duration?: number;
|
|
1853
1667
|
} | null;
|
|
1854
1668
|
zenModeEnabled: boolean;
|
|
1855
1669
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1857,32 +1671,13 @@ export declare const actionToggleEraserTool: {
|
|
|
1857
1671
|
gridStep: number;
|
|
1858
1672
|
gridModeEnabled: boolean;
|
|
1859
1673
|
viewModeEnabled: boolean;
|
|
1860
|
-
editingGroupId:
|
|
1674
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1861
1675
|
width: number;
|
|
1862
1676
|
height: number;
|
|
1863
1677
|
offsetTop: number;
|
|
1864
1678
|
offsetLeft: number;
|
|
1865
1679
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1866
|
-
collaborators: Map<import("../types").SocketId,
|
|
1867
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1868
|
-
button?: "up" | "down" | undefined;
|
|
1869
|
-
selectedElementIds?: Readonly<{
|
|
1870
|
-
[id: string]: true;
|
|
1871
|
-
}> | undefined;
|
|
1872
|
-
username?: string | null | undefined;
|
|
1873
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1874
|
-
color?: {
|
|
1875
|
-
background: string;
|
|
1876
|
-
stroke: string;
|
|
1877
|
-
} | undefined;
|
|
1878
|
-
avatarUrl?: string | undefined;
|
|
1879
|
-
id?: string | undefined;
|
|
1880
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1881
|
-
isCurrentUser?: boolean | undefined;
|
|
1882
|
-
isInCall?: boolean | undefined;
|
|
1883
|
-
isSpeaking?: boolean | undefined;
|
|
1884
|
-
isMuted?: boolean | undefined;
|
|
1885
|
-
}>>;
|
|
1680
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1886
1681
|
stats: {
|
|
1887
1682
|
open: boolean;
|
|
1888
1683
|
panels: number;
|
|
@@ -1906,9 +1701,9 @@ export declare const actionToggleEraserTool: {
|
|
|
1906
1701
|
userToFollow: import("../types").UserToFollow | null;
|
|
1907
1702
|
followedBy: Set<import("../types").SocketId>;
|
|
1908
1703
|
isCropping: boolean;
|
|
1909
|
-
croppingElementId:
|
|
1704
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1910
1705
|
searchMatches: Readonly<{
|
|
1911
|
-
focusedId:
|
|
1706
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1912
1707
|
matches: readonly import("../types").SearchMatch[];
|
|
1913
1708
|
}> | null;
|
|
1914
1709
|
activeLockedId: string | null;
|
|
@@ -1948,7 +1743,7 @@ export declare const actionToggleLassoTool: {
|
|
|
1948
1743
|
} | null;
|
|
1949
1744
|
showWelcomeScreen: boolean;
|
|
1950
1745
|
isLoading: boolean;
|
|
1951
|
-
errorMessage:
|
|
1746
|
+
errorMessage: React.ReactNode;
|
|
1952
1747
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1953
1748
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1954
1749
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
@@ -1978,19 +1773,19 @@ export declare const actionToggleLassoTool: {
|
|
|
1978
1773
|
exportScale: number;
|
|
1979
1774
|
currentItemStrokeColor: string;
|
|
1980
1775
|
currentItemBackgroundColor: string;
|
|
1981
|
-
currentItemFillStyle:
|
|
1776
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1982
1777
|
currentItemStrokeWidth: number;
|
|
1983
|
-
currentItemStrokeStyle:
|
|
1778
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1984
1779
|
currentItemRoughness: number;
|
|
1985
1780
|
currentItemOpacity: number;
|
|
1986
|
-
currentItemFontFamily:
|
|
1781
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1987
1782
|
currentItemFontSize: number;
|
|
1988
|
-
currentItemTextAlign:
|
|
1783
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1989
1784
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1990
1785
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1991
|
-
currentHoveredFontFamily:
|
|
1786
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1992
1787
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1993
|
-
currentItemArrowType: "
|
|
1788
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1994
1789
|
viewBackgroundColor: string;
|
|
1995
1790
|
scrollX: number;
|
|
1996
1791
|
scrollY: number;
|
|
@@ -1999,28 +1794,26 @@ export declare const actionToggleLassoTool: {
|
|
|
1999
1794
|
name: string | null;
|
|
2000
1795
|
isResizing: boolean;
|
|
2001
1796
|
isRotating: boolean;
|
|
2002
|
-
zoom:
|
|
2003
|
-
value: import("../types").NormalizedZoomValue;
|
|
2004
|
-
}>;
|
|
1797
|
+
zoom: import("../types").Zoom;
|
|
2005
1798
|
openMenu: "canvas" | null;
|
|
2006
|
-
openPopup: "
|
|
1799
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2007
1800
|
openSidebar: {
|
|
2008
|
-
name:
|
|
2009
|
-
tab?:
|
|
1801
|
+
name: import("../types").SidebarName;
|
|
1802
|
+
tab?: import("../types").SidebarTabName;
|
|
2010
1803
|
} | null;
|
|
2011
|
-
openDialog: {
|
|
1804
|
+
openDialog: null | {
|
|
2012
1805
|
name: "imageExport" | "help" | "jsonExport";
|
|
2013
1806
|
} | {
|
|
2014
1807
|
name: "ttd";
|
|
2015
|
-
tab: "
|
|
1808
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2016
1809
|
} | {
|
|
2017
1810
|
name: "commandPalette";
|
|
2018
1811
|
} | {
|
|
2019
1812
|
name: "settings";
|
|
2020
1813
|
} | {
|
|
2021
1814
|
name: "elementLinkSelector";
|
|
2022
|
-
sourceElementId:
|
|
2023
|
-
}
|
|
1815
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1816
|
+
};
|
|
2024
1817
|
defaultSidebarDockedPreference: boolean;
|
|
2025
1818
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2026
1819
|
hoveredElementIds: Readonly<{
|
|
@@ -2033,8 +1826,8 @@ export declare const actionToggleLassoTool: {
|
|
|
2033
1826
|
shouldCacheIgnoreZoom: boolean;
|
|
2034
1827
|
toast: {
|
|
2035
1828
|
message: string;
|
|
2036
|
-
closable?: boolean
|
|
2037
|
-
duration?: number
|
|
1829
|
+
closable?: boolean;
|
|
1830
|
+
duration?: number;
|
|
2038
1831
|
} | null;
|
|
2039
1832
|
zenModeEnabled: boolean;
|
|
2040
1833
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -2042,32 +1835,13 @@ export declare const actionToggleLassoTool: {
|
|
|
2042
1835
|
gridStep: number;
|
|
2043
1836
|
gridModeEnabled: boolean;
|
|
2044
1837
|
viewModeEnabled: boolean;
|
|
2045
|
-
editingGroupId:
|
|
1838
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
2046
1839
|
width: number;
|
|
2047
1840
|
height: number;
|
|
2048
1841
|
offsetTop: number;
|
|
2049
1842
|
offsetLeft: number;
|
|
2050
1843
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2051
|
-
collaborators: Map<import("../types").SocketId,
|
|
2052
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2053
|
-
button?: "up" | "down" | undefined;
|
|
2054
|
-
selectedElementIds?: Readonly<{
|
|
2055
|
-
[id: string]: true;
|
|
2056
|
-
}> | undefined;
|
|
2057
|
-
username?: string | null | undefined;
|
|
2058
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2059
|
-
color?: {
|
|
2060
|
-
background: string;
|
|
2061
|
-
stroke: string;
|
|
2062
|
-
} | undefined;
|
|
2063
|
-
avatarUrl?: string | undefined;
|
|
2064
|
-
id?: string | undefined;
|
|
2065
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2066
|
-
isCurrentUser?: boolean | undefined;
|
|
2067
|
-
isInCall?: boolean | undefined;
|
|
2068
|
-
isSpeaking?: boolean | undefined;
|
|
2069
|
-
isMuted?: boolean | undefined;
|
|
2070
|
-
}>>;
|
|
1844
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2071
1845
|
stats: {
|
|
2072
1846
|
open: boolean;
|
|
2073
1847
|
panels: number;
|
|
@@ -2091,9 +1865,9 @@ export declare const actionToggleLassoTool: {
|
|
|
2091
1865
|
userToFollow: import("../types").UserToFollow | null;
|
|
2092
1866
|
followedBy: Set<import("../types").SocketId>;
|
|
2093
1867
|
isCropping: boolean;
|
|
2094
|
-
croppingElementId:
|
|
1868
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
2095
1869
|
searchMatches: Readonly<{
|
|
2096
|
-
focusedId:
|
|
1870
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
2097
1871
|
matches: readonly import("../types").SearchMatch[];
|
|
2098
1872
|
}> | null;
|
|
2099
1873
|
activeLockedId: string | null;
|
|
@@ -2132,7 +1906,7 @@ export declare const actionToggleHandTool: {
|
|
|
2132
1906
|
} | null;
|
|
2133
1907
|
showWelcomeScreen: boolean;
|
|
2134
1908
|
isLoading: boolean;
|
|
2135
|
-
errorMessage:
|
|
1909
|
+
errorMessage: React.ReactNode;
|
|
2136
1910
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2137
1911
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2138
1912
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
@@ -2162,19 +1936,19 @@ export declare const actionToggleHandTool: {
|
|
|
2162
1936
|
exportScale: number;
|
|
2163
1937
|
currentItemStrokeColor: string;
|
|
2164
1938
|
currentItemBackgroundColor: string;
|
|
2165
|
-
currentItemFillStyle:
|
|
1939
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
2166
1940
|
currentItemStrokeWidth: number;
|
|
2167
|
-
currentItemStrokeStyle:
|
|
1941
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
2168
1942
|
currentItemRoughness: number;
|
|
2169
1943
|
currentItemOpacity: number;
|
|
2170
|
-
currentItemFontFamily:
|
|
1944
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
2171
1945
|
currentItemFontSize: number;
|
|
2172
|
-
currentItemTextAlign:
|
|
1946
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
2173
1947
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2174
1948
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2175
|
-
currentHoveredFontFamily:
|
|
1949
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
2176
1950
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2177
|
-
currentItemArrowType: "
|
|
1951
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
2178
1952
|
viewBackgroundColor: string;
|
|
2179
1953
|
scrollX: number;
|
|
2180
1954
|
scrollY: number;
|
|
@@ -2183,28 +1957,26 @@ export declare const actionToggleHandTool: {
|
|
|
2183
1957
|
name: string | null;
|
|
2184
1958
|
isResizing: boolean;
|
|
2185
1959
|
isRotating: boolean;
|
|
2186
|
-
zoom:
|
|
2187
|
-
value: import("../types").NormalizedZoomValue;
|
|
2188
|
-
}>;
|
|
1960
|
+
zoom: import("../types").Zoom;
|
|
2189
1961
|
openMenu: "canvas" | null;
|
|
2190
|
-
openPopup: "
|
|
1962
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2191
1963
|
openSidebar: {
|
|
2192
|
-
name:
|
|
2193
|
-
tab?:
|
|
1964
|
+
name: import("../types").SidebarName;
|
|
1965
|
+
tab?: import("../types").SidebarTabName;
|
|
2194
1966
|
} | null;
|
|
2195
|
-
openDialog: {
|
|
1967
|
+
openDialog: null | {
|
|
2196
1968
|
name: "imageExport" | "help" | "jsonExport";
|
|
2197
1969
|
} | {
|
|
2198
1970
|
name: "ttd";
|
|
2199
|
-
tab: "
|
|
1971
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2200
1972
|
} | {
|
|
2201
1973
|
name: "commandPalette";
|
|
2202
1974
|
} | {
|
|
2203
1975
|
name: "settings";
|
|
2204
1976
|
} | {
|
|
2205
1977
|
name: "elementLinkSelector";
|
|
2206
|
-
sourceElementId:
|
|
2207
|
-
}
|
|
1978
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1979
|
+
};
|
|
2208
1980
|
defaultSidebarDockedPreference: boolean;
|
|
2209
1981
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2210
1982
|
hoveredElementIds: Readonly<{
|
|
@@ -2217,8 +1989,8 @@ export declare const actionToggleHandTool: {
|
|
|
2217
1989
|
shouldCacheIgnoreZoom: boolean;
|
|
2218
1990
|
toast: {
|
|
2219
1991
|
message: string;
|
|
2220
|
-
closable?: boolean
|
|
2221
|
-
duration?: number
|
|
1992
|
+
closable?: boolean;
|
|
1993
|
+
duration?: number;
|
|
2222
1994
|
} | null;
|
|
2223
1995
|
zenModeEnabled: boolean;
|
|
2224
1996
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -2226,32 +1998,13 @@ export declare const actionToggleHandTool: {
|
|
|
2226
1998
|
gridStep: number;
|
|
2227
1999
|
gridModeEnabled: boolean;
|
|
2228
2000
|
viewModeEnabled: boolean;
|
|
2229
|
-
editingGroupId:
|
|
2001
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
2230
2002
|
width: number;
|
|
2231
2003
|
height: number;
|
|
2232
2004
|
offsetTop: number;
|
|
2233
2005
|
offsetLeft: number;
|
|
2234
2006
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2235
|
-
collaborators: Map<import("../types").SocketId,
|
|
2236
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2237
|
-
button?: "up" | "down" | undefined;
|
|
2238
|
-
selectedElementIds?: Readonly<{
|
|
2239
|
-
[id: string]: true;
|
|
2240
|
-
}> | undefined;
|
|
2241
|
-
username?: string | null | undefined;
|
|
2242
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2243
|
-
color?: {
|
|
2244
|
-
background: string;
|
|
2245
|
-
stroke: string;
|
|
2246
|
-
} | undefined;
|
|
2247
|
-
avatarUrl?: string | undefined;
|
|
2248
|
-
id?: string | undefined;
|
|
2249
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2250
|
-
isCurrentUser?: boolean | undefined;
|
|
2251
|
-
isInCall?: boolean | undefined;
|
|
2252
|
-
isSpeaking?: boolean | undefined;
|
|
2253
|
-
isMuted?: boolean | undefined;
|
|
2254
|
-
}>>;
|
|
2007
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2255
2008
|
stats: {
|
|
2256
2009
|
open: boolean;
|
|
2257
2010
|
panels: number;
|
|
@@ -2275,9 +2028,9 @@ export declare const actionToggleHandTool: {
|
|
|
2275
2028
|
userToFollow: import("../types").UserToFollow | null;
|
|
2276
2029
|
followedBy: Set<import("../types").SocketId>;
|
|
2277
2030
|
isCropping: boolean;
|
|
2278
|
-
croppingElementId:
|
|
2031
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
2279
2032
|
searchMatches: Readonly<{
|
|
2280
|
-
focusedId:
|
|
2033
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
2281
2034
|
matches: readonly import("../types").SearchMatch[];
|
|
2282
2035
|
}> | null;
|
|
2283
2036
|
activeLockedId: string | null;
|