@myoc/excalidraw 0.19.510 → 0.19.512
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 +106 -0
- package/dist/dev/{chunk-EFGBMKJZ.js → chunk-OBLRXIUK.js} +88 -132
- package/dist/dev/chunk-OBLRXIUK.js.map +7 -0
- package/dist/dev/{chunk-ETVKWGYA.js → chunk-QHLG4OQL.js} +2 -2
- package/dist/dev/{chunk-XO7KL57K.js → chunk-ZGRXNVW4.js} +1 -98
- package/dist/dev/chunk-ZGRXNVW4.js.map +7 -0
- package/dist/dev/data/{image-24SF3JAY.js → image-R7FQP7SA.js} +3 -3
- package/dist/dev/index.css +986 -1669
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +10107 -13532
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{ar-SA-U3PIVEZH.js → ar-SA-NFU76NHO.js} +1 -98
- package/dist/dev/locales/ar-SA-NFU76NHO.js.map +7 -0
- package/dist/dev/locales/{az-AZ-COAM4HVM.js → az-AZ-F7U432OF.js} +1 -98
- package/dist/dev/locales/az-AZ-F7U432OF.js.map +7 -0
- package/dist/dev/locales/{bg-BG-D6B2W7JL.js → bg-BG-VMJGHZ3R.js} +1 -98
- package/dist/dev/locales/bg-BG-VMJGHZ3R.js.map +7 -0
- package/dist/dev/locales/{bn-BD-BU7GZAZW.js → bn-BD-ABWH5RGF.js} +1 -98
- package/dist/dev/locales/bn-BD-ABWH5RGF.js.map +7 -0
- package/dist/dev/locales/{bn-IN-MYKDEVNA.js → bn-IN-6FBCHDUY.js} +1 -98
- package/dist/dev/locales/bn-IN-6FBCHDUY.js.map +7 -0
- package/dist/dev/locales/{ca-ES-GEEW5L7T.js → ca-ES-UX7K2ENH.js} +1 -98
- package/dist/dev/locales/ca-ES-UX7K2ENH.js.map +7 -0
- package/dist/dev/locales/{cs-CZ-LNVE3QM5.js → cs-CZ-TBYIRH36.js} +1 -98
- package/dist/dev/locales/cs-CZ-TBYIRH36.js.map +7 -0
- package/dist/dev/locales/{da-DK-CAYJG7FJ.js → da-DK-KW4TGU6O.js} +1 -98
- package/dist/dev/locales/da-DK-KW4TGU6O.js.map +7 -0
- package/dist/dev/locales/{de-CH-GCXOD4LK.js → de-CH-QSJHIHEN.js} +1 -98
- package/dist/dev/locales/de-CH-QSJHIHEN.js.map +7 -0
- package/dist/dev/locales/{de-DE-CGDBECYD.js → de-DE-2WQ5IRPT.js} +1 -98
- package/dist/dev/locales/de-DE-2WQ5IRPT.js.map +7 -0
- package/dist/dev/locales/{el-GR-G5QZC24A.js → el-GR-N7JWYMV5.js} +1 -98
- package/dist/dev/locales/el-GR-N7JWYMV5.js.map +7 -0
- package/dist/dev/locales/{en-YKPA7MQG.js → en-RQFAMS2U.js} +2 -12
- package/dist/dev/locales/{es-ES-UMEOH76W.js → es-ES-37LJTLHM.js} +1 -98
- package/dist/dev/locales/es-ES-37LJTLHM.js.map +7 -0
- package/dist/dev/locales/{eu-ES-IWRZXJC5.js → eu-ES-2IFCUP7K.js} +1 -98
- package/dist/dev/locales/eu-ES-2IFCUP7K.js.map +7 -0
- package/dist/dev/locales/{fa-IR-QOYVIIJA.js → fa-IR-VDT7BNM4.js} +1 -98
- package/dist/dev/locales/fa-IR-VDT7BNM4.js.map +7 -0
- package/dist/dev/locales/{fi-FI-BXRW65OA.js → fi-FI-HLYF5ISJ.js} +1 -98
- package/dist/dev/locales/fi-FI-HLYF5ISJ.js.map +7 -0
- package/dist/dev/locales/{fr-FR-R2QH5VCW.js → fr-FR-5YNPDFPF.js} +1 -98
- package/dist/dev/locales/fr-FR-5YNPDFPF.js.map +7 -0
- package/dist/dev/locales/{gl-ES-4ES3ZADP.js → gl-ES-S56CRRSA.js} +1 -98
- package/dist/dev/locales/gl-ES-S56CRRSA.js.map +7 -0
- package/dist/dev/locales/{he-IL-TRQRRYPH.js → he-IL-7GR3BHPZ.js} +1 -98
- package/dist/dev/locales/he-IL-7GR3BHPZ.js.map +7 -0
- package/dist/dev/locales/{hi-IN-U46BOJEC.js → hi-IN-AQ7X42V5.js} +1 -98
- package/dist/dev/locales/hi-IN-AQ7X42V5.js.map +7 -0
- package/dist/dev/locales/{hu-HU-JDULJ6XL.js → hu-HU-4HM3N3P3.js} +1 -98
- package/dist/dev/locales/hu-HU-4HM3N3P3.js.map +7 -0
- package/dist/dev/locales/{id-ID-BLIXNCUT.js → id-ID-P7V2I35Q.js} +1 -98
- package/dist/dev/locales/id-ID-P7V2I35Q.js.map +7 -0
- package/dist/dev/locales/{it-IT-6TBW7RUK.js → it-IT-HUGIPGTB.js} +1 -98
- package/dist/dev/locales/it-IT-HUGIPGTB.js.map +7 -0
- package/dist/dev/locales/{ja-JP-6HYAQFYX.js → ja-JP-XFX5V5ZL.js} +1 -98
- package/dist/dev/locales/ja-JP-XFX5V5ZL.js.map +7 -0
- package/dist/dev/locales/{kaa-Z5UP62XJ.js → kaa-X53Z7Q4I.js} +1 -98
- package/dist/dev/locales/kaa-X53Z7Q4I.js.map +7 -0
- package/dist/dev/locales/{kab-KAB-Z7STWQKS.js → kab-KAB-GGKAECT5.js} +1 -98
- package/dist/dev/locales/kab-KAB-GGKAECT5.js.map +7 -0
- package/dist/dev/locales/{kk-KZ-BWHY45DX.js → kk-KZ-Z6R3NY65.js} +1 -98
- package/dist/dev/locales/kk-KZ-Z6R3NY65.js.map +7 -0
- package/dist/dev/locales/{km-KH-HGLNWNRU.js → km-KH-DGK3UTBI.js} +1 -98
- package/dist/dev/locales/km-KH-DGK3UTBI.js.map +7 -0
- package/dist/dev/locales/{ko-KR-CO36WKPC.js → ko-KR-W7QZK3EC.js} +1 -98
- package/dist/dev/locales/ko-KR-W7QZK3EC.js.map +7 -0
- package/dist/dev/locales/{ku-TR-AACVIARC.js → ku-TR-3UJE7FNE.js} +1 -98
- package/dist/dev/locales/ku-TR-3UJE7FNE.js.map +7 -0
- package/dist/dev/locales/{lt-LT-CFYYFLDV.js → lt-LT-OTNQMXF6.js} +1 -98
- package/dist/dev/locales/lt-LT-OTNQMXF6.js.map +7 -0
- package/dist/dev/locales/{lv-LV-QCBBOFFU.js → lv-LV-Y44YX4AK.js} +1 -98
- package/dist/dev/locales/lv-LV-Y44YX4AK.js.map +7 -0
- package/dist/dev/locales/{mr-IN-B2CM5GK5.js → mr-IN-MT2HYNUI.js} +1 -98
- package/dist/dev/locales/mr-IN-MT2HYNUI.js.map +7 -0
- package/dist/dev/locales/{my-MM-756BNN36.js → my-MM-ZBRKQSW3.js} +1 -98
- package/dist/dev/locales/my-MM-ZBRKQSW3.js.map +7 -0
- package/dist/dev/locales/{nb-NO-5BLHQI4J.js → nb-NO-ZY7DB7O2.js} +1 -98
- package/dist/dev/locales/nb-NO-ZY7DB7O2.js.map +7 -0
- package/dist/dev/locales/{nl-NL-225BLGAH.js → nl-NL-YLVMYG2H.js} +1 -98
- package/dist/dev/locales/nl-NL-YLVMYG2H.js.map +7 -0
- package/dist/dev/locales/{nn-NO-4J7MR6GH.js → nn-NO-4SXLBTTQ.js} +1 -98
- package/dist/dev/locales/nn-NO-4SXLBTTQ.js.map +7 -0
- package/dist/dev/locales/{oc-FR-XCETH7KF.js → oc-FR-NMOJCLB4.js} +1 -98
- package/dist/dev/locales/oc-FR-NMOJCLB4.js.map +7 -0
- package/dist/dev/locales/{pa-IN-32NBAN5L.js → pa-IN-G5T3AUSW.js} +1 -98
- package/dist/dev/locales/pa-IN-G5T3AUSW.js.map +7 -0
- package/dist/dev/locales/{pl-PL-R6OJ54BT.js → pl-PL-TXUESISZ.js} +1 -98
- package/dist/dev/locales/pl-PL-TXUESISZ.js.map +7 -0
- package/dist/dev/locales/{pt-BR-7AFGAKGR.js → pt-BR-KEMR6KPT.js} +1 -98
- package/dist/dev/locales/pt-BR-KEMR6KPT.js.map +7 -0
- package/dist/dev/locales/{pt-PT-S6BMW6MY.js → pt-PT-ZCG2G3PR.js} +1 -98
- package/dist/dev/locales/pt-PT-ZCG2G3PR.js.map +7 -0
- package/dist/dev/locales/{ro-RO-4JVGQHS2.js → ro-RO-MDAUF4EM.js} +1 -98
- package/dist/dev/locales/ro-RO-MDAUF4EM.js.map +7 -0
- package/dist/dev/locales/{ru-RU-IESI752T.js → ru-RU-ZIRVCAVQ.js} +1 -98
- package/dist/dev/locales/ru-RU-ZIRVCAVQ.js.map +7 -0
- package/dist/dev/locales/{si-LK-H75E7PKD.js → si-LK-FPEI3WT5.js} +1 -98
- package/dist/dev/locales/si-LK-FPEI3WT5.js.map +7 -0
- package/dist/dev/locales/{sk-SK-EUK2NR2F.js → sk-SK-TZJ3W5LE.js} +1 -98
- package/dist/dev/locales/sk-SK-TZJ3W5LE.js.map +7 -0
- package/dist/dev/locales/{sl-SI-AKW7R5PW.js → sl-SI-KIJ3UR57.js} +1 -98
- package/dist/dev/locales/sl-SI-KIJ3UR57.js.map +7 -0
- package/dist/dev/locales/{sv-SE-QIBOOXLJ.js → sv-SE-WX2A2Y2N.js} +1 -98
- package/dist/dev/locales/sv-SE-WX2A2Y2N.js.map +7 -0
- package/dist/dev/locales/{ta-IN-LBK2NQ5K.js → ta-IN-ECFHL2WQ.js} +1 -98
- package/dist/dev/locales/ta-IN-ECFHL2WQ.js.map +7 -0
- package/dist/dev/locales/{th-TH-YJ2E6GVT.js → th-TH-XIGNEM6A.js} +1 -98
- package/dist/dev/locales/th-TH-XIGNEM6A.js.map +7 -0
- package/dist/dev/locales/{tr-TR-Y5GO2XJW.js → tr-TR-RCLDMBSM.js} +1 -98
- package/dist/dev/locales/tr-TR-RCLDMBSM.js.map +7 -0
- package/dist/dev/locales/{uk-UA-XYAFHHJW.js → uk-UA-2ADII6GR.js} +1 -98
- package/dist/dev/locales/uk-UA-2ADII6GR.js.map +7 -0
- package/dist/dev/locales/{uz-UZ-LF3CBRYE.js → uz-UZ-COGLAKY3.js} +1 -98
- package/dist/dev/locales/uz-UZ-COGLAKY3.js.map +7 -0
- package/dist/dev/locales/{vi-VN-WDPZEUOJ.js → vi-VN-QBW5T274.js} +1 -98
- package/dist/dev/locales/vi-VN-QBW5T274.js.map +7 -0
- package/dist/dev/locales/{zh-CN-SZ37453H.js → zh-CN-WONZCIPT.js} +1 -98
- package/dist/dev/locales/zh-CN-WONZCIPT.js.map +7 -0
- package/dist/dev/locales/{zh-HK-QDQ5QNBC.js → zh-HK-AJ2UN7VN.js} +1 -98
- package/dist/dev/locales/zh-HK-AJ2UN7VN.js.map +7 -0
- package/dist/dev/locales/{zh-TW-CYU6GFBV.js → zh-TW-O73UCU5T.js} +1 -98
- package/dist/dev/locales/zh-TW-O73UCU5T.js.map +7 -0
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/chunk-5JM5RIGS.js +4 -0
- package/dist/prod/{chunk-YUBA7MSK.js → chunk-KVNPEVSY.js} +1 -1
- package/dist/prod/chunk-VHQT4IVX.js +12 -0
- package/dist/prod/data/image-HP6HSTQ2.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +24 -24
- package/dist/prod/locales/ar-SA-3G7FTBZJ.js +8 -0
- package/dist/prod/locales/az-AZ-HMFZUPFL.js +1 -0
- package/dist/prod/locales/bg-BG-Y7OZ2DXF.js +5 -0
- package/dist/prod/locales/bn-BD-36TGMEAF.js +3 -0
- package/dist/prod/locales/bn-IN-FALW4RB5.js +3 -0
- package/dist/prod/locales/ca-ES-MJRJ6GTN.js +8 -0
- package/dist/prod/locales/cs-CZ-52YM52ZO.js +7 -0
- package/dist/prod/locales/da-DK-QEP42HP6.js +2 -0
- package/dist/prod/locales/de-CH-LGHSGO4X.js +7 -0
- package/dist/prod/locales/de-DE-GHNPPGTN.js +7 -0
- package/dist/prod/locales/el-GR-2UZLGABX.js +7 -0
- package/dist/prod/locales/en-6UCVDQQ7.js +1 -0
- package/dist/prod/locales/es-ES-2NUH2FTW.js +7 -0
- package/dist/prod/locales/eu-ES-LW4CGHUU.js +7 -0
- package/dist/prod/locales/fa-IR-U32PFECK.js +9 -0
- package/dist/prod/locales/fi-FI-G7756HAK.js +6 -0
- package/dist/prod/locales/fr-FR-VIEH4DTC.js +12 -0
- package/dist/prod/locales/gl-ES-JWQDRMPC.js +6 -0
- package/dist/prod/locales/he-IL-YYBNMYP4.js +8 -0
- package/dist/prod/locales/hi-IN-4J4RW5AN.js +3 -0
- package/dist/prod/locales/hu-HU-MBXXMHSF.js +3 -0
- package/dist/prod/locales/id-ID-5U764SVL.js +8 -0
- package/dist/prod/locales/it-IT-7BNDK63V.js +12 -0
- package/dist/prod/locales/ja-JP-4SLEHWLA.js +7 -0
- package/dist/prod/locales/kaa-YHCGFUY5.js +1 -0
- package/dist/prod/locales/kab-KAB-LSGAIMUB.js +4 -0
- package/dist/prod/locales/kk-KZ-3YNSB7GZ.js +1 -0
- package/dist/prod/locales/km-KH-7GXC5R4I.js +7 -0
- package/dist/prod/locales/ko-KR-B6Q6YTFE.js +5 -0
- package/dist/prod/locales/ku-TR-FBC7A657.js +6 -0
- package/dist/prod/locales/lt-LT-NTZ3RRBU.js +3 -0
- package/dist/prod/locales/lv-LV-G24LH3KG.js +4 -0
- package/dist/prod/locales/mr-IN-FMZEIYNW.js +9 -0
- package/dist/prod/locales/my-MM-B6EJQIQF.js +1 -0
- package/dist/prod/locales/nb-NO-GEP6ZOEM.js +8 -0
- package/dist/prod/locales/nl-NL-4QUIWSVP.js +13 -0
- package/dist/prod/locales/nn-NO-P32L2VHA.js +4 -0
- package/dist/prod/locales/oc-FR-QRACY6JR.js +4 -0
- package/dist/prod/locales/pa-IN-GBDTCDVG.js +4 -0
- package/dist/prod/locales/pl-PL-2Y6CXCHK.js +12 -0
- package/dist/prod/locales/pt-BR-FKWT7UFL.js +6 -0
- package/dist/prod/locales/pt-PT-6EMD7SCZ.js +8 -0
- package/dist/prod/locales/ro-RO-XERO3Y25.js +12 -0
- package/dist/prod/locales/ru-RU-XKTTT4QL.js +10 -0
- package/dist/prod/locales/si-LK-MGLC5APF.js +1 -0
- package/dist/prod/locales/sk-SK-BMCDJLZC.js +7 -0
- package/dist/prod/locales/sl-SI-LAWKY4LU.js +6 -0
- package/dist/prod/locales/sv-SE-X2ORO3SG.js +8 -0
- package/dist/prod/locales/ta-IN-RZDP4ZDC.js +6 -0
- package/dist/prod/locales/th-TH-GY4Y5ENV.js +1 -0
- package/dist/prod/locales/tr-TR-CT4QTEX3.js +4 -0
- package/dist/prod/locales/uk-UA-XEPSQF3S.js +6 -0
- package/dist/prod/locales/uz-UZ-WM3HHDOU.js +1 -0
- package/dist/prod/locales/vi-VN-RFG3SAMP.js +7 -0
- package/dist/prod/locales/zh-CN-2WGTQQH5.js +11 -0
- package/dist/prod/locales/zh-HK-J64WV2A2.js +1 -0
- package/dist/prod/locales/zh-TW-4JITCNYX.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/constants.d.ts +2 -16
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +0 -22
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +0 -6
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionFrame.d.ts +0 -8
- package/dist/types/excalidraw/actions/actionGroup.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionLink.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +0 -4
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionStyles.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +0 -2
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +0 -2
- package/dist/types/excalidraw/actions/index.d.ts +0 -1
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +2 -2
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/components/App.d.ts +3 -7
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +3 -1
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/icons.d.ts +0 -1
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +0 -6
- package/dist/types/excalidraw/data/blob.d.ts +3 -184
- package/dist/types/excalidraw/data/json.d.ts +2 -7
- package/dist/types/excalidraw/data/restore.d.ts +1 -2
- package/dist/types/excalidraw/data/types.d.ts +1 -16
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/index.d.ts +3 -6
- package/dist/types/excalidraw/{laser-trails.d.ts → laserTrails.d.ts} +5 -7
- package/dist/types/excalidraw/lasso/index.d.ts +2 -3
- package/dist/types/excalidraw/renderer/animation.d.ts +4 -1
- package/dist/types/excalidraw/types.d.ts +12 -30
- package/dist/types/math/src/point.d.ts +1 -0
- package/package.json +4 -5
- package/dist/dev/chunk-EFGBMKJZ.js.map +0 -7
- package/dist/dev/chunk-XO7KL57K.js.map +0 -7
- package/dist/dev/locales/ar-SA-U3PIVEZH.js.map +0 -7
- package/dist/dev/locales/az-AZ-COAM4HVM.js.map +0 -7
- package/dist/dev/locales/bg-BG-D6B2W7JL.js.map +0 -7
- package/dist/dev/locales/bn-BD-BU7GZAZW.js.map +0 -7
- package/dist/dev/locales/bn-IN-MYKDEVNA.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-SC7IWESZ.js +0 -12
- package/dist/prod/chunk-SGSDFYY3.js +0 -4
- package/dist/prod/data/image-N3RCNYSN.js +0 -1
- package/dist/prod/locales/ar-SA-TS6M4GHP.js +0 -8
- package/dist/prod/locales/az-AZ-HJWG4CPD.js +0 -1
- package/dist/prod/locales/bg-BG-K42QREUV.js +0 -5
- package/dist/prod/locales/bn-BD-IFEECH4W.js +0 -3
- package/dist/prod/locales/bn-IN-OE7SKNFR.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-NJXWY54O.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/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/actionAddToLibrary.d.ts +0 -512
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +0 -19
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +0 -2
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +0 -24
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +0 -10
- package/dist/types/excalidraw/components/LibraryMenuBrowseButton.d.ts +0 -7
- package/dist/types/excalidraw/components/LibraryMenuControlButtons.d.ts +0 -9
- package/dist/types/excalidraw/components/LibraryMenuHeaderContent.d.ts +0 -17
- package/dist/types/excalidraw/components/LibraryMenuItems.d.ts +0 -14
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +0 -23
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +0 -14
- package/dist/types/excalidraw/components/PublishLibrary.d.ts +0 -17
- package/dist/types/excalidraw/data/library.d.ts +0 -127
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +0 -11
- /package/dist/dev/{chunk-ETVKWGYA.js.map → chunk-QHLG4OQL.js.map} +0 -0
- /package/dist/dev/data/{image-24SF3JAY.js.map → image-R7FQP7SA.js.map} +0 -0
- /package/dist/dev/locales/{en-YKPA7MQG.js.map → en-RQFAMS2U.js.map} +0 -0
|
@@ -103,8 +103,6 @@ export declare const actionSelectAllElementsInFrame: {
|
|
|
103
103
|
} | null;
|
|
104
104
|
openDialog: null | {
|
|
105
105
|
name: "imageExport" | "help" | "jsonExport";
|
|
106
|
-
} | {
|
|
107
|
-
name: "commandPalette";
|
|
108
106
|
} | {
|
|
109
107
|
name: "settings";
|
|
110
108
|
} | {
|
|
@@ -287,8 +285,6 @@ export declare const actionRemoveAllElementsFromFrame: {
|
|
|
287
285
|
} | null;
|
|
288
286
|
openDialog: null | {
|
|
289
287
|
name: "imageExport" | "help" | "jsonExport";
|
|
290
|
-
} | {
|
|
291
|
-
name: "commandPalette";
|
|
292
288
|
} | {
|
|
293
289
|
name: "settings";
|
|
294
290
|
} | {
|
|
@@ -469,8 +465,6 @@ export declare const actionupdateFrameRendering: {
|
|
|
469
465
|
} | null;
|
|
470
466
|
openDialog: null | {
|
|
471
467
|
name: "imageExport" | "help" | "jsonExport";
|
|
472
|
-
} | {
|
|
473
|
-
name: "commandPalette";
|
|
474
468
|
} | {
|
|
475
469
|
name: "settings";
|
|
476
470
|
} | {
|
|
@@ -651,8 +645,6 @@ export declare const actionSetFrameAsActiveTool: {
|
|
|
651
645
|
} | null;
|
|
652
646
|
openDialog: null | {
|
|
653
647
|
name: "imageExport" | "help" | "jsonExport";
|
|
654
|
-
} | {
|
|
655
|
-
name: "commandPalette";
|
|
656
648
|
} | {
|
|
657
649
|
name: "settings";
|
|
658
650
|
} | {
|
|
@@ -109,8 +109,6 @@ export declare const actionGroup: {
|
|
|
109
109
|
} | null;
|
|
110
110
|
openDialog: null | {
|
|
111
111
|
name: "imageExport" | "help" | "jsonExport";
|
|
112
|
-
} | {
|
|
113
|
-
name: "commandPalette";
|
|
114
112
|
} | {
|
|
115
113
|
name: "settings";
|
|
116
114
|
} | {
|
|
@@ -292,8 +290,6 @@ export declare const actionUngroup: {
|
|
|
292
290
|
} | null;
|
|
293
291
|
openDialog: null | {
|
|
294
292
|
name: "imageExport" | "help" | "jsonExport";
|
|
295
|
-
} | {
|
|
296
|
-
name: "commandPalette";
|
|
297
293
|
} | {
|
|
298
294
|
name: "settings";
|
|
299
295
|
} | {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ExcalidrawLinearElement } from "@excalidraw/element/types";
|
|
2
2
|
export declare const actionToggleLinearEditor: {
|
|
3
3
|
name: "toggleLinearEditor";
|
|
4
|
-
category: string;
|
|
5
4
|
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.lineEditor.editArrow" | "labels.lineEditor.edit";
|
|
6
5
|
keywords: string[];
|
|
7
6
|
trackEvent: {
|
|
@@ -136,8 +135,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
136
135
|
} | null;
|
|
137
136
|
openDialog: null | {
|
|
138
137
|
name: "imageExport" | "help" | "jsonExport";
|
|
139
|
-
} | {
|
|
140
|
-
name: "commandPalette";
|
|
141
138
|
} | {
|
|
142
139
|
name: "settings";
|
|
143
140
|
} | {
|
|
@@ -215,7 +212,6 @@ export declare const actionToggleLinearEditor: {
|
|
|
215
212
|
};
|
|
216
213
|
export declare const actionTogglePolygon: {
|
|
217
214
|
name: "togglePolygon";
|
|
218
|
-
category: string;
|
|
219
215
|
icon: import("react/jsx-runtime").JSX.Element;
|
|
220
216
|
keywords: string[];
|
|
221
217
|
label: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: Readonly<import("../types").AppState>, app: import("../types").AppClassProperties) => "labels.polygon.breakPolygon" | "labels.polygon.convertToPolygon";
|
|
@@ -128,8 +128,6 @@ export declare const actionDecreaseFontSize: {
|
|
|
128
128
|
} | null;
|
|
129
129
|
openDialog: null | {
|
|
130
130
|
name: "imageExport" | "help" | "jsonExport";
|
|
131
|
-
} | {
|
|
132
|
-
name: "commandPalette";
|
|
133
131
|
} | {
|
|
134
132
|
name: "settings";
|
|
135
133
|
} | {
|
|
@@ -307,8 +305,6 @@ export declare const actionIncreaseFontSize: {
|
|
|
307
305
|
} | null;
|
|
308
306
|
openDialog: null | {
|
|
309
307
|
name: "imageExport" | "help" | "jsonExport";
|
|
310
|
-
} | {
|
|
311
|
-
name: "commandPalette";
|
|
312
308
|
} | {
|
|
313
309
|
name: "settings";
|
|
314
310
|
} | {
|
|
@@ -12,7 +12,6 @@ export { actionCopyStyles, actionPasteStyles } from "./actionStyles";
|
|
|
12
12
|
export { actionShortcuts } from "./actionMenu";
|
|
13
13
|
export { actionGroup, actionUngroup } from "./actionGroup";
|
|
14
14
|
export { actionGoToCollaborator } from "./actionNavigate";
|
|
15
|
-
export { actionAddToLibrary } from "./actionAddToLibrary";
|
|
16
15
|
export { actionAlignTop, actionAlignBottom, actionAlignLeft, actionAlignRight, actionAlignVerticallyCentered, actionAlignHorizontallyCentered, } from "./actionAlign";
|
|
17
16
|
export { distributeHorizontally, distributeVertically, } from "./actionDistribute";
|
|
18
17
|
export { actionArrangeElements } from "./actionArrange";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { SubtypeOf } from "@excalidraw/common/utility-types";
|
|
2
2
|
import type { ActionName } from "./types";
|
|
3
|
-
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "
|
|
3
|
+
export type ShortcutName = SubtypeOf<ActionName, "toggleTheme" | "loadScene" | "cut" | "copy" | "paste" | "copyStyles" | "pasteStyles" | "selectAll" | "deleteSelectedElements" | "duplicateSelection" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyAsPng" | "group" | "ungroup" | "gridMode" | "zenMode" | "objectsSnapMode" | "stats" | "viewMode" | "flipHorizontal" | "flipVertical" | "hyperlink" | "toggleElementLock" | "resetZoom" | "zoomOut" | "zoomIn" | "zoomToFit" | "zoomToFitSelectionInViewport" | "zoomToFitSelection" | "toggleEraserTool" | "toggleHandTool" | "setFrameAsActiveTool" | "saveFileToDisk" | "saveToActiveFile" | "toggleShortcuts" | "wrapSelectionInFrame" | "arrangeElements"> | "saveScene" | "imageExport" | "searchMenu" | "toolLock";
|
|
4
4
|
export declare const getShortcutFromShortcutName: (name: ShortcutName, idx?: number) => string;
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawElement, OrderedExcalidrawElement } from "@excalidraw/el
|
|
|
2
2
|
import type { CaptureUpdateActionType } from "@excalidraw/element";
|
|
3
3
|
import type { AppClassProperties, AppState, ExcalidrawProps, BinaryFiles, UIAppState } from "../types";
|
|
4
4
|
import type React from "react";
|
|
5
|
-
export type ActionSource = "ui" | "keyboard" | "contextMenu" | "api"
|
|
5
|
+
export type ActionSource = "ui" | "keyboard" | "contextMenu" | "api";
|
|
6
6
|
/** if false, the action should be prevented */
|
|
7
7
|
export type ActionResult = {
|
|
8
8
|
elements?: readonly ExcalidrawElement[] | null;
|
|
@@ -14,7 +14,7 @@ export type ActionResult = {
|
|
|
14
14
|
type ActionFn<TData = any> = (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: TData | undefined, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
|
|
15
15
|
export type UpdaterFn = (res: ActionResult) => void;
|
|
16
16
|
export type ActionFilterFn = (action: Action) => void;
|
|
17
|
-
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "arrowBinding" | "midpointSnapping" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeArrowProperties" | "changeOpacity" | "changeFontSize" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "
|
|
17
|
+
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "zenMode" | "objectsSnapMode" | "arrowBinding" | "midpointSnapping" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeStrokeShape" | "changeSloppiness" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeArrowProperties" | "changeOpacity" | "changeFontSize" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "arrangeElements" | "normaliseElements" | "flipHorizontal" | "flipVertical" | "deselect" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "toggleEraserTool" | "toggleHandTool" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "setFrameAsActiveTool" | "setEmbeddableAsActiveTool" | "createContainerFromText" | "wrapTextInContainer" | "autoResize" | "elementStats" | "searchMenu" | "copyElementLink" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "smartZoom" | "toggleLassoTool" | "toggleShapeSwitch" | "togglePolygon";
|
|
18
18
|
export type PanelComponentProps = {
|
|
19
19
|
elements: readonly ExcalidrawElement[];
|
|
20
20
|
appState: AppState;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LaserPointer } from "@excalidraw/laser-pointer";
|
|
2
2
|
import type { LaserPointerOptions } from "@excalidraw/laser-pointer";
|
|
3
|
-
import type { AnimationFrameHandler } from "./animation-frame-handler";
|
|
4
3
|
import type App from "./components/App";
|
|
5
4
|
export interface Trail {
|
|
6
5
|
start(container: SVGSVGElement): void;
|
|
@@ -15,7 +14,6 @@ export interface AnimatedTrailOptions {
|
|
|
15
14
|
animateTrail?: boolean;
|
|
16
15
|
}
|
|
17
16
|
export declare class AnimatedTrail implements Trail {
|
|
18
|
-
private animationFrameHandler;
|
|
19
17
|
protected app: App;
|
|
20
18
|
private options;
|
|
21
19
|
private currentTrail?;
|
|
@@ -23,9 +21,12 @@ export declare class AnimatedTrail implements Trail {
|
|
|
23
21
|
private container?;
|
|
24
22
|
private trailElement;
|
|
25
23
|
private trailAnimation?;
|
|
26
|
-
|
|
24
|
+
private key;
|
|
25
|
+
private static counter;
|
|
26
|
+
constructor(app: App, options: Partial<LaserPointerOptions> & Partial<AnimatedTrailOptions>);
|
|
27
27
|
get hasCurrentTrail(): boolean;
|
|
28
28
|
hasLastPoint(x: number, y: number): boolean;
|
|
29
|
+
private cleanup;
|
|
29
30
|
start(container?: SVGSVGElement): void;
|
|
30
31
|
stop(): void;
|
|
31
32
|
startPath(x: number, y: number): void;
|
|
@@ -5,18 +5,17 @@ import { LinearElementEditor } from "@excalidraw/element/linearElementEditor";
|
|
|
5
5
|
import type { ExcalidrawElement, NonDeleted, NonDeletedExcalidrawElement, ExcalidrawFrameLikeElement, ExcalidrawIframeElement, ExcalidrawEmbeddableElement, Ordered, SceneElementsMap } from "@excalidraw/element/types";
|
|
6
6
|
import type { Mutable } from "@excalidraw/common/utility-types";
|
|
7
7
|
import { ActionManager } from "../actions/manager";
|
|
8
|
-
import { AnimationFrameHandler } from "../animation-frame-handler";
|
|
9
8
|
import { History } from "../history";
|
|
10
9
|
import { Fonts } from "../fonts";
|
|
11
10
|
import { type WritableAtom } from "../editor-jotai";
|
|
12
11
|
import { Renderer } from "../scene/Renderer";
|
|
13
|
-
import { LaserTrails } from "../
|
|
12
|
+
import { LaserTrails } from "../laserTrails";
|
|
14
13
|
import { isOverScrollBars } from "../scene/scrollbars";
|
|
15
14
|
import { LassoTrail } from "../lasso";
|
|
16
15
|
import { EraserTrail } from "../eraser";
|
|
17
16
|
import { type OnStateChange } from "./AppStateObserver";
|
|
18
17
|
import type { ExportedElements } from "../data";
|
|
19
|
-
import type { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles,
|
|
18
|
+
import type { AppClassProperties, AppProps, AppState, ExcalidrawImperativeAPI, BinaryFiles, SceneData, FrameNameBoundsCache, SidebarName, SidebarTabName, ToolType, OnUserFollowedPayload, ExcalidrawImperativeAPIEventMap, GenerateDiagramToCode, NullableGridSize, Offsets } from "../types";
|
|
20
19
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
21
20
|
import type { ActionResult } from "../actions/types";
|
|
22
21
|
declare const editorLifecycleEventBehavior: {
|
|
@@ -80,8 +79,6 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
80
79
|
renderer: Renderer;
|
|
81
80
|
visibleElements: readonly NonDeletedExcalidrawElement[];
|
|
82
81
|
private resizeObserver;
|
|
83
|
-
library: AppClassProperties["library"];
|
|
84
|
-
libraryItemsFromStorage: LibraryItems | undefined;
|
|
85
82
|
id: string;
|
|
86
83
|
private store;
|
|
87
84
|
private history;
|
|
@@ -131,7 +128,6 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
131
128
|
x: number;
|
|
132
129
|
y: number;
|
|
133
130
|
};
|
|
134
|
-
animationFrameHandler: AnimationFrameHandler;
|
|
135
131
|
laserTrails: LaserTrails;
|
|
136
132
|
eraserTrail: EraserTrail;
|
|
137
133
|
lassoTrail: LassoTrail;
|
|
@@ -354,7 +350,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
354
350
|
private onTouchEnd;
|
|
355
351
|
private insertClipboardContent;
|
|
356
352
|
pasteFromClipboard: (event: ClipboardEvent) => Promise<void>;
|
|
357
|
-
|
|
353
|
+
addElementsFromPaste: (opts: {
|
|
358
354
|
elements: readonly ExcalidrawElement[];
|
|
359
355
|
files: BinaryFiles | null;
|
|
360
356
|
position: {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import "./ToolIcon.scss";
|
|
2
2
|
import "./MobileToolBar.scss";
|
|
3
|
+
import type { ActionManager } from "../actions/manager";
|
|
3
4
|
import type { AppClassProperties, UIAppState } from "../types";
|
|
4
5
|
type MobileToolBarProps = {
|
|
5
6
|
app: AppClassProperties;
|
|
7
|
+
actionManager: ActionManager;
|
|
6
8
|
onHandToolToggle: () => void;
|
|
7
9
|
setAppState: React.Component<any, UIAppState>["setState"];
|
|
8
10
|
};
|
|
9
|
-
export declare const MobileToolBar: ({ app, onHandToolToggle, setAppState, }: MobileToolBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const MobileToolBar: ({ app, actionManager, onHandToolToggle, setAppState, }: MobileToolBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -8,7 +8,6 @@ type Opts = {
|
|
|
8
8
|
} & React.SVGProps<SVGSVGElement>;
|
|
9
9
|
export declare const createIcon: (d: string | React.ReactNode, opts?: number | Opts) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare const PlusPromoIcon: import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const LibraryIcon: import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export declare const PlusIcon: import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
export declare const DotsIcon: import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export declare const DotsHorizontalIcon: import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,12 +12,6 @@ export declare const SaveAsImage: {
|
|
|
12
12
|
(): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
displayName: string;
|
|
14
14
|
};
|
|
15
|
-
export declare const CommandPalette: {
|
|
16
|
-
(opts?: {
|
|
17
|
-
className?: string;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
15
|
export declare const SearchMenu: {
|
|
22
16
|
(opts?: {
|
|
23
17
|
className?: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { IMAGE_MIME_TYPES, MIME_TYPES } from "@excalidraw/common";
|
|
2
2
|
import type { ValueOf } from "@excalidraw/common/utility-types";
|
|
3
3
|
import type { ExcalidrawElement, FileId } from "@excalidraw/element/types";
|
|
4
|
-
import type { AppState, CompressImageFile, DataURL
|
|
5
|
-
import type { ImportedLibraryData } from "./types";
|
|
4
|
+
import type { AppState, CompressImageFile, DataURL } from "../types";
|
|
6
5
|
export declare const getMimeType: (blob: Blob | string) => string;
|
|
7
6
|
export declare const getFileHandleType: (handle: FileSystemFileHandle | null) => string | null;
|
|
8
7
|
export declare const isImageFileHandleType: (type: string | null) => type is "png" | "svg";
|
|
@@ -11,183 +10,7 @@ export declare const isSupportedImageFileType: (type: string | null | undefined)
|
|
|
11
10
|
export declare const isSupportedImageFile: (blob: Blob | null | undefined) => blob is Blob & {
|
|
12
11
|
type: ValueOf<typeof IMAGE_MIME_TYPES>;
|
|
13
12
|
};
|
|
14
|
-
export declare const
|
|
15
|
-
/** @see restore.localAppState */
|
|
16
|
-
localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | null,
|
|
17
|
-
/** FileSystemFileHandle. Defaults to `blob.handle` if defined, otherwise null. */
|
|
18
|
-
fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
19
|
-
type: "application/vnd.excalidraw+json";
|
|
20
|
-
data: {
|
|
21
|
-
elements: import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
22
|
-
appState: {
|
|
23
|
-
viewBackgroundColor: string;
|
|
24
|
-
theme: import("@excalidraw/element/types").Theme;
|
|
25
|
-
frameRendering: {
|
|
26
|
-
enabled: boolean;
|
|
27
|
-
name: boolean;
|
|
28
|
-
outline: boolean;
|
|
29
|
-
clip: boolean;
|
|
30
|
-
};
|
|
31
|
-
name: string | null;
|
|
32
|
-
zoom: import("../types").Zoom;
|
|
33
|
-
scrollX: number;
|
|
34
|
-
scrollY: number;
|
|
35
|
-
viewModeEnabled: boolean;
|
|
36
|
-
openDialog: null | {
|
|
37
|
-
name: "imageExport" | "help" | "jsonExport";
|
|
38
|
-
} | {
|
|
39
|
-
name: "commandPalette";
|
|
40
|
-
} | {
|
|
41
|
-
name: "settings";
|
|
42
|
-
} | {
|
|
43
|
-
name: "elementLinkSelector";
|
|
44
|
-
sourceElementId: ExcalidrawElement["id"];
|
|
45
|
-
} | {
|
|
46
|
-
name: "charts";
|
|
47
|
-
data: import("../charts").Spreadsheet;
|
|
48
|
-
rawText: string;
|
|
49
|
-
};
|
|
50
|
-
editingGroupId: import("@excalidraw/element/types").GroupId | null;
|
|
51
|
-
selectedElementIds: Readonly<{
|
|
52
|
-
[id: string]: true;
|
|
53
|
-
}>;
|
|
54
|
-
frameToHighlight: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawFrameLikeElement> | null;
|
|
55
|
-
activeTool: {
|
|
56
|
-
lastActiveTool: import("../types").ActiveTool | null;
|
|
57
|
-
locked: boolean;
|
|
58
|
-
fromSelection: boolean;
|
|
59
|
-
} & import("../types").ActiveTool;
|
|
60
|
-
activeEmbeddable: {
|
|
61
|
-
element: import("@excalidraw/element/types").NonDeletedExcalidrawElement;
|
|
62
|
-
state: "hover" | "active";
|
|
63
|
-
} | null;
|
|
64
|
-
selectionElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
65
|
-
selectedGroupIds: {
|
|
66
|
-
[groupId: string]: boolean;
|
|
67
|
-
};
|
|
68
|
-
selectedLinearElement: import("@excalidraw/element").LinearElementEditor | null;
|
|
69
|
-
multiElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawLinearElement> | null;
|
|
70
|
-
newElement: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawNonSelectionElement> | null;
|
|
71
|
-
isBindingEnabled: boolean;
|
|
72
|
-
isMidpointSnappingEnabled: boolean;
|
|
73
|
-
suggestedBinding: {
|
|
74
|
-
element: import("@excalidraw/element/types").NonDeleted<import("@excalidraw/element/types").ExcalidrawBindableElement>;
|
|
75
|
-
midPoint?: import("@excalidraw/math").GlobalPoint;
|
|
76
|
-
} | null;
|
|
77
|
-
isRotating: boolean;
|
|
78
|
-
elementsToHighlight: import("@excalidraw/element/types").NonDeleted<ExcalidrawElement>[] | null;
|
|
79
|
-
collaborators: Map<import("../types").SocketId, import("../types").Collaborator>;
|
|
80
|
-
snapLines: readonly import("../snapping").SnapLine[];
|
|
81
|
-
zenModeEnabled: boolean;
|
|
82
|
-
editingTextElement: import("@excalidraw/element/types").ExcalidrawTextElement | null;
|
|
83
|
-
isCropping: boolean;
|
|
84
|
-
croppingElementId: ExcalidrawElement["id"] | null;
|
|
85
|
-
searchMatches: Readonly<{
|
|
86
|
-
focusedId: ExcalidrawElement["id"] | null;
|
|
87
|
-
matches: readonly import("../types").SearchMatch[];
|
|
88
|
-
}> | null;
|
|
89
|
-
activeLockedId: string | null;
|
|
90
|
-
hoveredElementIds: Readonly<{
|
|
91
|
-
[id: string]: true;
|
|
92
|
-
}>;
|
|
93
|
-
shouldCacheIgnoreZoom: boolean;
|
|
94
|
-
exportScale: number;
|
|
95
|
-
currentItemArrowType: "sharp" | "round" | "elbow";
|
|
96
|
-
bindMode: import("@excalidraw/element/types").BindMode;
|
|
97
|
-
gridSize: number;
|
|
98
|
-
gridModeEnabled: boolean;
|
|
99
|
-
objectsSnapModeEnabled: boolean;
|
|
100
|
-
wheelZoomsOnDefault?: boolean | undefined;
|
|
101
|
-
selectedElementsAreBeingDragged: boolean;
|
|
102
|
-
gridStep: number;
|
|
103
|
-
currentHoveredFontFamily: import("@excalidraw/element/types").FontFamilyValues | null;
|
|
104
|
-
contextMenu: {
|
|
105
|
-
items: import("../components/ContextMenu").ContextMenuItems;
|
|
106
|
-
top: number;
|
|
107
|
-
left: number;
|
|
108
|
-
} | null;
|
|
109
|
-
showWelcomeScreen: boolean;
|
|
110
|
-
isLoading: boolean;
|
|
111
|
-
myocSimplifiedMode: boolean;
|
|
112
|
-
dontResizeLimitMBs: number;
|
|
113
|
-
hideMainMenus: boolean;
|
|
114
|
-
arrangeConfiguration: {
|
|
115
|
-
algorithm: import("@excalidraw/element/types").ArrangeAlgorithms;
|
|
116
|
-
gap: number;
|
|
117
|
-
};
|
|
118
|
-
normaliseConfiguration: {
|
|
119
|
-
mode: import("../types").NormaliseMode;
|
|
120
|
-
metric: import("../types").NormaliseMetric;
|
|
121
|
-
};
|
|
122
|
-
errorMessage: React.ReactNode;
|
|
123
|
-
resizingElement: import("@excalidraw/element/types").NonDeletedExcalidrawElement | null;
|
|
124
|
-
boxSelectionMode: import("../types").BoxSelectionMode;
|
|
125
|
-
bindingPreference: "enabled" | "disabled";
|
|
126
|
-
editingFrame: string | null;
|
|
127
|
-
preferredSelectionTool: {
|
|
128
|
-
type: "selection" | "lasso";
|
|
129
|
-
initialized: boolean;
|
|
130
|
-
};
|
|
131
|
-
penMode: boolean;
|
|
132
|
-
penDetected: boolean;
|
|
133
|
-
exportBackground: boolean;
|
|
134
|
-
exportEmbedScene: boolean;
|
|
135
|
-
exportWithDarkMode: boolean;
|
|
136
|
-
currentItemStrokeColor: string;
|
|
137
|
-
currentItemBackgroundColor: string;
|
|
138
|
-
currentItemFillStyle: ExcalidrawElement["fillStyle"];
|
|
139
|
-
currentItemStrokeWidth: number;
|
|
140
|
-
currentItemStrokeStyle: ExcalidrawElement["strokeStyle"];
|
|
141
|
-
currentItemRoughness: number;
|
|
142
|
-
currentItemOpacity: number;
|
|
143
|
-
currentItemFontFamily: import("@excalidraw/element/types").FontFamilyValues;
|
|
144
|
-
currentItemFontSize: number;
|
|
145
|
-
currentItemTextAlign: import("@excalidraw/element/types").TextAlign;
|
|
146
|
-
currentItemStartArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
147
|
-
currentItemEndArrowhead: import("@excalidraw/element/types").Arrowhead | null;
|
|
148
|
-
currentItemRoundness: import("@excalidraw/element/types").StrokeRoundness;
|
|
149
|
-
cursorButton: "up" | "down";
|
|
150
|
-
scrolledOutside: boolean;
|
|
151
|
-
isResizing: boolean;
|
|
152
|
-
openMenu: "canvas" | null;
|
|
153
|
-
openPopup: "canvasBackground" | "elementBackground" | "elementStroke" | "fontFamily" | "compactTextProperties" | "compactStrokeStyles" | "compactOtherProperties" | "compactArrowProperties" | null;
|
|
154
|
-
openSidebar: {
|
|
155
|
-
name: import("../types").SidebarName;
|
|
156
|
-
tab?: import("../types").SidebarTabName;
|
|
157
|
-
} | null;
|
|
158
|
-
defaultSidebarDockedPreference: boolean;
|
|
159
|
-
lastPointerDownWith: import("@excalidraw/element/types").PointerType;
|
|
160
|
-
previousSelectedElementIds: {
|
|
161
|
-
[id: string]: true;
|
|
162
|
-
};
|
|
163
|
-
toast: {
|
|
164
|
-
message: React.ReactNode;
|
|
165
|
-
closable?: boolean;
|
|
166
|
-
duration?: number;
|
|
167
|
-
} | null;
|
|
168
|
-
fileHandle: FileSystemFileHandle | null;
|
|
169
|
-
stats: {
|
|
170
|
-
open: boolean;
|
|
171
|
-
panels: number;
|
|
172
|
-
};
|
|
173
|
-
showHyperlinkPopup: false | "info" | "editor";
|
|
174
|
-
originSnapOffset: {
|
|
175
|
-
x: number;
|
|
176
|
-
y: number;
|
|
177
|
-
} | null;
|
|
178
|
-
userToFollow: import("../types").UserToFollow | null;
|
|
179
|
-
followedBy: Set<import("../types").SocketId>;
|
|
180
|
-
lockedMultiSelections: {
|
|
181
|
-
[groupId: string]: true;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
files: import("../types").BinaryFiles;
|
|
185
|
-
};
|
|
186
|
-
} | {
|
|
187
|
-
type: "application/vnd.excalidrawlib+json";
|
|
188
|
-
data: ImportedLibraryData;
|
|
189
|
-
}>;
|
|
190
|
-
export declare const loadFromBlob: (blob: Blob,
|
|
13
|
+
export declare const loadFromBlob: (blob: Blob | File,
|
|
191
14
|
/** @see restore.localAppState */
|
|
192
15
|
localAppState: AppState | null, localElements: readonly ExcalidrawElement[] | null,
|
|
193
16
|
/** FileSystemFileHandle. Defaults to `blob.handle` if defined, otherwise null. */
|
|
@@ -209,8 +32,6 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
209
32
|
viewModeEnabled: boolean;
|
|
210
33
|
openDialog: null | {
|
|
211
34
|
name: "imageExport" | "help" | "jsonExport";
|
|
212
|
-
} | {
|
|
213
|
-
name: "commandPalette";
|
|
214
35
|
} | {
|
|
215
36
|
name: "settings";
|
|
216
37
|
} | {
|
|
@@ -357,8 +178,6 @@ fileHandle?: FileSystemFileHandle | null) => Promise<{
|
|
|
357
178
|
};
|
|
358
179
|
files: import("../types").BinaryFiles;
|
|
359
180
|
}>;
|
|
360
|
-
export declare const parseLibraryJSON: (json: string, defaultStatus?: LibraryItem["status"]) => LibraryItem[];
|
|
361
|
-
export declare const loadLibraryFromBlob: (blob: Blob, defaultStatus?: LibraryItem["status"]) => Promise<LibraryItem[]>;
|
|
362
181
|
export declare const canvasToBlob: (canvas: HTMLCanvasElement | Promise<HTMLCanvasElement>) => Promise<Blob>;
|
|
363
182
|
/** generates SHA-1 digest from supplied file (if not supported, falls back
|
|
364
183
|
to a 40-char base64 random id) */
|
|
@@ -377,6 +196,6 @@ export declare const getFileHandle: (event: DragEvent | React.DragEvent | DataTr
|
|
|
377
196
|
export declare const createFile: (blob: File | Blob | ArrayBuffer, mimeType: string, name: string | undefined) => File;
|
|
378
197
|
/** attempts to detect correct mimeType if none is set, or if an image
|
|
379
198
|
* has an incorrect extension.
|
|
380
|
-
* Note: doesn't handle missing .excalidraw
|
|
199
|
+
* Note: doesn't handle missing .excalidraw extension */
|
|
381
200
|
export declare const normalizeFile: (file: File) => Promise<File>;
|
|
382
201
|
export declare const blobToArrayBuffer: (blob: Blob) => Promise<ArrayBuffer>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ExcalidrawElement, NonDeleted } from "@excalidraw/element/types";
|
|
2
2
|
import type { MaybePromise } from "@excalidraw/common/utility-types";
|
|
3
|
-
import type { AppState, BinaryFiles
|
|
4
|
-
import type { ImportedDataState
|
|
3
|
+
import type { AppState, BinaryFiles } from "../types";
|
|
4
|
+
import type { ImportedDataState } from "./types";
|
|
5
5
|
export type JSONExportData = {
|
|
6
6
|
elements: readonly NonDeleted<ExcalidrawElement>[];
|
|
7
7
|
appState: AppState;
|
|
@@ -33,8 +33,6 @@ export declare const loadFromJSON: (localAppState: AppState, localElements: read
|
|
|
33
33
|
viewModeEnabled: boolean;
|
|
34
34
|
openDialog: null | {
|
|
35
35
|
name: "imageExport" | "help" | "jsonExport";
|
|
36
|
-
} | {
|
|
37
|
-
name: "commandPalette";
|
|
38
36
|
} | {
|
|
39
37
|
name: "settings";
|
|
40
38
|
} | {
|
|
@@ -186,6 +184,3 @@ export declare const isValidExcalidrawData: (data?: {
|
|
|
186
184
|
elements?: any;
|
|
187
185
|
appState?: any;
|
|
188
186
|
}) => data is ImportedDataState;
|
|
189
|
-
export declare const isValidLibrary: (json: any) => json is ImportedLibraryData;
|
|
190
|
-
export declare const serializeLibraryAsJSON: (libraryItems: LibraryItems) => string;
|
|
191
|
-
export declare const saveLibraryAsJSON: (libraryItems: LibraryItems) => Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CombineBrandsIfNeeded } from "@excalidraw/common";
|
|
2
2
|
import type { ElementsMap, ElementsMapOrArray, ExcalidrawElement, ExcalidrawSelectionElement, OrderedExcalidrawElement } from "@excalidraw/element/types";
|
|
3
|
-
import type { AppState, BinaryFiles
|
|
3
|
+
import type { AppState, BinaryFiles } from "../types";
|
|
4
4
|
import type { ImportedDataState } from "./types";
|
|
5
5
|
type RestoredAppState = Omit<AppState, "offsetTop" | "offsetLeft" | "width" | "height">;
|
|
6
6
|
export declare const AllowedExcalidrawActiveTools: Record<AppState["activeTool"]["type"], boolean>;
|
|
@@ -37,5 +37,4 @@ existingElements: Readonly<ElementsMapOrArray> | null | undefined, opts?: {
|
|
|
37
37
|
*/
|
|
38
38
|
export declare const bumpElementVersions: <T extends ExcalidrawElement>(targetElements: readonly T[], localElements: Readonly<ElementsMapOrArray> | null | undefined) => T[];
|
|
39
39
|
export declare const restoreAppState: (appState: ImportedDataState["appState"], localAppState: Partial<AppState> | null | undefined) => RestoredAppState;
|
|
40
|
-
export declare const restoreLibraryItems: (libraryItems: ImportedDataState["libraryItems"], defaultStatus: LibraryItem["status"]) => LibraryItem[];
|
|
41
40
|
export {};
|