@excalidraw/excalidraw 0.18.0-9ba0f5d → 0.18.0-9fbeaed
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 +288 -0
- package/README.md +111 -14
- package/dist/dev/chunk-CB5LBNRX.js +385 -0
- package/dist/dev/chunk-CB5LBNRX.js.map +7 -0
- package/dist/dev/{chunk-PW6TXCLQ.js → chunk-PMHQMXJL.js} +2944 -1338
- package/dist/dev/chunk-PMHQMXJL.js.map +7 -0
- package/dist/dev/chunk-Q67DF2PJ.js +69 -0
- package/dist/dev/chunk-Q67DF2PJ.js.map +7 -0
- package/dist/dev/{chunk-MNO2YU5M.js → chunk-TG4M5ORT.js} +108 -12
- package/dist/dev/chunk-TG4M5ORT.js.map +7 -0
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-XRUBL3LG.js +259 -0
- package/dist/dev/components/TTDDialog/CodeMirrorEditor-XRUBL3LG.js.map +7 -0
- package/dist/dev/data/{image-2BHUUSLM.js → image-MEFJ53NR.js} +2 -2
- package/dist/dev/index.css +1446 -779
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +26815 -14024
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{ar-SA-JK5MQ7TT.js → ar-SA-EW44IW4V.js} +127 -28
- package/dist/dev/locales/ar-SA-EW44IW4V.js.map +7 -0
- package/dist/dev/locales/{az-AZ-2PAD62G4.js → az-AZ-AI7WAYA2.js} +103 -4
- package/dist/dev/locales/az-AZ-AI7WAYA2.js.map +7 -0
- package/dist/dev/locales/{bg-BG-HUKVYCRK.js → bg-BG-43ZNGDXF.js} +104 -5
- package/dist/dev/locales/bg-BG-43ZNGDXF.js.map +7 -0
- package/dist/dev/locales/{bn-BD-V2CQI46P.js → bn-BD-PU4CN7NP.js} +103 -4
- package/dist/dev/locales/bn-BD-PU4CN7NP.js.map +7 -0
- package/dist/dev/locales/{bn-IN-MBEO4C3J.js → bn-IN-54CF43JL.js} +103 -4
- package/dist/dev/locales/bn-IN-54CF43JL.js.map +7 -0
- package/dist/dev/locales/{ca-ES-KWEKW4C3.js → ca-ES-RHJO3QDO.js} +105 -6
- package/dist/dev/locales/ca-ES-RHJO3QDO.js.map +7 -0
- package/dist/dev/locales/{cs-CZ-W5AHZB5H.js → cs-CZ-ZRSAO3BA.js} +104 -5
- package/dist/dev/locales/cs-CZ-ZRSAO3BA.js.map +7 -0
- package/dist/dev/locales/{da-DK-ITTM6YM4.js → da-DK-OAB6DEJX.js} +103 -4
- package/dist/dev/locales/da-DK-OAB6DEJX.js.map +7 -0
- package/dist/dev/locales/{de-CH-OAWPDQFJ.js → de-CH-QF7JLXTF.js} +181 -82
- package/dist/dev/locales/de-CH-QF7JLXTF.js.map +7 -0
- package/dist/dev/locales/{de-DE-ZRDYEPMS.js → de-DE-5ZO4KOPT.js} +175 -76
- package/dist/dev/locales/de-DE-5ZO4KOPT.js.map +7 -0
- package/dist/dev/locales/{el-GR-QXASZLPE.js → el-GR-F74ZSUEO.js} +105 -6
- package/dist/dev/locales/el-GR-F74ZSUEO.js.map +7 -0
- package/dist/dev/locales/{en-JRVQ7H6V.js → en-S76M77LQ.js} +10 -2
- package/dist/dev/locales/{es-ES-VLQBB7FJ.js → es-ES-3B3IENPS.js} +162 -63
- package/dist/dev/locales/es-ES-3B3IENPS.js.map +7 -0
- package/dist/dev/locales/{eu-ES-TF2DGTZU.js → eu-ES-NH447TVU.js} +221 -122
- package/dist/dev/locales/eu-ES-NH447TVU.js.map +7 -0
- package/dist/dev/locales/{fa-IR-ITKFQ7QV.js → fa-IR-V44PNTTK.js} +120 -21
- package/dist/dev/locales/fa-IR-V44PNTTK.js.map +7 -0
- package/dist/dev/locales/{fi-FI-UWZRVXFI.js → fi-FI-ZXSYWCC4.js} +104 -5
- package/dist/dev/locales/fi-FI-ZXSYWCC4.js.map +7 -0
- package/dist/dev/locales/{fr-FR-A72LKGCO.js → fr-FR-RJSOSEYS.js} +105 -6
- package/dist/dev/locales/fr-FR-RJSOSEYS.js.map +7 -0
- package/dist/dev/locales/{gl-ES-2QCVIBFP.js → gl-ES-NAUVMVFY.js} +104 -5
- package/dist/dev/locales/gl-ES-NAUVMVFY.js.map +7 -0
- package/dist/dev/locales/{he-IL-WJNUHU26.js → he-IL-JBKWWR75.js} +162 -63
- package/dist/dev/locales/he-IL-JBKWWR75.js.map +7 -0
- package/dist/dev/locales/{hi-IN-XGMO235V.js → hi-IN-SD773MVZ.js} +113 -14
- package/dist/dev/locales/hi-IN-SD773MVZ.js.map +7 -0
- package/dist/dev/locales/{hu-HU-37FDQFIS.js → hu-HU-OTA7GOAV.js} +193 -94
- package/dist/dev/locales/hu-HU-OTA7GOAV.js.map +7 -0
- package/dist/dev/locales/{id-ID-EJIDCO4E.js → id-ID-KGCGQFTT.js} +156 -57
- package/dist/dev/locales/id-ID-KGCGQFTT.js.map +7 -0
- package/dist/dev/locales/{it-IT-X34PIOJ2.js → it-IT-EWGEXMVK.js} +105 -6
- package/dist/dev/locales/it-IT-EWGEXMVK.js.map +7 -0
- package/dist/dev/locales/{ja-JP-37FC23PR.js → ja-JP-YMGRGBPS.js} +207 -108
- package/dist/dev/locales/ja-JP-YMGRGBPS.js.map +7 -0
- package/dist/dev/locales/{kaa-7ZYDFVKA.js → kaa-RRE7XUCW.js} +103 -4
- package/dist/dev/locales/kaa-RRE7XUCW.js.map +7 -0
- package/dist/dev/locales/{kab-KAB-MILWXBA6.js → kab-KAB-ZCYVOJU4.js} +104 -5
- package/dist/dev/locales/kab-KAB-ZCYVOJU4.js.map +7 -0
- package/dist/dev/locales/{kk-KZ-7BWTPIAV.js → kk-KZ-TO6XEFJC.js} +103 -4
- package/dist/dev/locales/kk-KZ-TO6XEFJC.js.map +7 -0
- package/dist/dev/locales/{km-KH-BV4P2KSZ.js → km-KH-3HTDL5HB.js} +104 -5
- package/dist/dev/locales/km-KH-3HTDL5HB.js.map +7 -0
- package/dist/dev/locales/{ko-KR-TSXE5P7B.js → ko-KR-O4L4O7L6.js} +184 -85
- package/dist/dev/locales/ko-KR-O4L4O7L6.js.map +7 -0
- package/dist/dev/locales/{ku-TR-ASSXNN3U.js → ku-TR-AFJWDY67.js} +104 -5
- package/dist/dev/locales/ku-TR-AFJWDY67.js.map +7 -0
- package/dist/dev/locales/{lt-LT-G7RZYQQU.js → lt-LT-7QOT2VDQ.js} +103 -4
- package/dist/dev/locales/lt-LT-7QOT2VDQ.js.map +7 -0
- package/dist/dev/locales/{lv-LV-DXNPBJZU.js → lv-LV-WV6C4NYF.js} +104 -5
- package/dist/dev/locales/lv-LV-WV6C4NYF.js.map +7 -0
- package/dist/dev/locales/{mr-IN-7F2ZCTCF.js → mr-IN-3TLYWOEI.js} +106 -7
- package/dist/dev/locales/mr-IN-3TLYWOEI.js.map +7 -0
- package/dist/dev/locales/{my-MM-NBI3KQGW.js → my-MM-NNL2QJT3.js} +103 -4
- package/dist/dev/locales/my-MM-NNL2QJT3.js.map +7 -0
- package/dist/dev/locales/{nb-NO-4DCTQT6L.js → nb-NO-PG3XLMEV.js} +105 -6
- package/dist/dev/locales/nb-NO-PG3XLMEV.js.map +7 -0
- package/dist/dev/locales/{nl-NL-XGZJ7V2V.js → nl-NL-MMOYEKKQ.js} +109 -10
- package/dist/dev/locales/nl-NL-MMOYEKKQ.js.map +7 -0
- package/dist/dev/locales/{nn-NO-FR534JV5.js → nn-NO-AAC2I2YX.js} +103 -4
- package/dist/dev/locales/nn-NO-AAC2I2YX.js.map +7 -0
- package/dist/dev/locales/{oc-FR-YQCIKZIK.js → oc-FR-SR6MFB4N.js} +105 -6
- package/dist/dev/locales/oc-FR-SR6MFB4N.js.map +7 -0
- package/dist/dev/locales/{pa-IN-UM43JGD2.js → pa-IN-ADGMQLQI.js} +104 -5
- package/dist/dev/locales/pa-IN-ADGMQLQI.js.map +7 -0
- package/dist/dev/locales/{percentages-OGWD7R2K.js → percentages-X2QIQ6XJ.js} +2 -2
- package/dist/dev/locales/{pl-PL-2UGKA6HK.js → pl-PL-FNIPTMVP.js} +105 -6
- package/dist/dev/locales/pl-PL-FNIPTMVP.js.map +7 -0
- package/dist/dev/locales/{pt-BR-H23QFYE3.js → pt-BR-67FMCDNE.js} +154 -55
- package/dist/dev/locales/pt-BR-67FMCDNE.js.map +7 -0
- package/dist/dev/locales/{pt-PT-RHKJH5I5.js → pt-PT-4G3GI4SF.js} +153 -54
- package/dist/dev/locales/pt-PT-4G3GI4SF.js.map +7 -0
- package/dist/dev/locales/{ro-RO-IIFONL3T.js → ro-RO-CUZFN555.js} +108 -9
- package/dist/dev/locales/ro-RO-CUZFN555.js.map +7 -0
- package/dist/dev/locales/{ru-RU-QEP6D7GK.js → ru-RU-4GHINTII.js} +107 -8
- package/dist/dev/locales/ru-RU-4GHINTII.js.map +7 -0
- package/dist/dev/locales/{si-LK-LZYJQLHF.js → si-LK-SSNT7T4A.js} +105 -6
- package/dist/dev/locales/si-LK-SSNT7T4A.js.map +7 -0
- package/dist/dev/locales/{sk-SK-RWC6UWGY.js → sk-SK-J7TKZQEH.js} +105 -6
- package/dist/dev/locales/sk-SK-J7TKZQEH.js.map +7 -0
- package/dist/dev/locales/{sl-SI-QJT2CAUO.js → sl-SI-SIBMLDYY.js} +152 -53
- package/dist/dev/locales/sl-SI-SIBMLDYY.js.map +7 -0
- package/dist/dev/locales/{sv-SE-3MAT3NDX.js → sv-SE-6GYGFZNL.js} +149 -50
- package/dist/dev/locales/sv-SE-6GYGFZNL.js.map +7 -0
- package/dist/dev/locales/{ta-IN-J7XOYF2T.js → ta-IN-7AW6CTGA.js} +103 -4
- package/dist/dev/locales/ta-IN-7AW6CTGA.js.map +7 -0
- package/dist/dev/locales/{th-TH-2OI52EOQ.js → th-TH-FP7ULYYM.js} +138 -39
- package/dist/dev/locales/th-TH-FP7ULYYM.js.map +7 -0
- package/dist/dev/locales/{tr-TR-G7TAUHUI.js → tr-TR-UDQGNXAG.js} +145 -46
- package/dist/dev/locales/tr-TR-UDQGNXAG.js.map +7 -0
- package/dist/dev/locales/{uk-UA-IVSVBJIG.js → uk-UA-25HL2NCU.js} +126 -27
- package/dist/dev/locales/uk-UA-25HL2NCU.js.map +7 -0
- package/dist/dev/locales/{uz-UZ-KCVDUVDE.js → uz-UZ-OPSBAY4H.js} +103 -4
- package/dist/dev/locales/uz-UZ-OPSBAY4H.js.map +7 -0
- package/dist/dev/locales/{vi-VN-KBZAVWP5.js → vi-VN-DK367UGA.js} +103 -4
- package/dist/dev/locales/vi-VN-DK367UGA.js.map +7 -0
- package/dist/dev/locales/{zh-CN-IS26RG2D.js → zh-CN-QCVKNWUH.js} +106 -7
- package/dist/dev/locales/zh-CN-QCVKNWUH.js.map +7 -0
- package/dist/dev/locales/{zh-HK-KBWQ6SJC.js → zh-HK-WFGYHWPG.js} +103 -4
- package/dist/dev/locales/zh-HK-WFGYHWPG.js.map +7 -0
- package/dist/dev/locales/{zh-TW-JKJWJQ4J.js → zh-TW-WHQS4ZSD.js} +151 -52
- package/dist/dev/locales/zh-TW-WHQS4ZSD.js.map +7 -0
- package/dist/dev/minimap-controller.chunk.js +516 -0
- package/dist/dev/minimap-controller.chunk.js.map +7 -0
- package/dist/dev/minimap-shared.chunk.js +19 -0
- package/dist/dev/minimap-shared.chunk.js.map +7 -0
- package/dist/dev/minimap-worker.chunk.js +20 -0
- package/dist/dev/minimap-worker.chunk.js.map +7 -0
- package/dist/prod/chunk-DYU5D34O.js +1 -0
- package/dist/prod/chunk-HMEZQHLQ.js +5 -0
- package/dist/prod/chunk-PEPMNMTR.js +12 -0
- package/dist/prod/chunk-TLY2GM7R.js +1 -0
- package/dist/prod/components/TTDDialog/CodeMirrorEditor-UCMRAMCV.js +1 -0
- package/dist/prod/data/{image-WVUQOLPF.js → image-CRT43OWP.js} +1 -1
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +74 -95
- package/dist/prod/locales/ar-SA-5WIASEJP.js +10 -0
- package/dist/prod/locales/az-AZ-V5EUQD6C.js +1 -0
- package/dist/prod/locales/bg-BG-EXASCMTR.js +5 -0
- package/dist/prod/locales/bn-BD-U4SYNFCO.js +3 -0
- package/dist/prod/locales/bn-IN-HKDJIITE.js +3 -0
- package/dist/prod/locales/ca-ES-2KGUU5XB.js +8 -0
- package/dist/prod/locales/cs-CZ-VUCGPRML.js +7 -0
- package/dist/prod/locales/da-DK-NNDP2IVP.js +2 -0
- package/dist/prod/locales/de-CH-I7RAVIZN.js +11 -0
- package/dist/prod/locales/de-DE-WBQ3DQLR.js +11 -0
- package/dist/prod/locales/el-GR-TYQHVGXW.js +7 -0
- package/dist/prod/locales/en-ZE5S2LAG.js +1 -0
- package/dist/prod/locales/es-ES-JEUOREKJ.js +12 -0
- package/dist/prod/locales/eu-ES-SO5DEEAN.js +8 -0
- package/dist/prod/locales/fa-IR-I4JNTJHK.js +9 -0
- package/dist/prod/locales/fi-FI-REAEF6HQ.js +6 -0
- package/dist/prod/locales/fr-FR-SUCL7J6B.js +12 -0
- package/dist/prod/locales/gl-ES-KHCSOGVH.js +6 -0
- package/dist/prod/locales/he-IL-JYXVXV2Q.js +9 -0
- package/dist/prod/locales/hi-IN-BU52H3BO.js +3 -0
- package/dist/prod/locales/hu-HU-OWADXDQ3.js +3 -0
- package/dist/prod/locales/id-ID-2WY7E4VX.js +8 -0
- package/dist/prod/locales/it-IT-INVHSAJF.js +12 -0
- package/dist/prod/locales/ja-JP-JBNTKYP4.js +12 -0
- package/dist/prod/locales/kaa-TC3VIB7V.js +1 -0
- package/dist/prod/locales/kab-KAB-UOUDSQKM.js +4 -0
- package/dist/prod/locales/kk-KZ-P5H2X7YS.js +1 -0
- package/dist/prod/locales/km-KH-IHMV2US7.js +7 -0
- package/dist/prod/locales/ko-KR-ZTMANIDF.js +5 -0
- package/dist/prod/locales/ku-TR-GPJTRB5G.js +6 -0
- package/dist/prod/locales/lt-LT-V3XDOK3P.js +3 -0
- package/dist/prod/locales/lv-LV-DVQ3FADO.js +4 -0
- package/dist/prod/locales/mr-IN-VZ6HH5FE.js +9 -0
- package/dist/prod/locales/my-MM-XYKWHRK6.js +1 -0
- package/dist/prod/locales/nb-NO-UNO2GGZJ.js +8 -0
- package/dist/prod/locales/nl-NL-76EFHT4P.js +13 -0
- package/dist/prod/locales/nn-NO-CFKD7ABE.js +4 -0
- package/dist/prod/locales/oc-FR-YBJTCJ3J.js +4 -0
- package/dist/prod/locales/pa-IN-SNOXSMRV.js +4 -0
- package/dist/prod/locales/percentages-LWOC67ZH.js +1 -0
- package/dist/prod/locales/pl-PL-BSY6YFZ3.js +12 -0
- package/dist/prod/locales/pt-BR-CZDV62R3.js +10 -0
- package/dist/prod/locales/pt-PT-JO57XJJW.js +12 -0
- package/dist/prod/locales/ro-RO-UZ5ICYYN.js +12 -0
- package/dist/prod/locales/ru-RU-AN7JPREC.js +10 -0
- package/dist/prod/locales/si-LK-7CBLD6QQ.js +1 -0
- package/dist/prod/locales/sk-SK-SWR6DKBI.js +7 -0
- package/dist/prod/locales/sl-SI-QY5KCFGA.js +8 -0
- package/dist/prod/locales/sv-SE-O3OFCY3J.js +12 -0
- package/dist/prod/locales/ta-IN-V6NHHU6Z.js +6 -0
- package/dist/prod/locales/th-TH-WLSZUSBX.js +1 -0
- package/dist/prod/locales/tr-TR-GUFYG22B.js +4 -0
- package/dist/prod/locales/uk-UA-K6SV5NFQ.js +6 -0
- package/dist/prod/locales/uz-UZ-TVKTZO2G.js +1 -0
- package/dist/prod/locales/vi-VN-7FKFXJNO.js +7 -0
- package/dist/prod/locales/zh-CN-AOKVLNNK.js +11 -0
- package/dist/prod/locales/zh-HK-CDKPF5DC.js +1 -0
- package/dist/prod/locales/zh-TW-ZVGYESGW.js +13 -0
- package/dist/prod/minimap-controller.chunk.js +1 -0
- package/dist/prod/minimap-shared.chunk.js +1 -0
- package/dist/prod/minimap-worker.chunk.js +1 -0
- package/dist/types/common/debug.d.ts +21 -0
- package/dist/types/common/src/appEventBus.d.ts +27 -0
- package/dist/types/common/src/colors.d.ts +24 -2
- package/dist/types/common/src/constants.d.ts +72 -7
- package/dist/types/common/src/index.d.ts +3 -0
- package/dist/types/common/src/keys.d.ts +6 -0
- package/dist/types/common/src/points.d.ts +1 -1
- package/dist/types/common/src/random.d.ts +7 -0
- package/dist/types/common/src/utils.d.ts +16 -50
- package/dist/types/common/src/versionedSnapshotStore.d.ts +17 -0
- package/dist/types/element/src/Scene.d.ts +9 -5
- package/dist/types/element/src/align.d.ts +5 -2
- package/dist/types/element/src/arrowEndpointText.d.ts +49 -0
- package/dist/types/element/src/arrowheads.d.ts +3 -0
- package/dist/types/element/src/arrows/focus.d.ts +30 -0
- package/dist/types/element/src/arrows/helpers.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +99 -17
- package/dist/types/element/src/bounds.d.ts +32 -9
- package/dist/types/element/src/bucketFill.d.ts +110 -0
- package/dist/types/element/src/collision.d.ts +20 -3
- package/dist/types/element/src/comparisons.d.ts +8 -5
- package/dist/types/element/src/convertToShape.d.ts +23 -0
- package/dist/types/element/src/cropElement.d.ts +36 -4
- package/dist/types/element/src/delta.d.ts +30 -2
- package/dist/types/element/src/distribute.d.ts +6 -2
- package/dist/types/element/src/dragElements.d.ts +34 -2
- package/dist/types/element/src/duplicate.d.ts +64 -3
- package/dist/types/element/src/elbowArrow.d.ts +7 -0
- package/dist/types/element/src/embeddable.d.ts +3 -2
- package/dist/types/element/src/flowchart.d.ts +9 -11
- package/dist/types/element/src/fractionalIndex.d.ts +2 -2
- package/dist/types/element/src/frame.d.ts +30 -11
- package/dist/types/element/src/groups.d.ts +10 -15
- package/dist/types/element/src/image.d.ts +5 -2
- package/dist/types/element/src/index.d.ts +10 -1
- package/dist/types/element/src/linearElementEditor.d.ts +36 -11
- package/dist/types/element/src/listMarker.d.ts +39 -0
- package/dist/types/element/src/mutateElement.d.ts +3 -1
- package/dist/types/element/src/newElement.d.ts +55 -3
- package/dist/types/element/src/renderElement.d.ts +31 -7
- package/dist/types/element/src/renderEnvironment.d.ts +66 -0
- package/dist/types/element/src/resizeElements.d.ts +14 -4
- package/dist/types/element/src/selection.d.ts +11 -13
- package/dist/types/element/src/shape.d.ts +30 -2
- package/dist/types/element/src/sizeHelpers.d.ts +6 -0
- package/dist/types/element/src/sortElements.d.ts +10 -0
- package/dist/types/element/src/stickyNote.d.ts +191 -0
- package/dist/types/element/src/textElement.d.ts +23 -11
- package/dist/types/element/src/textMeasurements.d.ts +15 -11
- package/dist/types/element/src/textWrapping.d.ts +28 -1
- package/dist/types/element/src/transform.d.ts +31 -8
- package/dist/types/element/src/typeChecks.d.ts +29 -27
- package/dist/types/element/src/types.d.ts +48 -9
- package/dist/types/element/src/utils.d.ts +19 -6
- package/dist/types/element/src/zindex.d.ts +2 -2
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +128 -53
- package/dist/types/excalidraw/actions/actionAlign.d.ts +6 -6
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +87 -213
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +371 -1027
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +86 -36
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +43 -18
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +4 -513
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +183 -0
- package/dist/types/excalidraw/actions/actionDistribute.d.ts +2 -3
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +39 -18
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +87 -37
- package/dist/types/excalidraw/actions/actionExport.d.ts +140 -364
- package/dist/types/excalidraw/actions/actionFinalize.d.ts +1 -0
- package/dist/types/excalidraw/actions/actionFrame.d.ts +157 -684
- package/dist/types/excalidraw/actions/actionGroup.d.ts +102 -52
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +100 -21
- package/dist/types/excalidraw/actions/actionLink.d.ts +44 -19
- package/dist/types/excalidraw/actions/actionMenu.d.ts +39 -18
- package/dist/types/excalidraw/actions/actionProperties.d.ts +122 -56
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +48 -23
- package/dist/types/excalidraw/actions/actionStyles.d.ts +44 -18
- package/dist/types/excalidraw/actions/actionTextAutoResize.d.ts +452 -6
- package/dist/types/excalidraw/actions/{actionEmbeddable.d.ts → actionToggleArrowBinding.d.ts} +58 -32
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +47 -23
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +196 -0
- package/dist/types/excalidraw/actions/actionToggleMinimap.d.ts +201 -0
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +44 -19
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +43 -23
- package/dist/types/excalidraw/actions/actionToggleShapeSwitch.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +198 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +44 -19
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +45 -20
- package/dist/types/excalidraw/actions/actionToggleWrap.d.ts +12 -0
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +44 -19
- package/dist/types/excalidraw/actions/colorTargets.d.ts +39 -0
- package/dist/types/excalidraw/actions/index.d.ts +7 -2
- package/dist/types/excalidraw/actions/manager.d.ts +1 -0
- package/dist/types/excalidraw/actions/shortcuts.d.ts +1 -1
- package/dist/types/excalidraw/actions/types.d.ts +8 -4
- package/dist/types/excalidraw/{animated-trail.d.ts → animatedTrail.d.ts} +4 -3
- package/dist/types/excalidraw/appState.d.ts +44 -17
- package/dist/types/excalidraw/charts/charts.bar.d.ts +3 -0
- package/dist/types/excalidraw/charts/charts.constants.d.ts +48 -0
- package/dist/types/excalidraw/charts/charts.helpers.d.ts +33 -0
- package/dist/types/excalidraw/charts/charts.line.d.ts +3 -0
- package/dist/types/excalidraw/charts/charts.parse.d.ts +10 -0
- package/dist/types/excalidraw/charts/charts.radar.d.ts +3 -0
- package/dist/types/excalidraw/charts/charts.types.d.ts +18 -0
- package/dist/types/excalidraw/charts/index.d.ts +8 -0
- package/dist/types/excalidraw/clipboard.d.ts +6 -7
- package/dist/types/excalidraw/components/Actions.d.ts +26 -13
- package/dist/types/excalidraw/components/ActiveConfirmDialog.d.ts +1 -1
- package/dist/types/excalidraw/components/App.arrowText.d.ts +70 -0
- package/dist/types/excalidraw/components/App.bucketFill.d.ts +48 -0
- package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
- package/dist/types/excalidraw/components/App.cursor.d.ts +38 -0
- package/dist/types/excalidraw/components/App.d.ts +376 -112
- package/dist/types/excalidraw/components/App.drawshape.d.ts +55 -0
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.flowchart.d.ts +21 -0
- package/dist/types/excalidraw/components/App.host.d.ts +102 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selection.d.ts +265 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +94 -0
- package/dist/types/excalidraw/components/App.text.d.ts +197 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.toolDrag.d.ts +63 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +133 -0
- package/dist/types/excalidraw/components/App.wheel.d.ts +30 -0
- package/dist/types/excalidraw/components/App.wrap.d.ts +39 -0
- package/dist/types/excalidraw/components/AppStateObserver.d.ts +37 -0
- package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/types/excalidraw/components/ColorPicker/CustomColorList.d.ts +3 -1
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +5 -1
- package/dist/types/excalidraw/components/ColorPicker/PickerColorList.d.ts +9 -2
- package/dist/types/excalidraw/components/ColorPicker/ShadeList.d.ts +4 -2
- package/dist/types/excalidraw/components/ColorPicker/TopPicks.d.ts +8 -1
- package/dist/types/excalidraw/components/ColorPicker/colorPickerUtils.d.ts +1 -1
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/ColorPicker/keyboardNavHandlers.d.ts +2 -1
- package/dist/types/excalidraw/components/CommandPalette/defaultCommandPaletteItems.d.ts +1 -2
- package/dist/types/excalidraw/components/CommandPalette/types.d.ts +1 -1
- package/dist/types/excalidraw/components/ConvertElementTypePopup.d.ts +4 -3
- package/dist/types/excalidraw/components/CursorHint.d.ts +46 -0
- package/dist/types/excalidraw/components/EyeDropper.d.ts +1 -1
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/IconButton.d.ts +48 -0
- package/dist/types/excalidraw/components/IconPicker.d.ts +14 -9
- package/dist/types/excalidraw/components/Island.d.ts +7 -0
- package/dist/types/excalidraw/components/LaserPointerButton.d.ts +2 -4
- package/dist/types/excalidraw/components/LayerUI.d.ts +5 -2
- package/dist/types/excalidraw/components/LibraryMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/LockButton.d.ts +3 -4
- package/dist/types/excalidraw/components/MagicButton.d.ts +0 -2
- package/dist/types/excalidraw/components/Minimap/Minimap.d.ts +15 -0
- package/dist/types/excalidraw/components/Minimap/MinimapAnnouncementDot.d.ts +10 -0
- package/dist/types/excalidraw/components/Minimap/minimap-controller.chunk.d.ts +90 -0
- package/dist/types/excalidraw/components/Minimap/minimap-shared.chunk.d.ts +122 -0
- package/dist/types/excalidraw/components/Minimap/minimap-worker.chunk.d.ts +12 -0
- package/dist/types/excalidraw/components/MobileMenu.d.ts +4 -4
- package/dist/types/excalidraw/components/MobileToolbar.d.ts +9 -0
- package/dist/types/excalidraw/components/OverwriteConfirm/OverwriteConfirmState.d.ts +1 -1
- package/dist/types/excalidraw/components/PasteChartDialog.d.ts +4 -5
- package/dist/types/excalidraw/components/PenModeButton.d.ts +2 -5
- package/dist/types/excalidraw/components/Popover.d.ts +1 -3
- package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -1
- package/dist/types/excalidraw/components/{ButtonIcon.d.ts → RadioButton.d.ts} +2 -5
- package/dist/types/excalidraw/components/Range.d.ts +10 -4
- package/dist/types/excalidraw/components/SVGLayer.d.ts +1 -1
- package/dist/types/excalidraw/components/SearchMenu.d.ts +1 -1
- package/dist/types/excalidraw/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/excalidraw/components/Stats/Angle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Dimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/DragInput.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiAngle.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiDimension.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/MultiPosition.d.ts +2 -2
- package/dist/types/excalidraw/components/Stats/Position.d.ts +3 -3
- package/dist/types/excalidraw/components/Stats/utils.d.ts +4 -2
- package/dist/types/excalidraw/components/TTDDialog/Chat/ChatInterface.d.ts +2 -6
- package/dist/types/excalidraw/components/TTDDialog/Chat/TTDChatPanel.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/CodeMirrorEditor.d.ts +11 -0
- package/dist/types/excalidraw/components/TTDDialog/MermaidToExcalidraw.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/TTDContext.d.ts +4 -4
- package/dist/types/excalidraw/components/TTDDialog/TTDDialog.d.ts +11 -7
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogInput.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/TTDDialogOutput.d.ts +8 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDPreviewPanel.d.ts +5 -2
- package/dist/types/excalidraw/components/TTDDialog/TTDWelcomeMessage.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/TextToDiagram.d.ts +3 -1
- package/dist/types/excalidraw/components/TTDDialog/common.d.ts +4 -1
- package/dist/types/excalidraw/components/TTDDialog/hooks/useTextGeneration.d.ts +3 -2
- package/dist/types/excalidraw/components/TTDDialog/mermaid-lang-lite.d.ts +2 -0
- package/dist/types/excalidraw/components/TTDDialog/types.d.ts +18 -1
- package/dist/types/excalidraw/components/TTDDialog/useTTDChatStorage.d.ts +3 -3
- package/dist/types/excalidraw/components/TTDDialog/utils/TTDStreamFetch.d.ts +2 -1
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidAutoFix.d.ts +1 -0
- package/dist/types/excalidraw/components/TTDDialog/utils/mermaidError.d.ts +26 -0
- package/dist/types/excalidraw/components/Toast.d.ts +8 -4
- package/dist/types/excalidraw/components/ToolPopover.d.ts +3 -6
- package/dist/types/excalidraw/components/Toolbar.d.ts +11 -0
- package/dist/types/excalidraw/components/Tools.d.ts +151 -0
- package/dist/types/excalidraw/components/Tooltip.d.ts +26 -2
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/UserList.d.ts +3 -2
- package/dist/types/excalidraw/components/ViewportStatusFrame/ViewportStatusFrame.d.ts +11 -0
- package/dist/types/excalidraw/components/canvases/InteractiveCanvas.d.ts +6 -2
- package/dist/types/excalidraw/components/canvases/NewElementCanvas.d.ts +3 -0
- package/dist/types/excalidraw/components/canvases/StaticCanvas.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenu.d.ts +30 -16
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuContent.d.ts +3 -2
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItem.d.ts +11 -12
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemCheckbox.d.ts +5 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContent.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuItemContentRadio.d.ts +2 -1
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSub.d.ts +23 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubContent.d.ts +8 -0
- package/dist/types/excalidraw/components/dropdownMenu/DropdownMenuSubTrigger.d.ts +12 -0
- package/dist/types/excalidraw/components/dropdownMenu/common.d.ts +1 -1
- package/dist/types/excalidraw/components/dropdownMenu/dropdownMenuUtils.d.ts +2 -0
- package/dist/types/excalidraw/components/footer/Footer.d.ts +5 -1
- package/dist/types/excalidraw/components/hyperlink/Hyperlink.d.ts +3 -2
- package/dist/types/excalidraw/components/hyperlink/helpers.d.ts +15 -4
- package/dist/types/excalidraw/components/icons.d.ts +31 -10
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +27 -3
- package/dist/types/excalidraw/components/main-menu/MainMenu.d.ts +23 -14
- package/dist/types/excalidraw/components/positionElementBesideCursor.d.ts +26 -0
- package/dist/types/excalidraw/components/shapeActionPredicates.d.ts +39 -0
- package/dist/types/excalidraw/data/blob.d.ts +119 -70
- package/dist/types/excalidraw/data/filesystem.d.ts +3 -5
- package/dist/types/excalidraw/data/index.d.ts +9 -10
- package/dist/types/excalidraw/data/json.d.ts +68 -35
- package/dist/types/excalidraw/data/library.d.ts +1 -1
- package/dist/types/excalidraw/data/resave.d.ts +7 -2
- package/dist/types/excalidraw/drawShapeTrail.d.ts +16 -0
- package/dist/types/excalidraw/eraser/index.d.ts +2 -3
- package/dist/types/excalidraw/fonts/Fonts.d.ts +12 -8
- package/dist/types/excalidraw/history.d.ts +10 -4
- package/dist/types/excalidraw/hooks/useAppStateValue.d.ts +29 -0
- package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
- package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +5 -5
- package/dist/types/excalidraw/index.d.ts +35 -7
- 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/lasso/utils.d.ts +2 -0
- package/dist/types/excalidraw/mermaid.d.ts +7 -0
- package/dist/types/excalidraw/reactUtils.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/renderer/animation.d.ts +15 -4
- package/dist/types/excalidraw/renderer/helpers.d.ts +25 -0
- package/dist/types/excalidraw/renderer/interactiveScene.d.ts +2 -4
- package/dist/types/excalidraw/renderer/staticScene.d.ts +11 -6
- package/dist/types/excalidraw/scene/Renderer.d.ts +490 -21
- package/dist/types/excalidraw/scene/export.d.ts +344 -21
- package/dist/types/excalidraw/scene/index.d.ts +2 -2
- package/dist/types/excalidraw/scene/types.d.ts +30 -5
- package/dist/types/excalidraw/snapping.d.ts +7 -7
- package/dist/types/excalidraw/textAutoResizeHandle.d.ts +15 -0
- package/dist/types/excalidraw/types.d.ts +702 -44
- package/dist/types/excalidraw/viewport.d.ts +303 -0
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +17 -3
- package/dist/types/fractional-indexing/src/index.d.ts +29 -0
- package/dist/types/laser-pointer/src/index.d.ts +2 -0
- package/dist/types/laser-pointer/src/math.d.ts +16 -0
- package/dist/types/laser-pointer/src/simplify.d.ts +2 -0
- package/dist/types/laser-pointer/src/state.d.ts +36 -0
- package/dist/types/math/src/constants.d.ts +0 -1
- package/dist/types/math/src/curve.d.ts +23 -13
- package/dist/types/math/src/index.d.ts +1 -0
- package/dist/types/math/src/pca.d.ts +79 -0
- package/dist/types/math/src/point.d.ts +8 -2
- package/dist/types/math/src/polygon.d.ts +25 -1
- package/dist/types/math/src/segment.d.ts +6 -0
- package/dist/types/math/src/types.d.ts +25 -1
- package/dist/types/utils/src/index.d.ts +4 -3
- package/dist/types/utils/src/shape.d.ts +2 -2
- package/history.ts +29 -4
- package/package.json +13 -10
- package/dist/dev/chunk-DJHLEOOZ.js +0 -69
- package/dist/dev/chunk-DJHLEOOZ.js.map +0 -7
- package/dist/dev/chunk-MNO2YU5M.js.map +0 -7
- package/dist/dev/chunk-PW6TXCLQ.js.map +0 -7
- package/dist/dev/locales/ar-SA-JK5MQ7TT.js.map +0 -7
- package/dist/dev/locales/az-AZ-2PAD62G4.js.map +0 -7
- package/dist/dev/locales/bg-BG-HUKVYCRK.js.map +0 -7
- package/dist/dev/locales/bn-BD-V2CQI46P.js.map +0 -7
- package/dist/dev/locales/bn-IN-MBEO4C3J.js.map +0 -7
- package/dist/dev/locales/ca-ES-KWEKW4C3.js.map +0 -7
- package/dist/dev/locales/cs-CZ-W5AHZB5H.js.map +0 -7
- package/dist/dev/locales/da-DK-ITTM6YM4.js.map +0 -7
- package/dist/dev/locales/de-CH-OAWPDQFJ.js.map +0 -7
- package/dist/dev/locales/de-DE-ZRDYEPMS.js.map +0 -7
- package/dist/dev/locales/el-GR-QXASZLPE.js.map +0 -7
- package/dist/dev/locales/es-ES-VLQBB7FJ.js.map +0 -7
- package/dist/dev/locales/eu-ES-TF2DGTZU.js.map +0 -7
- package/dist/dev/locales/fa-IR-ITKFQ7QV.js.map +0 -7
- package/dist/dev/locales/fi-FI-UWZRVXFI.js.map +0 -7
- package/dist/dev/locales/fr-FR-A72LKGCO.js.map +0 -7
- package/dist/dev/locales/gl-ES-2QCVIBFP.js.map +0 -7
- package/dist/dev/locales/he-IL-WJNUHU26.js.map +0 -7
- package/dist/dev/locales/hi-IN-XGMO235V.js.map +0 -7
- package/dist/dev/locales/hu-HU-37FDQFIS.js.map +0 -7
- package/dist/dev/locales/id-ID-EJIDCO4E.js.map +0 -7
- package/dist/dev/locales/it-IT-X34PIOJ2.js.map +0 -7
- package/dist/dev/locales/ja-JP-37FC23PR.js.map +0 -7
- package/dist/dev/locales/kaa-7ZYDFVKA.js.map +0 -7
- package/dist/dev/locales/kab-KAB-MILWXBA6.js.map +0 -7
- package/dist/dev/locales/kk-KZ-7BWTPIAV.js.map +0 -7
- package/dist/dev/locales/km-KH-BV4P2KSZ.js.map +0 -7
- package/dist/dev/locales/ko-KR-TSXE5P7B.js.map +0 -7
- package/dist/dev/locales/ku-TR-ASSXNN3U.js.map +0 -7
- package/dist/dev/locales/lt-LT-G7RZYQQU.js.map +0 -7
- package/dist/dev/locales/lv-LV-DXNPBJZU.js.map +0 -7
- package/dist/dev/locales/mr-IN-7F2ZCTCF.js.map +0 -7
- package/dist/dev/locales/my-MM-NBI3KQGW.js.map +0 -7
- package/dist/dev/locales/nb-NO-4DCTQT6L.js.map +0 -7
- package/dist/dev/locales/nl-NL-XGZJ7V2V.js.map +0 -7
- package/dist/dev/locales/nn-NO-FR534JV5.js.map +0 -7
- package/dist/dev/locales/oc-FR-YQCIKZIK.js.map +0 -7
- package/dist/dev/locales/pa-IN-UM43JGD2.js.map +0 -7
- package/dist/dev/locales/pl-PL-2UGKA6HK.js.map +0 -7
- package/dist/dev/locales/pt-BR-H23QFYE3.js.map +0 -7
- package/dist/dev/locales/pt-PT-RHKJH5I5.js.map +0 -7
- package/dist/dev/locales/ro-RO-IIFONL3T.js.map +0 -7
- package/dist/dev/locales/ru-RU-QEP6D7GK.js.map +0 -7
- package/dist/dev/locales/si-LK-LZYJQLHF.js.map +0 -7
- package/dist/dev/locales/sk-SK-RWC6UWGY.js.map +0 -7
- package/dist/dev/locales/sl-SI-QJT2CAUO.js.map +0 -7
- package/dist/dev/locales/sv-SE-3MAT3NDX.js.map +0 -7
- package/dist/dev/locales/ta-IN-J7XOYF2T.js.map +0 -7
- package/dist/dev/locales/th-TH-2OI52EOQ.js.map +0 -7
- package/dist/dev/locales/tr-TR-G7TAUHUI.js.map +0 -7
- package/dist/dev/locales/uk-UA-IVSVBJIG.js.map +0 -7
- package/dist/dev/locales/uz-UZ-KCVDUVDE.js.map +0 -7
- package/dist/dev/locales/vi-VN-KBZAVWP5.js.map +0 -7
- package/dist/dev/locales/zh-CN-IS26RG2D.js.map +0 -7
- package/dist/dev/locales/zh-HK-KBWQ6SJC.js.map +0 -7
- package/dist/dev/locales/zh-TW-JKJWJQ4J.js.map +0 -7
- package/dist/prod/chunk-AJI3LATG.js +0 -1
- package/dist/prod/chunk-COMIBRVY.js +0 -12
- package/dist/prod/chunk-R7EP47KM.js +0 -4
- package/dist/prod/locales/ar-SA-IYHKZRSE.js +0 -8
- package/dist/prod/locales/az-AZ-WL5GYRHK.js +0 -1
- package/dist/prod/locales/bg-BG-FXZYTRPD.js +0 -5
- package/dist/prod/locales/bn-BD-KO6YL5G2.js +0 -3
- package/dist/prod/locales/bn-IN-PC6JHKYB.js +0 -3
- package/dist/prod/locales/ca-ES-AREX5NEO.js +0 -8
- package/dist/prod/locales/cs-CZ-HXAZMFYH.js +0 -7
- package/dist/prod/locales/da-DK-5X7ZLFU3.js +0 -2
- package/dist/prod/locales/de-CH-76ZNVSOF.js +0 -7
- package/dist/prod/locales/de-DE-G3JVZ4MQ.js +0 -7
- package/dist/prod/locales/el-GR-4AZTZGY6.js +0 -7
- package/dist/prod/locales/en-TSRAEZ4E.js +0 -1
- package/dist/prod/locales/es-ES-ART7BI3G.js +0 -7
- package/dist/prod/locales/eu-ES-BIF4XBMT.js +0 -7
- package/dist/prod/locales/fa-IR-D4HHKAAI.js +0 -9
- package/dist/prod/locales/fi-FI-O35ZY7UI.js +0 -6
- package/dist/prod/locales/fr-FR-XEFNCM4I.js +0 -12
- package/dist/prod/locales/gl-ES-U4NYM3X5.js +0 -6
- package/dist/prod/locales/he-IL-656ABAVQ.js +0 -8
- package/dist/prod/locales/hi-IN-Z55GAFFR.js +0 -3
- package/dist/prod/locales/hu-HU-UJ62DVIW.js +0 -3
- package/dist/prod/locales/id-ID-FLZFU3OO.js +0 -8
- package/dist/prod/locales/it-IT-GIGIGIBJ.js +0 -12
- package/dist/prod/locales/ja-JP-43VXGDWI.js +0 -7
- package/dist/prod/locales/kaa-L3IMSDYL.js +0 -1
- package/dist/prod/locales/kab-KAB-XKPWJLNL.js +0 -4
- package/dist/prod/locales/kk-KZ-SXPDDY2H.js +0 -1
- package/dist/prod/locales/km-KH-DOS4CPGC.js +0 -7
- package/dist/prod/locales/ko-KR-BGC6VCY4.js +0 -5
- package/dist/prod/locales/ku-TR-J7IUITIA.js +0 -6
- package/dist/prod/locales/lt-LT-AC3LV5KG.js +0 -3
- package/dist/prod/locales/lv-LV-I6AY7QG2.js +0 -4
- package/dist/prod/locales/mr-IN-5SP4HV5B.js +0 -9
- package/dist/prod/locales/my-MM-S7ECRBYZ.js +0 -1
- package/dist/prod/locales/nb-NO-6PNHTF4R.js +0 -8
- package/dist/prod/locales/nl-NL-R4C4SUIG.js +0 -13
- package/dist/prod/locales/nn-NO-3TFXTM7Y.js +0 -4
- package/dist/prod/locales/oc-FR-IK6GIE7H.js +0 -4
- package/dist/prod/locales/pa-IN-YAKHYJET.js +0 -4
- package/dist/prod/locales/percentages-OL6W367U.js +0 -1
- package/dist/prod/locales/pl-PL-BIY22ZWU.js +0 -12
- package/dist/prod/locales/pt-BR-Q23NUPD6.js +0 -6
- package/dist/prod/locales/pt-PT-LOPEJLPJ.js +0 -8
- package/dist/prod/locales/ro-RO-W3D2ZATV.js +0 -12
- package/dist/prod/locales/ru-RU-DCTW7QSH.js +0 -10
- package/dist/prod/locales/si-LK-FYRRHO3C.js +0 -1
- package/dist/prod/locales/sk-SK-MC7UOHQO.js +0 -7
- package/dist/prod/locales/sl-SI-L6B6HFY5.js +0 -6
- package/dist/prod/locales/sv-SE-KMY6L2BA.js +0 -8
- package/dist/prod/locales/ta-IN-ZQCYE2JK.js +0 -6
- package/dist/prod/locales/th-TH-WS7ECBAV.js +0 -1
- package/dist/prod/locales/tr-TR-S5FI7JRW.js +0 -4
- package/dist/prod/locales/uk-UA-4EZUWUSQ.js +0 -6
- package/dist/prod/locales/uz-UZ-OKHL6AFA.js +0 -1
- package/dist/prod/locales/vi-VN-K34TWHF7.js +0 -7
- package/dist/prod/locales/zh-CN-JE4UZWNO.js +0 -11
- package/dist/prod/locales/zh-HK-RM35YDXX.js +0 -1
- package/dist/prod/locales/zh-TW-ONGLV6Y5.js +0 -9
- package/dist/types/excalidraw/animation-frame-handler.d.ts +0 -16
- package/dist/types/excalidraw/charts.d.ts +0 -27
- package/dist/types/excalidraw/components/FollowMode/FollowMode.d.ts +0 -10
- package/dist/types/excalidraw/components/HandButton.d.ts +0 -10
- package/dist/types/excalidraw/components/MobileToolBar.d.ts +0 -10
- package/dist/types/excalidraw/components/ToolButton.d.ts +0 -49
- package/dist/types/excalidraw/components/shapes.d.ts +0 -190
- package/dist/types/excalidraw/cursor.d.ts +0 -5
- package/dist/types/excalidraw/scene/scroll.d.ts +0 -18
- package/dist/types/excalidraw/scene/zoom.d.ts +0 -12
- package/dist/types/utils/src/bbox.d.ts +0 -9
- package/dist/types/utils/src/export.d.ts +0 -35
- package/dist/types/utils/src/withinBounds.d.ts +0 -19
- /package/dist/dev/data/{image-2BHUUSLM.js.map → image-MEFJ53NR.js.map} +0 -0
- /package/dist/dev/locales/{en-JRVQ7H6V.js.map → en-S76M77LQ.js.map} +0 -0
- /package/dist/dev/locales/{percentages-OGWD7R2K.js.map → percentages-X2QIQ6XJ.js.map} +0 -0
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__publicField
|
|
3
|
+
} from "./chunk-XDFCUUT6.js";
|
|
4
|
+
|
|
5
|
+
// components/Minimap/minimap-shared.chunk.ts
|
|
6
|
+
var MinimapRecord = {
|
|
7
|
+
/** drawn as a filled block */
|
|
8
|
+
BOX: 0,
|
|
9
|
+
/** drawn as an outline, so that it doesn't cover its children */
|
|
10
|
+
FRAME: 1,
|
|
11
|
+
/** drawn as a polyline */
|
|
12
|
+
PATH: 2
|
|
13
|
+
};
|
|
14
|
+
var MINIMAP_BOX_RECORD_SIZE = 6;
|
|
15
|
+
var MINIMAP_PATH_RECORD_HEADER_SIZE = 5;
|
|
16
|
+
var PADDING = 8;
|
|
17
|
+
var MIN_BLOCK_SIZE = 1.5;
|
|
18
|
+
var MINIMAP_MIN_VIEWPORT_SIZE = 6;
|
|
19
|
+
var PATH_WIDTH = 1.25;
|
|
20
|
+
var VIEWPORT_ALPHA = 0.25;
|
|
21
|
+
var VIEWPORT_OPAQUE_SIZE = 0.05;
|
|
22
|
+
var VIEWPORT_TRANSLUCENT_SIZE = 0.12;
|
|
23
|
+
var isSameTransform = (a, b) => !!a && a.scale === b.scale && a.translateX === b.translateX && a.translateY === b.translateY;
|
|
24
|
+
var getMinimapViewportRect = (viewport, transform) => {
|
|
25
|
+
const width = Math.max(
|
|
26
|
+
viewport.width * transform.scale,
|
|
27
|
+
MINIMAP_MIN_VIEWPORT_SIZE
|
|
28
|
+
);
|
|
29
|
+
const height = Math.max(
|
|
30
|
+
viewport.height * transform.scale,
|
|
31
|
+
MINIMAP_MIN_VIEWPORT_SIZE
|
|
32
|
+
);
|
|
33
|
+
return {
|
|
34
|
+
x: (viewport.x + viewport.width / 2) * transform.scale + transform.translateX - width / 2,
|
|
35
|
+
y: (viewport.y + viewport.height / 2) * transform.scale + transform.translateY - height / 2,
|
|
36
|
+
width,
|
|
37
|
+
height
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
var getRecordsBounds = (records) => {
|
|
41
|
+
let minX = Infinity;
|
|
42
|
+
let minY = Infinity;
|
|
43
|
+
let maxX = -Infinity;
|
|
44
|
+
let maxY = -Infinity;
|
|
45
|
+
const extend = (x1, y1, x2, y2, angle) => {
|
|
46
|
+
if (angle) {
|
|
47
|
+
const cos = Math.abs(Math.cos(angle));
|
|
48
|
+
const sin = Math.abs(Math.sin(angle));
|
|
49
|
+
const cx = (x1 + x2) / 2;
|
|
50
|
+
const cy = (y1 + y2) / 2;
|
|
51
|
+
const halfWidth = (x2 - x1) / 2;
|
|
52
|
+
const halfHeight = (y2 - y1) / 2;
|
|
53
|
+
const extentX = halfWidth * cos + halfHeight * sin;
|
|
54
|
+
const extentY = halfWidth * sin + halfHeight * cos;
|
|
55
|
+
x1 = cx - extentX;
|
|
56
|
+
x2 = cx + extentX;
|
|
57
|
+
y1 = cy - extentY;
|
|
58
|
+
y2 = cy + extentY;
|
|
59
|
+
}
|
|
60
|
+
minX = Math.min(minX, x1);
|
|
61
|
+
minY = Math.min(minY, y1);
|
|
62
|
+
maxX = Math.max(maxX, x2);
|
|
63
|
+
maxY = Math.max(maxY, y2);
|
|
64
|
+
};
|
|
65
|
+
let i = 0;
|
|
66
|
+
while (i < records.length) {
|
|
67
|
+
if (records[i] === MinimapRecord.PATH) {
|
|
68
|
+
const [x1, y1, x2, y2] = getPathBounds(records, i);
|
|
69
|
+
extend(x1, y1, x2, y2, records[i + 3]);
|
|
70
|
+
i += MINIMAP_PATH_RECORD_HEADER_SIZE + records[i + 4] * 2;
|
|
71
|
+
} else {
|
|
72
|
+
const x = records[i + 1];
|
|
73
|
+
const y = records[i + 2];
|
|
74
|
+
const width = records[i + 3];
|
|
75
|
+
const height = records[i + 4];
|
|
76
|
+
extend(
|
|
77
|
+
Math.min(x, x + width),
|
|
78
|
+
Math.min(y, y + height),
|
|
79
|
+
Math.max(x, x + width),
|
|
80
|
+
Math.max(y, y + height),
|
|
81
|
+
records[i + 5]
|
|
82
|
+
);
|
|
83
|
+
i += MINIMAP_BOX_RECORD_SIZE;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return Number.isFinite(minX) ? [minX, minY, maxX, maxY] : null;
|
|
87
|
+
};
|
|
88
|
+
var getPathBounds = (records, offset) => {
|
|
89
|
+
const x = records[offset + 1];
|
|
90
|
+
const y = records[offset + 2];
|
|
91
|
+
const count = records[offset + 4];
|
|
92
|
+
let minX = Infinity;
|
|
93
|
+
let minY = Infinity;
|
|
94
|
+
let maxX = -Infinity;
|
|
95
|
+
let maxY = -Infinity;
|
|
96
|
+
for (let p = 0; p < count; p++) {
|
|
97
|
+
const px = records[offset + MINIMAP_PATH_RECORD_HEADER_SIZE + p * 2];
|
|
98
|
+
const py = records[offset + MINIMAP_PATH_RECORD_HEADER_SIZE + p * 2 + 1];
|
|
99
|
+
minX = Math.min(minX, px);
|
|
100
|
+
minY = Math.min(minY, py);
|
|
101
|
+
maxX = Math.max(maxX, px);
|
|
102
|
+
maxY = Math.max(maxY, py);
|
|
103
|
+
}
|
|
104
|
+
if (!count) {
|
|
105
|
+
return [x, y, x, y];
|
|
106
|
+
}
|
|
107
|
+
return [x + minX, y + minY, x + maxX, y + maxY];
|
|
108
|
+
};
|
|
109
|
+
var MinimapRenderer = class {
|
|
110
|
+
constructor(canvas, config) {
|
|
111
|
+
this.canvas = canvas;
|
|
112
|
+
this.config = config;
|
|
113
|
+
__publicField(this, "context");
|
|
114
|
+
/**
|
|
115
|
+
* The elements rendered with `layerTransform`, so that viewport-only
|
|
116
|
+
* changes (panning, zooming) don't redraw every element.
|
|
117
|
+
*/
|
|
118
|
+
__publicField(this, "layer");
|
|
119
|
+
__publicField(this, "layerContext");
|
|
120
|
+
__publicField(this, "layerTransform", null);
|
|
121
|
+
__publicField(this, "records", new Float32Array(0));
|
|
122
|
+
__publicField(this, "contentBounds", null);
|
|
123
|
+
__publicField(this, "viewport", null);
|
|
124
|
+
__publicField(this, "lockedTransform", null);
|
|
125
|
+
this.context = canvas.getContext("2d");
|
|
126
|
+
this.layer = typeof OffscreenCanvas !== "undefined" ? new OffscreenCanvas(1, 1) : canvas.ownerDocument.createElement("canvas");
|
|
127
|
+
this.layerContext = this.layer.getContext("2d");
|
|
128
|
+
this.resize();
|
|
129
|
+
}
|
|
130
|
+
setConfig(config) {
|
|
131
|
+
this.config = config;
|
|
132
|
+
this.resize();
|
|
133
|
+
}
|
|
134
|
+
setElements(records) {
|
|
135
|
+
this.records = records;
|
|
136
|
+
this.contentBounds = getRecordsBounds(records);
|
|
137
|
+
this.layerTransform = null;
|
|
138
|
+
}
|
|
139
|
+
setViewport(viewport) {
|
|
140
|
+
this.viewport = viewport;
|
|
141
|
+
}
|
|
142
|
+
getContentBounds() {
|
|
143
|
+
return this.contentBounds;
|
|
144
|
+
}
|
|
145
|
+
setLockedTransform(transform) {
|
|
146
|
+
this.lockedTransform = transform;
|
|
147
|
+
}
|
|
148
|
+
resize() {
|
|
149
|
+
const { width, height, devicePixelRatio } = this.config;
|
|
150
|
+
for (const canvas of [this.canvas, this.layer]) {
|
|
151
|
+
canvas.width = Math.max(1, Math.round(width * devicePixelRatio));
|
|
152
|
+
canvas.height = Math.max(1, Math.round(height * devicePixelRatio));
|
|
153
|
+
}
|
|
154
|
+
this.layerTransform = null;
|
|
155
|
+
}
|
|
156
|
+
/** fits the content along with the viewport into the minimap */
|
|
157
|
+
getTransform() {
|
|
158
|
+
if (this.lockedTransform) {
|
|
159
|
+
return this.lockedTransform;
|
|
160
|
+
}
|
|
161
|
+
let [minX, minY, maxX, maxY] = this.contentBounds ?? [
|
|
162
|
+
Infinity,
|
|
163
|
+
Infinity,
|
|
164
|
+
-Infinity,
|
|
165
|
+
-Infinity
|
|
166
|
+
];
|
|
167
|
+
if (this.viewport) {
|
|
168
|
+
minX = Math.min(minX, this.viewport.x);
|
|
169
|
+
minY = Math.min(minY, this.viewport.y);
|
|
170
|
+
maxX = Math.max(maxX, this.viewport.x + this.viewport.width);
|
|
171
|
+
maxY = Math.max(maxY, this.viewport.y + this.viewport.height);
|
|
172
|
+
}
|
|
173
|
+
const { width, height } = this.config;
|
|
174
|
+
if (!Number.isFinite(minX)) {
|
|
175
|
+
return { scale: 1, translateX: width / 2, translateY: height / 2 };
|
|
176
|
+
}
|
|
177
|
+
const scale = Math.min(
|
|
178
|
+
Math.max(width - PADDING * 2, 1) / Math.max(maxX - minX, 1),
|
|
179
|
+
Math.max(height - PADDING * 2, 1) / Math.max(maxY - minY, 1)
|
|
180
|
+
);
|
|
181
|
+
return {
|
|
182
|
+
scale,
|
|
183
|
+
translateX: width / 2 - (minX + maxX) / 2 * scale,
|
|
184
|
+
translateY: height / 2 - (minY + maxY) / 2 * scale
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
renderLayer(transform) {
|
|
188
|
+
const context = this.layerContext;
|
|
189
|
+
if (!context) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
const { devicePixelRatio, colors } = this.config;
|
|
193
|
+
const { scale, translateX, translateY } = transform;
|
|
194
|
+
const { records } = this;
|
|
195
|
+
context.setTransform(1, 0, 0, 1, 0, 0);
|
|
196
|
+
context.clearRect(0, 0, this.layer.width, this.layer.height);
|
|
197
|
+
context.fillStyle = colors.element;
|
|
198
|
+
context.strokeStyle = colors.element;
|
|
199
|
+
context.lineWidth = PATH_WIDTH;
|
|
200
|
+
context.lineJoin = "round";
|
|
201
|
+
context.lineCap = "round";
|
|
202
|
+
const resetTransform = () => context.setTransform(devicePixelRatio, 0, 0, devicePixelRatio, 0, 0);
|
|
203
|
+
const rotate = (angle, cx, cy) => {
|
|
204
|
+
context.translate(cx, cy);
|
|
205
|
+
context.rotate(angle);
|
|
206
|
+
context.translate(-cx, -cy);
|
|
207
|
+
};
|
|
208
|
+
resetTransform();
|
|
209
|
+
let i = 0;
|
|
210
|
+
while (i < records.length) {
|
|
211
|
+
const kind = records[i];
|
|
212
|
+
if (kind === MinimapRecord.PATH) {
|
|
213
|
+
const count = records[i + 4];
|
|
214
|
+
const angle2 = records[i + 3];
|
|
215
|
+
const originX = records[i + 1] * scale + translateX;
|
|
216
|
+
const originY = records[i + 2] * scale + translateY;
|
|
217
|
+
const points = i + MINIMAP_PATH_RECORD_HEADER_SIZE;
|
|
218
|
+
if (angle2) {
|
|
219
|
+
const [x1, y1, x2, y2] = getPathBounds(records, i);
|
|
220
|
+
rotate(
|
|
221
|
+
angle2,
|
|
222
|
+
(x1 + x2) / 2 * scale + translateX,
|
|
223
|
+
(y1 + y2) / 2 * scale + translateY
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
context.beginPath();
|
|
227
|
+
for (let p = 0; p < count; p++) {
|
|
228
|
+
const x = originX + records[points + p * 2] * scale;
|
|
229
|
+
const y = originY + records[points + p * 2 + 1] * scale;
|
|
230
|
+
if (p === 0) {
|
|
231
|
+
context.moveTo(x, y);
|
|
232
|
+
} else {
|
|
233
|
+
context.lineTo(x, y);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
if (count === 1) {
|
|
237
|
+
context.lineTo(originX, originY);
|
|
238
|
+
}
|
|
239
|
+
context.stroke();
|
|
240
|
+
if (angle2) {
|
|
241
|
+
resetTransform();
|
|
242
|
+
}
|
|
243
|
+
i += MINIMAP_PATH_RECORD_HEADER_SIZE + count * 2;
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
const angle = records[i + 5];
|
|
247
|
+
const width = Math.max(Math.abs(records[i + 3]) * scale, MIN_BLOCK_SIZE);
|
|
248
|
+
const height = Math.max(Math.abs(records[i + 4]) * scale, MIN_BLOCK_SIZE);
|
|
249
|
+
const cx = (records[i + 1] + records[i + 3] / 2) * scale + translateX;
|
|
250
|
+
const cy = (records[i + 2] + records[i + 4] / 2) * scale + translateY;
|
|
251
|
+
if (angle) {
|
|
252
|
+
rotate(angle, cx, cy);
|
|
253
|
+
}
|
|
254
|
+
if (kind === MinimapRecord.FRAME) {
|
|
255
|
+
context.strokeRect(cx - width / 2, cy - height / 2, width, height);
|
|
256
|
+
} else {
|
|
257
|
+
context.fillRect(cx - width / 2, cy - height / 2, width, height);
|
|
258
|
+
}
|
|
259
|
+
if (angle) {
|
|
260
|
+
resetTransform();
|
|
261
|
+
}
|
|
262
|
+
i += MINIMAP_BOX_RECORD_SIZE;
|
|
263
|
+
}
|
|
264
|
+
this.layerTransform = transform;
|
|
265
|
+
}
|
|
266
|
+
render() {
|
|
267
|
+
const transform = this.getTransform();
|
|
268
|
+
const context = this.context;
|
|
269
|
+
if (!context) {
|
|
270
|
+
return transform;
|
|
271
|
+
}
|
|
272
|
+
if (!isSameTransform(this.layerTransform, transform)) {
|
|
273
|
+
this.renderLayer(transform);
|
|
274
|
+
}
|
|
275
|
+
const { devicePixelRatio, colors } = this.config;
|
|
276
|
+
context.setTransform(1, 0, 0, 1, 0, 0);
|
|
277
|
+
context.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
278
|
+
context.drawImage(this.layer, 0, 0);
|
|
279
|
+
if (this.viewport) {
|
|
280
|
+
const { x, y, width, height } = getMinimapViewportRect(
|
|
281
|
+
this.viewport,
|
|
282
|
+
transform
|
|
283
|
+
);
|
|
284
|
+
const size = Math.max(
|
|
285
|
+
width / this.config.width,
|
|
286
|
+
height / this.config.height
|
|
287
|
+
);
|
|
288
|
+
const translucency = Math.min(
|
|
289
|
+
Math.max(
|
|
290
|
+
(size - VIEWPORT_OPAQUE_SIZE) / (VIEWPORT_TRANSLUCENT_SIZE - VIEWPORT_OPAQUE_SIZE),
|
|
291
|
+
0
|
|
292
|
+
),
|
|
293
|
+
1
|
|
294
|
+
);
|
|
295
|
+
context.setTransform(devicePixelRatio, 0, 0, devicePixelRatio, 0, 0);
|
|
296
|
+
context.globalAlpha = 1 - translucency * (1 - VIEWPORT_ALPHA);
|
|
297
|
+
context.fillStyle = colors.viewport;
|
|
298
|
+
context.beginPath();
|
|
299
|
+
if (context.roundRect) {
|
|
300
|
+
context.roundRect(x, y, width, height, 2);
|
|
301
|
+
} else {
|
|
302
|
+
context.rect(x, y, width, height);
|
|
303
|
+
}
|
|
304
|
+
context.fill();
|
|
305
|
+
context.globalAlpha = 1;
|
|
306
|
+
}
|
|
307
|
+
return transform;
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
var defaultScheduler = {
|
|
311
|
+
requestFrame: (callback) => typeof requestAnimationFrame === "function" ? requestAnimationFrame(callback) : setTimeout(callback, 16),
|
|
312
|
+
cancelFrame: (id) => {
|
|
313
|
+
if (typeof cancelAnimationFrame === "function") {
|
|
314
|
+
cancelAnimationFrame(id);
|
|
315
|
+
} else {
|
|
316
|
+
clearTimeout(id);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
var createMinimapEndpoint = (postMessage, { requestFrame, cancelFrame } = defaultScheduler) => {
|
|
321
|
+
let renderer = null;
|
|
322
|
+
let frameId = null;
|
|
323
|
+
let elementsSeq = -1;
|
|
324
|
+
let reportedSeq = -1;
|
|
325
|
+
let reportedTransform = null;
|
|
326
|
+
const render = () => {
|
|
327
|
+
frameId = null;
|
|
328
|
+
if (!renderer || elementsSeq < 0) {
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
const transform = renderer.render();
|
|
332
|
+
if (reportedSeq !== elementsSeq || !isSameTransform(reportedTransform, transform)) {
|
|
333
|
+
reportedSeq = elementsSeq;
|
|
334
|
+
reportedTransform = transform;
|
|
335
|
+
postMessage({
|
|
336
|
+
type: "frame",
|
|
337
|
+
transform,
|
|
338
|
+
elementsSeq,
|
|
339
|
+
contentBounds: renderer.getContentBounds()
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
return {
|
|
344
|
+
handle: (message) => {
|
|
345
|
+
switch (message.type) {
|
|
346
|
+
case "init":
|
|
347
|
+
renderer = new MinimapRenderer(message.canvas, message.config);
|
|
348
|
+
break;
|
|
349
|
+
case "config":
|
|
350
|
+
renderer?.setConfig(message.config);
|
|
351
|
+
break;
|
|
352
|
+
case "elements":
|
|
353
|
+
elementsSeq = message.seq;
|
|
354
|
+
renderer?.setElements(message.records);
|
|
355
|
+
break;
|
|
356
|
+
case "viewport":
|
|
357
|
+
renderer?.setViewport(message.viewport);
|
|
358
|
+
break;
|
|
359
|
+
case "lock":
|
|
360
|
+
renderer?.setLockedTransform(message.transform);
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
if (frameId === null) {
|
|
364
|
+
frameId = requestFrame(render);
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
destroy: () => {
|
|
368
|
+
if (frameId !== null) {
|
|
369
|
+
cancelFrame(frameId);
|
|
370
|
+
frameId = null;
|
|
371
|
+
}
|
|
372
|
+
renderer = null;
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
export {
|
|
378
|
+
MinimapRecord,
|
|
379
|
+
MINIMAP_BOX_RECORD_SIZE,
|
|
380
|
+
MINIMAP_PATH_RECORD_HEADER_SIZE,
|
|
381
|
+
MINIMAP_MIN_VIEWPORT_SIZE,
|
|
382
|
+
getMinimapViewportRect,
|
|
383
|
+
createMinimapEndpoint
|
|
384
|
+
};
|
|
385
|
+
//# sourceMappingURL=chunk-CB5LBNRX.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../components/Minimap/minimap-shared.chunk.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Minimap renderer & message protocol, shared by the worker and by the\n * main-thread fallback.\n *\n * DON'T depend on anything from the outside, as this module is part of a\n * separate lazy-loaded chunk that's also loaded by the worker \u2014 including\n * anything from the main chunk would pull the whole editor into the worker.\n */\n\n// -----------------------------------------------------------------------------\n// protocol\n// -----------------------------------------------------------------------------\n\n/**\n * Elements are sent as a flat Float32Array of records, so that the main\n * thread only copies a few numbers per element and everything else (bounds,\n * transform, drawing) happens off the main thread. Each record starts with\n * its kind:\n *\n * - `BOX` & `FRAME`: `kind, x, y, width, height, angle`\n * - `PATH`: `kind, x, y, angle, pointsCount, ...[pointX, pointY]` (points\n * are relative to `x`/`y`, same as on linear elements)\n */\nexport const MinimapRecord = {\n /** drawn as a filled block */\n BOX: 0,\n /** drawn as an outline, so that it doesn't cover its children */\n FRAME: 1,\n /** drawn as a polyline */\n PATH: 2,\n} as const;\n\nexport const MINIMAP_BOX_RECORD_SIZE = 6;\nexport const MINIMAP_PATH_RECORD_HEADER_SIZE = 5;\n\n/** scene \u2192 minimap (CSS pixels): `minimap = scene * scale + translate` */\nexport type MinimapTransform = {\n scale: number;\n translateX: number;\n translateY: number;\n};\n\n/** in scene coordinates */\nexport type MinimapViewport = {\n x: number;\n y: number;\n width: number;\n height: number;\n};\n\nexport type MinimapColors = {\n element: string;\n viewport: string;\n};\n\nexport type MinimapConfig = {\n /** CSS pixels */\n width: number;\n /** CSS pixels */\n height: number;\n devicePixelRatio: number;\n colors: MinimapColors;\n};\n\ntype MinimapCanvas = OffscreenCanvas | HTMLCanvasElement;\n\nexport type MinimapInMessage =\n | { type: \"init\"; canvas: MinimapCanvas; config: MinimapConfig }\n | { type: \"config\"; config: MinimapConfig }\n | { type: \"elements\"; seq: number; records: Float32Array }\n | { type: \"viewport\"; viewport: MinimapViewport }\n /**\n * While a transform is supplied, it's used as is instead of being fitted\n * to the content. Used while dragging the viewport of a locked (scroll-\n * constrained) editor, so that the minimap doesn't rescale as the viewport\n * rubberbands past the lock.\n */\n | { type: \"lock\"; transform: MinimapTransform | null };\n\nexport type MinimapOutMessage = {\n type: \"frame\";\n /** the transform the frame was rendered with */\n transform: MinimapTransform;\n /** `seq` of the elements the frame was rendered with */\n elementsSeq: number;\n /** bounds of those elements, in scene coordinates (null if there are none) */\n contentBounds: MinimapBounds | null;\n};\n\n// -----------------------------------------------------------------------------\n// renderer\n// -----------------------------------------------------------------------------\n\n/** CSS pixels */\nconst PADDING = 8;\n/** CSS pixels. Keeps tiny elements visible. */\nconst MIN_BLOCK_SIZE = 1.5;\n/** CSS pixels. Keeps the viewport visible (and grabbable) when tiny. */\nexport const MINIMAP_MIN_VIEWPORT_SIZE = 6;\n/** CSS pixels */\nconst PATH_WIDTH = 1.25;\n/**\n * The viewport is a translucent overlay, so that the elements in it show\n * through...\n */\nconst VIEWPORT_ALPHA = 0.25;\n/**\n * ...but the smaller it is, the more opaque \u2014 it'd otherwise get lost among\n * the elements. As fractions of the minimap's size (the viewport's larger\n * side to the minimap's respective one): fully opaque at the first and below,\n * at the regular opacity from the second up.\n */\nconst VIEWPORT_OPAQUE_SIZE = 0.05;\nconst VIEWPORT_TRANSLUCENT_SIZE = 0.12;\nexport type MinimapBounds = [\n minX: number,\n minY: number,\n maxX: number,\n maxY: number,\n];\ntype Bounds = MinimapBounds;\n\nconst isSameTransform = (a: MinimapTransform | null, b: MinimapTransform) =>\n !!a &&\n a.scale === b.scale &&\n a.translateX === b.translateX &&\n a.translateY === b.translateY;\n\n/**\n * The on-minimap rect of the viewport, grown to the minimum size around its\n * center.\n */\nexport const getMinimapViewportRect = (\n viewport: MinimapViewport,\n transform: MinimapTransform,\n) => {\n const width = Math.max(\n viewport.width * transform.scale,\n MINIMAP_MIN_VIEWPORT_SIZE,\n );\n const height = Math.max(\n viewport.height * transform.scale,\n MINIMAP_MIN_VIEWPORT_SIZE,\n );\n return {\n x:\n (viewport.x + viewport.width / 2) * transform.scale +\n transform.translateX -\n width / 2,\n y:\n (viewport.y + viewport.height / 2) * transform.scale +\n transform.translateY -\n height / 2,\n width,\n height,\n };\n};\n\nconst getRecordsBounds = (records: Float32Array): Bounds | null => {\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n\n const extend = (\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n angle: number,\n ) => {\n if (angle) {\n // AABB of the rect rotated around its center\n const cos = Math.abs(Math.cos(angle));\n const sin = Math.abs(Math.sin(angle));\n const cx = (x1 + x2) / 2;\n const cy = (y1 + y2) / 2;\n const halfWidth = (x2 - x1) / 2;\n const halfHeight = (y2 - y1) / 2;\n const extentX = halfWidth * cos + halfHeight * sin;\n const extentY = halfWidth * sin + halfHeight * cos;\n x1 = cx - extentX;\n x2 = cx + extentX;\n y1 = cy - extentY;\n y2 = cy + extentY;\n }\n minX = Math.min(minX, x1);\n minY = Math.min(minY, y1);\n maxX = Math.max(maxX, x2);\n maxY = Math.max(maxY, y2);\n };\n\n let i = 0;\n while (i < records.length) {\n if (records[i] === MinimapRecord.PATH) {\n const [x1, y1, x2, y2] = getPathBounds(records, i);\n extend(x1, y1, x2, y2, records[i + 3]);\n i += MINIMAP_PATH_RECORD_HEADER_SIZE + records[i + 4] * 2;\n } else {\n const x = records[i + 1];\n const y = records[i + 2];\n const width = records[i + 3];\n const height = records[i + 4];\n // elements being drawn can have negative dimensions\n extend(\n Math.min(x, x + width),\n Math.min(y, y + height),\n Math.max(x, x + width),\n Math.max(y, y + height),\n records[i + 5],\n );\n i += MINIMAP_BOX_RECORD_SIZE;\n }\n }\n\n return Number.isFinite(minX) ? [minX, minY, maxX, maxY] : null;\n};\n\n/** unrotated bounds of the PATH record at `offset` */\nconst getPathBounds = (records: Float32Array, offset: number): Bounds => {\n const x = records[offset + 1];\n const y = records[offset + 2];\n const count = records[offset + 4];\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n for (let p = 0; p < count; p++) {\n const px = records[offset + MINIMAP_PATH_RECORD_HEADER_SIZE + p * 2];\n const py = records[offset + MINIMAP_PATH_RECORD_HEADER_SIZE + p * 2 + 1];\n minX = Math.min(minX, px);\n minY = Math.min(minY, py);\n maxX = Math.max(maxX, px);\n maxY = Math.max(maxY, py);\n }\n if (!count) {\n return [x, y, x, y];\n }\n return [x + minX, y + minY, x + maxX, y + maxY];\n};\n\ntype Context2D =\n | OffscreenCanvasRenderingContext2D\n | CanvasRenderingContext2D\n | null;\n\nclass MinimapRenderer {\n private context: Context2D;\n /**\n * The elements rendered with `layerTransform`, so that viewport-only\n * changes (panning, zooming) don't redraw every element.\n */\n private layer: MinimapCanvas;\n private layerContext: Context2D;\n private layerTransform: MinimapTransform | null = null;\n\n private records: Float32Array = new Float32Array(0);\n private contentBounds: Bounds | null = null;\n private viewport: MinimapViewport | null = null;\n private lockedTransform: MinimapTransform | null = null;\n\n constructor(private canvas: MinimapCanvas, private config: MinimapConfig) {\n this.context = canvas.getContext(\"2d\") as Context2D;\n this.layer =\n typeof OffscreenCanvas !== \"undefined\"\n ? new OffscreenCanvas(1, 1)\n : (canvas as HTMLCanvasElement).ownerDocument.createElement(\"canvas\");\n this.layerContext = this.layer.getContext(\"2d\") as Context2D;\n this.resize();\n }\n\n setConfig(config: MinimapConfig) {\n this.config = config;\n this.resize();\n }\n\n setElements(records: Float32Array) {\n this.records = records;\n this.contentBounds = getRecordsBounds(records);\n this.layerTransform = null;\n }\n\n setViewport(viewport: MinimapViewport) {\n this.viewport = viewport;\n }\n\n getContentBounds() {\n return this.contentBounds;\n }\n\n setLockedTransform(transform: MinimapTransform | null) {\n this.lockedTransform = transform;\n }\n\n private resize() {\n const { width, height, devicePixelRatio } = this.config;\n for (const canvas of [this.canvas, this.layer]) {\n canvas.width = Math.max(1, Math.round(width * devicePixelRatio));\n canvas.height = Math.max(1, Math.round(height * devicePixelRatio));\n }\n this.layerTransform = null;\n }\n\n /** fits the content along with the viewport into the minimap */\n private getTransform(): MinimapTransform {\n if (this.lockedTransform) {\n return this.lockedTransform;\n }\n\n let [minX, minY, maxX, maxY] = this.contentBounds ?? [\n Infinity,\n Infinity,\n -Infinity,\n -Infinity,\n ];\n if (this.viewport) {\n minX = Math.min(minX, this.viewport.x);\n minY = Math.min(minY, this.viewport.y);\n maxX = Math.max(maxX, this.viewport.x + this.viewport.width);\n maxY = Math.max(maxY, this.viewport.y + this.viewport.height);\n }\n\n const { width, height } = this.config;\n if (!Number.isFinite(minX)) {\n return { scale: 1, translateX: width / 2, translateY: height / 2 };\n }\n\n const scale = Math.min(\n Math.max(width - PADDING * 2, 1) / Math.max(maxX - minX, 1),\n Math.max(height - PADDING * 2, 1) / Math.max(maxY - minY, 1),\n );\n\n return {\n scale,\n translateX: width / 2 - ((minX + maxX) / 2) * scale,\n translateY: height / 2 - ((minY + maxY) / 2) * scale,\n };\n }\n\n private renderLayer(transform: MinimapTransform) {\n const context = this.layerContext;\n if (!context) {\n return;\n }\n const { devicePixelRatio, colors } = this.config;\n const { scale, translateX, translateY } = transform;\n const { records } = this;\n\n context.setTransform(1, 0, 0, 1, 0, 0);\n context.clearRect(0, 0, this.layer.width, this.layer.height);\n context.fillStyle = colors.element;\n context.strokeStyle = colors.element;\n context.lineWidth = PATH_WIDTH;\n context.lineJoin = \"round\";\n context.lineCap = \"round\";\n\n const resetTransform = () =>\n context.setTransform(devicePixelRatio, 0, 0, devicePixelRatio, 0, 0);\n const rotate = (angle: number, cx: number, cy: number) => {\n context.translate(cx, cy);\n context.rotate(angle);\n context.translate(-cx, -cy);\n };\n resetTransform();\n\n let i = 0;\n while (i < records.length) {\n const kind = records[i];\n\n if (kind === MinimapRecord.PATH) {\n const count = records[i + 4];\n const angle = records[i + 3];\n const originX = records[i + 1] * scale + translateX;\n const originY = records[i + 2] * scale + translateY;\n const points = i + MINIMAP_PATH_RECORD_HEADER_SIZE;\n\n if (angle) {\n const [x1, y1, x2, y2] = getPathBounds(records, i);\n rotate(\n angle,\n ((x1 + x2) / 2) * scale + translateX,\n ((y1 + y2) / 2) * scale + translateY,\n );\n }\n context.beginPath();\n for (let p = 0; p < count; p++) {\n const x = originX + records[points + p * 2] * scale;\n const y = originY + records[points + p * 2 + 1] * scale;\n if (p === 0) {\n context.moveTo(x, y);\n } else {\n context.lineTo(x, y);\n }\n }\n if (count === 1) {\n // a dot\n context.lineTo(originX, originY);\n }\n context.stroke();\n if (angle) {\n resetTransform();\n }\n\n i += MINIMAP_PATH_RECORD_HEADER_SIZE + count * 2;\n continue;\n }\n\n const angle = records[i + 5];\n const width = Math.max(Math.abs(records[i + 3]) * scale, MIN_BLOCK_SIZE);\n const height = Math.max(Math.abs(records[i + 4]) * scale, MIN_BLOCK_SIZE);\n const cx = (records[i + 1] + records[i + 3] / 2) * scale + translateX;\n const cy = (records[i + 2] + records[i + 4] / 2) * scale + translateY;\n\n if (angle) {\n rotate(angle, cx, cy);\n }\n if (kind === MinimapRecord.FRAME) {\n context.strokeRect(cx - width / 2, cy - height / 2, width, height);\n } else {\n context.fillRect(cx - width / 2, cy - height / 2, width, height);\n }\n if (angle) {\n resetTransform();\n }\n\n i += MINIMAP_BOX_RECORD_SIZE;\n }\n\n this.layerTransform = transform;\n }\n\n render(): MinimapTransform {\n const transform = this.getTransform();\n const context = this.context;\n if (!context) {\n return transform;\n }\n\n if (!isSameTransform(this.layerTransform, transform)) {\n this.renderLayer(transform);\n }\n\n const { devicePixelRatio, colors } = this.config;\n\n context.setTransform(1, 0, 0, 1, 0, 0);\n context.clearRect(0, 0, this.canvas.width, this.canvas.height);\n context.drawImage(this.layer, 0, 0);\n\n if (this.viewport) {\n const { x, y, width, height } = getMinimapViewportRect(\n this.viewport,\n transform,\n );\n const size = Math.max(\n width / this.config.width,\n height / this.config.height,\n );\n const translucency = Math.min(\n Math.max(\n (size - VIEWPORT_OPAQUE_SIZE) /\n (VIEWPORT_TRANSLUCENT_SIZE - VIEWPORT_OPAQUE_SIZE),\n 0,\n ),\n 1,\n );\n\n context.setTransform(devicePixelRatio, 0, 0, devicePixelRatio, 0, 0);\n context.globalAlpha = 1 - translucency * (1 - VIEWPORT_ALPHA);\n context.fillStyle = colors.viewport;\n context.beginPath();\n if (context.roundRect) {\n context.roundRect(x, y, width, height, 2);\n } else {\n context.rect(x, y, width, height);\n }\n context.fill();\n context.globalAlpha = 1;\n }\n\n return transform;\n }\n}\n\n// -----------------------------------------------------------------------------\n// endpoint\n// -----------------------------------------------------------------------------\n\nexport type MinimapScheduler = {\n requestFrame: (callback: () => void) => number;\n cancelFrame: (id: number) => void;\n};\n\n/** that of the global scope, i.e. of the worker */\nconst defaultScheduler: MinimapScheduler = {\n requestFrame: (callback) =>\n typeof requestAnimationFrame === \"function\"\n ? requestAnimationFrame(callback)\n : (setTimeout(callback, 16) as unknown as number),\n cancelFrame: (id) => {\n if (typeof cancelAnimationFrame === \"function\") {\n cancelAnimationFrame(id);\n } else {\n clearTimeout(id);\n }\n },\n};\n\n/**\n * Receives the messages of the editor and renders at most once per frame.\n * Runs in the worker, or on the main thread where workers (or\n * OffscreenCanvas) aren't available \u2014 there, supply the scheduler of the\n * window the minimap is rendered in, which may not be the one the code runs\n * in (an editor mounted into a pop-out window).\n */\nexport const createMinimapEndpoint = (\n postMessage: (message: MinimapOutMessage) => void,\n { requestFrame, cancelFrame }: MinimapScheduler = defaultScheduler,\n) => {\n let renderer: MinimapRenderer | null = null;\n let frameId: number | null = null;\n let elementsSeq = -1;\n let reportedSeq = -1;\n let reportedTransform: MinimapTransform | null = null;\n\n const render = () => {\n frameId = null;\n // nothing is drawn (nor reported) until the first elements arrive: a\n // minimap fitted to the viewport alone would only flash by, and couldn't\n // be dragged in for the lack of content bounds\n if (!renderer || elementsSeq < 0) {\n return;\n }\n const transform = renderer.render();\n // the editor only needs to know about new elements being rendered (so it\n // can send the next ones) and about the transform changing (to map the\n // pointer). Don't wake it up otherwise, e.g. on each panned frame.\n if (\n reportedSeq !== elementsSeq ||\n !isSameTransform(reportedTransform, transform)\n ) {\n reportedSeq = elementsSeq;\n reportedTransform = transform;\n postMessage({\n type: \"frame\",\n transform,\n elementsSeq,\n contentBounds: renderer.getContentBounds(),\n });\n }\n };\n\n return {\n handle: (message: MinimapInMessage) => {\n switch (message.type) {\n case \"init\":\n renderer = new MinimapRenderer(message.canvas, message.config);\n break;\n case \"config\":\n renderer?.setConfig(message.config);\n break;\n case \"elements\":\n elementsSeq = message.seq;\n renderer?.setElements(message.records);\n break;\n case \"viewport\":\n renderer?.setViewport(message.viewport);\n break;\n case \"lock\":\n renderer?.setLockedTransform(message.transform);\n break;\n }\n if (frameId === null) {\n frameId = requestFrame(render);\n }\n },\n destroy: () => {\n if (frameId !== null) {\n cancelFrame(frameId);\n frameId = null;\n }\n renderer = null;\n },\n };\n};\n"],
|
|
5
|
+
"mappings": ";;;;;AAuBO,IAAM,gBAAgB;AAAA;AAAA,EAE3B,KAAK;AAAA;AAAA,EAEL,OAAO;AAAA;AAAA,EAEP,MAAM;AACR;AAEO,IAAM,0BAA0B;AAChC,IAAM,kCAAkC;AA6D/C,IAAM,UAAU;AAEhB,IAAM,iBAAiB;AAEhB,IAAM,4BAA4B;AAEzC,IAAM,aAAa;AAKnB,IAAM,iBAAiB;AAOvB,IAAM,uBAAuB;AA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