mixdashboards 1.0.32 → 1.0.39
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/dist/CoordinateSystem-BMkAxlii.js +6 -0
- package/dist/CoordinateSystem-DWnjjFwb.cjs +1 -0
- package/dist/EChartComponentBase-BQOhWkz2.js +114 -0
- package/dist/EChartComponentBase-BaQpBzVC.cjs +1 -0
- package/dist/LegendVisualProvider-BDw4_0K3.cjs +1 -0
- package/dist/LegendVisualProvider-BP9kA8co.js +44 -0
- package/dist/MarkerView-BG_nYESR.cjs +1 -0
- package/dist/MarkerView-CtWJi5UZ.js +192 -0
- package/dist/RoamController--cgD3aNm.cjs +1 -0
- package/dist/RoamController-DmBIwcAZ.js +124 -0
- package/dist/UniverSheet-KlvmL1Yw.cjs +1 -0
- package/dist/UniverSheet-MSHzUXq0.js +180 -0
- package/dist/VisualMapping-D-MA7S0X.js +260 -0
- package/dist/VisualMapping-MilpZvD_.cjs +1 -0
- package/dist/accelerationChart-B1HPMmd2.js +577 -0
- package/dist/accelerationChart-DZj2V2vD.cjs +6 -0
- package/dist/actionItem-BYCPoQK7.cjs +1 -0
- package/dist/actionItem-Bb2xiYlY.js +686 -0
- package/dist/alarmLevelChart-Bb0mAbwQ.cjs +2 -0
- package/dist/alarmLevelChart-CCioESvL.js +182 -0
- package/dist/alertTable-CQwr8YYt.js +301 -0
- package/dist/alertTable-oaX5eJC0.cjs +1 -0
- package/dist/annualRainfallChart-C21jEMBe.js +185 -0
- package/dist/annualRainfallChart-pO8q6aUJ.cjs +1 -0
- package/dist/api-C0GhBpqd.js +125 -0
- package/dist/api-P_s372dW.cjs +1 -0
- package/dist/aqi-DlY2r7OA.cjs +3 -0
- package/dist/aqi-iLwQH4rc.js +145 -0
- package/dist/aqiIndass-BaIVBfdC.cjs +3 -0
- package/dist/aqiIndass-DBeVSBdy.js +301 -0
- package/dist/arrayCard-DNNUEPvW.js +93 -0
- package/dist/arrayCard-OlVAAsZq.cjs +1 -0
- package/dist/audio-CAP4D-J2.js +301 -0
- package/dist/audio-CThzVIDU.cjs +1 -0
- package/dist/axisAlignTicks-BqVUa467.js +481 -0
- package/dist/axisAlignTicks-CDNWKJRo.cjs +1 -0
- package/dist/bar-BjR566__.cjs +2 -0
- package/dist/bar-D8C06GO4.js +232 -0
- package/dist/bmp-Cjizh2x6.js +226 -0
- package/dist/bmp-DsmTzyce.cjs +1 -0
- package/dist/box-DqewT3MF.js +352 -0
- package/dist/box-qgu_67OD.cjs +1 -0
- package/dist/chartConfigPanel-BiQArCoQ.cjs +1 -0
- package/dist/chartConfigPanel-DwAUq3pf.js +408 -0
- package/dist/circleBar-CO89T7kj.cjs +4 -0
- package/dist/circleBar-DGHDWQih.js +196 -0
- package/dist/clock-32hGccm4.cjs +1 -0
- package/dist/clock-CT8YXEU3.js +274 -0
- package/dist/clt-5bP_g1O-.cjs +1 -0
- package/dist/clt-FfIEfGtn.js +293 -0
- package/dist/cmc-B2nQFZIS.js +269 -0
- package/dist/cmc-dbuLkE8o.cjs +1 -0
- package/dist/cmp-QQlYcnqo.js +378 -0
- package/dist/cmp-l3U9fIrz.cjs +6 -0
- package/dist/composite-CbsUYl-u.js +136 -0
- package/dist/composite-Cf24lSyN.cjs +1 -0
- package/dist/composite-DjhrBgG1.js +323 -0
- package/dist/composite-DlY2_x6P.cjs +3 -0
- package/dist/config-BLSroAzs.cjs +1 -0
- package/dist/config-Cc2W4vke.js +9 -0
- package/dist/controlList-BdF8xNAi.js +879 -0
- package/dist/controlList-De6PXdOc.cjs +1 -0
- package/dist/controlRecordList-CKpAr1ON.js +421 -0
- package/dist/controlRecordList-u5a7chIX.cjs +1 -0
- package/dist/crd-BVAf41oX.js +113 -0
- package/dist/crd-BoaXQhFQ.cjs +1 -0
- package/dist/createSeriesData-Cz83cqoZ.cjs +1 -0
- package/dist/createSeriesData-E53TTCAt.js +116 -0
- package/dist/createSeriesDataSimply-Bsly4zZA.js +14 -0
- package/dist/createSeriesDataSimply-CjfZL_jf.cjs +1 -0
- package/dist/ctrBtn-C9kQiqY1.cjs +1 -0
- package/dist/ctrBtn-ZPRYWE66.js +215 -0
- package/dist/ctrSet-C87dxLfQ.js +247 -0
- package/dist/ctrSet-CNCrnLSs.cjs +1 -0
- package/dist/ctrSwitch-CVEtbdfb.cjs +1 -0
- package/dist/ctrSwitch-CkC_Axtp.js +207 -0
- package/dist/cursorHelper-DE0KU4_J.js +29 -0
- package/dist/cursorHelper-DsTR8jVF.cjs +1 -0
- package/dist/customGraphicKeyframeAnimation-BJ_z0kB3.js +330 -0
- package/dist/customGraphicKeyframeAnimation-CEIvOjMs.cjs +1 -0
- package/dist/dataManagement-CjlNfeYq.js +672 -0
- package/dist/dataManagement-n711sd1g.cjs +1 -0
- package/dist/dataReport-BsVjW3p7.cjs +4 -0
- package/dist/dataReport-ByjswEqq.js +787 -0
- package/dist/dataSample-BXwc06Sb.js +114 -0
- package/dist/dataSample-D4ycwmll.cjs +1 -0
- package/dist/dataTable-DX500R1i.js +217 -0
- package/dist/dataTable-K7j4fhnq.cjs +1 -0
- package/dist/datetime-DVbJtALf.js +113 -0
- package/dist/datetime-DYXWKrXI.cjs +1 -0
- package/dist/deepClusterSlipSurface-B7nkEM9A.cjs +1 -0
- package/dist/deepClusterSlipSurface-CQUE05cK.js +372 -0
- package/dist/deepDataMatrix-DHZA0IAm.cjs +1 -0
- package/dist/deepDataMatrix-ai5rB6ET.js +238 -0
- package/dist/deepDisplacement3D-BFqKqSYg.cjs +4289 -0
- package/dist/deepDisplacement3D-BsUzvbQb.js +26052 -0
- package/dist/deepDisplacementChart-2JZNrhrw.cjs +5 -0
- package/dist/deepDisplacementChart-BCIuCMdK.js +585 -0
- package/dist/deepDisplacementChart-Ba67v6um.cjs +6 -0
- package/dist/deepDisplacementChart-igl4rW1K.js +340 -0
- package/dist/deepDisplacementView-BedWJsx7.js +231 -0
- package/dist/deepDisplacementView-wQxyKzB-.cjs +8 -0
- package/dist/deepNodeTemperatureChart-DLeb9jKp.js +347 -0
- package/dist/deepNodeTemperatureChart-albL8hKa.cjs +1 -0
- package/dist/deepTangentAngleChart-C6xOiITk.js +420 -0
- package/dist/deepTangentAngleChart-DukevXaM.cjs +1 -0
- package/dist/deepTemperatureField-B-y94GPV.js +398 -0
- package/dist/deepTemperatureField-De4xKoHw.cjs +1 -0
- package/dist/deepTrendChart-DCkV2HNv.js +345 -0
- package/dist/deepTrendChart-MmuYSXtu.cjs +1 -0
- package/dist/deviceOnlineStatus-B5cCjhNA.cjs +2 -0
- package/dist/deviceOnlineStatus-CFuCTx7_.js +178 -0
- package/dist/deviceStatus-B2ibBDSi.js +194 -0
- package/dist/deviceStatus-DsEtKiGo.cjs +1 -0
- package/dist/displacementDataTable-BDqG1IvI.js +256 -0
- package/dist/displacementDataTable-oLnUdafv.cjs +1 -0
- package/dist/displacementTrajectoryChart-CBhPwZhe.cjs +22 -0
- package/dist/displacementTrajectoryChart-Crf55oKi.js +597 -0
- package/dist/displacementTrendChart-10n_lC9j.js +364 -0
- package/dist/displacementTrendChart-CWihCuIJ.cjs +5 -0
- package/dist/dxf-D8zHpz5g.js +2768 -0
- package/dist/dxf-DDh_DcQy.cjs +1 -0
- package/dist/dzc-DLCdTCwW.js +144 -0
- package/dist/dzc-uNTDJqpi.cjs +2 -0
- package/dist/echarts-BB8O2KSA.cjs +21 -0
- package/dist/echarts-BVht3HHb.js +13787 -0
- package/dist/ele-aqi-icon-BMm9WgFH.cjs +1 -0
- package/dist/ele-aqi-icon-DsYfU5th.js +5 -0
- package/dist/ele-bar-icon-C-GiCs2a.js +5 -0
- package/dist/ele-bar-icon-V94clxg_.cjs +1 -0
- package/dist/ele-bmp-icon-BBI0-SX7.cjs +1 -0
- package/dist/ele-bmp-icon-Pdolk1J5.js +5 -0
- package/dist/ele-circleBar-icon-DNBUxt0A.js +5 -0
- package/dist/ele-circleBar-icon-Da0-L9sa.cjs +1 -0
- package/dist/ele-clt-icon-BEVOS7Tq.cjs +1 -0
- package/dist/ele-clt-icon-DuU4Q401.js +5 -0
- package/dist/ele-cmp-icon-CEP91RUe.js +5 -0
- package/dist/ele-cmp-icon-yUlU6c_Q.cjs +1 -0
- package/dist/ele-crd-icon-BXxB7P3T.js +5 -0
- package/dist/ele-crd-icon-BvNgAPKW.cjs +1 -0
- package/dist/ele-ctrSet-icon-BtKGrCid.js +5 -0
- package/dist/ele-ctrSet-icon-DCsPO0tL.cjs +1 -0
- package/dist/ele-dateTime-icon-BEGFlwID.js +5 -0
- package/dist/ele-dateTime-icon-BgZ2_KWW.cjs +1 -0
- package/dist/ele-dzc-icon-D6eVpaHp.js +5 -0
- package/dist/ele-dzc-icon-h5wOUHF0.cjs +1 -0
- package/dist/ele-evn-icon-DUQMS-9T.cjs +1 -0
- package/dist/ele-evn-icon-MWzAujnD.js +5 -0
- package/dist/ele-gag-icon-CB5dJeYF.js +5 -0
- package/dist/ele-gag-icon-Ce1hl9NI.cjs +1 -0
- package/dist/ele-glbModel-icon-ByACDCrv.cjs +1 -0
- package/dist/ele-glbModel-icon-l_SMi3ik.js +5 -0
- package/dist/ele-grd-icon-DR52zwGR.js +5 -0
- package/dist/ele-grd-icon-ZUb-megQ.cjs +1 -0
- package/dist/ele-gridview-icon-D3GcssP6.cjs +1 -0
- package/dist/ele-gridview-icon-cSd1oIDi.js +5 -0
- package/dist/ele-lin-icon-Dax-ZiWV.js +5 -0
- package/dist/ele-lin-icon-Dke_1AmT.cjs +1 -0
- package/dist/ele-lst-icon-CKpeRKmk.js +5 -0
- package/dist/ele-lst-icon-CrxnHZ-A.cjs +1 -0
- package/dist/ele-mxa-icon-CJWttkCK.js +5 -0
- package/dist/ele-mxa-icon-fgN0MLnh.cjs +1 -0
- package/dist/ele-rtn-icon-BrsJIU8J.cjs +1 -0
- package/dist/ele-rtn-icon-CqCKSHIw.js +5 -0
- package/dist/ele-textbox-icon-ClGaLi5p.js +5 -0
- package/dist/ele-textbox-icon-g_5kV8t6.cjs +1 -0
- package/dist/ele-vdo-icon-Bgp9gaT6.cjs +1 -0
- package/dist/ele-vdo-icon-DcWebTR5.js +5 -0
- package/dist/ele-vlu-icon-Bg6EHZdJ.js +5 -0
- package/dist/ele-vlu-icon-Dv-R7Xuc.cjs +1 -0
- package/dist/element-resize-detector-Bo5uDQAu.cjs +6 -0
- package/dist/element-resize-detector-DJcsrJ8s.js +1547 -0
- package/dist/evn-DuL5oVRl.cjs +1 -0
- package/dist/evn-YwCALVXj.js +116 -0
- package/dist/evolutionChart-4noZSdLX.js +406 -0
- package/dist/evolutionChart-AeL67MAt.cjs +1 -0
- package/dist/fileViewer-DiH3PM0r.js +415 -0
- package/dist/fileViewer-bsrjlJkC.cjs +1 -0
- package/dist/filterBar-CWEguwYc.js +394 -0
- package/dist/filterBar-Ct1BFhrS.cjs +1 -0
- package/dist/fireCombustionCurve-DYPC4zKJ.js +405 -0
- package/dist/fireCombustionCurve-DyiQn-WA.cjs +1 -0
- package/dist/fireFilterBar-Bdm2ljuO.cjs +1 -0
- package/dist/fireFilterBar-DGHPNTwF.js +221 -0
- package/dist/gag-HiNaL81R.cjs +1 -0
- package/dist/gag-kvkKzJuO.js +125 -0
- package/dist/glbModel-CUz6CyVF.js +2724 -0
- package/dist/glbModel-DtBI72ap.cjs +5 -0
- package/dist/gnssFilterBar-BQgY5x1W.cjs +1 -0
- package/dist/gnssFilterBar-TBtirXIB.js +310 -0
- package/dist/gnssHistoryTable-D1ZLJOgh.cjs +3 -0
- package/dist/gnssHistoryTable-U8O7nyO7.js +398 -0
- package/dist/gnssMapView-42zmAd9q.cjs +7 -0
- package/dist/gnssMapView-CaBfWeT1.js +699 -0
- package/dist/gnssTimeSeriesChart-BrXYvuh6.js +421 -0
- package/dist/gnssTimeSeriesChart-CV2w_Aik.cjs +1 -0
- package/dist/gnssXYTrajectory-BmzSYjQ_.cjs +5 -0
- package/dist/gnssXYTrajectory-D2DoYnze.js +304 -0
- package/dist/grd-B0GUjLm9.js +339 -0
- package/dist/grd-DW8cSFVR.cjs +1 -0
- package/dist/grdIndass-BeBXVsos.cjs +1 -0
- package/dist/grdIndass-DduUKZJm.js +216 -0
- package/dist/grg-CeX0pirQ.js +194 -0
- package/dist/grg-fnpcXtju.cjs +1 -0
- package/dist/gridview-BPwWXza9.js +183 -0
- package/dist/gridview-DpABhCIw.cjs +1 -0
- package/dist/groupCard-De1E15mW.js +132 -0
- package/dist/groupCard-WNE6gAAl.cjs +1 -0
- package/dist/headerBar-CZ3qcLHo.js +210 -0
- package/dist/headerBar-Qi1EXrr6.cjs +1 -0
- package/dist/{history-DigzRtjC.js → history-BkZhlpdY.js} +5 -3
- package/dist/history-DAmBl4_5.cjs +1 -0
- package/dist/index-ButoLLAe.js +8655 -0
- package/dist/index-Mh5Dw2sd.cjs +585 -0
- package/dist/index-kShjySl9.js +5313 -0
- package/dist/index-mAPVa0s4.cjs +11 -0
- package/dist/insarDeformChart-BGr2xe7w.cjs +1 -0
- package/dist/insarDeformChart-CnuSL1d9.js +216 -0
- package/dist/insarImageViewer-DRgGdQmN.cjs +1 -0
- package/dist/insarImageViewer-EmVThmVQ.js +268 -0
- package/dist/install-8XfFtnlL.js +853 -0
- package/dist/install-9_V0b6vf.js +497 -0
- package/dist/install-B0x4IqQr.js +1258 -0
- package/dist/install-B1IEhhn3.cjs +1 -0
- package/dist/install-B2TChEcT.js +895 -0
- package/dist/install-B65ZIqAx.cjs +1 -0
- package/dist/install-BBrAry2m.js +8 -0
- package/dist/install-BRjgycz_.cjs +1 -0
- package/dist/install-BUu5ESB7.js +447 -0
- package/dist/install-BamnGDPb.cjs +1 -0
- package/dist/install-BifpoHNI.js +1817 -0
- package/dist/install-BvOpNm0Y.cjs +1 -0
- package/dist/install-ByPD0oOh.cjs +1 -0
- package/dist/install-BzdOSCzO.js +785 -0
- package/dist/install-C8buXQPI.cjs +1 -0
- package/dist/install-C9Cdzkc6.js +265 -0
- package/dist/install-CBde4hAM.js +112 -0
- package/dist/install-CIT6k8Ga.cjs +1 -0
- package/dist/install-CYwVETsi.cjs +1 -0
- package/dist/install-C_3uGWLu.js +2328 -0
- package/dist/install-Ch5d8i37.cjs +1 -0
- package/dist/install-CltTFs4e.cjs +3 -0
- package/dist/install-Csxa7Kv7.cjs +18 -0
- package/dist/install-Cx1i_m0k.js +1168 -0
- package/dist/install-D1QM80AD.js +227 -0
- package/dist/install-D7znHb-b.js +604 -0
- package/dist/install-DHY9y86B.cjs +3 -0
- package/dist/install-DIlB2q7w.cjs +1 -0
- package/dist/install-DV5cEgNV.cjs +1 -0
- package/dist/install-DWm3j_D3.js +38 -0
- package/dist/install-FDYiy_gL.js +250 -0
- package/dist/install-LtoYukZU.cjs +1 -0
- package/dist/install-MS3ZY7fF.js +685 -0
- package/dist/install-hfre7yvV.js +727 -0
- package/dist/install-kGXY_57n.cjs +1 -0
- package/dist/install-nDY6w-GK.cjs +1 -0
- package/dist/install-oGjJ0_bF.js +588 -0
- package/dist/install-z6wShIZI.cjs +1 -0
- package/dist/installCanvasRenderer-CLT2hquJ.js +4260 -0
- package/dist/installCanvasRenderer-CyhM1Qpl.cjs +3 -0
- package/dist/installMarkArea-Cdg4iciO.js +206 -0
- package/dist/installMarkArea-CjyaJPLE.cjs +1 -0
- package/dist/installMarkLine-BgE0YACE.js +533 -0
- package/dist/installMarkLine-Bv53Iw9G.cjs +1 -0
- package/dist/installSimple-BWTCwMdY.js +586 -0
- package/dist/installSimple-c87Ufc4_.cjs +1 -0
- package/dist/kds-CpIQFgeY.js +1203 -0
- package/dist/kds-DTYWOq4K.cjs +3 -0
- package/dist/labelHelper-Cd8oB-sZ.js +26 -0
- package/dist/labelHelper-npJGYQ1j.cjs +1 -0
- package/dist/layerTabs-BATcBkTA.cjs +1 -0
- package/dist/layerTabs-uze6K91A.js +139 -0
- package/dist/lin-Ba6fHkYf.cjs +2 -0
- package/dist/lin-DU_EuPRg.js +239 -0
- package/dist/linIndass-XHKElG7L.js +273 -0
- package/dist/linIndass-urYe5inp.cjs +2 -0
- package/dist/lst-C7aee1cU.js +147 -0
- package/dist/lst-CpmoEQDY.cjs +1 -0
- package/dist/manualEntry-CJPiO5nh.cjs +1 -0
- package/dist/manualEntry-D9m_WPw3.js +662 -0
- package/dist/mapBackground-6g_71Fwa.js +6658 -0
- package/dist/mapBackground-CF_TqNBy.cjs +17 -0
- package/dist/mappingList-CR55Tq4t.cjs +1 -0
- package/dist/mappingList-luT5YE0d.js +917 -0
- package/dist/markdownViewer-CnguoUr8.js +261 -0
- package/dist/markdownViewer-D1hDk2Y7.cjs +3 -0
- package/dist/mix-control-modal-BDHAB4Tw.cjs +1 -0
- package/dist/mix-control-modal-CHiX3hQs.js +147 -0
- package/dist/mixDataPermission-BTA1jNd1.cjs +1 -0
- package/dist/mixDataPermission-BaqV0Z6N.js +760 -0
- package/dist/mixGrid-3BqQCvg8.cjs +1 -0
- package/dist/mixGrid-C0eEvwPy.js +180 -0
- package/dist/mixMap-7upgYwWk.js +258 -0
- package/dist/mixMap-Bw-We4Cm.cjs +1 -0
- package/dist/mixModel-BqE_Kd4c.js +245 -0
- package/dist/mixModel-CgV4XptM.cjs +3 -0
- package/dist/mixPie-9LfMCTQV.cjs +2 -0
- package/dist/mixPie-B-HeglUn.js +168 -0
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +7 -7
- package/dist/mjpegCamera-Cfw3rzT5.js +158 -0
- package/dist/mjpegCamera-nxKfhobY.cjs +1 -0
- package/dist/monitorAlert-Bg5vzzyG.js +225 -0
- package/dist/monitorAlert-Bt0baNh4.cjs +1 -0
- package/dist/monitorData-BvAMeOrp.js +319 -0
- package/dist/monitorData-CzPVIk_4.cjs +1 -0
- package/dist/monitorSpeedChart-0bDuU3Kj.js +603 -0
- package/dist/monitorSpeedChart-C52QjA5K.cjs +16 -0
- package/dist/mxa-BW80xKCc.js +143 -0
- package/dist/mxa-eLAgZPMC.cjs +2 -0
- package/dist/no-image-icon-CPA7RKkF.cjs +1 -0
- package/dist/no-image-icon-n2ZlEjxS.js +1864 -0
- package/dist/objectList-Cf9GMyXN.js +1809 -0
- package/dist/objectList-CpqQxG8L.cjs +1 -0
- package/dist/params-3W3p8QeC.cjs +1 -0
- package/dist/params-DfgBemk0.js +75 -0
- package/dist/photo-BODEtaYh.cjs +1 -0
- package/dist/photo-BfLkWAo8.js +256 -0
- package/dist/pie-BDLg-Rls.js +199 -0
- package/dist/pie-DxoBrm0D.cjs +2 -0
- package/dist/points-DcRmizmA.cjs +1 -0
- package/dist/points-DkG9FRF9.js +277 -0
- package/dist/pressBtn-CXG1eSWC.js +242 -0
- package/dist/pressBtn-t0g4vk7s.cjs +1 -0
- package/dist/progressBar-BXaFKSCq.js +130 -0
- package/dist/progressBar-CJEWkZ42.cjs +1 -0
- package/dist/progressCircle-DpOI5D5z.js +168 -0
- package/dist/progressCircle-uQ7vaMKM.cjs +1 -0
- package/dist/qrcode-CX8aymYZ.js +814 -0
- package/dist/qrcode-DHCRfp0M.cjs +1 -0
- package/dist/raceBar-Cv0-0ogd.cjs +4 -0
- package/dist/raceBar-DFaH342G.js +197 -0
- package/dist/rad-CFswUTwi.cjs +1 -0
- package/dist/rad-NS2G_nMg.js +143 -0
- package/dist/rainfallFilterBar-BI45QvJm.cjs +1 -0
- package/dist/rainfallFilterBar-D_Ye_NeB.js +221 -0
- package/dist/rainfallTimeCurve-BHWqX47Q.js +443 -0
- package/dist/rainfallTimeCurve-Ke1JvSWq.cjs +1 -0
- package/dist/rangeLin-D6VZ2U3C.cjs +3 -0
- package/dist/rangeLin-GMYEgLeP.js +278 -0
- package/dist/request-BD0x5Hkt.js +75 -0
- package/dist/request-Bn100qAJ.cjs +1 -0
- package/dist/retainer1-D2XmjXYH.cjs +1 -0
- package/dist/retainer1-h-Whr2c9.js +290 -0
- package/dist/retainer2-ByQdiRjq.js +504 -0
- package/dist/retainer2-cF-trL2g.cjs +1 -0
- package/dist/riskRegionTable-CQxAkG7k.js +170 -0
- package/dist/riskRegionTable-cKnxra4_.cjs +1 -0
- package/dist/sankey-Bk1IcVJQ.js +171 -0
- package/dist/sankey-MRirEgU0.cjs +1 -0
- package/dist/sausage-DRCw7Qmr.cjs +1 -0
- package/dist/sausage-xU3hOdxD.js +30 -0
- package/dist/scd-BDRpzmsa.js +2577 -0
- package/dist/scd-J-mN3eI5.cjs +1 -0
- package/dist/sectorHelper-BFEnYqut.cjs +1 -0
- package/dist/sectorHelper-DIlWFMnU.js +18 -0
- package/dist/sideMenu-BgTMtnMq.js +225 -0
- package/dist/sideMenu-l8X2E00H.cjs +1 -0
- package/dist/slopeStability-BPf7m0fJ.cjs +1 -0
- package/dist/slopeStability-C5RqZ1im.js +331 -0
- package/dist/speedCurve-C3pK-zZy.js +394 -0
- package/dist/speedCurve-CluwNAZl.cjs +1 -0
- package/dist/staticLine-C6tGGXcN.cjs +1 -0
- package/dist/staticLine-DXWOLj15.js +362 -0
- package/dist/store-BJW2NQkK.cjs +5 -0
- package/dist/store-DzDtVfSX.js +1673 -0
- package/dist/swiper-DGqDoUkX.cjs +1 -0
- package/dist/swiper-IMlGje3t.js +128 -0
- package/dist/terminalConfigList-D6xDHsnb.cjs +1 -0
- package/dist/terminalConfigList-SAyXi-BK.js +1017 -0
- package/dist/terminalList-CjSHshiR.js +1211 -0
- package/dist/terminalList-ml2C18MY.cjs +1 -0
- package/dist/textbox-AQtCe25j.cjs +1 -0
- package/dist/textbox-BLV-SY8e.js +172 -0
- package/dist/three.module-DNVo041Q.cjs +3824 -0
- package/dist/three.module-DcOQNgKS.js +16561 -0
- package/dist/timeQueryBar-BeMu_DYr.js +155 -0
- package/dist/timeQueryBar-BuKakMy8.cjs +1 -0
- package/dist/timeSeries-DP5iZKVM.js +587 -0
- package/dist/timeSeries-DfGgFWiF.cjs +4 -0
- package/dist/timeSeriesCurve-B0Mw6eNK.cjs +1 -0
- package/dist/timeSeriesCurve-BSgtPqYw.js +463 -0
- package/dist/titleStyle-BT5GlpAb.js +49 -0
- package/dist/titleStyle-NSnz6cUg.cjs +1 -0
- package/dist/toggleBtn-Dh64vVWo.cjs +1 -0
- package/dist/toggleBtn-O2Y75Uen.js +249 -0
- package/dist/trajectoryConfigPanel--C1h3tK6.js +635 -0
- package/dist/trajectoryConfigPanel-P_Qa4omj.cjs +1 -0
- package/dist/trajectoryScatter-BbpbgNb8.cjs +1 -0
- package/dist/trajectoryScatter-VLrmImlq.js +525 -0
- package/dist/universalConfigPanel-C0lDSzOB.cjs +1 -0
- package/dist/universalConfigPanel-DBg76b4F.js +477 -0
- package/dist/universalTable-Bzq9VqzA.cjs +2 -0
- package/dist/universalTable-DGK02ywi.js +410 -0
- package/dist/universalTransition-Bv7ibBUh.js +988 -0
- package/dist/universalTransition-CIN_u2Cu.cjs +1 -0
- package/dist/video-CyRoSQf1.cjs +1 -0
- package/dist/video-DCzzaEmV.js +310 -0
- package/dist/videoMonitor-BjD-ZFS0.cjs +1 -0
- package/dist/videoMonitor-ByaQeIWR.js +241 -0
- package/dist/vlu-CYZjYHaV.cjs +1 -0
- package/dist/vlu-h-9twmCr.js +100 -0
- package/dist/vue-i18n-5Nahpzrm.js +2732 -0
- package/dist/vue-i18n-BvHMBi_b.cjs +5 -0
- package/dist/weather-B7B5E1EJ.cjs +1 -0
- package/dist/weather-C_aC0XJ1.js +94 -0
- package/dist/windLin-B7V4NUV8.js +1226 -0
- package/dist/windLin-DPNzX7JN.cjs +1 -0
- package/package.json +17 -10
- package/dist/history-fvcbbxGa.cjs +0 -1
- package/dist/index-B-aA7889.js +0 -154003
- package/dist/index-CdJ-j9Gj.cjs +0 -8893
|
@@ -0,0 +1,1817 @@
|
|
|
1
|
+
import { _ as F, bg as ot, bi as re, ce as xe, bb as k, h as d, aR as E, er as ke, es as Ue, o as U, s as it, j as B, a4 as Je, G as T, R as ne, I as J, dJ as st, et as lt, dg as ut, d2 as Ye, cF as je, eu as ct, bc as ft, cs as pt, ev as ht, cn as gt, u as vt, bE as yt, bh as dt, cG as mt, bo as St, br as Xe, l as _, S as _t, ek as bt, U as wt, Q as Tt, dC as Gt, cL as ce, cC as Ze, x as Z, F as At, z as Mt, c6 as Rt, g as ae, D as Ft, c8 as He, ew as Et, co as j, ak as x, ex as Dt, cX as Ct, ay as fe, r as Pt, cc as Lt, b9 as It, de as Vt, b8 as Ot, m as zt, a as Nt, d0 as xt, ey as kt, M as pe, B as Ut, C as Jt, bC as Yt, b as jt, H as Xt, ee as Zt, ef as Ht, ec as Wt, be as Bt, ez as qt, aS as $t, aT as Kt } from "./echarts-BVht3HHb.js";
|
|
2
|
+
import { c as he, o as Qt } from "./cursorHelper-DE0KU4_J.js";
|
|
3
|
+
import { R as er } from "./RoamController-DmBIwcAZ.js";
|
|
4
|
+
import { S as tr, a as rr, p as We } from "./points-DkG9FRF9.js";
|
|
5
|
+
import { c as nr } from "./createSeriesData-E53TTCAt.js";
|
|
6
|
+
var ar = [];
|
|
7
|
+
function K(o, t) {
|
|
8
|
+
for (var e = 0; e < o.length; e++)
|
|
9
|
+
k(o[e], o[e], t);
|
|
10
|
+
}
|
|
11
|
+
function ge(o, t, e, r) {
|
|
12
|
+
for (var n = 0; n < o.length; n++) {
|
|
13
|
+
var a = o[n];
|
|
14
|
+
r && (a = r.project(a)), a && isFinite(a[0]) && isFinite(a[1]) && (ke(t, t, a), Ue(e, e, a));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function or(o) {
|
|
18
|
+
for (var t = 0, e = 0, r = 0, n = o.length, a = o[n - 1][0], i = o[n - 1][1], s = 0; s < n; s++) {
|
|
19
|
+
var l = o[s][0], u = o[s][1], c = a * u - l * i;
|
|
20
|
+
t += c, e += (a + l) * c, r += (i + u) * c, a = l, i = u;
|
|
21
|
+
}
|
|
22
|
+
return t ? [e / t / 3, r / t / 3, t] : [o[0][0] || 0, o[0][1] || 0];
|
|
23
|
+
}
|
|
24
|
+
var Be = (
|
|
25
|
+
/** @class */
|
|
26
|
+
(function() {
|
|
27
|
+
function o(t) {
|
|
28
|
+
this.name = t;
|
|
29
|
+
}
|
|
30
|
+
return o.prototype.setCenter = function(t) {
|
|
31
|
+
this._center = t;
|
|
32
|
+
}, o.prototype.getCenter = function() {
|
|
33
|
+
var t = this._center;
|
|
34
|
+
return t || (t = this._center = this.calcCenter()), t;
|
|
35
|
+
}, o;
|
|
36
|
+
})()
|
|
37
|
+
), ve = (
|
|
38
|
+
/** @class */
|
|
39
|
+
/* @__PURE__ */ (function() {
|
|
40
|
+
function o(t, e) {
|
|
41
|
+
this.type = "polygon", this.exterior = t, this.interiors = e;
|
|
42
|
+
}
|
|
43
|
+
return o;
|
|
44
|
+
})()
|
|
45
|
+
), ye = (
|
|
46
|
+
/** @class */
|
|
47
|
+
/* @__PURE__ */ (function() {
|
|
48
|
+
function o(t) {
|
|
49
|
+
this.type = "linestring", this.points = t;
|
|
50
|
+
}
|
|
51
|
+
return o;
|
|
52
|
+
})()
|
|
53
|
+
), qe = (
|
|
54
|
+
/** @class */
|
|
55
|
+
(function(o) {
|
|
56
|
+
F(t, o);
|
|
57
|
+
function t(e, r, n) {
|
|
58
|
+
var a = o.call(this, e) || this;
|
|
59
|
+
return a.type = "geoJSON", a.geometries = r, a._center = n && [n[0], n[1]], a;
|
|
60
|
+
}
|
|
61
|
+
return t.prototype.calcCenter = function() {
|
|
62
|
+
for (var e = this.geometries, r, n = 0, a = 0; a < e.length; a++) {
|
|
63
|
+
var i = e[a], s = i.exterior, l = s && s.length;
|
|
64
|
+
l > n && (r = i, n = l);
|
|
65
|
+
}
|
|
66
|
+
if (r)
|
|
67
|
+
return or(r.exterior);
|
|
68
|
+
var u = this.getBoundingRect();
|
|
69
|
+
return [u.x + u.width / 2, u.y + u.height / 2];
|
|
70
|
+
}, t.prototype.getBoundingRect = function(e) {
|
|
71
|
+
var r = this._rect;
|
|
72
|
+
if (r && !e)
|
|
73
|
+
return r;
|
|
74
|
+
var n = [1 / 0, 1 / 0], a = [-1 / 0, -1 / 0], i = this.geometries;
|
|
75
|
+
return d(i, function(s) {
|
|
76
|
+
s.type === "polygon" ? ge(s.exterior, n, a, e) : d(s.points, function(l) {
|
|
77
|
+
ge(l, n, a, e);
|
|
78
|
+
});
|
|
79
|
+
}), isFinite(n[0]) && isFinite(n[1]) && isFinite(a[0]) && isFinite(a[1]) || (n[0] = n[1] = a[0] = a[1] = 0), r = new E(n[0], n[1], a[0] - n[0], a[1] - n[1]), e || (this._rect = r), r;
|
|
80
|
+
}, t.prototype.contain = function(e) {
|
|
81
|
+
var r = this.getBoundingRect(), n = this.geometries;
|
|
82
|
+
if (!r.contain(e[0], e[1]))
|
|
83
|
+
return !1;
|
|
84
|
+
e: for (var a = 0, i = n.length; a < i; a++) {
|
|
85
|
+
var s = n[a];
|
|
86
|
+
if (s.type === "polygon") {
|
|
87
|
+
var l = s.exterior, u = s.interiors;
|
|
88
|
+
if (he(l, e[0], e[1])) {
|
|
89
|
+
for (var c = 0; c < (u ? u.length : 0); c++)
|
|
90
|
+
if (he(u[c], e[0], e[1]))
|
|
91
|
+
continue e;
|
|
92
|
+
return !0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return !1;
|
|
97
|
+
}, t.prototype.transformTo = function(e, r, n, a) {
|
|
98
|
+
var i = this.getBoundingRect(), s = i.width / i.height;
|
|
99
|
+
n ? a || (a = n / s) : n = s * a;
|
|
100
|
+
for (var l = new E(e, r, n, a), u = i.calculateTransform(l), c = this.geometries, p = 0; p < c.length; p++) {
|
|
101
|
+
var h = c[p];
|
|
102
|
+
h.type === "polygon" ? (K(h.exterior, u), d(h.interiors, function(f) {
|
|
103
|
+
K(f, u);
|
|
104
|
+
})) : d(h.points, function(f) {
|
|
105
|
+
K(f, u);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
i = this._rect, i.copy(l), this._center = [i.x + i.width / 2, i.y + i.height / 2];
|
|
109
|
+
}, t.prototype.cloneShallow = function(e) {
|
|
110
|
+
e == null && (e = this.name);
|
|
111
|
+
var r = new t(e, this.geometries, this._center);
|
|
112
|
+
return r._rect = this._rect, r.transformTo = null, r;
|
|
113
|
+
}, t;
|
|
114
|
+
})(Be)
|
|
115
|
+
), ir = (
|
|
116
|
+
/** @class */
|
|
117
|
+
(function(o) {
|
|
118
|
+
F(t, o);
|
|
119
|
+
function t(e, r) {
|
|
120
|
+
var n = o.call(this, e) || this;
|
|
121
|
+
return n.type = "geoSVG", n._elOnlyForCalculate = r, n;
|
|
122
|
+
}
|
|
123
|
+
return t.prototype.calcCenter = function() {
|
|
124
|
+
for (var e = this._elOnlyForCalculate, r = e.getBoundingRect(), n = [r.x + r.width / 2, r.y + r.height / 2], a = ot(ar), i = e; i && !i.isGeoSVGGraphicRoot; )
|
|
125
|
+
re(a, i.getLocalTransform(), a), i = i.parent;
|
|
126
|
+
return xe(a, a), k(n, n, a), n;
|
|
127
|
+
}, t;
|
|
128
|
+
})(Be)
|
|
129
|
+
);
|
|
130
|
+
function sr(o) {
|
|
131
|
+
if (!o.UTF8Encoding)
|
|
132
|
+
return o;
|
|
133
|
+
var t = o, e = t.UTF8Scale;
|
|
134
|
+
e == null && (e = 1024);
|
|
135
|
+
var r = t.features;
|
|
136
|
+
return d(r, function(n) {
|
|
137
|
+
var a = n.geometry, i = a.encodeOffsets, s = a.coordinates;
|
|
138
|
+
if (i)
|
|
139
|
+
switch (a.type) {
|
|
140
|
+
case "LineString":
|
|
141
|
+
a.coordinates = $e(s, i, e);
|
|
142
|
+
break;
|
|
143
|
+
case "Polygon":
|
|
144
|
+
Q(s, i, e);
|
|
145
|
+
break;
|
|
146
|
+
case "MultiLineString":
|
|
147
|
+
Q(s, i, e);
|
|
148
|
+
break;
|
|
149
|
+
case "MultiPolygon":
|
|
150
|
+
d(s, function(l, u) {
|
|
151
|
+
return Q(l, i[u], e);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}), t.UTF8Encoding = !1, t;
|
|
155
|
+
}
|
|
156
|
+
function Q(o, t, e) {
|
|
157
|
+
for (var r = 0; r < o.length; r++)
|
|
158
|
+
o[r] = $e(o[r], t[r], e);
|
|
159
|
+
}
|
|
160
|
+
function $e(o, t, e) {
|
|
161
|
+
for (var r = [], n = t[0], a = t[1], i = 0; i < o.length; i += 2) {
|
|
162
|
+
var s = o.charCodeAt(i) - 64, l = o.charCodeAt(i + 1) - 64;
|
|
163
|
+
s = s >> 1 ^ -(s & 1), l = l >> 1 ^ -(l & 1), s += n, l += a, n = s, a = l, r.push([s / e, l / e]);
|
|
164
|
+
}
|
|
165
|
+
return r;
|
|
166
|
+
}
|
|
167
|
+
function lr(o, t) {
|
|
168
|
+
return o = sr(o), U(it(o.features, function(e) {
|
|
169
|
+
return e.geometry && e.properties && e.geometry.coordinates.length > 0;
|
|
170
|
+
}), function(e) {
|
|
171
|
+
var r = e.properties, n = e.geometry, a = [];
|
|
172
|
+
switch (n.type) {
|
|
173
|
+
case "Polygon":
|
|
174
|
+
var i = n.coordinates;
|
|
175
|
+
a.push(new ve(i[0], i.slice(1)));
|
|
176
|
+
break;
|
|
177
|
+
case "MultiPolygon":
|
|
178
|
+
d(n.coordinates, function(l) {
|
|
179
|
+
l[0] && a.push(new ve(l[0], l.slice(1)));
|
|
180
|
+
});
|
|
181
|
+
break;
|
|
182
|
+
case "LineString":
|
|
183
|
+
a.push(new ye([n.coordinates]));
|
|
184
|
+
break;
|
|
185
|
+
case "MultiLineString":
|
|
186
|
+
a.push(new ye(n.coordinates));
|
|
187
|
+
}
|
|
188
|
+
var s = new qe(r[t || "name"], a, r.cp);
|
|
189
|
+
return s.properties = r, s;
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
function ur(o, t, e) {
|
|
193
|
+
var r = o.target;
|
|
194
|
+
r.x += t, r.y += e, r.dirty();
|
|
195
|
+
}
|
|
196
|
+
function cr(o, t, e, r) {
|
|
197
|
+
var n = o.target, a = o.zoomLimit, i = o.zoom = o.zoom || 1;
|
|
198
|
+
if (i *= t, a) {
|
|
199
|
+
var s = a.min || 0, l = a.max || 1 / 0;
|
|
200
|
+
i = Math.max(Math.min(l, i), s);
|
|
201
|
+
}
|
|
202
|
+
var u = i / o.zoom;
|
|
203
|
+
o.zoom = i, n.x -= (e - n.x) * (u - 1), n.y -= (r - n.y) * (u - 1), n.scaleX *= u, n.scaleY *= u, n.dirty();
|
|
204
|
+
}
|
|
205
|
+
function Ke(o) {
|
|
206
|
+
if (B(o)) {
|
|
207
|
+
var t = new DOMParser();
|
|
208
|
+
o = t.parseFromString(o, "text/xml");
|
|
209
|
+
}
|
|
210
|
+
var e = o;
|
|
211
|
+
for (e.nodeType === 9 && (e = e.firstChild); e.nodeName.toLowerCase() !== "svg" || e.nodeType !== 1; )
|
|
212
|
+
e = e.nextSibling;
|
|
213
|
+
return e;
|
|
214
|
+
}
|
|
215
|
+
var ee, H = {
|
|
216
|
+
fill: "fill",
|
|
217
|
+
stroke: "stroke",
|
|
218
|
+
"stroke-width": "lineWidth",
|
|
219
|
+
opacity: "opacity",
|
|
220
|
+
"fill-opacity": "fillOpacity",
|
|
221
|
+
"stroke-opacity": "strokeOpacity",
|
|
222
|
+
"stroke-dasharray": "lineDash",
|
|
223
|
+
"stroke-dashoffset": "lineDashOffset",
|
|
224
|
+
"stroke-linecap": "lineCap",
|
|
225
|
+
"stroke-linejoin": "lineJoin",
|
|
226
|
+
"stroke-miterlimit": "miterLimit",
|
|
227
|
+
"font-family": "fontFamily",
|
|
228
|
+
"font-size": "fontSize",
|
|
229
|
+
"font-style": "fontStyle",
|
|
230
|
+
"font-weight": "fontWeight",
|
|
231
|
+
"text-anchor": "textAlign",
|
|
232
|
+
visibility: "visibility",
|
|
233
|
+
display: "display"
|
|
234
|
+
}, de = Je(H), W = {
|
|
235
|
+
"alignment-baseline": "textBaseline",
|
|
236
|
+
"stop-color": "stopColor"
|
|
237
|
+
}, me = Je(W), fr = (function() {
|
|
238
|
+
function o() {
|
|
239
|
+
this._defs = {}, this._root = null;
|
|
240
|
+
}
|
|
241
|
+
return o.prototype.parse = function(t, e) {
|
|
242
|
+
e = e || {};
|
|
243
|
+
var r = Ke(t);
|
|
244
|
+
if (process.env.NODE_ENV !== "production" && !r)
|
|
245
|
+
throw new Error("Illegal svg");
|
|
246
|
+
this._defsUsePending = [];
|
|
247
|
+
var n = new T();
|
|
248
|
+
this._root = n;
|
|
249
|
+
var a = [], i = r.getAttribute("viewBox") || "", s = parseFloat(r.getAttribute("width") || e.width), l = parseFloat(r.getAttribute("height") || e.height);
|
|
250
|
+
isNaN(s) && (s = null), isNaN(l) && (l = null), b(r, n, null, !0, !1);
|
|
251
|
+
for (var u = r.firstChild; u; )
|
|
252
|
+
this._parseNode(u, n, a, null, !1, !1), u = u.nextSibling;
|
|
253
|
+
gr(this._defs, this._defsUsePending), this._defsUsePending = [];
|
|
254
|
+
var c, p;
|
|
255
|
+
if (i) {
|
|
256
|
+
var h = q(i);
|
|
257
|
+
h.length >= 4 && (c = {
|
|
258
|
+
x: parseFloat(h[0] || 0),
|
|
259
|
+
y: parseFloat(h[1] || 0),
|
|
260
|
+
width: parseFloat(h[2]),
|
|
261
|
+
height: parseFloat(h[3])
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
if (c && s != null && l != null && (p = et(c, { x: 0, y: 0, width: s, height: l }), !e.ignoreViewBox)) {
|
|
265
|
+
var f = n;
|
|
266
|
+
n = new T(), n.add(f), f.scaleX = f.scaleY = p.scale, f.x = p.x, f.y = p.y;
|
|
267
|
+
}
|
|
268
|
+
return !e.ignoreRootClip && s != null && l != null && n.setClipPath(new ne({
|
|
269
|
+
shape: { x: 0, y: 0, width: s, height: l }
|
|
270
|
+
})), {
|
|
271
|
+
root: n,
|
|
272
|
+
width: s,
|
|
273
|
+
height: l,
|
|
274
|
+
viewBoxRect: c,
|
|
275
|
+
viewBoxTransform: p,
|
|
276
|
+
named: a
|
|
277
|
+
};
|
|
278
|
+
}, o.prototype._parseNode = function(t, e, r, n, a, i) {
|
|
279
|
+
var s = t.nodeName.toLowerCase(), l, u = n;
|
|
280
|
+
if (s === "defs" && (a = !0), s === "text" && (i = !0), s === "defs" || s === "switch")
|
|
281
|
+
l = e;
|
|
282
|
+
else {
|
|
283
|
+
if (!a) {
|
|
284
|
+
var c = ee[s];
|
|
285
|
+
if (c && J(ee, s)) {
|
|
286
|
+
l = c.call(this, t, e);
|
|
287
|
+
var p = t.getAttribute("name");
|
|
288
|
+
if (p) {
|
|
289
|
+
var h = {
|
|
290
|
+
name: p,
|
|
291
|
+
namedFrom: null,
|
|
292
|
+
svgNodeTagLower: s,
|
|
293
|
+
el: l
|
|
294
|
+
};
|
|
295
|
+
r.push(h), s === "g" && (u = h);
|
|
296
|
+
} else n && r.push({
|
|
297
|
+
name: n.name,
|
|
298
|
+
namedFrom: n,
|
|
299
|
+
svgNodeTagLower: s,
|
|
300
|
+
el: l
|
|
301
|
+
});
|
|
302
|
+
e.add(l);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
var f = Se[s];
|
|
306
|
+
if (f && J(Se, s)) {
|
|
307
|
+
var v = f.call(this, t), g = t.getAttribute("id");
|
|
308
|
+
g && (this._defs[g] = v);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
if (l && l.isGroup)
|
|
312
|
+
for (var y = t.firstChild; y; )
|
|
313
|
+
y.nodeType === 1 ? this._parseNode(y, l, r, u, a, i) : y.nodeType === 3 && i && this._parseText(y, l), y = y.nextSibling;
|
|
314
|
+
}, o.prototype._parseText = function(t, e) {
|
|
315
|
+
var r = new st({
|
|
316
|
+
style: {
|
|
317
|
+
text: t.textContent
|
|
318
|
+
},
|
|
319
|
+
silent: !0,
|
|
320
|
+
x: this._textX || 0,
|
|
321
|
+
y: this._textY || 0
|
|
322
|
+
});
|
|
323
|
+
w(e, r), b(t, r, this._defsUsePending, !1, !1), pr(r, e);
|
|
324
|
+
var n = r.style, a = n.fontSize;
|
|
325
|
+
a && a < 9 && (n.fontSize = 9, r.scaleX *= a / 9, r.scaleY *= a / 9);
|
|
326
|
+
var i = (n.fontSize || n.fontFamily) && [
|
|
327
|
+
n.fontStyle,
|
|
328
|
+
n.fontWeight,
|
|
329
|
+
(n.fontSize || 12) + "px",
|
|
330
|
+
n.fontFamily || "sans-serif"
|
|
331
|
+
].join(" ");
|
|
332
|
+
n.font = i;
|
|
333
|
+
var s = r.getBoundingRect();
|
|
334
|
+
return this._textX += s.width, e.add(r), r;
|
|
335
|
+
}, o.internalField = (function() {
|
|
336
|
+
ee = {
|
|
337
|
+
g: function(t, e) {
|
|
338
|
+
var r = new T();
|
|
339
|
+
return w(e, r), b(t, r, this._defsUsePending, !1, !1), r;
|
|
340
|
+
},
|
|
341
|
+
rect: function(t, e) {
|
|
342
|
+
var r = new ne();
|
|
343
|
+
return w(e, r), b(t, r, this._defsUsePending, !1, !1), r.setShape({
|
|
344
|
+
x: parseFloat(t.getAttribute("x") || "0"),
|
|
345
|
+
y: parseFloat(t.getAttribute("y") || "0"),
|
|
346
|
+
width: parseFloat(t.getAttribute("width") || "0"),
|
|
347
|
+
height: parseFloat(t.getAttribute("height") || "0")
|
|
348
|
+
}), r.silent = !0, r;
|
|
349
|
+
},
|
|
350
|
+
circle: function(t, e) {
|
|
351
|
+
var r = new pt();
|
|
352
|
+
return w(e, r), b(t, r, this._defsUsePending, !1, !1), r.setShape({
|
|
353
|
+
cx: parseFloat(t.getAttribute("cx") || "0"),
|
|
354
|
+
cy: parseFloat(t.getAttribute("cy") || "0"),
|
|
355
|
+
r: parseFloat(t.getAttribute("r") || "0")
|
|
356
|
+
}), r.silent = !0, r;
|
|
357
|
+
},
|
|
358
|
+
line: function(t, e) {
|
|
359
|
+
var r = new ft();
|
|
360
|
+
return w(e, r), b(t, r, this._defsUsePending, !1, !1), r.setShape({
|
|
361
|
+
x1: parseFloat(t.getAttribute("x1") || "0"),
|
|
362
|
+
y1: parseFloat(t.getAttribute("y1") || "0"),
|
|
363
|
+
x2: parseFloat(t.getAttribute("x2") || "0"),
|
|
364
|
+
y2: parseFloat(t.getAttribute("y2") || "0")
|
|
365
|
+
}), r.silent = !0, r;
|
|
366
|
+
},
|
|
367
|
+
ellipse: function(t, e) {
|
|
368
|
+
var r = new ct();
|
|
369
|
+
return w(e, r), b(t, r, this._defsUsePending, !1, !1), r.setShape({
|
|
370
|
+
cx: parseFloat(t.getAttribute("cx") || "0"),
|
|
371
|
+
cy: parseFloat(t.getAttribute("cy") || "0"),
|
|
372
|
+
rx: parseFloat(t.getAttribute("rx") || "0"),
|
|
373
|
+
ry: parseFloat(t.getAttribute("ry") || "0")
|
|
374
|
+
}), r.silent = !0, r;
|
|
375
|
+
},
|
|
376
|
+
polygon: function(t, e) {
|
|
377
|
+
var r = t.getAttribute("points"), n;
|
|
378
|
+
r && (n = we(r));
|
|
379
|
+
var a = new je({
|
|
380
|
+
shape: {
|
|
381
|
+
points: n || []
|
|
382
|
+
},
|
|
383
|
+
silent: !0
|
|
384
|
+
});
|
|
385
|
+
return w(e, a), b(t, a, this._defsUsePending, !1, !1), a;
|
|
386
|
+
},
|
|
387
|
+
polyline: function(t, e) {
|
|
388
|
+
var r = t.getAttribute("points"), n;
|
|
389
|
+
r && (n = we(r));
|
|
390
|
+
var a = new Ye({
|
|
391
|
+
shape: {
|
|
392
|
+
points: n || []
|
|
393
|
+
},
|
|
394
|
+
silent: !0
|
|
395
|
+
});
|
|
396
|
+
return w(e, a), b(t, a, this._defsUsePending, !1, !1), a;
|
|
397
|
+
},
|
|
398
|
+
image: function(t, e) {
|
|
399
|
+
var r = new ut();
|
|
400
|
+
return w(e, r), b(t, r, this._defsUsePending, !1, !1), r.setStyle({
|
|
401
|
+
image: t.getAttribute("xlink:href") || t.getAttribute("href"),
|
|
402
|
+
x: +t.getAttribute("x"),
|
|
403
|
+
y: +t.getAttribute("y"),
|
|
404
|
+
width: +t.getAttribute("width"),
|
|
405
|
+
height: +t.getAttribute("height")
|
|
406
|
+
}), r.silent = !0, r;
|
|
407
|
+
},
|
|
408
|
+
text: function(t, e) {
|
|
409
|
+
var r = t.getAttribute("x") || "0", n = t.getAttribute("y") || "0", a = t.getAttribute("dx") || "0", i = t.getAttribute("dy") || "0";
|
|
410
|
+
this._textX = parseFloat(r) + parseFloat(a), this._textY = parseFloat(n) + parseFloat(i);
|
|
411
|
+
var s = new T();
|
|
412
|
+
return w(e, s), b(t, s, this._defsUsePending, !1, !0), s;
|
|
413
|
+
},
|
|
414
|
+
tspan: function(t, e) {
|
|
415
|
+
var r = t.getAttribute("x"), n = t.getAttribute("y");
|
|
416
|
+
r != null && (this._textX = parseFloat(r)), n != null && (this._textY = parseFloat(n));
|
|
417
|
+
var a = t.getAttribute("dx") || "0", i = t.getAttribute("dy") || "0", s = new T();
|
|
418
|
+
return w(e, s), b(t, s, this._defsUsePending, !1, !0), this._textX += parseFloat(a), this._textY += parseFloat(i), s;
|
|
419
|
+
},
|
|
420
|
+
path: function(t, e) {
|
|
421
|
+
var r = t.getAttribute("d") || "", n = lt(r);
|
|
422
|
+
return w(e, n), b(t, n, this._defsUsePending, !1, !1), n.silent = !0, n;
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
})(), o;
|
|
426
|
+
})(), Se = {
|
|
427
|
+
lineargradient: function(o) {
|
|
428
|
+
var t = parseInt(o.getAttribute("x1") || "0", 10), e = parseInt(o.getAttribute("y1") || "0", 10), r = parseInt(o.getAttribute("x2") || "10", 10), n = parseInt(o.getAttribute("y2") || "0", 10), a = new gt(t, e, r, n);
|
|
429
|
+
return _e(o, a), be(o, a), a;
|
|
430
|
+
},
|
|
431
|
+
radialgradient: function(o) {
|
|
432
|
+
var t = parseInt(o.getAttribute("cx") || "0", 10), e = parseInt(o.getAttribute("cy") || "0", 10), r = parseInt(o.getAttribute("r") || "0", 10), n = new ht(t, e, r);
|
|
433
|
+
return _e(o, n), be(o, n), n;
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
function _e(o, t) {
|
|
437
|
+
var e = o.getAttribute("gradientUnits");
|
|
438
|
+
e === "userSpaceOnUse" && (t.global = !0);
|
|
439
|
+
}
|
|
440
|
+
function be(o, t) {
|
|
441
|
+
for (var e = o.firstChild; e; ) {
|
|
442
|
+
if (e.nodeType === 1 && e.nodeName.toLocaleLowerCase() === "stop") {
|
|
443
|
+
var r = e.getAttribute("offset"), n = void 0;
|
|
444
|
+
r && r.indexOf("%") > 0 ? n = parseInt(r, 10) / 100 : r ? n = parseFloat(r) : n = 0;
|
|
445
|
+
var a = {};
|
|
446
|
+
Qe(e, a, a);
|
|
447
|
+
var i = a.stopColor || e.getAttribute("stop-color") || "#000000";
|
|
448
|
+
t.colorStops.push({
|
|
449
|
+
offset: n,
|
|
450
|
+
color: i
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
e = e.nextSibling;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
function w(o, t) {
|
|
457
|
+
o && o.__inheritedStyle && (t.__inheritedStyle || (t.__inheritedStyle = {}), vt(t.__inheritedStyle, o.__inheritedStyle));
|
|
458
|
+
}
|
|
459
|
+
function we(o) {
|
|
460
|
+
for (var t = q(o), e = [], r = 0; r < t.length; r += 2) {
|
|
461
|
+
var n = parseFloat(t[r]), a = parseFloat(t[r + 1]);
|
|
462
|
+
e.push([n, a]);
|
|
463
|
+
}
|
|
464
|
+
return e;
|
|
465
|
+
}
|
|
466
|
+
function b(o, t, e, r, n) {
|
|
467
|
+
var a = t, i = a.__inheritedStyle = a.__inheritedStyle || {}, s = {};
|
|
468
|
+
o.nodeType === 1 && (dr(o, t), Qe(o, i, s), r || mr(o, i, s)), a.style = a.style || {}, i.fill != null && (a.style.fill = Te(a, "fill", i.fill, e)), i.stroke != null && (a.style.stroke = Te(a, "stroke", i.stroke, e)), d([
|
|
469
|
+
"lineWidth",
|
|
470
|
+
"opacity",
|
|
471
|
+
"fillOpacity",
|
|
472
|
+
"strokeOpacity",
|
|
473
|
+
"miterLimit",
|
|
474
|
+
"fontSize"
|
|
475
|
+
], function(l) {
|
|
476
|
+
i[l] != null && (a.style[l] = parseFloat(i[l]));
|
|
477
|
+
}), d([
|
|
478
|
+
"lineDashOffset",
|
|
479
|
+
"lineCap",
|
|
480
|
+
"lineJoin",
|
|
481
|
+
"fontWeight",
|
|
482
|
+
"fontFamily",
|
|
483
|
+
"fontStyle",
|
|
484
|
+
"textAlign"
|
|
485
|
+
], function(l) {
|
|
486
|
+
i[l] != null && (a.style[l] = i[l]);
|
|
487
|
+
}), n && (a.__selfStyle = s), i.lineDash && (a.style.lineDash = U(q(i.lineDash), function(l) {
|
|
488
|
+
return parseFloat(l);
|
|
489
|
+
})), (i.visibility === "hidden" || i.visibility === "collapse") && (a.invisible = !0), i.display === "none" && (a.ignore = !0);
|
|
490
|
+
}
|
|
491
|
+
function pr(o, t) {
|
|
492
|
+
var e = t.__selfStyle;
|
|
493
|
+
if (e) {
|
|
494
|
+
var r = e.textBaseline, n = r;
|
|
495
|
+
!r || r === "auto" || r === "baseline" ? n = "alphabetic" : r === "before-edge" || r === "text-before-edge" ? n = "top" : r === "after-edge" || r === "text-after-edge" ? n = "bottom" : (r === "central" || r === "mathematical") && (n = "middle"), o.style.textBaseline = n;
|
|
496
|
+
}
|
|
497
|
+
var a = t.__inheritedStyle;
|
|
498
|
+
if (a) {
|
|
499
|
+
var i = a.textAlign, s = i;
|
|
500
|
+
i && (i === "middle" && (s = "center"), o.style.textAlign = s);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
var hr = /^url\(\s*#(.*?)\)/;
|
|
504
|
+
function Te(o, t, e, r) {
|
|
505
|
+
var n = e && e.match(hr);
|
|
506
|
+
if (n) {
|
|
507
|
+
var a = yt(n[1]);
|
|
508
|
+
r.push([o, t, a]);
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
return e === "none" && (e = null), e;
|
|
512
|
+
}
|
|
513
|
+
function gr(o, t) {
|
|
514
|
+
for (var e = 0; e < t.length; e++) {
|
|
515
|
+
var r = t[e];
|
|
516
|
+
r[0].style[r[1]] = o[r[2]];
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
var vr = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
|
|
520
|
+
function q(o) {
|
|
521
|
+
return o.match(vr) || [];
|
|
522
|
+
}
|
|
523
|
+
var yr = /(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g, te = Math.PI / 180;
|
|
524
|
+
function dr(o, t) {
|
|
525
|
+
var e = o.getAttribute("transform");
|
|
526
|
+
if (e) {
|
|
527
|
+
e = e.replace(/,/g, " ");
|
|
528
|
+
var r = [], n = null;
|
|
529
|
+
e.replace(yr, function(p, h, f) {
|
|
530
|
+
return r.push(h, f), "";
|
|
531
|
+
});
|
|
532
|
+
for (var a = r.length - 1; a > 0; a -= 2) {
|
|
533
|
+
var i = r[a], s = r[a - 1], l = q(i);
|
|
534
|
+
switch (n = n || Xe(), s) {
|
|
535
|
+
case "translate":
|
|
536
|
+
St(n, n, [parseFloat(l[0]), parseFloat(l[1] || "0")]);
|
|
537
|
+
break;
|
|
538
|
+
case "scale":
|
|
539
|
+
mt(n, n, [parseFloat(l[0]), parseFloat(l[1] || l[0])]);
|
|
540
|
+
break;
|
|
541
|
+
case "rotate":
|
|
542
|
+
dt(n, n, -parseFloat(l[0]) * te, [
|
|
543
|
+
parseFloat(l[1] || "0"),
|
|
544
|
+
parseFloat(l[2] || "0")
|
|
545
|
+
]);
|
|
546
|
+
break;
|
|
547
|
+
case "skewX":
|
|
548
|
+
var u = Math.tan(parseFloat(l[0]) * te);
|
|
549
|
+
re(n, [1, 0, u, 1, 0, 0], n);
|
|
550
|
+
break;
|
|
551
|
+
case "skewY":
|
|
552
|
+
var c = Math.tan(parseFloat(l[0]) * te);
|
|
553
|
+
re(n, [1, c, 0, 1, 0, 0], n);
|
|
554
|
+
break;
|
|
555
|
+
case "matrix":
|
|
556
|
+
n[0] = parseFloat(l[0]), n[1] = parseFloat(l[1]), n[2] = parseFloat(l[2]), n[3] = parseFloat(l[3]), n[4] = parseFloat(l[4]), n[5] = parseFloat(l[5]);
|
|
557
|
+
break;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
t.setLocalTransform(n);
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
var Ge = /([^\s:;]+)\s*:\s*([^:;]+)/g;
|
|
564
|
+
function Qe(o, t, e) {
|
|
565
|
+
var r = o.getAttribute("style");
|
|
566
|
+
if (r) {
|
|
567
|
+
Ge.lastIndex = 0;
|
|
568
|
+
for (var n; (n = Ge.exec(r)) != null; ) {
|
|
569
|
+
var a = n[1], i = J(H, a) ? H[a] : null;
|
|
570
|
+
i && (t[i] = n[2]);
|
|
571
|
+
var s = J(W, a) ? W[a] : null;
|
|
572
|
+
s && (e[s] = n[2]);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
function mr(o, t, e) {
|
|
577
|
+
for (var r = 0; r < de.length; r++) {
|
|
578
|
+
var n = de[r], a = o.getAttribute(n);
|
|
579
|
+
a != null && (t[H[n]] = a);
|
|
580
|
+
}
|
|
581
|
+
for (var r = 0; r < me.length; r++) {
|
|
582
|
+
var n = me[r], a = o.getAttribute(n);
|
|
583
|
+
a != null && (e[W[n]] = a);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
function et(o, t) {
|
|
587
|
+
var e = t.width / o.width, r = t.height / o.height, n = Math.min(e, r);
|
|
588
|
+
return {
|
|
589
|
+
scale: n,
|
|
590
|
+
x: -(o.x + o.width / 2) * n + (t.x + t.width / 2),
|
|
591
|
+
y: -(o.y + o.height / 2) * n + (t.y + t.height / 2)
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
function Sr(o, t) {
|
|
595
|
+
var e = new fr();
|
|
596
|
+
return e.parse(o, t);
|
|
597
|
+
}
|
|
598
|
+
var _r = _([
|
|
599
|
+
"rect",
|
|
600
|
+
"circle",
|
|
601
|
+
"line",
|
|
602
|
+
"ellipse",
|
|
603
|
+
"polygon",
|
|
604
|
+
"polyline",
|
|
605
|
+
"path",
|
|
606
|
+
// <text> <tspan> are also enabled because some SVG might paint text itself,
|
|
607
|
+
// but still need to trigger events or tooltip.
|
|
608
|
+
"text",
|
|
609
|
+
"tspan",
|
|
610
|
+
// <g> is also enabled because this case: if multiple tags share one name
|
|
611
|
+
// and need label displayed, every tags will display the name, which is not
|
|
612
|
+
// expected. So we can put them into a <g name="xxx">. Thereby only one label
|
|
613
|
+
// displayed and located based on the bounding rect of the <g>.
|
|
614
|
+
"g"
|
|
615
|
+
]), br = (
|
|
616
|
+
/** @class */
|
|
617
|
+
(function() {
|
|
618
|
+
function o(t, e) {
|
|
619
|
+
this.type = "geoSVG", this._usedGraphicMap = _(), this._freedGraphics = [], this._mapName = t, this._parsedXML = Ke(e);
|
|
620
|
+
}
|
|
621
|
+
return o.prototype.load = function() {
|
|
622
|
+
var t = this._firstGraphic;
|
|
623
|
+
if (!t) {
|
|
624
|
+
t = this._firstGraphic = this._buildGraphic(this._parsedXML), this._freedGraphics.push(t), this._boundingRect = this._firstGraphic.boundingRect.clone();
|
|
625
|
+
var e = Tr(t.named), r = e.regions, n = e.regionsMap;
|
|
626
|
+
this._regions = r, this._regionsMap = n;
|
|
627
|
+
}
|
|
628
|
+
return {
|
|
629
|
+
boundingRect: this._boundingRect,
|
|
630
|
+
regions: this._regions,
|
|
631
|
+
regionsMap: this._regionsMap
|
|
632
|
+
};
|
|
633
|
+
}, o.prototype._buildGraphic = function(t) {
|
|
634
|
+
var e, r;
|
|
635
|
+
try {
|
|
636
|
+
e = t && Sr(t, {
|
|
637
|
+
ignoreViewBox: !0,
|
|
638
|
+
ignoreRootClip: !0
|
|
639
|
+
}) || {}, r = e.root, _t(r != null);
|
|
640
|
+
} catch (y) {
|
|
641
|
+
throw new Error(`Invalid svg format
|
|
642
|
+
` + y.message);
|
|
643
|
+
}
|
|
644
|
+
var n = new T();
|
|
645
|
+
n.add(r), n.isGeoSVGGraphicRoot = !0;
|
|
646
|
+
var a = e.width, i = e.height, s = e.viewBoxRect, l = this._boundingRect;
|
|
647
|
+
if (!l) {
|
|
648
|
+
var u = void 0, c = void 0, p = void 0, h = void 0;
|
|
649
|
+
if (a != null ? (u = 0, p = a) : s && (u = s.x, p = s.width), i != null ? (c = 0, h = i) : s && (c = s.y, h = s.height), u == null || c == null) {
|
|
650
|
+
var f = r.getBoundingRect();
|
|
651
|
+
u == null && (u = f.x, p = f.width), c == null && (c = f.y, h = f.height);
|
|
652
|
+
}
|
|
653
|
+
l = this._boundingRect = new E(u, c, p, h);
|
|
654
|
+
}
|
|
655
|
+
if (s) {
|
|
656
|
+
var v = et(s, l);
|
|
657
|
+
r.scaleX = r.scaleY = v.scale, r.x = v.x, r.y = v.y;
|
|
658
|
+
}
|
|
659
|
+
n.setClipPath(new ne({
|
|
660
|
+
shape: l.plain()
|
|
661
|
+
}));
|
|
662
|
+
var g = [];
|
|
663
|
+
return d(e.named, function(y) {
|
|
664
|
+
_r.get(y.svgNodeTagLower) != null && (g.push(y), wr(y.el));
|
|
665
|
+
}), {
|
|
666
|
+
root: n,
|
|
667
|
+
boundingRect: l,
|
|
668
|
+
named: g
|
|
669
|
+
};
|
|
670
|
+
}, o.prototype.useGraphic = function(t) {
|
|
671
|
+
var e = this._usedGraphicMap, r = e.get(t);
|
|
672
|
+
return r || (r = this._freedGraphics.pop() || this._buildGraphic(this._parsedXML), e.set(t, r), r);
|
|
673
|
+
}, o.prototype.freeGraphic = function(t) {
|
|
674
|
+
var e = this._usedGraphicMap, r = e.get(t);
|
|
675
|
+
r && (e.removeKey(t), this._freedGraphics.push(r));
|
|
676
|
+
}, o;
|
|
677
|
+
})()
|
|
678
|
+
);
|
|
679
|
+
function wr(o) {
|
|
680
|
+
o.silent = !1, o.isGroup && o.traverse(function(t) {
|
|
681
|
+
t.silent = !1;
|
|
682
|
+
});
|
|
683
|
+
}
|
|
684
|
+
function Tr(o) {
|
|
685
|
+
var t = [], e = _();
|
|
686
|
+
return d(o, function(r) {
|
|
687
|
+
if (r.namedFrom == null) {
|
|
688
|
+
var n = new ir(r.name, r.el);
|
|
689
|
+
t.push(n), e.set(r.name, n);
|
|
690
|
+
}
|
|
691
|
+
}), {
|
|
692
|
+
regions: t,
|
|
693
|
+
regionsMap: e
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
var oe = [126, 25], Ae = "南海诸岛", L = [[[0, 3.5], [7, 11.2], [15, 11.9], [30, 7], [42, 0.7], [52, 0.7], [56, 7.7], [59, 0.7], [64, 0.7], [64, 0], [5, 0], [0, 3.5]], [[13, 16.1], [19, 14.7], [16, 21.7], [11, 23.1], [13, 16.1]], [[12, 32.2], [14, 38.5], [15, 38.5], [13, 32.2], [12, 32.2]], [[16, 47.6], [12, 53.2], [13, 53.2], [18, 47.6], [16, 47.6]], [[6, 64.4], [8, 70], [9, 70], [8, 64.4], [6, 64.4]], [[23, 82.6], [29, 79.8], [30, 79.8], [25, 82.6], [23, 82.6]], [[37, 70.7], [43, 62.3], [44, 62.3], [39, 70.7], [37, 70.7]], [[48, 51.1], [51, 45.5], [53, 45.5], [50, 51.1], [48, 51.1]], [[51, 35], [51, 28.7], [53, 28.7], [53, 35], [51, 35]], [[52, 22.4], [55, 17.5], [56, 17.5], [53, 22.4], [52, 22.4]], [[58, 12.6], [62, 7], [63, 7], [60, 12.6], [58, 12.6]], [[0, 3.5], [0, 93.1], [64, 93.1], [64, 0], [63, 0], [63, 92.4], [1, 92.4], [1, 3.5], [0, 3.5]]];
|
|
697
|
+
for (var P = 0; P < L.length; P++)
|
|
698
|
+
for (var I = 0; I < L[P].length; I++)
|
|
699
|
+
L[P][I][0] /= 10.5, L[P][I][1] /= -10.5 / 0.75, L[P][I][0] += oe[0], L[P][I][1] += oe[1];
|
|
700
|
+
function Gr(o, t) {
|
|
701
|
+
if (o === "china") {
|
|
702
|
+
for (var e = 0; e < t.length; e++)
|
|
703
|
+
if (t[e].name === Ae)
|
|
704
|
+
return;
|
|
705
|
+
t.push(new qe(Ae, U(L, function(r) {
|
|
706
|
+
return {
|
|
707
|
+
type: "polygon",
|
|
708
|
+
exterior: r
|
|
709
|
+
};
|
|
710
|
+
}), oe));
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
var Ar = {
|
|
714
|
+
南海诸岛: [32, 80],
|
|
715
|
+
// 全国
|
|
716
|
+
广东: [0, -10],
|
|
717
|
+
香港: [10, 5],
|
|
718
|
+
澳门: [-10, 10],
|
|
719
|
+
// '北京': [-10, 0],
|
|
720
|
+
天津: [5, 5]
|
|
721
|
+
};
|
|
722
|
+
function Mr(o, t) {
|
|
723
|
+
if (o === "china") {
|
|
724
|
+
var e = Ar[t.name];
|
|
725
|
+
if (e) {
|
|
726
|
+
var r = t.getCenter();
|
|
727
|
+
r[0] += e[0] / 10.5, r[1] += -e[1] / (10.5 / 0.75), t.setCenter(r);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
var Rr = [[[123.45165252685547, 25.73527164402261], [123.49731445312499, 25.73527164402261], [123.49731445312499, 25.750734064600884], [123.45165252685547, 25.750734064600884], [123.45165252685547, 25.73527164402261]]];
|
|
732
|
+
function Fr(o, t) {
|
|
733
|
+
o === "china" && t.name === "台湾" && t.geometries.push({
|
|
734
|
+
type: "polygon",
|
|
735
|
+
exterior: Rr[0]
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
var Er = "name", Dr = (
|
|
739
|
+
/** @class */
|
|
740
|
+
(function() {
|
|
741
|
+
function o(t, e, r) {
|
|
742
|
+
this.type = "geoJSON", this._parsedMap = _(), this._mapName = t, this._specialAreas = r, this._geoJSON = Pr(e);
|
|
743
|
+
}
|
|
744
|
+
return o.prototype.load = function(t, e) {
|
|
745
|
+
e = e || Er;
|
|
746
|
+
var r = this._parsedMap.get(e);
|
|
747
|
+
if (!r) {
|
|
748
|
+
var n = this._parseToRegions(e);
|
|
749
|
+
r = this._parsedMap.set(e, {
|
|
750
|
+
regions: n,
|
|
751
|
+
boundingRect: Cr(n)
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
var a = _(), i = [];
|
|
755
|
+
return d(r.regions, function(s) {
|
|
756
|
+
var l = s.name;
|
|
757
|
+
t && J(t, l) && (s = s.cloneShallow(l = t[l])), i.push(s), a.set(l, s);
|
|
758
|
+
}), {
|
|
759
|
+
regions: i,
|
|
760
|
+
boundingRect: r.boundingRect || new E(0, 0, 0, 0),
|
|
761
|
+
regionsMap: a
|
|
762
|
+
};
|
|
763
|
+
}, o.prototype._parseToRegions = function(t) {
|
|
764
|
+
var e = this._mapName, r = this._geoJSON, n;
|
|
765
|
+
try {
|
|
766
|
+
n = r ? lr(r, t) : [];
|
|
767
|
+
} catch (a) {
|
|
768
|
+
throw new Error(`Invalid geoJson format
|
|
769
|
+
` + a.message);
|
|
770
|
+
}
|
|
771
|
+
return Gr(e, n), d(n, function(a) {
|
|
772
|
+
var i = a.name;
|
|
773
|
+
Mr(e, a), Fr(e, a);
|
|
774
|
+
var s = this._specialAreas && this._specialAreas[i];
|
|
775
|
+
s && a.transformTo(s.left, s.top, s.width, s.height);
|
|
776
|
+
}, this), n;
|
|
777
|
+
}, o.prototype.getMapForUser = function() {
|
|
778
|
+
return {
|
|
779
|
+
// For backward compatibility, use geoJson
|
|
780
|
+
// PENDING: it has been returning them without clone.
|
|
781
|
+
// do we need to avoid outsite modification?
|
|
782
|
+
geoJson: this._geoJSON,
|
|
783
|
+
geoJSON: this._geoJSON,
|
|
784
|
+
specialAreas: this._specialAreas
|
|
785
|
+
};
|
|
786
|
+
}, o;
|
|
787
|
+
})()
|
|
788
|
+
);
|
|
789
|
+
function Cr(o) {
|
|
790
|
+
for (var t, e = 0; e < o.length; e++) {
|
|
791
|
+
var r = o[e].getBoundingRect();
|
|
792
|
+
t = t || r.clone(), t.union(r);
|
|
793
|
+
}
|
|
794
|
+
return t;
|
|
795
|
+
}
|
|
796
|
+
function Pr(o) {
|
|
797
|
+
return B(o) ? typeof JSON != "undefined" && JSON.parse ? JSON.parse(o) : new Function("return (" + o + ");")() : o;
|
|
798
|
+
}
|
|
799
|
+
var N = _();
|
|
800
|
+
const D = {
|
|
801
|
+
/**
|
|
802
|
+
* Compatible with previous `echarts.registerMap`.
|
|
803
|
+
*
|
|
804
|
+
* @usage
|
|
805
|
+
* ```js
|
|
806
|
+
*
|
|
807
|
+
* echarts.registerMap('USA', geoJson, specialAreas);
|
|
808
|
+
*
|
|
809
|
+
* echarts.registerMap('USA', {
|
|
810
|
+
* geoJson: geoJson,
|
|
811
|
+
* specialAreas: {...}
|
|
812
|
+
* });
|
|
813
|
+
* echarts.registerMap('USA', {
|
|
814
|
+
* geoJSON: geoJson,
|
|
815
|
+
* specialAreas: {...}
|
|
816
|
+
* });
|
|
817
|
+
*
|
|
818
|
+
* echarts.registerMap('airport', {
|
|
819
|
+
* svg: svg
|
|
820
|
+
* }
|
|
821
|
+
* ```
|
|
822
|
+
*
|
|
823
|
+
* Note:
|
|
824
|
+
* Do not support that register multiple geoJSON or SVG
|
|
825
|
+
* one map name. Because different geoJSON and SVG have
|
|
826
|
+
* different unit. It's not easy to make sure how those
|
|
827
|
+
* units are mapping/normalize.
|
|
828
|
+
* If intending to use multiple geoJSON or SVG, we can
|
|
829
|
+
* use multiple geo coordinate system.
|
|
830
|
+
*/
|
|
831
|
+
registerMap: function(o, t, e) {
|
|
832
|
+
if (t.svg) {
|
|
833
|
+
var r = new br(o, t.svg);
|
|
834
|
+
N.set(o, r);
|
|
835
|
+
} else {
|
|
836
|
+
var n = t.geoJson || t.geoJSON;
|
|
837
|
+
n && !t.features ? e = t.specialAreas : n = t;
|
|
838
|
+
var r = new Dr(o, n, e);
|
|
839
|
+
N.set(o, r);
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
getGeoResource: function(o) {
|
|
843
|
+
return N.get(o);
|
|
844
|
+
},
|
|
845
|
+
/**
|
|
846
|
+
* Only for exporting to users.
|
|
847
|
+
* **MUST NOT** used internally.
|
|
848
|
+
*/
|
|
849
|
+
getMapForUser: function(o) {
|
|
850
|
+
var t = N.get(o);
|
|
851
|
+
return t && t.type === "geoJSON" && t.getMapForUser();
|
|
852
|
+
},
|
|
853
|
+
load: function(o, t, e) {
|
|
854
|
+
var r = N.get(o);
|
|
855
|
+
if (!r) {
|
|
856
|
+
process.env.NODE_ENV !== "production" && console.error("Map " + o + " not exists. The GeoJSON of the map must be provided.");
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
return r.load(t, e);
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
var se = ["rect", "circle", "line", "ellipse", "polygon", "polyline", "path"], Lr = _(se), Ir = _(se.concat(["g"])), Vr = _(se.concat(["g"])), tt = wt();
|
|
863
|
+
function X(o) {
|
|
864
|
+
var t = o.getItemStyle(), e = o.get("areaColor");
|
|
865
|
+
return e != null && (t.fill = e), t;
|
|
866
|
+
}
|
|
867
|
+
function Me(o) {
|
|
868
|
+
var t = o.style;
|
|
869
|
+
t && (t.stroke = t.stroke || t.fill, t.fill = null);
|
|
870
|
+
}
|
|
871
|
+
var Or = (
|
|
872
|
+
/** @class */
|
|
873
|
+
(function() {
|
|
874
|
+
function o(t) {
|
|
875
|
+
var e = new T();
|
|
876
|
+
this.uid = bt("ec_map_draw"), this._controller = new er(t.getZr()), this._controllerHost = {
|
|
877
|
+
target: e
|
|
878
|
+
}, this.group = e, e.add(this._regionsGroup = new T()), e.add(this._svgGroup = new T());
|
|
879
|
+
}
|
|
880
|
+
return o.prototype.draw = function(t, e, r, n, a) {
|
|
881
|
+
var i = t.mainType === "geo", s = t.getData && t.getData();
|
|
882
|
+
i && e.eachComponent({
|
|
883
|
+
mainType: "series",
|
|
884
|
+
subType: "map"
|
|
885
|
+
}, function(m) {
|
|
886
|
+
!s && m.getHostGeoModel() === t && (s = m.getData());
|
|
887
|
+
});
|
|
888
|
+
var l = t.coordinateSystem, u = this._regionsGroup, c = this.group, p = l.getTransformInfo(), h = p.raw, f = p.roam, v = !u.childAt(0) || a;
|
|
889
|
+
v ? (c.x = f.x, c.y = f.y, c.scaleX = f.scaleX, c.scaleY = f.scaleY, c.dirty()) : Tt(c, f, t);
|
|
890
|
+
var g = s && s.getVisual("visualMeta") && s.getVisual("visualMeta").length > 0, y = {
|
|
891
|
+
api: r,
|
|
892
|
+
geo: l,
|
|
893
|
+
mapOrGeoModel: t,
|
|
894
|
+
data: s,
|
|
895
|
+
isVisualEncodedByVisualMap: g,
|
|
896
|
+
isGeo: i,
|
|
897
|
+
transformInfoRaw: h
|
|
898
|
+
};
|
|
899
|
+
l.resourceType === "geoJSON" ? this._buildGeoJSON(y) : l.resourceType === "geoSVG" && this._buildSVG(y), this._updateController(t, e, r), this._updateMapSelectHandler(t, u, r, n);
|
|
900
|
+
}, o.prototype._buildGeoJSON = function(t) {
|
|
901
|
+
var e = this._regionsGroupByName = _(), r = _(), n = this._regionsGroup, a = t.transformInfoRaw, i = t.mapOrGeoModel, s = t.data, l = t.geo.projection, u = l && l.stream;
|
|
902
|
+
function c(f, v) {
|
|
903
|
+
return v && (f = v(f)), f && [f[0] * a.scaleX + a.x, f[1] * a.scaleY + a.y];
|
|
904
|
+
}
|
|
905
|
+
function p(f) {
|
|
906
|
+
for (var v = [], g = !u && l && l.project, y = 0; y < f.length; ++y) {
|
|
907
|
+
var m = c(f[y], g);
|
|
908
|
+
m && v.push(m);
|
|
909
|
+
}
|
|
910
|
+
return v;
|
|
911
|
+
}
|
|
912
|
+
function h(f) {
|
|
913
|
+
return {
|
|
914
|
+
shape: {
|
|
915
|
+
points: p(f)
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
n.removeAll(), d(t.geo.regions, function(f) {
|
|
920
|
+
var v = f.name, g = e.get(v), y = r.get(v) || {}, m = y.dataIdx, G = y.regionModel;
|
|
921
|
+
if (!g) {
|
|
922
|
+
g = e.set(v, new T()), n.add(g), m = s ? s.indexOfName(v) : null, G = t.isGeo ? i.getRegionModel(v) : s ? s.getItemModel(m) : null;
|
|
923
|
+
var M = G.get("silent", !0);
|
|
924
|
+
M != null && (g.silent = M), r.set(v, {
|
|
925
|
+
dataIdx: m,
|
|
926
|
+
regionModel: G
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
var S = [], V = [];
|
|
930
|
+
d(f.geometries, function(R) {
|
|
931
|
+
if (R.type === "polygon") {
|
|
932
|
+
var C = [R.exterior].concat(R.interiors || []);
|
|
933
|
+
u && (C = Pe(C, u)), d(C, function(z) {
|
|
934
|
+
S.push(new je(h(z)));
|
|
935
|
+
});
|
|
936
|
+
} else {
|
|
937
|
+
var A = R.points;
|
|
938
|
+
u && (A = Pe(A, u, !0)), d(A, function(z) {
|
|
939
|
+
V.push(new Ye(h(z)));
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
});
|
|
943
|
+
var Y = c(f.getCenter(), l && l.project);
|
|
944
|
+
function O(R, C) {
|
|
945
|
+
if (R.length) {
|
|
946
|
+
var A = new Gt({
|
|
947
|
+
culling: !0,
|
|
948
|
+
segmentIgnoreThreshold: 1,
|
|
949
|
+
shape: {
|
|
950
|
+
paths: R
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
g.add(A), Re(t, A, m, G), Fe(t, A, v, G, i, m, Y), C && (Me(A), d(A.states, Me));
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
O(S), O(V, !0);
|
|
957
|
+
}), e.each(function(f, v) {
|
|
958
|
+
var g = r.get(v), y = g.dataIdx, m = g.regionModel;
|
|
959
|
+
Ee(t, f, v, m, i, y), De(t, f, v, m, i), Ce(t, f, v, m, i);
|
|
960
|
+
}, this);
|
|
961
|
+
}, o.prototype._buildSVG = function(t) {
|
|
962
|
+
var e = t.geo.map, r = t.transformInfoRaw;
|
|
963
|
+
this._svgGroup.x = r.x, this._svgGroup.y = r.y, this._svgGroup.scaleX = r.scaleX, this._svgGroup.scaleY = r.scaleY, this._svgResourceChanged(e) && (this._freeSVG(), this._useSVG(e));
|
|
964
|
+
var n = this._svgDispatcherMap = _(), a = !1;
|
|
965
|
+
d(this._svgGraphicRecord.named, function(i) {
|
|
966
|
+
var s = i.name, l = t.mapOrGeoModel, u = t.data, c = i.svgNodeTagLower, p = i.el, h = u ? u.indexOfName(s) : null, f = l.getRegionModel(s);
|
|
967
|
+
Lr.get(c) != null && p instanceof ce && Re(t, p, h, f), p instanceof ce && (p.culling = !0);
|
|
968
|
+
var v = f.get("silent", !0);
|
|
969
|
+
if (v != null && (p.silent = v), p.z2EmphasisLift = 0, !i.namedFrom && (Vr.get(c) != null && Fe(t, p, s, f, l, h, null), Ee(t, p, s, f, l, h), De(t, p, s, f, l), Ir.get(c) != null)) {
|
|
970
|
+
var g = Ce(t, p, s, f, l);
|
|
971
|
+
g === "self" && (a = !0);
|
|
972
|
+
var y = n.get(s) || n.set(s, []);
|
|
973
|
+
y.push(p);
|
|
974
|
+
}
|
|
975
|
+
}, this), this._enableBlurEntireSVG(a, t);
|
|
976
|
+
}, o.prototype._enableBlurEntireSVG = function(t, e) {
|
|
977
|
+
if (t && e.isGeo) {
|
|
978
|
+
var r = e.mapOrGeoModel.getModel(["blur", "itemStyle"]).getItemStyle(), n = r.opacity;
|
|
979
|
+
this._svgGraphicRecord.root.traverse(function(a) {
|
|
980
|
+
if (!a.isGroup) {
|
|
981
|
+
Ze(a);
|
|
982
|
+
var i = a.ensureState("blur").style || {};
|
|
983
|
+
i.opacity == null && n != null && (i.opacity = n), a.ensureState("emphasis");
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
}, o.prototype.remove = function() {
|
|
988
|
+
this._regionsGroup.removeAll(), this._regionsGroupByName = null, this._svgGroup.removeAll(), this._freeSVG(), this._controller.dispose(), this._controllerHost = null;
|
|
989
|
+
}, o.prototype.findHighDownDispatchers = function(t, e) {
|
|
990
|
+
if (t == null)
|
|
991
|
+
return [];
|
|
992
|
+
var r = e.coordinateSystem;
|
|
993
|
+
if (r.resourceType === "geoJSON") {
|
|
994
|
+
var n = this._regionsGroupByName;
|
|
995
|
+
if (n) {
|
|
996
|
+
var a = n.get(t);
|
|
997
|
+
return a ? [a] : [];
|
|
998
|
+
}
|
|
999
|
+
} else if (r.resourceType === "geoSVG")
|
|
1000
|
+
return this._svgDispatcherMap && this._svgDispatcherMap.get(t) || [];
|
|
1001
|
+
}, o.prototype._svgResourceChanged = function(t) {
|
|
1002
|
+
return this._svgMapName !== t;
|
|
1003
|
+
}, o.prototype._useSVG = function(t) {
|
|
1004
|
+
var e = D.getGeoResource(t);
|
|
1005
|
+
if (e && e.type === "geoSVG") {
|
|
1006
|
+
var r = e.useGraphic(this.uid);
|
|
1007
|
+
this._svgGroup.add(r.root), this._svgGraphicRecord = r, this._svgMapName = t;
|
|
1008
|
+
}
|
|
1009
|
+
}, o.prototype._freeSVG = function() {
|
|
1010
|
+
var t = this._svgMapName;
|
|
1011
|
+
if (t != null) {
|
|
1012
|
+
var e = D.getGeoResource(t);
|
|
1013
|
+
e && e.type === "geoSVG" && e.freeGraphic(this.uid), this._svgGraphicRecord = null, this._svgDispatcherMap = null, this._svgGroup.removeAll(), this._svgMapName = null;
|
|
1014
|
+
}
|
|
1015
|
+
}, o.prototype._updateController = function(t, e, r) {
|
|
1016
|
+
var n = t.coordinateSystem, a = this._controller, i = this._controllerHost;
|
|
1017
|
+
i.zoomLimit = t.get("scaleLimit"), i.zoom = n.getZoom(), a.enable(t.get("roam") || !1);
|
|
1018
|
+
var s = t.mainType;
|
|
1019
|
+
function l() {
|
|
1020
|
+
var u = {
|
|
1021
|
+
type: "geoRoam",
|
|
1022
|
+
componentType: s
|
|
1023
|
+
};
|
|
1024
|
+
return u[s + "Id"] = t.id, u;
|
|
1025
|
+
}
|
|
1026
|
+
a.off("pan").on("pan", function(u) {
|
|
1027
|
+
this._mouseDownFlag = !1, ur(i, u.dx, u.dy), r.dispatchAction(Z(l(), {
|
|
1028
|
+
dx: u.dx,
|
|
1029
|
+
dy: u.dy,
|
|
1030
|
+
animation: {
|
|
1031
|
+
duration: 0
|
|
1032
|
+
}
|
|
1033
|
+
}));
|
|
1034
|
+
}, this), a.off("zoom").on("zoom", function(u) {
|
|
1035
|
+
this._mouseDownFlag = !1, cr(i, u.scale, u.originX, u.originY), r.dispatchAction(Z(l(), {
|
|
1036
|
+
totalZoom: i.zoom,
|
|
1037
|
+
zoom: u.scale,
|
|
1038
|
+
originX: u.originX,
|
|
1039
|
+
originY: u.originY,
|
|
1040
|
+
animation: {
|
|
1041
|
+
duration: 0
|
|
1042
|
+
}
|
|
1043
|
+
}));
|
|
1044
|
+
}, this), a.setPointerChecker(function(u, c, p) {
|
|
1045
|
+
return n.containPoint([c, p]) && !Qt(u, r, t);
|
|
1046
|
+
});
|
|
1047
|
+
}, o.prototype.resetForLabelLayout = function() {
|
|
1048
|
+
this.group.traverse(function(t) {
|
|
1049
|
+
var e = t.getTextContent();
|
|
1050
|
+
e && (e.ignore = tt(e).ignore);
|
|
1051
|
+
});
|
|
1052
|
+
}, o.prototype._updateMapSelectHandler = function(t, e, r, n) {
|
|
1053
|
+
var a = this;
|
|
1054
|
+
e.off("mousedown"), e.off("click"), t.get("selectedMode") && (e.on("mousedown", function() {
|
|
1055
|
+
a._mouseDownFlag = !0;
|
|
1056
|
+
}), e.on("click", function(i) {
|
|
1057
|
+
a._mouseDownFlag && (a._mouseDownFlag = !1);
|
|
1058
|
+
}));
|
|
1059
|
+
}, o;
|
|
1060
|
+
})()
|
|
1061
|
+
);
|
|
1062
|
+
function Re(o, t, e, r) {
|
|
1063
|
+
var n = r.getModel("itemStyle"), a = r.getModel(["emphasis", "itemStyle"]), i = r.getModel(["blur", "itemStyle"]), s = r.getModel(["select", "itemStyle"]), l = X(n), u = X(a), c = X(s), p = X(i), h = o.data;
|
|
1064
|
+
if (h) {
|
|
1065
|
+
var f = h.getItemVisual(e, "style"), v = h.getItemVisual(e, "decal");
|
|
1066
|
+
o.isVisualEncodedByVisualMap && f.fill && (l.fill = f.fill), v && (l.decal = At(v, o.api));
|
|
1067
|
+
}
|
|
1068
|
+
t.setStyle(l), t.style.strokeNoScale = !0, t.ensureState("emphasis").style = u, t.ensureState("select").style = c, t.ensureState("blur").style = p, Ze(t);
|
|
1069
|
+
}
|
|
1070
|
+
function Fe(o, t, e, r, n, a, i) {
|
|
1071
|
+
var s = o.data, l = o.isGeo, u = s && isNaN(s.get(s.mapDimension("value"), a)), c = s && s.getItemLayout(a);
|
|
1072
|
+
if (l || u || c && c.showLabel) {
|
|
1073
|
+
var p = l ? e : a, h = void 0;
|
|
1074
|
+
(!s || a >= 0) && (h = n);
|
|
1075
|
+
var f = i ? {
|
|
1076
|
+
normal: {
|
|
1077
|
+
align: "center",
|
|
1078
|
+
verticalAlign: "middle"
|
|
1079
|
+
}
|
|
1080
|
+
} : null;
|
|
1081
|
+
Mt(t, Rt(r), {
|
|
1082
|
+
labelFetcher: h,
|
|
1083
|
+
labelDataIndex: p,
|
|
1084
|
+
defaultText: e
|
|
1085
|
+
}, f);
|
|
1086
|
+
var v = t.getTextContent();
|
|
1087
|
+
if (v && (tt(v).ignore = v.ignore, t.textConfig && i)) {
|
|
1088
|
+
var g = t.getBoundingRect().clone();
|
|
1089
|
+
t.textConfig.layoutRect = g, t.textConfig.position = [(i[0] - g.x) / g.width * 100 + "%", (i[1] - g.y) / g.height * 100 + "%"];
|
|
1090
|
+
}
|
|
1091
|
+
t.disableLabelAnimation = !0;
|
|
1092
|
+
} else
|
|
1093
|
+
t.removeTextContent(), t.removeTextConfig(), t.disableLabelAnimation = null;
|
|
1094
|
+
}
|
|
1095
|
+
function Ee(o, t, e, r, n, a) {
|
|
1096
|
+
o.data ? o.data.setItemGraphicEl(a, t) : ae(t).eventData = {
|
|
1097
|
+
componentType: "geo",
|
|
1098
|
+
componentIndex: n.componentIndex,
|
|
1099
|
+
geoIndex: n.componentIndex,
|
|
1100
|
+
name: e,
|
|
1101
|
+
region: r && r.option || {}
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
function De(o, t, e, r, n) {
|
|
1105
|
+
o.data || Ft({
|
|
1106
|
+
el: t,
|
|
1107
|
+
componentModel: n,
|
|
1108
|
+
itemName: e,
|
|
1109
|
+
// @ts-ignore FIXME:TS fix the "compatible with each other"?
|
|
1110
|
+
itemTooltipOption: r.get("tooltip")
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
function Ce(o, t, e, r, n) {
|
|
1114
|
+
t.highDownSilentOnTouch = !!n.get("selectedMode");
|
|
1115
|
+
var a = r.getModel("emphasis"), i = a.get("focus");
|
|
1116
|
+
return He(t, i, a.get("blurScope"), a.get("disabled")), o.isGeo && Et(t, n, e), i;
|
|
1117
|
+
}
|
|
1118
|
+
function Pe(o, t, e) {
|
|
1119
|
+
var r = [], n;
|
|
1120
|
+
function a() {
|
|
1121
|
+
n = [];
|
|
1122
|
+
}
|
|
1123
|
+
function i() {
|
|
1124
|
+
n.length && (r.push(n), n = []);
|
|
1125
|
+
}
|
|
1126
|
+
var s = t({
|
|
1127
|
+
polygonStart: a,
|
|
1128
|
+
polygonEnd: i,
|
|
1129
|
+
lineStart: a,
|
|
1130
|
+
lineEnd: i,
|
|
1131
|
+
point: function(l, u) {
|
|
1132
|
+
isFinite(l) && isFinite(u) && n.push([l, u]);
|
|
1133
|
+
},
|
|
1134
|
+
sphere: function() {
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
return !e && s.polygonStart(), d(o, function(l) {
|
|
1138
|
+
s.lineStart();
|
|
1139
|
+
for (var u = 0; u < l.length; u++)
|
|
1140
|
+
s.point(l[u][0], l[u][1]);
|
|
1141
|
+
s.lineEnd();
|
|
1142
|
+
}), !e && s.polygonEnd(), r;
|
|
1143
|
+
}
|
|
1144
|
+
var Le = k, rt = (
|
|
1145
|
+
/** @class */
|
|
1146
|
+
(function(o) {
|
|
1147
|
+
F(t, o);
|
|
1148
|
+
function t(e) {
|
|
1149
|
+
var r = o.call(this) || this;
|
|
1150
|
+
return r.type = "view", r.dimensions = ["x", "y"], r._roamTransformable = new j(), r._rawTransformable = new j(), r.name = e, r;
|
|
1151
|
+
}
|
|
1152
|
+
return t.prototype.setBoundingRect = function(e, r, n, a) {
|
|
1153
|
+
return this._rect = new E(e, r, n, a), this._rect;
|
|
1154
|
+
}, t.prototype.getBoundingRect = function() {
|
|
1155
|
+
return this._rect;
|
|
1156
|
+
}, t.prototype.setViewRect = function(e, r, n, a) {
|
|
1157
|
+
this._transformTo(e, r, n, a), this._viewRect = new E(e, r, n, a);
|
|
1158
|
+
}, t.prototype._transformTo = function(e, r, n, a) {
|
|
1159
|
+
var i = this.getBoundingRect(), s = this._rawTransformable;
|
|
1160
|
+
s.transform = i.calculateTransform(new E(e, r, n, a));
|
|
1161
|
+
var l = s.parent;
|
|
1162
|
+
s.parent = null, s.decomposeTransform(), s.parent = l, this._updateTransform();
|
|
1163
|
+
}, t.prototype.setCenter = function(e, r) {
|
|
1164
|
+
e && (this._center = [x(e[0], r.getWidth()), x(e[1], r.getHeight())], this._updateCenterAndZoom());
|
|
1165
|
+
}, t.prototype.setZoom = function(e) {
|
|
1166
|
+
e = e || 1;
|
|
1167
|
+
var r = this.zoomLimit;
|
|
1168
|
+
r && (r.max != null && (e = Math.min(r.max, e)), r.min != null && (e = Math.max(r.min, e))), this._zoom = e, this._updateCenterAndZoom();
|
|
1169
|
+
}, t.prototype.getDefaultCenter = function() {
|
|
1170
|
+
var e = this.getBoundingRect(), r = e.x + e.width / 2, n = e.y + e.height / 2;
|
|
1171
|
+
return [r, n];
|
|
1172
|
+
}, t.prototype.getCenter = function() {
|
|
1173
|
+
return this._center || this.getDefaultCenter();
|
|
1174
|
+
}, t.prototype.getZoom = function() {
|
|
1175
|
+
return this._zoom || 1;
|
|
1176
|
+
}, t.prototype.getRoamTransform = function() {
|
|
1177
|
+
return this._roamTransformable.getLocalTransform();
|
|
1178
|
+
}, t.prototype._updateCenterAndZoom = function() {
|
|
1179
|
+
var e = this._rawTransformable.getLocalTransform(), r = this._roamTransformable, n = this.getDefaultCenter(), a = this.getCenter(), i = this.getZoom();
|
|
1180
|
+
a = k([], a, e), n = k([], n, e), r.originX = a[0], r.originY = a[1], r.x = n[0] - a[0], r.y = n[1] - a[1], r.scaleX = r.scaleY = i, this._updateTransform();
|
|
1181
|
+
}, t.prototype._updateTransform = function() {
|
|
1182
|
+
var e = this._roamTransformable, r = this._rawTransformable;
|
|
1183
|
+
r.parent = e, e.updateTransform(), r.updateTransform(), Dt(this.transform || (this.transform = []), r.transform || Xe()), this._rawTransform = r.getLocalTransform(), this.invTransform = this.invTransform || [], xe(this.invTransform, this.transform), this.decomposeTransform();
|
|
1184
|
+
}, t.prototype.getTransformInfo = function() {
|
|
1185
|
+
var e = this._rawTransformable, r = this._roamTransformable, n = new j();
|
|
1186
|
+
return n.transform = r.transform, n.decomposeTransform(), {
|
|
1187
|
+
roam: {
|
|
1188
|
+
x: n.x,
|
|
1189
|
+
y: n.y,
|
|
1190
|
+
scaleX: n.scaleX,
|
|
1191
|
+
scaleY: n.scaleY
|
|
1192
|
+
},
|
|
1193
|
+
raw: {
|
|
1194
|
+
x: e.x,
|
|
1195
|
+
y: e.y,
|
|
1196
|
+
scaleX: e.scaleX,
|
|
1197
|
+
scaleY: e.scaleY
|
|
1198
|
+
}
|
|
1199
|
+
};
|
|
1200
|
+
}, t.prototype.getViewRect = function() {
|
|
1201
|
+
return this._viewRect;
|
|
1202
|
+
}, t.prototype.getViewRectAfterRoam = function() {
|
|
1203
|
+
var e = this.getBoundingRect().clone();
|
|
1204
|
+
return e.applyTransform(this.transform), e;
|
|
1205
|
+
}, t.prototype.dataToPoint = function(e, r, n) {
|
|
1206
|
+
var a = r ? this._rawTransform : this.transform;
|
|
1207
|
+
return n = n || [], a ? Le(n, e, a) : Ct(n, e);
|
|
1208
|
+
}, t.prototype.pointToData = function(e) {
|
|
1209
|
+
var r = this.invTransform;
|
|
1210
|
+
return r ? Le([], e, r) : [e[0], e[1]];
|
|
1211
|
+
}, t.prototype.convertToPixel = function(e, r, n) {
|
|
1212
|
+
var a = Ie(r);
|
|
1213
|
+
return a === this ? a.dataToPoint(n) : null;
|
|
1214
|
+
}, t.prototype.convertFromPixel = function(e, r, n) {
|
|
1215
|
+
var a = Ie(r);
|
|
1216
|
+
return a === this ? a.pointToData(n) : null;
|
|
1217
|
+
}, t.prototype.containPoint = function(e) {
|
|
1218
|
+
return this.getViewRectAfterRoam().contain(e[0], e[1]);
|
|
1219
|
+
}, t.dimensions = ["x", "y"], t;
|
|
1220
|
+
})(j)
|
|
1221
|
+
);
|
|
1222
|
+
function Ie(o) {
|
|
1223
|
+
var t = o.seriesModel;
|
|
1224
|
+
return t ? t.coordinateSystem : null;
|
|
1225
|
+
}
|
|
1226
|
+
var zr = {
|
|
1227
|
+
geoJSON: {
|
|
1228
|
+
aspectScale: 0.75,
|
|
1229
|
+
invertLongitute: !0
|
|
1230
|
+
},
|
|
1231
|
+
geoSVG: {
|
|
1232
|
+
aspectScale: 1,
|
|
1233
|
+
invertLongitute: !1
|
|
1234
|
+
}
|
|
1235
|
+
}, nt = ["lng", "lat"], ie = (
|
|
1236
|
+
/** @class */
|
|
1237
|
+
(function(o) {
|
|
1238
|
+
F(t, o);
|
|
1239
|
+
function t(e, r, n) {
|
|
1240
|
+
var a = o.call(this, e) || this;
|
|
1241
|
+
a.dimensions = nt, a.type = "geo", a._nameCoordMap = _(), a.map = r;
|
|
1242
|
+
var i = n.projection, s = D.load(r, n.nameMap, n.nameProperty), l = D.getGeoResource(r), u = a.resourceType = l ? l.type : null, c = a.regions = s.regions, p = zr[l.type];
|
|
1243
|
+
a._regionsMap = s.regionsMap, a.regions = s.regions, process.env.NODE_ENV !== "production" && i && (u === "geoSVG" && (process.env.NODE_ENV !== "production" && fe("Map " + r + " with SVG source can't use projection. Only GeoJSON source supports projection."), i = null), i.project && i.unproject || (process.env.NODE_ENV !== "production" && fe("project and unproject must be both provided in the projeciton."), i = null)), a.projection = i;
|
|
1244
|
+
var h;
|
|
1245
|
+
if (i)
|
|
1246
|
+
for (var f = 0; f < c.length; f++) {
|
|
1247
|
+
var v = c[f].getBoundingRect(i);
|
|
1248
|
+
h = h || v.clone(), h.union(v);
|
|
1249
|
+
}
|
|
1250
|
+
else
|
|
1251
|
+
h = s.boundingRect;
|
|
1252
|
+
return a.setBoundingRect(h.x, h.y, h.width, h.height), a.aspectScale = i ? 1 : Pt(n.aspectScale, p.aspectScale), a._invertLongitute = i ? !1 : p.invertLongitute, a;
|
|
1253
|
+
}
|
|
1254
|
+
return t.prototype._transformTo = function(e, r, n, a) {
|
|
1255
|
+
var i = this.getBoundingRect(), s = this._invertLongitute;
|
|
1256
|
+
i = i.clone(), s && (i.y = -i.y - i.height);
|
|
1257
|
+
var l = this._rawTransformable;
|
|
1258
|
+
l.transform = i.calculateTransform(new E(e, r, n, a));
|
|
1259
|
+
var u = l.parent;
|
|
1260
|
+
l.parent = null, l.decomposeTransform(), l.parent = u, s && (l.scaleY = -l.scaleY), this._updateTransform();
|
|
1261
|
+
}, t.prototype.getRegion = function(e) {
|
|
1262
|
+
return this._regionsMap.get(e);
|
|
1263
|
+
}, t.prototype.getRegionByCoord = function(e) {
|
|
1264
|
+
for (var r = this.regions, n = 0; n < r.length; n++) {
|
|
1265
|
+
var a = r[n];
|
|
1266
|
+
if (a.type === "geoJSON" && a.contain(e))
|
|
1267
|
+
return r[n];
|
|
1268
|
+
}
|
|
1269
|
+
}, t.prototype.addGeoCoord = function(e, r) {
|
|
1270
|
+
this._nameCoordMap.set(e, r);
|
|
1271
|
+
}, t.prototype.getGeoCoord = function(e) {
|
|
1272
|
+
var r = this._regionsMap.get(e);
|
|
1273
|
+
return this._nameCoordMap.get(e) || r && r.getCenter();
|
|
1274
|
+
}, t.prototype.dataToPoint = function(e, r, n) {
|
|
1275
|
+
if (B(e) && (e = this.getGeoCoord(e)), e) {
|
|
1276
|
+
var a = this.projection;
|
|
1277
|
+
return a && (e = a.project(e)), e && this.projectedToPoint(e, r, n);
|
|
1278
|
+
}
|
|
1279
|
+
}, t.prototype.pointToData = function(e) {
|
|
1280
|
+
var r = this.projection;
|
|
1281
|
+
return r && (e = r.unproject(e)), e && this.pointToProjected(e);
|
|
1282
|
+
}, t.prototype.pointToProjected = function(e) {
|
|
1283
|
+
return o.prototype.pointToData.call(this, e);
|
|
1284
|
+
}, t.prototype.projectedToPoint = function(e, r, n) {
|
|
1285
|
+
return o.prototype.dataToPoint.call(this, e, r, n);
|
|
1286
|
+
}, t.prototype.convertToPixel = function(e, r, n) {
|
|
1287
|
+
var a = Ve(r);
|
|
1288
|
+
return a === this ? a.dataToPoint(n) : null;
|
|
1289
|
+
}, t.prototype.convertFromPixel = function(e, r, n) {
|
|
1290
|
+
var a = Ve(r);
|
|
1291
|
+
return a === this ? a.pointToData(n) : null;
|
|
1292
|
+
}, t;
|
|
1293
|
+
})(rt)
|
|
1294
|
+
);
|
|
1295
|
+
Lt(ie, rt);
|
|
1296
|
+
function Ve(o) {
|
|
1297
|
+
var t = o.geoModel, e = o.seriesModel;
|
|
1298
|
+
return t ? t.coordinateSystem : e ? e.coordinateSystem || (e.getReferringComponents("geo", It).models[0] || {}).coordinateSystem : null;
|
|
1299
|
+
}
|
|
1300
|
+
function Oe(o, t) {
|
|
1301
|
+
var e = o.get("boundingCoords");
|
|
1302
|
+
if (e != null) {
|
|
1303
|
+
var r = e[0], n = e[1];
|
|
1304
|
+
if (!(isFinite(r[0]) && isFinite(r[1]) && isFinite(n[0]) && isFinite(n[1])))
|
|
1305
|
+
process.env.NODE_ENV !== "production" && console.error("Invalid boundingCoords");
|
|
1306
|
+
else {
|
|
1307
|
+
var a = this.projection;
|
|
1308
|
+
if (a) {
|
|
1309
|
+
var i = r[0], s = r[1], l = n[0], u = n[1];
|
|
1310
|
+
r = [1 / 0, 1 / 0], n = [-1 / 0, -1 / 0];
|
|
1311
|
+
var c = function(Y, O, R, C) {
|
|
1312
|
+
for (var A = R - Y, z = C - O, $ = 0; $ <= 100; $++) {
|
|
1313
|
+
var le = $ / 100, ue = a.project([Y + A * le, O + z * le]);
|
|
1314
|
+
ke(r, r, ue), Ue(n, n, ue);
|
|
1315
|
+
}
|
|
1316
|
+
};
|
|
1317
|
+
c(i, s, l, s), c(l, s, l, u), c(l, u, i, u), c(i, u, l, s);
|
|
1318
|
+
}
|
|
1319
|
+
this.setBoundingRect(r[0], r[1], n[0] - r[0], n[1] - r[1]);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
var p = this.getBoundingRect(), h = o.get("layoutCenter"), f = o.get("layoutSize"), v = t.getWidth(), g = t.getHeight(), y = p.width / p.height * this.aspectScale, m = !1, G, M;
|
|
1323
|
+
h && f && (G = [x(h[0], v), x(h[1], g)], M = x(f, Math.min(v, g)), !isNaN(G[0]) && !isNaN(G[1]) && !isNaN(M) ? m = !0 : process.env.NODE_ENV !== "production" && console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));
|
|
1324
|
+
var S;
|
|
1325
|
+
if (m)
|
|
1326
|
+
S = {}, y > 1 ? (S.width = M, S.height = M / y) : (S.height = M, S.width = M * y), S.y = G[1] - S.height / 2, S.x = G[0] - S.width / 2;
|
|
1327
|
+
else {
|
|
1328
|
+
var V = o.getBoxLayoutParams();
|
|
1329
|
+
V.aspect = y, S = Nt(V, {
|
|
1330
|
+
width: v,
|
|
1331
|
+
height: g
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
this.setViewRect(S.x, S.y, S.width, S.height), this.setCenter(o.get("center"), t), this.setZoom(o.get("zoom"));
|
|
1335
|
+
}
|
|
1336
|
+
function Nr(o, t) {
|
|
1337
|
+
d(t.get("geoCoord"), function(e, r) {
|
|
1338
|
+
o.addGeoCoord(r, e);
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
var xr = (
|
|
1342
|
+
/** @class */
|
|
1343
|
+
(function() {
|
|
1344
|
+
function o() {
|
|
1345
|
+
this.dimensions = nt;
|
|
1346
|
+
}
|
|
1347
|
+
return o.prototype.create = function(t, e) {
|
|
1348
|
+
var r = [];
|
|
1349
|
+
function n(i) {
|
|
1350
|
+
return {
|
|
1351
|
+
nameProperty: i.get("nameProperty"),
|
|
1352
|
+
aspectScale: i.get("aspectScale"),
|
|
1353
|
+
projection: i.get("projection")
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
t.eachComponent("geo", function(i, s) {
|
|
1357
|
+
var l = i.get("map"), u = new ie(l + s, l, Z({
|
|
1358
|
+
nameMap: i.get("nameMap")
|
|
1359
|
+
}, n(i)));
|
|
1360
|
+
u.zoomLimit = i.get("scaleLimit"), r.push(u), i.coordinateSystem = u, u.model = i, u.resize = Oe, u.resize(i, e);
|
|
1361
|
+
}), t.eachSeries(function(i) {
|
|
1362
|
+
var s = i.get("coordinateSystem");
|
|
1363
|
+
if (s === "geo") {
|
|
1364
|
+
var l = i.get("geoIndex") || 0;
|
|
1365
|
+
i.coordinateSystem = r[l];
|
|
1366
|
+
}
|
|
1367
|
+
});
|
|
1368
|
+
var a = {};
|
|
1369
|
+
return t.eachSeriesByType("map", function(i) {
|
|
1370
|
+
if (!i.getHostGeoModel()) {
|
|
1371
|
+
var s = i.getMapType();
|
|
1372
|
+
a[s] = a[s] || [], a[s].push(i);
|
|
1373
|
+
}
|
|
1374
|
+
}), d(a, function(i, s) {
|
|
1375
|
+
var l = U(i, function(c) {
|
|
1376
|
+
return c.get("nameMap");
|
|
1377
|
+
}), u = new ie(s, s, Z({
|
|
1378
|
+
nameMap: Vt(l)
|
|
1379
|
+
}, n(i[0])));
|
|
1380
|
+
u.zoomLimit = Ot.apply(null, U(i, function(c) {
|
|
1381
|
+
return c.get("scaleLimit");
|
|
1382
|
+
})), r.push(u), u.resize = Oe, u.resize(i[0], e), d(i, function(c) {
|
|
1383
|
+
c.coordinateSystem = u, Nr(u, c);
|
|
1384
|
+
});
|
|
1385
|
+
}), r;
|
|
1386
|
+
}, o.prototype.getFilledRegions = function(t, e, r, n) {
|
|
1387
|
+
for (var a = (t || []).slice(), i = _(), s = 0; s < a.length; s++)
|
|
1388
|
+
i.set(a[s].name, a[s]);
|
|
1389
|
+
var l = D.load(e, r, n);
|
|
1390
|
+
return d(l.regions, function(u) {
|
|
1391
|
+
var c = u.name, p = i.get(c), h = u.properties && u.properties.echartsStyle;
|
|
1392
|
+
p || (p = {
|
|
1393
|
+
name: c
|
|
1394
|
+
}, a.push(p)), h && zt(p, h);
|
|
1395
|
+
}), a;
|
|
1396
|
+
}, o;
|
|
1397
|
+
})()
|
|
1398
|
+
), at = new xr(), kr = (
|
|
1399
|
+
/** @class */
|
|
1400
|
+
(function(o) {
|
|
1401
|
+
F(t, o);
|
|
1402
|
+
function t() {
|
|
1403
|
+
var e = o !== null && o.apply(this, arguments) || this;
|
|
1404
|
+
return e.type = t.type, e;
|
|
1405
|
+
}
|
|
1406
|
+
return t.prototype.init = function(e, r, n) {
|
|
1407
|
+
var a = D.getGeoResource(e.map);
|
|
1408
|
+
if (a && a.type === "geoJSON") {
|
|
1409
|
+
var i = e.itemStyle = e.itemStyle || {};
|
|
1410
|
+
"color" in i || (i.color = "#eee");
|
|
1411
|
+
}
|
|
1412
|
+
this.mergeDefaultAndTheme(e, n), xt(e, "label", ["show"]);
|
|
1413
|
+
}, t.prototype.optionUpdated = function() {
|
|
1414
|
+
var e = this, r = this.option;
|
|
1415
|
+
r.regions = at.getFilledRegions(r.regions, r.map, r.nameMap, r.nameProperty);
|
|
1416
|
+
var n = {};
|
|
1417
|
+
this._optionModelMap = kt(r.regions || [], function(a, i) {
|
|
1418
|
+
var s = i.name;
|
|
1419
|
+
return s && (a.set(s, new pe(i, e, e.ecModel)), i.selected && (n[s] = !0)), a;
|
|
1420
|
+
}, _()), r.selectedMap || (r.selectedMap = n);
|
|
1421
|
+
}, t.prototype.getRegionModel = function(e) {
|
|
1422
|
+
return this._optionModelMap.get(e) || new pe(null, this, this.ecModel);
|
|
1423
|
+
}, t.prototype.getFormattedLabel = function(e, r) {
|
|
1424
|
+
var n = this.getRegionModel(e), a = r === "normal" ? n.get(["label", "formatter"]) : n.get(["emphasis", "label", "formatter"]), i = {
|
|
1425
|
+
name: e
|
|
1426
|
+
};
|
|
1427
|
+
if (Ut(a))
|
|
1428
|
+
return i.status = r, a(i);
|
|
1429
|
+
if (B(a))
|
|
1430
|
+
return a.replace("{a}", e != null ? e : "");
|
|
1431
|
+
}, t.prototype.setZoom = function(e) {
|
|
1432
|
+
this.option.zoom = e;
|
|
1433
|
+
}, t.prototype.setCenter = function(e) {
|
|
1434
|
+
this.option.center = e;
|
|
1435
|
+
}, t.prototype.select = function(e) {
|
|
1436
|
+
var r = this.option, n = r.selectedMode;
|
|
1437
|
+
if (n) {
|
|
1438
|
+
n !== "multiple" && (r.selectedMap = null);
|
|
1439
|
+
var a = r.selectedMap || (r.selectedMap = {});
|
|
1440
|
+
a[e] = !0;
|
|
1441
|
+
}
|
|
1442
|
+
}, t.prototype.unSelect = function(e) {
|
|
1443
|
+
var r = this.option.selectedMap;
|
|
1444
|
+
r && (r[e] = !1);
|
|
1445
|
+
}, t.prototype.toggleSelected = function(e) {
|
|
1446
|
+
this[this.isSelected(e) ? "unSelect" : "select"](e);
|
|
1447
|
+
}, t.prototype.isSelected = function(e) {
|
|
1448
|
+
var r = this.option.selectedMap;
|
|
1449
|
+
return !!(r && r[e]);
|
|
1450
|
+
}, t.type = "geo", t.layoutMode = "box", t.defaultOption = {
|
|
1451
|
+
// zlevel: 0,
|
|
1452
|
+
z: 0,
|
|
1453
|
+
show: !0,
|
|
1454
|
+
left: "center",
|
|
1455
|
+
top: "center",
|
|
1456
|
+
// Default value:
|
|
1457
|
+
// for geoSVG source: 1,
|
|
1458
|
+
// for geoJSON source: 0.75.
|
|
1459
|
+
aspectScale: null,
|
|
1460
|
+
// /// Layout with center and size
|
|
1461
|
+
// If you want to put map in a fixed size box with right aspect ratio
|
|
1462
|
+
// This two properties may be more convenient
|
|
1463
|
+
// layoutCenter: [50%, 50%]
|
|
1464
|
+
// layoutSize: 100
|
|
1465
|
+
silent: !1,
|
|
1466
|
+
// Map type
|
|
1467
|
+
map: "",
|
|
1468
|
+
// Define left-top, right-bottom coords to control view
|
|
1469
|
+
// For example, [ [180, 90], [-180, -90] ]
|
|
1470
|
+
boundingCoords: null,
|
|
1471
|
+
// Default on center of map
|
|
1472
|
+
center: null,
|
|
1473
|
+
zoom: 1,
|
|
1474
|
+
scaleLimit: null,
|
|
1475
|
+
// selectedMode: false
|
|
1476
|
+
label: {
|
|
1477
|
+
show: !1,
|
|
1478
|
+
color: "#000"
|
|
1479
|
+
},
|
|
1480
|
+
itemStyle: {
|
|
1481
|
+
borderWidth: 0.5,
|
|
1482
|
+
borderColor: "#444"
|
|
1483
|
+
// Default color:
|
|
1484
|
+
// + geoJSON: #eee
|
|
1485
|
+
// + geoSVG: null (use SVG original `fill`)
|
|
1486
|
+
// color: '#eee'
|
|
1487
|
+
},
|
|
1488
|
+
emphasis: {
|
|
1489
|
+
label: {
|
|
1490
|
+
show: !0,
|
|
1491
|
+
color: "rgb(100,0,0)"
|
|
1492
|
+
},
|
|
1493
|
+
itemStyle: {
|
|
1494
|
+
color: "rgba(255,215,0,0.8)"
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
select: {
|
|
1498
|
+
label: {
|
|
1499
|
+
show: !0,
|
|
1500
|
+
color: "rgb(100,0,0)"
|
|
1501
|
+
},
|
|
1502
|
+
itemStyle: {
|
|
1503
|
+
color: "rgba(255,215,0,0.8)"
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1506
|
+
regions: []
|
|
1507
|
+
// tooltip: {
|
|
1508
|
+
// show: false
|
|
1509
|
+
// }
|
|
1510
|
+
}, t;
|
|
1511
|
+
})(Jt)
|
|
1512
|
+
);
|
|
1513
|
+
function ze(o, t) {
|
|
1514
|
+
return o.pointToProjected ? o.pointToProjected(t) : o.pointToData(t);
|
|
1515
|
+
}
|
|
1516
|
+
function Ur(o, t, e, r) {
|
|
1517
|
+
var n = o.getZoom(), a = o.getCenter(), i = t.zoom, s = o.projectedToPoint ? o.projectedToPoint(a) : o.dataToPoint(a);
|
|
1518
|
+
if (t.dx != null && t.dy != null && (s[0] -= t.dx, s[1] -= t.dy, o.setCenter(ze(o, s), r)), i != null) {
|
|
1519
|
+
if (e) {
|
|
1520
|
+
var l = e.min || 0, u = e.max || 1 / 0;
|
|
1521
|
+
i = Math.max(Math.min(n * i, u), l) / n;
|
|
1522
|
+
}
|
|
1523
|
+
o.scaleX *= i, o.scaleY *= i;
|
|
1524
|
+
var c = (t.originX - o.x) * (i - 1), p = (t.originY - o.y) * (i - 1);
|
|
1525
|
+
o.x -= c, o.y -= p, o.updateTransform(), o.setCenter(ze(o, s), r), o.setZoom(i * n);
|
|
1526
|
+
}
|
|
1527
|
+
return {
|
|
1528
|
+
center: o.getCenter(),
|
|
1529
|
+
zoom: o.getZoom()
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
var Jr = (
|
|
1533
|
+
/** @class */
|
|
1534
|
+
(function(o) {
|
|
1535
|
+
F(t, o);
|
|
1536
|
+
function t() {
|
|
1537
|
+
var e = o !== null && o.apply(this, arguments) || this;
|
|
1538
|
+
return e.type = t.type, e.focusBlurEnabled = !0, e;
|
|
1539
|
+
}
|
|
1540
|
+
return t.prototype.init = function(e, r) {
|
|
1541
|
+
this._api = r;
|
|
1542
|
+
}, t.prototype.render = function(e, r, n, a) {
|
|
1543
|
+
if (this._model = e, !e.get("show")) {
|
|
1544
|
+
this._mapDraw && this._mapDraw.remove(), this._mapDraw = null;
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
this._mapDraw || (this._mapDraw = new Or(n));
|
|
1548
|
+
var i = this._mapDraw;
|
|
1549
|
+
i.draw(e, r, n, this, a), i.group.on("click", this._handleRegionClick, this), i.group.silent = e.get("silent"), this.group.add(i.group), this.updateSelectStatus(e, r, n);
|
|
1550
|
+
}, t.prototype._handleRegionClick = function(e) {
|
|
1551
|
+
var r;
|
|
1552
|
+
Yt(e.target, function(n) {
|
|
1553
|
+
return (r = ae(n).eventData) != null;
|
|
1554
|
+
}, !0), r && this._api.dispatchAction({
|
|
1555
|
+
type: "geoToggleSelect",
|
|
1556
|
+
geoId: this._model.id,
|
|
1557
|
+
name: r.name
|
|
1558
|
+
});
|
|
1559
|
+
}, t.prototype.updateSelectStatus = function(e, r, n) {
|
|
1560
|
+
var a = this;
|
|
1561
|
+
this._mapDraw.group.traverse(function(i) {
|
|
1562
|
+
var s = ae(i).eventData;
|
|
1563
|
+
if (s)
|
|
1564
|
+
return a._model.isSelected(s.name) ? n.enterSelect(i) : n.leaveSelect(i), !0;
|
|
1565
|
+
});
|
|
1566
|
+
}, t.prototype.findHighDownDispatchers = function(e) {
|
|
1567
|
+
return this._mapDraw && this._mapDraw.findHighDownDispatchers(e, this._model);
|
|
1568
|
+
}, t.prototype.dispose = function() {
|
|
1569
|
+
this._mapDraw && this._mapDraw.remove();
|
|
1570
|
+
}, t.type = "geo", t;
|
|
1571
|
+
})(jt)
|
|
1572
|
+
);
|
|
1573
|
+
function Yr(o, t, e) {
|
|
1574
|
+
D.registerMap(o, t, e);
|
|
1575
|
+
}
|
|
1576
|
+
function Kr(o) {
|
|
1577
|
+
o.registerCoordinateSystem("geo", at), o.registerComponentModel(kr), o.registerComponentView(Jr), o.registerImpl("registerMap", Yr), o.registerImpl("getMap", function(e) {
|
|
1578
|
+
return D.getMapForUser(e);
|
|
1579
|
+
});
|
|
1580
|
+
function t(e, r) {
|
|
1581
|
+
r.update = "geo:updateSelectStatus", o.registerAction(r, function(n, a) {
|
|
1582
|
+
var i = {}, s = [];
|
|
1583
|
+
return a.eachComponent({
|
|
1584
|
+
mainType: "geo",
|
|
1585
|
+
query: n
|
|
1586
|
+
}, function(l) {
|
|
1587
|
+
l[e](n.name);
|
|
1588
|
+
var u = l.coordinateSystem;
|
|
1589
|
+
d(u.regions, function(p) {
|
|
1590
|
+
i[p.name] = l.isSelected(p.name) || !1;
|
|
1591
|
+
});
|
|
1592
|
+
var c = [];
|
|
1593
|
+
d(i, function(p, h) {
|
|
1594
|
+
i[h] && c.push(h);
|
|
1595
|
+
}), s.push({
|
|
1596
|
+
geoIndex: l.componentIndex,
|
|
1597
|
+
// Use singular, the same naming convention as the event `selectchanged`.
|
|
1598
|
+
name: c
|
|
1599
|
+
});
|
|
1600
|
+
}), {
|
|
1601
|
+
selected: i,
|
|
1602
|
+
allSelected: s,
|
|
1603
|
+
name: n.name
|
|
1604
|
+
};
|
|
1605
|
+
});
|
|
1606
|
+
}
|
|
1607
|
+
t("toggleSelected", {
|
|
1608
|
+
type: "geoToggleSelect",
|
|
1609
|
+
event: "geoselectchanged"
|
|
1610
|
+
}), t("select", {
|
|
1611
|
+
type: "geoSelect",
|
|
1612
|
+
event: "geoselected"
|
|
1613
|
+
}), t("unSelect", {
|
|
1614
|
+
type: "geoUnSelect",
|
|
1615
|
+
event: "geounselected"
|
|
1616
|
+
}), o.registerAction({
|
|
1617
|
+
type: "geoRoam",
|
|
1618
|
+
event: "geoRoam",
|
|
1619
|
+
update: "updateTransform"
|
|
1620
|
+
}, function(e, r, n) {
|
|
1621
|
+
var a = e.componentType || "series";
|
|
1622
|
+
r.eachComponent({
|
|
1623
|
+
mainType: a,
|
|
1624
|
+
query: e
|
|
1625
|
+
}, function(i) {
|
|
1626
|
+
var s = i.coordinateSystem;
|
|
1627
|
+
if (s.type === "geo") {
|
|
1628
|
+
var l = Ur(s, e, i.get("scaleLimit"), n);
|
|
1629
|
+
i.setCenter && i.setCenter(l.center), i.setZoom && i.setZoom(l.zoom), a === "series" && d(i.seriesGroup, function(u) {
|
|
1630
|
+
u.setCenter(l.center), u.setZoom(l.zoom);
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
});
|
|
1634
|
+
});
|
|
1635
|
+
}
|
|
1636
|
+
function Ne(o, t) {
|
|
1637
|
+
var e = t.rippleEffectColor || t.color;
|
|
1638
|
+
o.eachChild(function(r) {
|
|
1639
|
+
r.attr({
|
|
1640
|
+
z: t.z,
|
|
1641
|
+
zlevel: t.zlevel,
|
|
1642
|
+
style: {
|
|
1643
|
+
stroke: t.brushType === "stroke" ? e : null,
|
|
1644
|
+
fill: t.brushType === "fill" ? e : null
|
|
1645
|
+
}
|
|
1646
|
+
});
|
|
1647
|
+
});
|
|
1648
|
+
}
|
|
1649
|
+
var jr = (
|
|
1650
|
+
/** @class */
|
|
1651
|
+
(function(o) {
|
|
1652
|
+
F(t, o);
|
|
1653
|
+
function t(e, r) {
|
|
1654
|
+
var n = o.call(this) || this, a = new tr(e, r), i = new T();
|
|
1655
|
+
return n.add(a), n.add(i), n.updateData(e, r), n;
|
|
1656
|
+
}
|
|
1657
|
+
return t.prototype.stopEffectAnimation = function() {
|
|
1658
|
+
this.childAt(1).removeAll();
|
|
1659
|
+
}, t.prototype.startEffectAnimation = function(e) {
|
|
1660
|
+
for (var r = e.symbolType, n = e.color, a = e.rippleNumber, i = this.childAt(1), s = 0; s < a; s++) {
|
|
1661
|
+
var l = Xt(r, -1, -1, 2, 2, n);
|
|
1662
|
+
l.attr({
|
|
1663
|
+
style: {
|
|
1664
|
+
strokeNoScale: !0
|
|
1665
|
+
},
|
|
1666
|
+
z2: 99,
|
|
1667
|
+
silent: !0,
|
|
1668
|
+
scaleX: 0.5,
|
|
1669
|
+
scaleY: 0.5
|
|
1670
|
+
});
|
|
1671
|
+
var u = -s / a * e.period + e.effectOffset;
|
|
1672
|
+
l.animate("", !0).when(e.period, {
|
|
1673
|
+
scaleX: e.rippleScale / 2,
|
|
1674
|
+
scaleY: e.rippleScale / 2
|
|
1675
|
+
}).delay(u).start(), l.animateStyle(!0).when(e.period, {
|
|
1676
|
+
opacity: 0
|
|
1677
|
+
}).delay(u).start(), i.add(l);
|
|
1678
|
+
}
|
|
1679
|
+
Ne(i, e);
|
|
1680
|
+
}, t.prototype.updateEffectAnimation = function(e) {
|
|
1681
|
+
for (var r = this._effectCfg, n = this.childAt(1), a = ["symbolType", "period", "rippleScale", "rippleNumber"], i = 0; i < a.length; i++) {
|
|
1682
|
+
var s = a[i];
|
|
1683
|
+
if (r[s] !== e[s]) {
|
|
1684
|
+
this.stopEffectAnimation(), this.startEffectAnimation(e);
|
|
1685
|
+
return;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
Ne(n, e);
|
|
1689
|
+
}, t.prototype.highlight = function() {
|
|
1690
|
+
Zt(this);
|
|
1691
|
+
}, t.prototype.downplay = function() {
|
|
1692
|
+
Ht(this);
|
|
1693
|
+
}, t.prototype.getSymbolType = function() {
|
|
1694
|
+
var e = this.childAt(0);
|
|
1695
|
+
return e && e.getSymbolType();
|
|
1696
|
+
}, t.prototype.updateData = function(e, r) {
|
|
1697
|
+
var n = this, a = e.hostModel;
|
|
1698
|
+
this.childAt(0).updateData(e, r);
|
|
1699
|
+
var i = this.childAt(1), s = e.getItemModel(r), l = e.getItemVisual(r, "symbol"), u = Wt(e.getItemVisual(r, "symbolSize")), c = e.getItemVisual(r, "style"), p = c && c.fill, h = s.getModel("emphasis");
|
|
1700
|
+
i.setScale(u), i.traverse(function(y) {
|
|
1701
|
+
y.setStyle("fill", p);
|
|
1702
|
+
});
|
|
1703
|
+
var f = Bt(e.getItemVisual(r, "symbolOffset"), u);
|
|
1704
|
+
f && (i.x = f[0], i.y = f[1]);
|
|
1705
|
+
var v = e.getItemVisual(r, "symbolRotate");
|
|
1706
|
+
i.rotation = (v || 0) * Math.PI / 180 || 0;
|
|
1707
|
+
var g = {};
|
|
1708
|
+
g.showEffectOn = a.get("showEffectOn"), g.rippleScale = s.get(["rippleEffect", "scale"]), g.brushType = s.get(["rippleEffect", "brushType"]), g.period = s.get(["rippleEffect", "period"]) * 1e3, g.effectOffset = r / e.count(), g.z = a.getShallow("z") || 0, g.zlevel = a.getShallow("zlevel") || 0, g.symbolType = l, g.color = p, g.rippleEffectColor = s.get(["rippleEffect", "color"]), g.rippleNumber = s.get(["rippleEffect", "number"]), g.showEffectOn === "render" ? (this._effectCfg ? this.updateEffectAnimation(g) : this.startEffectAnimation(g), this._effectCfg = g) : (this._effectCfg = null, this.stopEffectAnimation(), this.onHoverStateChange = function(y) {
|
|
1709
|
+
y === "emphasis" ? g.showEffectOn !== "render" && n.startEffectAnimation(g) : y === "normal" && g.showEffectOn !== "render" && n.stopEffectAnimation();
|
|
1710
|
+
}), this._effectCfg = g, He(this, h.get("focus"), h.get("blurScope"), h.get("disabled"));
|
|
1711
|
+
}, t.prototype.fadeOut = function(e) {
|
|
1712
|
+
e && e();
|
|
1713
|
+
}, t;
|
|
1714
|
+
})(T)
|
|
1715
|
+
), Xr = (
|
|
1716
|
+
/** @class */
|
|
1717
|
+
(function(o) {
|
|
1718
|
+
F(t, o);
|
|
1719
|
+
function t() {
|
|
1720
|
+
var e = o !== null && o.apply(this, arguments) || this;
|
|
1721
|
+
return e.type = t.type, e;
|
|
1722
|
+
}
|
|
1723
|
+
return t.prototype.init = function() {
|
|
1724
|
+
this._symbolDraw = new rr(jr);
|
|
1725
|
+
}, t.prototype.render = function(e, r, n) {
|
|
1726
|
+
var a = e.getData(), i = this._symbolDraw;
|
|
1727
|
+
i.updateData(a, {
|
|
1728
|
+
clipShape: this._getClipShape(e)
|
|
1729
|
+
}), this.group.add(i.group);
|
|
1730
|
+
}, t.prototype._getClipShape = function(e) {
|
|
1731
|
+
var r = e.coordinateSystem, n = r && r.getArea && r.getArea();
|
|
1732
|
+
return e.get("clip", !0) ? n : null;
|
|
1733
|
+
}, t.prototype.updateTransform = function(e, r, n) {
|
|
1734
|
+
var a = e.getData();
|
|
1735
|
+
this.group.dirty();
|
|
1736
|
+
var i = We("").reset(e, r, n);
|
|
1737
|
+
i.progress && i.progress({
|
|
1738
|
+
start: 0,
|
|
1739
|
+
end: a.count(),
|
|
1740
|
+
count: a.count()
|
|
1741
|
+
}, a), this._symbolDraw.updateLayout();
|
|
1742
|
+
}, t.prototype._updateGroupTransform = function(e) {
|
|
1743
|
+
var r = e.coordinateSystem;
|
|
1744
|
+
r && r.getRoamTransform && (this.group.transform = qt(r.getRoamTransform()), this.group.decomposeTransform());
|
|
1745
|
+
}, t.prototype.remove = function(e, r) {
|
|
1746
|
+
this._symbolDraw && this._symbolDraw.remove(!0);
|
|
1747
|
+
}, t.type = "effectScatter", t;
|
|
1748
|
+
})($t)
|
|
1749
|
+
), Zr = (
|
|
1750
|
+
/** @class */
|
|
1751
|
+
(function(o) {
|
|
1752
|
+
F(t, o);
|
|
1753
|
+
function t() {
|
|
1754
|
+
var e = o !== null && o.apply(this, arguments) || this;
|
|
1755
|
+
return e.type = t.type, e.hasSymbolVisual = !0, e;
|
|
1756
|
+
}
|
|
1757
|
+
return t.prototype.getInitialData = function(e, r) {
|
|
1758
|
+
return nr(null, this, {
|
|
1759
|
+
useEncodeDefaulter: !0
|
|
1760
|
+
});
|
|
1761
|
+
}, t.prototype.brushSelector = function(e, r, n) {
|
|
1762
|
+
return n.point(r.getItemLayout(e));
|
|
1763
|
+
}, t.type = "series.effectScatter", t.dependencies = ["grid", "polar"], t.defaultOption = {
|
|
1764
|
+
coordinateSystem: "cartesian2d",
|
|
1765
|
+
// zlevel: 0,
|
|
1766
|
+
z: 2,
|
|
1767
|
+
legendHoverLink: !0,
|
|
1768
|
+
effectType: "ripple",
|
|
1769
|
+
progressive: 0,
|
|
1770
|
+
// When to show the effect, option: 'render'|'emphasis'
|
|
1771
|
+
showEffectOn: "render",
|
|
1772
|
+
clip: !0,
|
|
1773
|
+
// Ripple effect config
|
|
1774
|
+
rippleEffect: {
|
|
1775
|
+
period: 4,
|
|
1776
|
+
// Scale of ripple
|
|
1777
|
+
scale: 2.5,
|
|
1778
|
+
// Brush type can be fill or stroke
|
|
1779
|
+
brushType: "fill",
|
|
1780
|
+
// Ripple number
|
|
1781
|
+
number: 3
|
|
1782
|
+
},
|
|
1783
|
+
universalTransition: {
|
|
1784
|
+
divideShape: "clone"
|
|
1785
|
+
},
|
|
1786
|
+
// Cartesian coordinate system
|
|
1787
|
+
// xAxisIndex: 0,
|
|
1788
|
+
// yAxisIndex: 0,
|
|
1789
|
+
// Polar coordinate system
|
|
1790
|
+
// polarIndex: 0,
|
|
1791
|
+
// Geo coordinate system
|
|
1792
|
+
// geoIndex: 0,
|
|
1793
|
+
// symbol: null, // 图形类型
|
|
1794
|
+
symbolSize: 10
|
|
1795
|
+
// 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
|
|
1796
|
+
// symbolRotate: null, // 图形旋转控制
|
|
1797
|
+
// itemStyle: {
|
|
1798
|
+
// opacity: 1
|
|
1799
|
+
// }
|
|
1800
|
+
}, t;
|
|
1801
|
+
})(Kt)
|
|
1802
|
+
);
|
|
1803
|
+
function Qr(o) {
|
|
1804
|
+
o.registerChartView(Xr), o.registerSeriesModel(Zr), o.registerLayout(We("effectScatter"));
|
|
1805
|
+
}
|
|
1806
|
+
export {
|
|
1807
|
+
Or as M,
|
|
1808
|
+
rt as V,
|
|
1809
|
+
cr as a,
|
|
1810
|
+
Ur as b,
|
|
1811
|
+
Qr as c,
|
|
1812
|
+
Mr as f,
|
|
1813
|
+
D as g,
|
|
1814
|
+
Kr as i,
|
|
1815
|
+
lr as p,
|
|
1816
|
+
ur as u
|
|
1817
|
+
};
|