@excalidraw/excalidraw 0.18.0-2a82821 → 0.18.0-2b1c2a9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +121 -8
- package/dist/dev/chunk-72CYJXY3.js +69 -0
- package/dist/dev/chunk-72CYJXY3.js.map +7 -0
- package/dist/dev/{chunk-T3GRJXT6.js → chunk-KKZSEXXE.js} +397 -125
- package/dist/dev/chunk-KKZSEXXE.js.map +7 -0
- package/dist/dev/{chunk-KY5OFS4H.js → chunk-ZQ2W3FVU.js} +19 -2
- package/dist/dev/chunk-ZQ2W3FVU.js.map +7 -0
- package/dist/dev/data/{image-7TCIBRTP.js → image-ORD6XJVB.js} +2 -2
- package/dist/dev/index.css +615 -630
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +10557 -7110
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{ar-SA-AGVJN2FU.js → ar-SA-EW44IW4V.js} +91 -46
- package/dist/dev/locales/ar-SA-EW44IW4V.js.map +7 -0
- package/dist/dev/locales/{az-AZ-62IXPX5D.js → az-AZ-AI7WAYA2.js} +49 -4
- package/dist/dev/locales/az-AZ-AI7WAYA2.js.map +7 -0
- package/dist/dev/locales/{bg-BG-UBDZF4KA.js → bg-BG-43ZNGDXF.js} +49 -4
- package/dist/dev/locales/bg-BG-43ZNGDXF.js.map +7 -0
- package/dist/dev/locales/{bn-BD-4TAUVZOD.js → bn-BD-PU4CN7NP.js} +49 -4
- package/dist/dev/locales/bn-BD-PU4CN7NP.js.map +7 -0
- package/dist/dev/locales/{bn-IN-PUGL2LDE.js → bn-IN-54CF43JL.js} +49 -4
- package/dist/dev/locales/bn-IN-54CF43JL.js.map +7 -0
- package/dist/dev/locales/{ca-ES-GEEW5L7T.js → ca-ES-RHJO3QDO.js} +50 -5
- package/dist/dev/locales/ca-ES-RHJO3QDO.js.map +7 -0
- package/dist/dev/locales/{cs-CZ-LNVE3QM5.js → cs-CZ-ZRSAO3BA.js} +49 -4
- package/dist/dev/locales/cs-CZ-ZRSAO3BA.js.map +7 -0
- package/dist/dev/locales/{da-DK-CAYJG7FJ.js → da-DK-OAB6DEJX.js} +49 -4
- package/dist/dev/locales/da-DK-OAB6DEJX.js.map +7 -0
- package/dist/dev/locales/{de-CH-GCXOD4LK.js → de-CH-QF7JLXTF.js} +157 -112
- package/dist/dev/locales/de-CH-QF7JLXTF.js.map +7 -0
- package/dist/dev/locales/{de-DE-CGDBECYD.js → de-DE-5ZO4KOPT.js} +157 -112
- package/dist/dev/locales/de-DE-5ZO4KOPT.js.map +7 -0
- package/dist/dev/locales/{el-GR-G5QZC24A.js → el-GR-F74ZSUEO.js} +50 -5
- package/dist/dev/locales/el-GR-F74ZSUEO.js.map +7 -0
- package/dist/dev/locales/{en-BYFCZL7X.js → en-DSRJ5DKP.js} +4 -2
- package/dist/dev/locales/{es-ES-UMEOH76W.js → es-ES-3B3IENPS.js} +144 -99
- package/dist/dev/locales/es-ES-3B3IENPS.js.map +7 -0
- package/dist/dev/locales/{eu-ES-IWRZXJC5.js → eu-ES-NH447TVU.js} +203 -158
- package/dist/dev/locales/eu-ES-NH447TVU.js.map +7 -0
- package/dist/dev/locales/{fa-IR-QOYVIIJA.js → fa-IR-GHKV6Q2J.js} +58 -13
- package/dist/dev/locales/fa-IR-GHKV6Q2J.js.map +7 -0
- package/dist/dev/locales/{fi-FI-BXRW65OA.js → fi-FI-ZXSYWCC4.js} +49 -4
- package/dist/dev/locales/fi-FI-ZXSYWCC4.js.map +7 -0
- package/dist/dev/locales/{fr-FR-R2QH5VCW.js → fr-FR-RJSOSEYS.js} +88 -43
- package/dist/dev/locales/fr-FR-RJSOSEYS.js.map +7 -0
- package/dist/dev/locales/{gl-ES-4ES3ZADP.js → gl-ES-NAUVMVFY.js} +49 -4
- package/dist/dev/locales/gl-ES-NAUVMVFY.js.map +7 -0
- package/dist/dev/locales/{he-IL-TRQRRYPH.js → he-IL-JBKWWR75.js} +145 -100
- package/dist/dev/locales/he-IL-JBKWWR75.js.map +7 -0
- package/dist/dev/locales/{hi-IN-U46BOJEC.js → hi-IN-SD773MVZ.js} +50 -5
- package/dist/dev/locales/hi-IN-SD773MVZ.js.map +7 -0
- package/dist/dev/locales/{hu-HU-JDULJ6XL.js → hu-HU-OTA7GOAV.js} +49 -4
- package/dist/dev/locales/hu-HU-OTA7GOAV.js.map +7 -0
- package/dist/dev/locales/{id-ID-BLIXNCUT.js → id-ID-2JAZWVTQ.js} +138 -93
- package/dist/dev/locales/id-ID-2JAZWVTQ.js.map +7 -0
- package/dist/dev/locales/{it-IT-6TBW7RUK.js → it-IT-GHWUAT77.js} +54 -9
- package/dist/dev/locales/it-IT-GHWUAT77.js.map +7 -0
- package/dist/dev/locales/{ja-JP-6HYAQFYX.js → ja-JP-YMGRGBPS.js} +189 -144
- package/dist/dev/locales/ja-JP-YMGRGBPS.js.map +7 -0
- package/dist/dev/locales/{kaa-Z5UP62XJ.js → kaa-RRE7XUCW.js} +49 -4
- package/dist/dev/locales/kaa-RRE7XUCW.js.map +7 -0
- package/dist/dev/locales/{kab-KAB-Z7STWQKS.js → kab-KAB-ZCYVOJU4.js} +49 -4
- package/dist/dev/locales/kab-KAB-ZCYVOJU4.js.map +7 -0
- package/dist/dev/locales/{kk-KZ-BWHY45DX.js → kk-KZ-TO6XEFJC.js} +49 -4
- package/dist/dev/locales/kk-KZ-TO6XEFJC.js.map +7 -0
- package/dist/dev/locales/{km-KH-HGLNWNRU.js → km-KH-3HTDL5HB.js} +49 -4
- package/dist/dev/locales/km-KH-3HTDL5HB.js.map +7 -0
- package/dist/dev/locales/{ko-KR-CO36WKPC.js → ko-KR-O4L4O7L6.js} +133 -88
- package/dist/dev/locales/ko-KR-O4L4O7L6.js.map +7 -0
- package/dist/dev/locales/{ku-TR-AACVIARC.js → ku-TR-AFJWDY67.js} +49 -4
- package/dist/dev/locales/ku-TR-AFJWDY67.js.map +7 -0
- package/dist/dev/locales/{lt-LT-CFYYFLDV.js → lt-LT-7QOT2VDQ.js} +49 -4
- package/dist/dev/locales/lt-LT-7QOT2VDQ.js.map +7 -0
- package/dist/dev/locales/{lv-LV-QCBBOFFU.js → lv-LV-WV6C4NYF.js} +49 -4
- package/dist/dev/locales/lv-LV-WV6C4NYF.js.map +7 -0
- package/dist/dev/locales/{mr-IN-B2CM5GK5.js → mr-IN-3TLYWOEI.js} +52 -7
- package/dist/dev/locales/mr-IN-3TLYWOEI.js.map +7 -0
- package/dist/dev/locales/{my-MM-756BNN36.js → my-MM-NNL2QJT3.js} +49 -4
- package/dist/dev/locales/my-MM-NNL2QJT3.js.map +7 -0
- package/dist/dev/locales/{nb-NO-5BLHQI4J.js → nb-NO-PG3XLMEV.js} +50 -5
- package/dist/dev/locales/nb-NO-PG3XLMEV.js.map +7 -0
- package/dist/dev/locales/{nl-NL-225BLGAH.js → nl-NL-MMOYEKKQ.js} +59 -14
- package/dist/dev/locales/nl-NL-MMOYEKKQ.js.map +7 -0
- package/dist/dev/locales/{nn-NO-4J7MR6GH.js → nn-NO-AAC2I2YX.js} +49 -4
- package/dist/dev/locales/nn-NO-AAC2I2YX.js.map +7 -0
- package/dist/dev/locales/{oc-FR-XCETH7KF.js → oc-FR-SR6MFB4N.js} +50 -5
- package/dist/dev/locales/oc-FR-SR6MFB4N.js.map +7 -0
- package/dist/dev/locales/{pa-IN-32NBAN5L.js → pa-IN-ADGMQLQI.js} +49 -4
- package/dist/dev/locales/pa-IN-ADGMQLQI.js.map +7 -0
- package/dist/dev/locales/{percentages-ZRLRVMSI.js → percentages-DKKGPYTW.js} +2 -2
- package/dist/dev/locales/{pl-PL-R6OJ54BT.js → pl-PL-FNIPTMVP.js} +50 -5
- package/dist/dev/locales/pl-PL-FNIPTMVP.js.map +7 -0
- package/dist/dev/locales/{pt-BR-7AFGAKGR.js → pt-BR-67FMCDNE.js} +136 -91
- package/dist/dev/locales/pt-BR-67FMCDNE.js.map +7 -0
- package/dist/dev/locales/{pt-PT-S6BMW6MY.js → pt-PT-4G3GI4SF.js} +135 -90
- package/dist/dev/locales/pt-PT-4G3GI4SF.js.map +7 -0
- package/dist/dev/locales/{ro-RO-4JVGQHS2.js → ro-RO-CUZFN555.js} +54 -9
- package/dist/dev/locales/ro-RO-CUZFN555.js.map +7 -0
- package/dist/dev/locales/{ru-RU-IESI752T.js → ru-RU-4GHINTII.js} +56 -11
- package/dist/dev/locales/ru-RU-4GHINTII.js.map +7 -0
- package/dist/dev/locales/{si-LK-H75E7PKD.js → si-LK-SSNT7T4A.js} +50 -5
- package/dist/dev/locales/si-LK-SSNT7T4A.js.map +7 -0
- package/dist/dev/locales/{sk-SK-EUK2NR2F.js → sk-SK-J7TKZQEH.js} +87 -42
- package/dist/dev/locales/sk-SK-J7TKZQEH.js.map +7 -0
- package/dist/dev/locales/{sl-SI-AKW7R5PW.js → sl-SI-SIBF67NE.js} +50 -5
- package/dist/dev/locales/sl-SI-SIBF67NE.js.map +7 -0
- package/dist/dev/locales/{sv-SE-QIBOOXLJ.js → sv-SE-YTR46NVM.js} +131 -86
- package/dist/dev/locales/sv-SE-YTR46NVM.js.map +7 -0
- package/dist/dev/locales/{ta-IN-LBK2NQ5K.js → ta-IN-7AW6CTGA.js} +49 -4
- package/dist/dev/locales/ta-IN-7AW6CTGA.js.map +7 -0
- package/dist/dev/locales/{th-TH-YJ2E6GVT.js → th-TH-DTLYJYKV.js} +94 -49
- package/dist/dev/locales/th-TH-DTLYJYKV.js.map +7 -0
- package/dist/dev/locales/{tr-TR-Y5GO2XJW.js → tr-TR-UDQGNXAG.js} +126 -81
- package/dist/dev/locales/tr-TR-UDQGNXAG.js.map +7 -0
- package/dist/dev/locales/{uk-UA-XYAFHHJW.js → uk-UA-25HL2NCU.js} +109 -64
- package/dist/dev/locales/uk-UA-25HL2NCU.js.map +7 -0
- package/dist/dev/locales/{uz-UZ-LF3CBRYE.js → uz-UZ-OPSBAY4H.js} +49 -4
- package/dist/dev/locales/uz-UZ-OPSBAY4H.js.map +7 -0
- package/dist/dev/locales/{vi-VN-WDPZEUOJ.js → vi-VN-DK367UGA.js} +49 -4
- package/dist/dev/locales/vi-VN-DK367UGA.js.map +7 -0
- package/dist/dev/locales/{zh-CN-SZ37453H.js → zh-CN-QCVKNWUH.js} +88 -43
- package/dist/dev/locales/zh-CN-QCVKNWUH.js.map +7 -0
- package/dist/dev/locales/{zh-HK-QDQ5QNBC.js → zh-HK-WFGYHWPG.js} +49 -4
- package/dist/dev/locales/zh-HK-WFGYHWPG.js.map +7 -0
- package/dist/dev/locales/{zh-TW-CYU6GFBV.js → zh-TW-WHQS4ZSD.js} +134 -89
- package/dist/dev/locales/zh-TW-WHQS4ZSD.js.map +7 -0
- package/dist/prod/chunk-5XKZK2GL.js +1 -0
- package/dist/prod/chunk-COKSSPJQ.js +4 -0
- package/dist/prod/chunk-ZPMXAHWN.js +12 -0
- package/dist/prod/data/{image-2UP6PNYP.js → image-52MW35OO.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +68 -99
- package/dist/prod/locales/ar-SA-5WIASEJP.js +10 -0
- package/dist/prod/locales/az-AZ-V5EUQD6C.js +1 -0
- package/dist/prod/locales/bg-BG-EXASCMTR.js +5 -0
- package/dist/prod/locales/bn-BD-U4SYNFCO.js +3 -0
- package/dist/prod/locales/bn-IN-HKDJIITE.js +3 -0
- package/dist/prod/locales/ca-ES-2KGUU5XB.js +8 -0
- package/dist/prod/locales/cs-CZ-VUCGPRML.js +7 -0
- package/dist/prod/locales/da-DK-NNDP2IVP.js +2 -0
- package/dist/prod/locales/de-CH-I7RAVIZN.js +11 -0
- package/dist/prod/locales/de-DE-WBQ3DQLR.js +11 -0
- package/dist/prod/locales/el-GR-TYQHVGXW.js +7 -0
- package/dist/prod/locales/en-2RFA324Y.js +1 -0
- package/dist/prod/locales/es-ES-JEUOREKJ.js +12 -0
- package/dist/prod/locales/eu-ES-SO5DEEAN.js +8 -0
- package/dist/prod/locales/fa-IR-FIYUE2GQ.js +9 -0
- package/dist/prod/locales/fi-FI-REAEF6HQ.js +6 -0
- package/dist/prod/locales/fr-FR-SUCL7J6B.js +12 -0
- package/dist/prod/locales/gl-ES-KHCSOGVH.js +6 -0
- package/dist/prod/locales/he-IL-JYXVXV2Q.js +9 -0
- package/dist/prod/locales/hi-IN-BU52H3BO.js +3 -0
- package/dist/prod/locales/hu-HU-OWADXDQ3.js +3 -0
- package/dist/prod/locales/id-ID-EOMR5R3I.js +8 -0
- package/dist/prod/locales/it-IT-FC2VTM3L.js +12 -0
- package/dist/prod/locales/ja-JP-JBNTKYP4.js +12 -0
- package/dist/prod/locales/kaa-TC3VIB7V.js +1 -0
- package/dist/prod/locales/kab-KAB-UOUDSQKM.js +4 -0
- package/dist/prod/locales/kk-KZ-P5H2X7YS.js +1 -0
- package/dist/prod/locales/km-KH-IHMV2US7.js +7 -0
- package/dist/prod/locales/ko-KR-ZTMANIDF.js +5 -0
- package/dist/prod/locales/ku-TR-GPJTRB5G.js +6 -0
- package/dist/prod/locales/lt-LT-V3XDOK3P.js +3 -0
- package/dist/prod/locales/lv-LV-DVQ3FADO.js +4 -0
- package/dist/prod/locales/mr-IN-VZ6HH5FE.js +9 -0
- package/dist/prod/locales/my-MM-XYKWHRK6.js +1 -0
- package/dist/prod/locales/nb-NO-UNO2GGZJ.js +8 -0
- package/dist/prod/locales/nl-NL-76EFHT4P.js +13 -0
- package/dist/prod/locales/nn-NO-CFKD7ABE.js +4 -0
- package/dist/prod/locales/oc-FR-YBJTCJ3J.js +4 -0
- package/dist/prod/locales/pa-IN-SNOXSMRV.js +4 -0
- package/dist/prod/locales/percentages-Q7USCRWZ.js +1 -0
- package/dist/prod/locales/pl-PL-BSY6YFZ3.js +12 -0
- package/dist/prod/locales/pt-BR-CZDV62R3.js +10 -0
- package/dist/prod/locales/pt-PT-JO57XJJW.js +12 -0
- package/dist/prod/locales/ro-RO-UZ5ICYYN.js +12 -0
- package/dist/prod/locales/ru-RU-AN7JPREC.js +10 -0
- package/dist/prod/locales/si-LK-7CBLD6QQ.js +1 -0
- package/dist/prod/locales/sk-SK-SWR6DKBI.js +7 -0
- package/dist/prod/locales/sl-SI-JRML4FIH.js +6 -0
- package/dist/prod/locales/sv-SE-4ZPKFFXF.js +12 -0
- package/dist/prod/locales/ta-IN-V6NHHU6Z.js +6 -0
- package/dist/prod/locales/th-TH-P7CTMGDK.js +1 -0
- package/dist/prod/locales/tr-TR-GUFYG22B.js +4 -0
- package/dist/prod/locales/uk-UA-K6SV5NFQ.js +6 -0
- package/dist/prod/locales/uz-UZ-TVKTZO2G.js +1 -0
- package/dist/prod/locales/vi-VN-7FKFXJNO.js +7 -0
- package/dist/prod/locales/zh-CN-AOKVLNNK.js +11 -0
- package/dist/prod/locales/zh-HK-CDKPF5DC.js +1 -0
- package/dist/prod/locales/zh-TW-ZVGYESGW.js +13 -0
- package/dist/types/common/src/colors.d.ts +19 -0
- package/dist/types/common/src/constants.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +2 -0
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/utils.d.ts +1 -43
- package/dist/types/element/src/Scene.d.ts +1 -1
- package/dist/types/element/src/align.d.ts +2 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrows/focus.d.ts +5 -2
- package/dist/types/element/src/binding.d.ts +17 -8
- package/dist/types/element/src/bounds.d.ts +5 -9
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +1 -1
- package/dist/types/element/src/comparisons.d.ts +4 -4
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/distribute.d.ts +2 -2
- package/dist/types/element/src/dragElements.d.ts +27 -0
- package/dist/types/element/src/duplicate.d.ts +3 -3
- package/dist/types/element/src/embeddable.d.ts +2 -2
- package/dist/types/element/src/flowchart.d.ts +7 -7
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +4 -4
- package/dist/types/element/src/groups.d.ts +9 -9
- package/dist/types/element/src/index.d.ts +4 -1
- package/dist/types/element/src/linearElementEditor.d.ts +27 -10
- package/dist/types/element/src/newElement.d.ts +14 -0
- package/dist/types/element/src/renderElement.d.ts +0 -3
- package/dist/types/element/src/resizeElements.d.ts +2 -2
- package/dist/types/element/src/selection.d.ts +5 -5
- package/dist/types/element/src/shape.d.ts +12 -0
- package/dist/types/element/src/sortElements.d.ts +10 -0
- package/dist/types/element/src/textElement.d.ts +13 -9
- package/dist/types/element/src/transform.d.ts +2 -2
- package/dist/types/element/src/typeChecks.d.ts +25 -25
- package/dist/types/element/src/types.d.ts +9 -1
- package/dist/types/element/src/utils.d.ts +7 -3
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +36 -12
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +24 -8
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +146 -931
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +24 -8
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +38 -13
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +9 -4
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +25 -9
- package/dist/types/excalidraw/actions/actionExport.d.ts +26 -10
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +48 -197
- package/dist/types/excalidraw/actions/actionGroup.d.ts +39 -23
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +16 -6
- package/dist/types/excalidraw/actions/actionLink.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionMenu.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionProperties.d.ts +43 -24
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +17 -9
- package/dist/types/excalidraw/actions/actionStyles.d.ts +12 -4
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +16 -9
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +13 -5
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +14 -6
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +13 -5
- package/dist/types/excalidraw/actions/index.d.ts +1 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/appState.d.ts +9 -4
- package/dist/types/excalidraw/components/Actions.d.ts +17 -12
- package/dist/types/excalidraw/components/App.arrowText.d.ts +104 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +372 -67
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +73 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +31 -0
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +1 -1
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/{ToolButton.d.ts → IconButton.d.ts} +16 -19
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
- package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
- package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
- package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +1 -1
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +1 -0
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
- package/dist/types/excalidraw/components/Tools.d.ts +146 -0
- package/dist/types/excalidraw/components/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +3 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +2 -2
- package/dist/types/excalidraw/components/icons.d.ts +4 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -1
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/data/blob.d.ts +28 -12
- package/dist/types/excalidraw/data/index.d.ts +4 -4
- package/dist/types/excalidraw/data/json.d.ts +20 -12
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/fonts/Fonts.d.ts +3 -2
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/index.d.ts +4 -2
- package/dist/types/excalidraw/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +1 -0
- package/dist/types/excalidraw/renderer/helpers.d.ts +7 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +1 -3
- package/dist/types/excalidraw/scene/Renderer.d.ts +12 -11
- package/dist/types/excalidraw/scene/export.d.ts +3 -3
- package/dist/types/excalidraw/scene/index.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +4 -3
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/types.d.ts +410 -20
- package/dist/types/excalidraw/viewport.d.ts +275 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +2 -3
- package/dist/types/laser-pointer/src/state.d.ts +1 -0
- package/dist/types/math/src/curve.d.ts +19 -12
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/pca.d.ts +79 -0
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/utils/src/export.d.ts +3 -3
- package/package.json +4 -4
- package/dist/dev/chunk-KY5OFS4H.js.map +0 -7
- package/dist/dev/chunk-T3GRJXT6.js.map +0 -7
- package/dist/dev/chunk-URPEKBQ3.js +0 -69
- package/dist/dev/chunk-URPEKBQ3.js.map +0 -7
- package/dist/dev/locales/ar-SA-AGVJN2FU.js.map +0 -7
- package/dist/dev/locales/az-AZ-62IXPX5D.js.map +0 -7
- package/dist/dev/locales/bg-BG-UBDZF4KA.js.map +0 -7
- package/dist/dev/locales/bn-BD-4TAUVZOD.js.map +0 -7
- package/dist/dev/locales/bn-IN-PUGL2LDE.js.map +0 -7
- package/dist/dev/locales/ca-ES-GEEW5L7T.js.map +0 -7
- package/dist/dev/locales/cs-CZ-LNVE3QM5.js.map +0 -7
- package/dist/dev/locales/da-DK-CAYJG7FJ.js.map +0 -7
- package/dist/dev/locales/de-CH-GCXOD4LK.js.map +0 -7
- package/dist/dev/locales/de-DE-CGDBECYD.js.map +0 -7
- package/dist/dev/locales/el-GR-G5QZC24A.js.map +0 -7
- package/dist/dev/locales/es-ES-UMEOH76W.js.map +0 -7
- package/dist/dev/locales/eu-ES-IWRZXJC5.js.map +0 -7
- package/dist/dev/locales/fa-IR-QOYVIIJA.js.map +0 -7
- package/dist/dev/locales/fi-FI-BXRW65OA.js.map +0 -7
- package/dist/dev/locales/fr-FR-R2QH5VCW.js.map +0 -7
- package/dist/dev/locales/gl-ES-4ES3ZADP.js.map +0 -7
- package/dist/dev/locales/he-IL-TRQRRYPH.js.map +0 -7
- package/dist/dev/locales/hi-IN-U46BOJEC.js.map +0 -7
- package/dist/dev/locales/hu-HU-JDULJ6XL.js.map +0 -7
- package/dist/dev/locales/id-ID-BLIXNCUT.js.map +0 -7
- package/dist/dev/locales/it-IT-6TBW7RUK.js.map +0 -7
- package/dist/dev/locales/ja-JP-6HYAQFYX.js.map +0 -7
- package/dist/dev/locales/kaa-Z5UP62XJ.js.map +0 -7
- package/dist/dev/locales/kab-KAB-Z7STWQKS.js.map +0 -7
- package/dist/dev/locales/kk-KZ-BWHY45DX.js.map +0 -7
- package/dist/dev/locales/km-KH-HGLNWNRU.js.map +0 -7
- package/dist/dev/locales/ko-KR-CO36WKPC.js.map +0 -7
- package/dist/dev/locales/ku-TR-AACVIARC.js.map +0 -7
- package/dist/dev/locales/lt-LT-CFYYFLDV.js.map +0 -7
- package/dist/dev/locales/lv-LV-QCBBOFFU.js.map +0 -7
- package/dist/dev/locales/mr-IN-B2CM5GK5.js.map +0 -7
- package/dist/dev/locales/my-MM-756BNN36.js.map +0 -7
- package/dist/dev/locales/nb-NO-5BLHQI4J.js.map +0 -7
- package/dist/dev/locales/nl-NL-225BLGAH.js.map +0 -7
- package/dist/dev/locales/nn-NO-4J7MR6GH.js.map +0 -7
- package/dist/dev/locales/oc-FR-XCETH7KF.js.map +0 -7
- package/dist/dev/locales/pa-IN-32NBAN5L.js.map +0 -7
- package/dist/dev/locales/pl-PL-R6OJ54BT.js.map +0 -7
- package/dist/dev/locales/pt-BR-7AFGAKGR.js.map +0 -7
- package/dist/dev/locales/pt-PT-S6BMW6MY.js.map +0 -7
- package/dist/dev/locales/ro-RO-4JVGQHS2.js.map +0 -7
- package/dist/dev/locales/ru-RU-IESI752T.js.map +0 -7
- package/dist/dev/locales/si-LK-H75E7PKD.js.map +0 -7
- package/dist/dev/locales/sk-SK-EUK2NR2F.js.map +0 -7
- package/dist/dev/locales/sl-SI-AKW7R5PW.js.map +0 -7
- package/dist/dev/locales/sv-SE-QIBOOXLJ.js.map +0 -7
- package/dist/dev/locales/ta-IN-LBK2NQ5K.js.map +0 -7
- package/dist/dev/locales/th-TH-YJ2E6GVT.js.map +0 -7
- package/dist/dev/locales/tr-TR-Y5GO2XJW.js.map +0 -7
- package/dist/dev/locales/uk-UA-XYAFHHJW.js.map +0 -7
- package/dist/dev/locales/uz-UZ-LF3CBRYE.js.map +0 -7
- package/dist/dev/locales/vi-VN-WDPZEUOJ.js.map +0 -7
- package/dist/dev/locales/zh-CN-SZ37453H.js.map +0 -7
- package/dist/dev/locales/zh-HK-QDQ5QNBC.js.map +0 -7
- package/dist/dev/locales/zh-TW-CYU6GFBV.js.map +0 -7
- package/dist/prod/chunk-2HD5NY2D.js +0 -4
- package/dist/prod/chunk-3PELD44J.js +0 -1
- package/dist/prod/chunk-RLJP2BVF.js +0 -12
- package/dist/prod/locales/ar-SA-NXDWD63E.js +0 -8
- package/dist/prod/locales/az-AZ-MXSORGZV.js +0 -1
- package/dist/prod/locales/bg-BG-O6MV2KSF.js +0 -5
- package/dist/prod/locales/bn-BD-T2VJNT7N.js +0 -3
- package/dist/prod/locales/bn-IN-MMW2ORAC.js +0 -3
- package/dist/prod/locales/ca-ES-MKBCGNOG.js +0 -8
- package/dist/prod/locales/cs-CZ-V77HGUP7.js +0 -7
- package/dist/prod/locales/da-DK-I5RFNTM4.js +0 -2
- package/dist/prod/locales/de-CH-WLRDEVBV.js +0 -7
- package/dist/prod/locales/de-DE-DTI4WUSC.js +0 -7
- package/dist/prod/locales/el-GR-ZXDJ2OS4.js +0 -7
- package/dist/prod/locales/en-W2XZHOH3.js +0 -1
- package/dist/prod/locales/es-ES-DYQHAD43.js +0 -7
- package/dist/prod/locales/eu-ES-QDSYU5Y3.js +0 -7
- package/dist/prod/locales/fa-IR-26LZG4PM.js +0 -9
- package/dist/prod/locales/fi-FI-6YS4KDE4.js +0 -6
- package/dist/prod/locales/fr-FR-BRLLPTZC.js +0 -12
- package/dist/prod/locales/gl-ES-OKUZTLYG.js +0 -6
- package/dist/prod/locales/he-IL-26MGYIU7.js +0 -8
- package/dist/prod/locales/hi-IN-Q4ZOGTP2.js +0 -3
- package/dist/prod/locales/hu-HU-P2OXPSN5.js +0 -3
- package/dist/prod/locales/id-ID-2EIKXYN6.js +0 -8
- package/dist/prod/locales/it-IT-4CFKVXI2.js +0 -12
- package/dist/prod/locales/ja-JP-MAND2Z4V.js +0 -7
- package/dist/prod/locales/kaa-HQRTCXTJ.js +0 -1
- package/dist/prod/locales/kab-KAB-JKIKKTGH.js +0 -4
- package/dist/prod/locales/kk-KZ-HXQ63ZFC.js +0 -1
- package/dist/prod/locales/km-KH-PKL3LSGX.js +0 -7
- package/dist/prod/locales/ko-KR-KXLREZX3.js +0 -5
- package/dist/prod/locales/ku-TR-MJ4IER3X.js +0 -6
- package/dist/prod/locales/lt-LT-H6WFQ6FJ.js +0 -3
- package/dist/prod/locales/lv-LV-GOCK6SJW.js +0 -4
- package/dist/prod/locales/mr-IN-IXVLDMEQ.js +0 -9
- package/dist/prod/locales/my-MM-YG6MYTTD.js +0 -1
- package/dist/prod/locales/nb-NO-XGWJISD2.js +0 -8
- package/dist/prod/locales/nl-NL-XVDVCPNC.js +0 -13
- package/dist/prod/locales/nn-NO-EMX5MJX5.js +0 -4
- package/dist/prod/locales/oc-FR-ROEINTVO.js +0 -4
- package/dist/prod/locales/pa-IN-ZYN6SUDY.js +0 -4
- package/dist/prod/locales/percentages-5DKR754L.js +0 -1
- package/dist/prod/locales/pl-PL-6VTG7PHC.js +0 -12
- package/dist/prod/locales/pt-BR-5YFKRR5G.js +0 -6
- package/dist/prod/locales/pt-PT-GEIXXZ67.js +0 -8
- package/dist/prod/locales/ro-RO-E2P6TFZI.js +0 -12
- package/dist/prod/locales/ru-RU-YBIIY43T.js +0 -10
- package/dist/prod/locales/si-LK-673C2CI2.js +0 -1
- package/dist/prod/locales/sk-SK-CKZHQ4AP.js +0 -7
- package/dist/prod/locales/sl-SI-557H2GWM.js +0 -6
- package/dist/prod/locales/sv-SE-XOPKKDWS.js +0 -8
- package/dist/prod/locales/ta-IN-XBH7DQI3.js +0 -6
- package/dist/prod/locales/th-TH-TOCWH3R4.js +0 -1
- package/dist/prod/locales/tr-TR-GXW6CYY5.js +0 -4
- package/dist/prod/locales/uk-UA-IJKTNUDG.js +0 -6
- package/dist/prod/locales/uz-UZ-TBZZEA4V.js +0 -1
- package/dist/prod/locales/vi-VN-MULSGNVB.js +0 -7
- package/dist/prod/locales/zh-CN-MVX3E32U.js +0 -11
- package/dist/prod/locales/zh-HK-JNU5RLIE.js +0 -1
- package/dist/prod/locales/zh-TW-LENVCA6T.js +0 -9
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -172
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
- package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
- package/dist/types/excalidraw/components/shapes.d.ts +0 -270
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
- /package/dist/dev/data/{image-7TCIBRTP.js.map → image-ORD6XJVB.js.map} +0 -0
- /package/dist/dev/locales/{en-BYFCZL7X.js.map → en-DSRJ5DKP.js.map} +0 -0
- /package/dist/dev/locales/{percentages-ZRLRVMSI.js.map → percentages-DKKGPYTW.js.map} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import type { ExcalidrawElement, ExcalidrawTextElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
-
import type { AppClassProperties,
|
|
2
|
+
import type { AppClassProperties, UIAppState } from "../types";
|
|
3
3
|
export declare const actionGroup: {
|
|
4
4
|
name: "group";
|
|
5
5
|
label: string;
|
|
6
|
-
icon: (appState:
|
|
6
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
9
9
|
};
|
|
10
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
11
|
-
appState: Readonly<AppState>;
|
|
10
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => false | {
|
|
11
|
+
appState: Readonly<import("../types").AppState>;
|
|
12
12
|
elements: readonly OrderedExcalidrawElement[];
|
|
13
13
|
captureUpdate: "EVENTUALLY";
|
|
14
14
|
} | {
|
|
15
15
|
appState: {
|
|
16
|
-
editingGroupId: AppState["editingGroupId"];
|
|
17
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
18
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
16
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
17
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
18
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
19
19
|
contextMenu: {
|
|
20
20
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
21
21
|
top: number;
|
|
@@ -40,6 +40,10 @@ export declare const actionGroup: {
|
|
|
40
40
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
41
41
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
42
42
|
} | null;
|
|
43
|
+
hoveredArrowTextAnchor: {
|
|
44
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
45
|
+
anchor: "start" | "end" | "label";
|
|
46
|
+
} | null;
|
|
43
47
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
44
48
|
frameRendering: {
|
|
45
49
|
enabled: boolean;
|
|
@@ -47,8 +51,8 @@ export declare const actionGroup: {
|
|
|
47
51
|
outline: boolean;
|
|
48
52
|
clip: boolean;
|
|
49
53
|
};
|
|
50
|
-
editingFrame:
|
|
51
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
54
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
55
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
52
56
|
editingTextElement: ExcalidrawTextElement | null;
|
|
53
57
|
activeTool: {
|
|
54
58
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -84,6 +88,7 @@ export declare const actionGroup: {
|
|
|
84
88
|
viewBackgroundColor: string;
|
|
85
89
|
scrollX: number;
|
|
86
90
|
scrollY: number;
|
|
91
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
87
92
|
cursorButton: "up" | "down";
|
|
88
93
|
scrolledOutside: boolean;
|
|
89
94
|
name: string | null;
|
|
@@ -152,8 +157,6 @@ export declare const actionGroup: {
|
|
|
152
157
|
y: number;
|
|
153
158
|
} | null;
|
|
154
159
|
objectsSnapModeEnabled: boolean;
|
|
155
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
156
|
-
followedBy: Set<import("../types").SocketId>;
|
|
157
160
|
isCropping: boolean;
|
|
158
161
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
159
162
|
searchMatches: Readonly<{
|
|
@@ -165,11 +168,16 @@ export declare const actionGroup: {
|
|
|
165
168
|
[groupId: string]: true;
|
|
166
169
|
};
|
|
167
170
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
171
|
+
colorTopPicks: {
|
|
172
|
+
elementStroke: readonly string[] | null;
|
|
173
|
+
elementBackground: readonly string[] | null;
|
|
174
|
+
bucketFill: readonly string[] | null;
|
|
175
|
+
};
|
|
168
176
|
};
|
|
169
177
|
elements: OrderedExcalidrawElement[];
|
|
170
178
|
captureUpdate: "IMMEDIATELY";
|
|
171
179
|
};
|
|
172
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
180
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState, _: import("../types").ExcalidrawProps, app: AppClassProperties) => boolean;
|
|
173
181
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
174
182
|
PanelComponent: ({ elements, appState, updateData, app }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
175
183
|
} & {
|
|
@@ -178,19 +186,19 @@ export declare const actionGroup: {
|
|
|
178
186
|
export declare const actionUngroup: {
|
|
179
187
|
name: "ungroup";
|
|
180
188
|
label: string;
|
|
181
|
-
icon: (appState:
|
|
189
|
+
icon: (appState: UIAppState) => import("react/jsx-runtime").JSX.Element;
|
|
182
190
|
trackEvent: {
|
|
183
191
|
category: "element";
|
|
184
192
|
};
|
|
185
|
-
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, _: unknown, app: AppClassProperties) => {
|
|
186
|
-
appState: Readonly<AppState>;
|
|
193
|
+
perform: (elements: readonly OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: AppClassProperties) => {
|
|
194
|
+
appState: Readonly<import("../types").AppState>;
|
|
187
195
|
elements: readonly OrderedExcalidrawElement[];
|
|
188
196
|
captureUpdate: "EVENTUALLY";
|
|
189
197
|
} | {
|
|
190
198
|
appState: {
|
|
191
|
-
editingGroupId: AppState["editingGroupId"];
|
|
192
|
-
selectedElementIds: AppState["selectedElementIds"];
|
|
193
|
-
selectedGroupIds: AppState["selectedGroupIds"];
|
|
199
|
+
editingGroupId: import("../types").AppState["editingGroupId"];
|
|
200
|
+
selectedElementIds: import("../types").AppState["selectedElementIds"];
|
|
201
|
+
selectedGroupIds: import("../types").AppState["selectedGroupIds"];
|
|
194
202
|
contextMenu: {
|
|
195
203
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
196
204
|
top: number;
|
|
@@ -215,6 +223,10 @@ export declare const actionUngroup: {
|
|
|
215
223
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
216
224
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
217
225
|
} | null;
|
|
226
|
+
hoveredArrowTextAnchor: {
|
|
227
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
228
|
+
anchor: "start" | "end" | "label";
|
|
229
|
+
} | null;
|
|
218
230
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
219
231
|
frameRendering: {
|
|
220
232
|
enabled: boolean;
|
|
@@ -222,8 +234,8 @@ export declare const actionUngroup: {
|
|
|
222
234
|
outline: boolean;
|
|
223
235
|
clip: boolean;
|
|
224
236
|
};
|
|
225
|
-
editingFrame:
|
|
226
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
237
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
238
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
227
239
|
editingTextElement: ExcalidrawTextElement | null;
|
|
228
240
|
activeTool: {
|
|
229
241
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -259,6 +271,7 @@ export declare const actionUngroup: {
|
|
|
259
271
|
viewBackgroundColor: string;
|
|
260
272
|
scrollX: number;
|
|
261
273
|
scrollY: number;
|
|
274
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
262
275
|
cursorButton: "up" | "down";
|
|
263
276
|
scrolledOutside: boolean;
|
|
264
277
|
name: string | null;
|
|
@@ -327,8 +340,6 @@ export declare const actionUngroup: {
|
|
|
327
340
|
y: number;
|
|
328
341
|
} | null;
|
|
329
342
|
objectsSnapModeEnabled: boolean;
|
|
330
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
331
|
-
followedBy: Set<import("../types").SocketId>;
|
|
332
343
|
isCropping: boolean;
|
|
333
344
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
334
345
|
searchMatches: Readonly<{
|
|
@@ -340,12 +351,17 @@ export declare const actionUngroup: {
|
|
|
340
351
|
[groupId: string]: true;
|
|
341
352
|
};
|
|
342
353
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
354
|
+
colorTopPicks: {
|
|
355
|
+
elementStroke: readonly string[] | null;
|
|
356
|
+
elementBackground: readonly string[] | null;
|
|
357
|
+
bucketFill: readonly string[] | null;
|
|
358
|
+
};
|
|
343
359
|
};
|
|
344
360
|
elements: OrderedExcalidrawElement[];
|
|
345
361
|
captureUpdate: "IMMEDIATELY";
|
|
346
362
|
};
|
|
347
363
|
keyTest: (event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean;
|
|
348
|
-
predicate: (elements: readonly ExcalidrawElement[], appState: AppState) => boolean;
|
|
364
|
+
predicate: (elements: readonly ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
349
365
|
PanelComponent: ({ elements, appState, updateData }: import("./types").PanelComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
350
366
|
} & {
|
|
351
367
|
keyTest?: ((event: KeyboardEvent | import("react").KeyboardEvent<Element>) => boolean) | undefined;
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
|
2
2
|
export declare const actionToggleLinearEditor: {
|
|
3
3
|
name: "toggleLinearEditor";
|
|
4
4
|
category: string;
|
|
5
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
5
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
6
6
|
keywords: string[];
|
|
7
7
|
trackEvent: {
|
|
8
8
|
category: "element";
|
|
@@ -27,6 +27,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
27
27
|
};
|
|
28
28
|
arrowStartIsInside: boolean;
|
|
29
29
|
altFocusPoint: Readonly<import("@excalidraw/math").GlobalPoint> | null;
|
|
30
|
+
arrowOtherEndpointInitialBinding: import("@excalidraw/element/types").FixedPointBinding | null;
|
|
30
31
|
}>;
|
|
31
32
|
isDragging: boolean;
|
|
32
33
|
lastUncommittedPoint: import("@excalidraw/math").LocalPoint | null;
|
|
@@ -67,6 +68,10 @@ export declare const actionToggleLinearEditor: {
|
|
|
67
68
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
68
69
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
69
70
|
} | null;
|
|
71
|
+
hoveredArrowTextAnchor: {
|
|
72
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
73
|
+
anchor: "start" | "end" | "label";
|
|
74
|
+
} | null;
|
|
70
75
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
71
76
|
frameRendering: {
|
|
72
77
|
enabled: boolean;
|
|
@@ -74,8 +79,8 @@ export declare const actionToggleLinearEditor: {
|
|
|
74
79
|
outline: boolean;
|
|
75
80
|
clip: boolean;
|
|
76
81
|
};
|
|
77
|
-
editingFrame:
|
|
78
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
82
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
83
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
79
84
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
80
85
|
activeTool: {
|
|
81
86
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -111,6 +116,7 @@ export declare const actionToggleLinearEditor: {
|
|
|
111
116
|
viewBackgroundColor: string;
|
|
112
117
|
scrollX: number;
|
|
113
118
|
scrollY: number;
|
|
119
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
114
120
|
cursorButton: "up" | "down";
|
|
115
121
|
scrolledOutside: boolean;
|
|
116
122
|
name: string | null;
|
|
@@ -185,8 +191,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
185
191
|
y: number;
|
|
186
192
|
} | null;
|
|
187
193
|
objectsSnapModeEnabled: boolean;
|
|
188
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
189
|
-
followedBy: Set<import("../types").SocketId>;
|
|
190
194
|
isCropping: boolean;
|
|
191
195
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
192
196
|
searchMatches: Readonly<{
|
|
@@ -198,6 +202,11 @@ export declare const actionToggleLinearEditor: {
|
|
|
198
202
|
[groupId: string]: true;
|
|
199
203
|
};
|
|
200
204
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
205
|
+
colorTopPicks: {
|
|
206
|
+
elementStroke: readonly string[] | null;
|
|
207
|
+
elementBackground: readonly string[] | null;
|
|
208
|
+
bucketFill: readonly string[] | null;
|
|
209
|
+
};
|
|
201
210
|
};
|
|
202
211
|
captureUpdate: "IMMEDIATELY";
|
|
203
212
|
};
|
|
@@ -210,7 +219,7 @@ export declare const actionTogglePolygon: {
|
|
|
210
219
|
category: string;
|
|
211
220
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
212
221
|
keywords: string[];
|
|
213
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
222
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
214
223
|
trackEvent: {
|
|
215
224
|
category: "element";
|
|
216
225
|
};
|
|
@@ -613,6 +622,7 @@ export declare const actionTogglePolygon: {
|
|
|
613
622
|
lineHeight: number & {
|
|
614
623
|
_brand: "unitlessLineHeight";
|
|
615
624
|
};
|
|
625
|
+
labelPosition?: number | null;
|
|
616
626
|
}> & {
|
|
617
627
|
index: import("@excalidraw/element/types").FractionalIndex;
|
|
618
628
|
}) | (Readonly<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const actionLink: {
|
|
2
2
|
name: "hyperlink";
|
|
3
|
-
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").
|
|
3
|
+
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").UIAppState>) => "labels.link.editEmbed" | "labels.link.edit" | "labels.link.create";
|
|
4
4
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>) => false | {
|
|
6
6
|
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
@@ -31,6 +31,10 @@ export declare const actionLink: {
|
|
|
31
31
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
32
32
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
33
33
|
} | null;
|
|
34
|
+
hoveredArrowTextAnchor: {
|
|
35
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
36
|
+
anchor: "start" | "end" | "label";
|
|
37
|
+
} | null;
|
|
34
38
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
35
39
|
frameRendering: {
|
|
36
40
|
enabled: boolean;
|
|
@@ -38,8 +42,8 @@ export declare const actionLink: {
|
|
|
38
42
|
outline: boolean;
|
|
39
43
|
clip: boolean;
|
|
40
44
|
};
|
|
41
|
-
editingFrame:
|
|
42
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
45
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
46
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
43
47
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
44
48
|
activeTool: {
|
|
45
49
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -75,6 +79,7 @@ export declare const actionLink: {
|
|
|
75
79
|
viewBackgroundColor: string;
|
|
76
80
|
scrollX: number;
|
|
77
81
|
scrollY: number;
|
|
82
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
78
83
|
cursorButton: "up" | "down";
|
|
79
84
|
scrolledOutside: boolean;
|
|
80
85
|
name: string | null;
|
|
@@ -148,8 +153,6 @@ export declare const actionLink: {
|
|
|
148
153
|
y: number;
|
|
149
154
|
} | null;
|
|
150
155
|
objectsSnapModeEnabled: boolean;
|
|
151
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
152
|
-
followedBy: Set<import("../types").SocketId>;
|
|
153
156
|
isCropping: boolean;
|
|
154
157
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
155
158
|
searchMatches: Readonly<{
|
|
@@ -161,6 +164,11 @@ export declare const actionLink: {
|
|
|
161
164
|
[groupId: string]: true;
|
|
162
165
|
};
|
|
163
166
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
167
|
+
colorTopPicks: {
|
|
168
|
+
elementStroke: readonly string[] | null;
|
|
169
|
+
elementBackground: readonly string[] | null;
|
|
170
|
+
bucketFill: readonly string[] | null;
|
|
171
|
+
};
|
|
164
172
|
};
|
|
165
173
|
captureUpdate: "IMMEDIATELY";
|
|
166
174
|
};
|
|
@@ -38,6 +38,10 @@ export declare const actionShortcuts: {
|
|
|
38
38
|
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
39
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
40
40
|
} | null;
|
|
41
|
+
hoveredArrowTextAnchor: {
|
|
42
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
43
|
+
anchor: "start" | "end" | "label";
|
|
44
|
+
} | null;
|
|
41
45
|
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
42
46
|
frameRendering: {
|
|
43
47
|
enabled: boolean;
|
|
@@ -45,8 +49,8 @@ export declare const actionShortcuts: {
|
|
|
45
49
|
outline: boolean;
|
|
46
50
|
clip: boolean;
|
|
47
51
|
};
|
|
48
|
-
editingFrame:
|
|
49
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
52
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
53
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
50
54
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
51
55
|
activeTool: {
|
|
52
56
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -82,6 +86,7 @@ export declare const actionShortcuts: {
|
|
|
82
86
|
viewBackgroundColor: string;
|
|
83
87
|
scrollX: number;
|
|
84
88
|
scrollY: number;
|
|
89
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
85
90
|
cursorButton: "up" | "down";
|
|
86
91
|
scrolledOutside: boolean;
|
|
87
92
|
name: string | null;
|
|
@@ -138,8 +143,6 @@ export declare const actionShortcuts: {
|
|
|
138
143
|
y: number;
|
|
139
144
|
} | null;
|
|
140
145
|
objectsSnapModeEnabled: boolean;
|
|
141
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
142
|
-
followedBy: Set<import("../types").SocketId>;
|
|
143
146
|
isCropping: boolean;
|
|
144
147
|
croppingElementId: import("@excalidraw/element/types").ExcalidrawElement["id"] | null;
|
|
145
148
|
searchMatches: Readonly<{
|
|
@@ -151,6 +154,11 @@ export declare const actionShortcuts: {
|
|
|
151
154
|
[groupId: string]: true;
|
|
152
155
|
};
|
|
153
156
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
157
|
+
colorTopPicks: {
|
|
158
|
+
elementStroke: readonly string[] | null;
|
|
159
|
+
elementBackground: readonly string[] | null;
|
|
160
|
+
bucketFill: readonly string[] | null;
|
|
161
|
+
};
|
|
154
162
|
};
|
|
155
163
|
captureUpdate: "EVENTUALLY";
|
|
156
164
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type StrokeWidthKey } from "@excalidraw/common";
|
|
2
2
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
3
|
-
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, TextAlign } from "@excalidraw/element/types";
|
|
3
|
+
import type { Arrowhead, ExcalidrawBindableElement, ExcalidrawElement, ExcalidrawLinearElement, ExcalidrawTextElement, FontFamilyValues, StrokeVariability, NonDeleted, NonDeletedExcalidrawElement, TextAlign } from "@excalidraw/element/types";
|
|
4
4
|
import type { AppClassProperties, AppState, Primitive } from "../types";
|
|
5
|
-
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element:
|
|
5
|
+
export declare const changeProperty: (elements: readonly ExcalidrawElement[], appState: AppState, callback: (element: NonDeletedExcalidrawElement) => ExcalidrawElement, includeBoundText?: boolean) => ExcalidrawElement[];
|
|
6
6
|
export declare const getFormValue: <T extends Primitive>(elements: readonly ExcalidrawElement[], app: AppClassProperties,
|
|
7
7
|
/**
|
|
8
8
|
* input value (usually the element attribute value,
|
|
@@ -15,6 +15,9 @@ export declare const actionChangeStrokeColor: import("./types").Action<Pick<AppS
|
|
|
15
15
|
export declare const actionChangeBackgroundColor: import("./types").Action<Pick<AppState, "viewBackgroundColor" | "currentItemBackgroundColor">> & {
|
|
16
16
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
17
17
|
};
|
|
18
|
+
export declare const actionChangeBucketFillBackgroundColor: import("./types").Action<Pick<AppState, "currentItemBackgroundColor">> & {
|
|
19
|
+
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
20
|
+
};
|
|
18
21
|
export declare const actionChangeFillStyle: import("./types").Action<import("@excalidraw/element/types").FillStyle> & {
|
|
19
22
|
keyTest?: ((event: React.KeyboardEvent | KeyboardEvent, appState: AppState, elements: readonly ExcalidrawElement[], app: AppClassProperties) => boolean) | undefined;
|
|
20
23
|
};
|
|
@@ -54,30 +57,34 @@ export declare const actionDecreaseFontSize: {
|
|
|
54
57
|
isLoading: boolean;
|
|
55
58
|
errorMessage: React.ReactNode;
|
|
56
59
|
activeEmbeddable: {
|
|
57
|
-
element:
|
|
60
|
+
element: NonDeletedExcalidrawElement;
|
|
58
61
|
state: "hover" | "active";
|
|
59
62
|
} | null;
|
|
60
|
-
newElement:
|
|
61
|
-
resizingElement:
|
|
62
|
-
multiElement:
|
|
63
|
-
selectionElement:
|
|
63
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
64
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
65
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
66
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
64
67
|
isBindingEnabled: boolean;
|
|
65
68
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
66
69
|
bindingPreference: "enabled" | "disabled";
|
|
67
70
|
isMidpointSnappingEnabled: boolean;
|
|
68
71
|
suggestedBinding: {
|
|
69
|
-
element:
|
|
72
|
+
element: NonDeleted<ExcalidrawBindableElement>;
|
|
70
73
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
71
74
|
} | null;
|
|
72
|
-
|
|
75
|
+
hoveredArrowTextAnchor: {
|
|
76
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
77
|
+
anchor: "start" | "end" | "label";
|
|
78
|
+
} | null;
|
|
79
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
73
80
|
frameRendering: {
|
|
74
81
|
enabled: boolean;
|
|
75
82
|
name: boolean;
|
|
76
83
|
outline: boolean;
|
|
77
84
|
clip: boolean;
|
|
78
85
|
};
|
|
79
|
-
editingFrame:
|
|
80
|
-
elementsToHighlight:
|
|
86
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
87
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
81
88
|
editingTextElement: ExcalidrawTextElement | null;
|
|
82
89
|
activeTool: {
|
|
83
90
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -112,6 +119,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
112
119
|
viewBackgroundColor: string;
|
|
113
120
|
scrollX: number;
|
|
114
121
|
scrollY: number;
|
|
122
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
115
123
|
cursorButton: "up" | "down";
|
|
116
124
|
scrolledOutside: boolean;
|
|
117
125
|
name: string | null;
|
|
@@ -187,8 +195,6 @@ export declare const actionDecreaseFontSize: {
|
|
|
187
195
|
y: number;
|
|
188
196
|
} | null;
|
|
189
197
|
objectsSnapModeEnabled: boolean;
|
|
190
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
191
|
-
followedBy: Set<import("../types").SocketId>;
|
|
192
198
|
isCropping: boolean;
|
|
193
199
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
194
200
|
searchMatches: Readonly<{
|
|
@@ -200,6 +206,11 @@ export declare const actionDecreaseFontSize: {
|
|
|
200
206
|
[groupId: string]: true;
|
|
201
207
|
};
|
|
202
208
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
209
|
+
colorTopPicks: {
|
|
210
|
+
elementStroke: readonly string[] | null;
|
|
211
|
+
elementBackground: readonly string[] | null;
|
|
212
|
+
bucketFill: readonly string[] | null;
|
|
213
|
+
};
|
|
203
214
|
};
|
|
204
215
|
captureUpdate: "IMMEDIATELY";
|
|
205
216
|
};
|
|
@@ -225,30 +236,34 @@ export declare const actionIncreaseFontSize: {
|
|
|
225
236
|
isLoading: boolean;
|
|
226
237
|
errorMessage: React.ReactNode;
|
|
227
238
|
activeEmbeddable: {
|
|
228
|
-
element:
|
|
239
|
+
element: NonDeletedExcalidrawElement;
|
|
229
240
|
state: "hover" | "active";
|
|
230
241
|
} | null;
|
|
231
|
-
newElement:
|
|
232
|
-
resizingElement:
|
|
233
|
-
multiElement:
|
|
234
|
-
selectionElement:
|
|
242
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
243
|
+
resizingElement: NonDeletedExcalidrawElement | null;
|
|
244
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
245
|
+
selectionElement: NonDeletedExcalidrawElement | null;
|
|
235
246
|
isBindingEnabled: boolean;
|
|
236
247
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
237
248
|
bindingPreference: "enabled" | "disabled";
|
|
238
249
|
isMidpointSnappingEnabled: boolean;
|
|
239
250
|
suggestedBinding: {
|
|
240
|
-
element:
|
|
251
|
+
element: NonDeleted<ExcalidrawBindableElement>;
|
|
241
252
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
242
253
|
} | null;
|
|
243
|
-
|
|
254
|
+
hoveredArrowTextAnchor: {
|
|
255
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
256
|
+
anchor: "start" | "end" | "label";
|
|
257
|
+
} | null;
|
|
258
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
244
259
|
frameRendering: {
|
|
245
260
|
enabled: boolean;
|
|
246
261
|
name: boolean;
|
|
247
262
|
outline: boolean;
|
|
248
263
|
clip: boolean;
|
|
249
264
|
};
|
|
250
|
-
editingFrame:
|
|
251
|
-
elementsToHighlight:
|
|
265
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
266
|
+
elementsToHighlight: readonly NonDeletedExcalidrawElement[] | null;
|
|
252
267
|
editingTextElement: ExcalidrawTextElement | null;
|
|
253
268
|
activeTool: {
|
|
254
269
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -283,6 +298,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
283
298
|
viewBackgroundColor: string;
|
|
284
299
|
scrollX: number;
|
|
285
300
|
scrollY: number;
|
|
301
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
286
302
|
cursorButton: "up" | "down";
|
|
287
303
|
scrolledOutside: boolean;
|
|
288
304
|
name: string | null;
|
|
@@ -358,8 +374,6 @@ export declare const actionIncreaseFontSize: {
|
|
|
358
374
|
y: number;
|
|
359
375
|
} | null;
|
|
360
376
|
objectsSnapModeEnabled: boolean;
|
|
361
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
362
|
-
followedBy: Set<import("../types").SocketId>;
|
|
363
377
|
isCropping: boolean;
|
|
364
378
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
365
379
|
searchMatches: Readonly<{
|
|
@@ -371,6 +385,11 @@ export declare const actionIncreaseFontSize: {
|
|
|
371
385
|
[groupId: string]: true;
|
|
372
386
|
};
|
|
373
387
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
388
|
+
colorTopPicks: {
|
|
389
|
+
elementStroke: readonly string[] | null;
|
|
390
|
+
elementBackground: readonly string[] | null;
|
|
391
|
+
bucketFill: readonly string[] | null;
|
|
392
|
+
};
|
|
374
393
|
};
|
|
375
394
|
captureUpdate: "IMMEDIATELY";
|
|
376
395
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LinearElementEditor } from "@excalidraw/element";
|
|
2
|
-
import type { ExcalidrawElement } from "@excalidraw/element/types";
|
|
2
|
+
import type { ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "@excalidraw/element/types";
|
|
3
3
|
export declare const actionSelectAll: {
|
|
4
4
|
name: "selectAll";
|
|
5
5
|
label: string;
|
|
@@ -26,27 +26,31 @@ export declare const actionSelectAll: {
|
|
|
26
26
|
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
27
27
|
state: "hover" | "active";
|
|
28
28
|
} | null;
|
|
29
|
-
newElement:
|
|
29
|
+
newElement: NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
30
30
|
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
31
|
-
multiElement:
|
|
31
|
+
multiElement: NonDeleted<ExcalidrawLinearElement> | null;
|
|
32
32
|
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
33
33
|
isBindingEnabled: boolean;
|
|
34
34
|
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
35
35
|
bindingPreference: "enabled" | "disabled";
|
|
36
36
|
isMidpointSnappingEnabled: boolean;
|
|
37
37
|
suggestedBinding: {
|
|
38
|
-
element:
|
|
38
|
+
element: NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
39
39
|
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
40
40
|
} | null;
|
|
41
|
-
|
|
41
|
+
hoveredArrowTextAnchor: {
|
|
42
|
+
elementId: import("@excalidraw/element/types").ExcalidrawArrowElement["id"];
|
|
43
|
+
anchor: "start" | "end" | "label";
|
|
44
|
+
} | null;
|
|
45
|
+
frameToHighlight: NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
42
46
|
frameRendering: {
|
|
43
47
|
enabled: boolean;
|
|
44
48
|
name: boolean;
|
|
45
49
|
outline: boolean;
|
|
46
50
|
clip: boolean;
|
|
47
51
|
};
|
|
48
|
-
editingFrame:
|
|
49
|
-
elementsToHighlight: import("@excalidraw/element/types").
|
|
52
|
+
editingFrame: import("@excalidraw/element/types").ExcalidrawFrameLikeElement["id"] | null;
|
|
53
|
+
elementsToHighlight: readonly import("@excalidraw/element/types").NonDeletedExcalidrawElement[] | null;
|
|
50
54
|
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
51
55
|
activeTool: {
|
|
52
56
|
lastActiveTool: import("../types").ActiveTool | null;
|
|
@@ -82,6 +86,7 @@ export declare const actionSelectAll: {
|
|
|
82
86
|
viewBackgroundColor: string;
|
|
83
87
|
scrollX: number;
|
|
84
88
|
scrollY: number;
|
|
89
|
+
scrollConstraints: import("../types").ScrollConstraints | null;
|
|
85
90
|
cursorButton: "up" | "down";
|
|
86
91
|
scrolledOutside: boolean;
|
|
87
92
|
name: string | null;
|
|
@@ -149,8 +154,6 @@ export declare const actionSelectAll: {
|
|
|
149
154
|
y: number;
|
|
150
155
|
} | null;
|
|
151
156
|
objectsSnapModeEnabled: boolean;
|
|
152
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
153
|
-
followedBy: Set<import("../types").SocketId>;
|
|
154
157
|
isCropping: boolean;
|
|
155
158
|
croppingElementId: ExcalidrawElement["id"] | null;
|
|
156
159
|
searchMatches: Readonly<{
|
|
@@ -162,6 +165,11 @@ export declare const actionSelectAll: {
|
|
|
162
165
|
[groupId: string]: true;
|
|
163
166
|
};
|
|
164
167
|
bindMode: import("@excalidraw/element/types").BindMode;
|
|
168
|
+
colorTopPicks: {
|
|
169
|
+
elementStroke: readonly string[] | null;
|
|
170
|
+
elementBackground: readonly string[] | null;
|
|
171
|
+
bucketFill: readonly string[] | null;
|
|
172
|
+
};
|
|
165
173
|
};
|
|
166
174
|
captureUpdate: "IMMEDIATELY";
|
|
167
175
|
};
|