@nasa-terra/components 0.0.203 → 0.0.205
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/cdn/apis/harmony.api.d.ts +5 -0
- package/cdn/chunks/GeoTIFF.CENKOG7R.js +19979 -0
- package/cdn/chunks/chunk.2232XEJQ.js +29 -0
- package/cdn/chunks/chunk.2B2TSVNY.js +978 -0
- package/cdn/chunks/chunk.2NNYMNZ5.js +29 -0
- package/cdn/chunks/chunk.2NX4H2BN.js +19 -0
- package/cdn/chunks/chunk.2WBW37NH.js +19 -0
- package/cdn/chunks/chunk.2X7DAD43.js +29 -0
- package/cdn/chunks/chunk.2XT2DXDS.js +528 -0
- package/cdn/chunks/chunk.34A6RU6E.js +29 -0
- package/cdn/chunks/chunk.3A3Y63MA.js +19 -0
- package/cdn/chunks/chunk.3JB5ESJU.js +8969 -0
- package/cdn/chunks/chunk.3TH37PLU.js +1121 -0
- package/cdn/chunks/chunk.3XHPRPKJ.js +1009 -0
- package/cdn/chunks/chunk.4FAAL7CU.js +897 -0
- package/cdn/chunks/chunk.4JTU674G.js +48 -0
- package/cdn/chunks/chunk.4KBZ7BIR.js +29 -0
- package/cdn/chunks/chunk.4PDH3KAH.js +1945 -0
- package/cdn/chunks/chunk.4RS5WH4G.js +19 -0
- package/cdn/chunks/chunk.4W7HENDQ.js +19 -0
- package/cdn/chunks/chunk.5256OMFI.js +62 -0
- package/cdn/chunks/chunk.577EXZQP.js +19 -0
- package/cdn/chunks/chunk.5DIIZV4K.js +791 -0
- package/cdn/chunks/chunk.5DIVPJOJ.js +1653 -0
- package/cdn/chunks/chunk.5F22YVKZ.js +19 -0
- package/cdn/chunks/chunk.5GC6XXMO.js +19 -0
- package/cdn/chunks/chunk.5GD3GQER.js +33 -0
- package/cdn/chunks/chunk.5JGHWKZV.js +38 -0
- package/cdn/chunks/chunk.5MCRMJ7W.js +110 -0
- package/cdn/chunks/chunk.5MFAIDYF.js +19 -0
- package/cdn/chunks/chunk.5QQP4HY5.js +29 -0
- package/cdn/chunks/chunk.5SGSESUV.js +39 -0
- package/cdn/chunks/chunk.5T32ADMR.js +32 -0
- package/cdn/chunks/chunk.5TUINKG3.js +19 -0
- package/cdn/chunks/chunk.5Z5FTYHQ.js +29 -0
- package/cdn/chunks/chunk.64ZLB3XD.js +37 -0
- package/cdn/chunks/chunk.67MZVSO7.js +234 -0
- package/cdn/chunks/chunk.6KW23GBD.js +3035 -0
- package/cdn/chunks/chunk.6NU4LT46.js +189 -0
- package/cdn/chunks/chunk.6ONOP4ID.js +29 -0
- package/cdn/chunks/chunk.6RBN3R3S.js +19 -0
- package/cdn/chunks/chunk.6RVC4QTE.js +19 -0
- package/cdn/chunks/chunk.6VGVAUYK.js +256 -0
- package/cdn/chunks/chunk.6XBVIYCV.js +32 -0
- package/cdn/chunks/chunk.76VAMCFM.js +824 -0
- package/cdn/chunks/chunk.7FTE5V2B.js +19 -0
- package/cdn/chunks/chunk.7OFUJKBW.js +30 -0
- package/cdn/chunks/chunk.7RUFZ7VF.js +475 -0
- package/cdn/chunks/chunk.A4KWAYQH.js +4980 -0
- package/cdn/chunks/chunk.A63JCTKT.js +19 -0
- package/cdn/chunks/chunk.AQ5OKPLZ.js +19 -0
- package/cdn/chunks/chunk.AQ5T22QG.js +41 -0
- package/cdn/chunks/chunk.ASGNUKTS.js +1131 -0
- package/cdn/chunks/chunk.AUWT3HKD.js +940 -0
- package/cdn/chunks/chunk.BD5JLOM4.js +357 -0
- package/cdn/chunks/chunk.BL2T5FVE.js +10 -0
- package/cdn/chunks/chunk.BNIVIVSF.js +2544 -0
- package/cdn/chunks/chunk.BPTXUG3W.js +35 -0
- package/cdn/chunks/chunk.BQPBQZFS.js +360 -0
- package/cdn/chunks/chunk.BYBKLA6W.js +255 -0
- package/cdn/chunks/chunk.CHNYNA6A.js +19 -0
- package/cdn/chunks/chunk.CISSBK6B.js +1820 -0
- package/cdn/chunks/chunk.CN3HAOBC.js +83 -0
- package/cdn/chunks/chunk.CO3P3PQN.js +19 -0
- package/cdn/chunks/chunk.CSF2PMFW.js +1075 -0
- package/cdn/chunks/chunk.CT6JWWV2.js +93 -0
- package/cdn/chunks/chunk.CY2NA7DX.js +1040 -0
- package/cdn/chunks/chunk.D2OCF56Z.js +74 -0
- package/cdn/chunks/chunk.D3WDJ4SS.js +149 -0
- package/cdn/chunks/chunk.D52LQ4J3.js +19 -0
- package/cdn/chunks/chunk.D5OYZFRL.js +134 -0
- package/cdn/chunks/chunk.D6W64PXN.js +19 -0
- package/cdn/chunks/chunk.D7YRDTVS.js +134 -0
- package/cdn/chunks/chunk.DLBLZUXI.js +19 -0
- package/cdn/chunks/chunk.DMAOIRXE.js +19 -0
- package/cdn/chunks/chunk.E2RZP3XA.js +19 -0
- package/cdn/chunks/chunk.E6423VVS.js +47 -0
- package/cdn/chunks/chunk.EAUBUUN5.js +32 -0
- package/cdn/chunks/chunk.EBGQWXBG.js +19 -0
- package/cdn/chunks/chunk.EDPOC2S3.js +29 -0
- package/cdn/chunks/chunk.EH63H56Z.js +333 -0
- package/cdn/chunks/chunk.EIAV6I5D.js +600 -0
- package/cdn/chunks/chunk.EOTDTPZM.js +259 -0
- package/cdn/chunks/chunk.EP6PSBZE.js +100 -0
- package/cdn/chunks/chunk.EVAUERXR.js +431 -0
- package/cdn/chunks/chunk.F2DLSNNG.js +625 -0
- package/cdn/chunks/chunk.F6FVKFVH.js +60 -0
- package/cdn/chunks/chunk.FEIRWXAI.js +34 -0
- package/cdn/chunks/chunk.FK5JYFNX.js +29 -0
- package/cdn/chunks/chunk.FP2ISOJN.js +106 -0
- package/cdn/chunks/chunk.FRGR3SUX.js +19 -0
- package/cdn/chunks/chunk.G2FP3NMR.js +32 -0
- package/cdn/chunks/chunk.G4RHOTZM.js +19 -0
- package/cdn/chunks/chunk.G56LMKFK.js +190 -0
- package/cdn/chunks/chunk.GAYO2WF7.js +810 -0
- package/cdn/chunks/chunk.GGKAPJYB.js +4089 -0
- package/cdn/chunks/chunk.GGRHSJRY.js +278 -0
- package/cdn/chunks/chunk.GMXOAOYE.js +897 -0
- package/cdn/chunks/chunk.GPTTHV22.js +19 -0
- package/cdn/chunks/chunk.GSM3UO7L.js +125 -0
- package/cdn/chunks/chunk.GUDMVVPM.js +29 -0
- package/cdn/chunks/chunk.GWGONIHM.js +621 -0
- package/cdn/chunks/chunk.GXLMJLQN.js +19 -0
- package/cdn/chunks/chunk.H3M3UFJW.js +225 -0
- package/cdn/chunks/chunk.H4CIEYCI.js +274 -0
- package/cdn/chunks/chunk.HAMWPWKH.js +536 -0
- package/cdn/chunks/chunk.HJX5NP2U.js +49 -0
- package/cdn/chunks/chunk.HUS54CD5.js +152 -0
- package/cdn/chunks/chunk.HV7OZEJM.js +37 -0
- package/cdn/chunks/chunk.HVZFV4RK.js +271 -0
- package/cdn/chunks/chunk.I2EO4UEA.js +128 -0
- package/cdn/chunks/chunk.I2S4BY2H.js +19 -0
- package/cdn/chunks/chunk.IBOPN3BA.js +74 -0
- package/cdn/chunks/chunk.IIVOE5EV.js +34 -0
- package/cdn/chunks/chunk.ILWTJYAG.js +19 -0
- package/cdn/chunks/chunk.IMCWFOML.js +132 -0
- package/cdn/chunks/chunk.IPQAZBW5.js +33 -0
- package/cdn/chunks/chunk.IWKAVEX2.js +521 -0
- package/cdn/chunks/chunk.IXCWTH7X.js +19 -0
- package/cdn/chunks/chunk.J2O5J6LC.js +33 -0
- package/cdn/chunks/chunk.J665CST2.js +32 -0
- package/cdn/chunks/chunk.J7VOBHYB.js +29 -0
- package/cdn/chunks/chunk.JRHREVZG.js +195 -0
- package/cdn/chunks/chunk.JRT7GG7P.js +193 -0
- package/cdn/chunks/chunk.JZBAAUKG.js +37 -0
- package/cdn/chunks/chunk.K6JQEUEF.js +855 -0
- package/cdn/chunks/chunk.KBU6MR53.js +19 -0
- package/cdn/chunks/chunk.KH6TDNWG.js +32 -0
- package/cdn/chunks/chunk.KKACL6TT.js +19 -0
- package/cdn/chunks/chunk.KORCC6ZC.js +136 -0
- package/cdn/chunks/chunk.KOZYPVDG.js +29 -0
- package/cdn/chunks/chunk.KRVDOVGU.js +27 -0
- package/cdn/chunks/chunk.KVNYSD7J.js +35 -0
- package/cdn/chunks/chunk.KVY6HP36.js +504 -0
- package/cdn/chunks/chunk.KYTQLAV4.js +33 -0
- package/cdn/chunks/chunk.L2JTE4GG.js +29 -0
- package/cdn/chunks/chunk.L3IVPHBN.js +29 -0
- package/cdn/chunks/chunk.L3RRPSVD.js +310 -0
- package/cdn/chunks/chunk.LA6TV4TX.js +231 -0
- package/cdn/chunks/chunk.LFASDJBV.js +19 -0
- package/cdn/chunks/chunk.LFKTPFJU.js +19 -0
- package/cdn/chunks/chunk.LFL3PUXL.js +78 -0
- package/cdn/chunks/chunk.LI42WZVM.js +19 -0
- package/cdn/chunks/chunk.LNONJFUN.js +19 -0
- package/cdn/chunks/chunk.LUKHK72N.js +1038 -0
- package/cdn/chunks/chunk.M3QGLBMX.js +256 -0
- package/cdn/chunks/chunk.M57M7AQ5.js +19 -0
- package/cdn/chunks/chunk.MC7GK7JH.js +36 -0
- package/cdn/chunks/chunk.MC7JQJRG.js +32 -0
- package/cdn/chunks/chunk.ML5BEAMW.js +276 -0
- package/cdn/chunks/chunk.MMF6FZHE.js +19 -0
- package/cdn/chunks/chunk.MO4YNF4J.js +29 -0
- package/cdn/chunks/chunk.MUSKX3GU.js +138 -0
- package/cdn/chunks/chunk.N7GDICRN.js +568 -0
- package/cdn/chunks/chunk.NDYEK3K4.js +19 -0
- package/cdn/chunks/chunk.NHZJYK2Q.js +111 -0
- package/cdn/chunks/chunk.NRLNKN7I.js +17 -0
- package/cdn/chunks/chunk.NSKILA2A.js +29 -0
- package/cdn/chunks/chunk.NWO2MF5T.js +375 -0
- package/cdn/chunks/chunk.NX7VOYQH.js +610 -0
- package/cdn/chunks/chunk.NZA757GX.js +60 -0
- package/cdn/chunks/chunk.O2NOKPSY.js +169 -0
- package/cdn/chunks/chunk.OIOVBL5M.js +32 -0
- package/cdn/chunks/chunk.OSNWOWQ2.js +2337 -0
- package/cdn/chunks/chunk.OSRGCUJJ.js +891 -0
- package/cdn/chunks/chunk.OVC7EVR4.js +32 -0
- package/cdn/chunks/chunk.PEGHDN3D.js +32 -0
- package/cdn/chunks/chunk.PKU5OUHL.js +19 -0
- package/cdn/chunks/chunk.PVAQWFRB.js +224 -0
- package/cdn/chunks/chunk.PVNZZZCV.js +1307 -0
- package/cdn/chunks/chunk.QBDCDA3E.js +754 -0
- package/cdn/chunks/chunk.QDRW3JBM.js +113 -0
- package/cdn/chunks/chunk.QFRFT4W5.js +19 -0
- package/cdn/chunks/chunk.QJPYGHSA.js +29 -0
- package/cdn/chunks/chunk.QN4G5N5L.js +591 -0
- package/cdn/chunks/chunk.QQYFIC2N.js +19 -0
- package/cdn/chunks/chunk.QR6SCWOR.js +19 -0
- package/cdn/chunks/chunk.QRGGKLJQ.js +29 -0
- package/cdn/chunks/chunk.QSX2ASPV.js +36 -0
- package/cdn/chunks/chunk.QV7MGHUO.js +32 -0
- package/cdn/chunks/chunk.QYLVSRAZ.js +442 -0
- package/cdn/chunks/chunk.R6TDRJ2T.js +28 -0
- package/cdn/chunks/chunk.RRQO6C7V.js +208 -0
- package/cdn/chunks/chunk.RRT5M4B3.js +104 -0
- package/cdn/chunks/chunk.RZNXY5DA.js +85 -0
- package/cdn/chunks/chunk.S2MHJ2BL.js +529 -0
- package/cdn/chunks/chunk.S2P2KBX3.js +19 -0
- package/cdn/chunks/chunk.S5UFNVHZ.js +1768 -0
- package/cdn/chunks/chunk.SAMOMNBR.js +32 -0
- package/cdn/chunks/chunk.SPWHG3FQ.js +36 -0
- package/cdn/chunks/chunk.SRIL2GZR.js +19 -0
- package/cdn/chunks/chunk.T32DCJPK.js +33 -0
- package/cdn/chunks/chunk.T3YLYNOF.js +2977 -0
- package/cdn/chunks/chunk.T7754SP4.js +33 -0
- package/cdn/chunks/chunk.T7KRTL2U.js +19 -0
- package/cdn/chunks/chunk.TAY4BUTR.js +92 -0
- package/cdn/chunks/chunk.TBU3QGJR.js +29 -0
- package/cdn/chunks/chunk.TEEU5HFN.js +284 -0
- package/cdn/chunks/chunk.TFRA4ITH.js +32 -0
- package/cdn/chunks/chunk.TFRHDABM.js +19 -0
- package/cdn/chunks/chunk.THX4K42R.js +19 -0
- package/cdn/chunks/chunk.TKLGXW34.js +19 -0
- package/cdn/chunks/chunk.TMAJCFSJ.js +19 -0
- package/cdn/chunks/chunk.TMPSEY4M.js +876 -0
- package/cdn/chunks/chunk.TULXWHMT.js +19 -0
- package/cdn/chunks/chunk.U42UGPIF.js +34 -0
- package/cdn/chunks/chunk.U7RFQUL4.js +117 -0
- package/cdn/chunks/chunk.UHSY6WVZ.js +19 -0
- package/cdn/chunks/chunk.UI7YLIQD.js +19 -0
- package/cdn/chunks/chunk.UK5FWG26.js +621 -0
- package/cdn/chunks/chunk.UMPFH3IG.js +32 -0
- package/cdn/chunks/chunk.UW4VQ2ZT.js +29 -0
- package/cdn/chunks/chunk.UWQGPSGJ.js +123 -0
- package/cdn/chunks/chunk.UYISI6DV.js +161 -0
- package/cdn/chunks/chunk.VBP6ZZXJ.js +104 -0
- package/cdn/chunks/chunk.VNSMUAG2.js +19 -0
- package/cdn/chunks/chunk.VQFDZZR5.js +64743 -0
- package/cdn/chunks/chunk.VTJ45MEV.js +68 -0
- package/cdn/chunks/chunk.VXTFCFJP.js +29 -0
- package/cdn/chunks/chunk.VYRHCJMA.js +19 -0
- package/cdn/chunks/chunk.W5BKCYRV.js +19 -0
- package/cdn/chunks/chunk.W7NVJUQD.js +42 -0
- package/cdn/chunks/chunk.WAIMZWDO.js +32 -0
- package/cdn/chunks/chunk.WCOQW5IP.js +29 -0
- package/cdn/chunks/chunk.WENZIKZU.js +37 -0
- package/cdn/chunks/chunk.WLIBRD3E.js +36 -0
- package/cdn/chunks/chunk.WMGJ3MAP.js +415 -0
- package/cdn/chunks/chunk.WT45RB6M.js +86 -0
- package/cdn/chunks/chunk.WVIQ74WP.js +29 -0
- package/cdn/chunks/chunk.WVKE7GDV.js +82 -0
- package/cdn/chunks/chunk.X6V5UTEC.js +19 -0
- package/cdn/chunks/chunk.XE7NSCVW.js +35 -0
- package/cdn/chunks/chunk.XEPXVSXX.js +19 -0
- package/cdn/chunks/chunk.XFTU6F75.js +19 -0
- package/cdn/chunks/chunk.XGGJLW76.js +19 -0
- package/cdn/chunks/chunk.XIPDYSFN.js +32 -0
- package/cdn/chunks/chunk.XIY5GTZR.js +19 -0
- package/cdn/chunks/chunk.XLUZ67JF.js +11763 -0
- package/cdn/chunks/chunk.Y7SR4L5C.js +19 -0
- package/cdn/chunks/chunk.YJ7H7EYL.js +71 -0
- package/cdn/chunks/chunk.YKDCWNZE.js +17319 -0
- package/cdn/chunks/chunk.YMH7U2K5.js +29 -0
- package/cdn/chunks/chunk.YU5KVALN.js +29 -0
- package/cdn/chunks/chunk.Z6ZRFFCE.js +35 -0
- package/cdn/chunks/chunk.ZG6QTQKO.js +162 -0
- package/cdn/chunks/chunk.ZL4AGGZE.js +35 -0
- package/cdn/chunks/chunk.ZL6COYU6.js +19 -0
- package/cdn/chunks/chunk.ZNSSJSKK.js +158 -0
- package/cdn/chunks/lerc.IIII5MJ5.js +2099 -0
- package/cdn/components/accordion/accordion.component.js +5 -5
- package/cdn/components/accordion/accordion.js +6 -6
- package/cdn/components/alert/alert.component.js +4 -4
- package/cdn/components/alert/alert.js +5 -5
- package/cdn/components/avatar/avatar.component.js +5 -5
- package/cdn/components/avatar/avatar.js +6 -6
- package/cdn/components/badge/badge.component.js +3 -3
- package/cdn/components/badge/badge.js +4 -4
- package/cdn/components/banner/banner.component.js +3 -3
- package/cdn/components/banner/banner.js +4 -4
- package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
- package/cdn/components/breadcrumb/breadcrumb.js +3 -3
- package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
- package/cdn/components/browse-variables/browse-variables.component.d.ts +1 -1
- package/cdn/components/browse-variables/browse-variables.component.js +21 -21
- package/cdn/components/browse-variables/browse-variables.controller.js +2 -2
- package/cdn/components/browse-variables/browse-variables.js +22 -22
- package/cdn/components/button/button.component.js +6 -6
- package/cdn/components/button/button.js +7 -7
- package/cdn/components/button-group/button-group.component.js +2 -2
- package/cdn/components/button-group/button-group.js +3 -3
- package/cdn/components/caption/caption.component.js +2 -2
- package/cdn/components/caption/caption.js +3 -3
- package/cdn/components/card/card.component.js +2 -2
- package/cdn/components/card/card.js +3 -3
- package/cdn/components/checkbox/checkbox.component.js +5 -5
- package/cdn/components/checkbox/checkbox.js +6 -6
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +5 -5
- package/cdn/components/combobox/combobox.js +6 -6
- package/cdn/components/data-access/data-access.component.d.ts +11 -11
- package/cdn/components/data-access/data-access.component.js +69 -56
- package/cdn/components/data-access/data-access.js +70 -57
- package/cdn/components/data-grid/data-grid.component.js +3 -3
- package/cdn/components/data-grid/data-grid.js +4 -4
- package/cdn/components/data-rods/data-rods.component.d.ts +7 -11
- package/cdn/components/data-rods/data-rods.component.js +79 -67
- package/cdn/components/data-rods/data-rods.js +80 -68
- package/cdn/components/data-subsetter/data-subsetter.component.d.ts +8 -5
- package/cdn/components/data-subsetter/data-subsetter.component.js +83 -72
- package/cdn/components/data-subsetter/data-subsetter.js +84 -73
- package/cdn/components/data-subsetter/data-subsetter.styles.js +1 -1
- package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.d.ts +4 -7
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +84 -73
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +85 -74
- package/cdn/components/date-picker/date-picker.component.d.ts +3 -4
- package/cdn/components/date-picker/date-picker.component.js +14 -14
- package/cdn/components/date-picker/date-picker.js +15 -15
- package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
- package/cdn/components/date-range-slider/date-range-slider.js +4 -4
- package/cdn/components/dialog/dialog.component.js +8 -8
- package/cdn/components/dialog/dialog.js +9 -9
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/dropdown/dropdown.component.js +4 -4
- package/cdn/components/dropdown/dropdown.js +5 -5
- package/cdn/components/earthdata-login/earthdata-login.component.d.ts +3 -1
- package/cdn/components/earthdata-login/earthdata-login.component.js +16 -17
- package/cdn/components/earthdata-login/earthdata-login.js +17 -18
- package/cdn/components/file-upload/file-upload.component.js +2 -2
- package/cdn/components/file-upload/file-upload.js +3 -3
- package/cdn/components/harmony-history/harmony-history.component.d.ts +3 -6
- package/cdn/components/harmony-history/harmony-history.component.js +12 -13
- package/cdn/components/harmony-history/harmony-history.js +13 -14
- package/cdn/components/icon/icon.component.js +3 -3
- package/cdn/components/icon/icon.js +4 -4
- package/cdn/components/input/input.component.js +5 -5
- package/cdn/components/input/input.js +6 -6
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/login/login.component.d.ts +3 -1
- package/cdn/components/login/login.component.js +12 -13
- package/cdn/components/login/login.js +13 -14
- package/cdn/components/map/controls/draw-toolbar.control.d.ts +5 -2
- package/cdn/components/map/controls/draw-toolbar.control.js +18 -8
- package/cdn/components/map/controls/layer-picker.control.d.ts +16 -0
- package/cdn/components/map/controls/layer-picker.control.js +13 -0
- package/cdn/components/map/layers/base.layer.d.ts +10 -0
- package/cdn/components/map/layers/base.layer.js +25 -14
- package/cdn/components/map/layers/borders.layer.js +21 -13
- package/cdn/components/map/layers/boundary.d.ts +30 -0
- package/cdn/components/map/layers/boundary.js +20 -0
- package/cdn/components/map/layers/common.d.ts +2 -0
- package/cdn/components/map/layers/geotiff.layer.js +12 -7
- package/cdn/components/map/layers/gibs-vector.layer.js +26 -18
- package/cdn/components/map/layers/gibs.layer.d.ts +6 -0
- package/cdn/components/map/layers/gibs.layer.js +26 -18
- package/cdn/components/map/layers/labels.layer.js +21 -13
- package/cdn/components/map/layers/layer.js +28 -20
- package/cdn/components/map/layers/xyz.layer.js +17 -12
- package/cdn/components/map/map.component.d.ts +73 -21
- package/cdn/components/map/map.component.js +43 -29
- package/cdn/components/map/map.js +44 -30
- package/cdn/components/map/map.service.d.ts +92 -9
- package/cdn/components/map/map.service.js +33 -19
- package/cdn/components/map/map.styles.js +1 -1
- package/cdn/components/map/projections.js +4 -3
- package/cdn/components/map/type.d.ts +7 -0
- package/cdn/components/menu/menu.component.js +2 -2
- package/cdn/components/menu/menu.js +3 -3
- package/cdn/components/menu-item/menu-item.component.js +7 -7
- package/cdn/components/menu-item/menu-item.js +8 -8
- package/cdn/components/option/option.component.js +4 -4
- package/cdn/components/option/option.js +5 -5
- package/cdn/components/pagination/pagination.component.js +4 -4
- package/cdn/components/pagination/pagination.js +5 -5
- package/cdn/components/plot/plot.component.js +2 -2
- package/cdn/components/plot/plot.js +3 -3
- package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
- package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
- package/cdn/components/plot-toolbar/plot-toolbar.component.d.ts +4 -4
- package/cdn/components/plot-toolbar/plot-toolbar.component.js +54 -42
- package/cdn/components/plot-toolbar/plot-toolbar.js +55 -43
- package/cdn/components/popup/popup.component.js +2 -2
- package/cdn/components/popup/popup.js +3 -3
- package/cdn/components/progress-bar/progress-bar.component.js +2 -2
- package/cdn/components/progress-bar/progress-bar.js +3 -3
- package/cdn/components/radio/radio.component.js +3 -3
- package/cdn/components/radio/radio.js +4 -4
- package/cdn/components/radio-group/radio-group.component.js +3 -3
- package/cdn/components/radio-group/radio-group.js +4 -4
- package/cdn/components/scroll-hint/scroll-hint.component.js +4 -4
- package/cdn/components/scroll-hint/scroll-hint.js +5 -5
- package/cdn/components/select/select.component.js +8 -8
- package/cdn/components/select/select.js +9 -9
- package/cdn/components/site-header/site-header.component.js +5 -5
- package/cdn/components/site-header/site-header.js +5 -5
- package/cdn/components/site-navigation/site-navigation.component.js +2 -2
- package/cdn/components/site-navigation/site-navigation.js +2 -2
- package/cdn/components/skeleton/skeleton.component.js +2 -2
- package/cdn/components/skeleton/skeleton.js +3 -3
- package/cdn/components/slider/slider.component.js +2 -2
- package/cdn/components/slider/slider.js +3 -3
- package/cdn/components/spatial-picker/spatial-picker.component.d.ts +0 -10
- package/cdn/components/spatial-picker/spatial-picker.component.js +53 -39
- package/cdn/components/spatial-picker/spatial-picker.js +54 -40
- package/cdn/components/status-indicator/status-indicator.component.js +2 -2
- package/cdn/components/status-indicator/status-indicator.js +3 -3
- package/cdn/components/stepper/stepper.component.js +2 -2
- package/cdn/components/stepper/stepper.js +3 -3
- package/cdn/components/stepper-step/stepper-step.component.js +4 -4
- package/cdn/components/stepper-step/stepper-step.js +5 -5
- package/cdn/components/tab/tab.component.js +4 -4
- package/cdn/components/tab/tab.js +5 -5
- package/cdn/components/tab-panel/tab-panel.component.js +3 -3
- package/cdn/components/tab-panel/tab-panel.js +4 -4
- package/cdn/components/tabs/tabs.component.d.ts +2 -1
- package/cdn/components/tabs/tabs.component.js +4 -4
- package/cdn/components/tabs/tabs.js +5 -5
- package/cdn/components/tag/tag.component.js +4 -4
- package/cdn/components/tag/tag.js +5 -5
- package/cdn/components/textarea/textarea.component.js +4 -4
- package/cdn/components/textarea/textarea.js +5 -5
- package/cdn/components/time-average-map/time-average-map.component.d.ts +10 -14
- package/cdn/components/time-average-map/time-average-map.component.js +66 -54
- package/cdn/components/time-average-map/time-average-map.controller.js +7 -7
- package/cdn/components/time-average-map/time-average-map.js +67 -55
- package/cdn/components/time-series/time-series.component.d.ts +2 -10
- package/cdn/components/time-series/time-series.component.js +66 -54
- package/cdn/components/time-series/time-series.controller.js +7 -7
- package/cdn/components/time-series/time-series.js +67 -55
- package/cdn/components/toast/toast.component.js +5 -5
- package/cdn/components/toast/toast.js +6 -6
- package/cdn/components/toggle/toggle.component.js +4 -4
- package/cdn/components/toggle/toggle.js +5 -5
- package/cdn/components/tooltip/tooltip.component.js +4 -4
- package/cdn/components/tooltip/tooltip.js +5 -5
- package/cdn/components/variable-combobox/variable-combobox.component.d.ts +5 -9
- package/cdn/components/variable-combobox/variable-combobox.component.js +14 -12
- package/cdn/components/variable-combobox/variable-combobox.js +15 -13
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.d.ts +2 -2
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +10 -10
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +11 -11
- package/cdn/custom-elements.json +10670 -8582
- package/cdn/events/events.d.ts +2 -2
- package/cdn/events/terra-map.d.ts +55 -0
- package/cdn/mixins/auth.mixin.d.ts +23 -0
- package/cdn/mixins/mixin.types.d.ts +1 -0
- package/cdn/mixins/query-client.mixin.d.ts +1 -1
- package/cdn/react/accordion/index.js +6 -6
- package/cdn/react/alert/index.js +5 -5
- package/cdn/react/avatar/index.js +6 -6
- package/cdn/react/badge/index.js +4 -4
- package/cdn/react/banner/index.js +4 -4
- package/cdn/react/breadcrumb/index.js +3 -3
- package/cdn/react/breadcrumbs/index.js +3 -3
- package/cdn/react/browse-variables/index.js +22 -22
- package/cdn/react/button/index.js +7 -7
- package/cdn/react/button-group/index.js +3 -3
- package/cdn/react/caption/index.js +3 -3
- package/cdn/react/card/index.js +3 -3
- package/cdn/react/checkbox/index.js +6 -6
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +6 -6
- package/cdn/react/data-access/index.js +70 -57
- package/cdn/react/data-grid/index.js +4 -4
- package/cdn/react/data-rods/index.d.ts +6 -1
- package/cdn/react/data-rods/index.js +80 -68
- package/cdn/react/data-subsetter/index.d.ts +3 -0
- package/cdn/react/data-subsetter/index.js +84 -73
- package/cdn/react/data-subsetter-history/index.d.ts +6 -1
- package/cdn/react/data-subsetter-history/index.js +85 -74
- package/cdn/react/date-picker/index.js +15 -15
- package/cdn/react/date-range-slider/index.js +4 -4
- package/cdn/react/dialog/index.js +9 -9
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/dropdown/index.js +5 -5
- package/cdn/react/earthdata-login/index.js +17 -18
- package/cdn/react/file-upload/index.js +3 -3
- package/cdn/react/harmony-history/index.d.ts +3 -0
- package/cdn/react/harmony-history/index.js +13 -14
- package/cdn/react/icon/index.js +4 -4
- package/cdn/react/index.d.ts +24 -24
- package/cdn/react/index.js +277 -265
- package/cdn/react/input/index.js +6 -6
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +13 -14
- package/cdn/react/map/index.d.ts +32 -1
- package/cdn/react/map/index.js +44 -30
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +8 -8
- package/cdn/react/option/index.js +5 -5
- package/cdn/react/pagination/index.js +5 -5
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/plot-toolbar/index.d.ts +6 -1
- package/cdn/react/plot-toolbar/index.js +55 -43
- package/cdn/react/popup/index.js +3 -3
- package/cdn/react/progress-bar/index.js +3 -3
- package/cdn/react/radio/index.js +4 -4
- package/cdn/react/radio-group/index.js +4 -4
- package/cdn/react/scroll-hint/index.js +5 -5
- package/cdn/react/select/index.js +9 -9
- package/cdn/react/site-header/index.js +6 -6
- package/cdn/react/site-navigation/index.js +3 -3
- package/cdn/react/skeleton/index.js +3 -3
- package/cdn/react/slider/index.js +3 -3
- package/cdn/react/spatial-picker/index.js +54 -40
- package/cdn/react/status-indicator/index.js +3 -3
- package/cdn/react/stepper/index.js +3 -3
- package/cdn/react/stepper-step/index.js +5 -5
- package/cdn/react/tab/index.js +5 -5
- package/cdn/react/tab-panel/index.js +4 -4
- package/cdn/react/tabs/index.js +5 -5
- package/cdn/react/tag/index.js +5 -5
- package/cdn/react/textarea/index.js +5 -5
- package/cdn/react/time-average-map/index.d.ts +6 -1
- package/cdn/react/time-average-map/index.js +67 -55
- package/cdn/react/time-series/index.d.ts +3 -0
- package/cdn/react/time-series/index.js +67 -55
- package/cdn/react/toast/index.js +6 -6
- package/cdn/react/toggle/index.js +5 -5
- package/cdn/react/tooltip/index.js +5 -5
- package/cdn/react/variable-combobox/index.d.ts +4 -1
- package/cdn/react/variable-combobox/index.js +15 -13
- package/cdn/react/variable-keyword-search/index.d.ts +1 -1
- package/cdn/react/variable-keyword-search/index.js +11 -11
- package/cdn/terra-ui-components.js +278 -266
- package/cdn/types/vue/index.d.ts +1037 -870
- package/cdn/utilities/date.d.ts +4 -0
- package/cdn/utilities/date.js +3 -1
- package/cdn/utilities/variable-task.js +2 -2
- package/cdn/vscode.html-custom-data.json +692 -661
- package/cdn/web-types.json +2243 -2077
- package/dist/apis/harmony.api.d.ts +5 -0
- package/dist/chunks/chunk.25A7KRDN.js +19 -0
- package/dist/chunks/chunk.2C5HNR5L.js +4 -0
- package/dist/chunks/chunk.2O3IOB3J.js +1 -0
- package/dist/chunks/chunk.33OXTI3O.js +22 -0
- package/dist/chunks/chunk.345LFJWT.js +1 -0
- package/dist/chunks/chunk.3D65L7Z7.js +1 -0
- package/dist/chunks/chunk.3GAETZS7.js +12 -0
- package/dist/chunks/chunk.3IH7Q4YU.js +1 -0
- package/dist/chunks/chunk.424PTQE6.js +1 -0
- package/dist/chunks/chunk.43YXC3BX.js +1 -0
- package/dist/chunks/chunk.45H2PNH4.js +1 -0
- package/dist/chunks/chunk.47YM7IJH.js +1 -0
- package/dist/chunks/chunk.4A2YMU2A.js +1 -0
- package/dist/chunks/chunk.4BU5K6UJ.js +1 -0
- package/dist/chunks/chunk.4HQHKAPL.js +1 -0
- package/dist/chunks/chunk.4POG3VJI.js +148 -0
- package/dist/chunks/chunk.4QRZ7ROR.js +299 -0
- package/dist/chunks/chunk.4WJQSWQN.js +1 -0
- package/dist/chunks/chunk.52VRTKYJ.js +1 -0
- package/dist/chunks/chunk.55FJVUS6.js +43 -0
- package/dist/chunks/chunk.55S45QN4.js +1 -0
- package/dist/chunks/chunk.574Z2YXE.js +1 -0
- package/dist/chunks/chunk.5EE4HG2I.js +1 -0
- package/dist/chunks/chunk.5SZGFRLL.js +1 -0
- package/dist/chunks/chunk.5TJN4Z3R.js +1 -0
- package/dist/chunks/chunk.5TYJPHW2.js +1 -0
- package/dist/chunks/chunk.5UYKLBWJ.js +8 -0
- package/dist/chunks/chunk.5VNCJX27.js +55 -0
- package/dist/chunks/chunk.64725NP3.js +1 -0
- package/dist/chunks/chunk.6HO3MVIP.js +1 -0
- package/dist/chunks/chunk.6I57S7FR.js +27 -0
- package/dist/chunks/chunk.6XHCRR5R.js +9 -0
- package/dist/chunks/chunk.73HKAO6V.js +11 -0
- package/dist/chunks/chunk.7COB35MT.js +75 -0
- package/dist/chunks/chunk.7NCUNKBE.js +1 -0
- package/dist/chunks/chunk.7NXWYAIR.js +1 -0
- package/dist/chunks/chunk.7SLU543S.js +1 -0
- package/dist/chunks/chunk.7XQG4HG3.js +1 -0
- package/dist/chunks/chunk.A2ZTVI45.js +154 -0
- package/dist/chunks/chunk.AAUFO4KA.js +1 -0
- package/dist/chunks/chunk.AFNS7NIK.js +1 -0
- package/dist/chunks/chunk.AHL4S3IT.js +1 -0
- package/dist/chunks/chunk.AHS4Q35I.js +1 -0
- package/dist/chunks/chunk.AIWYS7YQ.js +1 -0
- package/dist/chunks/chunk.ALIRA2AC.js +1 -0
- package/dist/chunks/chunk.ATILEODB.js +18 -0
- package/dist/chunks/chunk.B3X6VXDL.js +1 -0
- package/dist/chunks/chunk.B4BXOMMQ.js +1 -0
- package/dist/chunks/chunk.BCGQKSR6.js +1 -0
- package/dist/chunks/chunk.BOZFOR5U.js +1 -0
- package/dist/chunks/chunk.BQB6XWSY.js +1 -0
- package/dist/chunks/chunk.BW5OZ5PS.js +1 -0
- package/dist/chunks/chunk.BXPTMVQE.js +1 -0
- package/dist/chunks/chunk.C6OX4NX6.js +74 -0
- package/dist/chunks/chunk.C7VEVA2Y.js +20 -0
- package/dist/chunks/chunk.CEOBCS56.js +1 -0
- package/dist/chunks/chunk.CGTXCYPM.js +41 -0
- package/dist/chunks/chunk.CH2PWIJD.js +5 -0
- package/dist/chunks/chunk.CLY6HMJZ.js +121 -0
- package/dist/chunks/chunk.CNGZOMLD.js +1 -0
- package/dist/chunks/chunk.CPFON5LM.js +1 -0
- package/dist/chunks/chunk.CQUQVS3M.js +1 -0
- package/dist/chunks/chunk.CRHOUQZH.js +1023 -0
- package/dist/chunks/chunk.CVKACFML.js +1 -0
- package/dist/chunks/chunk.D3JQRTEL.js +1 -0
- package/dist/chunks/chunk.DH5QWPH3.js +126 -0
- package/dist/chunks/chunk.DJ5BXB5G.js +48 -0
- package/dist/chunks/chunk.DKBGIHHD.js +1 -0
- package/dist/chunks/chunk.DOT4H7LX.js +2 -0
- package/dist/chunks/chunk.DTKNWAYL.js +62 -0
- package/dist/chunks/chunk.DWQMS6BC.js +1 -0
- package/dist/chunks/chunk.E477TJOR.js +1 -0
- package/dist/chunks/chunk.E4ELJE6I.js +35 -0
- package/dist/chunks/chunk.EB3ZPXT6.js +1 -0
- package/dist/chunks/chunk.EP2O3QZD.js +1 -0
- package/dist/chunks/chunk.EP5CSYKQ.js +1 -0
- package/dist/chunks/chunk.EQV2PFSY.js +1 -0
- package/dist/chunks/chunk.ER2IYY3T.js +1 -0
- package/dist/chunks/chunk.EV5P56DN.js +1 -0
- package/dist/chunks/chunk.F3NCEQ7X.js +1 -0
- package/dist/chunks/chunk.FSZCT7LX.js +26 -0
- package/dist/chunks/chunk.G3ZRWDDX.js +1 -0
- package/dist/chunks/chunk.G57LF47A.js +1 -0
- package/dist/chunks/chunk.GABTYKJH.js +1 -0
- package/dist/chunks/chunk.GHAZYRJA.js +1 -0
- package/dist/chunks/chunk.GP5SO7WB.js +43 -0
- package/dist/chunks/chunk.GQKEZMI5.js +64 -0
- package/dist/chunks/chunk.GUCJK7CQ.js +1 -0
- package/dist/chunks/chunk.GVVBO4QC.js +30 -0
- package/dist/chunks/chunk.H57KVCKB.js +4 -0
- package/dist/chunks/chunk.HCPPIK6X.js +1 -0
- package/dist/chunks/chunk.HDBWSDNO.js +1 -0
- package/dist/chunks/chunk.HDQVEOLO.js +1 -0
- package/dist/chunks/chunk.HKOYW5P7.js +1 -0
- package/dist/chunks/chunk.HPJUOBS5.js +1 -0
- package/dist/chunks/chunk.HTEGCYSS.js +2 -0
- package/dist/chunks/chunk.I2766Z6G.js +1 -0
- package/dist/chunks/chunk.I6OSLDVJ.js +1 -0
- package/dist/chunks/chunk.I6WZHDJR.js +1 -0
- package/dist/chunks/chunk.ID6GATFM.js +1 -0
- package/dist/chunks/chunk.IDQKGC62.js +1 -0
- package/dist/chunks/chunk.IRLLX53J.js +47 -0
- package/dist/chunks/chunk.IS2NEHYI.js +1 -0
- package/dist/chunks/chunk.IS4IX5PC.js +1 -0
- package/dist/chunks/chunk.J6W2UPV5.js +1 -0
- package/dist/chunks/chunk.JBNOA3A2.js +1 -0
- package/dist/chunks/chunk.JDM4WI4S.js +20 -0
- package/dist/chunks/chunk.JIF57YBB.js +1 -0
- package/dist/chunks/chunk.JM33IYJC.js +1 -0
- package/dist/chunks/chunk.JMLZNWOP.js +14 -0
- package/dist/chunks/chunk.JRCA2SKL.js +145 -0
- package/dist/chunks/chunk.JVSJPJIU.js +5 -0
- package/dist/chunks/chunk.JZKLCWMN.js +1 -0
- package/dist/chunks/chunk.JZLGMRZU.js +157 -0
- package/dist/chunks/chunk.K5BRJBGT.js +1 -0
- package/dist/chunks/chunk.KACJAQNX.js +6 -0
- package/dist/chunks/chunk.KEJYVX6V.js +55 -0
- package/dist/chunks/chunk.KF3WZUJB.js +1 -0
- package/dist/chunks/chunk.KGWY64U3.js +1 -0
- package/dist/chunks/chunk.KHUTJ2EC.js +1 -0
- package/dist/chunks/chunk.KOQ6WD4F.js +1 -0
- package/dist/chunks/chunk.KPNLEIXC.js +99 -0
- package/dist/chunks/chunk.KZAPYGJP.js +1 -0
- package/dist/chunks/chunk.L5QDGGS7.js +1 -0
- package/dist/chunks/chunk.LCYI63EA.js +20 -0
- package/dist/chunks/chunk.LEZEAL23.js +1 -0
- package/dist/chunks/chunk.LM6MTY2M.js +37 -0
- package/dist/chunks/chunk.LOLJACKL.js +1 -0
- package/dist/chunks/chunk.LQU34HVZ.js +1 -0
- package/dist/chunks/chunk.LVAET76P.js +1 -0
- package/dist/chunks/chunk.LXFMQAKV.js +1 -0
- package/dist/chunks/chunk.LYEGL5BZ.js +1 -0
- package/dist/chunks/chunk.LZZE65EN.js +1 -0
- package/dist/chunks/chunk.MCJ2GX4A.js +30 -0
- package/dist/chunks/chunk.MDKK4AJV.js +17 -0
- package/dist/chunks/chunk.MF67H5JA.js +1 -0
- package/dist/chunks/chunk.MGU32BIU.js +59 -0
- package/dist/chunks/chunk.MK3X5JIU.js +65 -0
- package/dist/chunks/chunk.MLR4ZKRU.js +1 -0
- package/dist/chunks/chunk.MQIO6BEA.js +1 -0
- package/dist/chunks/chunk.MU4BRZ5R.js +1 -0
- package/dist/chunks/chunk.MWPFFGL3.js +1 -0
- package/dist/chunks/chunk.MXMEA7TP.js +1 -0
- package/dist/chunks/chunk.N3V2FL7Q.js +1 -0
- package/dist/chunks/chunk.NARLVFIQ.js +33 -0
- package/dist/chunks/chunk.NK753QCZ.js +1 -0
- package/dist/chunks/chunk.NOXPOPPM.js +1 -0
- package/dist/chunks/chunk.NTZXYW2X.js +1 -0
- package/dist/chunks/chunk.NV3ZCWPP.js +1 -0
- package/dist/chunks/chunk.O2UN3QQG.js +1 -0
- package/dist/chunks/chunk.O47BMDEV.js +1 -0
- package/dist/chunks/chunk.OJM5RA3G.js +1 -0
- package/dist/chunks/chunk.OM4YQXHL.js +1 -0
- package/dist/chunks/chunk.OVTNI4H2.js +1 -0
- package/dist/chunks/chunk.OWXS5GVL.js +1 -0
- package/dist/chunks/chunk.OZSD4QYB.js +1 -0
- package/dist/chunks/chunk.PIKCG752.js +1 -0
- package/dist/chunks/chunk.PLSGWBX4.js +42 -0
- package/dist/chunks/chunk.PP6KREF2.js +5 -0
- package/dist/chunks/chunk.PQVZB2P2.js +67 -0
- package/dist/chunks/chunk.PRUHQ3VS.js +1 -0
- package/dist/chunks/chunk.PWFX3VPM.js +1 -0
- package/dist/chunks/chunk.PXVAQ2MA.js +55 -0
- package/dist/chunks/chunk.Q6O6LV3R.js +1 -0
- package/dist/chunks/chunk.QB7E6R2H.js +1 -0
- package/dist/chunks/chunk.QJRLPQ4M.js +1 -0
- package/dist/chunks/chunk.QOQWXEK5.js +1 -0
- package/dist/chunks/chunk.QVDEJXKO.js +1 -0
- package/dist/chunks/chunk.RKMR7V7J.js +1 -0
- package/dist/chunks/chunk.RLTSECXU.js +1 -0
- package/dist/chunks/chunk.RQYBMFWH.js +25 -0
- package/dist/chunks/chunk.S6IY5EKN.js +1 -0
- package/dist/chunks/chunk.SD2Q7EO2.js +23 -0
- package/dist/chunks/chunk.SEBIDNZM.js +1 -0
- package/dist/chunks/chunk.SF2OZFKQ.js +26 -0
- package/dist/chunks/chunk.SFK6BRQV.js +16 -0
- package/dist/chunks/chunk.SJTIVT6P.js +1 -0
- package/dist/chunks/chunk.SKK3NN5J.js +129 -0
- package/dist/chunks/chunk.SXGO5MEK.js +100 -0
- package/dist/chunks/chunk.TANXPJFE.js +1 -0
- package/dist/chunks/chunk.TATIBHUA.js +1 -0
- package/dist/chunks/chunk.TOON2INB.js +39 -0
- package/dist/chunks/chunk.TPUQNE3A.js +1 -0
- package/dist/chunks/chunk.TUGWQPTL.js +1 -0
- package/dist/chunks/chunk.TVERDMGY.js +113 -0
- package/dist/chunks/chunk.TWRNH5K5.js +1 -0
- package/dist/chunks/chunk.UQ6BNK6J.js +1 -0
- package/dist/chunks/chunk.UR7PHRDS.js +345 -0
- package/dist/chunks/chunk.V4XJH6YL.js +80 -0
- package/dist/chunks/chunk.VEPO6QAD.js +1 -0
- package/dist/chunks/chunk.VGN6LMHA.js +1 -0
- package/dist/chunks/chunk.VGQNQREB.js +1 -0
- package/dist/chunks/chunk.VSYDUDNW.js +1286 -0
- package/dist/chunks/chunk.W2E2TLSM.js +176 -0
- package/dist/chunks/chunk.WQ6USVYL.js +1 -0
- package/dist/chunks/chunk.WSBH5HTI.js +1 -0
- package/dist/chunks/chunk.WVBRHYTU.js +1 -0
- package/dist/chunks/chunk.X66E247Y.js +1 -0
- package/dist/chunks/chunk.XAPKFJEL.js +1 -0
- package/dist/chunks/chunk.XCYCEX7B.js +1 -0
- package/dist/chunks/chunk.XYOSJOLJ.js +1 -0
- package/dist/chunks/chunk.XZJS7S7T.js +280 -0
- package/dist/chunks/chunk.Y6ESPBDJ.js +1 -0
- package/dist/chunks/chunk.Y6HSCFK2.js +1 -0
- package/dist/chunks/chunk.YA7JZZG4.js +1 -0
- package/dist/chunks/chunk.YBALUVPL.js +1 -0
- package/dist/chunks/chunk.YFCEZZRF.js +1 -0
- package/dist/chunks/chunk.YLGPGQY4.js +566 -0
- package/dist/chunks/chunk.YLNZLECF.js +9 -0
- package/dist/chunks/chunk.YMDGNLGV.js +1 -0
- package/dist/chunks/chunk.YNN3NBWK.js +1 -0
- package/dist/chunks/chunk.YO67MSZK.js +780 -0
- package/dist/chunks/chunk.YY3G7NCY.js +35 -0
- package/dist/chunks/chunk.YZJEAHZH.js +1 -0
- package/dist/chunks/chunk.YZXEYQ6F.js +1 -0
- package/dist/chunks/chunk.ZBHNSZBH.js +24 -0
- package/dist/chunks/chunk.ZCPIP5RL.js +774 -0
- package/dist/chunks/chunk.ZFCVEZXM.js +11 -0
- package/dist/components/accordion/accordion.component.js +1 -1
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/alert/alert.component.js +1 -1
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/avatar/avatar.component.js +1 -1
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/badge/badge.component.js +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/banner/banner.component.js +1 -1
- package/dist/components/banner/banner.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.component.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.component.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/components/browse-variables/browse-variables.component.d.ts +1 -1
- package/dist/components/browse-variables/browse-variables.component.js +1 -1
- package/dist/components/browse-variables/browse-variables.controller.js +1 -1
- package/dist/components/browse-variables/browse-variables.js +1 -1
- package/dist/components/button/button.component.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/button-group/button-group.component.js +1 -1
- package/dist/components/button-group/button-group.js +1 -1
- package/dist/components/caption/caption.component.js +1 -1
- package/dist/components/caption/caption.js +1 -1
- package/dist/components/card/card.component.js +1 -1
- package/dist/components/card/card.js +1 -1
- package/dist/components/checkbox/checkbox.component.js +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/chip/chip.component.js +1 -1
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/combobox/combobox.component.js +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/data-access/data-access.component.d.ts +11 -11
- package/dist/components/data-access/data-access.component.js +1 -1
- package/dist/components/data-access/data-access.js +1 -1
- package/dist/components/data-grid/data-grid.component.js +1 -1
- package/dist/components/data-grid/data-grid.js +1 -1
- package/dist/components/data-rods/data-rods.component.d.ts +7 -11
- package/dist/components/data-rods/data-rods.component.js +1 -1
- package/dist/components/data-rods/data-rods.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.component.d.ts +8 -5
- package/dist/components/data-subsetter/data-subsetter.component.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.styles.js +1 -1
- package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.component.d.ts +4 -7
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
- package/dist/components/date-picker/date-picker.component.d.ts +3 -4
- package/dist/components/date-picker/date-picker.component.js +1 -1
- package/dist/components/date-picker/date-picker.js +1 -1
- package/dist/components/date-range-slider/date-range-slider.component.js +1 -1
- package/dist/components/date-range-slider/date-range-slider.js +1 -1
- package/dist/components/dialog/dialog.component.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/divider/divider.component.js +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/dropdown/dropdown.component.js +1 -1
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/earthdata-login/earthdata-login.component.d.ts +3 -1
- package/dist/components/earthdata-login/earthdata-login.component.js +1 -1
- package/dist/components/earthdata-login/earthdata-login.js +1 -1
- package/dist/components/file-upload/file-upload.component.js +1 -1
- package/dist/components/file-upload/file-upload.js +1 -1
- package/dist/components/harmony-history/harmony-history.component.d.ts +3 -6
- package/dist/components/harmony-history/harmony-history.component.js +1 -1
- package/dist/components/harmony-history/harmony-history.js +1 -1
- package/dist/components/icon/icon.component.js +1 -1
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/input/input.component.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/loader/loader.component.js +1 -1
- package/dist/components/loader/loader.js +1 -1
- package/dist/components/login/login.component.d.ts +3 -1
- package/dist/components/login/login.component.js +1 -1
- package/dist/components/login/login.js +1 -1
- package/dist/components/map/controls/draw-toolbar.control.d.ts +5 -2
- package/dist/components/map/controls/draw-toolbar.control.js +1 -1
- package/dist/components/map/controls/layer-picker.control.d.ts +16 -0
- package/dist/components/map/controls/layer-picker.control.js +1 -0
- package/dist/components/map/layers/base.layer.d.ts +10 -0
- package/dist/components/map/layers/base.layer.js +1 -1
- package/dist/components/map/layers/boundary.d.ts +30 -0
- package/dist/components/map/layers/boundary.js +1 -0
- package/dist/components/map/layers/common.d.ts +2 -0
- package/dist/components/map/layers/gibs-vector.layer.js +1 -1
- package/dist/components/map/layers/gibs.layer.d.ts +6 -0
- package/dist/components/map/layers/gibs.layer.js +1 -1
- package/dist/components/map/layers/layer.js +1 -1
- package/dist/components/map/map.component.d.ts +73 -21
- package/dist/components/map/map.component.js +1 -1
- package/dist/components/map/map.js +1 -1
- package/dist/components/map/map.service.d.ts +92 -9
- package/dist/components/map/map.service.js +1 -1
- package/dist/components/map/map.styles.js +1 -1
- package/dist/components/map/type.d.ts +7 -0
- package/dist/components/map/type.js +1 -1
- package/dist/components/menu/menu.component.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/menu-item/menu-item.component.js +1 -1
- package/dist/components/menu-item/menu-item.js +1 -1
- package/dist/components/option/option.component.js +1 -1
- package/dist/components/option/option.js +1 -1
- package/dist/components/pagination/pagination.component.js +1 -1
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/plot/plot.component.js +1 -1
- package/dist/components/plot/plot.js +1 -1
- package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
- package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
- package/dist/components/plot-toolbar/plot-toolbar.component.d.ts +4 -4
- package/dist/components/plot-toolbar/plot-toolbar.component.js +1 -1
- package/dist/components/plot-toolbar/plot-toolbar.js +1 -1
- package/dist/components/popup/popup.component.js +1 -1
- package/dist/components/popup/popup.js +1 -1
- package/dist/components/progress-bar/progress-bar.component.js +1 -1
- package/dist/components/progress-bar/progress-bar.js +1 -1
- package/dist/components/radio/radio.component.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-group/radio-group.component.js +1 -1
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/scroll-hint/scroll-hint.component.js +1 -1
- package/dist/components/scroll-hint/scroll-hint.js +1 -1
- package/dist/components/select/select.component.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/site-header/site-header.component.js +1 -1
- package/dist/components/site-header/site-header.js +1 -1
- package/dist/components/site-navigation/site-navigation.component.js +1 -1
- package/dist/components/site-navigation/site-navigation.js +1 -1
- package/dist/components/skeleton/skeleton.component.js +1 -1
- package/dist/components/skeleton/skeleton.js +1 -1
- package/dist/components/slider/slider.component.js +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/spatial-picker/spatial-picker.component.d.ts +0 -10
- package/dist/components/spatial-picker/spatial-picker.component.js +1 -1
- package/dist/components/spatial-picker/spatial-picker.js +1 -1
- package/dist/components/status-indicator/status-indicator.component.js +1 -1
- package/dist/components/status-indicator/status-indicator.js +1 -1
- package/dist/components/stepper/stepper.component.js +1 -1
- package/dist/components/stepper/stepper.js +1 -1
- package/dist/components/stepper-step/stepper-step.component.js +1 -1
- package/dist/components/stepper-step/stepper-step.js +1 -1
- package/dist/components/tab/tab.component.js +1 -1
- package/dist/components/tab/tab.js +1 -1
- package/dist/components/tab-panel/tab-panel.component.js +1 -1
- package/dist/components/tab-panel/tab-panel.js +1 -1
- package/dist/components/tabs/tabs.component.d.ts +2 -1
- package/dist/components/tabs/tabs.component.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tag/tag.component.js +1 -1
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/textarea/textarea.component.js +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/time-average-map/time-average-map.component.d.ts +10 -14
- package/dist/components/time-average-map/time-average-map.component.js +1 -1
- package/dist/components/time-average-map/time-average-map.controller.js +1 -1
- package/dist/components/time-average-map/time-average-map.js +1 -1
- package/dist/components/time-series/time-series.component.d.ts +2 -10
- package/dist/components/time-series/time-series.component.js +1 -1
- package/dist/components/time-series/time-series.controller.js +1 -1
- package/dist/components/time-series/time-series.js +1 -1
- package/dist/components/toast/toast.component.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toggle/toggle.component.js +1 -1
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/tooltip/tooltip.component.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.component.d.ts +5 -9
- package/dist/components/variable-combobox/variable-combobox.component.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.js +1 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.component.d.ts +2 -2
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +1 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.js +1 -1
- package/dist/custom-elements.json +10670 -8582
- package/dist/events/events.d.ts +2 -2
- package/dist/events/terra-map.d.ts +55 -0
- package/dist/mixins/auth.mixin.d.ts +23 -0
- package/dist/mixins/mixin.types.d.ts +1 -0
- package/dist/mixins/query-client.mixin.d.ts +1 -1
- package/dist/react/accordion/index.js +1 -1
- package/dist/react/alert/index.js +1 -1
- package/dist/react/avatar/index.js +1 -1
- package/dist/react/badge/index.js +1 -1
- package/dist/react/banner/index.js +1 -1
- package/dist/react/breadcrumb/index.js +1 -1
- package/dist/react/breadcrumbs/index.js +1 -1
- package/dist/react/browse-variables/index.js +1 -1
- package/dist/react/button/index.js +1 -1
- package/dist/react/button-group/index.js +1 -1
- package/dist/react/caption/index.js +1 -1
- package/dist/react/card/index.js +1 -1
- package/dist/react/checkbox/index.js +1 -1
- package/dist/react/chip/index.js +1 -1
- package/dist/react/combobox/index.js +1 -1
- package/dist/react/data-access/index.js +1 -1
- package/dist/react/data-grid/index.js +1 -1
- package/dist/react/data-rods/index.d.ts +6 -1
- package/dist/react/data-rods/index.js +1 -1
- package/dist/react/data-subsetter/index.d.ts +3 -0
- package/dist/react/data-subsetter/index.js +1 -1
- package/dist/react/data-subsetter-history/index.d.ts +6 -1
- package/dist/react/data-subsetter-history/index.js +1 -1
- package/dist/react/date-picker/index.js +1 -1
- package/dist/react/date-range-slider/index.js +1 -1
- package/dist/react/dialog/index.js +1 -1
- package/dist/react/divider/index.js +1 -1
- package/dist/react/dropdown/index.js +1 -1
- package/dist/react/earthdata-login/index.js +1 -1
- package/dist/react/file-upload/index.js +1 -1
- package/dist/react/harmony-history/index.d.ts +3 -0
- package/dist/react/harmony-history/index.js +1 -1
- package/dist/react/icon/index.js +1 -1
- package/dist/react/index.d.ts +24 -24
- package/dist/react/index.js +1 -1
- package/dist/react/input/index.js +1 -1
- package/dist/react/loader/index.js +1 -1
- package/dist/react/login/index.js +1 -1
- package/dist/react/map/index.d.ts +32 -1
- package/dist/react/map/index.js +1 -1
- package/dist/react/menu/index.js +1 -1
- package/dist/react/menu-item/index.js +1 -1
- package/dist/react/option/index.js +1 -1
- package/dist/react/pagination/index.js +1 -1
- package/dist/react/plot/index.js +1 -1
- package/dist/react/plot-toolbar/index.d.ts +6 -1
- package/dist/react/plot-toolbar/index.js +1 -1
- package/dist/react/popup/index.js +1 -1
- package/dist/react/progress-bar/index.js +1 -1
- package/dist/react/radio/index.js +1 -1
- package/dist/react/radio-group/index.js +1 -1
- package/dist/react/scroll-hint/index.js +1 -1
- package/dist/react/select/index.js +1 -1
- package/dist/react/site-header/index.js +1 -1
- package/dist/react/site-navigation/index.js +1 -1
- package/dist/react/skeleton/index.js +1 -1
- package/dist/react/slider/index.js +1 -1
- package/dist/react/spatial-picker/index.js +1 -1
- package/dist/react/status-indicator/index.js +1 -1
- package/dist/react/stepper/index.js +1 -1
- package/dist/react/stepper-step/index.js +1 -1
- package/dist/react/tab/index.js +1 -1
- package/dist/react/tab-panel/index.js +1 -1
- package/dist/react/tabs/index.js +1 -1
- package/dist/react/tag/index.js +1 -1
- package/dist/react/textarea/index.js +1 -1
- package/dist/react/time-average-map/index.d.ts +6 -1
- package/dist/react/time-average-map/index.js +1 -1
- package/dist/react/time-series/index.d.ts +3 -0
- package/dist/react/time-series/index.js +1 -1
- package/dist/react/toast/index.js +1 -1
- package/dist/react/toggle/index.js +1 -1
- package/dist/react/tooltip/index.js +1 -1
- package/dist/react/variable-combobox/index.d.ts +4 -1
- package/dist/react/variable-combobox/index.js +1 -1
- package/dist/react/variable-keyword-search/index.d.ts +1 -1
- package/dist/react/variable-keyword-search/index.js +1 -1
- package/dist/terra-ui-components.js +1 -1
- package/dist/terra_ui_components-0.0.205-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.205.tar.gz +0 -0
- package/dist/types/vue/index.d.ts +1037 -870
- package/dist/utilities/date.d.ts +4 -0
- package/dist/utilities/date.js +1 -1
- package/dist/utilities/variable-task.js +1 -1
- package/dist/vscode.html-custom-data.json +692 -661
- package/dist/web-types.json +2243 -2077
- package/package.json +6 -4
- package/cdn/auth/auth.controller.d.ts +0 -16
- package/cdn/chunks/GeoTIFF.KMHPSKO6.js +0 -19975
- package/cdn/chunks/chunk.27KCXEZH.js +0 -431
- package/cdn/chunks/chunk.2AFX3VCL.js +0 -125
- package/cdn/chunks/chunk.2DFPSVL6.js +0 -68
- package/cdn/chunks/chunk.2DPXUVUW.js +0 -357
- package/cdn/chunks/chunk.2EKGBKN2.js +0 -19
- package/cdn/chunks/chunk.2FSYZKPK.js +0 -29
- package/cdn/chunks/chunk.2HXJHNH3.js +0 -5339
- package/cdn/chunks/chunk.2IA6WV7R.js +0 -19
- package/cdn/chunks/chunk.2NRTTHOD.js +0 -30
- package/cdn/chunks/chunk.2PJPIGBI.js +0 -1122
- package/cdn/chunks/chunk.2RYJM2TF.js +0 -19
- package/cdn/chunks/chunk.2UATMVXP.js +0 -261
- package/cdn/chunks/chunk.2UUMIAXS.js +0 -19
- package/cdn/chunks/chunk.3A3QJT7L.js +0 -29
- package/cdn/chunks/chunk.3UXSNM76.js +0 -32
- package/cdn/chunks/chunk.4CVCW4V3.js +0 -32
- package/cdn/chunks/chunk.4HFZS2GO.js +0 -19
- package/cdn/chunks/chunk.4KCMI4UU.js +0 -1036
- package/cdn/chunks/chunk.4M7FMP7T.js +0 -442
- package/cdn/chunks/chunk.4OETFOY2.js +0 -71
- package/cdn/chunks/chunk.4UI7P3Y4.js +0 -19
- package/cdn/chunks/chunk.4VE4DO4N.js +0 -19
- package/cdn/chunks/chunk.4YE3LB3R.js +0 -19
- package/cdn/chunks/chunk.4ZBYMDD6.js +0 -189
- package/cdn/chunks/chunk.5CDWDWX5.js +0 -136
- package/cdn/chunks/chunk.5CLU2XHI.js +0 -29
- package/cdn/chunks/chunk.5G4MIKDW.js +0 -19
- package/cdn/chunks/chunk.5KHCLX4N.js +0 -64743
- package/cdn/chunks/chunk.5N76KCT4.js +0 -285
- package/cdn/chunks/chunk.5OEHZWXQ.js +0 -19
- package/cdn/chunks/chunk.5U22JWZL.js +0 -117
- package/cdn/chunks/chunk.5USXBJV5.js +0 -35
- package/cdn/chunks/chunk.5YQFC77E.js +0 -37
- package/cdn/chunks/chunk.6E7Z4C4E.js +0 -19
- package/cdn/chunks/chunk.6FWN6ZZC.js +0 -32
- package/cdn/chunks/chunk.6J2OCJ7J.js +0 -84
- package/cdn/chunks/chunk.6LOJQVYN.js +0 -36
- package/cdn/chunks/chunk.6OC7H5OH.js +0 -28
- package/cdn/chunks/chunk.6QEEVDUE.js +0 -427
- package/cdn/chunks/chunk.6SAM6SI7.js +0 -19
- package/cdn/chunks/chunk.6VTIK2C6.js +0 -19
- package/cdn/chunks/chunk.75FXMQOA.js +0 -19
- package/cdn/chunks/chunk.7HUACA54.js +0 -29
- package/cdn/chunks/chunk.7L2TSDLJ.js +0 -2028
- package/cdn/chunks/chunk.7N55EAUN.js +0 -17305
- package/cdn/chunks/chunk.7VOSRG7X.js +0 -19
- package/cdn/chunks/chunk.7WUVQEAR.js +0 -256
- package/cdn/chunks/chunk.7Y44JBIB.js +0 -550
- package/cdn/chunks/chunk.7ZI27RZO.js +0 -1136
- package/cdn/chunks/chunk.ACUUMB46.js +0 -33
- package/cdn/chunks/chunk.AFJMWE55.js +0 -29
- package/cdn/chunks/chunk.AH535OUT.js +0 -19
- package/cdn/chunks/chunk.AJTI5LZT.js +0 -60
- package/cdn/chunks/chunk.AL34JKBE.js +0 -19
- package/cdn/chunks/chunk.ANOS3OTE.js +0 -29
- package/cdn/chunks/chunk.AP5WCU4L.js +0 -134
- package/cdn/chunks/chunk.AQQD3TGI.js +0 -19
- package/cdn/chunks/chunk.AWU6UL7H.js +0 -19
- package/cdn/chunks/chunk.AYV43FGZ.js +0 -110
- package/cdn/chunks/chunk.B6MUHPWI.js +0 -19
- package/cdn/chunks/chunk.BHW5IL3I.js +0 -19
- package/cdn/chunks/chunk.BPRI6OGA.js +0 -29
- package/cdn/chunks/chunk.BPTWMSFM.js +0 -259
- package/cdn/chunks/chunk.BTPIPKWK.js +0 -29
- package/cdn/chunks/chunk.C2SRCC4M.js +0 -19
- package/cdn/chunks/chunk.C3SXIMJF.js +0 -29
- package/cdn/chunks/chunk.CDYBBCIE.js +0 -29
- package/cdn/chunks/chunk.CHKUZKW6.js +0 -19
- package/cdn/chunks/chunk.CJG6IYUQ.js +0 -699
- package/cdn/chunks/chunk.COA7ZPCF.js +0 -86
- package/cdn/chunks/chunk.CV4QCJYB.js +0 -29
- package/cdn/chunks/chunk.CV7V62DS.js +0 -33
- package/cdn/chunks/chunk.CWNNDPJR.js +0 -36
- package/cdn/chunks/chunk.CWVFOCEY.js +0 -123
- package/cdn/chunks/chunk.D6DZ2ABR.js +0 -19
- package/cdn/chunks/chunk.DAHT4D47.js +0 -19
- package/cdn/chunks/chunk.DDCWMDIC.js +0 -32
- package/cdn/chunks/chunk.DNVJF7IY.js +0 -39
- package/cdn/chunks/chunk.DOAEM5ON.js +0 -4083
- package/cdn/chunks/chunk.DOLQGIFG.js +0 -19
- package/cdn/chunks/chunk.DPKA4G53.js +0 -601
- package/cdn/chunks/chunk.DTUP6KDY.js +0 -19
- package/cdn/chunks/chunk.DXQUJESD.js +0 -8969
- package/cdn/chunks/chunk.E52YFLSL.js +0 -32
- package/cdn/chunks/chunk.E6S2GD5C.js +0 -31
- package/cdn/chunks/chunk.EQDMPPT6.js +0 -1413
- package/cdn/chunks/chunk.ERJEIORY.js +0 -36
- package/cdn/chunks/chunk.F26CV3RM.js +0 -32
- package/cdn/chunks/chunk.F5ATUIYK.js +0 -29
- package/cdn/chunks/chunk.FALB73Y2.js +0 -37
- package/cdn/chunks/chunk.FCQ22IGW.js +0 -104
- package/cdn/chunks/chunk.FQ6BZ3IY.js +0 -234
- package/cdn/chunks/chunk.FS3BAWIP.js +0 -19
- package/cdn/chunks/chunk.FUANKNNM.js +0 -19
- package/cdn/chunks/chunk.FVMOO5PZ.js +0 -111
- package/cdn/chunks/chunk.FWA7FNBM.js +0 -29
- package/cdn/chunks/chunk.FXGGRWLG.js +0 -106
- package/cdn/chunks/chunk.G5C4B32K.js +0 -32
- package/cdn/chunks/chunk.GAE7V6RB.js +0 -93
- package/cdn/chunks/chunk.GBGE6X2T.js +0 -1018
- package/cdn/chunks/chunk.GBR3XNSE.js +0 -19
- package/cdn/chunks/chunk.GDXZZBNN.js +0 -29
- package/cdn/chunks/chunk.GEZJ4HAT.js +0 -128
- package/cdn/chunks/chunk.GHYNGNCL.js +0 -19
- package/cdn/chunks/chunk.GVSCZXYP.js +0 -152
- package/cdn/chunks/chunk.H4THPLKV.js +0 -375
- package/cdn/chunks/chunk.H6DYN62P.js +0 -19
- package/cdn/chunks/chunk.H7ILJBVJ.js +0 -29
- package/cdn/chunks/chunk.HA24JYMN.js +0 -34
- package/cdn/chunks/chunk.HBVD5YDA.js +0 -19
- package/cdn/chunks/chunk.HDOVTS2Z.js +0 -333
- package/cdn/chunks/chunk.HE3V76OH.js +0 -29
- package/cdn/chunks/chunk.HSQJHXWN.js +0 -19
- package/cdn/chunks/chunk.HWXTC2NL.js +0 -475
- package/cdn/chunks/chunk.I3ZCGZPC.js +0 -629
- package/cdn/chunks/chunk.IDRFRYGU.js +0 -19
- package/cdn/chunks/chunk.IPAGICZN.js +0 -38
- package/cdn/chunks/chunk.IUV6CTRY.js +0 -231
- package/cdn/chunks/chunk.IW2V63Q4.js +0 -278
- package/cdn/chunks/chunk.J2QE6B7T.js +0 -158
- package/cdn/chunks/chunk.J5WVGYHM.js +0 -1071
- package/cdn/chunks/chunk.JGXF7ZXQ.js +0 -32
- package/cdn/chunks/chunk.JTDMKEVX.js +0 -19
- package/cdn/chunks/chunk.JU2BT7V3.js +0 -29
- package/cdn/chunks/chunk.JUAS37EG.js +0 -47
- package/cdn/chunks/chunk.KCLVMBYX.js +0 -19
- package/cdn/chunks/chunk.KLVTN4RA.js +0 -1780
- package/cdn/chunks/chunk.KNOXZXLV.js +0 -62
- package/cdn/chunks/chunk.KNWDEVCZ.js +0 -872
- package/cdn/chunks/chunk.KTH7B5P7.js +0 -32
- package/cdn/chunks/chunk.KVXAUKHU.js +0 -29
- package/cdn/chunks/chunk.L453DWOS.js +0 -162
- package/cdn/chunks/chunk.L4APEYLE.js +0 -33
- package/cdn/chunks/chunk.L6RUQB6F.js +0 -113
- package/cdn/chunks/chunk.LEJPCXRH.js +0 -575
- package/cdn/chunks/chunk.LGHXPOGX.js +0 -19
- package/cdn/chunks/chunk.LMFFT6QZ.js +0 -19
- package/cdn/chunks/chunk.LV52UGIG.js +0 -19
- package/cdn/chunks/chunk.LYTJDP4F.js +0 -528
- package/cdn/chunks/chunk.M6TNRFZO.js +0 -32
- package/cdn/chunks/chunk.MB55MNWI.js +0 -132
- package/cdn/chunks/chunk.MDV3HVPR.js +0 -82
- package/cdn/chunks/chunk.MKKKY7LJ.js +0 -17565
- package/cdn/chunks/chunk.ML6OFHI2.js +0 -60
- package/cdn/chunks/chunk.MMMP6IHT.js +0 -36
- package/cdn/chunks/chunk.MR7XEWMN.js +0 -29
- package/cdn/chunks/chunk.N26HWWE7.js +0 -92
- package/cdn/chunks/chunk.N6YZ3GGB.js +0 -19
- package/cdn/chunks/chunk.NKJ73Q6Z.js +0 -101
- package/cdn/chunks/chunk.NOJRNK7A.js +0 -1303
- package/cdn/chunks/chunk.O5KNCAFH.js +0 -29
- package/cdn/chunks/chunk.OHLWFMUZ.js +0 -19
- package/cdn/chunks/chunk.OK2PJLA4.js +0 -19
- package/cdn/chunks/chunk.OMERHZ7O.js +0 -1646
- package/cdn/chunks/chunk.OQR3DOIL.js +0 -29
- package/cdn/chunks/chunk.OVV6CMBK.js +0 -74
- package/cdn/chunks/chunk.OXFYKL76.js +0 -19
- package/cdn/chunks/chunk.P5MFJJGP.js +0 -195
- package/cdn/chunks/chunk.P6OHZPUZ.js +0 -2786
- package/cdn/chunks/chunk.PH3LKMHS.js +0 -32
- package/cdn/chunks/chunk.PIEU7GT4.js +0 -29
- package/cdn/chunks/chunk.PILGSWUJ.js +0 -29
- package/cdn/chunks/chunk.PLI3TNYY.js +0 -33
- package/cdn/chunks/chunk.PPCOW47J.js +0 -535
- package/cdn/chunks/chunk.PRI7AVJX.js +0 -19
- package/cdn/chunks/chunk.PWPIV2JK.js +0 -225
- package/cdn/chunks/chunk.QCEPDQ6M.js +0 -32
- package/cdn/chunks/chunk.QJUVJPT6.js +0 -19
- package/cdn/chunks/chunk.QP2APML5.js +0 -536
- package/cdn/chunks/chunk.QS7RKQGD.js +0 -19
- package/cdn/chunks/chunk.QZCCAT7W.js +0 -19
- package/cdn/chunks/chunk.QZIIYAVZ.js +0 -19
- package/cdn/chunks/chunk.QZQ7MTL4.js +0 -34
- package/cdn/chunks/chunk.RBBPG6SO.js +0 -621
- package/cdn/chunks/chunk.RL57R2DM.js +0 -37
- package/cdn/chunks/chunk.RMUH4JXF.js +0 -35
- package/cdn/chunks/chunk.RSH7CL7U.js +0 -310
- package/cdn/chunks/chunk.RXXY2DKG.js +0 -19
- package/cdn/chunks/chunk.S5BNWB7B.js +0 -185
- package/cdn/chunks/chunk.SDVBNJQZ.js +0 -19
- package/cdn/chunks/chunk.SIK75J6S.js +0 -35
- package/cdn/chunks/chunk.SJEEWCBY.js +0 -19
- package/cdn/chunks/chunk.SQWR5Y2X.js +0 -134
- package/cdn/chunks/chunk.SWNYIRFX.js +0 -19
- package/cdn/chunks/chunk.SZJZTSTJ.js +0 -36
- package/cdn/chunks/chunk.T35HK4YD.js +0 -83
- package/cdn/chunks/chunk.T4QHXOJU.js +0 -29
- package/cdn/chunks/chunk.T7A4P7JA.js +0 -19
- package/cdn/chunks/chunk.TA7CFXHM.js +0 -276
- package/cdn/chunks/chunk.TBL6KAUU.js +0 -19
- package/cdn/chunks/chunk.TDCXTEE4.js +0 -29
- package/cdn/chunks/chunk.TFX7LPOA.js +0 -29
- package/cdn/chunks/chunk.TTKS7OPN.js +0 -49
- package/cdn/chunks/chunk.TW72W3FG.js +0 -41
- package/cdn/chunks/chunk.TZ7K6LRZ.js +0 -29
- package/cdn/chunks/chunk.U64UG2NF.js +0 -897
- package/cdn/chunks/chunk.UCGET3OV.js +0 -610
- package/cdn/chunks/chunk.UFODDLBF.js +0 -190
- package/cdn/chunks/chunk.UI7I6F4E.js +0 -29
- package/cdn/chunks/chunk.UL6GPUWY.js +0 -169
- package/cdn/chunks/chunk.UNE5PGU3.js +0 -149
- package/cdn/chunks/chunk.USSOPHIF.js +0 -161
- package/cdn/chunks/chunk.UVQGTCUS.js +0 -621
- package/cdn/chunks/chunk.VAS4SJTV.js +0 -893
- package/cdn/chunks/chunk.VATEZWZS.js +0 -360
- package/cdn/chunks/chunk.VCKHZSH2.js +0 -19
- package/cdn/chunks/chunk.VHHZPEYC.js +0 -29
- package/cdn/chunks/chunk.VM6WPB7T.js +0 -32
- package/cdn/chunks/chunk.VNCKECHZ.js +0 -853
- package/cdn/chunks/chunk.VPMAHEJA.js +0 -32
- package/cdn/chunks/chunk.VQF367DL.js +0 -35
- package/cdn/chunks/chunk.VUXL5UGT.js +0 -2574
- package/cdn/chunks/chunk.W5FQPPPY.js +0 -19
- package/cdn/chunks/chunk.WCBO7P6T.js +0 -34
- package/cdn/chunks/chunk.WO24QJYS.js +0 -1005
- package/cdn/chunks/chunk.WSRDV4NV.js +0 -19
- package/cdn/chunks/chunk.WTGU6E45.js +0 -224
- package/cdn/chunks/chunk.XDVFVONG.js +0 -1945
- package/cdn/chunks/chunk.XNJGPB57.js +0 -35
- package/cdn/chunks/chunk.XXLSM7RI.js +0 -138
- package/cdn/chunks/chunk.Y6OCTUUR.js +0 -19
- package/cdn/chunks/chunk.YAWLOXFX.js +0 -271
- package/cdn/chunks/chunk.YJHDQGK3.js +0 -19
- package/cdn/chunks/chunk.YN7XE2VP.js +0 -940
- package/cdn/chunks/chunk.YTKNBCBF.js +0 -19
- package/cdn/chunks/chunk.Z3PZC46D.js +0 -33
- package/cdn/chunks/chunk.Z5U6BAQK.js +0 -292
- package/cdn/chunks/chunk.ZAS2SUGL.js +0 -19
- package/cdn/chunks/chunk.ZI2LY2UP.js +0 -524
- package/cdn/chunks/chunk.ZRSUDLUY.js +0 -754
- package/cdn/chunks/chunk.ZWUG6EZN.js +0 -544
- package/cdn/chunks/chunk.ZYF3AML6.js +0 -521
- package/cdn/chunks/chunk.ZYGBGEUR.js +0 -48
- package/cdn/chunks/chunk.ZYYDEEKW.js +0 -19
- package/cdn/chunks/lerc.OJS5YQI3.js +0 -2099
- package/cdn/events/terra-map-change.d.ts +0 -14
- package/dist/auth/auth.controller.d.ts +0 -16
- package/dist/chunks/chunk.24QTPUF2.js +0 -6
- package/dist/chunks/chunk.2A67CXHH.js +0 -5
- package/dist/chunks/chunk.2PQNGBP2.js +0 -1
- package/dist/chunks/chunk.2SYEDAOV.js +0 -1
- package/dist/chunks/chunk.2UREYJJ6.js +0 -65
- package/dist/chunks/chunk.2URJIUFD.js +0 -1
- package/dist/chunks/chunk.2VLYWQGB.js +0 -1
- package/dist/chunks/chunk.2XENK37L.js +0 -20
- package/dist/chunks/chunk.33ZH43TV.js +0 -1
- package/dist/chunks/chunk.345UCNEF.js +0 -1
- package/dist/chunks/chunk.347H65MH.js +0 -1
- package/dist/chunks/chunk.3BGJ2Y4W.js +0 -1
- package/dist/chunks/chunk.3OSNYXIB.js +0 -37
- package/dist/chunks/chunk.3SBCV5YV.js +0 -74
- package/dist/chunks/chunk.4AODHTLA.js +0 -1
- package/dist/chunks/chunk.4JUNRLEC.js +0 -1
- package/dist/chunks/chunk.4O6EGUET.js +0 -6
- package/dist/chunks/chunk.4PNNISNN.js +0 -12
- package/dist/chunks/chunk.4PXK26WC.js +0 -1
- package/dist/chunks/chunk.4RJ73FTA.js +0 -1
- package/dist/chunks/chunk.5DG6GZR2.js +0 -1
- package/dist/chunks/chunk.5OFG6SIJ.js +0 -1
- package/dist/chunks/chunk.5UIZ5N7P.js +0 -345
- package/dist/chunks/chunk.5WH5YKQV.js +0 -129
- package/dist/chunks/chunk.5WXBL2P4.js +0 -299
- package/dist/chunks/chunk.5YTPWERZ.js +0 -1
- package/dist/chunks/chunk.67VTCJF4.js +0 -527
- package/dist/chunks/chunk.6DD3MA2P.js +0 -1
- package/dist/chunks/chunk.6J72MJEC.js +0 -1
- package/dist/chunks/chunk.6OCFGLDL.js +0 -1
- package/dist/chunks/chunk.6Q54KXMC.js +0 -157
- package/dist/chunks/chunk.6R6NM245.js +0 -39
- package/dist/chunks/chunk.6SHAP35V.js +0 -55
- package/dist/chunks/chunk.6SW4NJHL.js +0 -42
- package/dist/chunks/chunk.6TALLYX6.js +0 -1
- package/dist/chunks/chunk.6ZIINXUV.js +0 -1
- package/dist/chunks/chunk.7D3QWHPQ.js +0 -1
- package/dist/chunks/chunk.7DGA6X4U.js +0 -23
- package/dist/chunks/chunk.7KZSDLA2.js +0 -11
- package/dist/chunks/chunk.7LR6X6Z6.js +0 -1
- package/dist/chunks/chunk.7TW5XUJL.js +0 -1
- package/dist/chunks/chunk.7V4HIKGV.js +0 -20
- package/dist/chunks/chunk.A3VSFB3O.js +0 -1
- package/dist/chunks/chunk.ADGVYX3D.js +0 -1
- package/dist/chunks/chunk.ALYHNSZZ.js +0 -30
- package/dist/chunks/chunk.AMKSX4J2.js +0 -1
- package/dist/chunks/chunk.AVBBSQQN.js +0 -26
- package/dist/chunks/chunk.BCBEL5J3.js +0 -1
- package/dist/chunks/chunk.BFSQRKZP.js +0 -67
- package/dist/chunks/chunk.BIMQKSIE.js +0 -1
- package/dist/chunks/chunk.BJFYPKRH.js +0 -1
- package/dist/chunks/chunk.BK22YUL3.js +0 -1
- package/dist/chunks/chunk.BMUYWCSS.js +0 -1
- package/dist/chunks/chunk.BRHNY634.js +0 -1
- package/dist/chunks/chunk.BVNNUSMK.js +0 -1
- package/dist/chunks/chunk.C6CZYR3X.js +0 -1
- package/dist/chunks/chunk.C6YOBRFC.js +0 -1
- package/dist/chunks/chunk.CO3YFDGB.js +0 -27
- package/dist/chunks/chunk.CQK6QHLB.js +0 -1
- package/dist/chunks/chunk.CQPFMW2K.js +0 -1
- package/dist/chunks/chunk.CRDPEWYE.js +0 -1
- package/dist/chunks/chunk.CS4EGLGP.js +0 -1
- package/dist/chunks/chunk.CSXC6DPV.js +0 -280
- package/dist/chunks/chunk.DH6S4SMY.js +0 -9
- package/dist/chunks/chunk.DKS4TU3H.js +0 -1
- package/dist/chunks/chunk.DTISX46U.js +0 -1
- package/dist/chunks/chunk.DWB7WY2B.js +0 -1
- package/dist/chunks/chunk.DYY5ZEGD.js +0 -8
- package/dist/chunks/chunk.E264AGUB.js +0 -1
- package/dist/chunks/chunk.E2LODYPF.js +0 -1
- package/dist/chunks/chunk.E36ROOQP.js +0 -1
- package/dist/chunks/chunk.E6SYKRYA.js +0 -18
- package/dist/chunks/chunk.E7D32WNL.js +0 -99
- package/dist/chunks/chunk.EAIG3OAM.js +0 -1
- package/dist/chunks/chunk.EPJM7OIN.js +0 -1
- package/dist/chunks/chunk.EYLQFCG6.js +0 -1
- package/dist/chunks/chunk.F2LSSWTW.js +0 -1
- package/dist/chunks/chunk.F2OOGC7E.js +0 -1
- package/dist/chunks/chunk.F463ZO54.js +0 -26
- package/dist/chunks/chunk.F4QJ3AAN.js +0 -1
- package/dist/chunks/chunk.FCLASTZJ.js +0 -59
- package/dist/chunks/chunk.FEUU6PRO.js +0 -1231
- package/dist/chunks/chunk.FFJ4LVA4.js +0 -1
- package/dist/chunks/chunk.FLY7SZ43.js +0 -1
- package/dist/chunks/chunk.FTSUICBL.js +0 -5
- package/dist/chunks/chunk.FU4VAT7K.js +0 -126
- package/dist/chunks/chunk.FY5MRGO2.js +0 -4
- package/dist/chunks/chunk.G2RBM77C.js +0 -80
- package/dist/chunks/chunk.G5WS7EAO.js +0 -1
- package/dist/chunks/chunk.GCVZMOL6.js +0 -1
- package/dist/chunks/chunk.GFJZ3U6O.js +0 -1
- package/dist/chunks/chunk.GVQ3ULCA.js +0 -1
- package/dist/chunks/chunk.GVWKFBDB.js +0 -1
- package/dist/chunks/chunk.GZC4MHZL.js +0 -1
- package/dist/chunks/chunk.GZJI67IH.js +0 -1
- package/dist/chunks/chunk.HBM2PGPH.js +0 -1
- package/dist/chunks/chunk.HFNSDYFF.js +0 -1
- package/dist/chunks/chunk.HJ7H55BL.js +0 -1
- package/dist/chunks/chunk.HMGPFX2Y.js +0 -1
- package/dist/chunks/chunk.IGXIZYGS.js +0 -1
- package/dist/chunks/chunk.IKZERRE2.js +0 -1
- package/dist/chunks/chunk.IL752DKI.js +0 -1
- package/dist/chunks/chunk.ILG3LGC7.js +0 -1
- package/dist/chunks/chunk.ILLKI5UT.js +0 -1
- package/dist/chunks/chunk.IT5GSXLK.js +0 -1
- package/dist/chunks/chunk.IX7TDXLM.js +0 -1
- package/dist/chunks/chunk.J74HQDC4.js +0 -113
- package/dist/chunks/chunk.JDUDVTGM.js +0 -33
- package/dist/chunks/chunk.JER3EYSI.js +0 -43
- package/dist/chunks/chunk.JFQVCD2G.js +0 -1
- package/dist/chunks/chunk.JJDVDIMZ.js +0 -1
- package/dist/chunks/chunk.JUCYMLNQ.js +0 -24
- package/dist/chunks/chunk.JWV3256S.js +0 -1
- package/dist/chunks/chunk.K3JWAUPW.js +0 -1
- package/dist/chunks/chunk.K7EEMK7S.js +0 -1
- package/dist/chunks/chunk.KQQP67QH.js +0 -1
- package/dist/chunks/chunk.L7LZXSLB.js +0 -1
- package/dist/chunks/chunk.L7TU4EE7.js +0 -1
- package/dist/chunks/chunk.LBQFMWHH.js +0 -1
- package/dist/chunks/chunk.LHS2JI5C.js +0 -1
- package/dist/chunks/chunk.LRB2T4C6.js +0 -1
- package/dist/chunks/chunk.LSBA65NF.js +0 -55
- package/dist/chunks/chunk.LVJYASQH.js +0 -41
- package/dist/chunks/chunk.M5IM24X6.js +0 -1
- package/dist/chunks/chunk.M7GAVBP4.js +0 -1
- package/dist/chunks/chunk.MRAFQ6FC.js +0 -1
- package/dist/chunks/chunk.MSEAPM5O.js +0 -43
- package/dist/chunks/chunk.MXJCFEZ4.js +0 -780
- package/dist/chunks/chunk.NFGRTKHK.js +0 -35
- package/dist/chunks/chunk.NM6S6YGL.js +0 -30
- package/dist/chunks/chunk.NNGAFMYS.js +0 -1
- package/dist/chunks/chunk.NS34WRBV.js +0 -154
- package/dist/chunks/chunk.NZ4QJK47.js +0 -176
- package/dist/chunks/chunk.NZERF5GE.js +0 -1
- package/dist/chunks/chunk.O36CSOQK.js +0 -11
- package/dist/chunks/chunk.OAFIM27Q.js +0 -1
- package/dist/chunks/chunk.OBJ27374.js +0 -1
- package/dist/chunks/chunk.ONZTNAIQ.js +0 -1
- package/dist/chunks/chunk.OQ4IT42W.js +0 -1
- package/dist/chunks/chunk.OSAQ45F4.js +0 -145
- package/dist/chunks/chunk.OSDEVN34.js +0 -1001
- package/dist/chunks/chunk.P23PNMO2.js +0 -1
- package/dist/chunks/chunk.PGC2LCDL.js +0 -1
- package/dist/chunks/chunk.PGUHY4NZ.js +0 -1
- package/dist/chunks/chunk.PHWB36E5.js +0 -4
- package/dist/chunks/chunk.PIP3HL2S.js +0 -1
- package/dist/chunks/chunk.PM3RUTRJ.js +0 -1
- package/dist/chunks/chunk.PNRCW5GH.js +0 -48
- package/dist/chunks/chunk.PO5EHL4Q.js +0 -1
- package/dist/chunks/chunk.PSNV3IQZ.js +0 -1
- package/dist/chunks/chunk.Q6CVPPFA.js +0 -1
- package/dist/chunks/chunk.QDFHF7LY.js +0 -1
- package/dist/chunks/chunk.QEKPRA6B.js +0 -1
- package/dist/chunks/chunk.QGXUQL5S.js +0 -1
- package/dist/chunks/chunk.QGZOQXT5.js +0 -148
- package/dist/chunks/chunk.QH3KZBRJ.js +0 -1
- package/dist/chunks/chunk.QK5M4OHI.js +0 -1
- package/dist/chunks/chunk.R6RTP7QP.js +0 -1
- package/dist/chunks/chunk.RBPNA4JU.js +0 -22
- package/dist/chunks/chunk.REIUDVA3.js +0 -1
- package/dist/chunks/chunk.RH76C7M7.js +0 -1
- package/dist/chunks/chunk.RHDTWIMS.js +0 -1
- package/dist/chunks/chunk.RKLTK3FR.js +0 -1
- package/dist/chunks/chunk.RLOQMCKP.js +0 -1
- package/dist/chunks/chunk.S65R5GMI.js +0 -1
- package/dist/chunks/chunk.S6AD3O5Y.js +0 -2
- package/dist/chunks/chunk.S6UNY7TY.js +0 -1
- package/dist/chunks/chunk.SAVXAZC3.js +0 -1
- package/dist/chunks/chunk.SDFUXOW6.js +0 -47
- package/dist/chunks/chunk.SM2LJQQZ.js +0 -1
- package/dist/chunks/chunk.SN4M25TW.js +0 -1
- package/dist/chunks/chunk.SP4US3KC.js +0 -1
- package/dist/chunks/chunk.SP7J3EGR.js +0 -1
- package/dist/chunks/chunk.ST6Y273B.js +0 -1
- package/dist/chunks/chunk.SW4EXLIK.js +0 -100
- package/dist/chunks/chunk.SYA4MGC4.js +0 -1
- package/dist/chunks/chunk.T3RRBLSI.js +0 -1
- package/dist/chunks/chunk.T5MMUQEM.js +0 -2
- package/dist/chunks/chunk.T5UOTK5T.js +0 -14
- package/dist/chunks/chunk.TCJYR6XR.js +0 -75
- package/dist/chunks/chunk.TEJABDMI.js +0 -1
- package/dist/chunks/chunk.TOUSLOQP.js +0 -19
- package/dist/chunks/chunk.TWL4OKWI.js +0 -1
- package/dist/chunks/chunk.TXJOFCEB.js +0 -20
- package/dist/chunks/chunk.U5DWDLRH.js +0 -25
- package/dist/chunks/chunk.UBXADY37.js +0 -566
- package/dist/chunks/chunk.UJUBD5K6.js +0 -1
- package/dist/chunks/chunk.UMIX7BEK.js +0 -1
- package/dist/chunks/chunk.UNPFONVM.js +0 -121
- package/dist/chunks/chunk.VM42BF4S.js +0 -1
- package/dist/chunks/chunk.VO2NGMYX.js +0 -1
- package/dist/chunks/chunk.VPEIRF5L.js +0 -1
- package/dist/chunks/chunk.VQBTIXTR.js +0 -1
- package/dist/chunks/chunk.VRGYQH3V.js +0 -1
- package/dist/chunks/chunk.W22Z5NC6.js +0 -1
- package/dist/chunks/chunk.W2AIXOEB.js +0 -1
- package/dist/chunks/chunk.W37YFNFN.js +0 -1
- package/dist/chunks/chunk.W7LK5SL4.js +0 -1
- package/dist/chunks/chunk.WHM6GYCJ.js +0 -1
- package/dist/chunks/chunk.WSK5WSL4.js +0 -1
- package/dist/chunks/chunk.X3J4I27U.js +0 -1
- package/dist/chunks/chunk.XD4664TI.js +0 -16
- package/dist/chunks/chunk.XIGVC4SV.js +0 -62
- package/dist/chunks/chunk.XS3KPVEZ.js +0 -1
- package/dist/chunks/chunk.XX7TMK7N.js +0 -1
- package/dist/chunks/chunk.Y5DJ2TIT.js +0 -1
- package/dist/chunks/chunk.YH36XKHI.js +0 -1
- package/dist/chunks/chunk.YJCP5H5H.js +0 -1
- package/dist/chunks/chunk.YUFCED44.js +0 -64
- package/dist/chunks/chunk.Z5WR5G6V.js +0 -35
- package/dist/chunks/chunk.ZAO2ZNCW.js +0 -1
- package/dist/chunks/chunk.ZCO5H22U.js +0 -1
- package/dist/chunks/chunk.ZJRSMGBD.js +0 -1
- package/dist/chunks/chunk.ZOFZPC6S.js +0 -9
- package/dist/chunks/chunk.ZWQ5GUBX.js +0 -55
- package/dist/chunks/chunk.ZZDDQ567.js +0 -1
- package/dist/events/terra-map-change.d.ts +0 -14
- package/dist/terra_ui_components-0.0.203-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.203.tar.gz +0 -0
|
@@ -1,2028 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Control_default,
|
|
3
|
-
Feature_default,
|
|
4
|
-
Fill_default,
|
|
5
|
-
GeometryCollection_default,
|
|
6
|
-
LineString_default,
|
|
7
|
-
MapBrowserEventType_default,
|
|
8
|
-
MapBrowserEvent_default,
|
|
9
|
-
MultiLineString_default,
|
|
10
|
-
MultiPoint_default,
|
|
11
|
-
MultiPolygon_default,
|
|
12
|
-
Pointer_default,
|
|
13
|
-
Property_default,
|
|
14
|
-
Stroke_default,
|
|
15
|
-
Style_default,
|
|
16
|
-
Vector_default,
|
|
17
|
-
Vector_default2,
|
|
18
|
-
always,
|
|
19
|
-
createEditingStyle,
|
|
20
|
-
never,
|
|
21
|
-
noModifierKeys,
|
|
22
|
-
shiftKeyOnly
|
|
23
|
-
} from "./chunk.MKKKY7LJ.js";
|
|
24
|
-
import {
|
|
25
|
-
Point_default,
|
|
26
|
-
Polygon_default,
|
|
27
|
-
SimpleGeometry_default,
|
|
28
|
-
deflateCoordinate,
|
|
29
|
-
getStrideForLayout,
|
|
30
|
-
rotate
|
|
31
|
-
} from "./chunk.2HXJHNH3.js";
|
|
32
|
-
import {
|
|
33
|
-
EventType_default,
|
|
34
|
-
Event_default,
|
|
35
|
-
FALSE,
|
|
36
|
-
TRUE
|
|
37
|
-
} from "./chunk.EQDMPPT6.js";
|
|
38
|
-
import {
|
|
39
|
-
boundingExtent,
|
|
40
|
-
clamp,
|
|
41
|
-
createOrUpdate,
|
|
42
|
-
distance,
|
|
43
|
-
forEachCorner,
|
|
44
|
-
fromUserCoordinate,
|
|
45
|
-
getBottomLeft,
|
|
46
|
-
getBottomRight,
|
|
47
|
-
getTopLeft,
|
|
48
|
-
getTopRight,
|
|
49
|
-
getUserProjection,
|
|
50
|
-
intersects,
|
|
51
|
-
squaredDistance,
|
|
52
|
-
squaredDistance2,
|
|
53
|
-
toFixed,
|
|
54
|
-
transform,
|
|
55
|
-
transformExtent
|
|
56
|
-
} from "./chunk.KLVTN4RA.js";
|
|
57
|
-
import {
|
|
58
|
-
LatLngBounds
|
|
59
|
-
} from "./chunk.537RX22Z.js";
|
|
60
|
-
import {
|
|
61
|
-
LatLng
|
|
62
|
-
} from "./chunk.V35DOB7Q.js";
|
|
63
|
-
import {
|
|
64
|
-
__privateAdd,
|
|
65
|
-
__privateGet,
|
|
66
|
-
__privateMethod,
|
|
67
|
-
__privateSet,
|
|
68
|
-
__spreadProps,
|
|
69
|
-
__spreadValues,
|
|
70
|
-
init_buffer,
|
|
71
|
-
init_dirname,
|
|
72
|
-
init_process
|
|
73
|
-
} from "./chunk.IIJBAEGD.js";
|
|
74
|
-
|
|
75
|
-
// src/components/map/controls/draw-toolbar.control.ts
|
|
76
|
-
init_dirname();
|
|
77
|
-
init_buffer();
|
|
78
|
-
init_process();
|
|
79
|
-
|
|
80
|
-
// node_modules/ol/control.js
|
|
81
|
-
init_dirname();
|
|
82
|
-
init_buffer();
|
|
83
|
-
init_process();
|
|
84
|
-
|
|
85
|
-
// node_modules/ol/interaction.js
|
|
86
|
-
init_dirname();
|
|
87
|
-
init_buffer();
|
|
88
|
-
init_process();
|
|
89
|
-
|
|
90
|
-
// node_modules/ol/interaction/Draw.js
|
|
91
|
-
init_dirname();
|
|
92
|
-
init_buffer();
|
|
93
|
-
init_process();
|
|
94
|
-
|
|
95
|
-
// node_modules/ol/geom/Circle.js
|
|
96
|
-
init_dirname();
|
|
97
|
-
init_buffer();
|
|
98
|
-
init_process();
|
|
99
|
-
var Circle = class _Circle extends SimpleGeometry_default {
|
|
100
|
-
/**
|
|
101
|
-
* @param {!import("../coordinate.js").Coordinate} center Center.
|
|
102
|
-
* For internal use, flat coordinates in combination with `layout` and no
|
|
103
|
-
* `radius` are also accepted.
|
|
104
|
-
* @param {number} [radius] Radius in units of the projection.
|
|
105
|
-
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
106
|
-
*/
|
|
107
|
-
constructor(center, radius, layout) {
|
|
108
|
-
super();
|
|
109
|
-
if (layout !== void 0 && radius === void 0) {
|
|
110
|
-
this.setFlatCoordinates(layout, center);
|
|
111
|
-
} else {
|
|
112
|
-
radius = radius ? radius : 0;
|
|
113
|
-
this.setCenterAndRadius(center, radius, layout);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Make a complete copy of the geometry.
|
|
118
|
-
* @return {!Circle} Clone.
|
|
119
|
-
* @api
|
|
120
|
-
* @override
|
|
121
|
-
*/
|
|
122
|
-
clone() {
|
|
123
|
-
const circle = new _Circle(
|
|
124
|
-
this.flatCoordinates.slice(),
|
|
125
|
-
void 0,
|
|
126
|
-
this.layout
|
|
127
|
-
);
|
|
128
|
-
circle.applyProperties(this);
|
|
129
|
-
return circle;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* @param {number} x X.
|
|
133
|
-
* @param {number} y Y.
|
|
134
|
-
* @param {import("../coordinate.js").Coordinate} closestPoint Closest point.
|
|
135
|
-
* @param {number} minSquaredDistance Minimum squared distance.
|
|
136
|
-
* @return {number} Minimum squared distance.
|
|
137
|
-
* @override
|
|
138
|
-
*/
|
|
139
|
-
closestPointXY(x, y, closestPoint, minSquaredDistance) {
|
|
140
|
-
const flatCoordinates = this.flatCoordinates;
|
|
141
|
-
const dx = x - flatCoordinates[0];
|
|
142
|
-
const dy = y - flatCoordinates[1];
|
|
143
|
-
const squaredDistance3 = dx * dx + dy * dy;
|
|
144
|
-
if (squaredDistance3 < minSquaredDistance) {
|
|
145
|
-
if (squaredDistance3 === 0) {
|
|
146
|
-
for (let i = 0; i < this.stride; ++i) {
|
|
147
|
-
closestPoint[i] = flatCoordinates[i];
|
|
148
|
-
}
|
|
149
|
-
} else {
|
|
150
|
-
const delta = this.getRadius() / Math.sqrt(squaredDistance3);
|
|
151
|
-
closestPoint[0] = flatCoordinates[0] + delta * dx;
|
|
152
|
-
closestPoint[1] = flatCoordinates[1] + delta * dy;
|
|
153
|
-
for (let i = 2; i < this.stride; ++i) {
|
|
154
|
-
closestPoint[i] = flatCoordinates[i];
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
closestPoint.length = this.stride;
|
|
158
|
-
return squaredDistance3;
|
|
159
|
-
}
|
|
160
|
-
return minSquaredDistance;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* @param {number} x X.
|
|
164
|
-
* @param {number} y Y.
|
|
165
|
-
* @return {boolean} Contains (x, y).
|
|
166
|
-
* @override
|
|
167
|
-
*/
|
|
168
|
-
containsXY(x, y) {
|
|
169
|
-
const flatCoordinates = this.flatCoordinates;
|
|
170
|
-
const dx = x - flatCoordinates[0];
|
|
171
|
-
const dy = y - flatCoordinates[1];
|
|
172
|
-
return dx * dx + dy * dy <= this.getRadiusSquared_();
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Return the center of the circle as {@link module:ol/coordinate~Coordinate coordinate}.
|
|
176
|
-
* @return {import("../coordinate.js").Coordinate} Center.
|
|
177
|
-
* @api
|
|
178
|
-
*/
|
|
179
|
-
getCenter() {
|
|
180
|
-
return this.flatCoordinates.slice(0, this.stride);
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* @param {import("../extent.js").Extent} extent Extent.
|
|
184
|
-
* @protected
|
|
185
|
-
* @return {import("../extent.js").Extent} extent Extent.
|
|
186
|
-
* @override
|
|
187
|
-
*/
|
|
188
|
-
computeExtent(extent) {
|
|
189
|
-
const flatCoordinates = this.flatCoordinates;
|
|
190
|
-
const radius = flatCoordinates[this.stride] - flatCoordinates[0];
|
|
191
|
-
return createOrUpdate(
|
|
192
|
-
flatCoordinates[0] - radius,
|
|
193
|
-
flatCoordinates[1] - radius,
|
|
194
|
-
flatCoordinates[0] + radius,
|
|
195
|
-
flatCoordinates[1] + radius,
|
|
196
|
-
extent
|
|
197
|
-
);
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Return the radius of the circle.
|
|
201
|
-
* @return {number} Radius.
|
|
202
|
-
* @api
|
|
203
|
-
*/
|
|
204
|
-
getRadius() {
|
|
205
|
-
return Math.sqrt(this.getRadiusSquared_());
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @private
|
|
209
|
-
* @return {number} Radius squared.
|
|
210
|
-
*/
|
|
211
|
-
getRadiusSquared_() {
|
|
212
|
-
const dx = this.flatCoordinates[this.stride] - this.flatCoordinates[0];
|
|
213
|
-
const dy = this.flatCoordinates[this.stride + 1] - this.flatCoordinates[1];
|
|
214
|
-
return dx * dx + dy * dy;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Get the type of this geometry.
|
|
218
|
-
* @return {import("./Geometry.js").Type} Geometry type.
|
|
219
|
-
* @api
|
|
220
|
-
* @override
|
|
221
|
-
*/
|
|
222
|
-
getType() {
|
|
223
|
-
return "Circle";
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Test if the geometry and the passed extent intersect.
|
|
227
|
-
* @param {import("../extent.js").Extent} extent Extent.
|
|
228
|
-
* @return {boolean} `true` if the geometry and the extent intersect.
|
|
229
|
-
* @api
|
|
230
|
-
* @override
|
|
231
|
-
*/
|
|
232
|
-
intersectsExtent(extent) {
|
|
233
|
-
const circleExtent = this.getExtent();
|
|
234
|
-
if (intersects(extent, circleExtent)) {
|
|
235
|
-
const center = this.getCenter();
|
|
236
|
-
if (extent[0] <= center[0] && extent[2] >= center[0]) {
|
|
237
|
-
return true;
|
|
238
|
-
}
|
|
239
|
-
if (extent[1] <= center[1] && extent[3] >= center[1]) {
|
|
240
|
-
return true;
|
|
241
|
-
}
|
|
242
|
-
return forEachCorner(extent, this.intersectsCoordinate.bind(this));
|
|
243
|
-
}
|
|
244
|
-
return false;
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Set the center of the circle as {@link module:ol/coordinate~Coordinate coordinate}.
|
|
248
|
-
* @param {import("../coordinate.js").Coordinate} center Center.
|
|
249
|
-
* @api
|
|
250
|
-
*/
|
|
251
|
-
setCenter(center) {
|
|
252
|
-
const stride = this.stride;
|
|
253
|
-
const radius = this.flatCoordinates[stride] - this.flatCoordinates[0];
|
|
254
|
-
const flatCoordinates = center.slice();
|
|
255
|
-
flatCoordinates[stride] = flatCoordinates[0] + radius;
|
|
256
|
-
for (let i = 1; i < stride; ++i) {
|
|
257
|
-
flatCoordinates[stride + i] = center[i];
|
|
258
|
-
}
|
|
259
|
-
this.setFlatCoordinates(this.layout, flatCoordinates);
|
|
260
|
-
this.changed();
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Set the center (as {@link module:ol/coordinate~Coordinate coordinate}) and the radius (as
|
|
264
|
-
* number) of the circle.
|
|
265
|
-
* @param {!import("../coordinate.js").Coordinate} center Center.
|
|
266
|
-
* @param {number} radius Radius.
|
|
267
|
-
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
268
|
-
* @api
|
|
269
|
-
*/
|
|
270
|
-
setCenterAndRadius(center, radius, layout) {
|
|
271
|
-
this.setLayout(layout, center, 0);
|
|
272
|
-
if (!this.flatCoordinates) {
|
|
273
|
-
this.flatCoordinates = [];
|
|
274
|
-
}
|
|
275
|
-
const flatCoordinates = this.flatCoordinates;
|
|
276
|
-
let offset = deflateCoordinate(flatCoordinates, 0, center, this.stride);
|
|
277
|
-
flatCoordinates[offset++] = flatCoordinates[0] + radius;
|
|
278
|
-
for (let i = 1, ii = this.stride; i < ii; ++i) {
|
|
279
|
-
flatCoordinates[offset++] = flatCoordinates[i];
|
|
280
|
-
}
|
|
281
|
-
flatCoordinates.length = offset;
|
|
282
|
-
this.changed();
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* @override
|
|
286
|
-
*/
|
|
287
|
-
getCoordinates() {
|
|
288
|
-
return null;
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* @param {import("../coordinate.js").Coordinate} coordinates Coordinates.
|
|
292
|
-
* @param {import("./Geometry.js").GeometryLayout} [layout] Layout.
|
|
293
|
-
* @override
|
|
294
|
-
*/
|
|
295
|
-
setCoordinates(coordinates, layout) {
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Set the radius of the circle. The radius is in the units of the projection.
|
|
299
|
-
* @param {number} radius Radius.
|
|
300
|
-
* @api
|
|
301
|
-
*/
|
|
302
|
-
setRadius(radius) {
|
|
303
|
-
this.flatCoordinates[this.stride] = this.flatCoordinates[0] + radius;
|
|
304
|
-
this.changed();
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Rotate the geometry around a given coordinate. This modifies the geometry
|
|
308
|
-
* coordinates in place.
|
|
309
|
-
* @param {number} angle Rotation angle in counter-clockwise radians.
|
|
310
|
-
* @param {import("../coordinate.js").Coordinate} anchor The rotation center.
|
|
311
|
-
* @api
|
|
312
|
-
* @override
|
|
313
|
-
*/
|
|
314
|
-
rotate(angle, anchor) {
|
|
315
|
-
const center = this.getCenter();
|
|
316
|
-
const stride = this.getStride();
|
|
317
|
-
this.setCenter(
|
|
318
|
-
rotate(center, 0, center.length, stride, angle, anchor, center)
|
|
319
|
-
);
|
|
320
|
-
this.changed();
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
Circle.prototype.transform;
|
|
324
|
-
var Circle_default = Circle;
|
|
325
|
-
|
|
326
|
-
// node_modules/ol/interaction/tracing.js
|
|
327
|
-
init_dirname();
|
|
328
|
-
init_buffer();
|
|
329
|
-
init_process();
|
|
330
|
-
function getCoordinate(coordinates, index) {
|
|
331
|
-
const count = coordinates.length;
|
|
332
|
-
if (index < 0) {
|
|
333
|
-
return coordinates[index + count];
|
|
334
|
-
}
|
|
335
|
-
if (index >= count) {
|
|
336
|
-
return coordinates[index - count];
|
|
337
|
-
}
|
|
338
|
-
return coordinates[index];
|
|
339
|
-
}
|
|
340
|
-
function interpolateCoordinate(coordinates, index) {
|
|
341
|
-
const count = coordinates.length;
|
|
342
|
-
let startIndex = Math.floor(index);
|
|
343
|
-
const along = index - startIndex;
|
|
344
|
-
if (startIndex >= count) {
|
|
345
|
-
startIndex -= count;
|
|
346
|
-
} else if (startIndex < 0) {
|
|
347
|
-
startIndex += count;
|
|
348
|
-
}
|
|
349
|
-
let endIndex = startIndex + 1;
|
|
350
|
-
if (endIndex >= count) {
|
|
351
|
-
endIndex -= count;
|
|
352
|
-
}
|
|
353
|
-
const start = coordinates[startIndex];
|
|
354
|
-
const x0 = start[0];
|
|
355
|
-
const y0 = start[1];
|
|
356
|
-
const end = coordinates[endIndex];
|
|
357
|
-
const dx = end[0] - x0;
|
|
358
|
-
const dy = end[1] - y0;
|
|
359
|
-
return [x0 + dx * along, y0 + dy * along];
|
|
360
|
-
}
|
|
361
|
-
var sharedUpdateInfo = {
|
|
362
|
-
index: -1,
|
|
363
|
-
endIndex: NaN,
|
|
364
|
-
closestTargetDistance: Infinity
|
|
365
|
-
};
|
|
366
|
-
function getTraceTargetUpdate(coordinate, traceState, map, snapTolerance) {
|
|
367
|
-
const x = coordinate[0];
|
|
368
|
-
const y = coordinate[1];
|
|
369
|
-
let closestTargetDistance = Infinity;
|
|
370
|
-
let newTargetIndex = -1;
|
|
371
|
-
let newEndIndex = NaN;
|
|
372
|
-
const targets = traceState.targets;
|
|
373
|
-
if (!targets) {
|
|
374
|
-
sharedUpdateInfo.index = newTargetIndex;
|
|
375
|
-
sharedUpdateInfo.endIndex = newEndIndex;
|
|
376
|
-
sharedUpdateInfo.closestTargetDistance = closestTargetDistance;
|
|
377
|
-
return sharedUpdateInfo;
|
|
378
|
-
}
|
|
379
|
-
for (let targetIndex = 0; targetIndex < targets.length; ++targetIndex) {
|
|
380
|
-
const target = targets[targetIndex];
|
|
381
|
-
const coordinates = target.coordinates;
|
|
382
|
-
let minSegmentDistance = Infinity;
|
|
383
|
-
let endIndex;
|
|
384
|
-
for (let coordinateIndex = 0; coordinateIndex < coordinates.length - 1; ++coordinateIndex) {
|
|
385
|
-
const start = coordinates[coordinateIndex];
|
|
386
|
-
const end = coordinates[coordinateIndex + 1];
|
|
387
|
-
const rel = getPointSegmentRelationship(x, y, start, end);
|
|
388
|
-
if (rel.squaredDistance < minSegmentDistance) {
|
|
389
|
-
minSegmentDistance = rel.squaredDistance;
|
|
390
|
-
endIndex = coordinateIndex + rel.along;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
if (minSegmentDistance < closestTargetDistance) {
|
|
394
|
-
closestTargetDistance = minSegmentDistance;
|
|
395
|
-
if (target.ring && traceState.targetIndex === targetIndex) {
|
|
396
|
-
if (target.endIndex > target.startIndex) {
|
|
397
|
-
if (endIndex !== void 0 && endIndex < target.startIndex) {
|
|
398
|
-
endIndex += coordinates.length;
|
|
399
|
-
}
|
|
400
|
-
} else if (target.endIndex < target.startIndex) {
|
|
401
|
-
if (endIndex !== void 0 && endIndex > target.startIndex) {
|
|
402
|
-
endIndex -= coordinates.length;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
if (endIndex !== void 0) {
|
|
407
|
-
newEndIndex = endIndex;
|
|
408
|
-
newTargetIndex = targetIndex;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
if (newTargetIndex < 0) {
|
|
413
|
-
sharedUpdateInfo.index = newTargetIndex;
|
|
414
|
-
sharedUpdateInfo.endIndex = newEndIndex;
|
|
415
|
-
sharedUpdateInfo.closestTargetDistance = closestTargetDistance;
|
|
416
|
-
return sharedUpdateInfo;
|
|
417
|
-
}
|
|
418
|
-
const newTarget = targets[newTargetIndex];
|
|
419
|
-
let considerBothDirections = newTarget.ring;
|
|
420
|
-
if (traceState.targetIndex === newTargetIndex && considerBothDirections) {
|
|
421
|
-
const newCoordinate = interpolateCoordinate(
|
|
422
|
-
newTarget.coordinates,
|
|
423
|
-
newEndIndex
|
|
424
|
-
);
|
|
425
|
-
const pixel = map.getPixelFromCoordinate(newCoordinate);
|
|
426
|
-
const startCoord = traceState.startCoord;
|
|
427
|
-
if (startCoord && distance(pixel, map.getPixelFromCoordinate(startCoord)) > snapTolerance) {
|
|
428
|
-
considerBothDirections = false;
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
if (considerBothDirections) {
|
|
432
|
-
const coordinates = newTarget.coordinates;
|
|
433
|
-
const count = coordinates.length;
|
|
434
|
-
const startIndex = newTarget.startIndex;
|
|
435
|
-
const endIndex = newEndIndex;
|
|
436
|
-
if (startIndex < endIndex) {
|
|
437
|
-
const forwardDistance = getCumulativeSquaredDistance(
|
|
438
|
-
coordinates,
|
|
439
|
-
startIndex,
|
|
440
|
-
endIndex
|
|
441
|
-
);
|
|
442
|
-
const reverseDistance = getCumulativeSquaredDistance(
|
|
443
|
-
coordinates,
|
|
444
|
-
startIndex,
|
|
445
|
-
endIndex - count
|
|
446
|
-
);
|
|
447
|
-
if (reverseDistance < forwardDistance) {
|
|
448
|
-
newEndIndex -= count;
|
|
449
|
-
}
|
|
450
|
-
} else {
|
|
451
|
-
const reverseDistance = getCumulativeSquaredDistance(
|
|
452
|
-
coordinates,
|
|
453
|
-
startIndex,
|
|
454
|
-
endIndex
|
|
455
|
-
);
|
|
456
|
-
const forwardDistance = getCumulativeSquaredDistance(
|
|
457
|
-
coordinates,
|
|
458
|
-
startIndex,
|
|
459
|
-
endIndex + count
|
|
460
|
-
);
|
|
461
|
-
if (forwardDistance < reverseDistance) {
|
|
462
|
-
newEndIndex += count;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
sharedUpdateInfo.index = newTargetIndex;
|
|
467
|
-
sharedUpdateInfo.endIndex = newEndIndex;
|
|
468
|
-
sharedUpdateInfo.closestTargetDistance = closestTargetDistance;
|
|
469
|
-
return sharedUpdateInfo;
|
|
470
|
-
}
|
|
471
|
-
function getTraceTargets(coordinate, features) {
|
|
472
|
-
const targets = [];
|
|
473
|
-
for (let i = 0; i < features.length; ++i) {
|
|
474
|
-
const feature = features[i];
|
|
475
|
-
const geometry = feature.getGeometry();
|
|
476
|
-
if (geometry) {
|
|
477
|
-
appendGeometryTraceTargets(coordinate, geometry, targets);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
return targets;
|
|
481
|
-
}
|
|
482
|
-
function appendGeometryTraceTargets(coordinate, geometry, targets) {
|
|
483
|
-
if (geometry instanceof LineString_default) {
|
|
484
|
-
appendTraceTarget(coordinate, geometry.getCoordinates(), false, targets);
|
|
485
|
-
return;
|
|
486
|
-
}
|
|
487
|
-
if (geometry instanceof MultiLineString_default) {
|
|
488
|
-
const coordinates = geometry.getCoordinates();
|
|
489
|
-
for (let i = 0, ii = coordinates.length; i < ii; ++i) {
|
|
490
|
-
appendTraceTarget(coordinate, coordinates[i], false, targets);
|
|
491
|
-
}
|
|
492
|
-
return;
|
|
493
|
-
}
|
|
494
|
-
if (geometry instanceof Polygon_default) {
|
|
495
|
-
const coordinates = geometry.getCoordinates();
|
|
496
|
-
for (let i = 0, ii = coordinates.length; i < ii; ++i) {
|
|
497
|
-
appendTraceTarget(coordinate, coordinates[i], true, targets);
|
|
498
|
-
}
|
|
499
|
-
return;
|
|
500
|
-
}
|
|
501
|
-
if (geometry instanceof MultiPolygon_default) {
|
|
502
|
-
const polys = geometry.getCoordinates();
|
|
503
|
-
for (let i = 0, ii = polys.length; i < ii; ++i) {
|
|
504
|
-
const coordinates = polys[i];
|
|
505
|
-
for (let j = 0, jj = coordinates.length; j < jj; ++j) {
|
|
506
|
-
appendTraceTarget(coordinate, coordinates[j], true, targets);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
if (geometry instanceof GeometryCollection_default) {
|
|
512
|
-
const geometries = geometry.getGeometries();
|
|
513
|
-
for (let i = 0; i < geometries.length; ++i) {
|
|
514
|
-
appendGeometryTraceTargets(coordinate, geometries[i], targets);
|
|
515
|
-
}
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
function appendTraceTarget(coordinate, coordinates, ring, targets) {
|
|
520
|
-
const x = coordinate[0];
|
|
521
|
-
const y = coordinate[1];
|
|
522
|
-
for (let i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
523
|
-
const start = coordinates[i];
|
|
524
|
-
const end = coordinates[i + 1];
|
|
525
|
-
const rel = getPointSegmentRelationship(x, y, start, end);
|
|
526
|
-
if (rel.squaredDistance === 0) {
|
|
527
|
-
const index = i + rel.along;
|
|
528
|
-
targets.push({
|
|
529
|
-
coordinates,
|
|
530
|
-
ring,
|
|
531
|
-
startIndex: index,
|
|
532
|
-
endIndex: index
|
|
533
|
-
});
|
|
534
|
-
return;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
function getSquaredDistance(a, b) {
|
|
539
|
-
return squaredDistance(a[0], a[1], b[0], b[1]);
|
|
540
|
-
}
|
|
541
|
-
function getCumulativeSquaredDistance(coordinates, startIndex, endIndex) {
|
|
542
|
-
let lowIndex, highIndex;
|
|
543
|
-
if (startIndex < endIndex) {
|
|
544
|
-
lowIndex = startIndex;
|
|
545
|
-
highIndex = endIndex;
|
|
546
|
-
} else {
|
|
547
|
-
lowIndex = endIndex;
|
|
548
|
-
highIndex = startIndex;
|
|
549
|
-
}
|
|
550
|
-
const lowWholeIndex = Math.ceil(lowIndex);
|
|
551
|
-
const highWholeIndex = Math.floor(highIndex);
|
|
552
|
-
if (lowWholeIndex > highWholeIndex) {
|
|
553
|
-
const start = interpolateCoordinate(coordinates, lowIndex);
|
|
554
|
-
const end = interpolateCoordinate(coordinates, highIndex);
|
|
555
|
-
return getSquaredDistance(start, end);
|
|
556
|
-
}
|
|
557
|
-
let sd = 0;
|
|
558
|
-
if (lowIndex < lowWholeIndex) {
|
|
559
|
-
const start = interpolateCoordinate(coordinates, lowIndex);
|
|
560
|
-
const end = getCoordinate(coordinates, lowWholeIndex);
|
|
561
|
-
sd += getSquaredDistance(start, end);
|
|
562
|
-
}
|
|
563
|
-
if (highWholeIndex < highIndex) {
|
|
564
|
-
const start = getCoordinate(coordinates, highWholeIndex);
|
|
565
|
-
const end = interpolateCoordinate(coordinates, highIndex);
|
|
566
|
-
sd += getSquaredDistance(start, end);
|
|
567
|
-
}
|
|
568
|
-
for (let i = lowWholeIndex; i < highWholeIndex - 1; ++i) {
|
|
569
|
-
const start = getCoordinate(coordinates, i);
|
|
570
|
-
const end = getCoordinate(coordinates, i + 1);
|
|
571
|
-
sd += getSquaredDistance(start, end);
|
|
572
|
-
}
|
|
573
|
-
return sd;
|
|
574
|
-
}
|
|
575
|
-
var sharedRel = { along: 0, squaredDistance: 0 };
|
|
576
|
-
function getPointSegmentRelationship(x, y, start, end) {
|
|
577
|
-
const x1 = start[0];
|
|
578
|
-
const y1 = start[1];
|
|
579
|
-
const x2 = end[0];
|
|
580
|
-
const y2 = end[1];
|
|
581
|
-
const dx = x2 - x1;
|
|
582
|
-
const dy = y2 - y1;
|
|
583
|
-
let along = 0;
|
|
584
|
-
let px = x1;
|
|
585
|
-
let py = y1;
|
|
586
|
-
if (dx !== 0 || dy !== 0) {
|
|
587
|
-
along = clamp(((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy), 0, 1);
|
|
588
|
-
px += dx * along;
|
|
589
|
-
py += dy * along;
|
|
590
|
-
}
|
|
591
|
-
sharedRel.along = along;
|
|
592
|
-
sharedRel.squaredDistance = toFixed(squaredDistance(x, y, px, py), 10);
|
|
593
|
-
return sharedRel;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
// node_modules/ol/interaction/Draw.js
|
|
597
|
-
var DrawEventType = {
|
|
598
|
-
/**
|
|
599
|
-
* Triggered upon feature draw start
|
|
600
|
-
* @event DrawEvent#drawstart
|
|
601
|
-
* @api
|
|
602
|
-
*/
|
|
603
|
-
DRAWSTART: "drawstart",
|
|
604
|
-
/**
|
|
605
|
-
* Triggered upon feature draw end
|
|
606
|
-
* @event DrawEvent#drawend
|
|
607
|
-
* @api
|
|
608
|
-
*/
|
|
609
|
-
DRAWEND: "drawend",
|
|
610
|
-
/**
|
|
611
|
-
* Triggered upon feature draw abortion
|
|
612
|
-
* @event DrawEvent#drawabort
|
|
613
|
-
* @api
|
|
614
|
-
*/
|
|
615
|
-
DRAWABORT: "drawabort"
|
|
616
|
-
};
|
|
617
|
-
var DrawEvent = class extends Event_default {
|
|
618
|
-
/**
|
|
619
|
-
* @param {DrawEventType} type Type.
|
|
620
|
-
* @param {Feature} feature The feature drawn.
|
|
621
|
-
*/
|
|
622
|
-
constructor(type, feature) {
|
|
623
|
-
super(type);
|
|
624
|
-
this.feature = feature;
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
|
-
var Draw = class extends Pointer_default {
|
|
628
|
-
/**
|
|
629
|
-
* @param {Options} options Options.
|
|
630
|
-
*/
|
|
631
|
-
constructor(options) {
|
|
632
|
-
const pointerOptions = (
|
|
633
|
-
/** @type {import("./Pointer.js").Options} */
|
|
634
|
-
options
|
|
635
|
-
);
|
|
636
|
-
if (!pointerOptions.stopDown) {
|
|
637
|
-
pointerOptions.stopDown = FALSE;
|
|
638
|
-
}
|
|
639
|
-
super(pointerOptions);
|
|
640
|
-
this.on;
|
|
641
|
-
this.once;
|
|
642
|
-
this.un;
|
|
643
|
-
this.options_ = options;
|
|
644
|
-
this.shouldHandle_ = false;
|
|
645
|
-
this.downPx_ = null;
|
|
646
|
-
this.downTimeout_;
|
|
647
|
-
this.lastDragTime_;
|
|
648
|
-
this.pointerType_;
|
|
649
|
-
this.freehand_ = false;
|
|
650
|
-
this.source_ = options.source ? options.source : null;
|
|
651
|
-
this.features_ = options.features ? options.features : null;
|
|
652
|
-
this.snapTolerance_ = options.snapTolerance ? options.snapTolerance : 12;
|
|
653
|
-
this.type_ = /** @type {import("../geom/Geometry.js").Type} */
|
|
654
|
-
options.type;
|
|
655
|
-
this.mode_ = getMode(this.type_);
|
|
656
|
-
this.stopClick_ = !!options.stopClick;
|
|
657
|
-
this.ignoreNextUpEvent_ = false;
|
|
658
|
-
this.minPoints_ = options.minPoints ? options.minPoints : this.mode_ === "Polygon" ? 3 : 2;
|
|
659
|
-
this.maxPoints_ = this.mode_ === "Circle" ? 2 : options.maxPoints ? options.maxPoints : Infinity;
|
|
660
|
-
this.finishCondition_ = options.finishCondition ? options.finishCondition : TRUE;
|
|
661
|
-
this.geometryLayout_ = options.geometryLayout ? options.geometryLayout : "XY";
|
|
662
|
-
let geometryFunction = options.geometryFunction;
|
|
663
|
-
if (!geometryFunction) {
|
|
664
|
-
const mode = this.mode_;
|
|
665
|
-
if (mode === "Circle") {
|
|
666
|
-
geometryFunction = /** @type {GeometryFunction} */
|
|
667
|
-
((coordinates, geometry, projection) => {
|
|
668
|
-
const circle = geometry ? (
|
|
669
|
-
/** @type {Circle} */
|
|
670
|
-
geometry
|
|
671
|
-
) : new Circle_default([NaN, NaN]);
|
|
672
|
-
const lineCoords = (
|
|
673
|
-
/** @type {LineCoordType} */
|
|
674
|
-
coordinates
|
|
675
|
-
);
|
|
676
|
-
const center = fromUserCoordinate(lineCoords[0], projection);
|
|
677
|
-
const squaredLength = squaredDistance2(
|
|
678
|
-
center,
|
|
679
|
-
fromUserCoordinate(lineCoords[lineCoords.length - 1], projection)
|
|
680
|
-
);
|
|
681
|
-
circle.setCenterAndRadius(
|
|
682
|
-
center,
|
|
683
|
-
Math.sqrt(squaredLength),
|
|
684
|
-
this.geometryLayout_
|
|
685
|
-
);
|
|
686
|
-
const userProjection = getUserProjection();
|
|
687
|
-
if (userProjection) {
|
|
688
|
-
circle.transform(projection, userProjection);
|
|
689
|
-
}
|
|
690
|
-
return circle;
|
|
691
|
-
});
|
|
692
|
-
} else {
|
|
693
|
-
geometryFunction = (coordinates, geometry, projection) => {
|
|
694
|
-
if (geometry) {
|
|
695
|
-
if (mode === "Polygon") {
|
|
696
|
-
const polyCoords = (
|
|
697
|
-
/** @type {PolyCoordType} */
|
|
698
|
-
coordinates
|
|
699
|
-
);
|
|
700
|
-
if (polyCoords[0].length) {
|
|
701
|
-
geometry.setCoordinates(
|
|
702
|
-
[polyCoords[0].concat([polyCoords[0][0]])],
|
|
703
|
-
this.geometryLayout_
|
|
704
|
-
);
|
|
705
|
-
} else {
|
|
706
|
-
geometry.setCoordinates([], this.geometryLayout_);
|
|
707
|
-
}
|
|
708
|
-
} else {
|
|
709
|
-
geometry.setCoordinates(coordinates, this.geometryLayout_);
|
|
710
|
-
}
|
|
711
|
-
} else if (mode === "Point") {
|
|
712
|
-
geometry = new Point_default(
|
|
713
|
-
/** @type {PointCoordType} */
|
|
714
|
-
coordinates,
|
|
715
|
-
this.geometryLayout_
|
|
716
|
-
);
|
|
717
|
-
} else if (mode === "LineString") {
|
|
718
|
-
geometry = new LineString_default(
|
|
719
|
-
/** @type {LineCoordType} */
|
|
720
|
-
coordinates,
|
|
721
|
-
this.geometryLayout_
|
|
722
|
-
);
|
|
723
|
-
} else {
|
|
724
|
-
geometry = new Polygon_default(
|
|
725
|
-
/** @type {PolyCoordType} */
|
|
726
|
-
coordinates,
|
|
727
|
-
this.geometryLayout_
|
|
728
|
-
);
|
|
729
|
-
}
|
|
730
|
-
return geometry;
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
this.geometryFunction_ = /** @type {GeometryFunction} */
|
|
735
|
-
geometryFunction;
|
|
736
|
-
this.dragVertexDelay_ = options.dragVertexDelay !== void 0 ? options.dragVertexDelay : 500;
|
|
737
|
-
this.finishCoordinate_ = null;
|
|
738
|
-
this.sketchFeature_ = null;
|
|
739
|
-
this.sketchPoint_ = null;
|
|
740
|
-
this.sketchCoords_ = null;
|
|
741
|
-
this.sketchLine_ = null;
|
|
742
|
-
this.sketchLineCoords_ = null;
|
|
743
|
-
this.squaredClickTolerance_ = options.clickTolerance ? options.clickTolerance * options.clickTolerance : 36;
|
|
744
|
-
this.overlay_ = new Vector_default2({
|
|
745
|
-
source: new Vector_default({
|
|
746
|
-
useSpatialIndex: false,
|
|
747
|
-
wrapX: options.wrapX ? options.wrapX : false
|
|
748
|
-
}),
|
|
749
|
-
style: options.style ? options.style : getDefaultStyleFunction(),
|
|
750
|
-
updateWhileInteracting: true
|
|
751
|
-
});
|
|
752
|
-
this.geometryName_ = options.geometryName;
|
|
753
|
-
this.condition_ = options.condition ? options.condition : noModifierKeys;
|
|
754
|
-
this.freehandCondition_;
|
|
755
|
-
if (options.freehand) {
|
|
756
|
-
this.freehandCondition_ = always;
|
|
757
|
-
} else {
|
|
758
|
-
this.freehandCondition_ = options.freehandCondition ? options.freehandCondition : shiftKeyOnly;
|
|
759
|
-
}
|
|
760
|
-
this.traceCondition_;
|
|
761
|
-
this.setTrace(options.trace || false);
|
|
762
|
-
this.traceState_ = { active: false };
|
|
763
|
-
this.traceSource_ = options.traceSource || options.source || null;
|
|
764
|
-
this.addChangeListener(Property_default.ACTIVE, this.updateState_);
|
|
765
|
-
}
|
|
766
|
-
/**
|
|
767
|
-
* Toggle tracing mode or set a tracing condition.
|
|
768
|
-
*
|
|
769
|
-
* @param {boolean|import("../events/condition.js").Condition} trace A boolean to toggle tracing mode or an event
|
|
770
|
-
* condition that will be checked when a feature is clicked to determine if tracing should be active.
|
|
771
|
-
*/
|
|
772
|
-
setTrace(trace) {
|
|
773
|
-
let condition;
|
|
774
|
-
if (!trace) {
|
|
775
|
-
condition = never;
|
|
776
|
-
} else if (trace === true) {
|
|
777
|
-
condition = always;
|
|
778
|
-
} else {
|
|
779
|
-
condition = trace;
|
|
780
|
-
}
|
|
781
|
-
this.traceCondition_ = condition;
|
|
782
|
-
}
|
|
783
|
-
/**
|
|
784
|
-
* Remove the interaction from its current map and attach it to the new map.
|
|
785
|
-
* Subclasses may set up event handlers to get notified about changes to
|
|
786
|
-
* the map here.
|
|
787
|
-
* @param {import("../Map.js").default} map Map.
|
|
788
|
-
* @override
|
|
789
|
-
*/
|
|
790
|
-
setMap(map) {
|
|
791
|
-
super.setMap(map);
|
|
792
|
-
this.updateState_();
|
|
793
|
-
}
|
|
794
|
-
/**
|
|
795
|
-
* Set whether the drawing is done in freehand mode.
|
|
796
|
-
*
|
|
797
|
-
* @param {boolean} freehand Freehand drawing.
|
|
798
|
-
* @api
|
|
799
|
-
*/
|
|
800
|
-
setFreehand(freehand) {
|
|
801
|
-
this.freehand_ = freehand;
|
|
802
|
-
if (this.freehand_) {
|
|
803
|
-
this.freehandCondition_ = always;
|
|
804
|
-
} else {
|
|
805
|
-
this.freehandCondition_ = this.options_ && this.options_.freehandCondition ? this.options_.freehandCondition : shiftKeyOnly;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* Get the overlay layer that this interaction renders sketch features to.
|
|
810
|
-
* @return {VectorLayer} Overlay layer.
|
|
811
|
-
* @api
|
|
812
|
-
*/
|
|
813
|
-
getOverlay() {
|
|
814
|
-
return this.overlay_;
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* Get if this interaction is in freehand mode.
|
|
818
|
-
* @return {boolean} Freehand drawing.
|
|
819
|
-
* @api
|
|
820
|
-
*/
|
|
821
|
-
getFreehand() {
|
|
822
|
-
return this.freehand_;
|
|
823
|
-
}
|
|
824
|
-
/**
|
|
825
|
-
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may actually draw or finish the drawing.
|
|
826
|
-
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Map browser event.
|
|
827
|
-
* @return {boolean} `false` to stop event propagation.
|
|
828
|
-
* @api
|
|
829
|
-
* @override
|
|
830
|
-
*/
|
|
831
|
-
handleEvent(event) {
|
|
832
|
-
if (event.originalEvent.type === EventType_default.CONTEXTMENU) {
|
|
833
|
-
event.originalEvent.preventDefault();
|
|
834
|
-
}
|
|
835
|
-
this.freehand_ = this.mode_ !== "Point" && this.freehandCondition_(event);
|
|
836
|
-
let move = event.type === MapBrowserEventType_default.POINTERMOVE;
|
|
837
|
-
let pass = true;
|
|
838
|
-
if (!this.freehand_ && this.lastDragTime_ && event.type === MapBrowserEventType_default.POINTERDRAG) {
|
|
839
|
-
const now = Date.now();
|
|
840
|
-
if (now - this.lastDragTime_ >= this.dragVertexDelay_) {
|
|
841
|
-
this.downPx_ = event.pixel;
|
|
842
|
-
this.shouldHandle_ = !this.freehand_;
|
|
843
|
-
move = true;
|
|
844
|
-
} else {
|
|
845
|
-
this.lastDragTime_ = void 0;
|
|
846
|
-
}
|
|
847
|
-
if (this.shouldHandle_ && this.downTimeout_ !== void 0) {
|
|
848
|
-
clearTimeout(this.downTimeout_);
|
|
849
|
-
this.downTimeout_ = void 0;
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
if (this.freehand_ && event.type === MapBrowserEventType_default.POINTERDRAG && this.sketchFeature_ !== null) {
|
|
853
|
-
this.addToDrawing_(event.coordinate);
|
|
854
|
-
pass = false;
|
|
855
|
-
} else if (this.freehand_ && event.type === MapBrowserEventType_default.POINTERDOWN) {
|
|
856
|
-
pass = false;
|
|
857
|
-
} else if (move && this.getPointerCount() < 2) {
|
|
858
|
-
pass = event.type === MapBrowserEventType_default.POINTERMOVE;
|
|
859
|
-
if (pass && this.freehand_) {
|
|
860
|
-
this.handlePointerMove_(event);
|
|
861
|
-
if (this.shouldHandle_) {
|
|
862
|
-
event.originalEvent.preventDefault();
|
|
863
|
-
}
|
|
864
|
-
} else if (event.originalEvent.pointerType === "mouse" || event.type === MapBrowserEventType_default.POINTERDRAG && this.downTimeout_ === void 0) {
|
|
865
|
-
this.handlePointerMove_(event);
|
|
866
|
-
}
|
|
867
|
-
} else if (event.type === MapBrowserEventType_default.DBLCLICK) {
|
|
868
|
-
pass = false;
|
|
869
|
-
}
|
|
870
|
-
return super.handleEvent(event) && pass;
|
|
871
|
-
}
|
|
872
|
-
/**
|
|
873
|
-
* Handle pointer down events.
|
|
874
|
-
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
875
|
-
* @return {boolean} If the event was consumed.
|
|
876
|
-
* @override
|
|
877
|
-
*/
|
|
878
|
-
handleDownEvent(event) {
|
|
879
|
-
this.shouldHandle_ = !this.freehand_;
|
|
880
|
-
if (this.freehand_) {
|
|
881
|
-
this.downPx_ = event.pixel;
|
|
882
|
-
if (!this.finishCoordinate_) {
|
|
883
|
-
this.startDrawing_(event.coordinate);
|
|
884
|
-
}
|
|
885
|
-
return true;
|
|
886
|
-
}
|
|
887
|
-
if (!this.condition_(event)) {
|
|
888
|
-
this.lastDragTime_ = void 0;
|
|
889
|
-
return false;
|
|
890
|
-
}
|
|
891
|
-
this.lastDragTime_ = Date.now();
|
|
892
|
-
this.downTimeout_ = setTimeout(() => {
|
|
893
|
-
var _a;
|
|
894
|
-
this.handlePointerMove_(
|
|
895
|
-
new MapBrowserEvent_default(
|
|
896
|
-
MapBrowserEventType_default.POINTERMOVE,
|
|
897
|
-
event.map,
|
|
898
|
-
event.originalEvent,
|
|
899
|
-
false,
|
|
900
|
-
(_a = event.frameState) != null ? _a : void 0
|
|
901
|
-
)
|
|
902
|
-
);
|
|
903
|
-
}, this.dragVertexDelay_);
|
|
904
|
-
this.downPx_ = event.pixel;
|
|
905
|
-
return true;
|
|
906
|
-
}
|
|
907
|
-
/**
|
|
908
|
-
* @private
|
|
909
|
-
*/
|
|
910
|
-
deactivateTrace_() {
|
|
911
|
-
this.traceState_ = { active: false };
|
|
912
|
-
}
|
|
913
|
-
/**
|
|
914
|
-
* Activate or deactivate trace state based on a browser event.
|
|
915
|
-
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
916
|
-
* @private
|
|
917
|
-
*/
|
|
918
|
-
toggleTraceState_(event) {
|
|
919
|
-
if (!this.traceSource_ || !this.traceCondition_(event)) {
|
|
920
|
-
return;
|
|
921
|
-
}
|
|
922
|
-
if (this.traceState_.active) {
|
|
923
|
-
this.deactivateTrace_();
|
|
924
|
-
return;
|
|
925
|
-
}
|
|
926
|
-
const map = this.getMap();
|
|
927
|
-
if (!map) {
|
|
928
|
-
return;
|
|
929
|
-
}
|
|
930
|
-
const lowerLeft = map.getCoordinateFromPixel([
|
|
931
|
-
event.pixel[0] - this.snapTolerance_,
|
|
932
|
-
event.pixel[1] + this.snapTolerance_
|
|
933
|
-
]);
|
|
934
|
-
const upperRight = map.getCoordinateFromPixel([
|
|
935
|
-
event.pixel[0] + this.snapTolerance_,
|
|
936
|
-
event.pixel[1] - this.snapTolerance_
|
|
937
|
-
]);
|
|
938
|
-
const extent = boundingExtent([lowerLeft, upperRight]);
|
|
939
|
-
const features = this.traceSource_.getFeaturesInExtent(extent);
|
|
940
|
-
if (features.length === 0) {
|
|
941
|
-
return;
|
|
942
|
-
}
|
|
943
|
-
const targets = getTraceTargets(event.coordinate, features);
|
|
944
|
-
if (targets.length) {
|
|
945
|
-
this.traceState_ = {
|
|
946
|
-
active: true,
|
|
947
|
-
startCoord: event.coordinate.slice(),
|
|
948
|
-
targets,
|
|
949
|
-
targetIndex: -1
|
|
950
|
-
};
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
/**
|
|
954
|
-
* @param {TraceTarget} target The trace target.
|
|
955
|
-
* @param {number} endIndex The new end index of the trace.
|
|
956
|
-
* @private
|
|
957
|
-
*/
|
|
958
|
-
addOrRemoveTracedCoordinates_(target, endIndex) {
|
|
959
|
-
const previouslyForward = target.startIndex <= target.endIndex;
|
|
960
|
-
const currentlyForward = target.startIndex <= endIndex;
|
|
961
|
-
if (previouslyForward === currentlyForward) {
|
|
962
|
-
if (previouslyForward && endIndex > target.endIndex || !previouslyForward && endIndex < target.endIndex) {
|
|
963
|
-
this.addTracedCoordinates_(target, target.endIndex, endIndex);
|
|
964
|
-
} else if (previouslyForward && endIndex < target.endIndex || !previouslyForward && endIndex > target.endIndex) {
|
|
965
|
-
this.removeTracedCoordinates_(endIndex, target.endIndex);
|
|
966
|
-
}
|
|
967
|
-
} else {
|
|
968
|
-
this.removeTracedCoordinates_(target.startIndex, target.endIndex);
|
|
969
|
-
this.addTracedCoordinates_(target, target.startIndex, endIndex);
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
/**
|
|
973
|
-
* @param {number} fromIndex The start index.
|
|
974
|
-
* @param {number} toIndex The end index.
|
|
975
|
-
* @private
|
|
976
|
-
*/
|
|
977
|
-
removeTracedCoordinates_(fromIndex, toIndex) {
|
|
978
|
-
if (fromIndex === toIndex) {
|
|
979
|
-
return;
|
|
980
|
-
}
|
|
981
|
-
let remove = 0;
|
|
982
|
-
if (fromIndex < toIndex) {
|
|
983
|
-
const start = Math.ceil(fromIndex);
|
|
984
|
-
let end = Math.floor(toIndex);
|
|
985
|
-
if (end === toIndex) {
|
|
986
|
-
end -= 1;
|
|
987
|
-
}
|
|
988
|
-
remove = end - start + 1;
|
|
989
|
-
} else {
|
|
990
|
-
const start = Math.floor(fromIndex);
|
|
991
|
-
let end = Math.ceil(toIndex);
|
|
992
|
-
if (end === toIndex) {
|
|
993
|
-
end += 1;
|
|
994
|
-
}
|
|
995
|
-
remove = start - end + 1;
|
|
996
|
-
}
|
|
997
|
-
if (remove > 0) {
|
|
998
|
-
this.removeLastPoints_(remove);
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
/**
|
|
1002
|
-
* @param {TraceTarget} target The trace target.
|
|
1003
|
-
* @param {number} fromIndex The start index.
|
|
1004
|
-
* @param {number} toIndex The end index.
|
|
1005
|
-
* @private
|
|
1006
|
-
*/
|
|
1007
|
-
addTracedCoordinates_(target, fromIndex, toIndex) {
|
|
1008
|
-
if (fromIndex === toIndex) {
|
|
1009
|
-
return;
|
|
1010
|
-
}
|
|
1011
|
-
const coordinates = [];
|
|
1012
|
-
if (fromIndex < toIndex) {
|
|
1013
|
-
const start = Math.ceil(fromIndex);
|
|
1014
|
-
let end = Math.floor(toIndex);
|
|
1015
|
-
if (end === toIndex) {
|
|
1016
|
-
end -= 1;
|
|
1017
|
-
}
|
|
1018
|
-
for (let i = start; i <= end; ++i) {
|
|
1019
|
-
coordinates.push(getCoordinate(target.coordinates, i));
|
|
1020
|
-
}
|
|
1021
|
-
} else {
|
|
1022
|
-
const start = Math.floor(fromIndex);
|
|
1023
|
-
let end = Math.ceil(toIndex);
|
|
1024
|
-
if (end === toIndex) {
|
|
1025
|
-
end += 1;
|
|
1026
|
-
}
|
|
1027
|
-
for (let i = start; i >= end; --i) {
|
|
1028
|
-
coordinates.push(getCoordinate(target.coordinates, i));
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
if (coordinates.length) {
|
|
1032
|
-
this.appendCoordinates(coordinates);
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
/**
|
|
1036
|
-
* Update the trace.
|
|
1037
|
-
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
1038
|
-
* @private
|
|
1039
|
-
*/
|
|
1040
|
-
updateTrace_(event) {
|
|
1041
|
-
const traceState = this.traceState_;
|
|
1042
|
-
const targets = traceState.targets;
|
|
1043
|
-
const startCoord = traceState.startCoord;
|
|
1044
|
-
const map = this.getMap();
|
|
1045
|
-
if (!traceState.active || !targets || !startCoord || !map) {
|
|
1046
|
-
return;
|
|
1047
|
-
}
|
|
1048
|
-
if (traceState.targetIndex === -1) {
|
|
1049
|
-
const startPx = event.map.getPixelFromCoordinate(startCoord);
|
|
1050
|
-
if (distance(startPx, event.pixel) < this.snapTolerance_) {
|
|
1051
|
-
return;
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
const updatedTraceTarget = getTraceTargetUpdate(
|
|
1055
|
-
event.coordinate,
|
|
1056
|
-
traceState,
|
|
1057
|
-
map,
|
|
1058
|
-
this.snapTolerance_
|
|
1059
|
-
);
|
|
1060
|
-
if (updatedTraceTarget.index < 0) {
|
|
1061
|
-
return;
|
|
1062
|
-
}
|
|
1063
|
-
if (traceState.targetIndex !== updatedTraceTarget.index) {
|
|
1064
|
-
const previousTargetIndex = traceState.targetIndex;
|
|
1065
|
-
if (previousTargetIndex !== void 0 && previousTargetIndex !== -1) {
|
|
1066
|
-
const oldTarget = targets[previousTargetIndex];
|
|
1067
|
-
this.removeTracedCoordinates_(oldTarget.startIndex, oldTarget.endIndex);
|
|
1068
|
-
}
|
|
1069
|
-
const newTarget = targets[updatedTraceTarget.index];
|
|
1070
|
-
this.addTracedCoordinates_(
|
|
1071
|
-
newTarget,
|
|
1072
|
-
newTarget.startIndex,
|
|
1073
|
-
updatedTraceTarget.endIndex
|
|
1074
|
-
);
|
|
1075
|
-
} else {
|
|
1076
|
-
const target2 = targets[traceState.targetIndex];
|
|
1077
|
-
this.addOrRemoveTracedCoordinates_(target2, updatedTraceTarget.endIndex);
|
|
1078
|
-
}
|
|
1079
|
-
traceState.targetIndex = updatedTraceTarget.index;
|
|
1080
|
-
const target = targets[traceState.targetIndex];
|
|
1081
|
-
target.endIndex = updatedTraceTarget.endIndex;
|
|
1082
|
-
const coordinate = interpolateCoordinate(
|
|
1083
|
-
target.coordinates,
|
|
1084
|
-
target.endIndex
|
|
1085
|
-
);
|
|
1086
|
-
const pixel = map.getPixelFromCoordinate(coordinate);
|
|
1087
|
-
event.coordinate = coordinate;
|
|
1088
|
-
event.pixel = [Math.round(pixel[0]), Math.round(pixel[1])];
|
|
1089
|
-
}
|
|
1090
|
-
/**
|
|
1091
|
-
* Handle drag events.
|
|
1092
|
-
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
1093
|
-
* @override
|
|
1094
|
-
*/
|
|
1095
|
-
handleDragEvent(event) {
|
|
1096
|
-
this.ignoreNextUpEvent_ = true;
|
|
1097
|
-
super.handleDragEvent(event);
|
|
1098
|
-
}
|
|
1099
|
-
/**
|
|
1100
|
-
* Handle pointer up events.
|
|
1101
|
-
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
1102
|
-
* @return {boolean} If the event was consumed.
|
|
1103
|
-
* @override
|
|
1104
|
-
*/
|
|
1105
|
-
handleUpEvent(event) {
|
|
1106
|
-
let pass = true;
|
|
1107
|
-
if (this.getPointerCount() === 0) {
|
|
1108
|
-
if (this.downTimeout_) {
|
|
1109
|
-
clearTimeout(this.downTimeout_);
|
|
1110
|
-
this.downTimeout_ = void 0;
|
|
1111
|
-
}
|
|
1112
|
-
this.handlePointerMove_(event);
|
|
1113
|
-
const tracing = this.traceState_.active;
|
|
1114
|
-
if (!this.ignoreNextUpEvent_) {
|
|
1115
|
-
this.toggleTraceState_(event);
|
|
1116
|
-
}
|
|
1117
|
-
if (this.shouldHandle_) {
|
|
1118
|
-
const startingToDraw = !this.finishCoordinate_;
|
|
1119
|
-
if (startingToDraw) {
|
|
1120
|
-
this.startDrawing_(event.coordinate);
|
|
1121
|
-
}
|
|
1122
|
-
if (!startingToDraw && this.freehand_) {
|
|
1123
|
-
this.finishDrawing();
|
|
1124
|
-
} else if (!this.freehand_ && (!startingToDraw || this.mode_ === "Point")) {
|
|
1125
|
-
if (this.atFinish_(event.pixel, tracing)) {
|
|
1126
|
-
if (this.finishCondition_(event)) {
|
|
1127
|
-
this.finishDrawing();
|
|
1128
|
-
}
|
|
1129
|
-
} else {
|
|
1130
|
-
this.addToDrawing_(event.coordinate);
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
pass = false;
|
|
1134
|
-
} else if (this.freehand_) {
|
|
1135
|
-
this.abortDrawing();
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
this.ignoreNextUpEvent_ = false;
|
|
1139
|
-
if (!pass && this.stopClick_) {
|
|
1140
|
-
event.preventDefault();
|
|
1141
|
-
}
|
|
1142
|
-
return pass;
|
|
1143
|
-
}
|
|
1144
|
-
/**
|
|
1145
|
-
* Handle move events.
|
|
1146
|
-
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event A move event.
|
|
1147
|
-
* @private
|
|
1148
|
-
*/
|
|
1149
|
-
handlePointerMove_(event) {
|
|
1150
|
-
this.pointerType_ = event.originalEvent.pointerType;
|
|
1151
|
-
if (this.downPx_ && (!this.freehand_ && this.shouldHandle_ || this.freehand_ && !this.shouldHandle_)) {
|
|
1152
|
-
const downPx = this.downPx_;
|
|
1153
|
-
const clickPx = event.pixel;
|
|
1154
|
-
const dx = downPx[0] - clickPx[0];
|
|
1155
|
-
const dy = downPx[1] - clickPx[1];
|
|
1156
|
-
const squaredDistance3 = dx * dx + dy * dy;
|
|
1157
|
-
this.shouldHandle_ = this.freehand_ ? squaredDistance3 > this.squaredClickTolerance_ : squaredDistance3 <= this.squaredClickTolerance_;
|
|
1158
|
-
if (!this.shouldHandle_) {
|
|
1159
|
-
return;
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
if (!this.finishCoordinate_) {
|
|
1163
|
-
this.createOrUpdateSketchPoint_(event.coordinate.slice());
|
|
1164
|
-
return;
|
|
1165
|
-
}
|
|
1166
|
-
this.updateTrace_(event);
|
|
1167
|
-
this.modifyDrawing_(event.coordinate);
|
|
1168
|
-
}
|
|
1169
|
-
/**
|
|
1170
|
-
* Determine if an event is within the snapping tolerance of the start coord.
|
|
1171
|
-
* @param {import("../pixel.js").Pixel} pixel Pixel.
|
|
1172
|
-
* @param {boolean} [tracing] Drawing in trace mode (only stop if at the starting point).
|
|
1173
|
-
* @return {boolean} The event is within the snapping tolerance of the start.
|
|
1174
|
-
* @private
|
|
1175
|
-
*/
|
|
1176
|
-
atFinish_(pixel, tracing) {
|
|
1177
|
-
let at = false;
|
|
1178
|
-
const sketchCoords = this.sketchCoords_;
|
|
1179
|
-
const finishCoordinate = this.finishCoordinate_;
|
|
1180
|
-
if (this.sketchFeature_ && sketchCoords && finishCoordinate) {
|
|
1181
|
-
let potentiallyDone = false;
|
|
1182
|
-
let potentiallyFinishCoordinates = [finishCoordinate];
|
|
1183
|
-
const mode = this.mode_;
|
|
1184
|
-
if (mode === "Point") {
|
|
1185
|
-
at = true;
|
|
1186
|
-
} else if (mode === "Circle") {
|
|
1187
|
-
at = /** @type {LineCoordType} */
|
|
1188
|
-
sketchCoords.length === 2;
|
|
1189
|
-
} else if (mode === "LineString") {
|
|
1190
|
-
potentiallyDone = !tracing && /** @type {LineCoordType} */
|
|
1191
|
-
sketchCoords.length > this.minPoints_;
|
|
1192
|
-
} else if (mode === "Polygon") {
|
|
1193
|
-
const sketchCoordsPoly = (
|
|
1194
|
-
/** @type {PolyCoordType} */
|
|
1195
|
-
sketchCoords
|
|
1196
|
-
);
|
|
1197
|
-
potentiallyDone = sketchCoordsPoly[0].length > this.minPoints_;
|
|
1198
|
-
if (tracing) {
|
|
1199
|
-
potentiallyFinishCoordinates = [sketchCoordsPoly[0][0]];
|
|
1200
|
-
} else {
|
|
1201
|
-
potentiallyFinishCoordinates = [
|
|
1202
|
-
sketchCoordsPoly[0][0],
|
|
1203
|
-
sketchCoordsPoly[0][sketchCoordsPoly[0].length - 2]
|
|
1204
|
-
];
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
if (potentiallyDone) {
|
|
1208
|
-
const map = this.getMap();
|
|
1209
|
-
if (map) {
|
|
1210
|
-
for (let i = 0, ii = potentiallyFinishCoordinates.length; i < ii; i++) {
|
|
1211
|
-
const finishCoord = potentiallyFinishCoordinates[i];
|
|
1212
|
-
const finishPixel = map.getPixelFromCoordinate(finishCoord);
|
|
1213
|
-
const dx = pixel[0] - finishPixel[0];
|
|
1214
|
-
const dy = pixel[1] - finishPixel[1];
|
|
1215
|
-
const snapTolerance = this.freehand_ ? 1 : this.snapTolerance_;
|
|
1216
|
-
at = Math.sqrt(dx * dx + dy * dy) <= snapTolerance;
|
|
1217
|
-
if (at) {
|
|
1218
|
-
this.finishCoordinate_ = finishCoord;
|
|
1219
|
-
break;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
return at;
|
|
1226
|
-
}
|
|
1227
|
-
/**
|
|
1228
|
-
* @param {import("../coordinate.js").Coordinate} coordinates Coordinate.
|
|
1229
|
-
* @private
|
|
1230
|
-
*/
|
|
1231
|
-
createOrUpdateSketchPoint_(coordinates) {
|
|
1232
|
-
if (!this.sketchPoint_) {
|
|
1233
|
-
this.sketchPoint_ = new Feature_default(new Point_default(coordinates));
|
|
1234
|
-
this.updateSketchFeatures_();
|
|
1235
|
-
} else {
|
|
1236
|
-
const sketchPointGeom = this.sketchPoint_.getGeometry();
|
|
1237
|
-
if (sketchPointGeom) {
|
|
1238
|
-
sketchPointGeom.setCoordinates(coordinates);
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
}
|
|
1242
|
-
/**
|
|
1243
|
-
* @param {import("../geom/Polygon.js").default} geometry Polygon geometry.
|
|
1244
|
-
* @private
|
|
1245
|
-
*/
|
|
1246
|
-
createOrUpdateCustomSketchLine_(geometry) {
|
|
1247
|
-
if (!this.sketchLine_) {
|
|
1248
|
-
this.sketchLine_ = new Feature_default();
|
|
1249
|
-
}
|
|
1250
|
-
const ring = geometry.getLinearRing(0);
|
|
1251
|
-
if (!ring) {
|
|
1252
|
-
return;
|
|
1253
|
-
}
|
|
1254
|
-
let sketchLineGeom = this.sketchLine_.getGeometry();
|
|
1255
|
-
if (!sketchLineGeom) {
|
|
1256
|
-
sketchLineGeom = new LineString_default(
|
|
1257
|
-
ring.getFlatCoordinates(),
|
|
1258
|
-
ring.getLayout()
|
|
1259
|
-
);
|
|
1260
|
-
this.sketchLine_.setGeometry(sketchLineGeom);
|
|
1261
|
-
} else {
|
|
1262
|
-
sketchLineGeom.setFlatCoordinates(
|
|
1263
|
-
ring.getLayout(),
|
|
1264
|
-
ring.getFlatCoordinates()
|
|
1265
|
-
);
|
|
1266
|
-
sketchLineGeom.changed();
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
/**
|
|
1270
|
-
* Start the drawing.
|
|
1271
|
-
* @param {import("../coordinate.js").Coordinate} start Start coordinate.
|
|
1272
|
-
* @private
|
|
1273
|
-
*/
|
|
1274
|
-
startDrawing_(start) {
|
|
1275
|
-
const map = this.getMap();
|
|
1276
|
-
if (!map) {
|
|
1277
|
-
return;
|
|
1278
|
-
}
|
|
1279
|
-
const projection = map.getView().getProjection();
|
|
1280
|
-
const stride = getStrideForLayout(this.geometryLayout_);
|
|
1281
|
-
while (start.length < stride) {
|
|
1282
|
-
start.push(0);
|
|
1283
|
-
}
|
|
1284
|
-
this.finishCoordinate_ = start;
|
|
1285
|
-
if (this.mode_ === "Point") {
|
|
1286
|
-
this.sketchCoords_ = start.slice();
|
|
1287
|
-
} else if (this.mode_ === "Polygon") {
|
|
1288
|
-
this.sketchCoords_ = [[start.slice(), start.slice()]];
|
|
1289
|
-
this.sketchLineCoords_ = this.sketchCoords_[0];
|
|
1290
|
-
} else {
|
|
1291
|
-
this.sketchCoords_ = [start.slice(), start.slice()];
|
|
1292
|
-
}
|
|
1293
|
-
if (this.sketchLineCoords_) {
|
|
1294
|
-
this.sketchLine_ = new Feature_default(new LineString_default(this.sketchLineCoords_));
|
|
1295
|
-
}
|
|
1296
|
-
const geometry = this.geometryFunction_(
|
|
1297
|
-
this.sketchCoords_,
|
|
1298
|
-
void 0,
|
|
1299
|
-
projection
|
|
1300
|
-
);
|
|
1301
|
-
this.sketchFeature_ = new Feature_default();
|
|
1302
|
-
if (this.geometryName_) {
|
|
1303
|
-
this.sketchFeature_.setGeometryName(this.geometryName_);
|
|
1304
|
-
}
|
|
1305
|
-
this.sketchFeature_.setGeometry(geometry);
|
|
1306
|
-
this.updateSketchFeatures_();
|
|
1307
|
-
this.dispatchEvent(
|
|
1308
|
-
new DrawEvent(DrawEventType.DRAWSTART, this.sketchFeature_)
|
|
1309
|
-
);
|
|
1310
|
-
}
|
|
1311
|
-
/**
|
|
1312
|
-
* Modify the drawing.
|
|
1313
|
-
* @param {import("../coordinate.js").Coordinate} coordinate Coordinate.
|
|
1314
|
-
* @private
|
|
1315
|
-
*/
|
|
1316
|
-
modifyDrawing_(coordinate) {
|
|
1317
|
-
const map = this.getMap();
|
|
1318
|
-
const sketchFeature = this.sketchFeature_;
|
|
1319
|
-
const sketchCoords = this.sketchCoords_;
|
|
1320
|
-
if (!map || !sketchFeature || !sketchCoords) {
|
|
1321
|
-
return;
|
|
1322
|
-
}
|
|
1323
|
-
const geometry = sketchFeature.getGeometry();
|
|
1324
|
-
if (!geometry) {
|
|
1325
|
-
return;
|
|
1326
|
-
}
|
|
1327
|
-
const projection = map.getView().getProjection();
|
|
1328
|
-
const stride = getStrideForLayout(this.geometryLayout_);
|
|
1329
|
-
let coordinates;
|
|
1330
|
-
let last;
|
|
1331
|
-
while (coordinate.length < stride) {
|
|
1332
|
-
coordinate.push(0);
|
|
1333
|
-
}
|
|
1334
|
-
const finishCoordinate = this.finishCoordinate_;
|
|
1335
|
-
if (this.mode_ === "Point") {
|
|
1336
|
-
last = /** @type {PointCoordType} */
|
|
1337
|
-
sketchCoords;
|
|
1338
|
-
} else if (this.mode_ === "Polygon") {
|
|
1339
|
-
coordinates = /** @type {PolyCoordType} */
|
|
1340
|
-
sketchCoords[0];
|
|
1341
|
-
last = coordinates[coordinates.length - 1];
|
|
1342
|
-
if (finishCoordinate && this.atFinish_(map.getPixelFromCoordinate(coordinate))) {
|
|
1343
|
-
coordinate = finishCoordinate.slice();
|
|
1344
|
-
}
|
|
1345
|
-
} else {
|
|
1346
|
-
coordinates = /** @type {LineCoordType} */
|
|
1347
|
-
sketchCoords;
|
|
1348
|
-
last = coordinates[coordinates.length - 1];
|
|
1349
|
-
}
|
|
1350
|
-
last[0] = coordinate[0];
|
|
1351
|
-
last[1] = coordinate[1];
|
|
1352
|
-
this.geometryFunction_(
|
|
1353
|
-
/** @type {!SketchCoordType} */
|
|
1354
|
-
sketchCoords,
|
|
1355
|
-
geometry,
|
|
1356
|
-
projection
|
|
1357
|
-
);
|
|
1358
|
-
if (this.sketchPoint_) {
|
|
1359
|
-
const sketchPointGeom = this.sketchPoint_.getGeometry();
|
|
1360
|
-
if (sketchPointGeom) {
|
|
1361
|
-
sketchPointGeom.setCoordinates(coordinate);
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
if (geometry.getType() === "Polygon" && this.mode_ !== "Polygon") {
|
|
1365
|
-
this.createOrUpdateCustomSketchLine_(
|
|
1366
|
-
/** @type {Polygon} */
|
|
1367
|
-
geometry
|
|
1368
|
-
);
|
|
1369
|
-
} else if (this.sketchLineCoords_ && this.sketchLine_) {
|
|
1370
|
-
const sketchLineGeom = this.sketchLine_.getGeometry();
|
|
1371
|
-
if (sketchLineGeom) {
|
|
1372
|
-
sketchLineGeom.setCoordinates(this.sketchLineCoords_);
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
this.updateSketchFeatures_();
|
|
1376
|
-
}
|
|
1377
|
-
/**
|
|
1378
|
-
* Add a new coordinate to the drawing.
|
|
1379
|
-
* @param {!PointCoordType} coordinate Coordinate
|
|
1380
|
-
* @return {Feature<import("../geom/SimpleGeometry.js").default>|null} The sketch feature.
|
|
1381
|
-
* @private
|
|
1382
|
-
*/
|
|
1383
|
-
addToDrawing_(coordinate) {
|
|
1384
|
-
const sketchFeature = this.sketchFeature_;
|
|
1385
|
-
const sketchCoords = this.sketchCoords_;
|
|
1386
|
-
if (!sketchFeature || !sketchCoords) {
|
|
1387
|
-
return null;
|
|
1388
|
-
}
|
|
1389
|
-
const geometry = sketchFeature.getGeometry();
|
|
1390
|
-
if (!geometry) {
|
|
1391
|
-
return null;
|
|
1392
|
-
}
|
|
1393
|
-
const map = this.getMap();
|
|
1394
|
-
if (!map) {
|
|
1395
|
-
return null;
|
|
1396
|
-
}
|
|
1397
|
-
const projection = map.getView().getProjection();
|
|
1398
|
-
let done;
|
|
1399
|
-
let coordinates;
|
|
1400
|
-
const mode = this.mode_;
|
|
1401
|
-
if (mode === "LineString" || mode === "Circle") {
|
|
1402
|
-
this.finishCoordinate_ = coordinate.slice();
|
|
1403
|
-
coordinates = /** @type {LineCoordType} */
|
|
1404
|
-
sketchCoords;
|
|
1405
|
-
if (coordinates.length >= this.maxPoints_) {
|
|
1406
|
-
if (this.freehand_) {
|
|
1407
|
-
coordinates.pop();
|
|
1408
|
-
} else {
|
|
1409
|
-
done = true;
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
coordinates.push(coordinate.slice());
|
|
1413
|
-
this.geometryFunction_(coordinates, geometry, projection);
|
|
1414
|
-
} else if (mode === "Polygon") {
|
|
1415
|
-
coordinates = /** @type {PolyCoordType} */
|
|
1416
|
-
sketchCoords[0];
|
|
1417
|
-
if (coordinates.length >= this.maxPoints_) {
|
|
1418
|
-
if (this.freehand_) {
|
|
1419
|
-
coordinates.pop();
|
|
1420
|
-
} else {
|
|
1421
|
-
done = true;
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
coordinates.push(coordinate.slice());
|
|
1425
|
-
if (done) {
|
|
1426
|
-
this.finishCoordinate_ = coordinates[0];
|
|
1427
|
-
}
|
|
1428
|
-
this.geometryFunction_(sketchCoords, geometry, projection);
|
|
1429
|
-
}
|
|
1430
|
-
this.createOrUpdateSketchPoint_(coordinate.slice());
|
|
1431
|
-
this.updateSketchFeatures_();
|
|
1432
|
-
if (done) {
|
|
1433
|
-
return this.finishDrawing();
|
|
1434
|
-
}
|
|
1435
|
-
return (
|
|
1436
|
-
/** @type {Feature<import("../geom/SimpleGeometry.js").default>} */
|
|
1437
|
-
this.sketchFeature_
|
|
1438
|
-
);
|
|
1439
|
-
}
|
|
1440
|
-
/**
|
|
1441
|
-
* @param {number} n The number of points to remove.
|
|
1442
|
-
*/
|
|
1443
|
-
removeLastPoints_(n) {
|
|
1444
|
-
if (!this.sketchFeature_ || !this.sketchCoords_) {
|
|
1445
|
-
return;
|
|
1446
|
-
}
|
|
1447
|
-
const geometry = this.sketchFeature_.getGeometry();
|
|
1448
|
-
if (!geometry) {
|
|
1449
|
-
return;
|
|
1450
|
-
}
|
|
1451
|
-
const map = this.getMap();
|
|
1452
|
-
if (!map) {
|
|
1453
|
-
return;
|
|
1454
|
-
}
|
|
1455
|
-
const projection = map.getView().getProjection();
|
|
1456
|
-
const mode = this.mode_;
|
|
1457
|
-
for (let i = 0; i < n; ++i) {
|
|
1458
|
-
let coordinates;
|
|
1459
|
-
if (mode === "LineString" || mode === "Circle") {
|
|
1460
|
-
coordinates = /** @type {LineCoordType} */
|
|
1461
|
-
this.sketchCoords_;
|
|
1462
|
-
coordinates.splice(-2, 1);
|
|
1463
|
-
if (coordinates.length >= 2) {
|
|
1464
|
-
this.finishCoordinate_ = coordinates[coordinates.length - 2].slice();
|
|
1465
|
-
const finishCoordinate = this.finishCoordinate_.slice();
|
|
1466
|
-
coordinates[coordinates.length - 1] = finishCoordinate;
|
|
1467
|
-
this.createOrUpdateSketchPoint_(finishCoordinate);
|
|
1468
|
-
}
|
|
1469
|
-
this.geometryFunction_(coordinates, geometry, projection);
|
|
1470
|
-
if (geometry.getType() === "Polygon" && this.sketchLine_) {
|
|
1471
|
-
this.createOrUpdateCustomSketchLine_(
|
|
1472
|
-
/** @type {Polygon} */
|
|
1473
|
-
geometry
|
|
1474
|
-
);
|
|
1475
|
-
}
|
|
1476
|
-
} else if (mode === "Polygon") {
|
|
1477
|
-
coordinates = /** @type {PolyCoordType} */
|
|
1478
|
-
this.sketchCoords_[0];
|
|
1479
|
-
coordinates.splice(-2, 1);
|
|
1480
|
-
if (this.sketchLine_) {
|
|
1481
|
-
const sketchLineGeom = this.sketchLine_.getGeometry();
|
|
1482
|
-
if (sketchLineGeom) {
|
|
1483
|
-
if (coordinates.length >= 2) {
|
|
1484
|
-
const finishCoordinate = coordinates[coordinates.length - 2].slice();
|
|
1485
|
-
coordinates[coordinates.length - 1] = finishCoordinate;
|
|
1486
|
-
this.createOrUpdateSketchPoint_(finishCoordinate);
|
|
1487
|
-
}
|
|
1488
|
-
sketchLineGeom.setCoordinates(coordinates);
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
this.geometryFunction_(this.sketchCoords_, geometry, projection);
|
|
1492
|
-
}
|
|
1493
|
-
if (coordinates && coordinates.length === 1) {
|
|
1494
|
-
this.abortDrawing();
|
|
1495
|
-
break;
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
this.updateSketchFeatures_();
|
|
1499
|
-
}
|
|
1500
|
-
/**
|
|
1501
|
-
* Remove last point of the feature currently being drawn. Does not do anything when
|
|
1502
|
-
* drawing POINT or MULTI_POINT geometries.
|
|
1503
|
-
* @api
|
|
1504
|
-
*/
|
|
1505
|
-
removeLastPoint() {
|
|
1506
|
-
this.removeLastPoints_(1);
|
|
1507
|
-
}
|
|
1508
|
-
/**
|
|
1509
|
-
* Stop drawing and add the sketch feature to the target layer.
|
|
1510
|
-
* The {@link module:ol/interaction/Draw~DrawEventType.DRAWEND} event is
|
|
1511
|
-
* dispatched before inserting the feature.
|
|
1512
|
-
* @return {Feature<import("../geom/SimpleGeometry.js").default>|null} The drawn feature.
|
|
1513
|
-
* @api
|
|
1514
|
-
*/
|
|
1515
|
-
finishDrawing() {
|
|
1516
|
-
const sketchFeature = this.abortDrawing_();
|
|
1517
|
-
if (!sketchFeature) {
|
|
1518
|
-
return null;
|
|
1519
|
-
}
|
|
1520
|
-
let coordinates = this.sketchCoords_;
|
|
1521
|
-
const geometry = sketchFeature.getGeometry();
|
|
1522
|
-
const map = this.getMap();
|
|
1523
|
-
if (!coordinates || !geometry || !map) {
|
|
1524
|
-
return sketchFeature;
|
|
1525
|
-
}
|
|
1526
|
-
const projection = map.getView().getProjection();
|
|
1527
|
-
if (this.mode_ === "LineString") {
|
|
1528
|
-
coordinates.pop();
|
|
1529
|
-
this.geometryFunction_(coordinates, geometry, projection);
|
|
1530
|
-
} else if (this.mode_ === "Polygon") {
|
|
1531
|
-
coordinates[0].pop();
|
|
1532
|
-
this.geometryFunction_(coordinates, geometry, projection);
|
|
1533
|
-
coordinates = geometry.getCoordinates();
|
|
1534
|
-
}
|
|
1535
|
-
if (this.type_ === "MultiPoint") {
|
|
1536
|
-
sketchFeature.setGeometry(
|
|
1537
|
-
new MultiPoint_default([
|
|
1538
|
-
/** @type {PointCoordType} */
|
|
1539
|
-
coordinates
|
|
1540
|
-
])
|
|
1541
|
-
);
|
|
1542
|
-
} else if (this.type_ === "MultiLineString") {
|
|
1543
|
-
sketchFeature.setGeometry(
|
|
1544
|
-
new MultiLineString_default([
|
|
1545
|
-
/** @type {LineCoordType} */
|
|
1546
|
-
coordinates
|
|
1547
|
-
])
|
|
1548
|
-
);
|
|
1549
|
-
} else if (this.type_ === "MultiPolygon") {
|
|
1550
|
-
sketchFeature.setGeometry(
|
|
1551
|
-
new MultiPolygon_default([
|
|
1552
|
-
/** @type {PolyCoordType} */
|
|
1553
|
-
coordinates
|
|
1554
|
-
])
|
|
1555
|
-
);
|
|
1556
|
-
}
|
|
1557
|
-
this.dispatchEvent(new DrawEvent(DrawEventType.DRAWEND, sketchFeature));
|
|
1558
|
-
if (this.features_) {
|
|
1559
|
-
this.features_.push(sketchFeature);
|
|
1560
|
-
}
|
|
1561
|
-
if (this.source_) {
|
|
1562
|
-
this.source_.addFeature(sketchFeature);
|
|
1563
|
-
}
|
|
1564
|
-
return sketchFeature;
|
|
1565
|
-
}
|
|
1566
|
-
/**
|
|
1567
|
-
* Stop drawing without adding the sketch feature to the target layer.
|
|
1568
|
-
* @return {Feature<import("../geom/SimpleGeometry.js").default>|null} The sketch feature (or null if none).
|
|
1569
|
-
* @private
|
|
1570
|
-
*/
|
|
1571
|
-
abortDrawing_() {
|
|
1572
|
-
var _a;
|
|
1573
|
-
this.finishCoordinate_ = null;
|
|
1574
|
-
const sketchFeature = this.sketchFeature_;
|
|
1575
|
-
this.sketchFeature_ = null;
|
|
1576
|
-
this.sketchPoint_ = null;
|
|
1577
|
-
this.sketchLine_ = null;
|
|
1578
|
-
(_a = this.overlay_.getSource()) == null ? void 0 : _a.clear(true);
|
|
1579
|
-
this.deactivateTrace_();
|
|
1580
|
-
return sketchFeature;
|
|
1581
|
-
}
|
|
1582
|
-
/**
|
|
1583
|
-
* Stop drawing without adding the sketch feature to the target layer.
|
|
1584
|
-
* @api
|
|
1585
|
-
*/
|
|
1586
|
-
abortDrawing() {
|
|
1587
|
-
const sketchFeature = this.abortDrawing_();
|
|
1588
|
-
if (sketchFeature) {
|
|
1589
|
-
this.dispatchEvent(new DrawEvent(DrawEventType.DRAWABORT, sketchFeature));
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
/**
|
|
1593
|
-
* Append coordinates to the end of the geometry that is currently being drawn.
|
|
1594
|
-
* This can be used when drawing LineStrings or Polygons. Coordinates will
|
|
1595
|
-
* either be appended to the current LineString or the outer ring of the current
|
|
1596
|
-
* Polygon. If no geometry is being drawn, a new one will be created.
|
|
1597
|
-
* @param {!LineCoordType} coordinates Linear coordinates to be appended to
|
|
1598
|
-
* the coordinate array.
|
|
1599
|
-
* @api
|
|
1600
|
-
*/
|
|
1601
|
-
appendCoordinates(coordinates) {
|
|
1602
|
-
const mode = this.mode_;
|
|
1603
|
-
const newDrawing = !this.sketchFeature_;
|
|
1604
|
-
if (newDrawing) {
|
|
1605
|
-
this.startDrawing_(coordinates[0]);
|
|
1606
|
-
}
|
|
1607
|
-
let sketchCoords;
|
|
1608
|
-
if (mode === "LineString" || mode === "Circle") {
|
|
1609
|
-
sketchCoords = /** @type {LineCoordType} */
|
|
1610
|
-
this.sketchCoords_;
|
|
1611
|
-
} else if (mode === "Polygon") {
|
|
1612
|
-
sketchCoords = this.sketchCoords_ && this.sketchCoords_.length ? (
|
|
1613
|
-
/** @type {PolyCoordType} */
|
|
1614
|
-
this.sketchCoords_[0]
|
|
1615
|
-
) : [];
|
|
1616
|
-
} else {
|
|
1617
|
-
return;
|
|
1618
|
-
}
|
|
1619
|
-
if (newDrawing) {
|
|
1620
|
-
sketchCoords.shift();
|
|
1621
|
-
}
|
|
1622
|
-
sketchCoords.pop();
|
|
1623
|
-
for (let i = 0; i < coordinates.length; i++) {
|
|
1624
|
-
this.addToDrawing_(coordinates[i]);
|
|
1625
|
-
}
|
|
1626
|
-
const ending = coordinates[coordinates.length - 1];
|
|
1627
|
-
this.sketchFeature_ = this.addToDrawing_(ending);
|
|
1628
|
-
this.modifyDrawing_(ending);
|
|
1629
|
-
}
|
|
1630
|
-
/**
|
|
1631
|
-
* Initiate draw mode by starting from an existing geometry which will
|
|
1632
|
-
* receive new additional points. This only works on features with
|
|
1633
|
-
* `LineString` geometries, where the interaction will extend lines by adding
|
|
1634
|
-
* points to the end of the coordinates array.
|
|
1635
|
-
* This will change the original feature, instead of drawing a copy.
|
|
1636
|
-
*
|
|
1637
|
-
* The function will dispatch a `drawstart` event.
|
|
1638
|
-
*
|
|
1639
|
-
* @param {!Feature<LineString>} feature Feature to be extended.
|
|
1640
|
-
* @api
|
|
1641
|
-
*/
|
|
1642
|
-
extend(feature) {
|
|
1643
|
-
const geometry = feature.getGeometry();
|
|
1644
|
-
if (!(geometry instanceof LineString_default)) {
|
|
1645
|
-
return;
|
|
1646
|
-
}
|
|
1647
|
-
const lineString = geometry;
|
|
1648
|
-
this.sketchFeature_ = feature;
|
|
1649
|
-
this.sketchCoords_ = lineString.getCoordinates();
|
|
1650
|
-
const last = this.sketchCoords_[this.sketchCoords_.length - 1];
|
|
1651
|
-
this.finishCoordinate_ = last.slice();
|
|
1652
|
-
this.sketchCoords_.push(last.slice());
|
|
1653
|
-
this.sketchPoint_ = new Feature_default(new Point_default(last));
|
|
1654
|
-
this.updateSketchFeatures_();
|
|
1655
|
-
this.dispatchEvent(
|
|
1656
|
-
new DrawEvent(DrawEventType.DRAWSTART, this.sketchFeature_)
|
|
1657
|
-
);
|
|
1658
|
-
}
|
|
1659
|
-
/**
|
|
1660
|
-
* Redraw the sketch features.
|
|
1661
|
-
* @private
|
|
1662
|
-
*/
|
|
1663
|
-
updateSketchFeatures_() {
|
|
1664
|
-
const sketchFeatures = [];
|
|
1665
|
-
if (this.sketchFeature_) {
|
|
1666
|
-
sketchFeatures.push(this.sketchFeature_);
|
|
1667
|
-
}
|
|
1668
|
-
if (this.sketchLine_) {
|
|
1669
|
-
sketchFeatures.push(this.sketchLine_);
|
|
1670
|
-
}
|
|
1671
|
-
if (this.sketchPoint_) {
|
|
1672
|
-
sketchFeatures.push(this.sketchPoint_);
|
|
1673
|
-
}
|
|
1674
|
-
const overlaySource = this.overlay_.getSource();
|
|
1675
|
-
if (!overlaySource) {
|
|
1676
|
-
return;
|
|
1677
|
-
}
|
|
1678
|
-
overlaySource.clear(true);
|
|
1679
|
-
overlaySource.addFeatures(sketchFeatures);
|
|
1680
|
-
}
|
|
1681
|
-
/**
|
|
1682
|
-
* @private
|
|
1683
|
-
*/
|
|
1684
|
-
updateState_() {
|
|
1685
|
-
const map = this.getMap();
|
|
1686
|
-
const active = this.getActive();
|
|
1687
|
-
if (!map || !active) {
|
|
1688
|
-
this.abortDrawing();
|
|
1689
|
-
}
|
|
1690
|
-
this.overlay_.setMap(active ? map : null);
|
|
1691
|
-
}
|
|
1692
|
-
};
|
|
1693
|
-
function getDefaultStyleFunction() {
|
|
1694
|
-
const styles = createEditingStyle();
|
|
1695
|
-
return function(feature) {
|
|
1696
|
-
const geometry = feature.getGeometry();
|
|
1697
|
-
if (!geometry) {
|
|
1698
|
-
return null;
|
|
1699
|
-
}
|
|
1700
|
-
return styles[geometry.getType()];
|
|
1701
|
-
};
|
|
1702
|
-
}
|
|
1703
|
-
function createBox() {
|
|
1704
|
-
return function(coordinates, geometry, projection) {
|
|
1705
|
-
const extent = boundingExtent(
|
|
1706
|
-
/** @type {LineCoordType} */
|
|
1707
|
-
[
|
|
1708
|
-
coordinates[0],
|
|
1709
|
-
coordinates[coordinates.length - 1]
|
|
1710
|
-
].map(function(coordinate) {
|
|
1711
|
-
return fromUserCoordinate(coordinate, projection);
|
|
1712
|
-
})
|
|
1713
|
-
);
|
|
1714
|
-
const boxCoordinates = [
|
|
1715
|
-
[
|
|
1716
|
-
getBottomLeft(extent),
|
|
1717
|
-
getBottomRight(extent),
|
|
1718
|
-
getTopRight(extent),
|
|
1719
|
-
getTopLeft(extent),
|
|
1720
|
-
getBottomLeft(extent)
|
|
1721
|
-
]
|
|
1722
|
-
];
|
|
1723
|
-
if (geometry) {
|
|
1724
|
-
geometry.setCoordinates(boxCoordinates);
|
|
1725
|
-
} else {
|
|
1726
|
-
geometry = new Polygon_default(boxCoordinates);
|
|
1727
|
-
}
|
|
1728
|
-
const userProjection = getUserProjection();
|
|
1729
|
-
if (userProjection) {
|
|
1730
|
-
geometry.transform(projection, userProjection);
|
|
1731
|
-
}
|
|
1732
|
-
return geometry;
|
|
1733
|
-
};
|
|
1734
|
-
}
|
|
1735
|
-
function getMode(type) {
|
|
1736
|
-
switch (type) {
|
|
1737
|
-
case "Point":
|
|
1738
|
-
case "MultiPoint":
|
|
1739
|
-
return "Point";
|
|
1740
|
-
case "LineString":
|
|
1741
|
-
case "MultiLineString":
|
|
1742
|
-
return "LineString";
|
|
1743
|
-
case "Polygon":
|
|
1744
|
-
case "MultiPolygon":
|
|
1745
|
-
return "Polygon";
|
|
1746
|
-
case "Circle":
|
|
1747
|
-
return "Circle";
|
|
1748
|
-
default:
|
|
1749
|
-
throw new Error("Invalid type: " + type);
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
var Draw_default = Draw;
|
|
1753
|
-
|
|
1754
|
-
// node_modules/ol/geom.js
|
|
1755
|
-
init_dirname();
|
|
1756
|
-
init_buffer();
|
|
1757
|
-
init_process();
|
|
1758
|
-
|
|
1759
|
-
// src/components/map/controls/draw-toolbar.control.ts
|
|
1760
|
-
var _draw, _options, _tooltipEl, _cancelBtn, _activeTool, _boundMoveHandler, _DrawToolbarControl_instances, viewProjection_fn, fitToFeature_fn, getButtonIndex_fn, getIcon_fn, getTitle_fn, getTooltipText_fn, getDrawDefaults_fn, getDrawOptions_fn, activateTool_fn, moveHandler_fn, cleanup_fn;
|
|
1761
|
-
var DrawToolbarControl = class extends Control_default {
|
|
1762
|
-
constructor(vectorLayer, options) {
|
|
1763
|
-
const element = document.createElement("div");
|
|
1764
|
-
element.className = "draw-toolbar ol-unselectable ol-control";
|
|
1765
|
-
super({ element });
|
|
1766
|
-
__privateAdd(this, _DrawToolbarControl_instances);
|
|
1767
|
-
__privateAdd(this, _draw);
|
|
1768
|
-
__privateAdd(this, _options);
|
|
1769
|
-
__privateAdd(this, _tooltipEl);
|
|
1770
|
-
__privateAdd(this, _cancelBtn);
|
|
1771
|
-
// @ts-expect-error
|
|
1772
|
-
__privateAdd(this, _activeTool);
|
|
1773
|
-
__privateAdd(this, _boundMoveHandler);
|
|
1774
|
-
__privateSet(this, _options, options);
|
|
1775
|
-
const tools = ["bbox", "polygon", "point", "circle"];
|
|
1776
|
-
tools.forEach((tool) => {
|
|
1777
|
-
const btn = document.createElement("button");
|
|
1778
|
-
btn.innerHTML = __privateMethod(this, _DrawToolbarControl_instances, getIcon_fn).call(this, tool);
|
|
1779
|
-
btn.title = __privateMethod(this, _DrawToolbarControl_instances, getTitle_fn).call(this, tool);
|
|
1780
|
-
btn.addEventListener("click", () => __privateMethod(this, _DrawToolbarControl_instances, activateTool_fn).call(this, tool));
|
|
1781
|
-
element.appendChild(btn);
|
|
1782
|
-
this.toggleButtonVisibility(tool);
|
|
1783
|
-
});
|
|
1784
|
-
const cancelBtn = document.createElement("button");
|
|
1785
|
-
cancelBtn.innerHTML = "\u2715";
|
|
1786
|
-
cancelBtn.style.display = "none";
|
|
1787
|
-
element.appendChild(cancelBtn);
|
|
1788
|
-
this.vectorLayer = vectorLayer;
|
|
1789
|
-
__privateSet(this, _cancelBtn, cancelBtn);
|
|
1790
|
-
__privateSet(this, _tooltipEl, document.createElement("div"));
|
|
1791
|
-
__privateGet(this, _tooltipEl).className = "ol-tooltip";
|
|
1792
|
-
__privateGet(this, _tooltipEl).style.display = "none";
|
|
1793
|
-
cancelBtn.addEventListener("click", () => __privateMethod(this, _DrawToolbarControl_instances, cleanup_fn).call(this));
|
|
1794
|
-
__privateSet(this, _boundMoveHandler, __privateMethod(this, _DrawToolbarControl_instances, moveHandler_fn).bind(this));
|
|
1795
|
-
}
|
|
1796
|
-
setOptions(options) {
|
|
1797
|
-
__privateSet(this, _options, __spreadValues(__spreadValues({}, __privateGet(this, _options)), options));
|
|
1798
|
-
this.toggleButtonVisibility("bbox");
|
|
1799
|
-
this.toggleButtonVisibility("polygon");
|
|
1800
|
-
this.toggleButtonVisibility("point");
|
|
1801
|
-
this.toggleButtonVisibility("circle");
|
|
1802
|
-
}
|
|
1803
|
-
clearValue() {
|
|
1804
|
-
var _a;
|
|
1805
|
-
__privateMethod(this, _DrawToolbarControl_instances, cleanup_fn).call(this);
|
|
1806
|
-
(_a = this.vectorLayer.getSource()) == null ? void 0 : _a.clear();
|
|
1807
|
-
}
|
|
1808
|
-
setValue(value, fitToValue = false) {
|
|
1809
|
-
this.clearValue();
|
|
1810
|
-
const source = this.vectorLayer.getSource();
|
|
1811
|
-
if (!source) return;
|
|
1812
|
-
let feature;
|
|
1813
|
-
if (value instanceof LatLng) {
|
|
1814
|
-
feature = this.buildPointFeature(value);
|
|
1815
|
-
} else if (value instanceof LatLngBounds) {
|
|
1816
|
-
feature = this.buildBBoxFeature(value);
|
|
1817
|
-
}
|
|
1818
|
-
if (!feature) return;
|
|
1819
|
-
source.addFeature(feature);
|
|
1820
|
-
if (fitToValue) {
|
|
1821
|
-
__privateMethod(this, _DrawToolbarControl_instances, fitToFeature_fn).call(this, feature);
|
|
1822
|
-
}
|
|
1823
|
-
}
|
|
1824
|
-
setMap(map) {
|
|
1825
|
-
super.setMap(map);
|
|
1826
|
-
if (map) {
|
|
1827
|
-
map.getViewport().appendChild(__privateGet(this, _tooltipEl));
|
|
1828
|
-
}
|
|
1829
|
-
}
|
|
1830
|
-
buildPointFeature(latLng) {
|
|
1831
|
-
const coords = transform(
|
|
1832
|
-
[latLng.lng, latLng.lat],
|
|
1833
|
-
"EPSG:4326",
|
|
1834
|
-
__privateMethod(this, _DrawToolbarControl_instances, viewProjection_fn).call(this)
|
|
1835
|
-
);
|
|
1836
|
-
const point = new Point_default(coords);
|
|
1837
|
-
const feature = new Feature_default({ geometry: point });
|
|
1838
|
-
feature.set("drawtool", "point");
|
|
1839
|
-
return feature;
|
|
1840
|
-
}
|
|
1841
|
-
buildBBoxFeature(bounds) {
|
|
1842
|
-
const west = bounds.getWest();
|
|
1843
|
-
const south = bounds.getSouth();
|
|
1844
|
-
const east = bounds.getEast();
|
|
1845
|
-
const north = bounds.getNorth();
|
|
1846
|
-
const viewProjection = __privateMethod(this, _DrawToolbarControl_instances, viewProjection_fn).call(this);
|
|
1847
|
-
const coordinates = [
|
|
1848
|
-
[west, south],
|
|
1849
|
-
[west, north],
|
|
1850
|
-
[east, north],
|
|
1851
|
-
[east, south],
|
|
1852
|
-
[west, south]
|
|
1853
|
-
].map((coord) => transform(coord, "EPSG:4326", viewProjection));
|
|
1854
|
-
const polygon = new Polygon_default([coordinates]);
|
|
1855
|
-
const feature = new Feature_default({ geometry: polygon });
|
|
1856
|
-
feature.set("drawtool", "bbox");
|
|
1857
|
-
return feature;
|
|
1858
|
-
}
|
|
1859
|
-
toggleButtonVisibility(tool) {
|
|
1860
|
-
var _a, _b, _c;
|
|
1861
|
-
const show = (_b = (_a = __privateGet(this, _options)) == null ? void 0 : _a[`show${tool.charAt(0).toUpperCase() + tool.slice(1)}Tool`]) != null ? _b : false;
|
|
1862
|
-
const btn = (_c = this.element) == null ? void 0 : _c.querySelector(
|
|
1863
|
-
`button:nth-child(${__privateMethod(this, _DrawToolbarControl_instances, getButtonIndex_fn).call(this, tool)})`
|
|
1864
|
-
);
|
|
1865
|
-
if (btn) {
|
|
1866
|
-
btn.style.display = show ? "inline-block" : "none";
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
};
|
|
1870
|
-
_draw = new WeakMap();
|
|
1871
|
-
_options = new WeakMap();
|
|
1872
|
-
_tooltipEl = new WeakMap();
|
|
1873
|
-
_cancelBtn = new WeakMap();
|
|
1874
|
-
_activeTool = new WeakMap();
|
|
1875
|
-
_boundMoveHandler = new WeakMap();
|
|
1876
|
-
_DrawToolbarControl_instances = new WeakSet();
|
|
1877
|
-
viewProjection_fn = function() {
|
|
1878
|
-
var _a, _b;
|
|
1879
|
-
return (_b = (_a = this.getMap()) == null ? void 0 : _a.getView().getProjection()) != null ? _b : "EPSG:3857";
|
|
1880
|
-
};
|
|
1881
|
-
fitToFeature_fn = function(feature) {
|
|
1882
|
-
const map = this.getMap();
|
|
1883
|
-
if (!map) return;
|
|
1884
|
-
const geometry = feature.getGeometry();
|
|
1885
|
-
if (!geometry) return;
|
|
1886
|
-
const extent = geometry.getExtent();
|
|
1887
|
-
if (!extent) return;
|
|
1888
|
-
map.getView().fit(extent, {
|
|
1889
|
-
padding: [20, 20, 20, 20],
|
|
1890
|
-
maxZoom: 5,
|
|
1891
|
-
// don't allow zooming in too far, you lose context of where you are on the map
|
|
1892
|
-
duration: 250
|
|
1893
|
-
});
|
|
1894
|
-
};
|
|
1895
|
-
getButtonIndex_fn = function(tool) {
|
|
1896
|
-
if (tool === "bbox") return 1;
|
|
1897
|
-
if (tool === "polygon") return 2;
|
|
1898
|
-
if (tool === "point") return 3;
|
|
1899
|
-
if (tool === "circle") return 4;
|
|
1900
|
-
return -1;
|
|
1901
|
-
};
|
|
1902
|
-
getIcon_fn = function(tool) {
|
|
1903
|
-
if (tool === "bbox") return '<div class="control-button control-bbox"></div>';
|
|
1904
|
-
if (tool === "polygon")
|
|
1905
|
-
return '<div class="control-button control-polygon"></div>';
|
|
1906
|
-
if (tool === "point")
|
|
1907
|
-
return '<div class="control-button control-point"></div>';
|
|
1908
|
-
if (tool === "circle")
|
|
1909
|
-
return '<div class="control-button control-circle"></div>';
|
|
1910
|
-
return "";
|
|
1911
|
-
};
|
|
1912
|
-
getTitle_fn = function(tool) {
|
|
1913
|
-
if (tool === "bbox") return "Draw a rectangle";
|
|
1914
|
-
if (tool === "polygon") return "Draw a polygon";
|
|
1915
|
-
if (tool === "point") return "Choose a point";
|
|
1916
|
-
if (tool === "circle") return "Draw a circle";
|
|
1917
|
-
return "";
|
|
1918
|
-
};
|
|
1919
|
-
getTooltipText_fn = function(tool) {
|
|
1920
|
-
if (tool === "bbox") return "Click and drag to draw a bounding box";
|
|
1921
|
-
if (tool === "polygon") return "Click to draw polygon";
|
|
1922
|
-
if (tool === "point") return "Click to place point";
|
|
1923
|
-
if (tool === "circle") return "Click and drag to draw a circle";
|
|
1924
|
-
return "Click to draw";
|
|
1925
|
-
};
|
|
1926
|
-
getDrawDefaults_fn = function() {
|
|
1927
|
-
return {
|
|
1928
|
-
source: this.vectorLayer.getSource(),
|
|
1929
|
-
dragVertexDelay: 0,
|
|
1930
|
-
style: new Style_default({
|
|
1931
|
-
stroke: new Stroke_default({
|
|
1932
|
-
color: "#0088ff",
|
|
1933
|
-
width: 2,
|
|
1934
|
-
lineDash: [8, 4]
|
|
1935
|
-
}),
|
|
1936
|
-
fill: new Fill_default({
|
|
1937
|
-
color: "rgba(51, 136, 255, 0.1)"
|
|
1938
|
-
})
|
|
1939
|
-
})
|
|
1940
|
-
};
|
|
1941
|
-
};
|
|
1942
|
-
getDrawOptions_fn = function(tool) {
|
|
1943
|
-
const base = __privateMethod(this, _DrawToolbarControl_instances, getDrawDefaults_fn).call(this);
|
|
1944
|
-
if (tool === "bbox") {
|
|
1945
|
-
return __spreadProps(__spreadValues({}, base), {
|
|
1946
|
-
type: "Circle",
|
|
1947
|
-
geometryFunction: createBox(),
|
|
1948
|
-
freehand: true
|
|
1949
|
-
});
|
|
1950
|
-
}
|
|
1951
|
-
if (tool === "circle") {
|
|
1952
|
-
return __spreadProps(__spreadValues({}, base), {
|
|
1953
|
-
type: "Circle",
|
|
1954
|
-
freehand: true
|
|
1955
|
-
});
|
|
1956
|
-
}
|
|
1957
|
-
if (tool === "polygon") {
|
|
1958
|
-
return __spreadProps(__spreadValues({}, base), {
|
|
1959
|
-
type: "Polygon"
|
|
1960
|
-
});
|
|
1961
|
-
}
|
|
1962
|
-
return __spreadProps(__spreadValues({}, base), {
|
|
1963
|
-
type: "Point"
|
|
1964
|
-
});
|
|
1965
|
-
};
|
|
1966
|
-
activateTool_fn = function(tool) {
|
|
1967
|
-
var _a;
|
|
1968
|
-
const map = this.getMap();
|
|
1969
|
-
if (!map) return;
|
|
1970
|
-
__privateMethod(this, _DrawToolbarControl_instances, cleanup_fn).call(this);
|
|
1971
|
-
__privateSet(this, _activeTool, tool);
|
|
1972
|
-
(_a = this.vectorLayer.getSource()) == null ? void 0 : _a.clear();
|
|
1973
|
-
const viewport = map.getViewport();
|
|
1974
|
-
if (viewport) {
|
|
1975
|
-
viewport.style.cursor = "crosshair";
|
|
1976
|
-
}
|
|
1977
|
-
const drawOptions = __privateMethod(this, _DrawToolbarControl_instances, getDrawOptions_fn).call(this, tool);
|
|
1978
|
-
__privateSet(this, _draw, new Draw_default(drawOptions));
|
|
1979
|
-
map.addInteraction(__privateGet(this, _draw));
|
|
1980
|
-
__privateGet(this, _tooltipEl).style.display = "block";
|
|
1981
|
-
__privateGet(this, _tooltipEl).innerText = __privateMethod(this, _DrawToolbarControl_instances, getTooltipText_fn).call(this, tool);
|
|
1982
|
-
__privateGet(this, _cancelBtn).style.display = "inline-block";
|
|
1983
|
-
map.on("pointermove", __privateGet(this, _boundMoveHandler));
|
|
1984
|
-
__privateGet(this, _draw).on("drawend", (event) => {
|
|
1985
|
-
event.feature.set("drawtool", tool);
|
|
1986
|
-
__privateMethod(this, _DrawToolbarControl_instances, cleanup_fn).call(this);
|
|
1987
|
-
});
|
|
1988
|
-
const viewProjection = __privateMethod(this, _DrawToolbarControl_instances, viewProjection_fn).call(this);
|
|
1989
|
-
__privateGet(this, _draw).on("drawstart", (e) => {
|
|
1990
|
-
const geom = e.feature.getGeometry();
|
|
1991
|
-
geom.on("change", () => {
|
|
1992
|
-
const extent = geom.getExtent();
|
|
1993
|
-
const bbox4326 = transformExtent(extent, viewProjection, "EPSG:4326");
|
|
1994
|
-
const [west, south, east, north] = bbox4326;
|
|
1995
|
-
__privateGet(this, _tooltipEl).innerHTML = `
|
|
1996
|
-
W: ${west.toFixed(4)}<br/>
|
|
1997
|
-
S: ${south.toFixed(4)}<br/>
|
|
1998
|
-
E: ${east.toFixed(4)}<br/>
|
|
1999
|
-
N: ${north.toFixed(4)}
|
|
2000
|
-
`;
|
|
2001
|
-
});
|
|
2002
|
-
});
|
|
2003
|
-
};
|
|
2004
|
-
moveHandler_fn = function(e) {
|
|
2005
|
-
__privateGet(this, _tooltipEl).style.left = e.pixel[0] + 12 + "px";
|
|
2006
|
-
__privateGet(this, _tooltipEl).style.top = e.pixel[1] + 12 + "px";
|
|
2007
|
-
};
|
|
2008
|
-
cleanup_fn = function() {
|
|
2009
|
-
const map = this.getMap();
|
|
2010
|
-
if (map && __privateGet(this, _draw)) {
|
|
2011
|
-
const viewport = map.getViewport();
|
|
2012
|
-
map.removeInteraction(__privateGet(this, _draw));
|
|
2013
|
-
map.un("pointermove", __privateGet(this, _boundMoveHandler));
|
|
2014
|
-
if (viewport) {
|
|
2015
|
-
viewport.style.cursor = "";
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
__privateSet(this, _draw, void 0);
|
|
2019
|
-
__privateSet(this, _activeTool, void 0);
|
|
2020
|
-
__privateGet(this, _tooltipEl).style.display = "none";
|
|
2021
|
-
__privateGet(this, _cancelBtn).style.display = "none";
|
|
2022
|
-
};
|
|
2023
|
-
|
|
2024
|
-
export {
|
|
2025
|
-
Circle_default,
|
|
2026
|
-
Draw_default,
|
|
2027
|
-
DrawToolbarControl
|
|
2028
|
-
};
|