@excalidraw/excalidraw 0.18.0-rc.1 → 0.18.0-rc.3
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/README.md +14 -26
- package/dist/dev/chunk-CI27YPGF.js +25256 -0
- package/dist/dev/chunk-CI27YPGF.js.map +7 -0
- package/dist/dev/{locales/en.js → chunk-LMHBUWQS.js} +28 -27
- package/dist/dev/{locales/en.js.map → chunk-LMHBUWQS.js.map} +1 -1
- package/dist/dev/chunk-MFAYKRVR.js +66 -0
- package/dist/dev/chunk-MFAYKRVR.js.map +7 -0
- package/dist/dev/chunk-OKSO7T74.js +4132 -0
- package/dist/dev/chunk-OKSO7T74.js.map +7 -0
- package/dist/dev/chunk-TLD3FD3P.js +7 -0
- package/dist/dev/chunk-TLD3FD3P.js.map +7 -0
- package/dist/dev/chunk-XDFCUUT6.js +31 -0
- package/dist/dev/chunk-XDFCUUT6.js.map +7 -0
- package/dist/dev/data/image-TC7JM54G.js +13 -0
- package/dist/dev/data/image-TC7JM54G.js.map +7 -0
- package/dist/dev/index.css +1 -183
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +30798 -58435
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{ar-SA.js → ar-SA-XORAP2EK.js} +3 -1
- package/dist/dev/locales/{ar-SA.js.map → ar-SA-XORAP2EK.js.map} +1 -1
- package/dist/dev/locales/{az-AZ.js → az-AZ-NAUU3Z4Y.js} +3 -1
- package/dist/dev/locales/{az-AZ.js.map → az-AZ-NAUU3Z4Y.js.map} +1 -1
- package/dist/dev/locales/{bg-BG.js → bg-BG-AAABLFCY.js} +3 -1
- package/dist/dev/locales/{bg-BG.js.map → bg-BG-AAABLFCY.js.map} +1 -1
- package/dist/dev/locales/{bn-BD.js → bn-BD-PM4AC5WG.js} +3 -1
- package/dist/dev/locales/{bn-BD.js.map → bn-BD-PM4AC5WG.js.map} +1 -1
- package/dist/dev/locales/{ca-ES.js → ca-ES-YNNMFRQX.js} +3 -1
- package/dist/dev/locales/{ca-ES.js.map → ca-ES-YNNMFRQX.js.map} +1 -1
- package/dist/dev/locales/{cs-CZ.js → cs-CZ-DGZA5IKG.js} +3 -1
- package/dist/dev/locales/{cs-CZ.js.map → cs-CZ-DGZA5IKG.js.map} +1 -1
- package/dist/dev/locales/{da-DK.js → da-DK-N76F4QAJ.js} +3 -1
- package/dist/dev/locales/{da-DK.js.map → da-DK-N76F4QAJ.js.map} +1 -1
- package/dist/dev/locales/{de-DE.js → de-DE-DMRXZ2SZ.js} +3 -1
- package/dist/dev/locales/{de-DE.js.map → de-DE-DMRXZ2SZ.js.map} +1 -1
- package/dist/dev/locales/{el-GR.js → el-GR-HIKPLEXI.js} +3 -1
- package/dist/dev/locales/{el-GR.js.map → el-GR-HIKPLEXI.js.map} +1 -1
- package/dist/dev/locales/en-OZCJJ2HN.js +78 -0
- package/dist/dev/locales/en-OZCJJ2HN.js.map +7 -0
- package/dist/dev/locales/{es-ES.js → es-ES-AQYVXC32.js} +3 -1
- package/dist/dev/locales/{es-ES.js.map → es-ES-AQYVXC32.js.map} +1 -1
- package/dist/dev/locales/{eu-ES.js → eu-ES-3TOEU5DE.js} +3 -1
- package/dist/dev/locales/{eu-ES.js.map → eu-ES-3TOEU5DE.js.map} +1 -1
- package/dist/dev/locales/{fa-IR.js → fa-IR-527GAKUP.js} +3 -1
- package/dist/dev/locales/{fa-IR.js.map → fa-IR-527GAKUP.js.map} +1 -1
- package/dist/dev/locales/{fi-FI.js → fi-FI-M3WLVDFP.js} +3 -1
- package/dist/dev/locales/{fi-FI.js.map → fi-FI-M3WLVDFP.js.map} +1 -1
- package/dist/dev/locales/{fr-FR.js → fr-FR-YE4VDJFI.js} +3 -1
- package/dist/dev/locales/{fr-FR.js.map → fr-FR-YE4VDJFI.js.map} +1 -1
- package/dist/dev/locales/{gl-ES.js → gl-ES-KMXUYGUN.js} +3 -1
- package/dist/dev/locales/{gl-ES.js.map → gl-ES-KMXUYGUN.js.map} +1 -1
- package/dist/dev/locales/{he-IL.js → he-IL-4MU5N22B.js} +3 -1
- package/dist/dev/locales/{he-IL.js.map → he-IL-4MU5N22B.js.map} +1 -1
- package/dist/dev/locales/{hi-IN.js → hi-IN-ZHZNZWFC.js} +3 -1
- package/dist/dev/locales/{hi-IN.js.map → hi-IN-ZHZNZWFC.js.map} +1 -1
- package/dist/dev/locales/{hu-HU.js → hu-HU-VIYZI3X4.js} +3 -1
- package/dist/dev/locales/{hu-HU.js.map → hu-HU-VIYZI3X4.js.map} +1 -1
- package/dist/dev/locales/{id-ID.js → id-ID-22TWZNLA.js} +3 -1
- package/dist/dev/locales/{id-ID.js.map → id-ID-22TWZNLA.js.map} +1 -1
- package/dist/dev/locales/{it-IT.js → it-IT-MDEQ2SG3.js} +3 -1
- package/dist/dev/locales/{it-IT.js.map → it-IT-MDEQ2SG3.js.map} +1 -1
- package/dist/dev/locales/{ja-JP.js → ja-JP-K2DI4W6B.js} +3 -1
- package/dist/dev/locales/{ja-JP.js.map → ja-JP-K2DI4W6B.js.map} +1 -1
- package/dist/dev/locales/{kaa.js → kaa-6BPSNM3R.js} +3 -1
- package/dist/dev/locales/{kaa.js.map → kaa-6BPSNM3R.js.map} +1 -1
- package/dist/dev/locales/{kab-KAB.js → kab-KAB-2S7ZURK7.js} +3 -1
- package/dist/dev/locales/{kab-KAB.js.map → kab-KAB-2S7ZURK7.js.map} +1 -1
- package/dist/dev/locales/{kk-KZ.js → kk-KZ-UJPYGRQQ.js} +3 -1
- package/dist/dev/locales/{kk-KZ.js.map → kk-KZ-UJPYGRQQ.js.map} +1 -1
- package/dist/dev/locales/{km-KH.js → km-KH-M5T5JKUE.js} +3 -1
- package/dist/dev/locales/{km-KH.js.map → km-KH-M5T5JKUE.js.map} +1 -1
- package/dist/dev/locales/{ko-KR.js → ko-KR-RQX37SNF.js} +3 -1
- package/dist/dev/locales/{ko-KR.js.map → ko-KR-RQX37SNF.js.map} +1 -1
- package/dist/dev/locales/{ku-TR.js → ku-TR-5XJDIERL.js} +3 -1
- package/dist/dev/locales/{ku-TR.js.map → ku-TR-5XJDIERL.js.map} +1 -1
- package/dist/dev/locales/{lt-LT.js → lt-LT-MGUBX6CA.js} +3 -1
- package/dist/dev/locales/{lt-LT.js.map → lt-LT-MGUBX6CA.js.map} +1 -1
- package/dist/dev/locales/{lv-LV.js → lv-LV-MD7N5VHD.js} +3 -1
- package/dist/dev/locales/{lv-LV.js.map → lv-LV-MD7N5VHD.js.map} +1 -1
- package/dist/dev/locales/{mr-IN.js → mr-IN-4XWMNGQC.js} +3 -1
- package/dist/dev/locales/{mr-IN.js.map → mr-IN-4XWMNGQC.js.map} +1 -1
- package/dist/dev/locales/{my-MM.js → my-MM-O4Z74GN5.js} +3 -1
- package/dist/dev/locales/{my-MM.js.map → my-MM-O4Z74GN5.js.map} +1 -1
- package/dist/dev/locales/{nb-NO.js → nb-NO-BMB73KRH.js} +3 -1
- package/dist/dev/locales/{nb-NO.js.map → nb-NO-BMB73KRH.js.map} +1 -1
- package/dist/dev/locales/{nl-NL.js → nl-NL-F2257BLQ.js} +3 -1
- package/dist/dev/locales/{nl-NL.js.map → nl-NL-F2257BLQ.js.map} +1 -1
- package/dist/dev/locales/{nn-NO.js → nn-NO-NCORG7TS.js} +3 -1
- package/dist/dev/locales/{nn-NO.js.map → nn-NO-NCORG7TS.js.map} +1 -1
- package/dist/dev/locales/{oc-FR.js → oc-FR-ATFBDMF6.js} +3 -1
- package/dist/dev/locales/{oc-FR.js.map → oc-FR-ATFBDMF6.js.map} +1 -1
- package/dist/dev/locales/{pa-IN.js → pa-IN-D2I375G4.js} +3 -1
- package/dist/dev/locales/{pa-IN.js.map → pa-IN-D2I375G4.js.map} +1 -1
- package/dist/dev/locales/percentages-YKFLWNK2.js +12 -0
- package/dist/dev/locales/percentages-YKFLWNK2.js.map +7 -0
- package/dist/dev/locales/{pl-PL.js → pl-PL-YJHOWAAW.js} +3 -1
- package/dist/dev/locales/{pl-PL.js.map → pl-PL-YJHOWAAW.js.map} +1 -1
- package/dist/dev/locales/{pt-BR.js → pt-BR-APOPYZJ7.js} +3 -1
- package/dist/dev/locales/{pt-BR.js.map → pt-BR-APOPYZJ7.js.map} +1 -1
- package/dist/dev/locales/{pt-PT.js → pt-PT-W56WCN7P.js} +3 -1
- package/dist/dev/locales/{pt-PT.js.map → pt-PT-W56WCN7P.js.map} +1 -1
- package/dist/dev/locales/{ro-RO.js → ro-RO-L575VRQA.js} +3 -1
- package/dist/dev/locales/{ro-RO.js.map → ro-RO-L575VRQA.js.map} +1 -1
- package/dist/dev/locales/{ru-RU.js → ru-RU-BLG6HZG5.js} +3 -1
- package/dist/dev/locales/{ru-RU.js.map → ru-RU-BLG6HZG5.js.map} +1 -1
- package/dist/dev/locales/{si-LK.js → si-LK-KT7GGO6D.js} +3 -1
- package/dist/dev/locales/{si-LK.js.map → si-LK-KT7GGO6D.js.map} +1 -1
- package/dist/dev/locales/{sk-SK.js → sk-SK-DY6IPO5U.js} +3 -1
- package/dist/dev/locales/{sk-SK.js.map → sk-SK-DY6IPO5U.js.map} +1 -1
- package/dist/dev/locales/{sl-SI.js → sl-SI-5DZSRA47.js} +3 -1
- package/dist/dev/locales/{sl-SI.js.map → sl-SI-5DZSRA47.js.map} +1 -1
- package/dist/dev/locales/{sv-SE.js → sv-SE-V32YHALQ.js} +3 -1
- package/dist/dev/locales/{sv-SE.js.map → sv-SE-V32YHALQ.js.map} +1 -1
- package/dist/dev/locales/{ta-IN.js → ta-IN-5JRAGQAO.js} +3 -1
- package/dist/dev/locales/{ta-IN.js.map → ta-IN-5JRAGQAO.js.map} +1 -1
- package/dist/dev/locales/{th-TH.js → th-TH-55ACRHDJ.js} +3 -1
- package/dist/dev/locales/{th-TH.js.map → th-TH-55ACRHDJ.js.map} +1 -1
- package/dist/dev/locales/{tr-TR.js → tr-TR-7QYBXDBO.js} +3 -1
- package/dist/dev/locales/{tr-TR.js.map → tr-TR-7QYBXDBO.js.map} +1 -1
- package/dist/dev/locales/{uk-UA.js → uk-UA-TJS2TMRH.js} +3 -1
- package/dist/dev/locales/{uk-UA.js.map → uk-UA-TJS2TMRH.js.map} +1 -1
- package/dist/dev/locales/{vi-VN.js → vi-VN-Y5CQ2EKQ.js} +3 -1
- package/dist/dev/locales/{vi-VN.js.map → vi-VN-Y5CQ2EKQ.js.map} +1 -1
- package/dist/dev/locales/{zh-CN.js → zh-CN-4MXUOFTH.js} +3 -1
- package/dist/dev/locales/{zh-CN.js.map → zh-CN-4MXUOFTH.js.map} +1 -1
- package/dist/dev/locales/{zh-HK.js → zh-HK-RBTGIU3U.js} +3 -1
- package/dist/dev/locales/{zh-HK.js.map → zh-HK-RBTGIU3U.js.map} +1 -1
- package/dist/dev/locales/{zh-TW.js → zh-TW-U5VF4CCU.js} +3 -1
- package/dist/dev/locales/{zh-TW.js.map → zh-TW-U5VF4CCU.js.map} +1 -1
- package/dist/dev/subset-shared.chunk.js +8 -4128
- package/dist/dev/subset-shared.chunk.js.map +4 -4
- package/dist/dev/subset-worker.chunk.js +7 -1
- package/dist/dev/subset-worker.chunk.js.map +1 -1
- package/dist/prod/{locales/en.js → chunk-6U3AYISY.js} +1 -1
- package/dist/prod/chunk-EIO257PC.js +86 -0
- package/dist/prod/chunk-FZ2HZXXI.js +34 -0
- package/dist/prod/chunk-SRAX5OIU.js +1 -0
- package/dist/prod/chunk-YCRRKGOW.js +1 -0
- package/dist/prod/chunk-Z3N5DIM6.js +1 -0
- package/dist/prod/data/image-QTHH6XLL.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +16 -49
- package/dist/prod/locales/{ar-SA.js → ar-SA-G6X2FPQ2.js} +1 -1
- package/dist/prod/locales/az-AZ-76LH7QW2.js +1 -0
- package/dist/prod/locales/{bg-BG.js → bg-BG-XCXSNQG7.js} +1 -1
- package/dist/prod/locales/{bn-BD.js → bn-BD-2XOGV67Q.js} +1 -1
- package/dist/prod/locales/{ca-ES.js → ca-ES-6MX7JW3Y.js} +1 -1
- package/dist/prod/locales/{cs-CZ.js → cs-CZ-2BRQDIVT.js} +1 -1
- package/dist/prod/locales/{da-DK.js → da-DK-5WZEPLOC.js} +1 -1
- package/dist/prod/locales/{de-DE.js → de-DE-XR44H4JA.js} +1 -1
- package/dist/prod/locales/{el-GR.js → el-GR-BZB4AONW.js} +1 -1
- package/dist/prod/locales/en-B4ZKOASM.js +1 -0
- package/dist/prod/locales/{es-ES.js → es-ES-U4NZUMDT.js} +1 -1
- package/dist/prod/locales/{eu-ES.js → eu-ES-A7QVB2H4.js} +1 -1
- package/dist/prod/locales/{fa-IR.js → fa-IR-HGAKTJCU.js} +1 -1
- package/dist/prod/locales/{fi-FI.js → fi-FI-Z5N7JZ37.js} +1 -1
- package/dist/prod/locales/{fr-FR.js → fr-FR-RHASNOE6.js} +1 -1
- package/dist/prod/locales/{gl-ES.js → gl-ES-HMX3MZ6V.js} +1 -1
- package/dist/prod/locales/{he-IL.js → he-IL-6SHJWFNN.js} +1 -1
- package/dist/prod/locales/{hi-IN.js → hi-IN-IWLTKZ5I.js} +1 -1
- package/dist/prod/locales/{hu-HU.js → hu-HU-A5ZG7DT2.js} +1 -1
- package/dist/prod/locales/{id-ID.js → id-ID-SAP4L64H.js} +1 -1
- package/dist/prod/locales/{it-IT.js → it-IT-JPQ66NNP.js} +1 -1
- package/dist/prod/locales/{ja-JP.js → ja-JP-DBVTYXUO.js} +1 -1
- package/dist/prod/locales/kaa-6HZHGXH3.js +1 -0
- package/dist/prod/locales/{kab-KAB.js → kab-KAB-ZGHBKWFO.js} +1 -1
- package/dist/prod/locales/kk-KZ-P5N5QNE5.js +1 -0
- package/dist/prod/locales/{km-KH.js → km-KH-HSX4SM5Z.js} +1 -1
- package/dist/prod/locales/{ko-KR.js → ko-KR-MTYHY66A.js} +1 -1
- package/dist/prod/locales/{ku-TR.js → ku-TR-6OUDTVRD.js} +1 -1
- package/dist/prod/locales/{lt-LT.js → lt-LT-XHIRWOB4.js} +1 -1
- package/dist/prod/locales/{lv-LV.js → lv-LV-5QDEKY6T.js} +1 -1
- package/dist/prod/locales/{mr-IN.js → mr-IN-CRQNXWMA.js} +1 -1
- package/dist/prod/locales/my-MM-5M5IBNSE.js +1 -0
- package/dist/prod/locales/{nb-NO.js → nb-NO-T6EIAALU.js} +1 -1
- package/dist/prod/locales/{nl-NL.js → nl-NL-IS3SIHDZ.js} +1 -1
- package/dist/prod/locales/{nn-NO.js → nn-NO-6E72VCQL.js} +1 -1
- package/dist/prod/locales/{oc-FR.js → oc-FR-POXYY2M6.js} +1 -1
- package/dist/prod/locales/{pa-IN.js → pa-IN-N4M65BXN.js} +1 -1
- package/dist/prod/locales/percentages-BXMCSKIN.js +1 -0
- package/dist/prod/locales/{pl-PL.js → pl-PL-T2D74RX3.js} +1 -1
- package/dist/prod/locales/{pt-BR.js → pt-BR-5N22H2LF.js} +1 -1
- package/dist/prod/locales/{pt-PT.js → pt-PT-UZXXM6DQ.js} +1 -1
- package/dist/prod/locales/{ro-RO.js → ro-RO-JPDTUUEW.js} +1 -1
- package/dist/prod/locales/{ru-RU.js → ru-RU-B4JR7IUQ.js} +1 -1
- package/dist/prod/locales/si-LK-N5RQ5JYF.js +1 -0
- package/dist/prod/locales/{sk-SK.js → sk-SK-C5VTKIMK.js} +1 -1
- package/dist/prod/locales/{sl-SI.js → sl-SI-NN7IZMDC.js} +1 -1
- package/dist/prod/locales/{sv-SE.js → sv-SE-XGPEYMSR.js} +1 -1
- package/dist/prod/locales/{ta-IN.js → ta-IN-2NMHFXQM.js} +1 -1
- package/dist/prod/locales/th-TH-HPSO5L25.js +2 -0
- package/dist/prod/locales/{tr-TR.js → tr-TR-DEFEU3FU.js} +1 -1
- package/dist/prod/locales/{uk-UA.js → uk-UA-QMV73CPH.js} +1 -1
- package/dist/prod/locales/{vi-VN.js → vi-VN-M7AON7JQ.js} +1 -1
- package/dist/prod/locales/{zh-CN.js → zh-CN-LNUGB5OW.js} +1 -1
- package/dist/prod/locales/zh-HK-E62DVLB3.js +1 -0
- package/dist/prod/locales/{zh-TW.js → zh-TW-RAJ6MFWO.js} +1 -1
- package/dist/prod/subset-shared.chunk.js +1 -86
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +12 -12
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +9 -9
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +9 -9
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +20 -20
- package/dist/types/excalidraw/actions/actionGroup.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +3 -3
- package/dist/types/excalidraw/actions/actionNavigate.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionProperties.d.ts +15 -15
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +1 -1
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +1 -1
- package/dist/types/excalidraw/constants.d.ts +6 -2
- package/dist/types/excalidraw/element/binding.d.ts +2 -2
- package/dist/types/excalidraw/element/bounds.d.ts +1 -1
- package/dist/types/excalidraw/element/collision.d.ts +2 -2
- package/dist/types/excalidraw/element/elbowArrow.d.ts +1 -1
- package/dist/types/excalidraw/element/embeddable.d.ts +1 -1
- package/dist/types/excalidraw/element/heading.d.ts +1 -1
- package/dist/types/excalidraw/element/linearElementEditor.d.ts +1 -1
- package/dist/types/excalidraw/element/newElement.d.ts +1 -1
- package/dist/types/excalidraw/element/resizeElements.d.ts +1 -1
- package/dist/types/excalidraw/element/resizeTest.d.ts +1 -1
- package/dist/types/excalidraw/element/textElement.d.ts +1 -1
- package/dist/types/excalidraw/element/transformHandles.d.ts +1 -1
- package/dist/types/excalidraw/element/types.d.ts +1 -1
- package/dist/types/excalidraw/fonts/ExcalidrawFontFace.d.ts +1 -1
- package/dist/types/excalidraw/index.d.ts +3 -3
- package/dist/types/excalidraw/points.d.ts +1 -1
- package/dist/types/excalidraw/scene/types.d.ts +2 -1
- package/dist/types/excalidraw/shapes.d.ts +2 -2
- package/dist/types/excalidraw/snapping.d.ts +2 -2
- package/dist/types/excalidraw/types.d.ts +1 -5
- package/dist/types/excalidraw/visualdebug.d.ts +2 -2
- package/dist/types/utils/bbox.d.ts +2 -2
- package/dist/types/utils/collision.d.ts +2 -2
- package/dist/types/utils/export.d.ts +3 -3
- package/dist/types/utils/geometry/shape.d.ts +4 -4
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/withinBounds.d.ts +2 -2
- package/package.json +15 -23
- package/dist/dev/locales/percentages.js +0 -169
- package/dist/dev/locales/percentages.js.map +0 -7
- package/dist/prod/locales/az-AZ.js +0 -1
- package/dist/prod/locales/kaa.js +0 -1
- package/dist/prod/locales/kk-KZ.js +0 -1
- package/dist/prod/locales/my-MM.js +0 -1
- package/dist/prod/locales/percentages.js +0 -1
- package/dist/prod/locales/si-LK.js +0 -1
- package/dist/prod/locales/th-TH.js +0 -2
- package/dist/prod/locales/zh-HK.js +0 -1
|
@@ -133,7 +133,7 @@ export declare const actionGoToCollaborator: {
|
|
|
133
133
|
[id: string]: true;
|
|
134
134
|
}> | undefined;
|
|
135
135
|
username?: string | null | undefined;
|
|
136
|
-
userState?: import("
|
|
136
|
+
userState?: import("..").UserIdleState | undefined;
|
|
137
137
|
color?: {
|
|
138
138
|
background: string;
|
|
139
139
|
stroke: string;
|
|
@@ -311,7 +311,7 @@ export declare const actionGoToCollaborator: {
|
|
|
311
311
|
[id: string]: true;
|
|
312
312
|
}> | undefined;
|
|
313
313
|
username?: string | null | undefined;
|
|
314
|
-
userState?: import("
|
|
314
|
+
userState?: import("..").UserIdleState | undefined;
|
|
315
315
|
color?: {
|
|
316
316
|
background: string;
|
|
317
317
|
stroke: string;
|
|
@@ -152,7 +152,7 @@ export declare const actionChangeFillStyle: {
|
|
|
152
152
|
[id: string]: true;
|
|
153
153
|
}> | undefined;
|
|
154
154
|
username?: string | null | undefined;
|
|
155
|
-
userState?: import("../
|
|
155
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
156
156
|
color?: {
|
|
157
157
|
background: string;
|
|
158
158
|
stroke: string;
|
|
@@ -337,7 +337,7 @@ export declare const actionChangeStrokeWidth: {
|
|
|
337
337
|
[id: string]: true;
|
|
338
338
|
}> | undefined;
|
|
339
339
|
username?: string | null | undefined;
|
|
340
|
-
userState?: import("../
|
|
340
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
341
341
|
color?: {
|
|
342
342
|
background: string;
|
|
343
343
|
stroke: string;
|
|
@@ -522,7 +522,7 @@ export declare const actionChangeSloppiness: {
|
|
|
522
522
|
[id: string]: true;
|
|
523
523
|
}> | undefined;
|
|
524
524
|
username?: string | null | undefined;
|
|
525
|
-
userState?: import("../
|
|
525
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
526
526
|
color?: {
|
|
527
527
|
background: string;
|
|
528
528
|
stroke: string;
|
|
@@ -707,7 +707,7 @@ export declare const actionChangeStrokeStyle: {
|
|
|
707
707
|
[id: string]: true;
|
|
708
708
|
}> | undefined;
|
|
709
709
|
username?: string | null | undefined;
|
|
710
|
-
userState?: import("../
|
|
710
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
711
711
|
color?: {
|
|
712
712
|
background: string;
|
|
713
713
|
stroke: string;
|
|
@@ -892,7 +892,7 @@ export declare const actionChangeOpacity: {
|
|
|
892
892
|
[id: string]: true;
|
|
893
893
|
}> | undefined;
|
|
894
894
|
username?: string | null | undefined;
|
|
895
|
-
userState?: import("../
|
|
895
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
896
896
|
color?: {
|
|
897
897
|
background: string;
|
|
898
898
|
stroke: string;
|
|
@@ -1077,7 +1077,7 @@ export declare const actionChangeFontSize: {
|
|
|
1077
1077
|
[id: string]: true;
|
|
1078
1078
|
}> | undefined;
|
|
1079
1079
|
username?: string | null | undefined;
|
|
1080
|
-
userState?: import("../
|
|
1080
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
1081
1081
|
color?: {
|
|
1082
1082
|
background: string;
|
|
1083
1083
|
stroke: string;
|
|
@@ -1263,7 +1263,7 @@ export declare const actionDecreaseFontSize: {
|
|
|
1263
1263
|
[id: string]: true;
|
|
1264
1264
|
}> | undefined;
|
|
1265
1265
|
username?: string | null | undefined;
|
|
1266
|
-
userState?: import("../
|
|
1266
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
1267
1267
|
color?: {
|
|
1268
1268
|
background: string;
|
|
1269
1269
|
stroke: string;
|
|
@@ -1449,7 +1449,7 @@ export declare const actionIncreaseFontSize: {
|
|
|
1449
1449
|
[id: string]: true;
|
|
1450
1450
|
}> | undefined;
|
|
1451
1451
|
username?: string | null | undefined;
|
|
1452
|
-
userState?: import("../
|
|
1452
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
1453
1453
|
color?: {
|
|
1454
1454
|
background: string;
|
|
1455
1455
|
stroke: string;
|
|
@@ -1633,7 +1633,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1633
1633
|
[id: string]: true;
|
|
1634
1634
|
}> | undefined;
|
|
1635
1635
|
username?: string | null | undefined;
|
|
1636
|
-
userState?: import("../
|
|
1636
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
1637
1637
|
color?: {
|
|
1638
1638
|
background: string;
|
|
1639
1639
|
stroke: string;
|
|
@@ -1809,7 +1809,7 @@ export declare const actionChangeFontFamily: {
|
|
|
1809
1809
|
[id: string]: true;
|
|
1810
1810
|
}> | undefined;
|
|
1811
1811
|
username?: string | null | undefined;
|
|
1812
|
-
userState?: import("../
|
|
1812
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
1813
1813
|
color?: {
|
|
1814
1814
|
background: string;
|
|
1815
1815
|
stroke: string;
|
|
@@ -1994,7 +1994,7 @@ export declare const actionChangeTextAlign: {
|
|
|
1994
1994
|
[id: string]: true;
|
|
1995
1995
|
}> | undefined;
|
|
1996
1996
|
username?: string | null | undefined;
|
|
1997
|
-
userState?: import("../
|
|
1997
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
1998
1998
|
color?: {
|
|
1999
1999
|
background: string;
|
|
2000
2000
|
stroke: string;
|
|
@@ -2181,7 +2181,7 @@ export declare const actionChangeVerticalAlign: {
|
|
|
2181
2181
|
[id: string]: true;
|
|
2182
2182
|
}> | undefined;
|
|
2183
2183
|
username?: string | null | undefined;
|
|
2184
|
-
userState?: import("../
|
|
2184
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
2185
2185
|
color?: {
|
|
2186
2186
|
background: string;
|
|
2187
2187
|
stroke: string;
|
|
@@ -2366,7 +2366,7 @@ export declare const actionChangeRoundness: {
|
|
|
2366
2366
|
[id: string]: true;
|
|
2367
2367
|
}> | undefined;
|
|
2368
2368
|
username?: string | null | undefined;
|
|
2369
|
-
userState?: import("../
|
|
2369
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
2370
2370
|
color?: {
|
|
2371
2371
|
background: string;
|
|
2372
2372
|
stroke: string;
|
|
@@ -2554,7 +2554,7 @@ export declare const actionChangeArrowhead: {
|
|
|
2554
2554
|
[id: string]: true;
|
|
2555
2555
|
}> | undefined;
|
|
2556
2556
|
username?: string | null | undefined;
|
|
2557
|
-
userState?: import("../
|
|
2557
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
2558
2558
|
color?: {
|
|
2559
2559
|
background: string;
|
|
2560
2560
|
stroke: string;
|
|
@@ -2739,7 +2739,7 @@ export declare const actionChangeArrowType: {
|
|
|
2739
2739
|
[id: string]: true;
|
|
2740
2740
|
}> | undefined;
|
|
2741
2741
|
username?: string | null | undefined;
|
|
2742
|
-
userState?: import("../
|
|
2742
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
2743
2743
|
color?: {
|
|
2744
2744
|
background: string;
|
|
2745
2745
|
stroke: string;
|
|
@@ -135,7 +135,7 @@ export declare const actionSelectAll: {
|
|
|
135
135
|
[id: string]: true;
|
|
136
136
|
}> | undefined;
|
|
137
137
|
username?: string | null | undefined;
|
|
138
|
-
userState?: import("
|
|
138
|
+
userState?: import("..").UserIdleState | undefined;
|
|
139
139
|
color?: {
|
|
140
140
|
background: string;
|
|
141
141
|
stroke: string;
|
|
@@ -130,7 +130,7 @@ export declare const actionCopyStyles: {
|
|
|
130
130
|
[id: string]: true;
|
|
131
131
|
}> | undefined;
|
|
132
132
|
username?: string | null | undefined;
|
|
133
|
-
userState?: import("../
|
|
133
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
134
134
|
color?: {
|
|
135
135
|
background: string;
|
|
136
136
|
stroke: string;
|
|
@@ -136,7 +136,7 @@ export declare const actionToggleGridMode: {
|
|
|
136
136
|
[id: string]: true;
|
|
137
137
|
}> | undefined;
|
|
138
138
|
username?: string | null | undefined;
|
|
139
|
-
userState?: import("
|
|
139
|
+
userState?: import("..").UserIdleState | undefined;
|
|
140
140
|
color?: {
|
|
141
141
|
background: string;
|
|
142
142
|
stroke: string;
|
|
@@ -134,7 +134,7 @@ export declare const actionToggleObjectsSnapMode: {
|
|
|
134
134
|
[id: string]: true;
|
|
135
135
|
}> | undefined;
|
|
136
136
|
username?: string | null | undefined;
|
|
137
|
-
userState?: import("
|
|
137
|
+
userState?: import("..").UserIdleState | undefined;
|
|
138
138
|
color?: {
|
|
139
139
|
background: string;
|
|
140
140
|
stroke: string;
|
|
@@ -133,7 +133,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
133
133
|
[id: string]: true;
|
|
134
134
|
}> | undefined;
|
|
135
135
|
username?: string | null | undefined;
|
|
136
|
-
userState?: import("../
|
|
136
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
137
137
|
color?: {
|
|
138
138
|
background: string;
|
|
139
139
|
stroke: string;
|
|
@@ -298,7 +298,7 @@ export declare const actionToggleSearchMenu: {
|
|
|
298
298
|
[id: string]: true;
|
|
299
299
|
}> | undefined;
|
|
300
300
|
username?: string | null | undefined;
|
|
301
|
-
userState?: import("../
|
|
301
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
302
302
|
color?: {
|
|
303
303
|
background: string;
|
|
304
304
|
stroke: string;
|
|
@@ -138,7 +138,7 @@ export declare const actionToggleStats: {
|
|
|
138
138
|
[id: string]: true;
|
|
139
139
|
}> | undefined;
|
|
140
140
|
username?: string | null | undefined;
|
|
141
|
-
userState?: import("
|
|
141
|
+
userState?: import("..").UserIdleState | undefined;
|
|
142
142
|
color?: {
|
|
143
143
|
background: string;
|
|
144
144
|
stroke: string;
|
|
@@ -134,7 +134,7 @@ export declare const actionToggleViewMode: {
|
|
|
134
134
|
[id: string]: true;
|
|
135
135
|
}> | undefined;
|
|
136
136
|
username?: string | null | undefined;
|
|
137
|
-
userState?: import("
|
|
137
|
+
userState?: import("..").UserIdleState | undefined;
|
|
138
138
|
color?: {
|
|
139
139
|
background: string;
|
|
140
140
|
stroke: string;
|
|
@@ -134,7 +134,7 @@ export declare const actionToggleZenMode: {
|
|
|
134
134
|
[id: string]: true;
|
|
135
135
|
}> | undefined;
|
|
136
136
|
username?: string | null | undefined;
|
|
137
|
-
userState?: import("
|
|
137
|
+
userState?: import("..").UserIdleState | undefined;
|
|
138
138
|
color?: {
|
|
139
139
|
background: string;
|
|
140
140
|
stroke: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GlobalPoint, Radians } from "
|
|
1
|
+
import type { GlobalPoint, Radians } from "@excalidraw/math";
|
|
2
2
|
import type { Bounds } from "../../element/bounds";
|
|
3
3
|
import type { ElementsMap, NonDeletedExcalidrawElement } from "../../element/types";
|
|
4
4
|
import type { AppState, UIAppState } from "../../types";
|
|
@@ -205,7 +205,7 @@ export declare const MAX_ZOOM = 30;
|
|
|
205
205
|
export declare const HYPERLINK_TOOLTIP_DELAY = 300;
|
|
206
206
|
export declare const IDLE_THRESHOLD = 60000;
|
|
207
207
|
export declare const ACTIVE_THRESHOLD = 3000;
|
|
208
|
-
export declare const THEME_FILTER
|
|
208
|
+
export declare const THEME_FILTER = "invert(93%) hue-rotate(180deg)";
|
|
209
209
|
export declare const URL_QUERY_KEYS: {
|
|
210
210
|
readonly addLibrary: "addLibrary";
|
|
211
211
|
};
|
|
@@ -217,7 +217,6 @@ export declare const MQ_MAX_WIDTH_PORTRAIT = 730;
|
|
|
217
217
|
export declare const MQ_MAX_WIDTH_LANDSCAPE = 1000;
|
|
218
218
|
export declare const MQ_MAX_HEIGHT_LANDSCAPE = 500;
|
|
219
219
|
export declare const MQ_RIGHT_SIDEBAR_MIN_WIDTH = 1229;
|
|
220
|
-
export declare const LIBRARY_SIDEBAR_WIDTH: number;
|
|
221
220
|
export declare const MAX_DECIMALS_FOR_SVG_EXPORT = 2;
|
|
222
221
|
export declare const EXPORT_SCALES: number[];
|
|
223
222
|
export declare const DEFAULT_EXPORT_PADDING = 10;
|
|
@@ -316,3 +315,8 @@ export declare const DEFAULT_REDUCED_GLOBAL_ALPHA = 0.3;
|
|
|
316
315
|
export declare const ELEMENT_LINK_KEY = "element";
|
|
317
316
|
/** used in tests */
|
|
318
317
|
export declare const ORIG_ID: unique symbol;
|
|
318
|
+
export declare enum UserIdleState {
|
|
319
|
+
ACTIVE = "active",
|
|
320
|
+
AWAY = "away",
|
|
321
|
+
IDLE = "idle"
|
|
322
|
+
}
|
|
@@ -4,8 +4,8 @@ import type { AppState } from "../types";
|
|
|
4
4
|
import type { ElementUpdate } from "./mutateElement";
|
|
5
5
|
import type Scene from "../scene/Scene";
|
|
6
6
|
import { type Heading } from "./heading";
|
|
7
|
-
import type { LocalPoint } from "
|
|
8
|
-
import { type GlobalPoint } from "
|
|
7
|
+
import type { LocalPoint } from "@excalidraw/math";
|
|
8
|
+
import { type GlobalPoint } from "@excalidraw/math";
|
|
9
9
|
export type SuggestedBinding = NonDeleted<ExcalidrawBindableElement> | SuggestedPointBinding;
|
|
10
10
|
export type SuggestedPointBinding = [
|
|
11
11
|
NonDeleted<ExcalidrawLinearElement>,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ExcalidrawElement, ExcalidrawLinearElement, Arrowhead, ExcalidrawFreeDrawElement, NonDeleted, ElementsMap } from "./types";
|
|
2
2
|
import type { Drawable, Op } from "roughjs/bin/core";
|
|
3
3
|
import type { AppState } from "../types";
|
|
4
|
-
import type { Degrees, GlobalPoint, LineSegment } from "
|
|
4
|
+
import type { Degrees, GlobalPoint, LineSegment } from "@excalidraw/math";
|
|
5
5
|
export type RectangleBox = {
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ElementsMap, ExcalidrawElement } from "./types";
|
|
2
2
|
import type { FrameNameBounds } from "../types";
|
|
3
|
-
import type { GeometricShape } from "
|
|
4
|
-
import type { GlobalPoint, LocalPoint } from "
|
|
3
|
+
import type { GeometricShape } from "@excalidraw/utils/geometry/shape";
|
|
4
|
+
import type { GlobalPoint, LocalPoint } from "@excalidraw/math";
|
|
5
5
|
export declare const shouldTestInside: (element: ExcalidrawElement) => boolean;
|
|
6
6
|
export type HitTestArgs<Point extends GlobalPoint | LocalPoint> = {
|
|
7
7
|
x: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type LocalPoint } from "
|
|
1
|
+
import { type LocalPoint } from "@excalidraw/math";
|
|
2
2
|
import { type ElementUpdate } from "./mutateElement";
|
|
3
3
|
import { type ExcalidrawElbowArrowElement, type NonDeletedSceneElementsMap, type SceneElementsMap } from "./types";
|
|
4
4
|
import type { FixedPointBinding, FixedSegment } from "./types";
|
|
@@ -139,7 +139,7 @@ export declare const actionSetEmbeddableAsActiveTool: {
|
|
|
139
139
|
[id: string]: true;
|
|
140
140
|
}> | undefined;
|
|
141
141
|
username?: string | null | undefined;
|
|
142
|
-
userState?: import("../
|
|
142
|
+
userState?: import("../constants").UserIdleState | undefined;
|
|
143
143
|
color?: {
|
|
144
144
|
background: string;
|
|
145
145
|
stroke: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LocalPoint, GlobalPoint, Vector } from "
|
|
1
|
+
import type { LocalPoint, GlobalPoint, Vector } from "@excalidraw/math";
|
|
2
2
|
import type { ExcalidrawBindableElement } from "./types";
|
|
3
3
|
export declare const HEADING_RIGHT: Heading;
|
|
4
4
|
export declare const HEADING_DOWN: Heading;
|
|
@@ -4,7 +4,7 @@ import type { Bounds } from "./bounds";
|
|
|
4
4
|
import type { AppState, PointerCoords, InteractiveCanvasAppState, AppClassProperties, NullableGridSize, Zoom } from "../types";
|
|
5
5
|
import type { Store } from "../store";
|
|
6
6
|
import type Scene from "../scene/Scene";
|
|
7
|
-
import { type GlobalPoint, type LocalPoint } from "
|
|
7
|
+
import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
|
|
8
8
|
declare const editorMidPointsCache: {
|
|
9
9
|
version: number | null;
|
|
10
10
|
points: (GlobalPoint | null)[];
|
|
@@ -49,7 +49,7 @@ export declare const newArrowElement: <T extends boolean>(opts: {
|
|
|
49
49
|
type: ExcalidrawArrowElement["type"];
|
|
50
50
|
startArrowhead?: Arrowhead | null | undefined;
|
|
51
51
|
endArrowhead?: Arrowhead | null | undefined;
|
|
52
|
-
points?: readonly import("
|
|
52
|
+
points?: readonly import("@excalidraw/math").LocalPoint[] | undefined;
|
|
53
53
|
elbowed?: T | undefined;
|
|
54
54
|
fixedSegments?: FixedSegment[] | null | undefined;
|
|
55
55
|
} & Omit<Omit<ExcalidrawGenericElement, "id" | "isDeleted" | "updated" | "type">, "angle" | "link" | "width" | "height" | "backgroundColor" | "strokeColor" | "fillStyle" | "strokeWidth" | "strokeStyle" | "roundness" | "roughness" | "opacity" | "seed" | "version" | "versionNonce" | "index" | "groupIds" | "frameId" | "boundElements" | "locked" | "customData"> & Partial<Pick<Omit<ExcalidrawGenericElement, "id" | "isDeleted" | "updated" | "type">, "angle" | "link" | "width" | "height" | "backgroundColor" | "strokeColor" | "fillStyle" | "strokeWidth" | "strokeStyle" | "roundness" | "roughness" | "opacity" | "seed" | "version" | "versionNonce" | "index" | "groupIds" | "frameId" | "boundElements" | "locked" | "customData">>) => T extends true ? NonDeleted<ExcalidrawElbowArrowElement> : NonDeleted<ExcalidrawArrowElement>;
|
|
@@ -3,7 +3,7 @@ import type { BoundingBox } from "./bounds";
|
|
|
3
3
|
import type { MaybeTransformHandleType, TransformHandleDirection } from "./transformHandles";
|
|
4
4
|
import type { PointerDownState } from "../types";
|
|
5
5
|
import type Scene from "../scene/Scene";
|
|
6
|
-
import { type LocalPoint } from "
|
|
6
|
+
import { type LocalPoint } from "@excalidraw/math";
|
|
7
7
|
export declare const transformElements: (originalElements: PointerDownState["originalElements"], transformHandleType: MaybeTransformHandleType, selectedElements: readonly NonDeletedExcalidrawElement[], elementsMap: SceneElementsMap, scene: Scene, shouldRotateWithDiscreteAngle: boolean, shouldResizeFromCenter: boolean, shouldMaintainAspectRatio: boolean, pointerX: number, pointerY: number, centerX: number, centerY: number) => boolean;
|
|
8
8
|
export declare const rescalePointsInElement: (element: NonDeletedExcalidrawElement, width: number, height: number, normalizePoints: boolean) => {
|
|
9
9
|
points: LocalPoint[];
|
|
@@ -2,7 +2,7 @@ import type { ExcalidrawElement, PointerType, NonDeletedExcalidrawElement, Eleme
|
|
|
2
2
|
import type { MaybeTransformHandleType } from "./transformHandles";
|
|
3
3
|
import type { AppState, Device, Zoom } from "../types";
|
|
4
4
|
import type { Bounds } from "./bounds";
|
|
5
|
-
import type { GlobalPoint, LocalPoint } from "
|
|
5
|
+
import type { GlobalPoint, LocalPoint } from "@excalidraw/math";
|
|
6
6
|
export declare const resizeTest: <Point extends GlobalPoint | LocalPoint>(element: NonDeletedExcalidrawElement, elementsMap: ElementsMap, appState: AppState, x: number, y: number, zoom: Zoom, pointerType: PointerType, device: Device) => MaybeTransformHandleType;
|
|
7
7
|
export declare const getElementWithTransformHandleType: (elements: readonly NonDeletedExcalidrawElement[], appState: AppState, scenePointerX: number, scenePointerY: number, zoom: Zoom, pointerType: PointerType, elementsMap: ElementsMap, device: Device) => {
|
|
8
8
|
element: NonDeletedExcalidrawElement;
|
|
@@ -20,7 +20,7 @@ export declare const getContainerCoords: (container: NonDeletedExcalidrawElement
|
|
|
20
20
|
x: number;
|
|
21
21
|
y: number;
|
|
22
22
|
};
|
|
23
|
-
export declare const getTextElementAngle: (textElement: ExcalidrawTextElement, container: ExcalidrawTextContainer | null) => import("
|
|
23
|
+
export declare const getTextElementAngle: (textElement: ExcalidrawTextElement, container: ExcalidrawTextContainer | null) => import("@excalidraw/math").Radians;
|
|
24
24
|
export declare const getBoundTextElementPosition: (container: ExcalidrawElement, boundTextElement: ExcalidrawTextElementWithContainer, elementsMap: ElementsMap) => {
|
|
25
25
|
x: number;
|
|
26
26
|
y: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement, PointerType } from "./types";
|
|
2
2
|
import type { Bounds } from "./bounds";
|
|
3
3
|
import type { Device, InteractiveCanvasAppState, Zoom } from "../types";
|
|
4
|
-
import type { Radians } from "
|
|
4
|
+
import type { Radians } from "@excalidraw/math";
|
|
5
5
|
export type TransformHandleDirection = "n" | "s" | "w" | "e" | "nw" | "ne" | "sw" | "se";
|
|
6
6
|
export type TransformHandleType = TransformHandleDirection | "rotation";
|
|
7
7
|
export type TransformHandle = Bounds;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LocalPoint, Radians } from "
|
|
1
|
+
import type { LocalPoint, Radians } from "@excalidraw/math";
|
|
2
2
|
import type { FONT_FAMILY, ROUNDNESS, TEXT_ALIGN, THEME, VERTICAL_ALIGN } from "../constants";
|
|
3
3
|
import type { MakeBrand, MarkNonNullable, Merge, ValueOf } from "../utility-types";
|
|
4
4
|
export type ChartType = "bar" | "line";
|
|
@@ -2,7 +2,7 @@ type DataURL = string;
|
|
|
2
2
|
export declare class ExcalidrawFontFace {
|
|
3
3
|
readonly urls: URL[] | DataURL[];
|
|
4
4
|
readonly fontFace: FontFace;
|
|
5
|
-
private static readonly
|
|
5
|
+
private static readonly ASSETS_FALLBACK_URL;
|
|
6
6
|
constructor(family: string, uri: string, descriptors?: FontFaceDescriptors);
|
|
7
7
|
/**
|
|
8
8
|
* Generates CSS `@font-face` definition with the (subsetted) font source as a data url for the characters within the unicode range.
|
|
@@ -12,13 +12,13 @@ export { getSceneVersion, hashElementsVersion, hashString, isInvisiblySmallEleme
|
|
|
12
12
|
export { defaultLang, useI18n, languages } from "./i18n";
|
|
13
13
|
export { restore, restoreAppState, restoreElements, restoreLibraryItems, } from "./data/restore";
|
|
14
14
|
export { reconcileElements } from "./data/reconcile";
|
|
15
|
-
export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "
|
|
15
|
+
export { exportToCanvas, exportToBlob, exportToSvg, exportToClipboard, } from "@excalidraw/utils/export";
|
|
16
16
|
export { serializeAsJSON, serializeLibraryAsJSON } from "./data/json";
|
|
17
17
|
export { loadFromBlob, loadSceneOrLibraryFromBlob, loadLibraryFromBlob, } from "./data/blob";
|
|
18
18
|
export { getFreeDrawSvgPath } from "./renderer/renderElement";
|
|
19
19
|
export { mergeLibraryItems, getLibraryItemsHash } from "./data/library";
|
|
20
20
|
export { isLinearElement } from "./element/typeChecks";
|
|
21
|
-
export { FONT_FAMILY, THEME, MIME_TYPES, ROUNDNESS, DEFAULT_LASER_COLOR, } from "./constants";
|
|
21
|
+
export { FONT_FAMILY, THEME, MIME_TYPES, ROUNDNESS, DEFAULT_LASER_COLOR, UserIdleState, } from "./constants";
|
|
22
22
|
export { mutateElement, newElementWith, bumpVersion, } from "./element/mutateElement";
|
|
23
23
|
export { StoreAction } from "./store";
|
|
24
24
|
export { parseLibraryTokensFromUrl, useHandleLibrary } from "./data/library";
|
|
@@ -38,7 +38,7 @@ export { normalizeLink } from "./data/url";
|
|
|
38
38
|
export { zoomToFitBounds } from "./actions/actionCanvas";
|
|
39
39
|
export { convertToExcalidrawElements } from "./data/transform";
|
|
40
40
|
export { getCommonBounds, getVisibleSceneBounds } from "./element/bounds";
|
|
41
|
-
export { elementsOverlappingBBox, isElementInsideBBox, elementPartiallyOverlapsWithOrContainsBBox, } from "
|
|
41
|
+
export { elementsOverlappingBBox, isElementInsideBBox, elementPartiallyOverlapsWithOrContainsBBox, } from "@excalidraw/utils/withinBounds";
|
|
42
42
|
export { DiagramToCodePlugin } from "./components/DiagramToCodePlugin/DiagramToCodePlugin";
|
|
43
43
|
export { getDataURL } from "./data/blob";
|
|
44
44
|
export { isElementLink } from "./element/elementLink";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { RoughCanvas } from "roughjs/bin/canvas";
|
|
2
2
|
import type { Drawable } from "roughjs/bin/core";
|
|
3
3
|
import type { ExcalidrawElement, NonDeletedElementsMap, NonDeletedExcalidrawElement, NonDeletedSceneElementsMap } from "../element/types";
|
|
4
|
-
import type { AppClassProperties, AppState, EmbedsValidationStatus, ElementsPendingErasure, InteractiveCanvasAppState, StaticCanvasAppState, SocketId,
|
|
4
|
+
import type { AppClassProperties, AppState, EmbedsValidationStatus, ElementsPendingErasure, InteractiveCanvasAppState, StaticCanvasAppState, SocketId, Device, PendingExcalidrawElements } from "../types";
|
|
5
5
|
import type { MakeBrand } from "../utility-types";
|
|
6
|
+
import type { UserIdleState } from "../constants";
|
|
6
7
|
export type RenderableElementsMap = NonDeletedElementsMap & MakeBrand<"RenderableElementsMap">;
|
|
7
8
|
export type StaticCanvasRenderConfig = {
|
|
8
9
|
canvasBackgroundColor: AppState["viewBackgroundColor"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type GlobalPoint, type LocalPoint } from "
|
|
3
|
-
import { type GeometricShape } from "
|
|
2
|
+
import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
|
|
3
|
+
import { type GeometricShape } from "@excalidraw/utils/geometry/shape";
|
|
4
4
|
import type { Bounds } from "./element/bounds";
|
|
5
5
|
import type { ElementsMap, ExcalidrawElement, ExcalidrawLinearElement, NonDeleted } from "./element/types";
|
|
6
6
|
import type { Zoom } from "./types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InclusiveRange } from "
|
|
2
|
-
import { type GlobalPoint } from "
|
|
1
|
+
import type { InclusiveRange } from "@excalidraw/math";
|
|
2
|
+
import { type GlobalPoint } from "@excalidraw/math";
|
|
3
3
|
import type { Bounds } from "./element/bounds";
|
|
4
4
|
import type { MaybeTransformHandleType } from "./element/transformHandles";
|
|
5
5
|
import type { ElementsMap, ExcalidrawElement, NonDeletedExcalidrawElement } from "./element/types";
|
|
@@ -18,6 +18,7 @@ import type { ContextMenuItems } from "./components/ContextMenu";
|
|
|
18
18
|
import type { SnapLine } from "./snapping";
|
|
19
19
|
import type { Merge, MaybePromise, ValueOf, MakeBrand } from "./utility-types";
|
|
20
20
|
import type { StoreActionType } from "./store";
|
|
21
|
+
import type { UserIdleState } from "./constants";
|
|
21
22
|
export type SocketId = string & {
|
|
22
23
|
_brand: "SocketId";
|
|
23
24
|
};
|
|
@@ -465,11 +466,6 @@ export type SceneData = {
|
|
|
465
466
|
collaborators?: Map<SocketId, Collaborator>;
|
|
466
467
|
storeAction?: StoreActionType;
|
|
467
468
|
};
|
|
468
|
-
export declare enum UserIdleState {
|
|
469
|
-
ACTIVE = "active",
|
|
470
|
-
AWAY = "away",
|
|
471
|
-
IDLE = "idle"
|
|
472
|
-
}
|
|
473
469
|
export type ExportOpts = {
|
|
474
470
|
saveFileToDisk?: boolean;
|
|
475
471
|
onExportToBackend?: (exportedElements: readonly NonDeletedExcalidrawElement[], appState: UIAppState, files: BinaryFiles) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type GlobalPoint, type LocalPoint } from "
|
|
2
|
-
import type { LineSegment } from "
|
|
1
|
+
import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
|
|
2
|
+
import type { LineSegment } from "@excalidraw/utils";
|
|
3
3
|
import type { BoundingBox, Bounds } from "./element/bounds";
|
|
4
4
|
declare global {
|
|
5
5
|
interface Window {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type GlobalPoint, type LocalPoint } from "
|
|
2
|
-
import type { Bounds } from "
|
|
1
|
+
import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
|
|
2
|
+
import type { Bounds } from "@excalidraw/excalidraw/element/bounds";
|
|
3
3
|
export type LineSegment<P extends LocalPoint | GlobalPoint> = [P, P];
|
|
4
4
|
export declare function getBBox<P extends LocalPoint | GlobalPoint>(line: LineSegment<P>): Bounds;
|
|
5
5
|
export declare function doBBoxesIntersect(a: Bounds, b: Bounds): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Polyline } from "./geometry/shape";
|
|
2
2
|
import { type GeometricShape } from "./geometry/shape";
|
|
3
|
-
import type { Curve } from "
|
|
4
|
-
import { type GlobalPoint, type LocalPoint, type Polygon } from "
|
|
3
|
+
import type { Curve } from "@excalidraw/math";
|
|
4
|
+
import { type GlobalPoint, type LocalPoint, type Polygon } from "@excalidraw/math";
|
|
5
5
|
export declare const isPointOnShape: <Point extends GlobalPoint | LocalPoint>(point: Point, shape: GeometricShape<Point>, tolerance?: number) => boolean;
|
|
6
6
|
export declare const isPointInShape: <Point extends GlobalPoint | LocalPoint>(point: Point, shape: GeometricShape<Point>) => boolean;
|
|
7
7
|
export declare const isPointInBounds: <Point extends GlobalPoint | LocalPoint>(point: Point, bounds: Polygon<Point>) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AppState, BinaryFiles } from "
|
|
2
|
-
import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeleted } from "
|
|
3
|
-
import { MIME_TYPES } from "
|
|
1
|
+
import type { AppState, BinaryFiles } from "@excalidraw/excalidraw/types";
|
|
2
|
+
import type { ExcalidrawElement, ExcalidrawFrameLikeElement, NonDeleted } from "@excalidraw/excalidraw/element/types";
|
|
3
|
+
import { MIME_TYPES } from "@excalidraw/excalidraw/constants";
|
|
4
4
|
export { MIME_TYPES };
|
|
5
5
|
type ExportOpts = {
|
|
6
6
|
elements: readonly NonDeleted<ExcalidrawElement>[];
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
* also included in this file are methods for converting an Excalidraw element or a Drawable from roughjs
|
|
12
12
|
* to pure shapes
|
|
13
13
|
*/
|
|
14
|
-
import type { Curve, LineSegment, Polygon, Radians } from "
|
|
15
|
-
import { type GlobalPoint, type LocalPoint } from "
|
|
16
|
-
import type { ElementsMap, ExcalidrawBindableElement, ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawEllipseElement, ExcalidrawEmbeddableElement, ExcalidrawFrameLikeElement, ExcalidrawFreeDrawElement, ExcalidrawIframeElement, ExcalidrawImageElement, ExcalidrawLinearElement, ExcalidrawRectangleElement, ExcalidrawSelectionElement, ExcalidrawTextElement } from "
|
|
14
|
+
import type { Curve, LineSegment, Polygon, Radians } from "@excalidraw/math";
|
|
15
|
+
import { type GlobalPoint, type LocalPoint } from "@excalidraw/math";
|
|
16
|
+
import type { ElementsMap, ExcalidrawBindableElement, ExcalidrawDiamondElement, ExcalidrawElement, ExcalidrawEllipseElement, ExcalidrawEmbeddableElement, ExcalidrawFrameLikeElement, ExcalidrawFreeDrawElement, ExcalidrawIframeElement, ExcalidrawImageElement, ExcalidrawLinearElement, ExcalidrawRectangleElement, ExcalidrawSelectionElement, ExcalidrawTextElement } from "@excalidraw/excalidraw/element/types";
|
|
17
17
|
import type { Drawable, Op } from "roughjs/bin/core";
|
|
18
18
|
export type Polyline<Point extends GlobalPoint | LocalPoint> = LineSegment<Point>[];
|
|
19
19
|
export type Polycurve<Point extends GlobalPoint | LocalPoint> = Curve<Point>[];
|
|
@@ -67,5 +67,5 @@ export declare const ellipseAxes: <Point extends GlobalPoint | LocalPoint>(ellip
|
|
|
67
67
|
minorAxis: number;
|
|
68
68
|
};
|
|
69
69
|
export declare const ellipseFocusToCenter: <Point extends GlobalPoint | LocalPoint>(ellipse: Ellipse<Point>) => number;
|
|
70
|
-
export declare const ellipseExtremes: <Point extends GlobalPoint | LocalPoint>(ellipse: Ellipse<Point>) => import("
|
|
70
|
+
export declare const ellipseExtremes: <Point extends GlobalPoint | LocalPoint>(ellipse: Ellipse<Point>) => import("@excalidraw/math").Vector[];
|
|
71
71
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "
|
|
2
|
-
import type { Bounds } from "
|
|
1
|
+
import type { ExcalidrawElement, NonDeletedExcalidrawElement } from "@excalidraw/excalidraw/element/types";
|
|
2
|
+
import type { Bounds } from "@excalidraw/excalidraw/element/bounds";
|
|
3
3
|
type Element = NonDeletedExcalidrawElement;
|
|
4
4
|
type Elements = readonly NonDeletedExcalidrawElement[];
|
|
5
5
|
export declare const isElementInsideBBox: (element: Element, bbox: Bounds, eitherDirection?: boolean) => boolean;
|