@excalidraw/excalidraw 0.18.0-5fffc47 → 0.18.0-6135548
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-FB2NA5UG.js → chunk-6JJSWC4C.js} +1 -1
- package/dist/dev/{chunk-FB2NA5UG.js.map → chunk-6JJSWC4C.js.map} +2 -2
- package/dist/dev/chunk-DJHLEOOZ.js +69 -0
- package/dist/dev/chunk-DJHLEOOZ.js.map +7 -0
- package/dist/dev/{chunk-PWQMCSHA.js → chunk-GJCHM3LM.js} +91 -24
- package/dist/dev/chunk-GJCHM3LM.js.map +7 -0
- package/dist/dev/{chunk-YMRX7R7U.js → chunk-PW6TXCLQ.js} +270 -419
- package/dist/dev/chunk-PW6TXCLQ.js.map +7 -0
- package/dist/dev/{chunk-CP5DND7P.js → chunk-Y3BTNZQY.js} +2 -2
- package/dist/dev/data/{image-L23D26XS.js → image-2BHUUSLM.js} +3 -3
- package/dist/dev/index.css +937 -192
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +10398 -8330
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{ar-SA-XORAP2EK.js → ar-SA-JK5MQ7TT.js} +300 -142
- package/dist/dev/locales/ar-SA-JK5MQ7TT.js.map +7 -0
- package/dist/dev/locales/{az-AZ-NAUU3Z4Y.js → az-AZ-2PAD62G4.js} +241 -83
- package/dist/dev/locales/az-AZ-2PAD62G4.js.map +7 -0
- package/dist/dev/locales/{bg-BG-AAABLFCY.js → bg-BG-HUKVYCRK.js} +229 -71
- package/dist/dev/locales/bg-BG-HUKVYCRK.js.map +7 -0
- package/dist/dev/locales/{bn-BD-PM4AC5WG.js → bn-BD-V2CQI46P.js} +209 -51
- package/dist/dev/locales/bn-BD-V2CQI46P.js.map +7 -0
- package/dist/dev/locales/bn-IN-MBEO4C3J.js +744 -0
- package/dist/dev/locales/bn-IN-MBEO4C3J.js.map +7 -0
- package/dist/dev/locales/{ca-ES-YNNMFRQX.js → ca-ES-KWEKW4C3.js} +275 -117
- package/dist/dev/locales/ca-ES-KWEKW4C3.js.map +7 -0
- package/dist/dev/locales/{cs-CZ-DGZA5IKG.js → cs-CZ-W5AHZB5H.js} +229 -71
- package/dist/dev/locales/cs-CZ-W5AHZB5H.js.map +7 -0
- package/dist/dev/locales/{da-DK-N76F4QAJ.js → da-DK-ITTM6YM4.js} +298 -140
- package/dist/dev/locales/da-DK-ITTM6YM4.js.map +7 -0
- package/dist/dev/locales/de-CH-OAWPDQFJ.js +744 -0
- package/dist/dev/locales/de-CH-OAWPDQFJ.js.map +7 -0
- package/dist/dev/locales/{de-DE-DMRXZ2SZ.js → de-DE-ZRDYEPMS.js} +199 -41
- package/dist/dev/locales/de-DE-ZRDYEPMS.js.map +7 -0
- package/dist/dev/locales/{el-GR-HIKPLEXI.js → el-GR-QXASZLPE.js} +274 -116
- package/dist/dev/locales/el-GR-QXASZLPE.js.map +7 -0
- package/dist/dev/locales/{en-V3NQTBPG.js → en-JANWVQZF.js} +8 -2
- package/dist/dev/locales/{es-ES-AQYVXC32.js → es-ES-VLQBB7FJ.js} +212 -54
- package/dist/dev/locales/es-ES-VLQBB7FJ.js.map +7 -0
- package/dist/dev/locales/{eu-ES-3TOEU5DE.js → eu-ES-TF2DGTZU.js} +210 -52
- package/dist/dev/locales/eu-ES-TF2DGTZU.js.map +7 -0
- package/dist/dev/locales/{fa-IR-527GAKUP.js → fa-IR-ITKFQ7QV.js} +286 -128
- package/dist/dev/locales/fa-IR-ITKFQ7QV.js.map +7 -0
- package/dist/dev/locales/{fi-FI-M3WLVDFP.js → fi-FI-UWZRVXFI.js} +240 -82
- package/dist/dev/locales/fi-FI-UWZRVXFI.js.map +7 -0
- package/dist/dev/locales/{fr-FR-YE4VDJFI.js → fr-FR-A72LKGCO.js} +203 -45
- package/dist/dev/locales/fr-FR-A72LKGCO.js.map +7 -0
- package/dist/dev/locales/{gl-ES-KMXUYGUN.js → gl-ES-2QCVIBFP.js} +212 -54
- package/dist/dev/locales/gl-ES-2QCVIBFP.js.map +7 -0
- package/dist/dev/locales/he-IL-WJNUHU26.js +744 -0
- package/dist/dev/locales/he-IL-WJNUHU26.js.map +7 -0
- package/dist/dev/locales/hi-IN-XGMO235V.js +744 -0
- package/dist/dev/locales/hi-IN-XGMO235V.js.map +7 -0
- package/dist/dev/locales/{hu-HU-VIYZI3X4.js → hu-HU-37FDQFIS.js} +238 -80
- package/dist/dev/locales/hu-HU-37FDQFIS.js.map +7 -0
- package/dist/dev/locales/{id-ID-22TWZNLA.js → id-ID-EJIDCO4E.js} +245 -87
- package/dist/dev/locales/id-ID-EJIDCO4E.js.map +7 -0
- package/dist/dev/locales/{it-IT-MDEQ2SG3.js → it-IT-X34PIOJ2.js} +202 -44
- package/dist/dev/locales/it-IT-X34PIOJ2.js.map +7 -0
- package/dist/dev/locales/{ja-JP-K2DI4W6B.js → ja-JP-37FC23PR.js} +247 -89
- package/dist/dev/locales/ja-JP-37FC23PR.js.map +7 -0
- package/dist/dev/locales/{kaa-6BPSNM3R.js → kaa-7ZYDFVKA.js} +202 -44
- package/dist/dev/locales/kaa-7ZYDFVKA.js.map +7 -0
- package/dist/dev/locales/{kab-KAB-2S7ZURK7.js → kab-KAB-MILWXBA6.js} +210 -52
- package/dist/dev/locales/kab-KAB-MILWXBA6.js.map +7 -0
- package/dist/dev/locales/{kk-KZ-UJPYGRQQ.js → kk-KZ-7BWTPIAV.js} +175 -17
- package/dist/dev/locales/kk-KZ-7BWTPIAV.js.map +7 -0
- package/dist/dev/locales/{km-KH-M5T5JKUE.js → km-KH-BV4P2KSZ.js} +198 -40
- package/dist/dev/locales/km-KH-BV4P2KSZ.js.map +7 -0
- package/dist/dev/locales/{ko-KR-RQX37SNF.js → ko-KR-TSXE5P7B.js} +218 -60
- package/dist/dev/locales/ko-KR-TSXE5P7B.js.map +7 -0
- package/dist/dev/locales/{ku-TR-5XJDIERL.js → ku-TR-ASSXNN3U.js} +198 -40
- package/dist/dev/locales/ku-TR-ASSXNN3U.js.map +7 -0
- package/dist/dev/locales/{lt-LT-MGUBX6CA.js → lt-LT-G7RZYQQU.js} +179 -21
- package/dist/dev/locales/lt-LT-G7RZYQQU.js.map +7 -0
- package/dist/dev/locales/{lv-LV-MD7N5VHD.js → lv-LV-DXNPBJZU.js} +196 -38
- package/dist/dev/locales/lv-LV-DXNPBJZU.js.map +7 -0
- package/dist/dev/locales/{mr-IN-4XWMNGQC.js → mr-IN-7F2ZCTCF.js} +204 -46
- package/dist/dev/locales/mr-IN-7F2ZCTCF.js.map +7 -0
- package/dist/dev/locales/{my-MM-O4Z74GN5.js → my-MM-NBI3KQGW.js} +181 -23
- package/dist/dev/locales/my-MM-NBI3KQGW.js.map +7 -0
- package/dist/dev/locales/{nb-NO-BMB73KRH.js → nb-NO-4DCTQT6L.js} +220 -62
- package/dist/dev/locales/nb-NO-4DCTQT6L.js.map +7 -0
- package/dist/dev/locales/{nl-NL-F2257BLQ.js → nl-NL-XGZJ7V2V.js} +297 -139
- package/dist/dev/locales/nl-NL-XGZJ7V2V.js.map +7 -0
- package/dist/dev/locales/{nn-NO-NCORG7TS.js → nn-NO-FR534JV5.js} +201 -43
- package/dist/dev/locales/nn-NO-FR534JV5.js.map +7 -0
- package/dist/dev/locales/{oc-FR-ATFBDMF6.js → oc-FR-YQCIKZIK.js} +220 -62
- package/dist/dev/locales/oc-FR-YQCIKZIK.js.map +7 -0
- package/dist/dev/locales/{pa-IN-D2I375G4.js → pa-IN-UM43JGD2.js} +190 -32
- package/dist/dev/locales/pa-IN-UM43JGD2.js.map +7 -0
- package/dist/dev/locales/{percentages-YKFLWNK2.js → percentages-OGWD7R2K.js} +2 -2
- package/dist/dev/locales/{pl-PL-YJHOWAAW.js → pl-PL-2UGKA6HK.js} +214 -56
- package/dist/dev/locales/pl-PL-2UGKA6HK.js.map +7 -0
- package/dist/dev/locales/{pt-BR-APOPYZJ7.js → pt-BR-H23QFYE3.js} +237 -79
- package/dist/dev/locales/pt-BR-H23QFYE3.js.map +7 -0
- package/dist/dev/locales/pt-PT-RHKJH5I5.js +744 -0
- package/dist/dev/locales/pt-PT-RHKJH5I5.js.map +7 -0
- package/dist/dev/locales/{ro-RO-L575VRQA.js → ro-RO-IIFONL3T.js} +203 -45
- package/dist/dev/locales/ro-RO-IIFONL3T.js.map +7 -0
- package/dist/dev/locales/{ru-RU-BLG6HZG5.js → ru-RU-QEP6D7GK.js} +253 -95
- package/dist/dev/locales/ru-RU-QEP6D7GK.js.map +7 -0
- package/dist/dev/locales/si-LK-LZYJQLHF.js +744 -0
- package/dist/dev/locales/si-LK-LZYJQLHF.js.map +7 -0
- package/dist/dev/locales/{sk-SK-DY6IPO5U.js → sk-SK-RWC6UWGY.js} +200 -42
- package/dist/dev/locales/sk-SK-RWC6UWGY.js.map +7 -0
- package/dist/dev/locales/{sl-SI-5DZSRA47.js → sl-SI-QJT2CAUO.js} +197 -39
- package/dist/dev/locales/sl-SI-QJT2CAUO.js.map +7 -0
- package/dist/dev/locales/{sv-SE-V32YHALQ.js → sv-SE-3MAT3NDX.js} +202 -44
- package/dist/dev/locales/sv-SE-3MAT3NDX.js.map +7 -0
- package/dist/dev/locales/{ta-IN-5JRAGQAO.js → ta-IN-J7XOYF2T.js} +257 -99
- package/dist/dev/locales/ta-IN-J7XOYF2T.js.map +7 -0
- package/dist/dev/locales/{th-TH-55ACRHDJ.js → th-TH-2OI52EOQ.js} +289 -131
- package/dist/dev/locales/th-TH-2OI52EOQ.js.map +7 -0
- package/dist/dev/locales/{tr-TR-7QYBXDBO.js → tr-TR-G7TAUHUI.js} +257 -99
- package/dist/dev/locales/tr-TR-G7TAUHUI.js.map +7 -0
- package/dist/dev/locales/{uk-UA-TJS2TMRH.js → uk-UA-IVSVBJIG.js} +229 -71
- package/dist/dev/locales/uk-UA-IVSVBJIG.js.map +7 -0
- package/dist/dev/locales/{si-LK-KT7GGO6D.js → uz-UZ-KCVDUVDE.js} +212 -54
- package/dist/dev/locales/uz-UZ-KCVDUVDE.js.map +7 -0
- package/dist/dev/locales/vi-VN-KBZAVWP5.js +744 -0
- package/dist/dev/locales/vi-VN-KBZAVWP5.js.map +7 -0
- package/dist/dev/locales/{zh-CN-4MXUOFTH.js → zh-CN-IS26RG2D.js} +199 -41
- package/dist/dev/locales/zh-CN-IS26RG2D.js.map +7 -0
- package/dist/dev/locales/{zh-HK-RBTGIU3U.js → zh-HK-KBWQ6SJC.js} +175 -17
- package/dist/dev/locales/zh-HK-KBWQ6SJC.js.map +7 -0
- package/dist/dev/locales/{zh-TW-U5VF4CCU.js → zh-TW-JKJWJQ4J.js} +204 -46
- package/dist/dev/locales/zh-TW-JKJWJQ4J.js.map +7 -0
- package/dist/dev/subset-shared.chunk.js +2 -2
- package/dist/dev/subset-worker.chunk.js +2 -2
- package/dist/prod/chunk-AJI3LATG.js +1 -0
- package/dist/prod/{chunk-GF46JCB3.js → chunk-EODSYFCR.js} +7 -7
- package/dist/prod/chunk-R7EP47KM.js +4 -0
- package/dist/prod/{chunk-LS7FJGPW.js → chunk-Z5NKEFVG.js} +8 -8
- package/dist/prod/data/{image-NWF7UX55.js → image-WVUQOLPF.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +34 -25
- package/dist/prod/locales/ar-SA-IYHKZRSE.js +8 -0
- package/dist/prod/locales/az-AZ-WL5GYRHK.js +1 -0
- package/dist/prod/locales/bg-BG-FXZYTRPD.js +5 -0
- package/dist/prod/locales/bn-BD-KO6YL5G2.js +3 -0
- package/dist/prod/locales/bn-IN-PC6JHKYB.js +3 -0
- package/dist/prod/locales/ca-ES-AREX5NEO.js +8 -0
- package/dist/prod/locales/cs-CZ-HXAZMFYH.js +7 -0
- package/dist/prod/locales/da-DK-5X7ZLFU3.js +2 -0
- package/dist/prod/locales/de-CH-76ZNVSOF.js +7 -0
- package/dist/prod/locales/de-DE-G3JVZ4MQ.js +7 -0
- package/dist/prod/locales/el-GR-4AZTZGY6.js +7 -0
- package/dist/prod/locales/en-2SFQVNRK.js +1 -0
- package/dist/prod/locales/es-ES-ART7BI3G.js +7 -0
- package/dist/prod/locales/eu-ES-BIF4XBMT.js +7 -0
- package/dist/prod/locales/fa-IR-D4HHKAAI.js +9 -0
- package/dist/prod/locales/fi-FI-O35ZY7UI.js +6 -0
- package/dist/prod/locales/fr-FR-XEFNCM4I.js +12 -0
- package/dist/prod/locales/gl-ES-U4NYM3X5.js +6 -0
- package/dist/prod/locales/he-IL-656ABAVQ.js +8 -0
- package/dist/prod/locales/hi-IN-Z55GAFFR.js +3 -0
- package/dist/prod/locales/hu-HU-UJ62DVIW.js +3 -0
- package/dist/prod/locales/id-ID-FLZFU3OO.js +8 -0
- 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-L3IMSDYL.js +1 -0
- package/dist/prod/locales/kab-KAB-XKPWJLNL.js +4 -0
- package/dist/prod/locales/kk-KZ-SXPDDY2H.js +1 -0
- package/dist/prod/locales/km-KH-DOS4CPGC.js +7 -0
- package/dist/prod/locales/ko-KR-BGC6VCY4.js +5 -0
- package/dist/prod/locales/ku-TR-J7IUITIA.js +6 -0
- package/dist/prod/locales/lt-LT-AC3LV5KG.js +3 -0
- package/dist/prod/locales/lv-LV-I6AY7QG2.js +4 -0
- package/dist/prod/locales/mr-IN-5SP4HV5B.js +9 -0
- package/dist/prod/locales/my-MM-S7ECRBYZ.js +1 -0
- package/dist/prod/locales/nb-NO-6PNHTF4R.js +8 -0
- package/dist/prod/locales/nl-NL-R4C4SUIG.js +13 -0
- package/dist/prod/locales/nn-NO-3TFXTM7Y.js +4 -0
- package/dist/prod/locales/oc-FR-IK6GIE7H.js +4 -0
- package/dist/prod/locales/pa-IN-YAKHYJET.js +4 -0
- package/dist/prod/locales/percentages-OL6W367U.js +1 -0
- package/dist/prod/locales/pl-PL-BIY22ZWU.js +12 -0
- package/dist/prod/locales/pt-BR-Q23NUPD6.js +6 -0
- package/dist/prod/locales/pt-PT-LOPEJLPJ.js +8 -0
- package/dist/prod/locales/ro-RO-W3D2ZATV.js +12 -0
- package/dist/prod/locales/ru-RU-DCTW7QSH.js +10 -0
- package/dist/prod/locales/si-LK-FYRRHO3C.js +1 -0
- package/dist/prod/locales/sk-SK-MC7UOHQO.js +7 -0
- package/dist/prod/locales/sl-SI-L6B6HFY5.js +6 -0
- package/dist/prod/locales/sv-SE-KMY6L2BA.js +8 -0
- package/dist/prod/locales/ta-IN-ZQCYE2JK.js +6 -0
- package/dist/prod/locales/th-TH-WS7ECBAV.js +1 -0
- package/dist/prod/locales/tr-TR-S5FI7JRW.js +4 -0
- package/dist/prod/locales/uk-UA-4EZUWUSQ.js +6 -0
- package/dist/prod/locales/uz-UZ-OKHL6AFA.js +1 -0
- package/dist/prod/locales/vi-VN-K34TWHF7.js +7 -0
- package/dist/prod/locales/zh-CN-JE4UZWNO.js +11 -0
- package/dist/prod/locales/zh-HK-RM35YDXX.js +1 -0
- package/dist/prod/locales/zh-TW-ONGLV6Y5.js +9 -0
- 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 +59 -39
- package/dist/types/common/src/constants.d.ts +15 -27
- package/dist/types/common/src/editorInterface.d.ts +34 -0
- package/dist/types/common/src/font-metadata.d.ts +1 -3
- package/dist/types/common/src/index.d.ts +2 -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 +47 -35
- package/dist/types/element/src/Scene.d.ts +3 -3
- package/dist/types/element/src/binding.d.ts +58 -44
- package/dist/types/element/src/bounds.d.ts +2 -10
- package/dist/types/element/src/collision.d.ts +6 -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 -3
- package/dist/types/element/src/linearElementEditor.d.ts +16 -20
- 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 +1 -7
- package/dist/types/element/src/resizeElements.d.ts +10 -10
- package/dist/types/element/src/resizeTest.d.ts +6 -5
- 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 +8 -27
- package/dist/types/element/src/typeChecks.d.ts +4 -7
- package/dist/types/element/src/types.d.ts +7 -11
- package/dist/types/element/src/utils.d.ts +5 -2
- package/dist/types/element/src/zindex.d.ts +7 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +78 -136
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -7
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +57 -96
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +341 -763
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +76 -876
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +92 -156
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +23 -45
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +56 -95
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +28 -48
- package/dist/types/excalidraw/actions/actionExport.d.ts +124 -1129
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +10 -404
- package/dist/types/excalidraw/actions/actionFlip.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionFrame.d.ts +193 -308
- package/dist/types/excalidraw/actions/actionGroup.d.ts +60 -107
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +117 -177
- package/dist/types/excalidraw/actions/actionLink.d.ts +26 -46
- package/dist/types/excalidraw/actions/actionMenu.d.ts +21 -43
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +18 -369
- package/dist/types/excalidraw/actions/actionProperties.d.ts +117 -2560
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +30 -54
- package/dist/types/excalidraw/actions/actionStyles.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +20 -42
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +27 -47
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +28 -48
- package/dist/types/excalidraw/actions/actionZindex.d.ts +2 -3
- package/dist/types/excalidraw/actions/register.d.ts +2 -2
- package/dist/types/excalidraw/actions/types.d.ts +3 -3
- package/dist/types/excalidraw/appState.d.ts +7 -6
- package/dist/types/excalidraw/clipboard.d.ts +7 -31
- package/dist/types/excalidraw/components/Actions.d.ts +5 -2
- package/dist/types/excalidraw/components/App.d.ts +58 -58
- package/dist/types/excalidraw/components/ButtonIconCycle.d.ts +1 -1
- package/dist/types/excalidraw/components/Card.d.ts +1 -3
- package/dist/types/excalidraw/components/ColorPicker/ColorInput.d.ts +2 -4
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +0 -2
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +0 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +0 -1
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -3
- 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/FilledButton.d.ts +2 -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/HintViewer.d.ts +4 -3
- 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/LinkButton.d.ts +4 -0
- package/dist/types/excalidraw/components/LoadingMessage.d.ts +0 -1
- package/dist/types/excalidraw/components/MobileMenu.d.ts +1 -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/Popover.d.ts +2 -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/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatHistoryMenu.d.ts +15 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +27 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatMessage.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +26 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/index.d.ts +3 -0
- package/dist/types/excalidraw/components/TTDDialog/Chat/useChatAgent.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +4 -25
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +2 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogPanel.d.ts +13 -9
- 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/TTDPreviewPanel.d.ts +9 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +8 -0
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +16 -16
- package/dist/types/excalidraw/components/TTDDialog/hooks/useChatManagement.d.ts +13 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useMermaidRenderer.d.ts +14 -0
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +7 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +91 -0
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +22 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +24 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/chat.d.ts +10 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidValidation.d.ts +1 -0
- 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/canvases/InteractiveCanvas.d.ts +6 -3
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -33
- 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 +12 -19
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +5 -4
- 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 +21 -12
- package/dist/types/excalidraw/components/live-collaboration/LiveCollaborationTrigger.d.ts +4 -3
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +2 -2
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +26 -32
- 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/errors.d.ts +14 -0
- package/dist/types/excalidraw/hooks/useOutsideClick.d.ts +4 -3
- 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 +6 -7
- package/dist/types/excalidraw/renderer/animation.d.ts +12 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +6 -8
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +8 -14
- 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 +22 -5
- package/dist/types/excalidraw/shortcut.d.ts +1 -0
- 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 +22 -20
- 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 +7 -8
- package/dist/dev/chunk-MFAYKRVR.js +0 -66
- package/dist/dev/chunk-MFAYKRVR.js.map +0 -7
- package/dist/dev/chunk-PWQMCSHA.js.map +0 -7
- package/dist/dev/chunk-YMRX7R7U.js.map +0 -7
- package/dist/dev/locales/ar-SA-XORAP2EK.js.map +0 -7
- package/dist/dev/locales/az-AZ-NAUU3Z4Y.js.map +0 -7
- package/dist/dev/locales/bg-BG-AAABLFCY.js.map +0 -7
- package/dist/dev/locales/bn-BD-PM4AC5WG.js.map +0 -7
- package/dist/dev/locales/ca-ES-YNNMFRQX.js.map +0 -7
- package/dist/dev/locales/cs-CZ-DGZA5IKG.js.map +0 -7
- package/dist/dev/locales/da-DK-N76F4QAJ.js.map +0 -7
- package/dist/dev/locales/de-DE-DMRXZ2SZ.js.map +0 -7
- package/dist/dev/locales/el-GR-HIKPLEXI.js.map +0 -7
- package/dist/dev/locales/es-ES-AQYVXC32.js.map +0 -7
- package/dist/dev/locales/eu-ES-3TOEU5DE.js.map +0 -7
- package/dist/dev/locales/fa-IR-527GAKUP.js.map +0 -7
- package/dist/dev/locales/fi-FI-M3WLVDFP.js.map +0 -7
- package/dist/dev/locales/fr-FR-YE4VDJFI.js.map +0 -7
- package/dist/dev/locales/gl-ES-KMXUYGUN.js.map +0 -7
- package/dist/dev/locales/he-IL-4MU5N22B.js +0 -586
- package/dist/dev/locales/he-IL-4MU5N22B.js.map +0 -7
- package/dist/dev/locales/hi-IN-ZHZNZWFC.js +0 -586
- package/dist/dev/locales/hi-IN-ZHZNZWFC.js.map +0 -7
- package/dist/dev/locales/hu-HU-VIYZI3X4.js.map +0 -7
- package/dist/dev/locales/id-ID-22TWZNLA.js.map +0 -7
- package/dist/dev/locales/it-IT-MDEQ2SG3.js.map +0 -7
- package/dist/dev/locales/ja-JP-K2DI4W6B.js.map +0 -7
- package/dist/dev/locales/kaa-6BPSNM3R.js.map +0 -7
- package/dist/dev/locales/kab-KAB-2S7ZURK7.js.map +0 -7
- package/dist/dev/locales/kk-KZ-UJPYGRQQ.js.map +0 -7
- package/dist/dev/locales/km-KH-M5T5JKUE.js.map +0 -7
- package/dist/dev/locales/ko-KR-RQX37SNF.js.map +0 -7
- package/dist/dev/locales/ku-TR-5XJDIERL.js.map +0 -7
- package/dist/dev/locales/lt-LT-MGUBX6CA.js.map +0 -7
- package/dist/dev/locales/lv-LV-MD7N5VHD.js.map +0 -7
- package/dist/dev/locales/mr-IN-4XWMNGQC.js.map +0 -7
- package/dist/dev/locales/my-MM-O4Z74GN5.js.map +0 -7
- package/dist/dev/locales/nb-NO-BMB73KRH.js.map +0 -7
- package/dist/dev/locales/nl-NL-F2257BLQ.js.map +0 -7
- package/dist/dev/locales/nn-NO-NCORG7TS.js.map +0 -7
- package/dist/dev/locales/oc-FR-ATFBDMF6.js.map +0 -7
- package/dist/dev/locales/pa-IN-D2I375G4.js.map +0 -7
- package/dist/dev/locales/pl-PL-YJHOWAAW.js.map +0 -7
- package/dist/dev/locales/pt-BR-APOPYZJ7.js.map +0 -7
- package/dist/dev/locales/pt-PT-W56WCN7P.js +0 -586
- package/dist/dev/locales/pt-PT-W56WCN7P.js.map +0 -7
- package/dist/dev/locales/ro-RO-L575VRQA.js.map +0 -7
- package/dist/dev/locales/ru-RU-BLG6HZG5.js.map +0 -7
- package/dist/dev/locales/si-LK-KT7GGO6D.js.map +0 -7
- package/dist/dev/locales/sk-SK-DY6IPO5U.js.map +0 -7
- package/dist/dev/locales/sl-SI-5DZSRA47.js.map +0 -7
- package/dist/dev/locales/sv-SE-V32YHALQ.js.map +0 -7
- package/dist/dev/locales/ta-IN-5JRAGQAO.js.map +0 -7
- package/dist/dev/locales/th-TH-55ACRHDJ.js.map +0 -7
- package/dist/dev/locales/tr-TR-7QYBXDBO.js.map +0 -7
- package/dist/dev/locales/uk-UA-TJS2TMRH.js.map +0 -7
- package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js +0 -586
- package/dist/dev/locales/vi-VN-Y5CQ2EKQ.js.map +0 -7
- package/dist/dev/locales/zh-CN-4MXUOFTH.js.map +0 -7
- package/dist/dev/locales/zh-HK-RBTGIU3U.js.map +0 -7
- package/dist/dev/locales/zh-TW-U5VF4CCU.js.map +0 -7
- package/dist/prod/chunk-HT4FKTIQ.js +0 -4
- package/dist/prod/chunk-Z3N5DIM6.js +0 -1
- package/dist/prod/locales/ar-SA-G6X2FPQ2.js +0 -10
- package/dist/prod/locales/az-AZ-76LH7QW2.js +0 -1
- package/dist/prod/locales/bg-BG-XCXSNQG7.js +0 -5
- package/dist/prod/locales/bn-BD-2XOGV67Q.js +0 -5
- package/dist/prod/locales/ca-ES-6MX7JW3Y.js +0 -8
- package/dist/prod/locales/cs-CZ-2BRQDIVT.js +0 -11
- package/dist/prod/locales/da-DK-5WZEPLOC.js +0 -5
- package/dist/prod/locales/de-DE-XR44H4JA.js +0 -8
- package/dist/prod/locales/el-GR-BZB4AONW.js +0 -10
- package/dist/prod/locales/en-LQE6K457.js +0 -1
- package/dist/prod/locales/es-ES-U4NZUMDT.js +0 -9
- package/dist/prod/locales/eu-ES-A7QVB2H4.js +0 -11
- package/dist/prod/locales/fa-IR-HGAKTJCU.js +0 -8
- package/dist/prod/locales/fi-FI-Z5N7JZ37.js +0 -6
- package/dist/prod/locales/fr-FR-RHASNOE6.js +0 -9
- package/dist/prod/locales/gl-ES-HMX3MZ6V.js +0 -10
- package/dist/prod/locales/he-IL-6SHJWFNN.js +0 -10
- package/dist/prod/locales/hi-IN-IWLTKZ5I.js +0 -4
- package/dist/prod/locales/hu-HU-A5ZG7DT2.js +0 -7
- package/dist/prod/locales/id-ID-SAP4L64H.js +0 -10
- package/dist/prod/locales/it-IT-JPQ66NNP.js +0 -11
- package/dist/prod/locales/ja-JP-DBVTYXUO.js +0 -8
- package/dist/prod/locales/kaa-6HZHGXH3.js +0 -1
- package/dist/prod/locales/kab-KAB-ZGHBKWFO.js +0 -8
- package/dist/prod/locales/kk-KZ-P5N5QNE5.js +0 -1
- package/dist/prod/locales/km-KH-HSX4SM5Z.js +0 -11
- package/dist/prod/locales/ko-KR-MTYHY66A.js +0 -9
- package/dist/prod/locales/ku-TR-6OUDTVRD.js +0 -9
- package/dist/prod/locales/lt-LT-XHIRWOB4.js +0 -3
- package/dist/prod/locales/lv-LV-5QDEKY6T.js +0 -7
- package/dist/prod/locales/mr-IN-CRQNXWMA.js +0 -13
- package/dist/prod/locales/my-MM-5M5IBNSE.js +0 -1
- package/dist/prod/locales/nb-NO-T6EIAALU.js +0 -10
- package/dist/prod/locales/nl-NL-IS3SIHDZ.js +0 -8
- package/dist/prod/locales/nn-NO-6E72VCQL.js +0 -8
- package/dist/prod/locales/oc-FR-POXYY2M6.js +0 -8
- package/dist/prod/locales/pa-IN-N4M65BXN.js +0 -4
- package/dist/prod/locales/percentages-BXMCSKIN.js +0 -1
- package/dist/prod/locales/pl-PL-T2D74RX3.js +0 -9
- package/dist/prod/locales/pt-BR-5N22H2LF.js +0 -9
- package/dist/prod/locales/pt-PT-UZXXM6DQ.js +0 -9
- package/dist/prod/locales/ro-RO-JPDTUUEW.js +0 -11
- package/dist/prod/locales/ru-RU-B4JR7IUQ.js +0 -9
- package/dist/prod/locales/si-LK-N5RQ5JYF.js +0 -1
- package/dist/prod/locales/sk-SK-C5VTKIMK.js +0 -6
- package/dist/prod/locales/sl-SI-NN7IZMDC.js +0 -6
- package/dist/prod/locales/sv-SE-XGPEYMSR.js +0 -10
- package/dist/prod/locales/ta-IN-2NMHFXQM.js +0 -9
- package/dist/prod/locales/th-TH-HPSO5L25.js +0 -2
- package/dist/prod/locales/tr-TR-DEFEU3FU.js +0 -7
- package/dist/prod/locales/uk-UA-QMV73CPH.js +0 -6
- package/dist/prod/locales/vi-VN-M7AON7JQ.js +0 -5
- package/dist/prod/locales/zh-CN-LNUGB5OW.js +0 -10
- package/dist/prod/locales/zh-HK-E62DVLB3.js +0 -1
- package/dist/prod/locales/zh-TW-RAJ6MFWO.js +0 -9
- /package/dist/dev/{chunk-CP5DND7P.js.map → chunk-Y3BTNZQY.js.map} +0 -0
- /package/dist/dev/data/{image-L23D26XS.js.map → image-2BHUUSLM.js.map} +0 -0
- /package/dist/dev/locales/{en-V3NQTBPG.js.map → en-JANWVQZF.js.map} +0 -0
- /package/dist/dev/locales/{percentages-YKFLWNK2.js.map → percentages-OGWD7R2K.js.map} +0 -0
|
@@ -1,19 +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
|
-
export declare const actionChangeViewBackgroundColor: {
|
|
6
|
-
|
|
7
|
-
label: string;
|
|
8
|
-
trackEvent: false;
|
|
9
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
10
|
-
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
11
|
-
appState: any;
|
|
12
|
-
captureUpdate: "IMMEDIATELY" | "EVENTUALLY";
|
|
13
|
-
};
|
|
14
|
-
PanelComponent: ({ elements, appState, updateData, appProps, data }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
} & {
|
|
16
|
-
keyTest?: undefined;
|
|
4
|
+
export declare const actionChangeViewBackgroundColor: import("./types").Action<Partial<AppState>> & {
|
|
5
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
17
6
|
};
|
|
18
7
|
export declare const actionClearCanvas: {
|
|
19
8
|
name: "clearCanvas";
|
|
@@ -23,7 +12,7 @@ export declare const actionClearCanvas: {
|
|
|
23
12
|
category: "canvas";
|
|
24
13
|
};
|
|
25
14
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
26
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
15
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
27
16
|
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
28
17
|
appState: {
|
|
29
18
|
files: {};
|
|
@@ -59,31 +48,31 @@ export declare const actionClearCanvas: {
|
|
|
59
48
|
clip: boolean;
|
|
60
49
|
};
|
|
61
50
|
name: string | null;
|
|
62
|
-
zoom:
|
|
63
|
-
value: import("../types").NormalizedZoomValue;
|
|
64
|
-
}>;
|
|
51
|
+
zoom: import("../types").Zoom;
|
|
65
52
|
scrollX: number;
|
|
66
53
|
scrollY: number;
|
|
67
54
|
viewModeEnabled: boolean;
|
|
68
|
-
openDialog: {
|
|
55
|
+
openDialog: null | {
|
|
69
56
|
name: "imageExport" | "help" | "jsonExport";
|
|
70
57
|
} | {
|
|
71
58
|
name: "ttd";
|
|
72
|
-
tab: "
|
|
59
|
+
tab: "text-to-diagram" | "mermaid";
|
|
73
60
|
} | {
|
|
74
61
|
name: "commandPalette";
|
|
62
|
+
} | {
|
|
63
|
+
name: "settings";
|
|
75
64
|
} | {
|
|
76
65
|
name: "elementLinkSelector";
|
|
77
|
-
sourceElementId:
|
|
78
|
-
}
|
|
79
|
-
editingGroupId:
|
|
66
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
67
|
+
};
|
|
68
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
80
69
|
selectedElementIds: Readonly<{
|
|
81
70
|
[id: string]: true;
|
|
82
71
|
}>;
|
|
83
72
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
84
73
|
activeEmbeddable: {
|
|
85
74
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
86
|
-
state: "
|
|
75
|
+
state: "hover" | "active";
|
|
87
76
|
} | null;
|
|
88
77
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
89
78
|
selectedGroupIds: {
|
|
@@ -91,40 +80,28 @@ export declare const actionClearCanvas: {
|
|
|
91
80
|
};
|
|
92
81
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
93
82
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
83
|
+
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
94
84
|
isBindingEnabled: boolean;
|
|
95
|
-
|
|
85
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
96
86
|
isRotating: boolean;
|
|
97
87
|
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
98
|
-
collaborators: Map<import("../types").SocketId,
|
|
99
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
100
|
-
button?: "up" | "down" | undefined;
|
|
101
|
-
selectedElementIds?: Readonly<{
|
|
102
|
-
[id: string]: true;
|
|
103
|
-
}> | undefined;
|
|
104
|
-
username?: string | null | undefined;
|
|
105
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
106
|
-
color?: {
|
|
107
|
-
background: string;
|
|
108
|
-
stroke: string;
|
|
109
|
-
} | undefined;
|
|
110
|
-
avatarUrl?: string | undefined;
|
|
111
|
-
id?: string | undefined;
|
|
112
|
-
socketId?: import("../types").SocketId | undefined;
|
|
113
|
-
isCurrentUser?: boolean | undefined;
|
|
114
|
-
isInCall?: boolean | undefined;
|
|
115
|
-
isSpeaking?: boolean | undefined;
|
|
116
|
-
isMuted?: boolean | undefined;
|
|
117
|
-
}>>;
|
|
88
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
118
89
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
119
90
|
zenModeEnabled: boolean;
|
|
120
91
|
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
121
92
|
isCropping: boolean;
|
|
122
|
-
croppingElementId:
|
|
93
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
123
94
|
searchMatches: Readonly<{
|
|
124
|
-
focusedId:
|
|
95
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
125
96
|
matches: readonly import("../types").SearchMatch[];
|
|
126
97
|
}> | null;
|
|
127
98
|
activeLockedId: string | null;
|
|
99
|
+
hoveredElementIds: Readonly<{
|
|
100
|
+
[id: string]: true;
|
|
101
|
+
}>;
|
|
102
|
+
shouldCacheIgnoreZoom: boolean;
|
|
103
|
+
exportScale: number;
|
|
104
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
128
105
|
contextMenu: {
|
|
129
106
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
130
107
|
top: number;
|
|
@@ -132,8 +109,7 @@ export declare const actionClearCanvas: {
|
|
|
132
109
|
} | null;
|
|
133
110
|
showWelcomeScreen: boolean;
|
|
134
111
|
isLoading: boolean;
|
|
135
|
-
errorMessage:
|
|
136
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
112
|
+
errorMessage: React.ReactNode;
|
|
137
113
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
138
114
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
139
115
|
editingFrame: string | null;
|
|
@@ -142,49 +118,44 @@ export declare const actionClearCanvas: {
|
|
|
142
118
|
initialized: boolean;
|
|
143
119
|
};
|
|
144
120
|
exportWithDarkMode: boolean;
|
|
145
|
-
exportScale: number;
|
|
146
121
|
currentItemStrokeColor: string;
|
|
147
122
|
currentItemBackgroundColor: string;
|
|
148
|
-
currentItemFillStyle:
|
|
123
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
149
124
|
currentItemStrokeWidth: number;
|
|
150
|
-
currentItemStrokeStyle:
|
|
125
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
151
126
|
currentItemRoughness: number;
|
|
152
127
|
currentItemOpacity: number;
|
|
153
|
-
currentItemFontFamily:
|
|
128
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
154
129
|
currentItemFontSize: number;
|
|
155
|
-
currentItemTextAlign:
|
|
130
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
156
131
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
157
132
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
158
|
-
currentHoveredFontFamily:
|
|
133
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
159
134
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
160
|
-
currentItemArrowType: "
|
|
135
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
161
136
|
cursorButton: "up" | "down";
|
|
162
137
|
scrolledOutside: boolean;
|
|
163
138
|
isResizing: boolean;
|
|
164
139
|
openMenu: "canvas" | null;
|
|
165
|
-
openPopup: "
|
|
140
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
166
141
|
openSidebar: {
|
|
167
|
-
name:
|
|
168
|
-
tab?:
|
|
142
|
+
name: import("../types").SidebarName;
|
|
143
|
+
tab?: import("../types").SidebarTabName;
|
|
169
144
|
} | null;
|
|
170
145
|
defaultSidebarDockedPreference: boolean;
|
|
171
146
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
172
|
-
hoveredElementIds: Readonly<{
|
|
173
|
-
[id: string]: true;
|
|
174
|
-
}>;
|
|
175
147
|
previousSelectedElementIds: {
|
|
176
148
|
[id: string]: true;
|
|
177
149
|
};
|
|
178
150
|
selectedElementsAreBeingDragged: boolean;
|
|
179
|
-
shouldCacheIgnoreZoom: boolean;
|
|
180
151
|
toast: {
|
|
181
152
|
message: string;
|
|
182
|
-
closable?: boolean
|
|
183
|
-
duration?: number
|
|
153
|
+
closable?: boolean;
|
|
154
|
+
duration?: number;
|
|
184
155
|
} | null;
|
|
185
156
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
186
157
|
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
187
|
-
showHyperlinkPopup: false | "
|
|
158
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
188
159
|
originSnapOffset: {
|
|
189
160
|
x: number;
|
|
190
161
|
y: number;
|
|
@@ -195,7 +166,6 @@ export declare const actionClearCanvas: {
|
|
|
195
166
|
lockedMultiSelections: {
|
|
196
167
|
[groupId: string]: true;
|
|
197
168
|
};
|
|
198
|
-
stylesPanelMode: "compact" | "full" | "mobile";
|
|
199
169
|
};
|
|
200
170
|
captureUpdate: "IMMEDIATELY";
|
|
201
171
|
};
|
|
@@ -210,7 +180,7 @@ export declare const actionZoomIn: {
|
|
|
210
180
|
trackEvent: {
|
|
211
181
|
category: "canvas";
|
|
212
182
|
};
|
|
213
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
183
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
214
184
|
appState: {
|
|
215
185
|
userToFollow: null;
|
|
216
186
|
scrollX: number;
|
|
@@ -225,10 +195,10 @@ export declare const actionZoomIn: {
|
|
|
225
195
|
} | null;
|
|
226
196
|
showWelcomeScreen: boolean;
|
|
227
197
|
isLoading: boolean;
|
|
228
|
-
errorMessage:
|
|
198
|
+
errorMessage: React.ReactNode;
|
|
229
199
|
activeEmbeddable: {
|
|
230
200
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
231
|
-
state: "
|
|
201
|
+
state: "hover" | "active";
|
|
232
202
|
} | null;
|
|
233
203
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
234
204
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -236,7 +206,7 @@ export declare const actionZoomIn: {
|
|
|
236
206
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
237
207
|
isBindingEnabled: boolean;
|
|
238
208
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
239
|
-
|
|
209
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
240
210
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
241
211
|
frameRendering: {
|
|
242
212
|
enabled: boolean;
|
|
@@ -264,19 +234,19 @@ export declare const actionZoomIn: {
|
|
|
264
234
|
exportScale: number;
|
|
265
235
|
currentItemStrokeColor: string;
|
|
266
236
|
currentItemBackgroundColor: string;
|
|
267
|
-
currentItemFillStyle:
|
|
237
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
268
238
|
currentItemStrokeWidth: number;
|
|
269
|
-
currentItemStrokeStyle:
|
|
239
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
270
240
|
currentItemRoughness: number;
|
|
271
241
|
currentItemOpacity: number;
|
|
272
|
-
currentItemFontFamily:
|
|
242
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
273
243
|
currentItemFontSize: number;
|
|
274
|
-
currentItemTextAlign:
|
|
244
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
275
245
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
276
246
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
277
|
-
currentHoveredFontFamily:
|
|
247
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
278
248
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
279
|
-
currentItemArrowType: "
|
|
249
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
280
250
|
viewBackgroundColor: string;
|
|
281
251
|
cursorButton: "up" | "down";
|
|
282
252
|
scrolledOutside: boolean;
|
|
@@ -284,22 +254,24 @@ export declare const actionZoomIn: {
|
|
|
284
254
|
isResizing: boolean;
|
|
285
255
|
isRotating: boolean;
|
|
286
256
|
openMenu: "canvas" | null;
|
|
287
|
-
openPopup: "
|
|
257
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
288
258
|
openSidebar: {
|
|
289
|
-
name:
|
|
290
|
-
tab?:
|
|
259
|
+
name: import("../types").SidebarName;
|
|
260
|
+
tab?: import("../types").SidebarTabName;
|
|
291
261
|
} | null;
|
|
292
|
-
openDialog: {
|
|
262
|
+
openDialog: null | {
|
|
293
263
|
name: "imageExport" | "help" | "jsonExport";
|
|
294
264
|
} | {
|
|
295
265
|
name: "ttd";
|
|
296
|
-
tab: "
|
|
266
|
+
tab: "text-to-diagram" | "mermaid";
|
|
297
267
|
} | {
|
|
298
268
|
name: "commandPalette";
|
|
269
|
+
} | {
|
|
270
|
+
name: "settings";
|
|
299
271
|
} | {
|
|
300
272
|
name: "elementLinkSelector";
|
|
301
|
-
sourceElementId:
|
|
302
|
-
}
|
|
273
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
274
|
+
};
|
|
303
275
|
defaultSidebarDockedPreference: boolean;
|
|
304
276
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
305
277
|
selectedElementIds: Readonly<{
|
|
@@ -315,8 +287,8 @@ export declare const actionZoomIn: {
|
|
|
315
287
|
shouldCacheIgnoreZoom: boolean;
|
|
316
288
|
toast: {
|
|
317
289
|
message: string;
|
|
318
|
-
closable?: boolean
|
|
319
|
-
duration?: number
|
|
290
|
+
closable?: boolean;
|
|
291
|
+
duration?: number;
|
|
320
292
|
} | null;
|
|
321
293
|
zenModeEnabled: boolean;
|
|
322
294
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -327,32 +299,13 @@ export declare const actionZoomIn: {
|
|
|
327
299
|
selectedGroupIds: {
|
|
328
300
|
[groupId: string]: boolean;
|
|
329
301
|
};
|
|
330
|
-
editingGroupId:
|
|
302
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
331
303
|
width: number;
|
|
332
304
|
height: number;
|
|
333
305
|
offsetTop: number;
|
|
334
306
|
offsetLeft: number;
|
|
335
307
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
336
|
-
collaborators: Map<import("../types").SocketId,
|
|
337
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
338
|
-
button?: "up" | "down" | undefined;
|
|
339
|
-
selectedElementIds?: Readonly<{
|
|
340
|
-
[id: string]: true;
|
|
341
|
-
}> | undefined;
|
|
342
|
-
username?: string | null | undefined;
|
|
343
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
344
|
-
color?: {
|
|
345
|
-
background: string;
|
|
346
|
-
stroke: string;
|
|
347
|
-
} | undefined;
|
|
348
|
-
avatarUrl?: string | undefined;
|
|
349
|
-
id?: string | undefined;
|
|
350
|
-
socketId?: import("../types").SocketId | undefined;
|
|
351
|
-
isCurrentUser?: boolean | undefined;
|
|
352
|
-
isInCall?: boolean | undefined;
|
|
353
|
-
isSpeaking?: boolean | undefined;
|
|
354
|
-
isMuted?: boolean | undefined;
|
|
355
|
-
}>>;
|
|
308
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
356
309
|
stats: {
|
|
357
310
|
open: boolean;
|
|
358
311
|
panels: number;
|
|
@@ -365,7 +318,7 @@ export declare const actionZoomIn: {
|
|
|
365
318
|
shown: true;
|
|
366
319
|
data: import("../charts").Spreadsheet;
|
|
367
320
|
};
|
|
368
|
-
showHyperlinkPopup: false | "
|
|
321
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
369
322
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
370
323
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
371
324
|
originSnapOffset: {
|
|
@@ -375,16 +328,16 @@ export declare const actionZoomIn: {
|
|
|
375
328
|
objectsSnapModeEnabled: boolean;
|
|
376
329
|
followedBy: Set<import("../types").SocketId>;
|
|
377
330
|
isCropping: boolean;
|
|
378
|
-
croppingElementId:
|
|
331
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
379
332
|
searchMatches: Readonly<{
|
|
380
|
-
focusedId:
|
|
333
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
381
334
|
matches: readonly import("../types").SearchMatch[];
|
|
382
335
|
}> | null;
|
|
383
336
|
activeLockedId: string | null;
|
|
384
337
|
lockedMultiSelections: {
|
|
385
338
|
[groupId: string]: true;
|
|
386
339
|
};
|
|
387
|
-
|
|
340
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
388
341
|
};
|
|
389
342
|
captureUpdate: "EVENTUALLY";
|
|
390
343
|
};
|
|
@@ -401,7 +354,7 @@ export declare const actionZoomOut: {
|
|
|
401
354
|
trackEvent: {
|
|
402
355
|
category: "canvas";
|
|
403
356
|
};
|
|
404
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
357
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
405
358
|
appState: {
|
|
406
359
|
userToFollow: null;
|
|
407
360
|
scrollX: number;
|
|
@@ -416,10 +369,10 @@ export declare const actionZoomOut: {
|
|
|
416
369
|
} | null;
|
|
417
370
|
showWelcomeScreen: boolean;
|
|
418
371
|
isLoading: boolean;
|
|
419
|
-
errorMessage:
|
|
372
|
+
errorMessage: React.ReactNode;
|
|
420
373
|
activeEmbeddable: {
|
|
421
374
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
422
|
-
state: "
|
|
375
|
+
state: "hover" | "active";
|
|
423
376
|
} | null;
|
|
424
377
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
425
378
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -427,7 +380,7 @@ export declare const actionZoomOut: {
|
|
|
427
380
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
428
381
|
isBindingEnabled: boolean;
|
|
429
382
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
430
|
-
|
|
383
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
431
384
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
432
385
|
frameRendering: {
|
|
433
386
|
enabled: boolean;
|
|
@@ -455,19 +408,19 @@ export declare const actionZoomOut: {
|
|
|
455
408
|
exportScale: number;
|
|
456
409
|
currentItemStrokeColor: string;
|
|
457
410
|
currentItemBackgroundColor: string;
|
|
458
|
-
currentItemFillStyle:
|
|
411
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
459
412
|
currentItemStrokeWidth: number;
|
|
460
|
-
currentItemStrokeStyle:
|
|
413
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
461
414
|
currentItemRoughness: number;
|
|
462
415
|
currentItemOpacity: number;
|
|
463
|
-
currentItemFontFamily:
|
|
416
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
464
417
|
currentItemFontSize: number;
|
|
465
|
-
currentItemTextAlign:
|
|
418
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
466
419
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
467
420
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
468
|
-
currentHoveredFontFamily:
|
|
421
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
469
422
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
470
|
-
currentItemArrowType: "
|
|
423
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
471
424
|
viewBackgroundColor: string;
|
|
472
425
|
cursorButton: "up" | "down";
|
|
473
426
|
scrolledOutside: boolean;
|
|
@@ -475,22 +428,24 @@ export declare const actionZoomOut: {
|
|
|
475
428
|
isResizing: boolean;
|
|
476
429
|
isRotating: boolean;
|
|
477
430
|
openMenu: "canvas" | null;
|
|
478
|
-
openPopup: "
|
|
431
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
479
432
|
openSidebar: {
|
|
480
|
-
name:
|
|
481
|
-
tab?:
|
|
433
|
+
name: import("../types").SidebarName;
|
|
434
|
+
tab?: import("../types").SidebarTabName;
|
|
482
435
|
} | null;
|
|
483
|
-
openDialog: {
|
|
436
|
+
openDialog: null | {
|
|
484
437
|
name: "imageExport" | "help" | "jsonExport";
|
|
485
438
|
} | {
|
|
486
439
|
name: "ttd";
|
|
487
|
-
tab: "
|
|
440
|
+
tab: "text-to-diagram" | "mermaid";
|
|
488
441
|
} | {
|
|
489
442
|
name: "commandPalette";
|
|
443
|
+
} | {
|
|
444
|
+
name: "settings";
|
|
490
445
|
} | {
|
|
491
446
|
name: "elementLinkSelector";
|
|
492
|
-
sourceElementId:
|
|
493
|
-
}
|
|
447
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
448
|
+
};
|
|
494
449
|
defaultSidebarDockedPreference: boolean;
|
|
495
450
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
496
451
|
selectedElementIds: Readonly<{
|
|
@@ -506,8 +461,8 @@ export declare const actionZoomOut: {
|
|
|
506
461
|
shouldCacheIgnoreZoom: boolean;
|
|
507
462
|
toast: {
|
|
508
463
|
message: string;
|
|
509
|
-
closable?: boolean
|
|
510
|
-
duration?: number
|
|
464
|
+
closable?: boolean;
|
|
465
|
+
duration?: number;
|
|
511
466
|
} | null;
|
|
512
467
|
zenModeEnabled: boolean;
|
|
513
468
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -518,32 +473,13 @@ export declare const actionZoomOut: {
|
|
|
518
473
|
selectedGroupIds: {
|
|
519
474
|
[groupId: string]: boolean;
|
|
520
475
|
};
|
|
521
|
-
editingGroupId:
|
|
476
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
522
477
|
width: number;
|
|
523
478
|
height: number;
|
|
524
479
|
offsetTop: number;
|
|
525
480
|
offsetLeft: number;
|
|
526
481
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
527
|
-
collaborators: Map<import("../types").SocketId,
|
|
528
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
529
|
-
button?: "up" | "down" | undefined;
|
|
530
|
-
selectedElementIds?: Readonly<{
|
|
531
|
-
[id: string]: true;
|
|
532
|
-
}> | undefined;
|
|
533
|
-
username?: string | null | undefined;
|
|
534
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
535
|
-
color?: {
|
|
536
|
-
background: string;
|
|
537
|
-
stroke: string;
|
|
538
|
-
} | undefined;
|
|
539
|
-
avatarUrl?: string | undefined;
|
|
540
|
-
id?: string | undefined;
|
|
541
|
-
socketId?: import("../types").SocketId | undefined;
|
|
542
|
-
isCurrentUser?: boolean | undefined;
|
|
543
|
-
isInCall?: boolean | undefined;
|
|
544
|
-
isSpeaking?: boolean | undefined;
|
|
545
|
-
isMuted?: boolean | undefined;
|
|
546
|
-
}>>;
|
|
482
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
547
483
|
stats: {
|
|
548
484
|
open: boolean;
|
|
549
485
|
panels: number;
|
|
@@ -556,7 +492,7 @@ export declare const actionZoomOut: {
|
|
|
556
492
|
shown: true;
|
|
557
493
|
data: import("../charts").Spreadsheet;
|
|
558
494
|
};
|
|
559
|
-
showHyperlinkPopup: false | "
|
|
495
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
560
496
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
561
497
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
562
498
|
originSnapOffset: {
|
|
@@ -566,16 +502,16 @@ export declare const actionZoomOut: {
|
|
|
566
502
|
objectsSnapModeEnabled: boolean;
|
|
567
503
|
followedBy: Set<import("../types").SocketId>;
|
|
568
504
|
isCropping: boolean;
|
|
569
|
-
croppingElementId:
|
|
505
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
570
506
|
searchMatches: Readonly<{
|
|
571
|
-
focusedId:
|
|
507
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
572
508
|
matches: readonly import("../types").SearchMatch[];
|
|
573
509
|
}> | null;
|
|
574
510
|
activeLockedId: string | null;
|
|
575
511
|
lockedMultiSelections: {
|
|
576
512
|
[groupId: string]: true;
|
|
577
513
|
};
|
|
578
|
-
|
|
514
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
579
515
|
};
|
|
580
516
|
captureUpdate: "EVENTUALLY";
|
|
581
517
|
};
|
|
@@ -592,7 +528,7 @@ export declare const actionResetZoom: {
|
|
|
592
528
|
trackEvent: {
|
|
593
529
|
category: "canvas";
|
|
594
530
|
};
|
|
595
|
-
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
531
|
+
perform: (_elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
596
532
|
appState: {
|
|
597
533
|
userToFollow: null;
|
|
598
534
|
scrollX: number;
|
|
@@ -607,10 +543,10 @@ export declare const actionResetZoom: {
|
|
|
607
543
|
} | null;
|
|
608
544
|
showWelcomeScreen: boolean;
|
|
609
545
|
isLoading: boolean;
|
|
610
|
-
errorMessage:
|
|
546
|
+
errorMessage: React.ReactNode;
|
|
611
547
|
activeEmbeddable: {
|
|
612
548
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
613
|
-
state: "
|
|
549
|
+
state: "hover" | "active";
|
|
614
550
|
} | null;
|
|
615
551
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
616
552
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -618,7 +554,7 @@ export declare const actionResetZoom: {
|
|
|
618
554
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
619
555
|
isBindingEnabled: boolean;
|
|
620
556
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
621
|
-
|
|
557
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
622
558
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
623
559
|
frameRendering: {
|
|
624
560
|
enabled: boolean;
|
|
@@ -646,19 +582,19 @@ export declare const actionResetZoom: {
|
|
|
646
582
|
exportScale: number;
|
|
647
583
|
currentItemStrokeColor: string;
|
|
648
584
|
currentItemBackgroundColor: string;
|
|
649
|
-
currentItemFillStyle:
|
|
585
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
650
586
|
currentItemStrokeWidth: number;
|
|
651
|
-
currentItemStrokeStyle:
|
|
587
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
652
588
|
currentItemRoughness: number;
|
|
653
589
|
currentItemOpacity: number;
|
|
654
|
-
currentItemFontFamily:
|
|
590
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
655
591
|
currentItemFontSize: number;
|
|
656
|
-
currentItemTextAlign:
|
|
592
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
657
593
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
658
594
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
659
|
-
currentHoveredFontFamily:
|
|
595
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
660
596
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
661
|
-
currentItemArrowType: "
|
|
597
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
662
598
|
viewBackgroundColor: string;
|
|
663
599
|
cursorButton: "up" | "down";
|
|
664
600
|
scrolledOutside: boolean;
|
|
@@ -666,22 +602,24 @@ export declare const actionResetZoom: {
|
|
|
666
602
|
isResizing: boolean;
|
|
667
603
|
isRotating: boolean;
|
|
668
604
|
openMenu: "canvas" | null;
|
|
669
|
-
openPopup: "
|
|
605
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
670
606
|
openSidebar: {
|
|
671
|
-
name:
|
|
672
|
-
tab?:
|
|
607
|
+
name: import("../types").SidebarName;
|
|
608
|
+
tab?: import("../types").SidebarTabName;
|
|
673
609
|
} | null;
|
|
674
|
-
openDialog: {
|
|
610
|
+
openDialog: null | {
|
|
675
611
|
name: "imageExport" | "help" | "jsonExport";
|
|
676
612
|
} | {
|
|
677
613
|
name: "ttd";
|
|
678
|
-
tab: "
|
|
614
|
+
tab: "text-to-diagram" | "mermaid";
|
|
679
615
|
} | {
|
|
680
616
|
name: "commandPalette";
|
|
617
|
+
} | {
|
|
618
|
+
name: "settings";
|
|
681
619
|
} | {
|
|
682
620
|
name: "elementLinkSelector";
|
|
683
|
-
sourceElementId:
|
|
684
|
-
}
|
|
621
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
622
|
+
};
|
|
685
623
|
defaultSidebarDockedPreference: boolean;
|
|
686
624
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
687
625
|
selectedElementIds: Readonly<{
|
|
@@ -697,8 +635,8 @@ export declare const actionResetZoom: {
|
|
|
697
635
|
shouldCacheIgnoreZoom: boolean;
|
|
698
636
|
toast: {
|
|
699
637
|
message: string;
|
|
700
|
-
closable?: boolean
|
|
701
|
-
duration?: number
|
|
638
|
+
closable?: boolean;
|
|
639
|
+
duration?: number;
|
|
702
640
|
} | null;
|
|
703
641
|
zenModeEnabled: boolean;
|
|
704
642
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -709,32 +647,13 @@ export declare const actionResetZoom: {
|
|
|
709
647
|
selectedGroupIds: {
|
|
710
648
|
[groupId: string]: boolean;
|
|
711
649
|
};
|
|
712
|
-
editingGroupId:
|
|
650
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
713
651
|
width: number;
|
|
714
652
|
height: number;
|
|
715
653
|
offsetTop: number;
|
|
716
654
|
offsetLeft: number;
|
|
717
655
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
718
|
-
collaborators: Map<import("../types").SocketId,
|
|
719
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
720
|
-
button?: "up" | "down" | undefined;
|
|
721
|
-
selectedElementIds?: Readonly<{
|
|
722
|
-
[id: string]: true;
|
|
723
|
-
}> | undefined;
|
|
724
|
-
username?: string | null | undefined;
|
|
725
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
726
|
-
color?: {
|
|
727
|
-
background: string;
|
|
728
|
-
stroke: string;
|
|
729
|
-
} | undefined;
|
|
730
|
-
avatarUrl?: string | undefined;
|
|
731
|
-
id?: string | undefined;
|
|
732
|
-
socketId?: import("../types").SocketId | undefined;
|
|
733
|
-
isCurrentUser?: boolean | undefined;
|
|
734
|
-
isInCall?: boolean | undefined;
|
|
735
|
-
isSpeaking?: boolean | undefined;
|
|
736
|
-
isMuted?: boolean | undefined;
|
|
737
|
-
}>>;
|
|
656
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
738
657
|
stats: {
|
|
739
658
|
open: boolean;
|
|
740
659
|
panels: number;
|
|
@@ -747,7 +666,7 @@ export declare const actionResetZoom: {
|
|
|
747
666
|
shown: true;
|
|
748
667
|
data: import("../charts").Spreadsheet;
|
|
749
668
|
};
|
|
750
|
-
showHyperlinkPopup: false | "
|
|
669
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
751
670
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
752
671
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
753
672
|
originSnapOffset: {
|
|
@@ -757,16 +676,16 @@ export declare const actionResetZoom: {
|
|
|
757
676
|
objectsSnapModeEnabled: boolean;
|
|
758
677
|
followedBy: Set<import("../types").SocketId>;
|
|
759
678
|
isCropping: boolean;
|
|
760
|
-
croppingElementId:
|
|
679
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
761
680
|
searchMatches: Readonly<{
|
|
762
|
-
focusedId:
|
|
681
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
763
682
|
matches: readonly import("../types").SearchMatch[];
|
|
764
683
|
}> | null;
|
|
765
684
|
activeLockedId: string | null;
|
|
766
685
|
lockedMultiSelections: {
|
|
767
686
|
[groupId: string]: true;
|
|
768
687
|
};
|
|
769
|
-
|
|
688
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
770
689
|
};
|
|
771
690
|
captureUpdate: "EVENTUALLY";
|
|
772
691
|
};
|
|
@@ -777,19 +696,14 @@ export declare const actionResetZoom: {
|
|
|
777
696
|
};
|
|
778
697
|
export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToViewport, viewportZoomFactor, minZoom, maxZoom, }: {
|
|
779
698
|
bounds: SceneBounds;
|
|
780
|
-
canvasOffsets?:
|
|
781
|
-
top: number;
|
|
782
|
-
right: number;
|
|
783
|
-
bottom: number;
|
|
784
|
-
left: number;
|
|
785
|
-
}> | undefined;
|
|
699
|
+
canvasOffsets?: Offsets;
|
|
786
700
|
appState: Readonly<AppState>;
|
|
787
701
|
/** whether to fit content to viewport (beyond >100%) */
|
|
788
702
|
fitToViewport: boolean;
|
|
789
703
|
/** zoom content to cover X of the viewport, when fitToViewport=true */
|
|
790
|
-
viewportZoomFactor?: number
|
|
791
|
-
minZoom?: number
|
|
792
|
-
maxZoom?: number
|
|
704
|
+
viewportZoomFactor?: number;
|
|
705
|
+
minZoom?: number;
|
|
706
|
+
maxZoom?: number;
|
|
793
707
|
}) => {
|
|
794
708
|
appState: {
|
|
795
709
|
scrollX: number;
|
|
@@ -804,10 +718,10 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
804
718
|
} | null;
|
|
805
719
|
showWelcomeScreen: boolean;
|
|
806
720
|
isLoading: boolean;
|
|
807
|
-
errorMessage:
|
|
721
|
+
errorMessage: React.ReactNode;
|
|
808
722
|
activeEmbeddable: {
|
|
809
723
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
810
|
-
state: "
|
|
724
|
+
state: "hover" | "active";
|
|
811
725
|
} | null;
|
|
812
726
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
813
727
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -815,7 +729,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
815
729
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
816
730
|
isBindingEnabled: boolean;
|
|
817
731
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
818
|
-
|
|
732
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
819
733
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
820
734
|
frameRendering: {
|
|
821
735
|
enabled: boolean;
|
|
@@ -843,19 +757,19 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
843
757
|
exportScale: number;
|
|
844
758
|
currentItemStrokeColor: string;
|
|
845
759
|
currentItemBackgroundColor: string;
|
|
846
|
-
currentItemFillStyle:
|
|
760
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
847
761
|
currentItemStrokeWidth: number;
|
|
848
|
-
currentItemStrokeStyle:
|
|
762
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
849
763
|
currentItemRoughness: number;
|
|
850
764
|
currentItemOpacity: number;
|
|
851
|
-
currentItemFontFamily:
|
|
765
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
852
766
|
currentItemFontSize: number;
|
|
853
|
-
currentItemTextAlign:
|
|
767
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
854
768
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
855
769
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
856
|
-
currentHoveredFontFamily:
|
|
770
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
857
771
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
858
|
-
currentItemArrowType: "
|
|
772
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
859
773
|
viewBackgroundColor: string;
|
|
860
774
|
cursorButton: "up" | "down";
|
|
861
775
|
scrolledOutside: boolean;
|
|
@@ -863,22 +777,24 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
863
777
|
isResizing: boolean;
|
|
864
778
|
isRotating: boolean;
|
|
865
779
|
openMenu: "canvas" | null;
|
|
866
|
-
openPopup: "
|
|
780
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
867
781
|
openSidebar: {
|
|
868
|
-
name:
|
|
869
|
-
tab?:
|
|
782
|
+
name: import("../types").SidebarName;
|
|
783
|
+
tab?: import("../types").SidebarTabName;
|
|
870
784
|
} | null;
|
|
871
|
-
openDialog: {
|
|
785
|
+
openDialog: null | {
|
|
872
786
|
name: "imageExport" | "help" | "jsonExport";
|
|
873
787
|
} | {
|
|
874
788
|
name: "ttd";
|
|
875
|
-
tab: "
|
|
789
|
+
tab: "text-to-diagram" | "mermaid";
|
|
876
790
|
} | {
|
|
877
791
|
name: "commandPalette";
|
|
792
|
+
} | {
|
|
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;
|
|
@@ -944,7 +841,7 @@ export declare const zoomToFitBounds: ({ bounds, appState, canvasOffsets, fitToV
|
|
|
944
841
|
shown: true;
|
|
945
842
|
data: import("../charts").Spreadsheet;
|
|
946
843
|
};
|
|
947
|
-
showHyperlinkPopup: false | "
|
|
844
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
948
845
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
949
846
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
950
847
|
originSnapOffset: {
|
|
@@ -955,34 +852,29 @@ 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;
|
|
964
861
|
lockedMultiSelections: {
|
|
965
862
|
[groupId: string]: true;
|
|
966
863
|
};
|
|
967
|
-
|
|
864
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
968
865
|
};
|
|
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;
|
|
@@ -1008,7 +900,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1008
900
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1009
901
|
isBindingEnabled: boolean;
|
|
1010
902
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1011
|
-
|
|
903
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1012
904
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1013
905
|
frameRendering: {
|
|
1014
906
|
enabled: boolean;
|
|
@@ -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,22 +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";
|
|
963
|
+
} | {
|
|
964
|
+
name: "settings";
|
|
1071
965
|
} | {
|
|
1072
966
|
name: "elementLinkSelector";
|
|
1073
|
-
sourceElementId:
|
|
1074
|
-
}
|
|
967
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
968
|
+
};
|
|
1075
969
|
defaultSidebarDockedPreference: boolean;
|
|
1076
970
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1077
971
|
selectedElementIds: Readonly<{
|
|
@@ -1087,8 +981,8 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1087
981
|
shouldCacheIgnoreZoom: boolean;
|
|
1088
982
|
toast: {
|
|
1089
983
|
message: string;
|
|
1090
|
-
closable?: boolean
|
|
1091
|
-
duration?: number
|
|
984
|
+
closable?: boolean;
|
|
985
|
+
duration?: number;
|
|
1092
986
|
} | null;
|
|
1093
987
|
zenModeEnabled: boolean;
|
|
1094
988
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1099,32 +993,13 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1099
993
|
selectedGroupIds: {
|
|
1100
994
|
[groupId: string]: boolean;
|
|
1101
995
|
};
|
|
1102
|
-
editingGroupId:
|
|
996
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1103
997
|
width: number;
|
|
1104
998
|
height: number;
|
|
1105
999
|
offsetTop: number;
|
|
1106
1000
|
offsetLeft: number;
|
|
1107
1001
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1108
|
-
collaborators: Map<import("../types").SocketId,
|
|
1109
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1110
|
-
button?: "up" | "down" | undefined;
|
|
1111
|
-
selectedElementIds?: Readonly<{
|
|
1112
|
-
[id: string]: true;
|
|
1113
|
-
}> | undefined;
|
|
1114
|
-
username?: string | null | undefined;
|
|
1115
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1116
|
-
color?: {
|
|
1117
|
-
background: string;
|
|
1118
|
-
stroke: string;
|
|
1119
|
-
} | undefined;
|
|
1120
|
-
avatarUrl?: string | undefined;
|
|
1121
|
-
id?: string | undefined;
|
|
1122
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1123
|
-
isCurrentUser?: boolean | undefined;
|
|
1124
|
-
isInCall?: boolean | undefined;
|
|
1125
|
-
isSpeaking?: boolean | undefined;
|
|
1126
|
-
isMuted?: boolean | undefined;
|
|
1127
|
-
}>>;
|
|
1002
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1128
1003
|
stats: {
|
|
1129
1004
|
open: boolean;
|
|
1130
1005
|
panels: number;
|
|
@@ -1137,7 +1012,7 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1137
1012
|
shown: true;
|
|
1138
1013
|
data: import("../charts").Spreadsheet;
|
|
1139
1014
|
};
|
|
1140
|
-
showHyperlinkPopup: false | "
|
|
1015
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1141
1016
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1142
1017
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1143
1018
|
originSnapOffset: {
|
|
@@ -1148,16 +1023,16 @@ export declare const zoomToFit: ({ canvasOffsets, targetElements, appState, fitT
|
|
|
1148
1023
|
userToFollow: import("../types").UserToFollow | null;
|
|
1149
1024
|
followedBy: Set<import("../types").SocketId>;
|
|
1150
1025
|
isCropping: boolean;
|
|
1151
|
-
croppingElementId:
|
|
1026
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1152
1027
|
searchMatches: Readonly<{
|
|
1153
|
-
focusedId:
|
|
1028
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1154
1029
|
matches: readonly import("../types").SearchMatch[];
|
|
1155
1030
|
}> | null;
|
|
1156
1031
|
activeLockedId: string | null;
|
|
1157
1032
|
lockedMultiSelections: {
|
|
1158
1033
|
[groupId: string]: true;
|
|
1159
1034
|
};
|
|
1160
|
-
|
|
1035
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1161
1036
|
};
|
|
1162
1037
|
captureUpdate: "EVENTUALLY";
|
|
1163
1038
|
};
|
|
@@ -1168,7 +1043,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1168
1043
|
trackEvent: {
|
|
1169
1044
|
category: "canvas";
|
|
1170
1045
|
};
|
|
1171
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1046
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1172
1047
|
appState: {
|
|
1173
1048
|
scrollX: number;
|
|
1174
1049
|
scrollY: number;
|
|
@@ -1182,10 +1057,10 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1182
1057
|
} | null;
|
|
1183
1058
|
showWelcomeScreen: boolean;
|
|
1184
1059
|
isLoading: boolean;
|
|
1185
|
-
errorMessage:
|
|
1060
|
+
errorMessage: React.ReactNode;
|
|
1186
1061
|
activeEmbeddable: {
|
|
1187
1062
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1188
|
-
state: "
|
|
1063
|
+
state: "hover" | "active";
|
|
1189
1064
|
} | null;
|
|
1190
1065
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1191
1066
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1193,7 +1068,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1193
1068
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1194
1069
|
isBindingEnabled: boolean;
|
|
1195
1070
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1196
|
-
|
|
1071
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1197
1072
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1198
1073
|
frameRendering: {
|
|
1199
1074
|
enabled: boolean;
|
|
@@ -1221,19 +1096,19 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1221
1096
|
exportScale: number;
|
|
1222
1097
|
currentItemStrokeColor: string;
|
|
1223
1098
|
currentItemBackgroundColor: string;
|
|
1224
|
-
currentItemFillStyle:
|
|
1099
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1225
1100
|
currentItemStrokeWidth: number;
|
|
1226
|
-
currentItemStrokeStyle:
|
|
1101
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1227
1102
|
currentItemRoughness: number;
|
|
1228
1103
|
currentItemOpacity: number;
|
|
1229
|
-
currentItemFontFamily:
|
|
1104
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1230
1105
|
currentItemFontSize: number;
|
|
1231
|
-
currentItemTextAlign:
|
|
1106
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1232
1107
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1233
1108
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1234
|
-
currentHoveredFontFamily:
|
|
1109
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1235
1110
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1236
|
-
currentItemArrowType: "
|
|
1111
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1237
1112
|
viewBackgroundColor: string;
|
|
1238
1113
|
cursorButton: "up" | "down";
|
|
1239
1114
|
scrolledOutside: boolean;
|
|
@@ -1241,22 +1116,24 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1241
1116
|
isResizing: boolean;
|
|
1242
1117
|
isRotating: boolean;
|
|
1243
1118
|
openMenu: "canvas" | null;
|
|
1244
|
-
openPopup: "
|
|
1119
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1245
1120
|
openSidebar: {
|
|
1246
|
-
name:
|
|
1247
|
-
tab?:
|
|
1121
|
+
name: import("../types").SidebarName;
|
|
1122
|
+
tab?: import("../types").SidebarTabName;
|
|
1248
1123
|
} | null;
|
|
1249
|
-
openDialog: {
|
|
1124
|
+
openDialog: null | {
|
|
1250
1125
|
name: "imageExport" | "help" | "jsonExport";
|
|
1251
1126
|
} | {
|
|
1252
1127
|
name: "ttd";
|
|
1253
|
-
tab: "
|
|
1128
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1254
1129
|
} | {
|
|
1255
1130
|
name: "commandPalette";
|
|
1131
|
+
} | {
|
|
1132
|
+
name: "settings";
|
|
1256
1133
|
} | {
|
|
1257
1134
|
name: "elementLinkSelector";
|
|
1258
|
-
sourceElementId:
|
|
1259
|
-
}
|
|
1135
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1136
|
+
};
|
|
1260
1137
|
defaultSidebarDockedPreference: boolean;
|
|
1261
1138
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1262
1139
|
selectedElementIds: Readonly<{
|
|
@@ -1272,8 +1149,8 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1272
1149
|
shouldCacheIgnoreZoom: boolean;
|
|
1273
1150
|
toast: {
|
|
1274
1151
|
message: string;
|
|
1275
|
-
closable?: boolean
|
|
1276
|
-
duration?: number
|
|
1152
|
+
closable?: boolean;
|
|
1153
|
+
duration?: number;
|
|
1277
1154
|
} | null;
|
|
1278
1155
|
zenModeEnabled: boolean;
|
|
1279
1156
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1284,32 +1161,13 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1284
1161
|
selectedGroupIds: {
|
|
1285
1162
|
[groupId: string]: boolean;
|
|
1286
1163
|
};
|
|
1287
|
-
editingGroupId:
|
|
1164
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1288
1165
|
width: number;
|
|
1289
1166
|
height: number;
|
|
1290
1167
|
offsetTop: number;
|
|
1291
1168
|
offsetLeft: number;
|
|
1292
1169
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1293
|
-
collaborators: Map<import("../types").SocketId,
|
|
1294
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1295
|
-
button?: "up" | "down" | undefined;
|
|
1296
|
-
selectedElementIds?: Readonly<{
|
|
1297
|
-
[id: string]: true;
|
|
1298
|
-
}> | undefined;
|
|
1299
|
-
username?: string | null | undefined;
|
|
1300
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1301
|
-
color?: {
|
|
1302
|
-
background: string;
|
|
1303
|
-
stroke: string;
|
|
1304
|
-
} | undefined;
|
|
1305
|
-
avatarUrl?: string | undefined;
|
|
1306
|
-
id?: string | undefined;
|
|
1307
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1308
|
-
isCurrentUser?: boolean | undefined;
|
|
1309
|
-
isInCall?: boolean | undefined;
|
|
1310
|
-
isSpeaking?: boolean | undefined;
|
|
1311
|
-
isMuted?: boolean | undefined;
|
|
1312
|
-
}>>;
|
|
1170
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1313
1171
|
stats: {
|
|
1314
1172
|
open: boolean;
|
|
1315
1173
|
panels: number;
|
|
@@ -1322,7 +1180,7 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1322
1180
|
shown: true;
|
|
1323
1181
|
data: import("../charts").Spreadsheet;
|
|
1324
1182
|
};
|
|
1325
|
-
showHyperlinkPopup: false | "
|
|
1183
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1326
1184
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1327
1185
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1328
1186
|
originSnapOffset: {
|
|
@@ -1333,16 +1191,16 @@ export declare const actionZoomToFitSelectionInViewport: {
|
|
|
1333
1191
|
userToFollow: import("../types").UserToFollow | null;
|
|
1334
1192
|
followedBy: Set<import("../types").SocketId>;
|
|
1335
1193
|
isCropping: boolean;
|
|
1336
|
-
croppingElementId:
|
|
1194
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1337
1195
|
searchMatches: Readonly<{
|
|
1338
|
-
focusedId:
|
|
1196
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1339
1197
|
matches: readonly import("../types").SearchMatch[];
|
|
1340
1198
|
}> | null;
|
|
1341
1199
|
activeLockedId: string | null;
|
|
1342
1200
|
lockedMultiSelections: {
|
|
1343
1201
|
[groupId: string]: true;
|
|
1344
1202
|
};
|
|
1345
|
-
|
|
1203
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1346
1204
|
};
|
|
1347
1205
|
captureUpdate: "EVENTUALLY";
|
|
1348
1206
|
};
|
|
@@ -1357,7 +1215,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1357
1215
|
trackEvent: {
|
|
1358
1216
|
category: "canvas";
|
|
1359
1217
|
};
|
|
1360
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1218
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1361
1219
|
appState: {
|
|
1362
1220
|
scrollX: number;
|
|
1363
1221
|
scrollY: number;
|
|
@@ -1371,10 +1229,10 @@ export declare const actionZoomToFitSelection: {
|
|
|
1371
1229
|
} | null;
|
|
1372
1230
|
showWelcomeScreen: boolean;
|
|
1373
1231
|
isLoading: boolean;
|
|
1374
|
-
errorMessage:
|
|
1232
|
+
errorMessage: React.ReactNode;
|
|
1375
1233
|
activeEmbeddable: {
|
|
1376
1234
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1377
|
-
state: "
|
|
1235
|
+
state: "hover" | "active";
|
|
1378
1236
|
} | null;
|
|
1379
1237
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1380
1238
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1382,7 +1240,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1382
1240
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1383
1241
|
isBindingEnabled: boolean;
|
|
1384
1242
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1385
|
-
|
|
1243
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1386
1244
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1387
1245
|
frameRendering: {
|
|
1388
1246
|
enabled: boolean;
|
|
@@ -1410,19 +1268,19 @@ export declare const actionZoomToFitSelection: {
|
|
|
1410
1268
|
exportScale: number;
|
|
1411
1269
|
currentItemStrokeColor: string;
|
|
1412
1270
|
currentItemBackgroundColor: string;
|
|
1413
|
-
currentItemFillStyle:
|
|
1271
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1414
1272
|
currentItemStrokeWidth: number;
|
|
1415
|
-
currentItemStrokeStyle:
|
|
1273
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1416
1274
|
currentItemRoughness: number;
|
|
1417
1275
|
currentItemOpacity: number;
|
|
1418
|
-
currentItemFontFamily:
|
|
1276
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1419
1277
|
currentItemFontSize: number;
|
|
1420
|
-
currentItemTextAlign:
|
|
1278
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1421
1279
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1422
1280
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1423
|
-
currentHoveredFontFamily:
|
|
1281
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1424
1282
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1425
|
-
currentItemArrowType: "
|
|
1283
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1426
1284
|
viewBackgroundColor: string;
|
|
1427
1285
|
cursorButton: "up" | "down";
|
|
1428
1286
|
scrolledOutside: boolean;
|
|
@@ -1430,22 +1288,24 @@ export declare const actionZoomToFitSelection: {
|
|
|
1430
1288
|
isResizing: boolean;
|
|
1431
1289
|
isRotating: boolean;
|
|
1432
1290
|
openMenu: "canvas" | null;
|
|
1433
|
-
openPopup: "
|
|
1291
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1434
1292
|
openSidebar: {
|
|
1435
|
-
name:
|
|
1436
|
-
tab?:
|
|
1293
|
+
name: import("../types").SidebarName;
|
|
1294
|
+
tab?: import("../types").SidebarTabName;
|
|
1437
1295
|
} | null;
|
|
1438
|
-
openDialog: {
|
|
1296
|
+
openDialog: null | {
|
|
1439
1297
|
name: "imageExport" | "help" | "jsonExport";
|
|
1440
1298
|
} | {
|
|
1441
1299
|
name: "ttd";
|
|
1442
|
-
tab: "
|
|
1300
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1443
1301
|
} | {
|
|
1444
1302
|
name: "commandPalette";
|
|
1303
|
+
} | {
|
|
1304
|
+
name: "settings";
|
|
1445
1305
|
} | {
|
|
1446
1306
|
name: "elementLinkSelector";
|
|
1447
|
-
sourceElementId:
|
|
1448
|
-
}
|
|
1307
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1308
|
+
};
|
|
1449
1309
|
defaultSidebarDockedPreference: boolean;
|
|
1450
1310
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1451
1311
|
selectedElementIds: Readonly<{
|
|
@@ -1461,8 +1321,8 @@ export declare const actionZoomToFitSelection: {
|
|
|
1461
1321
|
shouldCacheIgnoreZoom: boolean;
|
|
1462
1322
|
toast: {
|
|
1463
1323
|
message: string;
|
|
1464
|
-
closable?: boolean
|
|
1465
|
-
duration?: number
|
|
1324
|
+
closable?: boolean;
|
|
1325
|
+
duration?: number;
|
|
1466
1326
|
} | null;
|
|
1467
1327
|
zenModeEnabled: boolean;
|
|
1468
1328
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1473,32 +1333,13 @@ export declare const actionZoomToFitSelection: {
|
|
|
1473
1333
|
selectedGroupIds: {
|
|
1474
1334
|
[groupId: string]: boolean;
|
|
1475
1335
|
};
|
|
1476
|
-
editingGroupId:
|
|
1336
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1477
1337
|
width: number;
|
|
1478
1338
|
height: number;
|
|
1479
1339
|
offsetTop: number;
|
|
1480
1340
|
offsetLeft: number;
|
|
1481
1341
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1482
|
-
collaborators: Map<import("../types").SocketId,
|
|
1483
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1484
|
-
button?: "up" | "down" | undefined;
|
|
1485
|
-
selectedElementIds?: Readonly<{
|
|
1486
|
-
[id: string]: true;
|
|
1487
|
-
}> | undefined;
|
|
1488
|
-
username?: string | null | undefined;
|
|
1489
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1490
|
-
color?: {
|
|
1491
|
-
background: string;
|
|
1492
|
-
stroke: string;
|
|
1493
|
-
} | undefined;
|
|
1494
|
-
avatarUrl?: string | undefined;
|
|
1495
|
-
id?: string | undefined;
|
|
1496
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1497
|
-
isCurrentUser?: boolean | undefined;
|
|
1498
|
-
isInCall?: boolean | undefined;
|
|
1499
|
-
isSpeaking?: boolean | undefined;
|
|
1500
|
-
isMuted?: boolean | undefined;
|
|
1501
|
-
}>>;
|
|
1342
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1502
1343
|
stats: {
|
|
1503
1344
|
open: boolean;
|
|
1504
1345
|
panels: number;
|
|
@@ -1511,7 +1352,7 @@ export declare const actionZoomToFitSelection: {
|
|
|
1511
1352
|
shown: true;
|
|
1512
1353
|
data: import("../charts").Spreadsheet;
|
|
1513
1354
|
};
|
|
1514
|
-
showHyperlinkPopup: false | "
|
|
1355
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1515
1356
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1516
1357
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1517
1358
|
originSnapOffset: {
|
|
@@ -1522,16 +1363,16 @@ export declare const actionZoomToFitSelection: {
|
|
|
1522
1363
|
userToFollow: import("../types").UserToFollow | null;
|
|
1523
1364
|
followedBy: Set<import("../types").SocketId>;
|
|
1524
1365
|
isCropping: boolean;
|
|
1525
|
-
croppingElementId:
|
|
1366
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1526
1367
|
searchMatches: Readonly<{
|
|
1527
|
-
focusedId:
|
|
1368
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1528
1369
|
matches: readonly import("../types").SearchMatch[];
|
|
1529
1370
|
}> | null;
|
|
1530
1371
|
activeLockedId: string | null;
|
|
1531
1372
|
lockedMultiSelections: {
|
|
1532
1373
|
[groupId: string]: true;
|
|
1533
1374
|
};
|
|
1534
|
-
|
|
1375
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1535
1376
|
};
|
|
1536
1377
|
captureUpdate: "EVENTUALLY";
|
|
1537
1378
|
};
|
|
@@ -1547,7 +1388,7 @@ export declare const actionZoomToFit: {
|
|
|
1547
1388
|
trackEvent: {
|
|
1548
1389
|
category: "canvas";
|
|
1549
1390
|
};
|
|
1550
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1391
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1551
1392
|
appState: {
|
|
1552
1393
|
scrollX: number;
|
|
1553
1394
|
scrollY: number;
|
|
@@ -1561,10 +1402,10 @@ export declare const actionZoomToFit: {
|
|
|
1561
1402
|
} | null;
|
|
1562
1403
|
showWelcomeScreen: boolean;
|
|
1563
1404
|
isLoading: boolean;
|
|
1564
|
-
errorMessage:
|
|
1405
|
+
errorMessage: React.ReactNode;
|
|
1565
1406
|
activeEmbeddable: {
|
|
1566
1407
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1567
|
-
state: "
|
|
1408
|
+
state: "hover" | "active";
|
|
1568
1409
|
} | null;
|
|
1569
1410
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1570
1411
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
@@ -1572,7 +1413,7 @@ export declare const actionZoomToFit: {
|
|
|
1572
1413
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1573
1414
|
isBindingEnabled: boolean;
|
|
1574
1415
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1575
|
-
|
|
1416
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1576
1417
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1577
1418
|
frameRendering: {
|
|
1578
1419
|
enabled: boolean;
|
|
@@ -1600,19 +1441,19 @@ export declare const actionZoomToFit: {
|
|
|
1600
1441
|
exportScale: number;
|
|
1601
1442
|
currentItemStrokeColor: string;
|
|
1602
1443
|
currentItemBackgroundColor: string;
|
|
1603
|
-
currentItemFillStyle:
|
|
1444
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1604
1445
|
currentItemStrokeWidth: number;
|
|
1605
|
-
currentItemStrokeStyle:
|
|
1446
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1606
1447
|
currentItemRoughness: number;
|
|
1607
1448
|
currentItemOpacity: number;
|
|
1608
|
-
currentItemFontFamily:
|
|
1449
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1609
1450
|
currentItemFontSize: number;
|
|
1610
|
-
currentItemTextAlign:
|
|
1451
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1611
1452
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1612
1453
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1613
|
-
currentHoveredFontFamily:
|
|
1454
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1614
1455
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1615
|
-
currentItemArrowType: "
|
|
1456
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1616
1457
|
viewBackgroundColor: string;
|
|
1617
1458
|
cursorButton: "up" | "down";
|
|
1618
1459
|
scrolledOutside: boolean;
|
|
@@ -1620,22 +1461,24 @@ export declare const actionZoomToFit: {
|
|
|
1620
1461
|
isResizing: boolean;
|
|
1621
1462
|
isRotating: boolean;
|
|
1622
1463
|
openMenu: "canvas" | null;
|
|
1623
|
-
openPopup: "
|
|
1464
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1624
1465
|
openSidebar: {
|
|
1625
|
-
name:
|
|
1626
|
-
tab?:
|
|
1466
|
+
name: import("../types").SidebarName;
|
|
1467
|
+
tab?: import("../types").SidebarTabName;
|
|
1627
1468
|
} | null;
|
|
1628
|
-
openDialog: {
|
|
1469
|
+
openDialog: null | {
|
|
1629
1470
|
name: "imageExport" | "help" | "jsonExport";
|
|
1630
1471
|
} | {
|
|
1631
1472
|
name: "ttd";
|
|
1632
|
-
tab: "
|
|
1473
|
+
tab: "text-to-diagram" | "mermaid";
|
|
1633
1474
|
} | {
|
|
1634
1475
|
name: "commandPalette";
|
|
1476
|
+
} | {
|
|
1477
|
+
name: "settings";
|
|
1635
1478
|
} | {
|
|
1636
1479
|
name: "elementLinkSelector";
|
|
1637
|
-
sourceElementId:
|
|
1638
|
-
}
|
|
1480
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1481
|
+
};
|
|
1639
1482
|
defaultSidebarDockedPreference: boolean;
|
|
1640
1483
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1641
1484
|
selectedElementIds: Readonly<{
|
|
@@ -1651,8 +1494,8 @@ export declare const actionZoomToFit: {
|
|
|
1651
1494
|
shouldCacheIgnoreZoom: boolean;
|
|
1652
1495
|
toast: {
|
|
1653
1496
|
message: string;
|
|
1654
|
-
closable?: boolean
|
|
1655
|
-
duration?: number
|
|
1497
|
+
closable?: boolean;
|
|
1498
|
+
duration?: number;
|
|
1656
1499
|
} | null;
|
|
1657
1500
|
zenModeEnabled: boolean;
|
|
1658
1501
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -1663,32 +1506,13 @@ export declare const actionZoomToFit: {
|
|
|
1663
1506
|
selectedGroupIds: {
|
|
1664
1507
|
[groupId: string]: boolean;
|
|
1665
1508
|
};
|
|
1666
|
-
editingGroupId:
|
|
1509
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
1667
1510
|
width: number;
|
|
1668
1511
|
height: number;
|
|
1669
1512
|
offsetTop: number;
|
|
1670
1513
|
offsetLeft: number;
|
|
1671
1514
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1672
|
-
collaborators: Map<import("../types").SocketId,
|
|
1673
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1674
|
-
button?: "up" | "down" | undefined;
|
|
1675
|
-
selectedElementIds?: Readonly<{
|
|
1676
|
-
[id: string]: true;
|
|
1677
|
-
}> | undefined;
|
|
1678
|
-
username?: string | null | undefined;
|
|
1679
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1680
|
-
color?: {
|
|
1681
|
-
background: string;
|
|
1682
|
-
stroke: string;
|
|
1683
|
-
} | undefined;
|
|
1684
|
-
avatarUrl?: string | undefined;
|
|
1685
|
-
id?: string | undefined;
|
|
1686
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1687
|
-
isCurrentUser?: boolean | undefined;
|
|
1688
|
-
isInCall?: boolean | undefined;
|
|
1689
|
-
isSpeaking?: boolean | undefined;
|
|
1690
|
-
isMuted?: boolean | undefined;
|
|
1691
|
-
}>>;
|
|
1515
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
1692
1516
|
stats: {
|
|
1693
1517
|
open: boolean;
|
|
1694
1518
|
panels: number;
|
|
@@ -1701,7 +1525,7 @@ export declare const actionZoomToFit: {
|
|
|
1701
1525
|
shown: true;
|
|
1702
1526
|
data: import("../charts").Spreadsheet;
|
|
1703
1527
|
};
|
|
1704
|
-
showHyperlinkPopup: false | "
|
|
1528
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
1705
1529
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1706
1530
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
1707
1531
|
originSnapOffset: {
|
|
@@ -1712,16 +1536,16 @@ export declare const actionZoomToFit: {
|
|
|
1712
1536
|
userToFollow: import("../types").UserToFollow | null;
|
|
1713
1537
|
followedBy: Set<import("../types").SocketId>;
|
|
1714
1538
|
isCropping: boolean;
|
|
1715
|
-
croppingElementId:
|
|
1539
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
1716
1540
|
searchMatches: Readonly<{
|
|
1717
|
-
focusedId:
|
|
1541
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
1718
1542
|
matches: readonly import("../types").SearchMatch[];
|
|
1719
1543
|
}> | null;
|
|
1720
1544
|
activeLockedId: string | null;
|
|
1721
1545
|
lockedMultiSelections: {
|
|
1722
1546
|
[groupId: string]: true;
|
|
1723
1547
|
};
|
|
1724
|
-
|
|
1548
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
1725
1549
|
};
|
|
1726
1550
|
captureUpdate: "EVENTUALLY";
|
|
1727
1551
|
};
|
|
@@ -1729,197 +1553,8 @@ export declare const actionZoomToFit: {
|
|
|
1729
1553
|
} & {
|
|
1730
1554
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1731
1555
|
};
|
|
1732
|
-
export declare const actionToggleTheme: {
|
|
1733
|
-
|
|
1734
|
-
label: (_: readonly ExcalidrawElement[], appState: Readonly<AppState>) => "buttons.lightMode" | "buttons.darkMode";
|
|
1735
|
-
keywords: string[];
|
|
1736
|
-
icon: (appState: import("../types").UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
1737
|
-
viewMode: true;
|
|
1738
|
-
trackEvent: {
|
|
1739
|
-
category: "canvas";
|
|
1740
|
-
};
|
|
1741
|
-
perform: (_: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, value: any) => {
|
|
1742
|
-
appState: {
|
|
1743
|
-
theme: any;
|
|
1744
|
-
contextMenu: {
|
|
1745
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
1746
|
-
top: number;
|
|
1747
|
-
left: number;
|
|
1748
|
-
} | null;
|
|
1749
|
-
showWelcomeScreen: boolean;
|
|
1750
|
-
isLoading: boolean;
|
|
1751
|
-
errorMessage: import("react").ReactNode;
|
|
1752
|
-
activeEmbeddable: {
|
|
1753
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
1754
|
-
state: "active" | "hover";
|
|
1755
|
-
} | null;
|
|
1756
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1757
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1758
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1759
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1760
|
-
isBindingEnabled: boolean;
|
|
1761
|
-
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1762
|
-
suggestedBindings: import("@excalidraw/element").SuggestedBinding[];
|
|
1763
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1764
|
-
frameRendering: {
|
|
1765
|
-
enabled: boolean;
|
|
1766
|
-
name: boolean;
|
|
1767
|
-
outline: boolean;
|
|
1768
|
-
clip: boolean;
|
|
1769
|
-
};
|
|
1770
|
-
editingFrame: string | null;
|
|
1771
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
1772
|
-
editingTextElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1773
|
-
activeTool: {
|
|
1774
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
1775
|
-
locked: boolean;
|
|
1776
|
-
fromSelection: boolean;
|
|
1777
|
-
} & import("../types").ActiveTool;
|
|
1778
|
-
preferredSelectionTool: {
|
|
1779
|
-
type: "selection" | "lasso";
|
|
1780
|
-
initialized: boolean;
|
|
1781
|
-
};
|
|
1782
|
-
penMode: boolean;
|
|
1783
|
-
penDetected: boolean;
|
|
1784
|
-
exportBackground: boolean;
|
|
1785
|
-
exportEmbedScene: boolean;
|
|
1786
|
-
exportWithDarkMode: boolean;
|
|
1787
|
-
exportScale: number;
|
|
1788
|
-
currentItemStrokeColor: string;
|
|
1789
|
-
currentItemBackgroundColor: string;
|
|
1790
|
-
currentItemFillStyle: import("@excalidraw/element/types").FillStyle;
|
|
1791
|
-
currentItemStrokeWidth: number;
|
|
1792
|
-
currentItemStrokeStyle: import("@excalidraw/element/types").StrokeStyle;
|
|
1793
|
-
currentItemRoughness: number;
|
|
1794
|
-
currentItemOpacity: number;
|
|
1795
|
-
currentItemFontFamily: number;
|
|
1796
|
-
currentItemFontSize: number;
|
|
1797
|
-
currentItemTextAlign: string;
|
|
1798
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1799
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1800
|
-
currentHoveredFontFamily: number | null;
|
|
1801
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1802
|
-
currentItemArrowType: "round" | "sharp" | "elbow";
|
|
1803
|
-
viewBackgroundColor: string;
|
|
1804
|
-
scrollX: number;
|
|
1805
|
-
scrollY: number;
|
|
1806
|
-
cursorButton: "up" | "down";
|
|
1807
|
-
scrolledOutside: boolean;
|
|
1808
|
-
name: string | null;
|
|
1809
|
-
isResizing: boolean;
|
|
1810
|
-
isRotating: boolean;
|
|
1811
|
-
zoom: Readonly<{
|
|
1812
|
-
value: import("../types").NormalizedZoomValue;
|
|
1813
|
-
}>;
|
|
1814
|
-
openMenu: "canvas" | null;
|
|
1815
|
-
openPopup: "fontFamily" | "canvasBackground" | "elementBackground" | "elementStroke" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
1816
|
-
openSidebar: {
|
|
1817
|
-
name: string;
|
|
1818
|
-
tab?: string | undefined;
|
|
1819
|
-
} | null;
|
|
1820
|
-
openDialog: {
|
|
1821
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
1822
|
-
} | {
|
|
1823
|
-
name: "ttd";
|
|
1824
|
-
tab: "mermaid" | "text-to-diagram";
|
|
1825
|
-
} | {
|
|
1826
|
-
name: "commandPalette";
|
|
1827
|
-
} | {
|
|
1828
|
-
name: "elementLinkSelector";
|
|
1829
|
-
sourceElementId: string;
|
|
1830
|
-
} | null;
|
|
1831
|
-
defaultSidebarDockedPreference: boolean;
|
|
1832
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
1833
|
-
selectedElementIds: Readonly<{
|
|
1834
|
-
[id: string]: true;
|
|
1835
|
-
}>;
|
|
1836
|
-
hoveredElementIds: Readonly<{
|
|
1837
|
-
[id: string]: true;
|
|
1838
|
-
}>;
|
|
1839
|
-
previousSelectedElementIds: {
|
|
1840
|
-
[id: string]: true;
|
|
1841
|
-
};
|
|
1842
|
-
selectedElementsAreBeingDragged: boolean;
|
|
1843
|
-
shouldCacheIgnoreZoom: boolean;
|
|
1844
|
-
toast: {
|
|
1845
|
-
message: string;
|
|
1846
|
-
closable?: boolean | undefined;
|
|
1847
|
-
duration?: number | undefined;
|
|
1848
|
-
} | null;
|
|
1849
|
-
zenModeEnabled: boolean;
|
|
1850
|
-
gridSize: number;
|
|
1851
|
-
gridStep: number;
|
|
1852
|
-
gridModeEnabled: boolean;
|
|
1853
|
-
viewModeEnabled: boolean;
|
|
1854
|
-
selectedGroupIds: {
|
|
1855
|
-
[groupId: string]: boolean;
|
|
1856
|
-
};
|
|
1857
|
-
editingGroupId: string | null;
|
|
1858
|
-
width: number;
|
|
1859
|
-
height: number;
|
|
1860
|
-
offsetTop: number;
|
|
1861
|
-
offsetLeft: number;
|
|
1862
|
-
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
1863
|
-
collaborators: Map<import("../types").SocketId, Readonly<{
|
|
1864
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
1865
|
-
button?: "up" | "down" | undefined;
|
|
1866
|
-
selectedElementIds?: Readonly<{
|
|
1867
|
-
[id: string]: true;
|
|
1868
|
-
}> | undefined;
|
|
1869
|
-
username?: string | null | undefined;
|
|
1870
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
1871
|
-
color?: {
|
|
1872
|
-
background: string;
|
|
1873
|
-
stroke: string;
|
|
1874
|
-
} | undefined;
|
|
1875
|
-
avatarUrl?: string | undefined;
|
|
1876
|
-
id?: string | undefined;
|
|
1877
|
-
socketId?: import("../types").SocketId | undefined;
|
|
1878
|
-
isCurrentUser?: boolean | undefined;
|
|
1879
|
-
isInCall?: boolean | undefined;
|
|
1880
|
-
isSpeaking?: boolean | undefined;
|
|
1881
|
-
isMuted?: boolean | undefined;
|
|
1882
|
-
}>>;
|
|
1883
|
-
stats: {
|
|
1884
|
-
open: boolean;
|
|
1885
|
-
panels: number;
|
|
1886
|
-
};
|
|
1887
|
-
currentChartType: import("@excalidraw/element/types").ChartType;
|
|
1888
|
-
pasteDialog: {
|
|
1889
|
-
shown: false;
|
|
1890
|
-
data: null;
|
|
1891
|
-
} | {
|
|
1892
|
-
shown: true;
|
|
1893
|
-
data: import("../charts").Spreadsheet;
|
|
1894
|
-
};
|
|
1895
|
-
showHyperlinkPopup: false | "editor" | "info";
|
|
1896
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
1897
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
1898
|
-
originSnapOffset: {
|
|
1899
|
-
x: number;
|
|
1900
|
-
y: number;
|
|
1901
|
-
} | null;
|
|
1902
|
-
objectsSnapModeEnabled: boolean;
|
|
1903
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
1904
|
-
followedBy: Set<import("../types").SocketId>;
|
|
1905
|
-
isCropping: boolean;
|
|
1906
|
-
croppingElementId: string | null;
|
|
1907
|
-
searchMatches: Readonly<{
|
|
1908
|
-
focusedId: string | null;
|
|
1909
|
-
matches: readonly import("../types").SearchMatch[];
|
|
1910
|
-
}> | null;
|
|
1911
|
-
activeLockedId: string | null;
|
|
1912
|
-
lockedMultiSelections: {
|
|
1913
|
-
[groupId: string]: true;
|
|
1914
|
-
};
|
|
1915
|
-
stylesPanelMode: "compact" | "full" | "mobile";
|
|
1916
|
-
};
|
|
1917
|
-
captureUpdate: "EVENTUALLY";
|
|
1918
|
-
};
|
|
1919
|
-
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
1920
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
1921
|
-
} & {
|
|
1922
|
-
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
1556
|
+
export declare const actionToggleTheme: import("./types").Action<import("@excalidraw/element/types").Theme> & {
|
|
1557
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: import("../types").AppClassProperties) => boolean) | undefined;
|
|
1923
1558
|
};
|
|
1924
1559
|
export declare const actionToggleEraserTool: {
|
|
1925
1560
|
name: "toggleEraserTool";
|
|
@@ -1927,7 +1562,7 @@ export declare const actionToggleEraserTool: {
|
|
|
1927
1562
|
trackEvent: {
|
|
1928
1563
|
category: "toolbar";
|
|
1929
1564
|
};
|
|
1930
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1565
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
1931
1566
|
appState: {
|
|
1932
1567
|
selectedElementIds: {};
|
|
1933
1568
|
selectedGroupIds: {};
|
|
@@ -1944,14 +1579,14 @@ export declare const actionToggleEraserTool: {
|
|
|
1944
1579
|
} | null;
|
|
1945
1580
|
showWelcomeScreen: boolean;
|
|
1946
1581
|
isLoading: boolean;
|
|
1947
|
-
errorMessage:
|
|
1582
|
+
errorMessage: React.ReactNode;
|
|
1948
1583
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
1949
1584
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1950
1585
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
1951
1586
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
1952
1587
|
isBindingEnabled: boolean;
|
|
1953
1588
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1954
|
-
|
|
1589
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
1955
1590
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
1956
1591
|
frameRendering: {
|
|
1957
1592
|
enabled: boolean;
|
|
@@ -1974,19 +1609,19 @@ export declare const actionToggleEraserTool: {
|
|
|
1974
1609
|
exportScale: number;
|
|
1975
1610
|
currentItemStrokeColor: string;
|
|
1976
1611
|
currentItemBackgroundColor: string;
|
|
1977
|
-
currentItemFillStyle:
|
|
1612
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
1978
1613
|
currentItemStrokeWidth: number;
|
|
1979
|
-
currentItemStrokeStyle:
|
|
1614
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
1980
1615
|
currentItemRoughness: number;
|
|
1981
1616
|
currentItemOpacity: number;
|
|
1982
|
-
currentItemFontFamily:
|
|
1617
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
1983
1618
|
currentItemFontSize: number;
|
|
1984
|
-
currentItemTextAlign:
|
|
1619
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
1985
1620
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1986
1621
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
1987
|
-
currentHoveredFontFamily:
|
|
1622
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
1988
1623
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
1989
|
-
currentItemArrowType: "
|
|
1624
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
1990
1625
|
viewBackgroundColor: string;
|
|
1991
1626
|
scrollX: number;
|
|
1992
1627
|
scrollY: number;
|
|
@@ -1995,26 +1630,26 @@ export declare const actionToggleEraserTool: {
|
|
|
1995
1630
|
name: string | null;
|
|
1996
1631
|
isResizing: boolean;
|
|
1997
1632
|
isRotating: boolean;
|
|
1998
|
-
zoom:
|
|
1999
|
-
value: import("../types").NormalizedZoomValue;
|
|
2000
|
-
}>;
|
|
1633
|
+
zoom: import("../types").Zoom;
|
|
2001
1634
|
openMenu: "canvas" | null;
|
|
2002
|
-
openPopup: "
|
|
1635
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2003
1636
|
openSidebar: {
|
|
2004
|
-
name:
|
|
2005
|
-
tab?:
|
|
1637
|
+
name: import("../types").SidebarName;
|
|
1638
|
+
tab?: import("../types").SidebarTabName;
|
|
2006
1639
|
} | null;
|
|
2007
|
-
openDialog: {
|
|
1640
|
+
openDialog: null | {
|
|
2008
1641
|
name: "imageExport" | "help" | "jsonExport";
|
|
2009
1642
|
} | {
|
|
2010
1643
|
name: "ttd";
|
|
2011
|
-
tab: "
|
|
1644
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2012
1645
|
} | {
|
|
2013
1646
|
name: "commandPalette";
|
|
1647
|
+
} | {
|
|
1648
|
+
name: "settings";
|
|
2014
1649
|
} | {
|
|
2015
1650
|
name: "elementLinkSelector";
|
|
2016
|
-
sourceElementId:
|
|
2017
|
-
}
|
|
1651
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1652
|
+
};
|
|
2018
1653
|
defaultSidebarDockedPreference: boolean;
|
|
2019
1654
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2020
1655
|
hoveredElementIds: Readonly<{
|
|
@@ -2027,8 +1662,8 @@ export declare const actionToggleEraserTool: {
|
|
|
2027
1662
|
shouldCacheIgnoreZoom: boolean;
|
|
2028
1663
|
toast: {
|
|
2029
1664
|
message: string;
|
|
2030
|
-
closable?: boolean
|
|
2031
|
-
duration?: number
|
|
1665
|
+
closable?: boolean;
|
|
1666
|
+
duration?: number;
|
|
2032
1667
|
} | null;
|
|
2033
1668
|
zenModeEnabled: boolean;
|
|
2034
1669
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -2036,32 +1671,13 @@ export declare const actionToggleEraserTool: {
|
|
|
2036
1671
|
gridStep: number;
|
|
2037
1672
|
gridModeEnabled: boolean;
|
|
2038
1673
|
viewModeEnabled: boolean;
|
|
2039
|
-
editingGroupId:
|
|
1674
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
2040
1675
|
width: number;
|
|
2041
1676
|
height: number;
|
|
2042
1677
|
offsetTop: number;
|
|
2043
1678
|
offsetLeft: number;
|
|
2044
1679
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2045
|
-
collaborators: Map<import("../types").SocketId,
|
|
2046
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2047
|
-
button?: "up" | "down" | undefined;
|
|
2048
|
-
selectedElementIds?: Readonly<{
|
|
2049
|
-
[id: string]: true;
|
|
2050
|
-
}> | undefined;
|
|
2051
|
-
username?: string | null | undefined;
|
|
2052
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2053
|
-
color?: {
|
|
2054
|
-
background: string;
|
|
2055
|
-
stroke: string;
|
|
2056
|
-
} | undefined;
|
|
2057
|
-
avatarUrl?: string | undefined;
|
|
2058
|
-
id?: string | undefined;
|
|
2059
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2060
|
-
isCurrentUser?: boolean | undefined;
|
|
2061
|
-
isInCall?: boolean | undefined;
|
|
2062
|
-
isSpeaking?: boolean | undefined;
|
|
2063
|
-
isMuted?: boolean | undefined;
|
|
2064
|
-
}>>;
|
|
1680
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2065
1681
|
stats: {
|
|
2066
1682
|
open: boolean;
|
|
2067
1683
|
panels: number;
|
|
@@ -2074,7 +1690,7 @@ export declare const actionToggleEraserTool: {
|
|
|
2074
1690
|
shown: true;
|
|
2075
1691
|
data: import("../charts").Spreadsheet;
|
|
2076
1692
|
};
|
|
2077
|
-
showHyperlinkPopup: false | "
|
|
1693
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2078
1694
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2079
1695
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2080
1696
|
originSnapOffset: {
|
|
@@ -2085,16 +1701,16 @@ export declare const actionToggleEraserTool: {
|
|
|
2085
1701
|
userToFollow: import("../types").UserToFollow | null;
|
|
2086
1702
|
followedBy: Set<import("../types").SocketId>;
|
|
2087
1703
|
isCropping: boolean;
|
|
2088
|
-
croppingElementId:
|
|
1704
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
2089
1705
|
searchMatches: Readonly<{
|
|
2090
|
-
focusedId:
|
|
1706
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
2091
1707
|
matches: readonly import("../types").SearchMatch[];
|
|
2092
1708
|
}> | null;
|
|
2093
1709
|
activeLockedId: string | null;
|
|
2094
1710
|
lockedMultiSelections: {
|
|
2095
1711
|
[groupId: string]: true;
|
|
2096
1712
|
};
|
|
2097
|
-
|
|
1713
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
2098
1714
|
};
|
|
2099
1715
|
captureUpdate: "IMMEDIATELY";
|
|
2100
1716
|
};
|
|
@@ -2110,7 +1726,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2110
1726
|
category: "toolbar";
|
|
2111
1727
|
};
|
|
2112
1728
|
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, props: import("../types").ExcalidrawProps, app: import("../types").AppClassProperties) => boolean;
|
|
2113
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1729
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
2114
1730
|
appState: {
|
|
2115
1731
|
selectedElementIds: {};
|
|
2116
1732
|
selectedGroupIds: {};
|
|
@@ -2127,14 +1743,14 @@ export declare const actionToggleLassoTool: {
|
|
|
2127
1743
|
} | null;
|
|
2128
1744
|
showWelcomeScreen: boolean;
|
|
2129
1745
|
isLoading: boolean;
|
|
2130
|
-
errorMessage:
|
|
1746
|
+
errorMessage: React.ReactNode;
|
|
2131
1747
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2132
1748
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2133
1749
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
2134
1750
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2135
1751
|
isBindingEnabled: boolean;
|
|
2136
1752
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2137
|
-
|
|
1753
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2138
1754
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2139
1755
|
frameRendering: {
|
|
2140
1756
|
enabled: boolean;
|
|
@@ -2157,19 +1773,19 @@ export declare const actionToggleLassoTool: {
|
|
|
2157
1773
|
exportScale: number;
|
|
2158
1774
|
currentItemStrokeColor: string;
|
|
2159
1775
|
currentItemBackgroundColor: string;
|
|
2160
|
-
currentItemFillStyle:
|
|
1776
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
2161
1777
|
currentItemStrokeWidth: number;
|
|
2162
|
-
currentItemStrokeStyle:
|
|
1778
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
2163
1779
|
currentItemRoughness: number;
|
|
2164
1780
|
currentItemOpacity: number;
|
|
2165
|
-
currentItemFontFamily:
|
|
1781
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
2166
1782
|
currentItemFontSize: number;
|
|
2167
|
-
currentItemTextAlign:
|
|
1783
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
2168
1784
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2169
1785
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2170
|
-
currentHoveredFontFamily:
|
|
1786
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
2171
1787
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2172
|
-
currentItemArrowType: "
|
|
1788
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
2173
1789
|
viewBackgroundColor: string;
|
|
2174
1790
|
scrollX: number;
|
|
2175
1791
|
scrollY: number;
|
|
@@ -2178,26 +1794,26 @@ export declare const actionToggleLassoTool: {
|
|
|
2178
1794
|
name: string | null;
|
|
2179
1795
|
isResizing: boolean;
|
|
2180
1796
|
isRotating: boolean;
|
|
2181
|
-
zoom:
|
|
2182
|
-
value: import("../types").NormalizedZoomValue;
|
|
2183
|
-
}>;
|
|
1797
|
+
zoom: import("../types").Zoom;
|
|
2184
1798
|
openMenu: "canvas" | null;
|
|
2185
|
-
openPopup: "
|
|
1799
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2186
1800
|
openSidebar: {
|
|
2187
|
-
name:
|
|
2188
|
-
tab?:
|
|
1801
|
+
name: import("../types").SidebarName;
|
|
1802
|
+
tab?: import("../types").SidebarTabName;
|
|
2189
1803
|
} | null;
|
|
2190
|
-
openDialog: {
|
|
1804
|
+
openDialog: null | {
|
|
2191
1805
|
name: "imageExport" | "help" | "jsonExport";
|
|
2192
1806
|
} | {
|
|
2193
1807
|
name: "ttd";
|
|
2194
|
-
tab: "
|
|
1808
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2195
1809
|
} | {
|
|
2196
1810
|
name: "commandPalette";
|
|
1811
|
+
} | {
|
|
1812
|
+
name: "settings";
|
|
2197
1813
|
} | {
|
|
2198
1814
|
name: "elementLinkSelector";
|
|
2199
|
-
sourceElementId:
|
|
2200
|
-
}
|
|
1815
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1816
|
+
};
|
|
2201
1817
|
defaultSidebarDockedPreference: boolean;
|
|
2202
1818
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2203
1819
|
hoveredElementIds: Readonly<{
|
|
@@ -2210,8 +1826,8 @@ export declare const actionToggleLassoTool: {
|
|
|
2210
1826
|
shouldCacheIgnoreZoom: boolean;
|
|
2211
1827
|
toast: {
|
|
2212
1828
|
message: string;
|
|
2213
|
-
closable?: boolean
|
|
2214
|
-
duration?: number
|
|
1829
|
+
closable?: boolean;
|
|
1830
|
+
duration?: number;
|
|
2215
1831
|
} | null;
|
|
2216
1832
|
zenModeEnabled: boolean;
|
|
2217
1833
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -2219,32 +1835,13 @@ export declare const actionToggleLassoTool: {
|
|
|
2219
1835
|
gridStep: number;
|
|
2220
1836
|
gridModeEnabled: boolean;
|
|
2221
1837
|
viewModeEnabled: boolean;
|
|
2222
|
-
editingGroupId:
|
|
1838
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
2223
1839
|
width: number;
|
|
2224
1840
|
height: number;
|
|
2225
1841
|
offsetTop: number;
|
|
2226
1842
|
offsetLeft: number;
|
|
2227
1843
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2228
|
-
collaborators: Map<import("../types").SocketId,
|
|
2229
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2230
|
-
button?: "up" | "down" | undefined;
|
|
2231
|
-
selectedElementIds?: Readonly<{
|
|
2232
|
-
[id: string]: true;
|
|
2233
|
-
}> | undefined;
|
|
2234
|
-
username?: string | null | undefined;
|
|
2235
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2236
|
-
color?: {
|
|
2237
|
-
background: string;
|
|
2238
|
-
stroke: string;
|
|
2239
|
-
} | undefined;
|
|
2240
|
-
avatarUrl?: string | undefined;
|
|
2241
|
-
id?: string | undefined;
|
|
2242
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2243
|
-
isCurrentUser?: boolean | undefined;
|
|
2244
|
-
isInCall?: boolean | undefined;
|
|
2245
|
-
isSpeaking?: boolean | undefined;
|
|
2246
|
-
isMuted?: boolean | undefined;
|
|
2247
|
-
}>>;
|
|
1844
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2248
1845
|
stats: {
|
|
2249
1846
|
open: boolean;
|
|
2250
1847
|
panels: number;
|
|
@@ -2257,7 +1854,7 @@ export declare const actionToggleLassoTool: {
|
|
|
2257
1854
|
shown: true;
|
|
2258
1855
|
data: import("../charts").Spreadsheet;
|
|
2259
1856
|
};
|
|
2260
|
-
showHyperlinkPopup: false | "
|
|
1857
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2261
1858
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2262
1859
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2263
1860
|
originSnapOffset: {
|
|
@@ -2268,16 +1865,16 @@ export declare const actionToggleLassoTool: {
|
|
|
2268
1865
|
userToFollow: import("../types").UserToFollow | null;
|
|
2269
1866
|
followedBy: Set<import("../types").SocketId>;
|
|
2270
1867
|
isCropping: boolean;
|
|
2271
|
-
croppingElementId:
|
|
1868
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
2272
1869
|
searchMatches: Readonly<{
|
|
2273
|
-
focusedId:
|
|
1870
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
2274
1871
|
matches: readonly import("../types").SearchMatch[];
|
|
2275
1872
|
}> | null;
|
|
2276
1873
|
activeLockedId: string | null;
|
|
2277
1874
|
lockedMultiSelections: {
|
|
2278
1875
|
[groupId: string]: true;
|
|
2279
1876
|
};
|
|
2280
|
-
|
|
1877
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
2281
1878
|
};
|
|
2282
1879
|
captureUpdate: "NEVER";
|
|
2283
1880
|
};
|
|
@@ -2292,7 +1889,7 @@ export declare const actionToggleHandTool: {
|
|
|
2292
1889
|
};
|
|
2293
1890
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
2294
1891
|
viewMode: false;
|
|
2295
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _:
|
|
1892
|
+
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: import("../types").AppClassProperties) => {
|
|
2296
1893
|
appState: {
|
|
2297
1894
|
selectedElementIds: {};
|
|
2298
1895
|
selectedGroupIds: {};
|
|
@@ -2309,14 +1906,14 @@ export declare const actionToggleHandTool: {
|
|
|
2309
1906
|
} | null;
|
|
2310
1907
|
showWelcomeScreen: boolean;
|
|
2311
1908
|
isLoading: boolean;
|
|
2312
|
-
errorMessage:
|
|
1909
|
+
errorMessage: React.ReactNode;
|
|
2313
1910
|
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
2314
1911
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2315
1912
|
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
2316
1913
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
2317
1914
|
isBindingEnabled: boolean;
|
|
2318
1915
|
startBoundElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2319
|
-
|
|
1916
|
+
suggestedBinding: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement> | null;
|
|
2320
1917
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
2321
1918
|
frameRendering: {
|
|
2322
1919
|
enabled: boolean;
|
|
@@ -2339,19 +1936,19 @@ export declare const actionToggleHandTool: {
|
|
|
2339
1936
|
exportScale: number;
|
|
2340
1937
|
currentItemStrokeColor: string;
|
|
2341
1938
|
currentItemBackgroundColor: string;
|
|
2342
|
-
currentItemFillStyle:
|
|
1939
|
+
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
2343
1940
|
currentItemStrokeWidth: number;
|
|
2344
|
-
currentItemStrokeStyle:
|
|
1941
|
+
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
2345
1942
|
currentItemRoughness: number;
|
|
2346
1943
|
currentItemOpacity: number;
|
|
2347
|
-
currentItemFontFamily:
|
|
1944
|
+
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
2348
1945
|
currentItemFontSize: number;
|
|
2349
|
-
currentItemTextAlign:
|
|
1946
|
+
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
2350
1947
|
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2351
1948
|
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
2352
|
-
currentHoveredFontFamily:
|
|
1949
|
+
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
2353
1950
|
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
2354
|
-
currentItemArrowType: "
|
|
1951
|
+
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
2355
1952
|
viewBackgroundColor: string;
|
|
2356
1953
|
scrollX: number;
|
|
2357
1954
|
scrollY: number;
|
|
@@ -2360,26 +1957,26 @@ export declare const actionToggleHandTool: {
|
|
|
2360
1957
|
name: string | null;
|
|
2361
1958
|
isResizing: boolean;
|
|
2362
1959
|
isRotating: boolean;
|
|
2363
|
-
zoom:
|
|
2364
|
-
value: import("../types").NormalizedZoomValue;
|
|
2365
|
-
}>;
|
|
1960
|
+
zoom: import("../types").Zoom;
|
|
2366
1961
|
openMenu: "canvas" | null;
|
|
2367
|
-
openPopup: "
|
|
1962
|
+
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
2368
1963
|
openSidebar: {
|
|
2369
|
-
name:
|
|
2370
|
-
tab?:
|
|
1964
|
+
name: import("../types").SidebarName;
|
|
1965
|
+
tab?: import("../types").SidebarTabName;
|
|
2371
1966
|
} | null;
|
|
2372
|
-
openDialog: {
|
|
1967
|
+
openDialog: null | {
|
|
2373
1968
|
name: "imageExport" | "help" | "jsonExport";
|
|
2374
1969
|
} | {
|
|
2375
1970
|
name: "ttd";
|
|
2376
|
-
tab: "
|
|
1971
|
+
tab: "text-to-diagram" | "mermaid";
|
|
2377
1972
|
} | {
|
|
2378
1973
|
name: "commandPalette";
|
|
1974
|
+
} | {
|
|
1975
|
+
name: "settings";
|
|
2379
1976
|
} | {
|
|
2380
1977
|
name: "elementLinkSelector";
|
|
2381
|
-
sourceElementId:
|
|
2382
|
-
}
|
|
1978
|
+
sourceElementId: ExcalidrawElement["id"];
|
|
1979
|
+
};
|
|
2383
1980
|
defaultSidebarDockedPreference: boolean;
|
|
2384
1981
|
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
2385
1982
|
hoveredElementIds: Readonly<{
|
|
@@ -2392,8 +1989,8 @@ export declare const actionToggleHandTool: {
|
|
|
2392
1989
|
shouldCacheIgnoreZoom: boolean;
|
|
2393
1990
|
toast: {
|
|
2394
1991
|
message: string;
|
|
2395
|
-
closable?: boolean
|
|
2396
|
-
duration?: number
|
|
1992
|
+
closable?: boolean;
|
|
1993
|
+
duration?: number;
|
|
2397
1994
|
} | null;
|
|
2398
1995
|
zenModeEnabled: boolean;
|
|
2399
1996
|
theme: import("@excalidraw/element/types").Theme;
|
|
@@ -2401,32 +1998,13 @@ export declare const actionToggleHandTool: {
|
|
|
2401
1998
|
gridStep: number;
|
|
2402
1999
|
gridModeEnabled: boolean;
|
|
2403
2000
|
viewModeEnabled: boolean;
|
|
2404
|
-
editingGroupId:
|
|
2001
|
+
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
2405
2002
|
width: number;
|
|
2406
2003
|
height: number;
|
|
2407
2004
|
offsetTop: number;
|
|
2408
2005
|
offsetLeft: number;
|
|
2409
2006
|
fileHandle: import("browser-fs-access").FileSystemHandle | null;
|
|
2410
|
-
collaborators: Map<import("../types").SocketId,
|
|
2411
|
-
pointer?: import("../types").CollaboratorPointer | undefined;
|
|
2412
|
-
button?: "up" | "down" | undefined;
|
|
2413
|
-
selectedElementIds?: Readonly<{
|
|
2414
|
-
[id: string]: true;
|
|
2415
|
-
}> | undefined;
|
|
2416
|
-
username?: string | null | undefined;
|
|
2417
|
-
userState?: import("@excalidraw/common").UserIdleState | undefined;
|
|
2418
|
-
color?: {
|
|
2419
|
-
background: string;
|
|
2420
|
-
stroke: string;
|
|
2421
|
-
} | undefined;
|
|
2422
|
-
avatarUrl?: string | undefined;
|
|
2423
|
-
id?: string | undefined;
|
|
2424
|
-
socketId?: import("../types").SocketId | undefined;
|
|
2425
|
-
isCurrentUser?: boolean | undefined;
|
|
2426
|
-
isInCall?: boolean | undefined;
|
|
2427
|
-
isSpeaking?: boolean | undefined;
|
|
2428
|
-
isMuted?: boolean | undefined;
|
|
2429
|
-
}>>;
|
|
2007
|
+
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
2430
2008
|
stats: {
|
|
2431
2009
|
open: boolean;
|
|
2432
2010
|
panels: number;
|
|
@@ -2439,7 +2017,7 @@ export declare const actionToggleHandTool: {
|
|
|
2439
2017
|
shown: true;
|
|
2440
2018
|
data: import("../charts").Spreadsheet;
|
|
2441
2019
|
};
|
|
2442
|
-
showHyperlinkPopup: false | "
|
|
2020
|
+
showHyperlinkPopup: false | "info" | "editor";
|
|
2443
2021
|
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
2444
2022
|
snapLines: readonly import("../snapping").SnapLine[];
|
|
2445
2023
|
originSnapOffset: {
|
|
@@ -2450,16 +2028,16 @@ export declare const actionToggleHandTool: {
|
|
|
2450
2028
|
userToFollow: import("../types").UserToFollow | null;
|
|
2451
2029
|
followedBy: Set<import("../types").SocketId>;
|
|
2452
2030
|
isCropping: boolean;
|
|
2453
|
-
croppingElementId:
|
|
2031
|
+
croppingElementId: ExcalidrawElement["id"] | null;
|
|
2454
2032
|
searchMatches: Readonly<{
|
|
2455
|
-
focusedId:
|
|
2033
|
+
focusedId: ExcalidrawElement["id"] | null;
|
|
2456
2034
|
matches: readonly import("../types").SearchMatch[];
|
|
2457
2035
|
}> | null;
|
|
2458
2036
|
activeLockedId: string | null;
|
|
2459
2037
|
lockedMultiSelections: {
|
|
2460
2038
|
[groupId: string]: true;
|
|
2461
2039
|
};
|
|
2462
|
-
|
|
2040
|
+
bindMode: import("@excalidraw/element/types").BindMode;
|
|
2463
2041
|
};
|
|
2464
2042
|
captureUpdate: "IMMEDIATELY";
|
|
2465
2043
|
};
|