@nasa-terra/components 0.0.201 → 0.0.202
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 +7 -0
- package/cdn/chunks/chunk.26WIFY7V.js +19 -0
- package/cdn/chunks/chunk.2GA4CWAO.js +19 -0
- package/cdn/chunks/chunk.2HOYW6MS.js +49 -0
- package/cdn/chunks/chunk.2MS5ABFB.js +19 -0
- package/cdn/chunks/chunk.2OMLOQMV.js +925 -0
- package/cdn/chunks/chunk.2PRHFH3T.js +19 -0
- package/cdn/chunks/chunk.2UHL5P6K.js +29 -0
- package/cdn/chunks/chunk.2VP477VG.js +19 -0
- package/cdn/chunks/chunk.33R27RVH.js +132 -0
- package/cdn/chunks/chunk.34BJZDYA.js +537 -0
- package/cdn/chunks/chunk.3AHQKBOX.js +29 -0
- package/cdn/chunks/chunk.3AZSMAQH.js +158 -0
- package/cdn/chunks/chunk.3G5XI66I.js +35 -0
- package/cdn/chunks/chunk.3KKU7VXW.js +19 -0
- package/cdn/chunks/chunk.3SQV2QZD.js +29 -0
- package/cdn/chunks/chunk.3YE4RI37.js +377 -0
- package/cdn/chunks/chunk.3ZKU6WYW.js +71 -0
- package/cdn/chunks/chunk.47AEJXKW.js +231 -0
- package/cdn/chunks/chunk.4USNEUUH.js +278 -0
- package/cdn/chunks/chunk.4UTDVHGR.js +37 -0
- package/cdn/chunks/chunk.4ZYLJ7D3.js +82 -0
- package/cdn/chunks/chunk.55OQIAKO.js +29 -0
- package/cdn/chunks/chunk.5ESGWJLA.js +106 -0
- package/cdn/chunks/chunk.5EX3Z4DK.js +19 -0
- package/cdn/chunks/chunk.5I7B4IIZ.js +592 -0
- package/cdn/chunks/chunk.5KPNIIGS.js +604 -0
- package/cdn/chunks/chunk.5MEL64GJ.js +19 -0
- package/cdn/chunks/chunk.5OZWDB5C.js +19 -0
- package/cdn/chunks/chunk.5XNHMOAV.js +136 -0
- package/cdn/chunks/chunk.6AQLHC6W.js +32 -0
- package/cdn/chunks/chunk.6IN6IQWI.js +230 -0
- package/cdn/chunks/chunk.6RSIQP5A.js +34 -0
- package/cdn/chunks/chunk.6ULJR6ZE.js +155 -0
- package/cdn/chunks/chunk.6XYGFWIA.js +19 -0
- package/cdn/chunks/chunk.7A4LM7IX.js +32 -0
- package/cdn/chunks/chunk.7F73VUIV.js +556 -0
- package/cdn/chunks/chunk.7HMHLQLZ.js +29 -0
- package/cdn/chunks/chunk.7XXQMVFX.js +104 -0
- package/cdn/chunks/chunk.A7O62RXN.js +29 -0
- package/cdn/chunks/chunk.AVPLP47V.js +190 -0
- package/cdn/chunks/chunk.BCMV5FPA.js +35 -0
- package/cdn/chunks/chunk.BFWPKDGX.js +277 -0
- package/cdn/chunks/chunk.BIR4JWJE.js +29 -0
- package/cdn/chunks/chunk.BJ7UKTWC.js +19 -0
- package/cdn/chunks/chunk.BJVIJ7BT.js +19 -0
- package/cdn/chunks/chunk.BUB7FPJ5.js +19 -0
- package/cdn/chunks/chunk.BVHMTI75.js +35 -0
- package/cdn/chunks/chunk.BYNNIM7J.js +310 -0
- package/cdn/chunks/chunk.BZFJ6XDH.js +38 -0
- package/cdn/chunks/chunk.CPKXJI47.js +19 -0
- package/cdn/chunks/chunk.CTYJ2G2V.js +56075 -0
- package/cdn/chunks/chunk.CVPDIZ7K.js +224 -0
- package/cdn/chunks/chunk.DEHKVV4T.js +303 -0
- package/cdn/chunks/chunk.DIVDM5FL.js +29 -0
- package/cdn/chunks/chunk.DKJIIJCV.js +33 -0
- package/cdn/chunks/chunk.DLCXOQQB.js +83 -0
- package/cdn/chunks/chunk.DNWADQ5W.js +2546 -0
- package/cdn/chunks/chunk.DNZMWTWS.js +29 -0
- package/cdn/chunks/chunk.DOEGMJOZ.js +904 -0
- package/cdn/chunks/chunk.DU5T3TJE.js +19 -0
- package/cdn/chunks/chunk.DX5Y5JD2.js +19 -0
- package/cdn/chunks/chunk.DZVQRJHX.js +298 -0
- package/cdn/chunks/chunk.E6YEHXRQ.js +538 -0
- package/cdn/chunks/chunk.ECYELSFF.js +19 -0
- package/cdn/chunks/chunk.EHANRIPJ.js +29 -0
- package/cdn/chunks/chunk.EM7J56W4.js +478 -0
- package/cdn/chunks/chunk.EV4WF34M.js +1018 -0
- package/cdn/chunks/chunk.EW6F2GQY.js +29 -0
- package/cdn/chunks/chunk.F3WCMGTZ.js +36 -0
- package/cdn/chunks/chunk.F5BJYKTF.js +19 -0
- package/cdn/chunks/chunk.FFR22MCX.js +19 -0
- package/cdn/chunks/chunk.FH3P6CF5.js +19 -0
- package/cdn/chunks/chunk.FJSK6GY3.js +29 -0
- package/cdn/chunks/chunk.FNBRNK7F.js +37 -0
- package/cdn/chunks/chunk.FPG5SQ2I.js +35 -0
- package/cdn/chunks/chunk.FVOVPQKA.js +60 -0
- package/cdn/chunks/chunk.FYKDZ4XF.js +19 -0
- package/cdn/chunks/chunk.G2RISDFV.js +29 -0
- package/cdn/chunks/chunk.G4A6CMDQ.js +65 -0
- package/cdn/chunks/chunk.G6K6BXYG.js +134 -0
- package/cdn/chunks/chunk.GAI2J6ZS.js +37 -0
- package/cdn/chunks/chunk.GG4KL7GW.js +29 -0
- package/cdn/chunks/chunk.GGLVZVB5.js +33 -0
- package/cdn/chunks/chunk.GLYBW7KG.js +138 -0
- package/cdn/chunks/chunk.GQQ3K6N5.js +29 -0
- package/cdn/chunks/chunk.GRJVGKG7.js +19 -0
- package/cdn/chunks/chunk.GYLCUVEW.js +32 -0
- package/cdn/chunks/chunk.HOSUC6BD.js +29 -0
- package/cdn/chunks/chunk.HSOOL4RW.js +266 -0
- package/cdn/chunks/chunk.I4LPZIIK.js +789 -0
- package/cdn/chunks/chunk.IFH52YEF.js +29 -0
- package/cdn/chunks/chunk.IQZTU2J4.js +19 -0
- package/cdn/chunks/chunk.IRINNT4H.js +19 -0
- package/cdn/chunks/chunk.IUEFLVQW.js +93 -0
- package/cdn/chunks/chunk.J3B2QGRM.js +92 -0
- package/cdn/chunks/chunk.J6KAYZPW.js +524 -0
- package/cdn/chunks/chunk.JAOHMVHU.js +33 -0
- package/cdn/chunks/chunk.JDYJT6FG.js +113 -0
- package/cdn/chunks/chunk.JGAX4GO7.js +19 -0
- package/cdn/chunks/chunk.JNGYHT6A.js +32 -0
- package/cdn/chunks/chunk.JSANBP7K.js +367 -0
- package/cdn/chunks/chunk.JVYWBJQZ.js +19 -0
- package/cdn/chunks/chunk.JXGYRXMB.js +364 -0
- package/cdn/chunks/chunk.JXHGDIHB.js +348 -0
- package/cdn/chunks/chunk.JXK3FZE4.js +19 -0
- package/cdn/chunks/chunk.K5AO7XP2.js +151 -0
- package/cdn/chunks/chunk.KACXPSGJ.js +631 -0
- package/cdn/chunks/chunk.KFKCR6QA.js +168 -0
- package/cdn/chunks/chunk.KLFMBNVE.js +19 -0
- package/cdn/chunks/chunk.KPYXFXJQ.js +29 -0
- package/cdn/chunks/chunk.KQYGVB55.js +41 -0
- package/cdn/chunks/chunk.KVUF6LF4.js +47 -0
- package/cdn/chunks/chunk.KW56O2IH.js +19 -0
- package/cdn/chunks/chunk.KW65NRUO.js +357 -0
- package/cdn/chunks/chunk.L4XZB6ZY.js +19 -0
- package/cdn/chunks/chunk.L6EUQYXA.js +74 -0
- package/cdn/chunks/chunk.L6GXBCP7.js +19 -0
- package/cdn/chunks/chunk.LEIC7FZG.js +1697 -0
- package/cdn/chunks/chunk.LEV3NGRX.js +123 -0
- package/cdn/chunks/chunk.LFXWUWSU.js +32 -0
- package/cdn/chunks/chunk.LJ7VHJSX.js +39 -0
- package/cdn/chunks/chunk.LJPWAEWA.js +32 -0
- package/cdn/chunks/chunk.LL62QDQM.js +32 -0
- package/cdn/chunks/chunk.LNSFXPSI.js +19 -0
- package/cdn/chunks/chunk.LSIA3HEA.js +36 -0
- package/cdn/chunks/chunk.LWTBWDXM.js +978 -0
- package/cdn/chunks/chunk.MCHI55B3.js +32 -0
- package/cdn/chunks/chunk.MCVMPMS7.js +19 -0
- package/cdn/chunks/chunk.MHCN3GKD.js +29 -0
- package/cdn/chunks/chunk.MKNOJ7CM.js +62 -0
- package/cdn/chunks/chunk.MZ5FELAW.js +36 -0
- package/cdn/chunks/chunk.N5OWLRQR.js +32 -0
- package/cdn/chunks/chunk.N7A5RE4M.js +610 -0
- package/cdn/chunks/chunk.N7BFGJYR.js +19 -0
- package/cdn/chunks/chunk.NK547YK2.js +37 -0
- package/cdn/chunks/chunk.NKA5YELN.js +19 -0
- package/cdn/chunks/chunk.NKKB3FX7.js +32 -0
- package/cdn/chunks/chunk.NMJFHBS5.js +417 -0
- package/cdn/chunks/chunk.NUFNV5DK.js +188 -0
- package/cdn/chunks/chunk.NUFZV7LP.js +33 -0
- package/cdn/chunks/chunk.NWYFMEJU.js +196 -0
- package/cdn/chunks/chunk.NY7IV7XN.js +29 -0
- package/cdn/chunks/chunk.NZE5IKJW.js +195 -0
- package/cdn/chunks/chunk.O2NDUKFH.js +29 -0
- package/cdn/chunks/chunk.OD2DZWMX.js +2911 -0
- package/cdn/chunks/chunk.OKFWUYLX.js +29 -0
- package/cdn/chunks/chunk.OT4YPSAD.js +19 -0
- package/cdn/chunks/chunk.OXCDRW3M.js +19 -0
- package/cdn/chunks/chunk.P5BFYTDM.js +234 -0
- package/cdn/chunks/chunk.P6ZFLSLA.js +1197 -0
- package/cdn/chunks/chunk.PB3Y6MQO.js +19 -0
- package/cdn/chunks/chunk.PKQP2MA2.js +60 -0
- package/cdn/chunks/chunk.PS562SMS.js +19 -0
- package/cdn/chunks/chunk.QKNOTJCL.js +32 -0
- package/cdn/chunks/chunk.QM6JTIZV.js +19 -0
- package/cdn/chunks/chunk.QU7NYKM3.js +129 -0
- package/cdn/chunks/chunk.QUUHCJTG.js +19 -0
- package/cdn/chunks/chunk.RONK5ODL.js +19 -0
- package/cdn/chunks/chunk.RTC75E45.js +86 -0
- package/cdn/chunks/chunk.RZ4HFXEJ.js +672 -0
- package/cdn/chunks/chunk.SI7ZBJ26.js +32 -0
- package/cdn/chunks/chunk.SK2V5P52.js +33 -0
- package/cdn/chunks/chunk.SMSLR2AT.js +19 -0
- package/cdn/chunks/chunk.SNK5SHN5.js +162 -0
- package/cdn/chunks/chunk.SQ7L6KKX.js +19 -0
- package/cdn/chunks/chunk.SWK2BPWD.js +110 -0
- package/cdn/chunks/chunk.TUCSU6CG.js +293 -0
- package/cdn/chunks/chunk.TXB5M54T.js +29 -0
- package/cdn/chunks/chunk.TZEIENKR.js +19 -0
- package/cdn/chunks/chunk.U3GLETYN.js +32 -0
- package/cdn/chunks/chunk.U6OGFCQE.js +19 -0
- package/cdn/chunks/chunk.UCLX6LR3.js +29 -0
- package/cdn/chunks/chunk.UE5XH2VP.js +29 -0
- package/cdn/chunks/chunk.UFDANYS3.js +259 -0
- package/cdn/chunks/chunk.UJ2RMY3E.js +35 -0
- package/cdn/chunks/chunk.UMWYLPSI.js +19 -0
- package/cdn/chunks/chunk.UQVJF6VD.js +19 -0
- package/cdn/chunks/chunk.UUTUP2GS.js +56 -0
- package/cdn/chunks/chunk.UVJ7UDD7.js +29 -0
- package/cdn/chunks/chunk.V4T6KDXQ.js +36 -0
- package/cdn/chunks/chunk.VFNOOS3R.js +19 -0
- package/cdn/chunks/chunk.VKPVDKVG.js +30 -0
- package/cdn/chunks/chunk.VT7CU5GG.js +29 -0
- package/cdn/chunks/chunk.VUXNHYPK.js +19 -0
- package/cdn/chunks/chunk.VV7XEX5X.js +29 -0
- package/cdn/chunks/chunk.VZBWM3DN.js +4735 -0
- package/cdn/chunks/chunk.W3R3ZNBA.js +276 -0
- package/cdn/chunks/chunk.W5SOJEYN.js +543 -0
- package/cdn/chunks/chunk.WIJP5EMP.js +19 -0
- package/cdn/chunks/chunk.WRRUKGNP.js +19 -0
- package/cdn/chunks/chunk.WUEOPDUB.js +19 -0
- package/cdn/chunks/chunk.WWNFEPX7.js +1975 -0
- package/cdn/chunks/chunk.WZO7QXTZ.js +19 -0
- package/cdn/chunks/chunk.X33YQMXQ.js +117 -0
- package/cdn/chunks/chunk.XF5YT4NV.js +363 -0
- package/cdn/chunks/chunk.XHQZAOGE.js +32 -0
- package/cdn/chunks/chunk.XJKX5QJ7.js +19 -0
- package/cdn/chunks/chunk.XLY7H4ZC.js +19 -0
- package/cdn/chunks/chunk.XSNLMGTR.js +29 -0
- package/cdn/chunks/chunk.XT5DOVMF.js +443 -0
- package/cdn/chunks/chunk.XVM2NRZZ.js +19 -0
- package/cdn/chunks/chunk.XXQNALY7.js +29 -0
- package/cdn/chunks/chunk.Y4GV74E5.js +121 -0
- package/cdn/chunks/chunk.YAXJK6UB.js +19 -0
- package/cdn/chunks/chunk.YIX4KI4Q.js +19 -0
- package/cdn/chunks/chunk.YMFQOE6M.js +36 -0
- package/cdn/chunks/chunk.YOR3HFUL.js +34 -0
- package/cdn/chunks/chunk.YPCSP3D3.js +19 -0
- package/cdn/chunks/chunk.YZHPA7ZJ.js +624 -0
- package/cdn/chunks/chunk.Z45IXDIV.js +540 -0
- package/cdn/chunks/chunk.ZAHCQGUA.js +19 -0
- package/cdn/chunks/chunk.ZENSAK4S.js +68 -0
- package/cdn/chunks/chunk.ZFNIC34O.js +19 -0
- package/cdn/chunks/chunk.ZFYQAHEP.js +19 -0
- package/cdn/chunks/chunk.ZIKKX7BH.js +437 -0
- package/cdn/components/accordion/accordion.component.js +3 -3
- package/cdn/components/accordion/accordion.js +4 -4
- package/cdn/components/alert/alert.component.js +2 -2
- package/cdn/components/alert/alert.js +3 -3
- package/cdn/components/avatar/avatar.component.js +3 -3
- package/cdn/components/avatar/avatar.js +4 -4
- package/cdn/components/badge/badge.component.js +2 -2
- package/cdn/components/badge/badge.js +3 -3
- package/cdn/components/banner/banner.component.js +2 -2
- package/cdn/components/banner/banner.js +3 -3
- 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 +15 -0
- package/cdn/components/browse-variables/browse-variables.component.js +16 -12
- package/cdn/components/browse-variables/browse-variables.js +17 -13
- package/cdn/components/browse-variables/browse-variables.styles.js +1 -1
- package/cdn/components/button/button.component.js +4 -4
- package/cdn/components/button/button.js +5 -5
- 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 +3 -3
- package/cdn/components/checkbox/checkbox.js +4 -4
- package/cdn/components/chip/chip.component.js +2 -2
- package/cdn/components/chip/chip.js +3 -3
- package/cdn/components/combobox/combobox.component.js +2 -2
- package/cdn/components/combobox/combobox.js +3 -3
- package/cdn/components/data-access/data-access.component.js +36 -36
- package/cdn/components/data-access/data-access.js +37 -37
- 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.js +43 -43
- package/cdn/components/data-rods/data-rods.js +44 -44
- package/cdn/components/data-subsetter/data-subsetter.component.d.ts +3 -0
- package/cdn/components/data-subsetter/data-subsetter.component.js +47 -47
- package/cdn/components/data-subsetter/data-subsetter.js +48 -48
- 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.js +48 -48
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +49 -49
- package/cdn/components/date-picker/date-picker.component.js +9 -9
- package/cdn/components/date-picker/date-picker.js +10 -10
- package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
- package/cdn/components/date-range-slider/date-range-slider.js +3 -3
- package/cdn/components/dialog/dialog.component.js +5 -5
- package/cdn/components/dialog/dialog.js +6 -6
- package/cdn/components/divider/divider.component.js +2 -2
- package/cdn/components/divider/divider.js +3 -3
- package/cdn/components/dropdown/dropdown.component.js +3 -3
- package/cdn/components/dropdown/dropdown.js +4 -4
- package/cdn/components/earthdata-login/earthdata-login.component.js +11 -11
- package/cdn/components/earthdata-login/earthdata-login.js +12 -12
- package/cdn/components/file-upload/file-upload.component.d.ts +1 -0
- 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.js +10 -10
- package/cdn/components/harmony-history/harmony-history.js +11 -11
- package/cdn/components/icon/icon.component.js +2 -2
- package/cdn/components/icon/icon.js +3 -3
- package/cdn/components/input/input.component.js +3 -3
- package/cdn/components/input/input.js +4 -4
- package/cdn/components/loader/loader.component.js +2 -2
- package/cdn/components/loader/loader.js +3 -3
- package/cdn/components/login/login.component.js +9 -9
- package/cdn/components/login/login.js +10 -10
- package/cdn/components/map/controls/draw-toolbar.control.js +3 -3
- package/cdn/components/map/layers/borders.layer.js +2 -2
- package/cdn/components/map/layers/labels.layer.js +2 -2
- package/cdn/components/map/map.component.js +11 -11
- package/cdn/components/map/map.js +12 -12
- package/cdn/components/map/map.service.js +8 -8
- package/cdn/components/map/models/LatLng.d.ts +6 -0
- package/cdn/components/map/models/LatLng.js +1 -1
- package/cdn/components/map/models/LatLngBounds.d.ts +5 -0
- package/cdn/components/map/models/LatLngBounds.js +2 -2
- 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 +5 -5
- package/cdn/components/menu-item/menu-item.js +6 -6
- package/cdn/components/option/option.component.js +3 -3
- package/cdn/components/option/option.js +4 -4
- package/cdn/components/pagination/pagination.component.js +3 -3
- package/cdn/components/pagination/pagination.js +4 -4
- 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.js +19 -19
- package/cdn/components/plot-toolbar/plot-toolbar.js +20 -20
- 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 +2 -2
- package/cdn/components/radio/radio.js +3 -3
- package/cdn/components/radio-group/radio-group.component.js +2 -2
- package/cdn/components/radio-group/radio-group.js +3 -3
- package/cdn/components/scroll-hint/scroll-hint.component.js +3 -3
- package/cdn/components/scroll-hint/scroll-hint.js +4 -4
- package/cdn/components/select/select.component.js +5 -5
- package/cdn/components/select/select.js +6 -6
- package/cdn/components/site-header/site-header.component.js +3 -3
- package/cdn/components/site-header/site-header.js +3 -3
- 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.js +19 -19
- package/cdn/components/spatial-picker/spatial-picker.js +20 -20
- package/cdn/components/spatial-picker/spatial-picker.service.js +3 -3
- 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.d.ts +8 -0
- package/cdn/components/stepper/stepper.component.js +3 -3
- package/cdn/components/stepper/stepper.js +4 -4
- package/cdn/components/stepper/stepper.styles.js +1 -1
- package/cdn/components/stepper-step/stepper-step.component.d.ts +6 -0
- package/cdn/components/stepper-step/stepper-step.component.js +4 -4
- package/cdn/components/stepper-step/stepper-step.js +5 -5
- package/cdn/components/stepper-step/stepper-step.styles.js +1 -1
- package/cdn/components/tab/tab.component.js +3 -3
- package/cdn/components/tab/tab.js +4 -4
- package/cdn/components/tab-panel/tab-panel.component.js +2 -2
- package/cdn/components/tab-panel/tab-panel.js +3 -3
- package/cdn/components/tabs/tabs.component.js +3 -3
- package/cdn/components/tabs/tabs.js +4 -4
- package/cdn/components/tag/tag.component.js +3 -3
- package/cdn/components/tag/tag.js +4 -4
- package/cdn/components/textarea/textarea.component.js +2 -2
- package/cdn/components/textarea/textarea.js +3 -3
- package/cdn/components/time-average-map/time-average-map.component.js +28 -28
- package/cdn/components/time-average-map/time-average-map.controller.js +7 -7
- package/cdn/components/time-average-map/time-average-map.js +29 -29
- package/cdn/components/time-series/time-series.component.js +28 -28
- package/cdn/components/time-series/time-series.controller.js +7 -7
- package/cdn/components/time-series/time-series.js +29 -29
- package/cdn/components/toast/toast.component.js +3 -3
- package/cdn/components/toast/toast.js +4 -4
- package/cdn/components/toggle/toggle.component.js +2 -2
- package/cdn/components/toggle/toggle.js +3 -3
- package/cdn/components/tooltip/tooltip.component.js +3 -3
- package/cdn/components/tooltip/tooltip.js +4 -4
- package/cdn/components/variable-combobox/variable-combobox.component.js +10 -10
- package/cdn/components/variable-combobox/variable-combobox.js +11 -11
- package/cdn/components/variable-combobox/variable-combobox.styles.js +1 -1
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +7 -7
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +8 -8
- package/cdn/controllers/harmony-request.controller.d.ts +2 -1
- package/cdn/custom-elements.json +9195 -8991
- package/cdn/lib/harmony/harmony.request.d.ts +11 -1
- package/cdn/queries/harmony.queries.d.ts +14 -0
- package/cdn/react/accordion/index.js +4 -4
- package/cdn/react/alert/index.js +3 -3
- package/cdn/react/avatar/index.js +4 -4
- package/cdn/react/badge/index.js +3 -3
- package/cdn/react/banner/index.js +3 -3
- package/cdn/react/breadcrumb/index.js +3 -3
- package/cdn/react/breadcrumbs/index.js +3 -3
- package/cdn/react/browse-variables/index.d.ts +2 -0
- package/cdn/react/browse-variables/index.js +17 -13
- package/cdn/react/button/index.js +5 -5
- 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 +4 -4
- package/cdn/react/chip/index.js +3 -3
- package/cdn/react/combobox/index.js +3 -3
- package/cdn/react/data-access/index.js +37 -37
- package/cdn/react/data-grid/index.js +4 -4
- package/cdn/react/data-rods/index.js +44 -44
- package/cdn/react/data-subsetter/index.js +48 -48
- package/cdn/react/data-subsetter-history/index.js +49 -49
- package/cdn/react/date-picker/index.js +10 -10
- package/cdn/react/date-range-slider/index.js +3 -3
- package/cdn/react/dialog/index.js +6 -6
- package/cdn/react/divider/index.js +3 -3
- package/cdn/react/dropdown/index.js +4 -4
- package/cdn/react/earthdata-login/index.js +12 -12
- package/cdn/react/file-upload/index.js +3 -3
- package/cdn/react/harmony-history/index.js +11 -11
- package/cdn/react/icon/index.js +3 -3
- package/cdn/react/index.d.ts +30 -30
- package/cdn/react/index.js +215 -215
- package/cdn/react/input/index.js +4 -4
- package/cdn/react/loader/index.js +3 -3
- package/cdn/react/login/index.js +10 -10
- package/cdn/react/map/index.js +12 -12
- package/cdn/react/menu/index.js +3 -3
- package/cdn/react/menu-item/index.js +6 -6
- package/cdn/react/option/index.js +4 -4
- package/cdn/react/pagination/index.js +4 -4
- package/cdn/react/plot/index.js +3 -3
- package/cdn/react/plot-toolbar/index.js +20 -20
- package/cdn/react/popup/index.js +3 -3
- package/cdn/react/progress-bar/index.js +3 -3
- package/cdn/react/radio/index.js +3 -3
- package/cdn/react/radio-group/index.js +3 -3
- package/cdn/react/scroll-hint/index.js +4 -4
- package/cdn/react/select/index.js +6 -6
- package/cdn/react/site-header/index.js +4 -4
- 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 +20 -20
- package/cdn/react/status-indicator/index.js +3 -3
- package/cdn/react/stepper/index.js +4 -4
- package/cdn/react/stepper-step/index.js +5 -5
- package/cdn/react/tab/index.js +4 -4
- package/cdn/react/tab-panel/index.js +3 -3
- package/cdn/react/tabs/index.js +4 -4
- package/cdn/react/tag/index.js +4 -4
- package/cdn/react/textarea/index.js +3 -3
- package/cdn/react/time-average-map/index.js +29 -29
- package/cdn/react/time-series/index.js +29 -29
- package/cdn/react/toast/index.js +4 -4
- package/cdn/react/toggle/index.js +3 -3
- package/cdn/react/tooltip/index.js +4 -4
- package/cdn/react/variable-combobox/index.js +11 -11
- package/cdn/react/variable-keyword-search/index.js +8 -8
- package/cdn/terra-ui-components.js +194 -194
- package/cdn/themes/horizon.css +1 -1
- package/cdn/themes/horizon.styles.js +1 -1
- package/cdn/types/vue/index.d.ts +993 -983
- package/cdn/vscode.html-custom-data.json +821 -820
- package/cdn/web-types.json +2388 -2364
- package/dist/apis/harmony.api.d.ts +7 -0
- package/dist/chunks/chunk.224RQGIQ.js +1 -0
- package/dist/chunks/chunk.23AJO5JN.js +1 -0
- package/dist/chunks/chunk.255AACF5.js +1 -0
- package/dist/chunks/chunk.2JIESSDW.js +1 -0
- package/dist/chunks/chunk.2JSRPRFD.js +1 -0
- package/dist/chunks/chunk.2WX6SQIN.js +1 -0
- package/dist/chunks/chunk.32QRSPS4.js +1 -0
- package/dist/chunks/chunk.3473E453.js +25 -0
- package/dist/chunks/chunk.3G5RMVYE.js +1 -0
- package/dist/chunks/chunk.3OLVJCSH.js +11 -0
- package/dist/chunks/chunk.3V5SLRI5.js +100 -0
- package/dist/chunks/chunk.3XRCUOUJ.js +5 -0
- package/dist/chunks/chunk.4233YNTB.js +16 -0
- package/dist/chunks/chunk.46TLZFOW.js +1 -0
- package/dist/chunks/chunk.4GXEPG2P.js +1 -0
- package/dist/chunks/chunk.4PNNISNN.js +12 -0
- package/dist/chunks/chunk.4QXBDSLM.js +1 -0
- package/dist/chunks/chunk.4SEOBTSU.js +1 -0
- package/dist/chunks/chunk.4TPII7LG.js +1 -0
- package/dist/chunks/chunk.4WQ7VATR.js +1 -0
- package/dist/chunks/chunk.5K3WI2JJ.js +1 -0
- package/dist/chunks/chunk.5L32MMBB.js +1 -0
- package/dist/chunks/chunk.5MQKZTT2.js +1 -0
- package/dist/chunks/chunk.5P7CYUKX.js +1 -0
- package/dist/chunks/chunk.5RAKMWTT.js +1 -0
- package/dist/chunks/chunk.65Q3F3LJ.js +1 -0
- package/dist/chunks/chunk.6UGTTIL7.js +22 -0
- package/dist/chunks/chunk.74H67OO2.js +1 -0
- package/dist/chunks/chunk.75FLVY74.js +1 -0
- package/dist/chunks/chunk.77RIUMEQ.js +1 -0
- package/dist/chunks/chunk.7EG5USIU.js +17 -0
- package/dist/chunks/chunk.7IPNSQO2.js +1 -0
- package/dist/chunks/chunk.7JR6HYAR.js +1 -0
- package/dist/chunks/chunk.7KS523XQ.js +1 -0
- package/dist/chunks/chunk.7NHLPVYX.js +1 -0
- package/dist/chunks/chunk.7OHXT3IB.js +125 -0
- package/dist/chunks/chunk.7S5GHPMV.js +1 -0
- package/dist/chunks/chunk.A3HVUSWF.js +2 -0
- package/dist/chunks/chunk.ALBESADY.js +9 -0
- package/dist/chunks/chunk.AMTFHH3Q.js +1 -0
- package/dist/chunks/chunk.AQ5MV2PT.js +1 -0
- package/dist/chunks/chunk.ATKXVJOW.js +1 -0
- package/dist/chunks/chunk.B3MAWEN3.js +1 -0
- package/dist/chunks/chunk.B4E5VH3P.js +1 -0
- package/dist/chunks/chunk.B64IWXB6.js +1 -0
- package/dist/chunks/chunk.B6W7HFEB.js +1 -0
- package/dist/chunks/chunk.B7BKAZPP.js +1 -0
- package/dist/chunks/chunk.BBSZLWRW.js +1 -0
- package/dist/chunks/chunk.BFQBOANQ.js +1 -0
- package/dist/chunks/chunk.BJUETMM7.js +1 -0
- package/dist/chunks/chunk.BKTDTLSZ.js +356 -0
- package/dist/chunks/chunk.BLSN7TN3.js +1 -0
- package/dist/chunks/chunk.BM4VCIE3.js +1 -0
- package/dist/chunks/chunk.C5I3XGMY.js +64 -0
- package/dist/chunks/chunk.CK3QZMBE.js +20 -0
- package/dist/chunks/chunk.CM5PJDTJ.js +1 -0
- package/dist/chunks/chunk.CPE2JWFP.js +1 -0
- package/dist/chunks/chunk.CSI5FZUQ.js +1 -0
- package/dist/chunks/chunk.CWCJ7NPX.js +39 -0
- package/dist/chunks/chunk.D2BO7SXC.js +572 -0
- package/dist/chunks/chunk.D7CTZNLO.js +1 -0
- package/dist/chunks/chunk.DASVSHE2.js +122 -0
- package/dist/chunks/chunk.DBYNAZJ5.js +1 -0
- package/dist/chunks/chunk.DDLNROG2.js +1 -0
- package/dist/chunks/chunk.DQRYUPZU.js +1 -0
- package/dist/chunks/chunk.DX7K7LQL.js +1 -0
- package/dist/chunks/chunk.E322JSYC.js +1 -0
- package/dist/chunks/chunk.E3IZSCAQ.js +1 -0
- package/dist/chunks/chunk.E4TPOBZZ.js +26 -0
- package/dist/chunks/chunk.E5ZOHYTS.js +13 -0
- package/dist/chunks/chunk.EDO3KNNV.js +1 -0
- package/dist/chunks/chunk.EENXQ7FB.js +39 -0
- package/dist/chunks/chunk.EKBFKFVE.js +1 -0
- package/dist/chunks/chunk.EKPDUNBI.js +1 -0
- package/dist/chunks/chunk.ES3HNM2X.js +1 -0
- package/dist/chunks/chunk.EVHJJHLC.js +5 -0
- package/dist/chunks/chunk.EXCWGDK5.js +1 -0
- package/dist/chunks/chunk.F323KAPC.js +1 -0
- package/dist/chunks/chunk.F726CW4Q.js +1 -0
- package/dist/chunks/chunk.F76PQOT5.js +1 -0
- package/dist/chunks/chunk.FAWWXCJS.js +1 -0
- package/dist/chunks/chunk.FL7S7XOW.js +1 -0
- package/dist/chunks/chunk.FLRYZC3Y.js +1 -0
- package/dist/chunks/chunk.FMHRQDVQ.js +1 -0
- package/dist/chunks/chunk.FPOJCR2I.js +1 -0
- package/dist/chunks/chunk.G32X765Q.js +1 -0
- package/dist/chunks/chunk.G7C3NVYN.js +1 -0
- package/dist/chunks/chunk.GACVGPS5.js +1 -0
- package/dist/chunks/chunk.GFSY3DK7.js +1 -0
- package/dist/chunks/chunk.GJXW4PLR.js +43 -0
- package/dist/chunks/chunk.GMPJDMFO.js +1 -0
- package/dist/chunks/chunk.GZFHZRBN.js +19 -0
- package/dist/chunks/chunk.HE72A6CI.js +1 -0
- package/dist/chunks/chunk.HFUDHMSV.js +121 -0
- package/dist/chunks/chunk.HKUZZUCQ.js +157 -0
- package/dist/chunks/chunk.HLRVGPJI.js +1 -0
- package/dist/chunks/chunk.HM3GGGSZ.js +80 -0
- package/dist/chunks/chunk.HMJSVFLA.js +2 -0
- package/dist/chunks/chunk.HSPY2KHW.js +1 -0
- package/dist/chunks/chunk.HSU3GORK.js +1 -0
- package/dist/chunks/chunk.HZJALTAY.js +47 -0
- package/dist/chunks/chunk.I76ZGR5O.js +1 -0
- package/dist/chunks/chunk.IHH5IUXO.js +145 -0
- package/dist/chunks/chunk.II3GLGL3.js +1 -0
- package/dist/chunks/chunk.IIJNFZVF.js +35 -0
- package/dist/chunks/chunk.IV5N3NC3.js +1 -0
- package/dist/chunks/chunk.J6WCYCRH.js +1 -0
- package/dist/chunks/chunk.JF4PHYCT.js +1 -0
- package/dist/chunks/chunk.JHTKTEXH.js +1 -0
- package/dist/chunks/chunk.JHU4BG26.js +113 -0
- package/dist/chunks/chunk.JHZGV3DO.js +1 -0
- package/dist/chunks/chunk.JRRXWQNN.js +30 -0
- package/dist/chunks/chunk.JU3GZHPF.js +1 -0
- package/dist/chunks/chunk.JVZDQGJM.js +1 -0
- package/dist/chunks/chunk.K45NIOAW.js +37 -0
- package/dist/chunks/chunk.KC7KA2T7.js +55 -0
- package/dist/chunks/chunk.KCUVHJLC.js +1 -0
- package/dist/chunks/chunk.KEOX3HYL.js +6 -0
- package/dist/chunks/chunk.KOKSE6TG.js +1 -0
- package/dist/chunks/chunk.KTO4CWMX.js +1 -0
- package/dist/chunks/chunk.LVJYASQH.js +41 -0
- package/dist/chunks/chunk.M2V3P4RJ.js +35 -0
- package/dist/chunks/chunk.M3R3ADJT.js +1 -0
- package/dist/chunks/chunk.MD3WWSWH.js +1 -0
- package/dist/chunks/chunk.MGAR4A2C.js +1 -0
- package/dist/chunks/chunk.MHOPPG2L.js +27 -0
- package/dist/chunks/chunk.MHRETNDL.js +1 -0
- package/dist/chunks/chunk.MP2PA6I2.js +1 -0
- package/dist/chunks/chunk.MSTQMCZU.js +1 -0
- package/dist/chunks/chunk.MVZAQH35.js +1 -0
- package/dist/chunks/chunk.N6Y6OHJ2.js +1 -0
- package/dist/chunks/chunk.NEIV46YH.js +6 -0
- package/dist/chunks/chunk.NIKXQX3G.js +1 -0
- package/dist/chunks/chunk.NN26JW46.js +1 -0
- package/dist/chunks/chunk.NPVMA3OB.js +1 -0
- package/dist/chunks/chunk.OFQCUCKL.js +1 -0
- package/dist/chunks/chunk.OO3D3KYA.js +1 -0
- package/dist/chunks/chunk.OREQUNFN.js +1 -0
- package/dist/chunks/chunk.ORWDKUUV.js +1 -0
- package/dist/chunks/chunk.OSDEVN34.js +1001 -0
- package/dist/chunks/chunk.PLRFVB2T.js +523 -0
- package/dist/chunks/chunk.PMHKDAX4.js +14 -0
- package/dist/chunks/chunk.PMJBCFBC.js +4 -0
- package/dist/chunks/chunk.PPO2L3BE.js +24 -0
- package/dist/chunks/chunk.PQC63KGW.js +1 -0
- package/dist/chunks/chunk.PX6KXK37.js +112 -0
- package/dist/chunks/chunk.Q4V6CU45.js +1 -0
- package/dist/chunks/chunk.QD4WEVFW.js +1 -0
- package/dist/chunks/chunk.QFRJ47QK.js +1 -0
- package/dist/chunks/chunk.QGUTUAAS.js +55 -0
- package/dist/chunks/chunk.QVACFQ6X.js +1 -0
- package/dist/chunks/chunk.RAGUMQ4A.js +55 -0
- package/dist/chunks/chunk.RDSM7QJJ.js +1 -0
- package/dist/chunks/chunk.RJDX64F6.js +1 -0
- package/dist/chunks/chunk.RNK2SP3V.js +300 -0
- package/dist/chunks/chunk.RONKZSI5.js +1 -0
- package/dist/chunks/chunk.RQ3QRNRD.js +1 -0
- package/dist/chunks/chunk.RQHOJJUK.js +41 -0
- package/dist/chunks/chunk.RZC34L3A.js +26 -0
- package/dist/chunks/chunk.S5NWLDV6.js +1 -0
- package/dist/chunks/chunk.S6DL72MM.js +30 -0
- package/dist/chunks/chunk.S7X6AHZ3.js +11 -0
- package/dist/chunks/chunk.SUB7TSSV.js +1 -0
- package/dist/chunks/chunk.SWS3QDB5.js +8 -0
- package/dist/chunks/chunk.T37ISYQF.js +9 -0
- package/dist/chunks/chunk.TCE5GLO5.js +176 -0
- package/dist/chunks/chunk.TFQQDQPV.js +280 -0
- package/dist/chunks/chunk.TFVCIEQV.js +1 -0
- package/dist/chunks/chunk.TLCZPOGI.js +48 -0
- package/dist/chunks/chunk.TTHCQTJ5.js +1 -0
- package/dist/chunks/chunk.TWJJEPQI.js +1 -0
- package/dist/chunks/chunk.TXJOFCEB.js +20 -0
- package/dist/chunks/chunk.TYNOXO54.js +1 -0
- package/dist/chunks/chunk.TZ7VJYIG.js +1 -0
- package/dist/chunks/chunk.U423CTVK.js +1 -0
- package/dist/chunks/chunk.UDYMR57E.js +1 -0
- package/dist/chunks/chunk.UGALPERB.js +43 -0
- package/dist/chunks/chunk.UIR62OUZ.js +62 -0
- package/dist/chunks/chunk.UMFR3QZQ.js +1 -0
- package/dist/chunks/chunk.UWDWRAHZ.js +65 -0
- package/dist/chunks/chunk.V7NXYMPF.js +1 -0
- package/dist/chunks/chunk.VAMOIXWY.js +1 -0
- package/dist/chunks/chunk.VHVKDUXK.js +154 -0
- package/dist/chunks/chunk.VJ3TYI65.js +61 -0
- package/dist/chunks/chunk.VJ4PWETP.js +1 -0
- package/dist/chunks/chunk.VWWZFJJ3.js +1 -0
- package/dist/chunks/chunk.VYTCCGU7.js +74 -0
- package/dist/chunks/chunk.W2GWFBVH.js +1 -0
- package/dist/chunks/chunk.WFO7B4CB.js +1 -0
- package/dist/chunks/chunk.WKMUXXFT.js +1 -0
- package/dist/chunks/chunk.WO2UTEZC.js +4 -0
- package/dist/chunks/chunk.WT7V4Q75.js +67 -0
- package/dist/chunks/chunk.X4CA6KJW.js +1237 -0
- package/dist/chunks/chunk.XCGCQBTO.js +75 -0
- package/dist/chunks/chunk.XEXMENPB.js +780 -0
- package/dist/chunks/chunk.XLWUUG42.js +1 -0
- package/dist/chunks/chunk.XVIMCVSP.js +1 -0
- package/dist/chunks/chunk.XYM23MGW.js +1 -0
- package/dist/chunks/chunk.Y3ORBJE7.js +99 -0
- package/dist/chunks/chunk.Y4XLYB7I.js +33 -0
- package/dist/chunks/chunk.YP2AC3MD.js +1 -0
- package/dist/chunks/chunk.YXOAWWRW.js +350 -0
- package/dist/chunks/chunk.ZC3HYGTS.js +1 -0
- package/dist/chunks/chunk.ZCSONYDN.js +1 -0
- package/dist/chunks/chunk.ZDT2WOI7.js +23 -0
- package/dist/chunks/chunk.ZFNXPSQV.js +1 -0
- package/dist/chunks/chunk.ZGEMTZQ4.js +1 -0
- package/dist/chunks/chunk.ZJ4RZQYD.js +1 -0
- package/dist/chunks/chunk.ZJANM2QG.js +1 -0
- package/dist/chunks/chunk.ZN4K6E24.js +1 -0
- package/dist/chunks/chunk.ZRMNGS5U.js +1 -0
- package/dist/chunks/chunk.ZWWZUICO.js +1 -0
- package/dist/chunks/chunk.ZYGLUFVQ.js +148 -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 +15 -0
- package/dist/components/browse-variables/browse-variables.component.js +1 -1
- package/dist/components/browse-variables/browse-variables.js +1 -1
- package/dist/components/browse-variables/browse-variables.styles.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.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.js +1 -1
- package/dist/components/data-rods/data-rods.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.component.d.ts +3 -0
- 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.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
- 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.js +1 -1
- package/dist/components/earthdata-login/earthdata-login.js +1 -1
- package/dist/components/file-upload/file-upload.component.d.ts +1 -0
- 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.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.js +1 -1
- package/dist/components/login/login.js +1 -1
- package/dist/components/map/controls/draw-toolbar.control.js +1 -1
- package/dist/components/map/map.component.js +1 -1
- package/dist/components/map/map.js +1 -1
- package/dist/components/map/map.service.js +1 -1
- package/dist/components/map/models/LatLng.d.ts +6 -0
- package/dist/components/map/models/LatLng.js +1 -1
- package/dist/components/map/models/LatLngBounds.d.ts +5 -0
- package/dist/components/map/models/LatLngBounds.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.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.js +1 -1
- package/dist/components/spatial-picker/spatial-picker.js +1 -1
- package/dist/components/spatial-picker/spatial-picker.service.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.d.ts +8 -0
- package/dist/components/stepper/stepper.component.js +1 -1
- package/dist/components/stepper/stepper.js +1 -1
- package/dist/components/stepper/stepper.styles.js +1 -1
- package/dist/components/stepper-step/stepper-step.component.d.ts +6 -0
- package/dist/components/stepper-step/stepper-step.component.js +1 -1
- package/dist/components/stepper-step/stepper-step.js +1 -1
- package/dist/components/stepper-step/stepper-step.styles.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.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.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.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.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.styles.js +1 -1
- 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/controllers/harmony-request.controller.d.ts +2 -1
- package/dist/custom-elements.json +9195 -8991
- package/dist/lib/harmony/harmony.request.d.ts +11 -1
- package/dist/queries/harmony.queries.d.ts +14 -0
- 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.d.ts +2 -0
- 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.js +1 -1
- package/dist/react/data-subsetter/index.js +1 -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.js +1 -1
- package/dist/react/icon/index.js +1 -1
- package/dist/react/index.d.ts +30 -30
- 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.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.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.js +1 -1
- 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.js +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.202-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.202.tar.gz +0 -0
- package/dist/themes/horizon.css +1 -1
- package/dist/themes/horizon.styles.js +1 -1
- package/dist/types/vue/index.d.ts +993 -983
- package/dist/vscode.html-custom-data.json +821 -820
- package/dist/web-types.json +2388 -2364
- package/package.json +72 -69
- package/cdn/chunks/chunk.2AZHW3NI.js +0 -62
- package/cdn/chunks/chunk.2GMJRLYQ.js +0 -604
- package/cdn/chunks/chunk.2QUVRAPY.js +0 -19
- package/cdn/chunks/chunk.2RIKRQ4D.js +0 -19
- package/cdn/chunks/chunk.2RWUR2JL.js +0 -2546
- package/cdn/chunks/chunk.2TQCFJVQ.js +0 -29
- package/cdn/chunks/chunk.3256UFRN.js +0 -19
- package/cdn/chunks/chunk.37QVOESQ.js +0 -29
- package/cdn/chunks/chunk.3INLH7LI.js +0 -19
- package/cdn/chunks/chunk.3PO7VXAW.js +0 -138
- package/cdn/chunks/chunk.3TFI26OB.js +0 -49
- package/cdn/chunks/chunk.3VHEYP2M.js +0 -92
- package/cdn/chunks/chunk.3VP3WQPD.js +0 -364
- package/cdn/chunks/chunk.4ANCA534.js +0 -19
- package/cdn/chunks/chunk.4IZ5QWCL.js +0 -592
- package/cdn/chunks/chunk.4QPOAJXP.js +0 -29
- package/cdn/chunks/chunk.4RKSH72J.js +0 -19
- package/cdn/chunks/chunk.4WUKLOQ3.js +0 -36
- package/cdn/chunks/chunk.4WZ65Q23.js +0 -74
- package/cdn/chunks/chunk.53W5YWTO.js +0 -158
- package/cdn/chunks/chunk.55WRSCJY.js +0 -978
- package/cdn/chunks/chunk.57DIZPDI.js +0 -29
- package/cdn/chunks/chunk.5DHLUBMH.js +0 -19
- package/cdn/chunks/chunk.5GXIKSYC.js +0 -657
- package/cdn/chunks/chunk.5JPWHGTQ.js +0 -29
- package/cdn/chunks/chunk.5LFN6KT3.js +0 -416
- package/cdn/chunks/chunk.5TICVM3P.js +0 -19
- package/cdn/chunks/chunk.5YAN7WHN.js +0 -394
- package/cdn/chunks/chunk.6CELGCID.js +0 -155
- package/cdn/chunks/chunk.6DHAZ6DZ.js +0 -29
- package/cdn/chunks/chunk.6T4SSHKA.js +0 -32
- package/cdn/chunks/chunk.6UXUUG3J.js +0 -29
- package/cdn/chunks/chunk.6YTKJIW2.js +0 -443
- package/cdn/chunks/chunk.6ZQMKTYA.js +0 -19
- package/cdn/chunks/chunk.72ZIJXV2.js +0 -29
- package/cdn/chunks/chunk.7HFVI6VA.js +0 -29
- package/cdn/chunks/chunk.7NVKHDK7.js +0 -34
- package/cdn/chunks/chunk.7P4E5GVO.js +0 -78
- package/cdn/chunks/chunk.ABNQAMWH.js +0 -29
- package/cdn/chunks/chunk.ACQ5NFZO.js +0 -371
- package/cdn/chunks/chunk.AKEAFDB3.js +0 -128
- package/cdn/chunks/chunk.ALANM6HV.js +0 -29
- package/cdn/chunks/chunk.APRNEJDQ.js +0 -230
- package/cdn/chunks/chunk.AXFNHOSM.js +0 -377
- package/cdn/chunks/chunk.B2HOZPO6.js +0 -56
- package/cdn/chunks/chunk.B2YIDU6U.js +0 -29
- package/cdn/chunks/chunk.B42N7DPY.js +0 -30
- package/cdn/chunks/chunk.BD4TYZWL.js +0 -29
- package/cdn/chunks/chunk.BPF4UJ52.js +0 -134
- package/cdn/chunks/chunk.BRQN3F2C.js +0 -29
- package/cdn/chunks/chunk.BYQ7ST2W.js +0 -36
- package/cdn/chunks/chunk.BZE5ZJ7T.js +0 -123
- package/cdn/chunks/chunk.C3CXYQKB.js +0 -33
- package/cdn/chunks/chunk.CCXE3ZLE.js +0 -19
- package/cdn/chunks/chunk.CFT6E372.js +0 -19
- package/cdn/chunks/chunk.CLNHUTGL.js +0 -29
- package/cdn/chunks/chunk.CONT7QQX.js +0 -29
- package/cdn/chunks/chunk.CROGJ6YF.js +0 -128
- package/cdn/chunks/chunk.DDBQOGIU.js +0 -19
- package/cdn/chunks/chunk.DIPU6IVU.js +0 -19
- package/cdn/chunks/chunk.DLCPWY67.js +0 -190
- package/cdn/chunks/chunk.DVMT42BQ.js +0 -19
- package/cdn/chunks/chunk.DZ3OSXLA.js +0 -4735
- package/cdn/chunks/chunk.E2ZS4UCS.js +0 -32
- package/cdn/chunks/chunk.EBQRJIE5.js +0 -60
- package/cdn/chunks/chunk.ECFWW5YT.js +0 -93
- package/cdn/chunks/chunk.EQS2M33G.js +0 -19
- package/cdn/chunks/chunk.EQWU6TVV.js +0 -32
- package/cdn/chunks/chunk.F3CODGFM.js +0 -616
- package/cdn/chunks/chunk.F3JEW22I.js +0 -231
- package/cdn/chunks/chunk.FDRGXPIF.js +0 -19
- package/cdn/chunks/chunk.FJCZ7YZ4.js +0 -33
- package/cdn/chunks/chunk.FKBBPBGA.js +0 -19
- package/cdn/chunks/chunk.FPUUQBZB.js +0 -19
- package/cdn/chunks/chunk.FQM5CI7F.js +0 -113
- package/cdn/chunks/chunk.G352BK7Q.js +0 -60
- package/cdn/chunks/chunk.G5NIUPHF.js +0 -33
- package/cdn/chunks/chunk.GOVZIEZD.js +0 -19
- package/cdn/chunks/chunk.GP723IDG.js +0 -36
- package/cdn/chunks/chunk.GWUHRDWF.js +0 -29
- package/cdn/chunks/chunk.GX64WIPT.js +0 -19
- package/cdn/chunks/chunk.HB4UBTFX.js +0 -68
- package/cdn/chunks/chunk.HITOJASR.js +0 -19
- package/cdn/chunks/chunk.HLNDVCZM.js +0 -37
- package/cdn/chunks/chunk.HS75CIWK.js +0 -276
- package/cdn/chunks/chunk.HSMS2PHV.js +0 -32
- package/cdn/chunks/chunk.HT4VXYXY.js +0 -37
- package/cdn/chunks/chunk.I4ACRUKD.js +0 -293
- package/cdn/chunks/chunk.I4SNTEYK.js +0 -19
- package/cdn/chunks/chunk.I5LNSGSR.js +0 -33
- package/cdn/chunks/chunk.I7HUTXHU.js +0 -479
- package/cdn/chunks/chunk.IQFL4UVO.js +0 -904
- package/cdn/chunks/chunk.ISZYSNVF.js +0 -672
- package/cdn/chunks/chunk.ITHFDF55.js +0 -278
- package/cdn/chunks/chunk.ITK2GQEZ.js +0 -1002
- package/cdn/chunks/chunk.IUZGXCFV.js +0 -36
- package/cdn/chunks/chunk.IYPNNII2.js +0 -29
- package/cdn/chunks/chunk.J35CXQX4.js +0 -35
- package/cdn/chunks/chunk.JKELJKO6.js +0 -110
- package/cdn/chunks/chunk.JLBHVHJZ.js +0 -19
- package/cdn/chunks/chunk.JXSV4XD4.js +0 -303
- package/cdn/chunks/chunk.KD5JYCKL.js +0 -543
- package/cdn/chunks/chunk.KJPGPJFX.js +0 -71
- package/cdn/chunks/chunk.KKPE3KJC.js +0 -19
- package/cdn/chunks/chunk.KL5PSKJ3.js +0 -19
- package/cdn/chunks/chunk.KNVPVYYS.js +0 -29
- package/cdn/chunks/chunk.KQHMVEVR.js +0 -19
- package/cdn/chunks/chunk.KS4PDYVB.js +0 -19
- package/cdn/chunks/chunk.KTNBBFGU.js +0 -37
- package/cdn/chunks/chunk.LA3ELYF2.js +0 -19
- package/cdn/chunks/chunk.LBDJC6N7.js +0 -162
- package/cdn/chunks/chunk.LH3S2EVK.js +0 -82
- package/cdn/chunks/chunk.LIPFUNWP.js +0 -38
- package/cdn/chunks/chunk.LYBKYZKO.js +0 -29
- package/cdn/chunks/chunk.LZVY5UIW.js +0 -33
- package/cdn/chunks/chunk.ME4DWNTC.js +0 -32
- package/cdn/chunks/chunk.MHWLH2X2.js +0 -32
- package/cdn/chunks/chunk.MHZAMQFI.js +0 -19
- package/cdn/chunks/chunk.MMXLHYWT.js +0 -19
- package/cdn/chunks/chunk.MY2CZEMK.js +0 -19
- package/cdn/chunks/chunk.N6FMFL73.js +0 -19
- package/cdn/chunks/chunk.NDOUQ2RH.js +0 -266
- package/cdn/chunks/chunk.NEYV3XJQ.js +0 -35
- package/cdn/chunks/chunk.NK2VQYCD.js +0 -19
- package/cdn/chunks/chunk.NLGMTKSB.js +0 -29
- package/cdn/chunks/chunk.NQAEXDQX.js +0 -19
- package/cdn/chunks/chunk.O4MJ2UGE.js +0 -104
- package/cdn/chunks/chunk.OF2T7LUM.js +0 -537
- package/cdn/chunks/chunk.OF6PNEJD.js +0 -32
- package/cdn/chunks/chunk.OIH73AFM.js +0 -234
- package/cdn/chunks/chunk.OLXQEEYH.js +0 -19
- package/cdn/chunks/chunk.OO4PLPM5.js +0 -35
- package/cdn/chunks/chunk.OSW2S3HY.js +0 -29
- package/cdn/chunks/chunk.OZNAXXFV.js +0 -83
- package/cdn/chunks/chunk.P2RIMCQC.js +0 -19
- package/cdn/chunks/chunk.P5SSS2YU.js +0 -19
- package/cdn/chunks/chunk.PC5Q3XD2.js +0 -32
- package/cdn/chunks/chunk.PCBCYIUF.js +0 -359
- package/cdn/chunks/chunk.PEVHCSWS.js +0 -259
- package/cdn/chunks/chunk.PF6HHPHM.js +0 -1691
- package/cdn/chunks/chunk.PGBGELPU.js +0 -19
- package/cdn/chunks/chunk.Q37FMCC3.js +0 -19
- package/cdn/chunks/chunk.QBJMGAXS.js +0 -36
- package/cdn/chunks/chunk.QDBZMPOJ.js +0 -34
- package/cdn/chunks/chunk.QE27S3FT.js +0 -99
- package/cdn/chunks/chunk.QIF6JAMD.js +0 -32
- package/cdn/chunks/chunk.QK5H576L.js +0 -19
- package/cdn/chunks/chunk.QKRKOCEG.js +0 -19
- package/cdn/chunks/chunk.QOCVNKUN.js +0 -19
- package/cdn/chunks/chunk.QU5D626U.js +0 -2785
- package/cdn/chunks/chunk.QUHOX7DO.js +0 -132
- package/cdn/chunks/chunk.QZ742FD3.js +0 -136
- package/cdn/chunks/chunk.R22WNQCM.js +0 -47
- package/cdn/chunks/chunk.RE2CJ7YH.js +0 -19
- package/cdn/chunks/chunk.RFMVAVIU.js +0 -19
- package/cdn/chunks/chunk.S5GCTGG7.js +0 -1197
- package/cdn/chunks/chunk.S7XSFZJS.js +0 -19
- package/cdn/chunks/chunk.SDL6C2BY.js +0 -29
- package/cdn/chunks/chunk.SG346VAC.js +0 -19
- package/cdn/chunks/chunk.SJJJM2KO.js +0 -1975
- package/cdn/chunks/chunk.SOZG2CSG.js +0 -35
- package/cdn/chunks/chunk.SVX6KHIC.js +0 -19
- package/cdn/chunks/chunk.SXAPJEFP.js +0 -19
- package/cdn/chunks/chunk.T3ZZETWY.js +0 -29
- package/cdn/chunks/chunk.T77IGYGR.js +0 -277
- package/cdn/chunks/chunk.T77TS7NG.js +0 -29
- package/cdn/chunks/chunk.TAGA7EGX.js +0 -348
- package/cdn/chunks/chunk.TINZXT55.js +0 -367
- package/cdn/chunks/chunk.TKLGDSNB.js +0 -32
- package/cdn/chunks/chunk.TOZVAUH5.js +0 -32
- package/cdn/chunks/chunk.TTA6HRE7.js +0 -195
- package/cdn/chunks/chunk.TUA7GHST.js +0 -41
- package/cdn/chunks/chunk.TYYRLI6T.js +0 -224
- package/cdn/chunks/chunk.UCEUICXD.js +0 -32
- package/cdn/chunks/chunk.UTIEUVYR.js +0 -29
- package/cdn/chunks/chunk.UYJBFTUW.js +0 -32
- package/cdn/chunks/chunk.V2BU4ULP.js +0 -19
- package/cdn/chunks/chunk.VPJPXQTQ.js +0 -86
- package/cdn/chunks/chunk.VPKGODYM.js +0 -29
- package/cdn/chunks/chunk.VTAXQ44I.js +0 -19
- package/cdn/chunks/chunk.VVRBAIQH.js +0 -298
- package/cdn/chunks/chunk.W3V3JBEX.js +0 -610
- package/cdn/chunks/chunk.WBDZUWI4.js +0 -39
- package/cdn/chunks/chunk.WBPEC2QG.js +0 -30
- package/cdn/chunks/chunk.WE64K3PB.js +0 -19
- package/cdn/chunks/chunk.WGWOVD57.js +0 -19
- package/cdn/chunks/chunk.WN3NVSSV.js +0 -19
- package/cdn/chunks/chunk.WTQZTCXG.js +0 -29
- package/cdn/chunks/chunk.X3EOJIS4.js +0 -19
- package/cdn/chunks/chunk.XIZSOVIX.js +0 -538
- package/cdn/chunks/chunk.XUSCJW4Z.js +0 -19
- package/cdn/chunks/chunk.XXKTPJUJ.js +0 -32
- package/cdn/chunks/chunk.Y24AJWBF.js +0 -188
- package/cdn/chunks/chunk.Y3EV6C6T.js +0 -27
- package/cdn/chunks/chunk.Y47VOCWI.js +0 -19
- package/cdn/chunks/chunk.Y4AR4VW3.js +0 -19
- package/cdn/chunks/chunk.YERKS624.js +0 -478
- package/cdn/chunks/chunk.YLAYVE6G.js +0 -19
- package/cdn/chunks/chunk.YLO4GLWT.js +0 -29
- package/cdn/chunks/chunk.YMLP3KAW.js +0 -56075
- package/cdn/chunks/chunk.YNFYX3XA.js +0 -524
- package/cdn/chunks/chunk.YPPH22LC.js +0 -168
- package/cdn/chunks/chunk.YVFRSQES.js +0 -357
- package/cdn/chunks/chunk.Z4Q5VENB.js +0 -106
- package/cdn/chunks/chunk.Z7XRAEG4.js +0 -631
- package/cdn/chunks/chunk.ZAECK6UU.js +0 -19
- package/cdn/chunks/chunk.ZAL2LRND.js +0 -310
- package/cdn/chunks/chunk.ZB55PYP4.js +0 -35
- package/cdn/chunks/chunk.ZB55WF62.js +0 -19
- package/cdn/chunks/chunk.ZBPPZNDS.js +0 -19
- package/cdn/chunks/chunk.ZEF6TAO2.js +0 -925
- package/cdn/chunks/chunk.ZK2VIBZG.js +0 -19
- package/cdn/chunks/chunk.ZPKUIM2L.js +0 -151
- package/cdn/chunks/chunk.ZX757SO6.js +0 -29
- package/cdn/chunks/chunk.ZZY7TXJ7.js +0 -19
- package/dist/chunks/chunk.23NZQGRT.js +0 -26
- package/dist/chunks/chunk.25LMYNO6.js +0 -1
- package/dist/chunks/chunk.2AFZ4ARB.js +0 -1
- package/dist/chunks/chunk.2GLLXBJI.js +0 -1
- package/dist/chunks/chunk.2HEYUFOC.js +0 -1
- package/dist/chunks/chunk.2HRPOSAW.js +0 -5
- package/dist/chunks/chunk.2HYEGGTW.js +0 -17
- package/dist/chunks/chunk.2JC7JHZQ.js +0 -1
- package/dist/chunks/chunk.2RX4X5D6.js +0 -26
- package/dist/chunks/chunk.34NWE6KP.js +0 -1
- package/dist/chunks/chunk.35CT445R.js +0 -1
- package/dist/chunks/chunk.36DCFNTD.js +0 -24
- package/dist/chunks/chunk.37FNACA5.js +0 -1
- package/dist/chunks/chunk.3E7UOH46.js +0 -148
- package/dist/chunks/chunk.3EIUZOLJ.js +0 -1
- package/dist/chunks/chunk.3KWNJCLE.js +0 -1
- package/dist/chunks/chunk.3QTUEAKY.js +0 -1
- package/dist/chunks/chunk.4EHWIMWP.js +0 -65
- package/dist/chunks/chunk.4GSSSX5K.js +0 -1
- package/dist/chunks/chunk.4INVPZ4B.js +0 -1
- package/dist/chunks/chunk.4RSDXTE3.js +0 -1
- package/dist/chunks/chunk.5AGEL4Y7.js +0 -1
- package/dist/chunks/chunk.5AY4IN2U.js +0 -64
- package/dist/chunks/chunk.5ELCXOSZ.js +0 -20
- package/dist/chunks/chunk.5J4GWMK2.js +0 -5
- package/dist/chunks/chunk.5LCXFZBL.js +0 -1
- package/dist/chunks/chunk.5PUJ3GGM.js +0 -1
- package/dist/chunks/chunk.5WUDBUFM.js +0 -121
- package/dist/chunks/chunk.6AE62EEA.js +0 -1
- package/dist/chunks/chunk.6KBVEVQN.js +0 -1
- package/dist/chunks/chunk.6XPB3NC3.js +0 -1
- package/dist/chunks/chunk.723PPKYV.js +0 -100
- package/dist/chunks/chunk.72J3EWDY.js +0 -1
- package/dist/chunks/chunk.7DH5DXSD.js +0 -1
- package/dist/chunks/chunk.7DL3RYTX.js +0 -1
- package/dist/chunks/chunk.7NEQBVYI.js +0 -1
- package/dist/chunks/chunk.7WW4MTNQ.js +0 -1
- package/dist/chunks/chunk.7XLMISB3.js +0 -4
- package/dist/chunks/chunk.ACP4UQR3.js +0 -1
- package/dist/chunks/chunk.AD4FEYOU.js +0 -1
- package/dist/chunks/chunk.AE7IKEFE.js +0 -154
- package/dist/chunks/chunk.AEWY4FNM.js +0 -572
- package/dist/chunks/chunk.AHQRG65K.js +0 -350
- package/dist/chunks/chunk.ANQY2H66.js +0 -1
- package/dist/chunks/chunk.ASPHVAUZ.js +0 -1
- package/dist/chunks/chunk.ATX7REBU.js +0 -1
- package/dist/chunks/chunk.AVGVZ2NM.js +0 -1
- package/dist/chunks/chunk.AYLNZ7NR.js +0 -1
- package/dist/chunks/chunk.BDNESHTZ.js +0 -1
- package/dist/chunks/chunk.BHKRAHOT.js +0 -1
- package/dist/chunks/chunk.BKHW3UZ4.js +0 -300
- package/dist/chunks/chunk.BLDN6BDB.js +0 -1
- package/dist/chunks/chunk.BZ6AZX3T.js +0 -37
- package/dist/chunks/chunk.C7IF2K5M.js +0 -11
- package/dist/chunks/chunk.CJSMISIQ.js +0 -1
- package/dist/chunks/chunk.D7IDH3Z5.js +0 -1
- package/dist/chunks/chunk.DBE5GOUX.js +0 -1
- package/dist/chunks/chunk.DDYKQXQN.js +0 -1
- package/dist/chunks/chunk.DFMIH7QL.js +0 -1
- package/dist/chunks/chunk.DGQ7WR3U.js +0 -113
- package/dist/chunks/chunk.DJ2CW4TV.js +0 -1
- package/dist/chunks/chunk.DKJTLO5D.js +0 -75
- package/dist/chunks/chunk.DNBYCX26.js +0 -25
- package/dist/chunks/chunk.DXHQDWDZ.js +0 -1
- package/dist/chunks/chunk.DXT5TH6L.js +0 -1
- package/dist/chunks/chunk.E5WOJ3PK.js +0 -2
- package/dist/chunks/chunk.EIG27QDJ.js +0 -1
- package/dist/chunks/chunk.ENJASLZC.js +0 -8
- package/dist/chunks/chunk.ENMFKETX.js +0 -1
- package/dist/chunks/chunk.F2SOOHUF.js +0 -74
- package/dist/chunks/chunk.F4CXK4DV.js +0 -1
- package/dist/chunks/chunk.FFPGMQBG.js +0 -1
- package/dist/chunks/chunk.FICO2IEF.js +0 -1
- package/dist/chunks/chunk.FIQBMJKB.js +0 -1
- package/dist/chunks/chunk.FLCVB7ZG.js +0 -1
- package/dist/chunks/chunk.FQJUY2WN.js +0 -280
- package/dist/chunks/chunk.FQLSPKU6.js +0 -1
- package/dist/chunks/chunk.FSWZFV6X.js +0 -1
- package/dist/chunks/chunk.FWGKOYZ6.js +0 -1
- package/dist/chunks/chunk.FWRWPBEA.js +0 -1
- package/dist/chunks/chunk.G5O2UXZR.js +0 -1
- package/dist/chunks/chunk.GTIKA77C.js +0 -47
- package/dist/chunks/chunk.H2CFP3PQ.js +0 -11
- package/dist/chunks/chunk.H6EXXHNP.js +0 -20
- package/dist/chunks/chunk.H7OSGJDN.js +0 -1
- package/dist/chunks/chunk.HHF3GJJX.js +0 -22
- package/dist/chunks/chunk.HJCUJPX6.js +0 -1
- package/dist/chunks/chunk.HPNZH3Q4.js +0 -1
- package/dist/chunks/chunk.HQJSNJAI.js +0 -1
- package/dist/chunks/chunk.HSWO7GTZ.js +0 -1
- package/dist/chunks/chunk.HWRLJA2Z.js +0 -1
- package/dist/chunks/chunk.HZOOFT3Z.js +0 -1
- package/dist/chunks/chunk.IBLMNONH.js +0 -1
- package/dist/chunks/chunk.IEU7YQG3.js +0 -1
- package/dist/chunks/chunk.IOKUMDKC.js +0 -33
- package/dist/chunks/chunk.IUULTT4O.js +0 -1
- package/dist/chunks/chunk.J2P5LTLJ.js +0 -1
- package/dist/chunks/chunk.JL7WMXDP.js +0 -1
- package/dist/chunks/chunk.JO2E3V6R.js +0 -1
- package/dist/chunks/chunk.JO2SKBWZ.js +0 -1
- package/dist/chunks/chunk.JQMXDI64.js +0 -1
- package/dist/chunks/chunk.JRVIE4XW.js +0 -1
- package/dist/chunks/chunk.JYAJJ7JB.js +0 -299
- package/dist/chunks/chunk.JYD4MT2X.js +0 -1
- package/dist/chunks/chunk.JYIZZOBA.js +0 -35
- package/dist/chunks/chunk.K5ZNB5TT.js +0 -48
- package/dist/chunks/chunk.KA7VO4CD.js +0 -80
- package/dist/chunks/chunk.KF74PACJ.js +0 -1
- package/dist/chunks/chunk.KHWI5BDR.js +0 -43
- package/dist/chunks/chunk.KQBQJYII.js +0 -1
- package/dist/chunks/chunk.KQJYCLV5.js +0 -1
- package/dist/chunks/chunk.KRQB5VTT.js +0 -1
- package/dist/chunks/chunk.L5AER4HL.js +0 -111
- package/dist/chunks/chunk.L7UI364Z.js +0 -985
- package/dist/chunks/chunk.LJ5UQBNV.js +0 -1
- package/dist/chunks/chunk.LLARUBYC.js +0 -1
- package/dist/chunks/chunk.LN3N6D2E.js +0 -1
- package/dist/chunks/chunk.LO72HFZE.js +0 -1
- package/dist/chunks/chunk.LURRF4YZ.js +0 -67
- package/dist/chunks/chunk.LXQROJE2.js +0 -354
- package/dist/chunks/chunk.M3B5KKI4.js +0 -1
- package/dist/chunks/chunk.M3MZFHHD.js +0 -1
- package/dist/chunks/chunk.MBS3RFJM.js +0 -6
- package/dist/chunks/chunk.MEXCND7E.js +0 -1
- package/dist/chunks/chunk.MGTW3UKR.js +0 -6
- package/dist/chunks/chunk.MHUPHWBX.js +0 -1
- package/dist/chunks/chunk.MJGXOZUM.js +0 -1
- package/dist/chunks/chunk.MMI6AZ5X.js +0 -1
- package/dist/chunks/chunk.MOLG5UGC.js +0 -780
- package/dist/chunks/chunk.MRQ3S2IU.js +0 -1
- package/dist/chunks/chunk.MSVNGRIO.js +0 -125
- package/dist/chunks/chunk.MYLEMOHI.js +0 -1
- package/dist/chunks/chunk.N72KUAUG.js +0 -1
- package/dist/chunks/chunk.NIUAZKZN.js +0 -1
- package/dist/chunks/chunk.NLDEYHPE.js +0 -1
- package/dist/chunks/chunk.NQKLAIZQ.js +0 -145
- package/dist/chunks/chunk.NRZIMG2K.js +0 -1
- package/dist/chunks/chunk.NUODI7BE.js +0 -4
- package/dist/chunks/chunk.OCFFVU5H.js +0 -1
- package/dist/chunks/chunk.OCSCHASD.js +0 -1
- package/dist/chunks/chunk.OGRY2QIP.js +0 -35
- package/dist/chunks/chunk.OM5CHL6K.js +0 -9
- package/dist/chunks/chunk.OSPWVWNF.js +0 -1
- package/dist/chunks/chunk.OWCIKVBX.js +0 -1
- package/dist/chunks/chunk.P2B7S4YB.js +0 -1
- package/dist/chunks/chunk.P2NDCMFN.js +0 -1
- package/dist/chunks/chunk.P34K4PMK.js +0 -1
- package/dist/chunks/chunk.PB4GFMCH.js +0 -41
- package/dist/chunks/chunk.PLVS2WBF.js +0 -43
- package/dist/chunks/chunk.PSIIGWKB.js +0 -1
- package/dist/chunks/chunk.Q6BMULA4.js +0 -1
- package/dist/chunks/chunk.QM7VCIXI.js +0 -1
- package/dist/chunks/chunk.QMJFLZ67.js +0 -30
- package/dist/chunks/chunk.QVWZX4VS.js +0 -157
- package/dist/chunks/chunk.RH4Y7BEE.js +0 -176
- package/dist/chunks/chunk.RL342FCW.js +0 -1
- package/dist/chunks/chunk.RPAY7BUI.js +0 -16
- package/dist/chunks/chunk.RRIGLMOB.js +0 -1
- package/dist/chunks/chunk.RRKWNEL7.js +0 -13
- package/dist/chunks/chunk.RVUFNTS3.js +0 -1
- package/dist/chunks/chunk.RXOHRFRL.js +0 -1
- package/dist/chunks/chunk.S3GPO3V7.js +0 -61
- package/dist/chunks/chunk.S5NYSCGF.js +0 -1
- package/dist/chunks/chunk.S775HGVI.js +0 -99
- package/dist/chunks/chunk.S77XG6XL.js +0 -1
- package/dist/chunks/chunk.SDHMCRSG.js +0 -27
- package/dist/chunks/chunk.SEM4QPEU.js +0 -1
- package/dist/chunks/chunk.SJAXMDBS.js +0 -1
- package/dist/chunks/chunk.SJKQOS3L.js +0 -1
- package/dist/chunks/chunk.STLGBPK5.js +0 -1
- package/dist/chunks/chunk.SUFVBKJY.js +0 -62
- package/dist/chunks/chunk.T2CPBC4R.js +0 -1
- package/dist/chunks/chunk.TAQ6A3B7.js +0 -2
- package/dist/chunks/chunk.TCEAZ4JD.js +0 -1
- package/dist/chunks/chunk.THEACYHF.js +0 -1198
- package/dist/chunks/chunk.TO3S7ZON.js +0 -39
- package/dist/chunks/chunk.TO4KVUBA.js +0 -1
- package/dist/chunks/chunk.TWIM575W.js +0 -1
- package/dist/chunks/chunk.TWLFGEFK.js +0 -55
- package/dist/chunks/chunk.UMD3436Z.js +0 -12
- package/dist/chunks/chunk.UU4IVFR3.js +0 -1
- package/dist/chunks/chunk.UV2UYKDE.js +0 -8
- package/dist/chunks/chunk.V73XUHPZ.js +0 -23
- package/dist/chunks/chunk.VAQBINGF.js +0 -1
- package/dist/chunks/chunk.VCBTYTPZ.js +0 -1
- package/dist/chunks/chunk.VFKKJ5TJ.js +0 -9
- package/dist/chunks/chunk.VWLW5SEW.js +0 -14
- package/dist/chunks/chunk.VZB2WNDD.js +0 -30
- package/dist/chunks/chunk.VZFZW3SJ.js +0 -1
- package/dist/chunks/chunk.VZJ3CHHD.js +0 -1
- package/dist/chunks/chunk.W56HBYGO.js +0 -1
- package/dist/chunks/chunk.W5WASIVZ.js +0 -1
- package/dist/chunks/chunk.WNWQ5G7U.js +0 -1
- package/dist/chunks/chunk.WPQSWSZ4.js +0 -1
- package/dist/chunks/chunk.WUAWBIQL.js +0 -1
- package/dist/chunks/chunk.WYT63XP5.js +0 -55
- package/dist/chunks/chunk.WZ5IMSXC.js +0 -1
- package/dist/chunks/chunk.XB4MSOLC.js +0 -1
- package/dist/chunks/chunk.XIKMUJ5L.js +0 -1
- package/dist/chunks/chunk.XOXJ7JGG.js +0 -1
- package/dist/chunks/chunk.YDZMQWAK.js +0 -1
- package/dist/chunks/chunk.YJ5Y66AW.js +0 -1
- package/dist/chunks/chunk.YO5HSONL.js +0 -41
- package/dist/chunks/chunk.YXMQUC6E.js +0 -1
- package/dist/chunks/chunk.YYB5UKM4.js +0 -122
- package/dist/chunks/chunk.Z2JKVUIQ.js +0 -1
- package/dist/chunks/chunk.Z33BUAHI.js +0 -1
- package/dist/chunks/chunk.ZHYG6CFC.js +0 -19
- package/dist/chunks/chunk.ZKBWQ2BW.js +0 -1
- package/dist/chunks/chunk.ZMFVMONQ.js +0 -1
- package/dist/chunks/chunk.ZNXXCV5Y.js +0 -1
- package/dist/chunks/chunk.ZSH7I5S5.js +0 -55
- package/dist/chunks/chunk.ZVWBJCKO.js +0 -1
- package/dist/terra_ui_components-0.0.201-py3-none-any.whl +0 -0
- package/dist/terra_ui_components-0.0.201.tar.gz +0 -0
|
@@ -0,0 +1,1697 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Circle_default,
|
|
3
|
+
Control_default,
|
|
4
|
+
Feature_default,
|
|
5
|
+
Fill_default,
|
|
6
|
+
GeometryCollection_default,
|
|
7
|
+
LineString_default,
|
|
8
|
+
MapBrowserEventType_default,
|
|
9
|
+
MapBrowserEvent_default,
|
|
10
|
+
MultiLineString_default,
|
|
11
|
+
MultiPoint_default,
|
|
12
|
+
MultiPolygon_default,
|
|
13
|
+
Pointer_default,
|
|
14
|
+
Property_default,
|
|
15
|
+
Stroke_default,
|
|
16
|
+
Style_default,
|
|
17
|
+
Vector_default,
|
|
18
|
+
Vector_default2,
|
|
19
|
+
always,
|
|
20
|
+
createEditingStyle,
|
|
21
|
+
never,
|
|
22
|
+
noModifierKeys,
|
|
23
|
+
shiftKeyOnly
|
|
24
|
+
} from "./chunk.M6QQY2ST.js";
|
|
25
|
+
import {
|
|
26
|
+
Point_default,
|
|
27
|
+
Polygon_default,
|
|
28
|
+
getStrideForLayout
|
|
29
|
+
} from "./chunk.IK2SGPIW.js";
|
|
30
|
+
import {
|
|
31
|
+
EventType_default,
|
|
32
|
+
Event_default,
|
|
33
|
+
FALSE,
|
|
34
|
+
TRUE,
|
|
35
|
+
boundingExtent,
|
|
36
|
+
clamp,
|
|
37
|
+
distance,
|
|
38
|
+
fromUserCoordinate,
|
|
39
|
+
getBottomLeft,
|
|
40
|
+
getBottomRight,
|
|
41
|
+
getTopLeft,
|
|
42
|
+
getTopRight,
|
|
43
|
+
getUserProjection,
|
|
44
|
+
squaredDistance,
|
|
45
|
+
squaredDistance2,
|
|
46
|
+
toFixed,
|
|
47
|
+
transform,
|
|
48
|
+
transformExtent
|
|
49
|
+
} from "./chunk.RCPXD7AS.js";
|
|
50
|
+
import {
|
|
51
|
+
LatLngBounds
|
|
52
|
+
} from "./chunk.G4A6CMDQ.js";
|
|
53
|
+
import {
|
|
54
|
+
LatLng
|
|
55
|
+
} from "./chunk.FNBRNK7F.js";
|
|
56
|
+
import {
|
|
57
|
+
__privateAdd,
|
|
58
|
+
__privateGet,
|
|
59
|
+
__privateMethod,
|
|
60
|
+
__privateSet,
|
|
61
|
+
__spreadProps,
|
|
62
|
+
__spreadValues,
|
|
63
|
+
init_buffer,
|
|
64
|
+
init_dirname,
|
|
65
|
+
init_process
|
|
66
|
+
} from "./chunk.ZEOVK2FE.js";
|
|
67
|
+
|
|
68
|
+
// src/components/map/controls/draw-toolbar.control.ts
|
|
69
|
+
init_dirname();
|
|
70
|
+
init_buffer();
|
|
71
|
+
init_process();
|
|
72
|
+
|
|
73
|
+
// node_modules/ol/control.js
|
|
74
|
+
init_dirname();
|
|
75
|
+
init_buffer();
|
|
76
|
+
init_process();
|
|
77
|
+
|
|
78
|
+
// node_modules/ol/interaction.js
|
|
79
|
+
init_dirname();
|
|
80
|
+
init_buffer();
|
|
81
|
+
init_process();
|
|
82
|
+
|
|
83
|
+
// node_modules/ol/interaction/Draw.js
|
|
84
|
+
init_dirname();
|
|
85
|
+
init_buffer();
|
|
86
|
+
init_process();
|
|
87
|
+
|
|
88
|
+
// node_modules/ol/interaction/tracing.js
|
|
89
|
+
init_dirname();
|
|
90
|
+
init_buffer();
|
|
91
|
+
init_process();
|
|
92
|
+
function getCoordinate(coordinates, index) {
|
|
93
|
+
const count = coordinates.length;
|
|
94
|
+
if (index < 0) {
|
|
95
|
+
return coordinates[index + count];
|
|
96
|
+
}
|
|
97
|
+
if (index >= count) {
|
|
98
|
+
return coordinates[index - count];
|
|
99
|
+
}
|
|
100
|
+
return coordinates[index];
|
|
101
|
+
}
|
|
102
|
+
function interpolateCoordinate(coordinates, index) {
|
|
103
|
+
const count = coordinates.length;
|
|
104
|
+
let startIndex = Math.floor(index);
|
|
105
|
+
const along = index - startIndex;
|
|
106
|
+
if (startIndex >= count) {
|
|
107
|
+
startIndex -= count;
|
|
108
|
+
} else if (startIndex < 0) {
|
|
109
|
+
startIndex += count;
|
|
110
|
+
}
|
|
111
|
+
let endIndex = startIndex + 1;
|
|
112
|
+
if (endIndex >= count) {
|
|
113
|
+
endIndex -= count;
|
|
114
|
+
}
|
|
115
|
+
const start = coordinates[startIndex];
|
|
116
|
+
const x0 = start[0];
|
|
117
|
+
const y0 = start[1];
|
|
118
|
+
const end = coordinates[endIndex];
|
|
119
|
+
const dx = end[0] - x0;
|
|
120
|
+
const dy = end[1] - y0;
|
|
121
|
+
return [x0 + dx * along, y0 + dy * along];
|
|
122
|
+
}
|
|
123
|
+
var sharedUpdateInfo = {
|
|
124
|
+
index: -1,
|
|
125
|
+
endIndex: NaN,
|
|
126
|
+
closestTargetDistance: Infinity
|
|
127
|
+
};
|
|
128
|
+
function getTraceTargetUpdate(coordinate, traceState, map, snapTolerance) {
|
|
129
|
+
const x = coordinate[0];
|
|
130
|
+
const y = coordinate[1];
|
|
131
|
+
let closestTargetDistance = Infinity;
|
|
132
|
+
let newTargetIndex = -1;
|
|
133
|
+
let newEndIndex = NaN;
|
|
134
|
+
for (let targetIndex = 0; targetIndex < traceState.targets.length; ++targetIndex) {
|
|
135
|
+
const target = traceState.targets[targetIndex];
|
|
136
|
+
const coordinates = target.coordinates;
|
|
137
|
+
let minSegmentDistance = Infinity;
|
|
138
|
+
let endIndex;
|
|
139
|
+
for (let coordinateIndex = 0; coordinateIndex < coordinates.length - 1; ++coordinateIndex) {
|
|
140
|
+
const start = coordinates[coordinateIndex];
|
|
141
|
+
const end = coordinates[coordinateIndex + 1];
|
|
142
|
+
const rel = getPointSegmentRelationship(x, y, start, end);
|
|
143
|
+
if (rel.squaredDistance < minSegmentDistance) {
|
|
144
|
+
minSegmentDistance = rel.squaredDistance;
|
|
145
|
+
endIndex = coordinateIndex + rel.along;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (minSegmentDistance < closestTargetDistance) {
|
|
149
|
+
closestTargetDistance = minSegmentDistance;
|
|
150
|
+
if (target.ring && traceState.targetIndex === targetIndex) {
|
|
151
|
+
if (target.endIndex > target.startIndex) {
|
|
152
|
+
if (endIndex < target.startIndex) {
|
|
153
|
+
endIndex += coordinates.length;
|
|
154
|
+
}
|
|
155
|
+
} else if (target.endIndex < target.startIndex) {
|
|
156
|
+
if (endIndex > target.startIndex) {
|
|
157
|
+
endIndex -= coordinates.length;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
newEndIndex = endIndex;
|
|
162
|
+
newTargetIndex = targetIndex;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
const newTarget = traceState.targets[newTargetIndex];
|
|
166
|
+
let considerBothDirections = newTarget.ring;
|
|
167
|
+
if (traceState.targetIndex === newTargetIndex && considerBothDirections) {
|
|
168
|
+
const newCoordinate = interpolateCoordinate(
|
|
169
|
+
newTarget.coordinates,
|
|
170
|
+
newEndIndex
|
|
171
|
+
);
|
|
172
|
+
const pixel = map.getPixelFromCoordinate(newCoordinate);
|
|
173
|
+
const startPx = map.getPixelFromCoordinate(traceState.startCoord);
|
|
174
|
+
if (distance(pixel, startPx) > snapTolerance) {
|
|
175
|
+
considerBothDirections = false;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (considerBothDirections) {
|
|
179
|
+
const coordinates = newTarget.coordinates;
|
|
180
|
+
const count = coordinates.length;
|
|
181
|
+
const startIndex = newTarget.startIndex;
|
|
182
|
+
const endIndex = newEndIndex;
|
|
183
|
+
if (startIndex < endIndex) {
|
|
184
|
+
const forwardDistance = getCumulativeSquaredDistance(
|
|
185
|
+
coordinates,
|
|
186
|
+
startIndex,
|
|
187
|
+
endIndex
|
|
188
|
+
);
|
|
189
|
+
const reverseDistance = getCumulativeSquaredDistance(
|
|
190
|
+
coordinates,
|
|
191
|
+
startIndex,
|
|
192
|
+
endIndex - count
|
|
193
|
+
);
|
|
194
|
+
if (reverseDistance < forwardDistance) {
|
|
195
|
+
newEndIndex -= count;
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
const reverseDistance = getCumulativeSquaredDistance(
|
|
199
|
+
coordinates,
|
|
200
|
+
startIndex,
|
|
201
|
+
endIndex
|
|
202
|
+
);
|
|
203
|
+
const forwardDistance = getCumulativeSquaredDistance(
|
|
204
|
+
coordinates,
|
|
205
|
+
startIndex,
|
|
206
|
+
endIndex + count
|
|
207
|
+
);
|
|
208
|
+
if (forwardDistance < reverseDistance) {
|
|
209
|
+
newEndIndex += count;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
sharedUpdateInfo.index = newTargetIndex;
|
|
214
|
+
sharedUpdateInfo.endIndex = newEndIndex;
|
|
215
|
+
sharedUpdateInfo.closestTargetDistance = closestTargetDistance;
|
|
216
|
+
return sharedUpdateInfo;
|
|
217
|
+
}
|
|
218
|
+
function getTraceTargets(coordinate, features) {
|
|
219
|
+
const targets = [];
|
|
220
|
+
for (let i = 0; i < features.length; ++i) {
|
|
221
|
+
const feature = features[i];
|
|
222
|
+
const geometry = feature.getGeometry();
|
|
223
|
+
appendGeometryTraceTargets(coordinate, geometry, targets);
|
|
224
|
+
}
|
|
225
|
+
return targets;
|
|
226
|
+
}
|
|
227
|
+
function appendGeometryTraceTargets(coordinate, geometry, targets) {
|
|
228
|
+
if (geometry instanceof LineString_default) {
|
|
229
|
+
appendTraceTarget(coordinate, geometry.getCoordinates(), false, targets);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (geometry instanceof MultiLineString_default) {
|
|
233
|
+
const coordinates = geometry.getCoordinates();
|
|
234
|
+
for (let i = 0, ii = coordinates.length; i < ii; ++i) {
|
|
235
|
+
appendTraceTarget(coordinate, coordinates[i], false, targets);
|
|
236
|
+
}
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
if (geometry instanceof Polygon_default) {
|
|
240
|
+
const coordinates = geometry.getCoordinates();
|
|
241
|
+
for (let i = 0, ii = coordinates.length; i < ii; ++i) {
|
|
242
|
+
appendTraceTarget(coordinate, coordinates[i], true, targets);
|
|
243
|
+
}
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
if (geometry instanceof MultiPolygon_default) {
|
|
247
|
+
const polys = geometry.getCoordinates();
|
|
248
|
+
for (let i = 0, ii = polys.length; i < ii; ++i) {
|
|
249
|
+
const coordinates = polys[i];
|
|
250
|
+
for (let j = 0, jj = coordinates.length; j < jj; ++j) {
|
|
251
|
+
appendTraceTarget(coordinate, coordinates[j], true, targets);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
if (geometry instanceof GeometryCollection_default) {
|
|
257
|
+
const geometries = geometry.getGeometries();
|
|
258
|
+
for (let i = 0; i < geometries.length; ++i) {
|
|
259
|
+
appendGeometryTraceTargets(coordinate, geometries[i], targets);
|
|
260
|
+
}
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function appendTraceTarget(coordinate, coordinates, ring, targets) {
|
|
265
|
+
const x = coordinate[0];
|
|
266
|
+
const y = coordinate[1];
|
|
267
|
+
for (let i = 0, ii = coordinates.length - 1; i < ii; ++i) {
|
|
268
|
+
const start = coordinates[i];
|
|
269
|
+
const end = coordinates[i + 1];
|
|
270
|
+
const rel = getPointSegmentRelationship(x, y, start, end);
|
|
271
|
+
if (rel.squaredDistance === 0) {
|
|
272
|
+
const index = i + rel.along;
|
|
273
|
+
targets.push({
|
|
274
|
+
coordinates,
|
|
275
|
+
ring,
|
|
276
|
+
startIndex: index,
|
|
277
|
+
endIndex: index
|
|
278
|
+
});
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
function getSquaredDistance(a, b) {
|
|
284
|
+
return squaredDistance(a[0], a[1], b[0], b[1]);
|
|
285
|
+
}
|
|
286
|
+
function getCumulativeSquaredDistance(coordinates, startIndex, endIndex) {
|
|
287
|
+
let lowIndex, highIndex;
|
|
288
|
+
if (startIndex < endIndex) {
|
|
289
|
+
lowIndex = startIndex;
|
|
290
|
+
highIndex = endIndex;
|
|
291
|
+
} else {
|
|
292
|
+
lowIndex = endIndex;
|
|
293
|
+
highIndex = startIndex;
|
|
294
|
+
}
|
|
295
|
+
const lowWholeIndex = Math.ceil(lowIndex);
|
|
296
|
+
const highWholeIndex = Math.floor(highIndex);
|
|
297
|
+
if (lowWholeIndex > highWholeIndex) {
|
|
298
|
+
const start = interpolateCoordinate(coordinates, lowIndex);
|
|
299
|
+
const end = interpolateCoordinate(coordinates, highIndex);
|
|
300
|
+
return getSquaredDistance(start, end);
|
|
301
|
+
}
|
|
302
|
+
let sd = 0;
|
|
303
|
+
if (lowIndex < lowWholeIndex) {
|
|
304
|
+
const start = interpolateCoordinate(coordinates, lowIndex);
|
|
305
|
+
const end = getCoordinate(coordinates, lowWholeIndex);
|
|
306
|
+
sd += getSquaredDistance(start, end);
|
|
307
|
+
}
|
|
308
|
+
if (highWholeIndex < highIndex) {
|
|
309
|
+
const start = getCoordinate(coordinates, highWholeIndex);
|
|
310
|
+
const end = interpolateCoordinate(coordinates, highIndex);
|
|
311
|
+
sd += getSquaredDistance(start, end);
|
|
312
|
+
}
|
|
313
|
+
for (let i = lowWholeIndex; i < highWholeIndex - 1; ++i) {
|
|
314
|
+
const start = getCoordinate(coordinates, i);
|
|
315
|
+
const end = getCoordinate(coordinates, i + 1);
|
|
316
|
+
sd += getSquaredDistance(start, end);
|
|
317
|
+
}
|
|
318
|
+
return sd;
|
|
319
|
+
}
|
|
320
|
+
var sharedRel = { along: 0, squaredDistance: 0 };
|
|
321
|
+
function getPointSegmentRelationship(x, y, start, end) {
|
|
322
|
+
const x1 = start[0];
|
|
323
|
+
const y1 = start[1];
|
|
324
|
+
const x2 = end[0];
|
|
325
|
+
const y2 = end[1];
|
|
326
|
+
const dx = x2 - x1;
|
|
327
|
+
const dy = y2 - y1;
|
|
328
|
+
let along = 0;
|
|
329
|
+
let px = x1;
|
|
330
|
+
let py = y1;
|
|
331
|
+
if (dx !== 0 || dy !== 0) {
|
|
332
|
+
along = clamp(((x - x1) * dx + (y - y1) * dy) / (dx * dx + dy * dy), 0, 1);
|
|
333
|
+
px += dx * along;
|
|
334
|
+
py += dy * along;
|
|
335
|
+
}
|
|
336
|
+
sharedRel.along = along;
|
|
337
|
+
sharedRel.squaredDistance = toFixed(squaredDistance(x, y, px, py), 10);
|
|
338
|
+
return sharedRel;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// node_modules/ol/interaction/Draw.js
|
|
342
|
+
var DrawEventType = {
|
|
343
|
+
/**
|
|
344
|
+
* Triggered upon feature draw start
|
|
345
|
+
* @event DrawEvent#drawstart
|
|
346
|
+
* @api
|
|
347
|
+
*/
|
|
348
|
+
DRAWSTART: "drawstart",
|
|
349
|
+
/**
|
|
350
|
+
* Triggered upon feature draw end
|
|
351
|
+
* @event DrawEvent#drawend
|
|
352
|
+
* @api
|
|
353
|
+
*/
|
|
354
|
+
DRAWEND: "drawend",
|
|
355
|
+
/**
|
|
356
|
+
* Triggered upon feature draw abortion
|
|
357
|
+
* @event DrawEvent#drawabort
|
|
358
|
+
* @api
|
|
359
|
+
*/
|
|
360
|
+
DRAWABORT: "drawabort"
|
|
361
|
+
};
|
|
362
|
+
var DrawEvent = class extends Event_default {
|
|
363
|
+
/**
|
|
364
|
+
* @param {DrawEventType} type Type.
|
|
365
|
+
* @param {Feature} feature The feature drawn.
|
|
366
|
+
*/
|
|
367
|
+
constructor(type, feature) {
|
|
368
|
+
super(type);
|
|
369
|
+
this.feature = feature;
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
var Draw = class extends Pointer_default {
|
|
373
|
+
/**
|
|
374
|
+
* @param {Options} options Options.
|
|
375
|
+
*/
|
|
376
|
+
constructor(options) {
|
|
377
|
+
const pointerOptions = (
|
|
378
|
+
/** @type {import("./Pointer.js").Options} */
|
|
379
|
+
options
|
|
380
|
+
);
|
|
381
|
+
if (!pointerOptions.stopDown) {
|
|
382
|
+
pointerOptions.stopDown = FALSE;
|
|
383
|
+
}
|
|
384
|
+
super(pointerOptions);
|
|
385
|
+
this.on;
|
|
386
|
+
this.once;
|
|
387
|
+
this.un;
|
|
388
|
+
this.options_ = options;
|
|
389
|
+
this.shouldHandle_ = false;
|
|
390
|
+
this.downPx_ = null;
|
|
391
|
+
this.downTimeout_;
|
|
392
|
+
this.lastDragTime_;
|
|
393
|
+
this.pointerType_;
|
|
394
|
+
this.freehand_ = false;
|
|
395
|
+
this.source_ = options.source ? options.source : null;
|
|
396
|
+
this.features_ = options.features ? options.features : null;
|
|
397
|
+
this.snapTolerance_ = options.snapTolerance ? options.snapTolerance : 12;
|
|
398
|
+
this.type_ = /** @type {import("../geom/Geometry.js").Type} */
|
|
399
|
+
options.type;
|
|
400
|
+
this.mode_ = getMode(this.type_);
|
|
401
|
+
this.stopClick_ = !!options.stopClick;
|
|
402
|
+
this.ignoreNextUpEvent_ = false;
|
|
403
|
+
this.minPoints_ = options.minPoints ? options.minPoints : this.mode_ === "Polygon" ? 3 : 2;
|
|
404
|
+
this.maxPoints_ = this.mode_ === "Circle" ? 2 : options.maxPoints ? options.maxPoints : Infinity;
|
|
405
|
+
this.finishCondition_ = options.finishCondition ? options.finishCondition : TRUE;
|
|
406
|
+
this.geometryLayout_ = options.geometryLayout ? options.geometryLayout : "XY";
|
|
407
|
+
let geometryFunction = options.geometryFunction;
|
|
408
|
+
if (!geometryFunction) {
|
|
409
|
+
const mode = this.mode_;
|
|
410
|
+
if (mode === "Circle") {
|
|
411
|
+
geometryFunction = (coordinates, geometry, projection) => {
|
|
412
|
+
const circle = geometry ? (
|
|
413
|
+
/** @type {Circle} */
|
|
414
|
+
geometry
|
|
415
|
+
) : new Circle_default([NaN, NaN]);
|
|
416
|
+
const center = fromUserCoordinate(coordinates[0], projection);
|
|
417
|
+
const squaredLength = squaredDistance2(
|
|
418
|
+
center,
|
|
419
|
+
fromUserCoordinate(coordinates[coordinates.length - 1], projection)
|
|
420
|
+
);
|
|
421
|
+
circle.setCenterAndRadius(
|
|
422
|
+
center,
|
|
423
|
+
Math.sqrt(squaredLength),
|
|
424
|
+
this.geometryLayout_
|
|
425
|
+
);
|
|
426
|
+
const userProjection = getUserProjection();
|
|
427
|
+
if (userProjection) {
|
|
428
|
+
circle.transform(projection, userProjection);
|
|
429
|
+
}
|
|
430
|
+
return circle;
|
|
431
|
+
};
|
|
432
|
+
} else {
|
|
433
|
+
let Constructor;
|
|
434
|
+
if (mode === "Point") {
|
|
435
|
+
Constructor = Point_default;
|
|
436
|
+
} else if (mode === "LineString") {
|
|
437
|
+
Constructor = LineString_default;
|
|
438
|
+
} else if (mode === "Polygon") {
|
|
439
|
+
Constructor = Polygon_default;
|
|
440
|
+
}
|
|
441
|
+
geometryFunction = (coordinates, geometry, projection) => {
|
|
442
|
+
if (geometry) {
|
|
443
|
+
if (mode === "Polygon") {
|
|
444
|
+
if (coordinates[0].length) {
|
|
445
|
+
geometry.setCoordinates(
|
|
446
|
+
[coordinates[0].concat([coordinates[0][0]])],
|
|
447
|
+
this.geometryLayout_
|
|
448
|
+
);
|
|
449
|
+
} else {
|
|
450
|
+
geometry.setCoordinates([], this.geometryLayout_);
|
|
451
|
+
}
|
|
452
|
+
} else {
|
|
453
|
+
geometry.setCoordinates(coordinates, this.geometryLayout_);
|
|
454
|
+
}
|
|
455
|
+
} else {
|
|
456
|
+
geometry = new Constructor(coordinates, this.geometryLayout_);
|
|
457
|
+
}
|
|
458
|
+
return geometry;
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
this.geometryFunction_ = geometryFunction;
|
|
463
|
+
this.dragVertexDelay_ = options.dragVertexDelay !== void 0 ? options.dragVertexDelay : 500;
|
|
464
|
+
this.finishCoordinate_ = null;
|
|
465
|
+
this.sketchFeature_ = null;
|
|
466
|
+
this.sketchPoint_ = null;
|
|
467
|
+
this.sketchCoords_ = null;
|
|
468
|
+
this.sketchLine_ = null;
|
|
469
|
+
this.sketchLineCoords_ = null;
|
|
470
|
+
this.squaredClickTolerance_ = options.clickTolerance ? options.clickTolerance * options.clickTolerance : 36;
|
|
471
|
+
this.overlay_ = new Vector_default2({
|
|
472
|
+
source: new Vector_default({
|
|
473
|
+
useSpatialIndex: false,
|
|
474
|
+
wrapX: options.wrapX ? options.wrapX : false
|
|
475
|
+
}),
|
|
476
|
+
style: options.style ? options.style : getDefaultStyleFunction(),
|
|
477
|
+
updateWhileInteracting: true
|
|
478
|
+
});
|
|
479
|
+
this.geometryName_ = options.geometryName;
|
|
480
|
+
this.condition_ = options.condition ? options.condition : noModifierKeys;
|
|
481
|
+
this.freehandCondition_;
|
|
482
|
+
if (options.freehand) {
|
|
483
|
+
this.freehandCondition_ = always;
|
|
484
|
+
} else {
|
|
485
|
+
this.freehandCondition_ = options.freehandCondition ? options.freehandCondition : shiftKeyOnly;
|
|
486
|
+
}
|
|
487
|
+
this.traceCondition_;
|
|
488
|
+
this.setTrace(options.trace || false);
|
|
489
|
+
this.traceState_ = { active: false };
|
|
490
|
+
this.traceSource_ = options.traceSource || options.source || null;
|
|
491
|
+
this.addChangeListener(Property_default.ACTIVE, this.updateState_);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Toggle tracing mode or set a tracing condition.
|
|
495
|
+
*
|
|
496
|
+
* @param {boolean|import("../events/condition.js").Condition} trace A boolean to toggle tracing mode or an event
|
|
497
|
+
* condition that will be checked when a feature is clicked to determine if tracing should be active.
|
|
498
|
+
*/
|
|
499
|
+
setTrace(trace) {
|
|
500
|
+
let condition;
|
|
501
|
+
if (!trace) {
|
|
502
|
+
condition = never;
|
|
503
|
+
} else if (trace === true) {
|
|
504
|
+
condition = always;
|
|
505
|
+
} else {
|
|
506
|
+
condition = trace;
|
|
507
|
+
}
|
|
508
|
+
this.traceCondition_ = condition;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Remove the interaction from its current map and attach it to the new map.
|
|
512
|
+
* Subclasses may set up event handlers to get notified about changes to
|
|
513
|
+
* the map here.
|
|
514
|
+
* @param {import("../Map.js").default} map Map.
|
|
515
|
+
* @override
|
|
516
|
+
*/
|
|
517
|
+
setMap(map) {
|
|
518
|
+
super.setMap(map);
|
|
519
|
+
this.updateState_();
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Set whether the drawing is done in freehand mode.
|
|
523
|
+
*
|
|
524
|
+
* @param {boolean} freehand Freehand drawing.
|
|
525
|
+
* @api
|
|
526
|
+
*/
|
|
527
|
+
setFreehand(freehand) {
|
|
528
|
+
this.freehand_ = freehand;
|
|
529
|
+
if (this.freehand_) {
|
|
530
|
+
this.freehandCondition_ = always;
|
|
531
|
+
} else {
|
|
532
|
+
this.freehandCondition_ = this.options_ && this.options_.freehandCondition ? this.options_.freehandCondition : shiftKeyOnly;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Get the overlay layer that this interaction renders sketch features to.
|
|
537
|
+
* @return {VectorLayer} Overlay layer.
|
|
538
|
+
* @api
|
|
539
|
+
*/
|
|
540
|
+
getOverlay() {
|
|
541
|
+
return this.overlay_;
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Get if this interaction is in freehand mode.
|
|
545
|
+
* @return {boolean} Freehand drawing.
|
|
546
|
+
* @api
|
|
547
|
+
*/
|
|
548
|
+
getFreehand() {
|
|
549
|
+
return this.freehand_;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may actually draw or finish the drawing.
|
|
553
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Map browser event.
|
|
554
|
+
* @return {boolean} `false` to stop event propagation.
|
|
555
|
+
* @api
|
|
556
|
+
* @override
|
|
557
|
+
*/
|
|
558
|
+
handleEvent(event) {
|
|
559
|
+
if (event.originalEvent.type === EventType_default.CONTEXTMENU) {
|
|
560
|
+
event.originalEvent.preventDefault();
|
|
561
|
+
}
|
|
562
|
+
this.freehand_ = this.mode_ !== "Point" && this.freehandCondition_(event);
|
|
563
|
+
let move = event.type === MapBrowserEventType_default.POINTERMOVE;
|
|
564
|
+
let pass = true;
|
|
565
|
+
if (!this.freehand_ && this.lastDragTime_ && event.type === MapBrowserEventType_default.POINTERDRAG) {
|
|
566
|
+
const now = Date.now();
|
|
567
|
+
if (now - this.lastDragTime_ >= this.dragVertexDelay_) {
|
|
568
|
+
this.downPx_ = event.pixel;
|
|
569
|
+
this.shouldHandle_ = !this.freehand_;
|
|
570
|
+
move = true;
|
|
571
|
+
} else {
|
|
572
|
+
this.lastDragTime_ = void 0;
|
|
573
|
+
}
|
|
574
|
+
if (this.shouldHandle_ && this.downTimeout_ !== void 0) {
|
|
575
|
+
clearTimeout(this.downTimeout_);
|
|
576
|
+
this.downTimeout_ = void 0;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if (this.freehand_ && event.type === MapBrowserEventType_default.POINTERDRAG && this.sketchFeature_ !== null) {
|
|
580
|
+
this.addToDrawing_(event.coordinate);
|
|
581
|
+
pass = false;
|
|
582
|
+
} else if (this.freehand_ && event.type === MapBrowserEventType_default.POINTERDOWN) {
|
|
583
|
+
pass = false;
|
|
584
|
+
} else if (move && this.getPointerCount() < 2) {
|
|
585
|
+
pass = event.type === MapBrowserEventType_default.POINTERMOVE;
|
|
586
|
+
if (pass && this.freehand_) {
|
|
587
|
+
this.handlePointerMove_(event);
|
|
588
|
+
if (this.shouldHandle_) {
|
|
589
|
+
event.originalEvent.preventDefault();
|
|
590
|
+
}
|
|
591
|
+
} else if (event.originalEvent.pointerType === "mouse" || event.type === MapBrowserEventType_default.POINTERDRAG && this.downTimeout_ === void 0) {
|
|
592
|
+
this.handlePointerMove_(event);
|
|
593
|
+
}
|
|
594
|
+
} else if (event.type === MapBrowserEventType_default.DBLCLICK) {
|
|
595
|
+
pass = false;
|
|
596
|
+
}
|
|
597
|
+
return super.handleEvent(event) && pass;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* Handle pointer down events.
|
|
601
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
602
|
+
* @return {boolean} If the event was consumed.
|
|
603
|
+
* @override
|
|
604
|
+
*/
|
|
605
|
+
handleDownEvent(event) {
|
|
606
|
+
this.shouldHandle_ = !this.freehand_;
|
|
607
|
+
if (this.freehand_) {
|
|
608
|
+
this.downPx_ = event.pixel;
|
|
609
|
+
if (!this.finishCoordinate_) {
|
|
610
|
+
this.startDrawing_(event.coordinate);
|
|
611
|
+
}
|
|
612
|
+
return true;
|
|
613
|
+
}
|
|
614
|
+
if (!this.condition_(event)) {
|
|
615
|
+
this.lastDragTime_ = void 0;
|
|
616
|
+
return false;
|
|
617
|
+
}
|
|
618
|
+
this.lastDragTime_ = Date.now();
|
|
619
|
+
this.downTimeout_ = setTimeout(() => {
|
|
620
|
+
this.handlePointerMove_(
|
|
621
|
+
new MapBrowserEvent_default(
|
|
622
|
+
MapBrowserEventType_default.POINTERMOVE,
|
|
623
|
+
event.map,
|
|
624
|
+
event.originalEvent,
|
|
625
|
+
false,
|
|
626
|
+
event.frameState
|
|
627
|
+
)
|
|
628
|
+
);
|
|
629
|
+
}, this.dragVertexDelay_);
|
|
630
|
+
this.downPx_ = event.pixel;
|
|
631
|
+
return true;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* @private
|
|
635
|
+
*/
|
|
636
|
+
deactivateTrace_() {
|
|
637
|
+
this.traceState_ = { active: false };
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Activate or deactivate trace state based on a browser event.
|
|
641
|
+
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
642
|
+
* @private
|
|
643
|
+
*/
|
|
644
|
+
toggleTraceState_(event) {
|
|
645
|
+
if (!this.traceSource_ || !this.traceCondition_(event)) {
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
if (this.traceState_.active) {
|
|
649
|
+
this.deactivateTrace_();
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
const map = this.getMap();
|
|
653
|
+
const lowerLeft = map.getCoordinateFromPixel([
|
|
654
|
+
event.pixel[0] - this.snapTolerance_,
|
|
655
|
+
event.pixel[1] + this.snapTolerance_
|
|
656
|
+
]);
|
|
657
|
+
const upperRight = map.getCoordinateFromPixel([
|
|
658
|
+
event.pixel[0] + this.snapTolerance_,
|
|
659
|
+
event.pixel[1] - this.snapTolerance_
|
|
660
|
+
]);
|
|
661
|
+
const extent = boundingExtent([lowerLeft, upperRight]);
|
|
662
|
+
const features = this.traceSource_.getFeaturesInExtent(extent);
|
|
663
|
+
if (features.length === 0) {
|
|
664
|
+
return;
|
|
665
|
+
}
|
|
666
|
+
const targets = getTraceTargets(event.coordinate, features);
|
|
667
|
+
if (targets.length) {
|
|
668
|
+
this.traceState_ = {
|
|
669
|
+
active: true,
|
|
670
|
+
startCoord: event.coordinate.slice(),
|
|
671
|
+
targets,
|
|
672
|
+
targetIndex: -1
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* @param {TraceTarget} target The trace target.
|
|
678
|
+
* @param {number} endIndex The new end index of the trace.
|
|
679
|
+
* @private
|
|
680
|
+
*/
|
|
681
|
+
addOrRemoveTracedCoordinates_(target, endIndex) {
|
|
682
|
+
const previouslyForward = target.startIndex <= target.endIndex;
|
|
683
|
+
const currentlyForward = target.startIndex <= endIndex;
|
|
684
|
+
if (previouslyForward === currentlyForward) {
|
|
685
|
+
if (previouslyForward && endIndex > target.endIndex || !previouslyForward && endIndex < target.endIndex) {
|
|
686
|
+
this.addTracedCoordinates_(target, target.endIndex, endIndex);
|
|
687
|
+
} else if (previouslyForward && endIndex < target.endIndex || !previouslyForward && endIndex > target.endIndex) {
|
|
688
|
+
this.removeTracedCoordinates_(endIndex, target.endIndex);
|
|
689
|
+
}
|
|
690
|
+
} else {
|
|
691
|
+
this.removeTracedCoordinates_(target.startIndex, target.endIndex);
|
|
692
|
+
this.addTracedCoordinates_(target, target.startIndex, endIndex);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* @param {number} fromIndex The start index.
|
|
697
|
+
* @param {number} toIndex The end index.
|
|
698
|
+
* @private
|
|
699
|
+
*/
|
|
700
|
+
removeTracedCoordinates_(fromIndex, toIndex) {
|
|
701
|
+
if (fromIndex === toIndex) {
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
let remove = 0;
|
|
705
|
+
if (fromIndex < toIndex) {
|
|
706
|
+
const start = Math.ceil(fromIndex);
|
|
707
|
+
let end = Math.floor(toIndex);
|
|
708
|
+
if (end === toIndex) {
|
|
709
|
+
end -= 1;
|
|
710
|
+
}
|
|
711
|
+
remove = end - start + 1;
|
|
712
|
+
} else {
|
|
713
|
+
const start = Math.floor(fromIndex);
|
|
714
|
+
let end = Math.ceil(toIndex);
|
|
715
|
+
if (end === toIndex) {
|
|
716
|
+
end += 1;
|
|
717
|
+
}
|
|
718
|
+
remove = start - end + 1;
|
|
719
|
+
}
|
|
720
|
+
if (remove > 0) {
|
|
721
|
+
this.removeLastPoints_(remove);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* @param {TraceTarget} target The trace target.
|
|
726
|
+
* @param {number} fromIndex The start index.
|
|
727
|
+
* @param {number} toIndex The end index.
|
|
728
|
+
* @private
|
|
729
|
+
*/
|
|
730
|
+
addTracedCoordinates_(target, fromIndex, toIndex) {
|
|
731
|
+
if (fromIndex === toIndex) {
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
const coordinates = [];
|
|
735
|
+
if (fromIndex < toIndex) {
|
|
736
|
+
const start = Math.ceil(fromIndex);
|
|
737
|
+
let end = Math.floor(toIndex);
|
|
738
|
+
if (end === toIndex) {
|
|
739
|
+
end -= 1;
|
|
740
|
+
}
|
|
741
|
+
for (let i = start; i <= end; ++i) {
|
|
742
|
+
coordinates.push(getCoordinate(target.coordinates, i));
|
|
743
|
+
}
|
|
744
|
+
} else {
|
|
745
|
+
const start = Math.floor(fromIndex);
|
|
746
|
+
let end = Math.ceil(toIndex);
|
|
747
|
+
if (end === toIndex) {
|
|
748
|
+
end += 1;
|
|
749
|
+
}
|
|
750
|
+
for (let i = start; i >= end; --i) {
|
|
751
|
+
coordinates.push(getCoordinate(target.coordinates, i));
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
if (coordinates.length) {
|
|
755
|
+
this.appendCoordinates(coordinates);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Update the trace.
|
|
760
|
+
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
761
|
+
* @private
|
|
762
|
+
*/
|
|
763
|
+
updateTrace_(event) {
|
|
764
|
+
const traceState = this.traceState_;
|
|
765
|
+
if (!traceState.active) {
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
if (traceState.targetIndex === -1) {
|
|
769
|
+
const startPx = event.map.getPixelFromCoordinate(traceState.startCoord);
|
|
770
|
+
if (distance(startPx, event.pixel) < this.snapTolerance_) {
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
const updatedTraceTarget = getTraceTargetUpdate(
|
|
775
|
+
event.coordinate,
|
|
776
|
+
traceState,
|
|
777
|
+
this.getMap(),
|
|
778
|
+
this.snapTolerance_
|
|
779
|
+
);
|
|
780
|
+
if (traceState.targetIndex !== updatedTraceTarget.index) {
|
|
781
|
+
if (traceState.targetIndex !== -1) {
|
|
782
|
+
const oldTarget = traceState.targets[traceState.targetIndex];
|
|
783
|
+
this.removeTracedCoordinates_(oldTarget.startIndex, oldTarget.endIndex);
|
|
784
|
+
}
|
|
785
|
+
const newTarget = traceState.targets[updatedTraceTarget.index];
|
|
786
|
+
this.addTracedCoordinates_(
|
|
787
|
+
newTarget,
|
|
788
|
+
newTarget.startIndex,
|
|
789
|
+
updatedTraceTarget.endIndex
|
|
790
|
+
);
|
|
791
|
+
} else {
|
|
792
|
+
const target2 = traceState.targets[traceState.targetIndex];
|
|
793
|
+
this.addOrRemoveTracedCoordinates_(target2, updatedTraceTarget.endIndex);
|
|
794
|
+
}
|
|
795
|
+
traceState.targetIndex = updatedTraceTarget.index;
|
|
796
|
+
const target = traceState.targets[traceState.targetIndex];
|
|
797
|
+
target.endIndex = updatedTraceTarget.endIndex;
|
|
798
|
+
const coordinate = interpolateCoordinate(
|
|
799
|
+
target.coordinates,
|
|
800
|
+
target.endIndex
|
|
801
|
+
);
|
|
802
|
+
const pixel = this.getMap().getPixelFromCoordinate(coordinate);
|
|
803
|
+
event.coordinate = coordinate;
|
|
804
|
+
event.pixel = [Math.round(pixel[0]), Math.round(pixel[1])];
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* Handle drag events.
|
|
808
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
809
|
+
* @override
|
|
810
|
+
*/
|
|
811
|
+
handleDragEvent(event) {
|
|
812
|
+
this.ignoreNextUpEvent_ = true;
|
|
813
|
+
super.handleDragEvent(event);
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Handle pointer up events.
|
|
817
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event Event.
|
|
818
|
+
* @return {boolean} If the event was consumed.
|
|
819
|
+
* @override
|
|
820
|
+
*/
|
|
821
|
+
handleUpEvent(event) {
|
|
822
|
+
let pass = true;
|
|
823
|
+
if (this.getPointerCount() === 0) {
|
|
824
|
+
if (this.downTimeout_) {
|
|
825
|
+
clearTimeout(this.downTimeout_);
|
|
826
|
+
this.downTimeout_ = void 0;
|
|
827
|
+
}
|
|
828
|
+
this.handlePointerMove_(event);
|
|
829
|
+
const tracing = this.traceState_.active;
|
|
830
|
+
if (!this.ignoreNextUpEvent_) {
|
|
831
|
+
this.toggleTraceState_(event);
|
|
832
|
+
}
|
|
833
|
+
if (this.shouldHandle_) {
|
|
834
|
+
const startingToDraw = !this.finishCoordinate_;
|
|
835
|
+
if (startingToDraw) {
|
|
836
|
+
this.startDrawing_(event.coordinate);
|
|
837
|
+
}
|
|
838
|
+
if (!startingToDraw && this.freehand_) {
|
|
839
|
+
this.finishDrawing();
|
|
840
|
+
} else if (!this.freehand_ && (!startingToDraw || this.mode_ === "Point")) {
|
|
841
|
+
if (this.atFinish_(event.pixel, tracing)) {
|
|
842
|
+
if (this.finishCondition_(event)) {
|
|
843
|
+
this.finishDrawing();
|
|
844
|
+
}
|
|
845
|
+
} else {
|
|
846
|
+
this.addToDrawing_(event.coordinate);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
pass = false;
|
|
850
|
+
} else if (this.freehand_) {
|
|
851
|
+
this.abortDrawing();
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
this.ignoreNextUpEvent_ = false;
|
|
855
|
+
if (!pass && this.stopClick_) {
|
|
856
|
+
event.preventDefault();
|
|
857
|
+
}
|
|
858
|
+
return pass;
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* Handle move events.
|
|
862
|
+
* @param {import("../MapBrowserEvent.js").default<PointerEvent>} event A move event.
|
|
863
|
+
* @private
|
|
864
|
+
*/
|
|
865
|
+
handlePointerMove_(event) {
|
|
866
|
+
this.pointerType_ = event.originalEvent.pointerType;
|
|
867
|
+
if (this.downPx_ && (!this.freehand_ && this.shouldHandle_ || this.freehand_ && !this.shouldHandle_)) {
|
|
868
|
+
const downPx = this.downPx_;
|
|
869
|
+
const clickPx = event.pixel;
|
|
870
|
+
const dx = downPx[0] - clickPx[0];
|
|
871
|
+
const dy = downPx[1] - clickPx[1];
|
|
872
|
+
const squaredDistance3 = dx * dx + dy * dy;
|
|
873
|
+
this.shouldHandle_ = this.freehand_ ? squaredDistance3 > this.squaredClickTolerance_ : squaredDistance3 <= this.squaredClickTolerance_;
|
|
874
|
+
if (!this.shouldHandle_) {
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
if (!this.finishCoordinate_) {
|
|
879
|
+
this.createOrUpdateSketchPoint_(event.coordinate.slice());
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
this.updateTrace_(event);
|
|
883
|
+
this.modifyDrawing_(event.coordinate);
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Determine if an event is within the snapping tolerance of the start coord.
|
|
887
|
+
* @param {import("../pixel.js").Pixel} pixel Pixel.
|
|
888
|
+
* @param {boolean} [tracing] Drawing in trace mode (only stop if at the starting point).
|
|
889
|
+
* @return {boolean} The event is within the snapping tolerance of the start.
|
|
890
|
+
* @private
|
|
891
|
+
*/
|
|
892
|
+
atFinish_(pixel, tracing) {
|
|
893
|
+
let at = false;
|
|
894
|
+
if (this.sketchFeature_) {
|
|
895
|
+
let potentiallyDone = false;
|
|
896
|
+
let potentiallyFinishCoordinates = [this.finishCoordinate_];
|
|
897
|
+
const mode = this.mode_;
|
|
898
|
+
if (mode === "Point") {
|
|
899
|
+
at = true;
|
|
900
|
+
} else if (mode === "Circle") {
|
|
901
|
+
at = this.sketchCoords_.length === 2;
|
|
902
|
+
} else if (mode === "LineString") {
|
|
903
|
+
potentiallyDone = !tracing && this.sketchCoords_.length > this.minPoints_;
|
|
904
|
+
} else if (mode === "Polygon") {
|
|
905
|
+
const sketchCoords = (
|
|
906
|
+
/** @type {PolyCoordType} */
|
|
907
|
+
this.sketchCoords_
|
|
908
|
+
);
|
|
909
|
+
potentiallyDone = sketchCoords[0].length > this.minPoints_;
|
|
910
|
+
potentiallyFinishCoordinates = [
|
|
911
|
+
sketchCoords[0][0],
|
|
912
|
+
sketchCoords[0][sketchCoords[0].length - 2]
|
|
913
|
+
];
|
|
914
|
+
if (tracing) {
|
|
915
|
+
potentiallyFinishCoordinates = [sketchCoords[0][0]];
|
|
916
|
+
} else {
|
|
917
|
+
potentiallyFinishCoordinates = [
|
|
918
|
+
sketchCoords[0][0],
|
|
919
|
+
sketchCoords[0][sketchCoords[0].length - 2]
|
|
920
|
+
];
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
if (potentiallyDone) {
|
|
924
|
+
const map = this.getMap();
|
|
925
|
+
for (let i = 0, ii = potentiallyFinishCoordinates.length; i < ii; i++) {
|
|
926
|
+
const finishCoordinate = potentiallyFinishCoordinates[i];
|
|
927
|
+
const finishPixel = map.getPixelFromCoordinate(finishCoordinate);
|
|
928
|
+
const dx = pixel[0] - finishPixel[0];
|
|
929
|
+
const dy = pixel[1] - finishPixel[1];
|
|
930
|
+
const snapTolerance = this.freehand_ ? 1 : this.snapTolerance_;
|
|
931
|
+
at = Math.sqrt(dx * dx + dy * dy) <= snapTolerance;
|
|
932
|
+
if (at) {
|
|
933
|
+
this.finishCoordinate_ = finishCoordinate;
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
return at;
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* @param {import("../coordinate").Coordinate} coordinates Coordinate.
|
|
943
|
+
* @private
|
|
944
|
+
*/
|
|
945
|
+
createOrUpdateSketchPoint_(coordinates) {
|
|
946
|
+
if (!this.sketchPoint_) {
|
|
947
|
+
this.sketchPoint_ = new Feature_default(new Point_default(coordinates));
|
|
948
|
+
this.updateSketchFeatures_();
|
|
949
|
+
} else {
|
|
950
|
+
const sketchPointGeom = this.sketchPoint_.getGeometry();
|
|
951
|
+
sketchPointGeom.setCoordinates(coordinates);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* @param {import("../geom/Polygon.js").default} geometry Polygon geometry.
|
|
956
|
+
* @private
|
|
957
|
+
*/
|
|
958
|
+
createOrUpdateCustomSketchLine_(geometry) {
|
|
959
|
+
if (!this.sketchLine_) {
|
|
960
|
+
this.sketchLine_ = new Feature_default();
|
|
961
|
+
}
|
|
962
|
+
const ring = geometry.getLinearRing(0);
|
|
963
|
+
let sketchLineGeom = this.sketchLine_.getGeometry();
|
|
964
|
+
if (!sketchLineGeom) {
|
|
965
|
+
sketchLineGeom = new LineString_default(
|
|
966
|
+
ring.getFlatCoordinates(),
|
|
967
|
+
ring.getLayout()
|
|
968
|
+
);
|
|
969
|
+
this.sketchLine_.setGeometry(sketchLineGeom);
|
|
970
|
+
} else {
|
|
971
|
+
sketchLineGeom.setFlatCoordinates(
|
|
972
|
+
ring.getLayout(),
|
|
973
|
+
ring.getFlatCoordinates()
|
|
974
|
+
);
|
|
975
|
+
sketchLineGeom.changed();
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Start the drawing.
|
|
980
|
+
* @param {import("../coordinate.js").Coordinate} start Start coordinate.
|
|
981
|
+
* @private
|
|
982
|
+
*/
|
|
983
|
+
startDrawing_(start) {
|
|
984
|
+
const projection = this.getMap().getView().getProjection();
|
|
985
|
+
const stride = getStrideForLayout(this.geometryLayout_);
|
|
986
|
+
while (start.length < stride) {
|
|
987
|
+
start.push(0);
|
|
988
|
+
}
|
|
989
|
+
this.finishCoordinate_ = start;
|
|
990
|
+
if (this.mode_ === "Point") {
|
|
991
|
+
this.sketchCoords_ = start.slice();
|
|
992
|
+
} else if (this.mode_ === "Polygon") {
|
|
993
|
+
this.sketchCoords_ = [[start.slice(), start.slice()]];
|
|
994
|
+
this.sketchLineCoords_ = this.sketchCoords_[0];
|
|
995
|
+
} else {
|
|
996
|
+
this.sketchCoords_ = [start.slice(), start.slice()];
|
|
997
|
+
}
|
|
998
|
+
if (this.sketchLineCoords_) {
|
|
999
|
+
this.sketchLine_ = new Feature_default(new LineString_default(this.sketchLineCoords_));
|
|
1000
|
+
}
|
|
1001
|
+
const geometry = this.geometryFunction_(
|
|
1002
|
+
this.sketchCoords_,
|
|
1003
|
+
void 0,
|
|
1004
|
+
projection
|
|
1005
|
+
);
|
|
1006
|
+
this.sketchFeature_ = new Feature_default();
|
|
1007
|
+
if (this.geometryName_) {
|
|
1008
|
+
this.sketchFeature_.setGeometryName(this.geometryName_);
|
|
1009
|
+
}
|
|
1010
|
+
this.sketchFeature_.setGeometry(geometry);
|
|
1011
|
+
this.updateSketchFeatures_();
|
|
1012
|
+
this.dispatchEvent(
|
|
1013
|
+
new DrawEvent(DrawEventType.DRAWSTART, this.sketchFeature_)
|
|
1014
|
+
);
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Modify the drawing.
|
|
1018
|
+
* @param {import("../coordinate.js").Coordinate} coordinate Coordinate.
|
|
1019
|
+
* @private
|
|
1020
|
+
*/
|
|
1021
|
+
modifyDrawing_(coordinate) {
|
|
1022
|
+
const map = this.getMap();
|
|
1023
|
+
const geometry = this.sketchFeature_.getGeometry();
|
|
1024
|
+
const projection = map.getView().getProjection();
|
|
1025
|
+
const stride = getStrideForLayout(this.geometryLayout_);
|
|
1026
|
+
let coordinates, last;
|
|
1027
|
+
while (coordinate.length < stride) {
|
|
1028
|
+
coordinate.push(0);
|
|
1029
|
+
}
|
|
1030
|
+
if (this.mode_ === "Point") {
|
|
1031
|
+
last = this.sketchCoords_;
|
|
1032
|
+
} else if (this.mode_ === "Polygon") {
|
|
1033
|
+
coordinates = /** @type {PolyCoordType} */
|
|
1034
|
+
this.sketchCoords_[0];
|
|
1035
|
+
last = coordinates[coordinates.length - 1];
|
|
1036
|
+
if (this.atFinish_(map.getPixelFromCoordinate(coordinate))) {
|
|
1037
|
+
coordinate = this.finishCoordinate_.slice();
|
|
1038
|
+
}
|
|
1039
|
+
} else {
|
|
1040
|
+
coordinates = this.sketchCoords_;
|
|
1041
|
+
last = coordinates[coordinates.length - 1];
|
|
1042
|
+
}
|
|
1043
|
+
last[0] = coordinate[0];
|
|
1044
|
+
last[1] = coordinate[1];
|
|
1045
|
+
this.geometryFunction_(
|
|
1046
|
+
/** @type {!LineCoordType} */
|
|
1047
|
+
this.sketchCoords_,
|
|
1048
|
+
geometry,
|
|
1049
|
+
projection
|
|
1050
|
+
);
|
|
1051
|
+
if (this.sketchPoint_) {
|
|
1052
|
+
const sketchPointGeom = this.sketchPoint_.getGeometry();
|
|
1053
|
+
sketchPointGeom.setCoordinates(coordinate);
|
|
1054
|
+
}
|
|
1055
|
+
if (geometry.getType() === "Polygon" && this.mode_ !== "Polygon") {
|
|
1056
|
+
this.createOrUpdateCustomSketchLine_(
|
|
1057
|
+
/** @type {Polygon} */
|
|
1058
|
+
geometry
|
|
1059
|
+
);
|
|
1060
|
+
} else if (this.sketchLineCoords_) {
|
|
1061
|
+
const sketchLineGeom = this.sketchLine_.getGeometry();
|
|
1062
|
+
sketchLineGeom.setCoordinates(this.sketchLineCoords_);
|
|
1063
|
+
}
|
|
1064
|
+
this.updateSketchFeatures_();
|
|
1065
|
+
}
|
|
1066
|
+
/**
|
|
1067
|
+
* Add a new coordinate to the drawing.
|
|
1068
|
+
* @param {!PointCoordType} coordinate Coordinate
|
|
1069
|
+
* @return {Feature<import("../geom/SimpleGeometry.js").default>} The sketch feature.
|
|
1070
|
+
* @private
|
|
1071
|
+
*/
|
|
1072
|
+
addToDrawing_(coordinate) {
|
|
1073
|
+
const geometry = this.sketchFeature_.getGeometry();
|
|
1074
|
+
const projection = this.getMap().getView().getProjection();
|
|
1075
|
+
let done;
|
|
1076
|
+
let coordinates;
|
|
1077
|
+
const mode = this.mode_;
|
|
1078
|
+
if (mode === "LineString" || mode === "Circle") {
|
|
1079
|
+
this.finishCoordinate_ = coordinate.slice();
|
|
1080
|
+
coordinates = /** @type {LineCoordType} */
|
|
1081
|
+
this.sketchCoords_;
|
|
1082
|
+
if (coordinates.length >= this.maxPoints_) {
|
|
1083
|
+
if (this.freehand_) {
|
|
1084
|
+
coordinates.pop();
|
|
1085
|
+
} else {
|
|
1086
|
+
done = true;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
coordinates.push(coordinate.slice());
|
|
1090
|
+
this.geometryFunction_(coordinates, geometry, projection);
|
|
1091
|
+
} else if (mode === "Polygon") {
|
|
1092
|
+
coordinates = /** @type {PolyCoordType} */
|
|
1093
|
+
this.sketchCoords_[0];
|
|
1094
|
+
if (coordinates.length >= this.maxPoints_) {
|
|
1095
|
+
if (this.freehand_) {
|
|
1096
|
+
coordinates.pop();
|
|
1097
|
+
} else {
|
|
1098
|
+
done = true;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
coordinates.push(coordinate.slice());
|
|
1102
|
+
if (done) {
|
|
1103
|
+
this.finishCoordinate_ = coordinates[0];
|
|
1104
|
+
}
|
|
1105
|
+
this.geometryFunction_(this.sketchCoords_, geometry, projection);
|
|
1106
|
+
}
|
|
1107
|
+
this.createOrUpdateSketchPoint_(coordinate.slice());
|
|
1108
|
+
this.updateSketchFeatures_();
|
|
1109
|
+
if (done) {
|
|
1110
|
+
return this.finishDrawing();
|
|
1111
|
+
}
|
|
1112
|
+
return this.sketchFeature_;
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* @param {number} n The number of points to remove.
|
|
1116
|
+
*/
|
|
1117
|
+
removeLastPoints_(n) {
|
|
1118
|
+
if (!this.sketchFeature_) {
|
|
1119
|
+
return;
|
|
1120
|
+
}
|
|
1121
|
+
const geometry = this.sketchFeature_.getGeometry();
|
|
1122
|
+
const projection = this.getMap().getView().getProjection();
|
|
1123
|
+
const mode = this.mode_;
|
|
1124
|
+
for (let i = 0; i < n; ++i) {
|
|
1125
|
+
let coordinates;
|
|
1126
|
+
if (mode === "LineString" || mode === "Circle") {
|
|
1127
|
+
coordinates = /** @type {LineCoordType} */
|
|
1128
|
+
this.sketchCoords_;
|
|
1129
|
+
coordinates.splice(-2, 1);
|
|
1130
|
+
if (coordinates.length >= 2) {
|
|
1131
|
+
this.finishCoordinate_ = coordinates[coordinates.length - 2].slice();
|
|
1132
|
+
const finishCoordinate = this.finishCoordinate_.slice();
|
|
1133
|
+
coordinates[coordinates.length - 1] = finishCoordinate;
|
|
1134
|
+
this.createOrUpdateSketchPoint_(finishCoordinate);
|
|
1135
|
+
}
|
|
1136
|
+
this.geometryFunction_(coordinates, geometry, projection);
|
|
1137
|
+
if (geometry.getType() === "Polygon" && this.sketchLine_) {
|
|
1138
|
+
this.createOrUpdateCustomSketchLine_(
|
|
1139
|
+
/** @type {Polygon} */
|
|
1140
|
+
geometry
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1143
|
+
} else if (mode === "Polygon") {
|
|
1144
|
+
coordinates = /** @type {PolyCoordType} */
|
|
1145
|
+
this.sketchCoords_[0];
|
|
1146
|
+
coordinates.splice(-2, 1);
|
|
1147
|
+
const sketchLineGeom = this.sketchLine_.getGeometry();
|
|
1148
|
+
if (coordinates.length >= 2) {
|
|
1149
|
+
const finishCoordinate = coordinates[coordinates.length - 2].slice();
|
|
1150
|
+
coordinates[coordinates.length - 1] = finishCoordinate;
|
|
1151
|
+
this.createOrUpdateSketchPoint_(finishCoordinate);
|
|
1152
|
+
}
|
|
1153
|
+
sketchLineGeom.setCoordinates(coordinates);
|
|
1154
|
+
this.geometryFunction_(this.sketchCoords_, geometry, projection);
|
|
1155
|
+
}
|
|
1156
|
+
if (coordinates.length === 1) {
|
|
1157
|
+
this.abortDrawing();
|
|
1158
|
+
break;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
this.updateSketchFeatures_();
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Remove last point of the feature currently being drawn. Does not do anything when
|
|
1165
|
+
* drawing POINT or MULTI_POINT geometries.
|
|
1166
|
+
* @api
|
|
1167
|
+
*/
|
|
1168
|
+
removeLastPoint() {
|
|
1169
|
+
this.removeLastPoints_(1);
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* Stop drawing and add the sketch feature to the target layer.
|
|
1173
|
+
* The {@link module:ol/interaction/Draw~DrawEventType.DRAWEND} event is
|
|
1174
|
+
* dispatched before inserting the feature.
|
|
1175
|
+
* @return {Feature<import("../geom/SimpleGeometry.js").default>|null} The drawn feature.
|
|
1176
|
+
* @api
|
|
1177
|
+
*/
|
|
1178
|
+
finishDrawing() {
|
|
1179
|
+
const sketchFeature = this.abortDrawing_();
|
|
1180
|
+
if (!sketchFeature) {
|
|
1181
|
+
return null;
|
|
1182
|
+
}
|
|
1183
|
+
let coordinates = this.sketchCoords_;
|
|
1184
|
+
const geometry = sketchFeature.getGeometry();
|
|
1185
|
+
const projection = this.getMap().getView().getProjection();
|
|
1186
|
+
if (this.mode_ === "LineString") {
|
|
1187
|
+
coordinates.pop();
|
|
1188
|
+
this.geometryFunction_(coordinates, geometry, projection);
|
|
1189
|
+
} else if (this.mode_ === "Polygon") {
|
|
1190
|
+
coordinates[0].pop();
|
|
1191
|
+
this.geometryFunction_(coordinates, geometry, projection);
|
|
1192
|
+
coordinates = geometry.getCoordinates();
|
|
1193
|
+
}
|
|
1194
|
+
if (this.type_ === "MultiPoint") {
|
|
1195
|
+
sketchFeature.setGeometry(
|
|
1196
|
+
new MultiPoint_default([
|
|
1197
|
+
/** @type {PointCoordType} */
|
|
1198
|
+
coordinates
|
|
1199
|
+
])
|
|
1200
|
+
);
|
|
1201
|
+
} else if (this.type_ === "MultiLineString") {
|
|
1202
|
+
sketchFeature.setGeometry(
|
|
1203
|
+
new MultiLineString_default([
|
|
1204
|
+
/** @type {LineCoordType} */
|
|
1205
|
+
coordinates
|
|
1206
|
+
])
|
|
1207
|
+
);
|
|
1208
|
+
} else if (this.type_ === "MultiPolygon") {
|
|
1209
|
+
sketchFeature.setGeometry(
|
|
1210
|
+
new MultiPolygon_default([
|
|
1211
|
+
/** @type {PolyCoordType} */
|
|
1212
|
+
coordinates
|
|
1213
|
+
])
|
|
1214
|
+
);
|
|
1215
|
+
}
|
|
1216
|
+
this.dispatchEvent(new DrawEvent(DrawEventType.DRAWEND, sketchFeature));
|
|
1217
|
+
if (this.features_) {
|
|
1218
|
+
this.features_.push(sketchFeature);
|
|
1219
|
+
}
|
|
1220
|
+
if (this.source_) {
|
|
1221
|
+
this.source_.addFeature(sketchFeature);
|
|
1222
|
+
}
|
|
1223
|
+
return sketchFeature;
|
|
1224
|
+
}
|
|
1225
|
+
/**
|
|
1226
|
+
* Stop drawing without adding the sketch feature to the target layer.
|
|
1227
|
+
* @return {Feature<import("../geom/SimpleGeometry.js").default>|null} The sketch feature (or null if none).
|
|
1228
|
+
* @private
|
|
1229
|
+
*/
|
|
1230
|
+
abortDrawing_() {
|
|
1231
|
+
this.finishCoordinate_ = null;
|
|
1232
|
+
const sketchFeature = this.sketchFeature_;
|
|
1233
|
+
this.sketchFeature_ = null;
|
|
1234
|
+
this.sketchPoint_ = null;
|
|
1235
|
+
this.sketchLine_ = null;
|
|
1236
|
+
this.overlay_.getSource().clear(true);
|
|
1237
|
+
this.deactivateTrace_();
|
|
1238
|
+
return sketchFeature;
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Stop drawing without adding the sketch feature to the target layer.
|
|
1242
|
+
* @api
|
|
1243
|
+
*/
|
|
1244
|
+
abortDrawing() {
|
|
1245
|
+
const sketchFeature = this.abortDrawing_();
|
|
1246
|
+
if (sketchFeature) {
|
|
1247
|
+
this.dispatchEvent(new DrawEvent(DrawEventType.DRAWABORT, sketchFeature));
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Append coordinates to the end of the geometry that is currently being drawn.
|
|
1252
|
+
* This can be used when drawing LineStrings or Polygons. Coordinates will
|
|
1253
|
+
* either be appended to the current LineString or the outer ring of the current
|
|
1254
|
+
* Polygon. If no geometry is being drawn, a new one will be created.
|
|
1255
|
+
* @param {!LineCoordType} coordinates Linear coordinates to be appended to
|
|
1256
|
+
* the coordinate array.
|
|
1257
|
+
* @api
|
|
1258
|
+
*/
|
|
1259
|
+
appendCoordinates(coordinates) {
|
|
1260
|
+
const mode = this.mode_;
|
|
1261
|
+
const newDrawing = !this.sketchFeature_;
|
|
1262
|
+
if (newDrawing) {
|
|
1263
|
+
this.startDrawing_(coordinates[0]);
|
|
1264
|
+
}
|
|
1265
|
+
let sketchCoords;
|
|
1266
|
+
if (mode === "LineString" || mode === "Circle") {
|
|
1267
|
+
sketchCoords = /** @type {LineCoordType} */
|
|
1268
|
+
this.sketchCoords_;
|
|
1269
|
+
} else if (mode === "Polygon") {
|
|
1270
|
+
sketchCoords = this.sketchCoords_ && this.sketchCoords_.length ? (
|
|
1271
|
+
/** @type {PolyCoordType} */
|
|
1272
|
+
this.sketchCoords_[0]
|
|
1273
|
+
) : [];
|
|
1274
|
+
} else {
|
|
1275
|
+
return;
|
|
1276
|
+
}
|
|
1277
|
+
if (newDrawing) {
|
|
1278
|
+
sketchCoords.shift();
|
|
1279
|
+
}
|
|
1280
|
+
sketchCoords.pop();
|
|
1281
|
+
for (let i = 0; i < coordinates.length; i++) {
|
|
1282
|
+
this.addToDrawing_(coordinates[i]);
|
|
1283
|
+
}
|
|
1284
|
+
const ending = coordinates[coordinates.length - 1];
|
|
1285
|
+
this.sketchFeature_ = this.addToDrawing_(ending);
|
|
1286
|
+
this.modifyDrawing_(ending);
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* Initiate draw mode by starting from an existing geometry which will
|
|
1290
|
+
* receive new additional points. This only works on features with
|
|
1291
|
+
* `LineString` geometries, where the interaction will extend lines by adding
|
|
1292
|
+
* points to the end of the coordinates array.
|
|
1293
|
+
* This will change the original feature, instead of drawing a copy.
|
|
1294
|
+
*
|
|
1295
|
+
* The function will dispatch a `drawstart` event.
|
|
1296
|
+
*
|
|
1297
|
+
* @param {!Feature<LineString>} feature Feature to be extended.
|
|
1298
|
+
* @api
|
|
1299
|
+
*/
|
|
1300
|
+
extend(feature) {
|
|
1301
|
+
const geometry = feature.getGeometry();
|
|
1302
|
+
const lineString = geometry;
|
|
1303
|
+
this.sketchFeature_ = feature;
|
|
1304
|
+
this.sketchCoords_ = lineString.getCoordinates();
|
|
1305
|
+
const last = this.sketchCoords_[this.sketchCoords_.length - 1];
|
|
1306
|
+
this.finishCoordinate_ = last.slice();
|
|
1307
|
+
this.sketchCoords_.push(last.slice());
|
|
1308
|
+
this.sketchPoint_ = new Feature_default(new Point_default(last));
|
|
1309
|
+
this.updateSketchFeatures_();
|
|
1310
|
+
this.dispatchEvent(
|
|
1311
|
+
new DrawEvent(DrawEventType.DRAWSTART, this.sketchFeature_)
|
|
1312
|
+
);
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Redraw the sketch features.
|
|
1316
|
+
* @private
|
|
1317
|
+
*/
|
|
1318
|
+
updateSketchFeatures_() {
|
|
1319
|
+
const sketchFeatures = [];
|
|
1320
|
+
if (this.sketchFeature_) {
|
|
1321
|
+
sketchFeatures.push(this.sketchFeature_);
|
|
1322
|
+
}
|
|
1323
|
+
if (this.sketchLine_) {
|
|
1324
|
+
sketchFeatures.push(this.sketchLine_);
|
|
1325
|
+
}
|
|
1326
|
+
if (this.sketchPoint_) {
|
|
1327
|
+
sketchFeatures.push(this.sketchPoint_);
|
|
1328
|
+
}
|
|
1329
|
+
const overlaySource = this.overlay_.getSource();
|
|
1330
|
+
overlaySource.clear(true);
|
|
1331
|
+
overlaySource.addFeatures(sketchFeatures);
|
|
1332
|
+
}
|
|
1333
|
+
/**
|
|
1334
|
+
* @private
|
|
1335
|
+
*/
|
|
1336
|
+
updateState_() {
|
|
1337
|
+
const map = this.getMap();
|
|
1338
|
+
const active = this.getActive();
|
|
1339
|
+
if (!map || !active) {
|
|
1340
|
+
this.abortDrawing();
|
|
1341
|
+
}
|
|
1342
|
+
this.overlay_.setMap(active ? map : null);
|
|
1343
|
+
}
|
|
1344
|
+
};
|
|
1345
|
+
function getDefaultStyleFunction() {
|
|
1346
|
+
const styles = createEditingStyle();
|
|
1347
|
+
return function(feature, resolution) {
|
|
1348
|
+
return styles[feature.getGeometry().getType()];
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
function createBox() {
|
|
1352
|
+
return function(coordinates, geometry, projection) {
|
|
1353
|
+
const extent = boundingExtent(
|
|
1354
|
+
/** @type {LineCoordType} */
|
|
1355
|
+
[
|
|
1356
|
+
coordinates[0],
|
|
1357
|
+
coordinates[coordinates.length - 1]
|
|
1358
|
+
].map(function(coordinate) {
|
|
1359
|
+
return fromUserCoordinate(coordinate, projection);
|
|
1360
|
+
})
|
|
1361
|
+
);
|
|
1362
|
+
const boxCoordinates = [
|
|
1363
|
+
[
|
|
1364
|
+
getBottomLeft(extent),
|
|
1365
|
+
getBottomRight(extent),
|
|
1366
|
+
getTopRight(extent),
|
|
1367
|
+
getTopLeft(extent),
|
|
1368
|
+
getBottomLeft(extent)
|
|
1369
|
+
]
|
|
1370
|
+
];
|
|
1371
|
+
if (geometry) {
|
|
1372
|
+
geometry.setCoordinates(boxCoordinates);
|
|
1373
|
+
} else {
|
|
1374
|
+
geometry = new Polygon_default(boxCoordinates);
|
|
1375
|
+
}
|
|
1376
|
+
const userProjection = getUserProjection();
|
|
1377
|
+
if (userProjection) {
|
|
1378
|
+
geometry.transform(projection, userProjection);
|
|
1379
|
+
}
|
|
1380
|
+
return geometry;
|
|
1381
|
+
};
|
|
1382
|
+
}
|
|
1383
|
+
function getMode(type) {
|
|
1384
|
+
switch (type) {
|
|
1385
|
+
case "Point":
|
|
1386
|
+
case "MultiPoint":
|
|
1387
|
+
return "Point";
|
|
1388
|
+
case "LineString":
|
|
1389
|
+
case "MultiLineString":
|
|
1390
|
+
return "LineString";
|
|
1391
|
+
case "Polygon":
|
|
1392
|
+
case "MultiPolygon":
|
|
1393
|
+
return "Polygon";
|
|
1394
|
+
case "Circle":
|
|
1395
|
+
return "Circle";
|
|
1396
|
+
default:
|
|
1397
|
+
throw new Error("Invalid type: " + type);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
var Draw_default = Draw;
|
|
1401
|
+
|
|
1402
|
+
// src/components/map/controls/draw-toolbar.control.ts
|
|
1403
|
+
var _draw, _options, _tooltipEl, _cancelBtn, _activeTool, _boundMoveHandler, _fitToFeature, fitToFeature_fn, _getButtonIndex, getButtonIndex_fn, _getIcon, getIcon_fn, _getTitle, getTitle_fn, _getTooltipText, getTooltipText_fn, _getDrawDefaults, getDrawDefaults_fn, _getDrawOptions, getDrawOptions_fn, _activateTool, activateTool_fn, _moveHandler, moveHandler_fn, _cleanup, cleanup_fn;
|
|
1404
|
+
var DrawToolbarControl = class extends Control_default {
|
|
1405
|
+
constructor(vectorLayer, options) {
|
|
1406
|
+
const element = document.createElement("div");
|
|
1407
|
+
element.className = "draw-toolbar ol-unselectable ol-control";
|
|
1408
|
+
super({ element });
|
|
1409
|
+
__privateAdd(this, _fitToFeature);
|
|
1410
|
+
__privateAdd(this, _getButtonIndex);
|
|
1411
|
+
__privateAdd(this, _getIcon);
|
|
1412
|
+
__privateAdd(this, _getTitle);
|
|
1413
|
+
__privateAdd(this, _getTooltipText);
|
|
1414
|
+
__privateAdd(this, _getDrawDefaults);
|
|
1415
|
+
__privateAdd(this, _getDrawOptions);
|
|
1416
|
+
__privateAdd(this, _activateTool);
|
|
1417
|
+
__privateAdd(this, _moveHandler);
|
|
1418
|
+
__privateAdd(this, _cleanup);
|
|
1419
|
+
__privateAdd(this, _draw, void 0);
|
|
1420
|
+
__privateAdd(this, _options, void 0);
|
|
1421
|
+
__privateAdd(this, _tooltipEl, void 0);
|
|
1422
|
+
__privateAdd(this, _cancelBtn, void 0);
|
|
1423
|
+
// @ts-expect-error
|
|
1424
|
+
__privateAdd(this, _activeTool, void 0);
|
|
1425
|
+
__privateAdd(this, _boundMoveHandler, void 0);
|
|
1426
|
+
__privateSet(this, _options, options);
|
|
1427
|
+
let tools = ["bbox", "polygon", "point", "circle"];
|
|
1428
|
+
tools.forEach((tool) => {
|
|
1429
|
+
const btn = document.createElement("button");
|
|
1430
|
+
btn.innerHTML = __privateMethod(this, _getIcon, getIcon_fn).call(this, tool);
|
|
1431
|
+
btn.title = __privateMethod(this, _getTitle, getTitle_fn).call(this, tool);
|
|
1432
|
+
btn.addEventListener("click", () => __privateMethod(this, _activateTool, activateTool_fn).call(this, tool));
|
|
1433
|
+
element.appendChild(btn);
|
|
1434
|
+
this.toggleButtonVisibility(tool);
|
|
1435
|
+
});
|
|
1436
|
+
const cancelBtn = document.createElement("button");
|
|
1437
|
+
cancelBtn.innerHTML = "\u2715";
|
|
1438
|
+
cancelBtn.style.display = "none";
|
|
1439
|
+
element.appendChild(cancelBtn);
|
|
1440
|
+
this.vectorLayer = vectorLayer;
|
|
1441
|
+
__privateSet(this, _cancelBtn, cancelBtn);
|
|
1442
|
+
__privateSet(this, _tooltipEl, document.createElement("div"));
|
|
1443
|
+
__privateGet(this, _tooltipEl).className = "ol-tooltip";
|
|
1444
|
+
__privateGet(this, _tooltipEl).style.display = "none";
|
|
1445
|
+
cancelBtn.addEventListener("click", () => __privateMethod(this, _cleanup, cleanup_fn).call(this));
|
|
1446
|
+
__privateSet(this, _boundMoveHandler, __privateMethod(this, _moveHandler, moveHandler_fn).bind(this));
|
|
1447
|
+
}
|
|
1448
|
+
setOptions(options) {
|
|
1449
|
+
__privateSet(this, _options, __spreadValues(__spreadValues({}, __privateGet(this, _options)), options));
|
|
1450
|
+
this.toggleButtonVisibility("bbox");
|
|
1451
|
+
this.toggleButtonVisibility("polygon");
|
|
1452
|
+
this.toggleButtonVisibility("point");
|
|
1453
|
+
this.toggleButtonVisibility("circle");
|
|
1454
|
+
}
|
|
1455
|
+
clearValue() {
|
|
1456
|
+
var _a;
|
|
1457
|
+
__privateMethod(this, _cleanup, cleanup_fn).call(this);
|
|
1458
|
+
(_a = this.vectorLayer.getSource()) == null ? void 0 : _a.clear();
|
|
1459
|
+
}
|
|
1460
|
+
setValue(value, fitToValue = false) {
|
|
1461
|
+
this.clearValue();
|
|
1462
|
+
const source = this.vectorLayer.getSource();
|
|
1463
|
+
if (!source)
|
|
1464
|
+
return;
|
|
1465
|
+
let feature;
|
|
1466
|
+
if (value instanceof LatLng) {
|
|
1467
|
+
feature = this.buildPointFeature(value);
|
|
1468
|
+
} else if (value instanceof LatLngBounds) {
|
|
1469
|
+
feature = this.buildBBoxFeature(value);
|
|
1470
|
+
}
|
|
1471
|
+
if (!feature)
|
|
1472
|
+
return;
|
|
1473
|
+
source.addFeature(feature);
|
|
1474
|
+
if (fitToValue) {
|
|
1475
|
+
__privateMethod(this, _fitToFeature, fitToFeature_fn).call(this, feature);
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
setMap(map) {
|
|
1479
|
+
super.setMap(map);
|
|
1480
|
+
if (map) {
|
|
1481
|
+
map.getViewport().appendChild(__privateGet(this, _tooltipEl));
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
buildPointFeature(latLng) {
|
|
1485
|
+
const coords = transform([latLng.lng, latLng.lat], "EPSG:4326", "EPSG:3857");
|
|
1486
|
+
const point = new Point_default(coords);
|
|
1487
|
+
const feature = new Feature_default({ geometry: point });
|
|
1488
|
+
feature.set("drawtool", "point");
|
|
1489
|
+
return feature;
|
|
1490
|
+
}
|
|
1491
|
+
buildBBoxFeature(bounds) {
|
|
1492
|
+
const west = bounds.getWest();
|
|
1493
|
+
const south = bounds.getSouth();
|
|
1494
|
+
const east = bounds.getEast();
|
|
1495
|
+
const north = bounds.getNorth();
|
|
1496
|
+
const coordinates = [
|
|
1497
|
+
[west, south],
|
|
1498
|
+
[west, north],
|
|
1499
|
+
[east, north],
|
|
1500
|
+
[east, south],
|
|
1501
|
+
[west, south]
|
|
1502
|
+
].map((coord) => transform(coord, "EPSG:4326", "EPSG:3857"));
|
|
1503
|
+
const polygon = new Polygon_default([coordinates]);
|
|
1504
|
+
const feature = new Feature_default({ geometry: polygon });
|
|
1505
|
+
feature.set("drawtool", "bbox");
|
|
1506
|
+
return feature;
|
|
1507
|
+
}
|
|
1508
|
+
toggleButtonVisibility(tool) {
|
|
1509
|
+
var _a, _b, _c;
|
|
1510
|
+
const show = (_b = (_a = __privateGet(this, _options)) == null ? void 0 : _a[`show${tool.charAt(0).toUpperCase() + tool.slice(1)}Tool`]) != null ? _b : false;
|
|
1511
|
+
const btn = (_c = this.element) == null ? void 0 : _c.querySelector(
|
|
1512
|
+
`button:nth-child(${__privateMethod(this, _getButtonIndex, getButtonIndex_fn).call(this, tool)})`
|
|
1513
|
+
);
|
|
1514
|
+
if (btn) {
|
|
1515
|
+
btn.style.display = show ? "inline-block" : "none";
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
};
|
|
1519
|
+
_draw = new WeakMap();
|
|
1520
|
+
_options = new WeakMap();
|
|
1521
|
+
_tooltipEl = new WeakMap();
|
|
1522
|
+
_cancelBtn = new WeakMap();
|
|
1523
|
+
_activeTool = new WeakMap();
|
|
1524
|
+
_boundMoveHandler = new WeakMap();
|
|
1525
|
+
_fitToFeature = new WeakSet();
|
|
1526
|
+
fitToFeature_fn = function(feature) {
|
|
1527
|
+
const map = this.getMap();
|
|
1528
|
+
if (!map)
|
|
1529
|
+
return;
|
|
1530
|
+
const geometry = feature.getGeometry();
|
|
1531
|
+
if (!geometry)
|
|
1532
|
+
return;
|
|
1533
|
+
const extent = geometry.getExtent();
|
|
1534
|
+
if (!extent)
|
|
1535
|
+
return;
|
|
1536
|
+
map.getView().fit(extent, {
|
|
1537
|
+
padding: [20, 20, 20, 20],
|
|
1538
|
+
maxZoom: 5,
|
|
1539
|
+
// don't allow zooming in too far, you lose context of where you are on the map
|
|
1540
|
+
duration: 250
|
|
1541
|
+
});
|
|
1542
|
+
};
|
|
1543
|
+
_getButtonIndex = new WeakSet();
|
|
1544
|
+
getButtonIndex_fn = function(tool) {
|
|
1545
|
+
if (tool === "bbox")
|
|
1546
|
+
return 1;
|
|
1547
|
+
if (tool === "polygon")
|
|
1548
|
+
return 2;
|
|
1549
|
+
if (tool === "point")
|
|
1550
|
+
return 3;
|
|
1551
|
+
if (tool === "circle")
|
|
1552
|
+
return 4;
|
|
1553
|
+
return -1;
|
|
1554
|
+
};
|
|
1555
|
+
_getIcon = new WeakSet();
|
|
1556
|
+
getIcon_fn = function(tool) {
|
|
1557
|
+
if (tool === "bbox")
|
|
1558
|
+
return '<div class="control-button control-bbox"></div>';
|
|
1559
|
+
if (tool === "polygon")
|
|
1560
|
+
return '<div class="control-button control-polygon"></div>';
|
|
1561
|
+
if (tool === "point")
|
|
1562
|
+
return '<div class="control-button control-point"></div>';
|
|
1563
|
+
if (tool === "circle")
|
|
1564
|
+
return '<div class="control-button control-circle"></div>';
|
|
1565
|
+
return "";
|
|
1566
|
+
};
|
|
1567
|
+
_getTitle = new WeakSet();
|
|
1568
|
+
getTitle_fn = function(tool) {
|
|
1569
|
+
if (tool === "bbox")
|
|
1570
|
+
return "Draw a rectangle";
|
|
1571
|
+
if (tool === "polygon")
|
|
1572
|
+
return "Draw a polygon";
|
|
1573
|
+
if (tool === "point")
|
|
1574
|
+
return "Choose a point";
|
|
1575
|
+
if (tool === "circle")
|
|
1576
|
+
return "Draw a circle";
|
|
1577
|
+
return "";
|
|
1578
|
+
};
|
|
1579
|
+
_getTooltipText = new WeakSet();
|
|
1580
|
+
getTooltipText_fn = function(tool) {
|
|
1581
|
+
if (tool === "bbox")
|
|
1582
|
+
return "Click and drag to draw a bounding box";
|
|
1583
|
+
if (tool === "polygon")
|
|
1584
|
+
return "Click to draw polygon";
|
|
1585
|
+
if (tool === "point")
|
|
1586
|
+
return "Click to place point";
|
|
1587
|
+
if (tool === "circle")
|
|
1588
|
+
return "Click and drag to draw a circle";
|
|
1589
|
+
return "Click to draw";
|
|
1590
|
+
};
|
|
1591
|
+
_getDrawDefaults = new WeakSet();
|
|
1592
|
+
getDrawDefaults_fn = function() {
|
|
1593
|
+
return {
|
|
1594
|
+
source: this.vectorLayer.getSource(),
|
|
1595
|
+
dragVertexDelay: 0,
|
|
1596
|
+
style: new Style_default({
|
|
1597
|
+
stroke: new Stroke_default({
|
|
1598
|
+
color: "#0088ff",
|
|
1599
|
+
width: 2,
|
|
1600
|
+
lineDash: [8, 4]
|
|
1601
|
+
}),
|
|
1602
|
+
fill: new Fill_default({
|
|
1603
|
+
color: "rgba(51, 136, 255, 0.1)"
|
|
1604
|
+
})
|
|
1605
|
+
})
|
|
1606
|
+
};
|
|
1607
|
+
};
|
|
1608
|
+
_getDrawOptions = new WeakSet();
|
|
1609
|
+
getDrawOptions_fn = function(tool) {
|
|
1610
|
+
const base = __privateMethod(this, _getDrawDefaults, getDrawDefaults_fn).call(this);
|
|
1611
|
+
if (tool === "bbox") {
|
|
1612
|
+
return __spreadProps(__spreadValues({}, base), {
|
|
1613
|
+
type: "Circle",
|
|
1614
|
+
geometryFunction: createBox(),
|
|
1615
|
+
freehand: true
|
|
1616
|
+
});
|
|
1617
|
+
}
|
|
1618
|
+
if (tool === "circle") {
|
|
1619
|
+
return __spreadProps(__spreadValues({}, base), {
|
|
1620
|
+
type: "Circle",
|
|
1621
|
+
freehand: true
|
|
1622
|
+
});
|
|
1623
|
+
}
|
|
1624
|
+
if (tool === "polygon") {
|
|
1625
|
+
return __spreadProps(__spreadValues({}, base), {
|
|
1626
|
+
type: "Polygon"
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
return __spreadProps(__spreadValues({}, base), {
|
|
1630
|
+
type: "Point"
|
|
1631
|
+
});
|
|
1632
|
+
};
|
|
1633
|
+
_activateTool = new WeakSet();
|
|
1634
|
+
activateTool_fn = function(tool) {
|
|
1635
|
+
var _a;
|
|
1636
|
+
const map = this.getMap();
|
|
1637
|
+
if (!map)
|
|
1638
|
+
return;
|
|
1639
|
+
__privateMethod(this, _cleanup, cleanup_fn).call(this);
|
|
1640
|
+
__privateSet(this, _activeTool, tool);
|
|
1641
|
+
(_a = this.vectorLayer.getSource()) == null ? void 0 : _a.clear();
|
|
1642
|
+
const viewport = map.getViewport();
|
|
1643
|
+
if (viewport) {
|
|
1644
|
+
viewport.style.cursor = "crosshair";
|
|
1645
|
+
}
|
|
1646
|
+
const drawOptions = __privateMethod(this, _getDrawOptions, getDrawOptions_fn).call(this, tool);
|
|
1647
|
+
__privateSet(this, _draw, new Draw_default(drawOptions));
|
|
1648
|
+
map.addInteraction(__privateGet(this, _draw));
|
|
1649
|
+
__privateGet(this, _tooltipEl).style.display = "block";
|
|
1650
|
+
__privateGet(this, _tooltipEl).innerText = __privateMethod(this, _getTooltipText, getTooltipText_fn).call(this, tool);
|
|
1651
|
+
__privateGet(this, _cancelBtn).style.display = "inline-block";
|
|
1652
|
+
map.on("pointermove", __privateGet(this, _boundMoveHandler));
|
|
1653
|
+
__privateGet(this, _draw).on("drawend", (event) => {
|
|
1654
|
+
event.feature.set("drawtool", tool);
|
|
1655
|
+
__privateMethod(this, _cleanup, cleanup_fn).call(this);
|
|
1656
|
+
});
|
|
1657
|
+
__privateGet(this, _draw).on("drawstart", (e) => {
|
|
1658
|
+
const geom = e.feature.getGeometry();
|
|
1659
|
+
geom.on("change", () => {
|
|
1660
|
+
const extent = geom.getExtent();
|
|
1661
|
+
const bbox4326 = transformExtent(extent, "EPSG:3857", "EPSG:4326");
|
|
1662
|
+
const [west, south, east, north] = bbox4326;
|
|
1663
|
+
__privateGet(this, _tooltipEl).innerHTML = `
|
|
1664
|
+
W: ${west.toFixed(4)}<br/>
|
|
1665
|
+
S: ${south.toFixed(4)}<br/>
|
|
1666
|
+
E: ${east.toFixed(4)}<br/>
|
|
1667
|
+
N: ${north.toFixed(4)}
|
|
1668
|
+
`;
|
|
1669
|
+
});
|
|
1670
|
+
});
|
|
1671
|
+
};
|
|
1672
|
+
_moveHandler = new WeakSet();
|
|
1673
|
+
moveHandler_fn = function(e) {
|
|
1674
|
+
__privateGet(this, _tooltipEl).style.left = e.pixel[0] + 12 + "px";
|
|
1675
|
+
__privateGet(this, _tooltipEl).style.top = e.pixel[1] + 12 + "px";
|
|
1676
|
+
};
|
|
1677
|
+
_cleanup = new WeakSet();
|
|
1678
|
+
cleanup_fn = function() {
|
|
1679
|
+
const map = this.getMap();
|
|
1680
|
+
if (map && __privateGet(this, _draw)) {
|
|
1681
|
+
const viewport = map.getViewport();
|
|
1682
|
+
map.removeInteraction(__privateGet(this, _draw));
|
|
1683
|
+
map.un("pointermove", __privateGet(this, _boundMoveHandler));
|
|
1684
|
+
if (viewport) {
|
|
1685
|
+
viewport.style.cursor = "";
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
__privateSet(this, _draw, void 0);
|
|
1689
|
+
__privateSet(this, _activeTool, void 0);
|
|
1690
|
+
__privateGet(this, _tooltipEl).style.display = "none";
|
|
1691
|
+
__privateGet(this, _cancelBtn).style.display = "none";
|
|
1692
|
+
};
|
|
1693
|
+
|
|
1694
|
+
export {
|
|
1695
|
+
Draw_default,
|
|
1696
|
+
DrawToolbarControl
|
|
1697
|
+
};
|