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,2328 @@
|
|
|
1
|
+
import { _ as D, S as V, G as Be, h as _, O as oe, m as Z, P as R, o as B, bP as qt, cF as Jt, E, d2 as er, u as re, R as Ge, eg as tr, eh as St, ei as rr, aR as Oe, f as z, x as ke, cg as nr, aj as Tt, c0 as ar, c1 as ir, Q as or, c2 as sr, aS as ur, c9 as lr, c8 as cr, ca as Mt, aT as hr, cc as pr, T as me, ej as le, ak as ce, r as Ye, C as At, M as wt, ek as vr, ee as Xe, ef as je, j as ye, N as fr, Z as $e, el as dr, D as gr, B as be, bq as mr, b as Dt, bs as yr, t as Q, b0 as Ee, b9 as br, bv as xr, em as Qe, ay as Cr, s as _r, U as Sr, en as Bt, l as Tr, eo as Mr, ep as Ar, aa as wr, eq as ae, bm as Dr, bM as Ke } from "./echarts-BVht3HHb.js";
|
|
2
|
+
import { c as Br } from "./dataSample-BXwc06Sb.js";
|
|
3
|
+
import { c as Or } from "./createSeriesDataSimply-Bsly4zZA.js";
|
|
4
|
+
import { E as Ot, r as qe, Q as kr, u as Er } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
5
|
+
import { D as Ir, c as Rr, d as Pr } from "./install-Cx1i_m0k.js";
|
|
6
|
+
import { l as Lr, m as Nr } from "./install-hfre7yvV.js";
|
|
7
|
+
import { s as Vr, c as zr, d as Hr, r as Zr } from "./install-B0x4IqQr.js";
|
|
8
|
+
import { t as Fr, r as Wr } from "./RoamController-DmBIwcAZ.js";
|
|
9
|
+
import { o as Ur, c as J } from "./cursorHelper-DE0KU4_J.js";
|
|
10
|
+
var G = !0, te = Math.min, K = Math.max, Gr = Math.pow, Yr = 1e4, Xr = 6, jr = 6, Je = "globalPan", $r = {
|
|
11
|
+
w: [0, 0],
|
|
12
|
+
e: [0, 1],
|
|
13
|
+
n: [1, 0],
|
|
14
|
+
s: [1, 1]
|
|
15
|
+
}, Qr = {
|
|
16
|
+
w: "ew",
|
|
17
|
+
e: "ew",
|
|
18
|
+
n: "ns",
|
|
19
|
+
s: "ns",
|
|
20
|
+
ne: "nesw",
|
|
21
|
+
sw: "nesw",
|
|
22
|
+
nw: "nwse",
|
|
23
|
+
se: "nwse"
|
|
24
|
+
}, et = {
|
|
25
|
+
brushStyle: {
|
|
26
|
+
lineWidth: 2,
|
|
27
|
+
stroke: "rgba(210,219,238,0.3)",
|
|
28
|
+
fill: "#D2DBEE"
|
|
29
|
+
},
|
|
30
|
+
transformable: !0,
|
|
31
|
+
brushMode: "single",
|
|
32
|
+
removeOnClick: !1
|
|
33
|
+
}, Kr = 0, kt = (
|
|
34
|
+
/** @class */
|
|
35
|
+
(function(e) {
|
|
36
|
+
D(r, e);
|
|
37
|
+
function r(t) {
|
|
38
|
+
var n = e.call(this) || this;
|
|
39
|
+
return n._track = [], n._covers = [], n._handlers = {}, process.env.NODE_ENV !== "production" && V(t), n._zr = t, n.group = new Be(), n._uid = "brushController_" + Kr++, _(an, function(a, i) {
|
|
40
|
+
this._handlers[i] = oe(a, this);
|
|
41
|
+
}, n), n;
|
|
42
|
+
}
|
|
43
|
+
return r.prototype.enableBrush = function(t) {
|
|
44
|
+
return process.env.NODE_ENV !== "production" && V(this._mounted), this._brushType && this._doDisableBrush(), t.brushType && this._doEnableBrush(t), this;
|
|
45
|
+
}, r.prototype._doEnableBrush = function(t) {
|
|
46
|
+
var n = this._zr;
|
|
47
|
+
this._enableGlobalPan || Fr(n, Je, this._uid), _(this._handlers, function(a, i) {
|
|
48
|
+
n.on(i, a);
|
|
49
|
+
}), this._brushType = t.brushType, this._brushOption = Z(R(et), t, !0);
|
|
50
|
+
}, r.prototype._doDisableBrush = function() {
|
|
51
|
+
var t = this._zr;
|
|
52
|
+
Wr(t, Je, this._uid), _(this._handlers, function(n, a) {
|
|
53
|
+
t.off(a, n);
|
|
54
|
+
}), this._brushType = this._brushOption = null;
|
|
55
|
+
}, r.prototype.setPanels = function(t) {
|
|
56
|
+
if (t && t.length) {
|
|
57
|
+
var n = this._panels = {};
|
|
58
|
+
_(t, function(a) {
|
|
59
|
+
n[a.panelId] = R(a);
|
|
60
|
+
});
|
|
61
|
+
} else
|
|
62
|
+
this._panels = null;
|
|
63
|
+
return this;
|
|
64
|
+
}, r.prototype.mount = function(t) {
|
|
65
|
+
t = t || {}, process.env.NODE_ENV !== "production" && (this._mounted = !0), this._enableGlobalPan = t.enableGlobalPan;
|
|
66
|
+
var n = this.group;
|
|
67
|
+
return this._zr.add(n), n.attr({
|
|
68
|
+
x: t.x || 0,
|
|
69
|
+
y: t.y || 0,
|
|
70
|
+
rotation: t.rotation || 0,
|
|
71
|
+
scaleX: t.scaleX || 1,
|
|
72
|
+
scaleY: t.scaleY || 1
|
|
73
|
+
}), this._transform = n.getLocalTransform(), this;
|
|
74
|
+
}, r.prototype.updateCovers = function(t) {
|
|
75
|
+
process.env.NODE_ENV !== "production" && V(this._mounted), t = B(t, function(c) {
|
|
76
|
+
return Z(R(et), c, !0);
|
|
77
|
+
});
|
|
78
|
+
var n = "\0-brush-index-", a = this._covers, i = this._covers = [], o = this, s = this._creatingCover;
|
|
79
|
+
return new Ot(a, t, h, u).add(l).update(l).remove(p).execute(), this;
|
|
80
|
+
function u(c, b) {
|
|
81
|
+
return (c.id != null ? c.id : n + b) + "-" + c.brushType;
|
|
82
|
+
}
|
|
83
|
+
function h(c, b) {
|
|
84
|
+
return u(c.__brushOption, b);
|
|
85
|
+
}
|
|
86
|
+
function l(c, b) {
|
|
87
|
+
var d = t[c];
|
|
88
|
+
if (b != null && a[b] === s)
|
|
89
|
+
i[c] = a[b];
|
|
90
|
+
else {
|
|
91
|
+
var C = i[c] = b != null ? (a[b].__brushOption = d, a[b]) : It(o, Et(o, d));
|
|
92
|
+
Ie(o, C);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function p(c) {
|
|
96
|
+
a[c] !== s && o.group.remove(a[c]);
|
|
97
|
+
}
|
|
98
|
+
}, r.prototype.unmount = function() {
|
|
99
|
+
if (!(process.env.NODE_ENV !== "production" && !this._mounted))
|
|
100
|
+
return this.enableBrush(!1), xe(this), this._zr.remove(this.group), process.env.NODE_ENV !== "production" && (this._mounted = !1), this;
|
|
101
|
+
}, r.prototype.dispose = function() {
|
|
102
|
+
this.unmount(), this.off();
|
|
103
|
+
}, r;
|
|
104
|
+
})(qt)
|
|
105
|
+
);
|
|
106
|
+
function Et(e, r) {
|
|
107
|
+
var t = se[r.brushType].createCover(e, r);
|
|
108
|
+
return t.__brushOption = r, Pt(t, r), e.group.add(t), t;
|
|
109
|
+
}
|
|
110
|
+
function It(e, r) {
|
|
111
|
+
var t = Re(r);
|
|
112
|
+
return t.endCreating && (t.endCreating(e, r), Pt(r, r.__brushOption)), r;
|
|
113
|
+
}
|
|
114
|
+
function Rt(e, r) {
|
|
115
|
+
var t = r.__brushOption;
|
|
116
|
+
Re(r).updateCoverShape(e, r, t.range, t);
|
|
117
|
+
}
|
|
118
|
+
function Pt(e, r) {
|
|
119
|
+
var t = r.z;
|
|
120
|
+
t == null && (t = Yr), e.traverse(function(n) {
|
|
121
|
+
n.z = t, n.z2 = t;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function Ie(e, r) {
|
|
125
|
+
Re(r).updateCommon(e, r), Rt(e, r);
|
|
126
|
+
}
|
|
127
|
+
function Re(e) {
|
|
128
|
+
return se[e.__brushOption.brushType];
|
|
129
|
+
}
|
|
130
|
+
function Pe(e, r, t) {
|
|
131
|
+
var n = e._panels;
|
|
132
|
+
if (!n)
|
|
133
|
+
return G;
|
|
134
|
+
var a, i = e._transform;
|
|
135
|
+
return _(n, function(o) {
|
|
136
|
+
o.isTargetByCursor(r, t, i) && (a = o);
|
|
137
|
+
}), a;
|
|
138
|
+
}
|
|
139
|
+
function Lt(e, r) {
|
|
140
|
+
var t = e._panels;
|
|
141
|
+
if (!t)
|
|
142
|
+
return G;
|
|
143
|
+
var n = r.__brushOption.panelId;
|
|
144
|
+
return n != null ? t[n] : G;
|
|
145
|
+
}
|
|
146
|
+
function xe(e) {
|
|
147
|
+
var r = e._covers, t = r.length;
|
|
148
|
+
return _(r, function(n) {
|
|
149
|
+
e.group.remove(n);
|
|
150
|
+
}, e), r.length = 0, !!t;
|
|
151
|
+
}
|
|
152
|
+
function Y(e, r) {
|
|
153
|
+
var t = B(e._covers, function(n) {
|
|
154
|
+
var a = n.__brushOption, i = R(a.range);
|
|
155
|
+
return {
|
|
156
|
+
brushType: a.brushType,
|
|
157
|
+
panelId: a.panelId,
|
|
158
|
+
range: i
|
|
159
|
+
};
|
|
160
|
+
});
|
|
161
|
+
e.trigger("brush", {
|
|
162
|
+
areas: t,
|
|
163
|
+
isEnd: !!r.isEnd,
|
|
164
|
+
removeOnClick: !!r.removeOnClick
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function qr(e) {
|
|
168
|
+
var r = e._track;
|
|
169
|
+
if (!r.length)
|
|
170
|
+
return !1;
|
|
171
|
+
var t = r[r.length - 1], n = r[0], a = t[0] - n[0], i = t[1] - n[1], o = Gr(a * a + i * i, 0.5);
|
|
172
|
+
return o > Xr;
|
|
173
|
+
}
|
|
174
|
+
function Nt(e) {
|
|
175
|
+
var r = e.length - 1;
|
|
176
|
+
return r < 0 && (r = 0), [e[0], e[r]];
|
|
177
|
+
}
|
|
178
|
+
function Vt(e, r, t, n) {
|
|
179
|
+
var a = new Be();
|
|
180
|
+
return a.add(new Ge({
|
|
181
|
+
name: "main",
|
|
182
|
+
style: Le(t),
|
|
183
|
+
silent: !0,
|
|
184
|
+
draggable: !0,
|
|
185
|
+
cursor: "move",
|
|
186
|
+
drift: E(tt, e, r, a, ["n", "s", "w", "e"]),
|
|
187
|
+
ondragend: E(Y, r, {
|
|
188
|
+
isEnd: !0
|
|
189
|
+
})
|
|
190
|
+
})), _(n, function(i) {
|
|
191
|
+
a.add(new Ge({
|
|
192
|
+
name: i.join(""),
|
|
193
|
+
style: {
|
|
194
|
+
opacity: 0
|
|
195
|
+
},
|
|
196
|
+
draggable: !0,
|
|
197
|
+
silent: !0,
|
|
198
|
+
invisible: !0,
|
|
199
|
+
drift: E(tt, e, r, a, i),
|
|
200
|
+
ondragend: E(Y, r, {
|
|
201
|
+
isEnd: !0
|
|
202
|
+
})
|
|
203
|
+
}));
|
|
204
|
+
}), a;
|
|
205
|
+
}
|
|
206
|
+
function zt(e, r, t, n) {
|
|
207
|
+
var a = n.brushStyle.lineWidth || 0, i = K(a, jr), o = t[0][0], s = t[1][0], u = o - a / 2, h = s - a / 2, l = t[0][1], p = t[1][1], c = l - i + a / 2, b = p - i + a / 2, d = l - o, C = p - s, T = d + a, y = C + a;
|
|
208
|
+
N(e, r, "main", o, s, d, C), n.transformable && (N(e, r, "w", u, h, i, y), N(e, r, "e", c, h, i, y), N(e, r, "n", u, h, T, i), N(e, r, "s", u, b, T, i), N(e, r, "nw", u, h, i, i), N(e, r, "ne", c, h, i, i), N(e, r, "sw", u, b, i, i), N(e, r, "se", c, b, i, i));
|
|
209
|
+
}
|
|
210
|
+
function Ce(e, r) {
|
|
211
|
+
var t = r.__brushOption, n = t.transformable, a = r.childAt(0);
|
|
212
|
+
a.useStyle(Le(t)), a.attr({
|
|
213
|
+
silent: !n,
|
|
214
|
+
cursor: n ? "move" : "default"
|
|
215
|
+
}), _([["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]], function(i) {
|
|
216
|
+
var o = r.childOfName(i.join("")), s = i.length === 1 ? _e(e, i[0]) : en(e, i);
|
|
217
|
+
o && o.attr({
|
|
218
|
+
silent: !n,
|
|
219
|
+
invisible: !n,
|
|
220
|
+
cursor: n ? Qr[s] + "-resize" : null
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function N(e, r, t, n, a, i, o) {
|
|
225
|
+
var s = r.childOfName(t);
|
|
226
|
+
s && s.setShape(rn(Ne(e, r, [[n, a], [n + i, a + o]])));
|
|
227
|
+
}
|
|
228
|
+
function Le(e) {
|
|
229
|
+
return re({
|
|
230
|
+
strokeNoScale: !0
|
|
231
|
+
}, e.brushStyle);
|
|
232
|
+
}
|
|
233
|
+
function Ht(e, r, t, n) {
|
|
234
|
+
var a = [te(e, t), te(r, n)], i = [K(e, t), K(r, n)];
|
|
235
|
+
return [
|
|
236
|
+
[a[0], i[0]],
|
|
237
|
+
[a[1], i[1]]
|
|
238
|
+
// y range
|
|
239
|
+
];
|
|
240
|
+
}
|
|
241
|
+
function Jr(e) {
|
|
242
|
+
return St(e.group);
|
|
243
|
+
}
|
|
244
|
+
function _e(e, r) {
|
|
245
|
+
var t = {
|
|
246
|
+
w: "left",
|
|
247
|
+
e: "right",
|
|
248
|
+
n: "top",
|
|
249
|
+
s: "bottom"
|
|
250
|
+
}, n = {
|
|
251
|
+
left: "w",
|
|
252
|
+
right: "e",
|
|
253
|
+
top: "n",
|
|
254
|
+
bottom: "s"
|
|
255
|
+
}, a = tr(t[r], Jr(e));
|
|
256
|
+
return n[a];
|
|
257
|
+
}
|
|
258
|
+
function en(e, r) {
|
|
259
|
+
var t = [_e(e, r[0]), _e(e, r[1])];
|
|
260
|
+
return (t[0] === "e" || t[0] === "w") && t.reverse(), t.join("");
|
|
261
|
+
}
|
|
262
|
+
function tt(e, r, t, n, a, i) {
|
|
263
|
+
var o = t.__brushOption, s = e.toRectRange(o.range), u = Zt(r, a, i);
|
|
264
|
+
_(n, function(h) {
|
|
265
|
+
var l = $r[h];
|
|
266
|
+
s[l[0]][l[1]] += u[l[0]];
|
|
267
|
+
}), o.range = e.fromRectRange(Ht(s[0][0], s[1][0], s[0][1], s[1][1])), Ie(r, t), Y(r, {
|
|
268
|
+
isEnd: !1
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
function tn(e, r, t, n) {
|
|
272
|
+
var a = r.__brushOption.range, i = Zt(e, t, n);
|
|
273
|
+
_(a, function(o) {
|
|
274
|
+
o[0] += i[0], o[1] += i[1];
|
|
275
|
+
}), Ie(e, r), Y(e, {
|
|
276
|
+
isEnd: !1
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
function Zt(e, r, t) {
|
|
280
|
+
var n = e.group, a = n.transformCoordToLocal(r, t), i = n.transformCoordToLocal(0, 0);
|
|
281
|
+
return [a[0] - i[0], a[1] - i[1]];
|
|
282
|
+
}
|
|
283
|
+
function Ne(e, r, t) {
|
|
284
|
+
var n = Lt(e, r);
|
|
285
|
+
return n && n !== G ? n.clipPath(t, e._transform) : R(t);
|
|
286
|
+
}
|
|
287
|
+
function rn(e) {
|
|
288
|
+
var r = te(e[0][0], e[1][0]), t = te(e[0][1], e[1][1]), n = K(e[0][0], e[1][0]), a = K(e[0][1], e[1][1]);
|
|
289
|
+
return {
|
|
290
|
+
x: r,
|
|
291
|
+
y: t,
|
|
292
|
+
width: n - r,
|
|
293
|
+
height: a - t
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
function nn(e, r, t) {
|
|
297
|
+
if (
|
|
298
|
+
// Check active
|
|
299
|
+
!(!e._brushType || on(e, r.offsetX, r.offsetY))
|
|
300
|
+
) {
|
|
301
|
+
var n = e._zr, a = e._covers, i = Pe(e, r, t);
|
|
302
|
+
if (!e._dragging)
|
|
303
|
+
for (var o = 0; o < a.length; o++) {
|
|
304
|
+
var s = a[o].__brushOption;
|
|
305
|
+
if (i && (i === G || s.panelId === i.panelId) && se[s.brushType].contain(a[o], t[0], t[1]))
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
i && n.setCursorStyle("crosshair");
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
function Se(e) {
|
|
312
|
+
var r = e.event;
|
|
313
|
+
r.preventDefault && r.preventDefault();
|
|
314
|
+
}
|
|
315
|
+
function Te(e, r, t) {
|
|
316
|
+
return e.childOfName("main").contain(r, t);
|
|
317
|
+
}
|
|
318
|
+
function Ft(e, r, t, n) {
|
|
319
|
+
var a = e._creatingCover, i = e._creatingPanel, o = e._brushOption, s;
|
|
320
|
+
if (e._track.push(t.slice()), qr(e) || a) {
|
|
321
|
+
if (i && !a) {
|
|
322
|
+
o.brushMode === "single" && xe(e);
|
|
323
|
+
var u = R(o);
|
|
324
|
+
u.brushType = rt(u.brushType, i), u.panelId = i === G ? null : i.panelId, a = e._creatingCover = Et(e, u), e._covers.push(a);
|
|
325
|
+
}
|
|
326
|
+
if (a) {
|
|
327
|
+
var h = se[rt(e._brushType, i)], l = a.__brushOption;
|
|
328
|
+
l.range = h.getCreatingRange(Ne(e, a, e._track)), n && (It(e, a), h.updateCommon(e, a)), Rt(e, a), s = {
|
|
329
|
+
isEnd: n
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
} else n && o.brushMode === "single" && o.removeOnClick && Pe(e, r, t) && xe(e) && (s = {
|
|
333
|
+
isEnd: n,
|
|
334
|
+
removeOnClick: !0
|
|
335
|
+
});
|
|
336
|
+
return s;
|
|
337
|
+
}
|
|
338
|
+
function rt(e, r) {
|
|
339
|
+
return e === "auto" ? (process.env.NODE_ENV !== "production" && V(r && r.defaultBrushType, 'MUST have defaultBrushType when brushType is "atuo"'), r.defaultBrushType) : e;
|
|
340
|
+
}
|
|
341
|
+
var an = {
|
|
342
|
+
mousedown: function(e) {
|
|
343
|
+
if (this._dragging)
|
|
344
|
+
nt(this, e);
|
|
345
|
+
else if (!e.target || !e.target.draggable) {
|
|
346
|
+
Se(e);
|
|
347
|
+
var r = this.group.transformCoordToLocal(e.offsetX, e.offsetY);
|
|
348
|
+
this._creatingCover = null;
|
|
349
|
+
var t = this._creatingPanel = Pe(this, e, r);
|
|
350
|
+
t && (this._dragging = !0, this._track = [r.slice()]);
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
mousemove: function(e) {
|
|
354
|
+
var r = e.offsetX, t = e.offsetY, n = this.group.transformCoordToLocal(r, t);
|
|
355
|
+
if (nn(this, e, n), this._dragging) {
|
|
356
|
+
Se(e);
|
|
357
|
+
var a = Ft(this, e, n, !1);
|
|
358
|
+
a && Y(this, a);
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
mouseup: function(e) {
|
|
362
|
+
nt(this, e);
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
function nt(e, r) {
|
|
366
|
+
if (e._dragging) {
|
|
367
|
+
Se(r);
|
|
368
|
+
var t = r.offsetX, n = r.offsetY, a = e.group.transformCoordToLocal(t, n), i = Ft(e, r, a, !0);
|
|
369
|
+
e._dragging = !1, e._track = [], e._creatingCover = null, i && Y(e, i);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
function on(e, r, t) {
|
|
373
|
+
var n = e._zr;
|
|
374
|
+
return r < 0 || r > n.getWidth() || t < 0 || t > n.getHeight();
|
|
375
|
+
}
|
|
376
|
+
var se = {
|
|
377
|
+
lineX: at(0),
|
|
378
|
+
lineY: at(1),
|
|
379
|
+
rect: {
|
|
380
|
+
createCover: function(e, r) {
|
|
381
|
+
function t(n) {
|
|
382
|
+
return n;
|
|
383
|
+
}
|
|
384
|
+
return Vt({
|
|
385
|
+
toRectRange: t,
|
|
386
|
+
fromRectRange: t
|
|
387
|
+
}, e, r, [["w"], ["e"], ["n"], ["s"], ["s", "e"], ["s", "w"], ["n", "e"], ["n", "w"]]);
|
|
388
|
+
},
|
|
389
|
+
getCreatingRange: function(e) {
|
|
390
|
+
var r = Nt(e);
|
|
391
|
+
return Ht(r[1][0], r[1][1], r[0][0], r[0][1]);
|
|
392
|
+
},
|
|
393
|
+
updateCoverShape: function(e, r, t, n) {
|
|
394
|
+
zt(e, r, t, n);
|
|
395
|
+
},
|
|
396
|
+
updateCommon: Ce,
|
|
397
|
+
contain: Te
|
|
398
|
+
},
|
|
399
|
+
polygon: {
|
|
400
|
+
createCover: function(e, r) {
|
|
401
|
+
var t = new Be();
|
|
402
|
+
return t.add(new er({
|
|
403
|
+
name: "main",
|
|
404
|
+
style: Le(r),
|
|
405
|
+
silent: !0
|
|
406
|
+
})), t;
|
|
407
|
+
},
|
|
408
|
+
getCreatingRange: function(e) {
|
|
409
|
+
return e;
|
|
410
|
+
},
|
|
411
|
+
endCreating: function(e, r) {
|
|
412
|
+
r.remove(r.childAt(0)), r.add(new Jt({
|
|
413
|
+
name: "main",
|
|
414
|
+
draggable: !0,
|
|
415
|
+
drift: E(tn, e, r),
|
|
416
|
+
ondragend: E(Y, e, {
|
|
417
|
+
isEnd: !0
|
|
418
|
+
})
|
|
419
|
+
}));
|
|
420
|
+
},
|
|
421
|
+
updateCoverShape: function(e, r, t, n) {
|
|
422
|
+
r.childAt(0).setShape({
|
|
423
|
+
points: Ne(e, r, t)
|
|
424
|
+
});
|
|
425
|
+
},
|
|
426
|
+
updateCommon: Ce,
|
|
427
|
+
contain: Te
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
function at(e) {
|
|
431
|
+
return {
|
|
432
|
+
createCover: function(r, t) {
|
|
433
|
+
return Vt({
|
|
434
|
+
toRectRange: function(n) {
|
|
435
|
+
var a = [n, [0, 100]];
|
|
436
|
+
return e && a.reverse(), a;
|
|
437
|
+
},
|
|
438
|
+
fromRectRange: function(n) {
|
|
439
|
+
return n[e];
|
|
440
|
+
}
|
|
441
|
+
}, r, t, [[["w"], ["e"]], [["n"], ["s"]]][e]);
|
|
442
|
+
},
|
|
443
|
+
getCreatingRange: function(r) {
|
|
444
|
+
var t = Nt(r), n = te(t[0][e], t[1][e]), a = K(t[0][e], t[1][e]);
|
|
445
|
+
return [n, a];
|
|
446
|
+
},
|
|
447
|
+
updateCoverShape: function(r, t, n, a) {
|
|
448
|
+
var i, o = Lt(r, t);
|
|
449
|
+
if (o !== G && o.getLinearBrushOtherExtent)
|
|
450
|
+
i = o.getLinearBrushOtherExtent(e);
|
|
451
|
+
else {
|
|
452
|
+
var s = r._zr;
|
|
453
|
+
i = [0, [s.getWidth(), s.getHeight()][1 - e]];
|
|
454
|
+
}
|
|
455
|
+
var u = [n, i];
|
|
456
|
+
e && u.reverse(), zt(r, t, u, a);
|
|
457
|
+
},
|
|
458
|
+
updateCommon: Ce,
|
|
459
|
+
contain: Te
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
function sn(e) {
|
|
463
|
+
return e = Ve(e), function(r) {
|
|
464
|
+
return rr(r, e);
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
function un(e, r) {
|
|
468
|
+
return e = Ve(e), function(t) {
|
|
469
|
+
var n = r != null ? r : t, a = n ? e.width : e.height, i = n ? e.x : e.y;
|
|
470
|
+
return [i, i + (a || 0)];
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
function ln(e, r, t) {
|
|
474
|
+
var n = Ve(e);
|
|
475
|
+
return function(a, i) {
|
|
476
|
+
return n.contain(i[0], i[1]) && !Ur(a, r, t);
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
function Ve(e) {
|
|
480
|
+
return Oe.create(e);
|
|
481
|
+
}
|
|
482
|
+
var cn = (
|
|
483
|
+
/** @class */
|
|
484
|
+
(function() {
|
|
485
|
+
function e() {
|
|
486
|
+
}
|
|
487
|
+
return e.prototype._hasEncodeRule = function(r) {
|
|
488
|
+
var t = this.getEncode();
|
|
489
|
+
return t && t.get(r) != null;
|
|
490
|
+
}, e.prototype.getInitialData = function(r, t) {
|
|
491
|
+
var n, a = t.getComponent("xAxis", this.get("xAxisIndex")), i = t.getComponent("yAxis", this.get("yAxisIndex")), o = a.get("type"), s = i.get("type"), u;
|
|
492
|
+
o === "category" ? (r.layout = "horizontal", n = a.getOrdinalMeta(), u = !this._hasEncodeRule("x")) : s === "category" ? (r.layout = "vertical", n = i.getOrdinalMeta(), u = !this._hasEncodeRule("y")) : r.layout = r.layout || "horizontal";
|
|
493
|
+
var h = ["x", "y"], l = r.layout === "horizontal" ? 0 : 1, p = this._baseAxisDim = h[l], c = h[1 - l], b = [a, i], d = b[l].get("type"), C = b[1 - l].get("type"), T = r.data;
|
|
494
|
+
if (T && u) {
|
|
495
|
+
var y = [];
|
|
496
|
+
_(T, function(f, v) {
|
|
497
|
+
var g;
|
|
498
|
+
z(f) ? (g = f.slice(), f.unshift(v)) : z(f.value) ? (g = ke({}, f), g.value = g.value.slice(), f.value.unshift(v)) : g = f, y.push(g);
|
|
499
|
+
}), r.data = y;
|
|
500
|
+
}
|
|
501
|
+
var m = this.defaultValueDimensions, x = [{
|
|
502
|
+
name: p,
|
|
503
|
+
type: qe(d),
|
|
504
|
+
ordinalMeta: n,
|
|
505
|
+
otherDims: {
|
|
506
|
+
tooltip: !1,
|
|
507
|
+
itemName: 0
|
|
508
|
+
},
|
|
509
|
+
dimsDef: ["base"]
|
|
510
|
+
}, {
|
|
511
|
+
name: c,
|
|
512
|
+
type: qe(C),
|
|
513
|
+
dimsDef: m.slice()
|
|
514
|
+
}];
|
|
515
|
+
return Or(this, {
|
|
516
|
+
coordDimensions: x,
|
|
517
|
+
dimensionsCount: m.length + 1,
|
|
518
|
+
encodeDefaulter: E(nr, x, this)
|
|
519
|
+
});
|
|
520
|
+
}, e.prototype.getBaseAxis = function() {
|
|
521
|
+
var r = this._baseAxisDim;
|
|
522
|
+
return this.ecModel.getComponent(r + "Axis", this.get(r + "AxisIndex")).axis;
|
|
523
|
+
}, e;
|
|
524
|
+
})()
|
|
525
|
+
), hn = ["itemStyle", "borderColor"], pn = ["itemStyle", "borderColor0"], vn = ["itemStyle", "borderColorDoji"], fn = ["itemStyle", "color"], dn = ["itemStyle", "color0"];
|
|
526
|
+
function ze(e, r) {
|
|
527
|
+
return r.get(e > 0 ? fn : dn);
|
|
528
|
+
}
|
|
529
|
+
function He(e, r) {
|
|
530
|
+
return r.get(e === 0 ? vn : e > 0 ? hn : pn);
|
|
531
|
+
}
|
|
532
|
+
var gn = {
|
|
533
|
+
seriesType: "candlestick",
|
|
534
|
+
plan: Tt(),
|
|
535
|
+
// For legend.
|
|
536
|
+
performRawSeries: !0,
|
|
537
|
+
reset: function(e, r) {
|
|
538
|
+
if (!r.isSeriesFiltered(e)) {
|
|
539
|
+
var t = e.pipelineContext.large;
|
|
540
|
+
return !t && {
|
|
541
|
+
progress: function(n, a) {
|
|
542
|
+
for (var i; (i = n.next()) != null; ) {
|
|
543
|
+
var o = a.getItemModel(i), s = a.getItemLayout(i).sign, u = o.getItemStyle();
|
|
544
|
+
u.fill = ze(s, o), u.stroke = He(s, o) || u.fill;
|
|
545
|
+
var h = a.ensureUniqueItemVisual(i, "style");
|
|
546
|
+
ke(h, u);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}, mn = ["color", "borderColor"], yn = (
|
|
553
|
+
/** @class */
|
|
554
|
+
(function(e) {
|
|
555
|
+
D(r, e);
|
|
556
|
+
function r() {
|
|
557
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
558
|
+
return t.type = r.type, t;
|
|
559
|
+
}
|
|
560
|
+
return r.prototype.render = function(t, n, a) {
|
|
561
|
+
this.group.removeClipPath(), this._progressiveEls = null, this._updateDrawMode(t), this._isLargeDraw ? this._renderLarge(t) : this._renderNormal(t);
|
|
562
|
+
}, r.prototype.incrementalPrepareRender = function(t, n, a) {
|
|
563
|
+
this._clear(), this._updateDrawMode(t);
|
|
564
|
+
}, r.prototype.incrementalRender = function(t, n, a, i) {
|
|
565
|
+
this._progressiveEls = [], this._isLargeDraw ? this._incrementalRenderLarge(t, n) : this._incrementalRenderNormal(t, n);
|
|
566
|
+
}, r.prototype.eachRendered = function(t) {
|
|
567
|
+
ar(this._progressiveEls || this.group, t);
|
|
568
|
+
}, r.prototype._updateDrawMode = function(t) {
|
|
569
|
+
var n = t.pipelineContext.large;
|
|
570
|
+
(this._isLargeDraw == null || n !== this._isLargeDraw) && (this._isLargeDraw = n, this._clear());
|
|
571
|
+
}, r.prototype._renderNormal = function(t) {
|
|
572
|
+
var n = t.getData(), a = this._data, i = this.group, o = n.getLayout("isSimpleBox"), s = t.get("clip", !0), u = t.coordinateSystem, h = u.getArea && u.getArea();
|
|
573
|
+
this._data || i.removeAll(), n.diff(a).add(function(l) {
|
|
574
|
+
if (n.hasValue(l)) {
|
|
575
|
+
var p = n.getItemLayout(l);
|
|
576
|
+
if (s && it(h, p))
|
|
577
|
+
return;
|
|
578
|
+
var c = he(p, l, !0);
|
|
579
|
+
ir(c, {
|
|
580
|
+
shape: {
|
|
581
|
+
points: p.ends
|
|
582
|
+
}
|
|
583
|
+
}, t, l), pe(c, n, l, o), i.add(c), n.setItemGraphicEl(l, c);
|
|
584
|
+
}
|
|
585
|
+
}).update(function(l, p) {
|
|
586
|
+
var c = a.getItemGraphicEl(p);
|
|
587
|
+
if (!n.hasValue(l)) {
|
|
588
|
+
i.remove(c);
|
|
589
|
+
return;
|
|
590
|
+
}
|
|
591
|
+
var b = n.getItemLayout(l);
|
|
592
|
+
if (s && it(h, b)) {
|
|
593
|
+
i.remove(c);
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
c ? (or(c, {
|
|
597
|
+
shape: {
|
|
598
|
+
points: b.ends
|
|
599
|
+
}
|
|
600
|
+
}, t, l), sr(c)) : c = he(b), pe(c, n, l, o), i.add(c), n.setItemGraphicEl(l, c);
|
|
601
|
+
}).remove(function(l) {
|
|
602
|
+
var p = a.getItemGraphicEl(l);
|
|
603
|
+
p && i.remove(p);
|
|
604
|
+
}).execute(), this._data = n;
|
|
605
|
+
}, r.prototype._renderLarge = function(t) {
|
|
606
|
+
this._clear(), ot(t, this.group);
|
|
607
|
+
var n = t.get("clip", !0) ? Br(t.coordinateSystem, !1, t) : null;
|
|
608
|
+
n ? this.group.setClipPath(n) : this.group.removeClipPath();
|
|
609
|
+
}, r.prototype._incrementalRenderNormal = function(t, n) {
|
|
610
|
+
for (var a = n.getData(), i = a.getLayout("isSimpleBox"), o; (o = t.next()) != null; ) {
|
|
611
|
+
var s = a.getItemLayout(o), u = he(s);
|
|
612
|
+
pe(u, a, o, i), u.incremental = !0, this.group.add(u), this._progressiveEls.push(u);
|
|
613
|
+
}
|
|
614
|
+
}, r.prototype._incrementalRenderLarge = function(t, n) {
|
|
615
|
+
ot(n, this.group, this._progressiveEls, !0);
|
|
616
|
+
}, r.prototype.remove = function(t) {
|
|
617
|
+
this._clear();
|
|
618
|
+
}, r.prototype._clear = function() {
|
|
619
|
+
this.group.removeAll(), this._data = null;
|
|
620
|
+
}, r.type = "candlestick", r;
|
|
621
|
+
})(ur)
|
|
622
|
+
), bn = (
|
|
623
|
+
/** @class */
|
|
624
|
+
/* @__PURE__ */ (function() {
|
|
625
|
+
function e() {
|
|
626
|
+
}
|
|
627
|
+
return e;
|
|
628
|
+
})()
|
|
629
|
+
), xn = (
|
|
630
|
+
/** @class */
|
|
631
|
+
(function(e) {
|
|
632
|
+
D(r, e);
|
|
633
|
+
function r(t) {
|
|
634
|
+
var n = e.call(this, t) || this;
|
|
635
|
+
return n.type = "normalCandlestickBox", n;
|
|
636
|
+
}
|
|
637
|
+
return r.prototype.getDefaultShape = function() {
|
|
638
|
+
return new bn();
|
|
639
|
+
}, r.prototype.buildPath = function(t, n) {
|
|
640
|
+
var a = n.points;
|
|
641
|
+
this.__simpleBox ? (t.moveTo(a[4][0], a[4][1]), t.lineTo(a[6][0], a[6][1])) : (t.moveTo(a[0][0], a[0][1]), t.lineTo(a[1][0], a[1][1]), t.lineTo(a[2][0], a[2][1]), t.lineTo(a[3][0], a[3][1]), t.closePath(), t.moveTo(a[4][0], a[4][1]), t.lineTo(a[5][0], a[5][1]), t.moveTo(a[6][0], a[6][1]), t.lineTo(a[7][0], a[7][1]));
|
|
642
|
+
}, r;
|
|
643
|
+
})(Mt)
|
|
644
|
+
);
|
|
645
|
+
function he(e, r, t) {
|
|
646
|
+
var n = e.ends;
|
|
647
|
+
return new xn({
|
|
648
|
+
shape: {
|
|
649
|
+
points: t ? Cn(n, e) : n
|
|
650
|
+
},
|
|
651
|
+
z2: 100
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
function it(e, r) {
|
|
655
|
+
for (var t = !0, n = 0; n < r.ends.length; n++)
|
|
656
|
+
if (e.contain(r.ends[n][0], r.ends[n][1])) {
|
|
657
|
+
t = !1;
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
return t;
|
|
661
|
+
}
|
|
662
|
+
function pe(e, r, t, n) {
|
|
663
|
+
var a = r.getItemModel(t);
|
|
664
|
+
e.useStyle(r.getItemVisual(t, "style")), e.style.strokeNoScale = !0, e.__simpleBox = n, lr(e, a);
|
|
665
|
+
var i = r.getItemLayout(t).sign;
|
|
666
|
+
_(e.states, function(s, u) {
|
|
667
|
+
var h = a.getModel(u), l = ze(i, h), p = He(i, h) || l, c = s.style || (s.style = {});
|
|
668
|
+
l && (c.fill = l), p && (c.stroke = p);
|
|
669
|
+
});
|
|
670
|
+
var o = a.getModel("emphasis");
|
|
671
|
+
cr(e, o.get("focus"), o.get("blurScope"), o.get("disabled"));
|
|
672
|
+
}
|
|
673
|
+
function Cn(e, r) {
|
|
674
|
+
return B(e, function(t) {
|
|
675
|
+
return t = t.slice(), t[1] = r.initBaseline, t;
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
var _n = (
|
|
679
|
+
/** @class */
|
|
680
|
+
/* @__PURE__ */ (function() {
|
|
681
|
+
function e() {
|
|
682
|
+
}
|
|
683
|
+
return e;
|
|
684
|
+
})()
|
|
685
|
+
), ve = (
|
|
686
|
+
/** @class */
|
|
687
|
+
(function(e) {
|
|
688
|
+
D(r, e);
|
|
689
|
+
function r(t) {
|
|
690
|
+
var n = e.call(this, t) || this;
|
|
691
|
+
return n.type = "largeCandlestickBox", n;
|
|
692
|
+
}
|
|
693
|
+
return r.prototype.getDefaultShape = function() {
|
|
694
|
+
return new _n();
|
|
695
|
+
}, r.prototype.buildPath = function(t, n) {
|
|
696
|
+
for (var a = n.points, i = 0; i < a.length; )
|
|
697
|
+
if (this.__sign === a[i++]) {
|
|
698
|
+
var o = a[i++];
|
|
699
|
+
t.moveTo(o, a[i++]), t.lineTo(o, a[i++]);
|
|
700
|
+
} else
|
|
701
|
+
i += 3;
|
|
702
|
+
}, r;
|
|
703
|
+
})(Mt)
|
|
704
|
+
);
|
|
705
|
+
function ot(e, r, t, n) {
|
|
706
|
+
var a = e.getData(), i = a.getLayout("largePoints"), o = new ve({
|
|
707
|
+
shape: {
|
|
708
|
+
points: i
|
|
709
|
+
},
|
|
710
|
+
__sign: 1,
|
|
711
|
+
ignoreCoarsePointer: !0
|
|
712
|
+
});
|
|
713
|
+
r.add(o);
|
|
714
|
+
var s = new ve({
|
|
715
|
+
shape: {
|
|
716
|
+
points: i
|
|
717
|
+
},
|
|
718
|
+
__sign: -1,
|
|
719
|
+
ignoreCoarsePointer: !0
|
|
720
|
+
});
|
|
721
|
+
r.add(s);
|
|
722
|
+
var u = new ve({
|
|
723
|
+
shape: {
|
|
724
|
+
points: i
|
|
725
|
+
},
|
|
726
|
+
__sign: 0,
|
|
727
|
+
ignoreCoarsePointer: !0
|
|
728
|
+
});
|
|
729
|
+
r.add(u), fe(1, o, e), fe(-1, s, e), fe(0, u, e), n && (o.incremental = !0, s.incremental = !0), t && t.push(o, s);
|
|
730
|
+
}
|
|
731
|
+
function fe(e, r, t, n) {
|
|
732
|
+
var a = He(e, t) || ze(e, t), i = t.getModel("itemStyle").getItemStyle(mn);
|
|
733
|
+
r.useStyle(i), r.style.fill = null, r.style.stroke = a;
|
|
734
|
+
}
|
|
735
|
+
var Wt = (
|
|
736
|
+
/** @class */
|
|
737
|
+
(function(e) {
|
|
738
|
+
D(r, e);
|
|
739
|
+
function r() {
|
|
740
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
741
|
+
return t.type = r.type, t.defaultValueDimensions = [{
|
|
742
|
+
name: "open",
|
|
743
|
+
defaultTooltip: !0
|
|
744
|
+
}, {
|
|
745
|
+
name: "close",
|
|
746
|
+
defaultTooltip: !0
|
|
747
|
+
}, {
|
|
748
|
+
name: "lowest",
|
|
749
|
+
defaultTooltip: !0
|
|
750
|
+
}, {
|
|
751
|
+
name: "highest",
|
|
752
|
+
defaultTooltip: !0
|
|
753
|
+
}], t;
|
|
754
|
+
}
|
|
755
|
+
return r.prototype.getShadowDim = function() {
|
|
756
|
+
return "open";
|
|
757
|
+
}, r.prototype.brushSelector = function(t, n, a) {
|
|
758
|
+
var i = n.getItemLayout(t);
|
|
759
|
+
return i && a.rect(i.brushRect);
|
|
760
|
+
}, r.type = "series.candlestick", r.dependencies = ["xAxis", "yAxis", "grid"], r.defaultOption = {
|
|
761
|
+
// zlevel: 0,
|
|
762
|
+
z: 2,
|
|
763
|
+
coordinateSystem: "cartesian2d",
|
|
764
|
+
legendHoverLink: !0,
|
|
765
|
+
// xAxisIndex: 0,
|
|
766
|
+
// yAxisIndex: 0,
|
|
767
|
+
layout: null,
|
|
768
|
+
clip: !0,
|
|
769
|
+
itemStyle: {
|
|
770
|
+
color: "#eb5454",
|
|
771
|
+
color0: "#47b262",
|
|
772
|
+
borderColor: "#eb5454",
|
|
773
|
+
borderColor0: "#47b262",
|
|
774
|
+
borderColorDoji: null,
|
|
775
|
+
// borderColor: '#d24040',
|
|
776
|
+
// borderColor0: '#398f4f',
|
|
777
|
+
borderWidth: 1
|
|
778
|
+
},
|
|
779
|
+
emphasis: {
|
|
780
|
+
itemStyle: {
|
|
781
|
+
borderWidth: 2
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
barMaxWidth: null,
|
|
785
|
+
barMinWidth: null,
|
|
786
|
+
barWidth: null,
|
|
787
|
+
large: !0,
|
|
788
|
+
largeThreshold: 600,
|
|
789
|
+
progressive: 3e3,
|
|
790
|
+
progressiveThreshold: 1e4,
|
|
791
|
+
progressiveChunkMode: "mod",
|
|
792
|
+
animationEasing: "linear",
|
|
793
|
+
animationDuration: 300
|
|
794
|
+
}, r;
|
|
795
|
+
})(hr)
|
|
796
|
+
);
|
|
797
|
+
pr(Wt, cn, !0);
|
|
798
|
+
function Sn(e) {
|
|
799
|
+
!e || !z(e.series) || _(e.series, function(r) {
|
|
800
|
+
me(r) && r.type === "k" && (r.type = "candlestick");
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
var Tn = {
|
|
804
|
+
seriesType: "candlestick",
|
|
805
|
+
plan: Tt(),
|
|
806
|
+
reset: function(e) {
|
|
807
|
+
var r = e.coordinateSystem, t = e.getData(), n = Mn(e, t), a = 0, i = 1, o = ["x", "y"], s = t.getDimensionIndex(t.mapDimension(o[a])), u = B(t.mapDimensionsAll(o[i]), t.getDimensionIndex, t), h = u[0], l = u[1], p = u[2], c = u[3];
|
|
808
|
+
if (t.setLayout({
|
|
809
|
+
candleWidth: n,
|
|
810
|
+
// The value is experimented visually.
|
|
811
|
+
isSimpleBox: n <= 1.3
|
|
812
|
+
}), s < 0 || u.length < 4)
|
|
813
|
+
return;
|
|
814
|
+
return {
|
|
815
|
+
progress: e.pipelineContext.large ? d : b
|
|
816
|
+
};
|
|
817
|
+
function b(C, T) {
|
|
818
|
+
for (var y, m = T.getStore(); (y = C.next()) != null; ) {
|
|
819
|
+
var x = m.get(s, y), f = m.get(h, y), v = m.get(l, y), g = m.get(p, y), S = m.get(c, y), A = Math.min(f, v), M = Math.max(f, v), w = j(A, x), O = j(M, x), P = j(g, x), F = j(S, x), X = [];
|
|
820
|
+
Ue(X, O, 0), Ue(X, w, 1), X.push(ne(F), ne(O), ne(P), ne(w));
|
|
821
|
+
var $t = T.getItemModel(y), Qt = !!$t.get(["itemStyle", "borderColorDoji"]);
|
|
822
|
+
T.setItemLayout(y, {
|
|
823
|
+
sign: st(m, y, f, v, l, Qt),
|
|
824
|
+
initBaseline: f > v ? O[i] : w[i],
|
|
825
|
+
ends: X,
|
|
826
|
+
brushRect: Kt(g, S, x)
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
function j(I, W) {
|
|
830
|
+
var H = [];
|
|
831
|
+
return H[a] = W, H[i] = I, isNaN(W) || isNaN(I) ? [NaN, NaN] : r.dataToPoint(H);
|
|
832
|
+
}
|
|
833
|
+
function Ue(I, W, H) {
|
|
834
|
+
var L = W.slice(), U = W.slice();
|
|
835
|
+
L[a] = le(L[a] + n / 2, 1, !1), U[a] = le(U[a] - n / 2, 1, !0), H ? I.push(L, U) : I.push(U, L);
|
|
836
|
+
}
|
|
837
|
+
function Kt(I, W, H) {
|
|
838
|
+
var L = j(I, H), U = j(W, H);
|
|
839
|
+
return L[a] -= n / 2, U[a] -= n / 2, {
|
|
840
|
+
x: L[0],
|
|
841
|
+
y: L[1],
|
|
842
|
+
width: n,
|
|
843
|
+
height: U[1] - L[1]
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
function ne(I) {
|
|
847
|
+
return I[a] = le(I[a], 1), I;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
function d(C, T) {
|
|
851
|
+
for (var y = kr(C.count * 4), m = 0, x, f = [], v = [], g, S = T.getStore(), A = !!e.get(["itemStyle", "borderColorDoji"]); (g = C.next()) != null; ) {
|
|
852
|
+
var M = S.get(s, g), w = S.get(h, g), O = S.get(l, g), P = S.get(p, g), F = S.get(c, g);
|
|
853
|
+
if (isNaN(M) || isNaN(P) || isNaN(F)) {
|
|
854
|
+
y[m++] = NaN, m += 3;
|
|
855
|
+
continue;
|
|
856
|
+
}
|
|
857
|
+
y[m++] = st(S, g, w, O, l, A), f[a] = M, f[i] = P, x = r.dataToPoint(f, null, v), y[m++] = x ? x[0] : NaN, y[m++] = x ? x[1] : NaN, f[i] = F, x = r.dataToPoint(f, null, v), y[m++] = x ? x[1] : NaN;
|
|
858
|
+
}
|
|
859
|
+
T.setLayout("largePoints", y);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
function st(e, r, t, n, a, i) {
|
|
864
|
+
var o;
|
|
865
|
+
return t > n ? o = -1 : t < n ? o = 1 : o = i ? 0 : r > 0 ? e.get(a, r - 1) <= n ? 1 : -1 : 1, o;
|
|
866
|
+
}
|
|
867
|
+
function Mn(e, r) {
|
|
868
|
+
var t = e.getBaseAxis(), n, a = t.type === "category" ? t.getBandWidth() : (n = t.getExtent(), Math.abs(n[1] - n[0]) / r.count()), i = ce(Ye(e.get("barMaxWidth"), a), a), o = ce(Ye(e.get("barMinWidth"), 1), a), s = e.get("barWidth");
|
|
869
|
+
return s != null ? ce(s, a) : Math.max(Math.min(a / 2, i), o);
|
|
870
|
+
}
|
|
871
|
+
function wa(e) {
|
|
872
|
+
e.registerChartView(yn), e.registerSeriesModel(Wt), e.registerPreprocessor(Sn), e.registerVisual(gn), e.registerLayout(Tn);
|
|
873
|
+
}
|
|
874
|
+
var An = (
|
|
875
|
+
/** @class */
|
|
876
|
+
(function(e) {
|
|
877
|
+
D(r, e);
|
|
878
|
+
function r() {
|
|
879
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
880
|
+
return t.type = r.type, t;
|
|
881
|
+
}
|
|
882
|
+
return r.type = "dataZoom.select", r;
|
|
883
|
+
})(Ir)
|
|
884
|
+
), wn = (
|
|
885
|
+
/** @class */
|
|
886
|
+
(function(e) {
|
|
887
|
+
D(r, e);
|
|
888
|
+
function r() {
|
|
889
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
890
|
+
return t.type = r.type, t;
|
|
891
|
+
}
|
|
892
|
+
return r.type = "dataZoom.select", r;
|
|
893
|
+
})(Rr)
|
|
894
|
+
);
|
|
895
|
+
function Dn(e) {
|
|
896
|
+
e.registerComponentModel(An), e.registerComponentView(wn), Pr(e);
|
|
897
|
+
}
|
|
898
|
+
var k = (
|
|
899
|
+
/** @class */
|
|
900
|
+
/* @__PURE__ */ (function() {
|
|
901
|
+
function e() {
|
|
902
|
+
}
|
|
903
|
+
return e;
|
|
904
|
+
})()
|
|
905
|
+
), Ut = {};
|
|
906
|
+
function $(e, r) {
|
|
907
|
+
Ut[e] = r;
|
|
908
|
+
}
|
|
909
|
+
function Gt(e) {
|
|
910
|
+
return Ut[e];
|
|
911
|
+
}
|
|
912
|
+
var Bn = (
|
|
913
|
+
/** @class */
|
|
914
|
+
(function(e) {
|
|
915
|
+
D(r, e);
|
|
916
|
+
function r() {
|
|
917
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
918
|
+
return t.type = r.type, t;
|
|
919
|
+
}
|
|
920
|
+
return r.prototype.optionUpdated = function() {
|
|
921
|
+
e.prototype.optionUpdated.apply(this, arguments);
|
|
922
|
+
var t = this.ecModel;
|
|
923
|
+
_(this.option.feature, function(n, a) {
|
|
924
|
+
var i = Gt(a);
|
|
925
|
+
i && (i.getDefaultOption && (i.defaultOption = i.getDefaultOption(t)), Z(n, i.defaultOption));
|
|
926
|
+
});
|
|
927
|
+
}, r.type = "toolbox", r.layoutMode = {
|
|
928
|
+
type: "box",
|
|
929
|
+
ignoreSize: !0
|
|
930
|
+
}, r.defaultOption = {
|
|
931
|
+
show: !0,
|
|
932
|
+
z: 6,
|
|
933
|
+
// zlevel: 0,
|
|
934
|
+
orient: "horizontal",
|
|
935
|
+
left: "right",
|
|
936
|
+
top: "top",
|
|
937
|
+
// right
|
|
938
|
+
// bottom
|
|
939
|
+
backgroundColor: "transparent",
|
|
940
|
+
borderColor: "#ccc",
|
|
941
|
+
borderRadius: 0,
|
|
942
|
+
borderWidth: 0,
|
|
943
|
+
padding: 5,
|
|
944
|
+
itemSize: 15,
|
|
945
|
+
itemGap: 8,
|
|
946
|
+
showTitle: !0,
|
|
947
|
+
iconStyle: {
|
|
948
|
+
borderColor: "#666",
|
|
949
|
+
color: "none"
|
|
950
|
+
},
|
|
951
|
+
emphasis: {
|
|
952
|
+
iconStyle: {
|
|
953
|
+
borderColor: "#3E98C5"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
// textStyle: {},
|
|
957
|
+
// feature
|
|
958
|
+
tooltip: {
|
|
959
|
+
show: !1,
|
|
960
|
+
position: "bottom"
|
|
961
|
+
}
|
|
962
|
+
}, r;
|
|
963
|
+
})(At)
|
|
964
|
+
), On = (
|
|
965
|
+
/** @class */
|
|
966
|
+
(function(e) {
|
|
967
|
+
D(r, e);
|
|
968
|
+
function r() {
|
|
969
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
970
|
+
}
|
|
971
|
+
return r.prototype.render = function(t, n, a, i) {
|
|
972
|
+
var o = this.group;
|
|
973
|
+
if (o.removeAll(), !t.get("show"))
|
|
974
|
+
return;
|
|
975
|
+
var s = +t.get("itemSize"), u = t.get("orient") === "vertical", h = t.get("feature") || {}, l = this._features || (this._features = {}), p = [];
|
|
976
|
+
_(h, function(d, C) {
|
|
977
|
+
p.push(C);
|
|
978
|
+
}), new Ot(this._featureNames || [], p).add(c).update(c).remove(E(c, null)).execute(), this._featureNames = p;
|
|
979
|
+
function c(d, C) {
|
|
980
|
+
var T = p[d], y = p[C], m = h[T], x = new wt(m, t, t.ecModel), f;
|
|
981
|
+
if (i && i.newTitle != null && i.featureName === T && (m.title = i.newTitle), T && !y) {
|
|
982
|
+
if (kn(T))
|
|
983
|
+
f = {
|
|
984
|
+
onclick: x.option.onclick,
|
|
985
|
+
featureName: T
|
|
986
|
+
};
|
|
987
|
+
else {
|
|
988
|
+
var v = Gt(T);
|
|
989
|
+
if (!v)
|
|
990
|
+
return;
|
|
991
|
+
f = new v();
|
|
992
|
+
}
|
|
993
|
+
l[T] = f;
|
|
994
|
+
} else if (f = l[y], !f)
|
|
995
|
+
return;
|
|
996
|
+
f.uid = vr("toolbox-feature"), f.model = x, f.ecModel = n, f.api = a;
|
|
997
|
+
var g = f instanceof k;
|
|
998
|
+
if (!T && y) {
|
|
999
|
+
g && f.dispose && f.dispose(n, a);
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
if (!x.get("show") || g && f.unusable) {
|
|
1003
|
+
g && f.remove && f.remove(n, a);
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
b(x, f, T), x.setIconStatus = function(S, A) {
|
|
1007
|
+
var M = this.option, w = this.iconPaths;
|
|
1008
|
+
M.iconStatus = M.iconStatus || {}, M.iconStatus[S] = A, w[S] && (A === "emphasis" ? Xe : je)(w[S]);
|
|
1009
|
+
}, f instanceof k && f.render && f.render(x, n, a, i);
|
|
1010
|
+
}
|
|
1011
|
+
function b(d, C, T) {
|
|
1012
|
+
var y = d.getModel("iconStyle"), m = d.getModel(["emphasis", "iconStyle"]), x = C instanceof k && C.getIcons ? C.getIcons() : d.get("icon"), f = d.get("title") || {}, v, g;
|
|
1013
|
+
ye(x) ? (v = {}, v[T] = x) : v = x, ye(f) ? (g = {}, g[T] = f) : g = f;
|
|
1014
|
+
var S = d.iconPaths = {};
|
|
1015
|
+
_(v, function(A, M) {
|
|
1016
|
+
var w = fr(A, {}, {
|
|
1017
|
+
x: -s / 2,
|
|
1018
|
+
y: -s / 2,
|
|
1019
|
+
width: s,
|
|
1020
|
+
height: s
|
|
1021
|
+
});
|
|
1022
|
+
w.setStyle(y.getItemStyle());
|
|
1023
|
+
var O = w.ensureState("emphasis");
|
|
1024
|
+
O.style = m.getItemStyle();
|
|
1025
|
+
var P = new $e({
|
|
1026
|
+
style: {
|
|
1027
|
+
text: g[M],
|
|
1028
|
+
align: m.get("textAlign"),
|
|
1029
|
+
borderRadius: m.get("textBorderRadius"),
|
|
1030
|
+
padding: m.get("textPadding"),
|
|
1031
|
+
fill: null,
|
|
1032
|
+
font: dr({
|
|
1033
|
+
fontStyle: m.get("textFontStyle"),
|
|
1034
|
+
fontFamily: m.get("textFontFamily"),
|
|
1035
|
+
fontSize: m.get("textFontSize"),
|
|
1036
|
+
fontWeight: m.get("textFontWeight")
|
|
1037
|
+
}, n)
|
|
1038
|
+
},
|
|
1039
|
+
ignore: !0
|
|
1040
|
+
});
|
|
1041
|
+
w.setTextContent(P), gr({
|
|
1042
|
+
el: w,
|
|
1043
|
+
componentModel: t,
|
|
1044
|
+
itemName: M,
|
|
1045
|
+
formatterParamsExtra: {
|
|
1046
|
+
title: g[M]
|
|
1047
|
+
}
|
|
1048
|
+
}), w.__title = g[M], w.on("mouseover", function() {
|
|
1049
|
+
var F = m.getItemStyle(), X = u ? t.get("right") == null && t.get("left") !== "right" ? "right" : "left" : t.get("bottom") == null && t.get("top") !== "bottom" ? "bottom" : "top";
|
|
1050
|
+
P.setStyle({
|
|
1051
|
+
fill: m.get("textFill") || F.fill || F.stroke || "#000",
|
|
1052
|
+
backgroundColor: m.get("textBackgroundColor")
|
|
1053
|
+
}), w.setTextConfig({
|
|
1054
|
+
position: m.get("textPosition") || X
|
|
1055
|
+
}), P.ignore = !t.get("showTitle"), a.enterEmphasis(this);
|
|
1056
|
+
}).on("mouseout", function() {
|
|
1057
|
+
d.get(["iconStatus", M]) !== "emphasis" && a.leaveEmphasis(this), P.hide();
|
|
1058
|
+
}), (d.get(["iconStatus", M]) === "emphasis" ? Xe : je)(w), o.add(w), w.on("click", oe(C.onclick, C, n, a, M)), S[M] = w;
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
Lr(o, t, a), o.add(Nr(o.getBoundingRect(), t)), u || o.eachChild(function(d) {
|
|
1062
|
+
var C = d.__title, T = d.ensureState("emphasis"), y = T.textConfig || (T.textConfig = {}), m = d.getTextContent(), x = m && m.ensureState("emphasis");
|
|
1063
|
+
if (x && !be(x) && C) {
|
|
1064
|
+
var f = x.style || (x.style = {}), v = mr(C, $e.makeFont(f)), g = d.x + o.x, S = d.y + o.y + s, A = !1;
|
|
1065
|
+
S + v.height > a.getHeight() && (y.position = "top", A = !0);
|
|
1066
|
+
var M = A ? -5 - v.height : s + 10;
|
|
1067
|
+
g + v.width / 2 > a.getWidth() ? (y.position = ["100%", M], f.align = "right") : g - v.width / 2 < 0 && (y.position = [0, M], f.align = "left");
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
}, r.prototype.updateView = function(t, n, a, i) {
|
|
1071
|
+
_(this._features, function(o) {
|
|
1072
|
+
o instanceof k && o.updateView && o.updateView(o.model, n, a, i);
|
|
1073
|
+
});
|
|
1074
|
+
}, r.prototype.remove = function(t, n) {
|
|
1075
|
+
_(this._features, function(a) {
|
|
1076
|
+
a instanceof k && a.remove && a.remove(t, n);
|
|
1077
|
+
}), this.group.removeAll();
|
|
1078
|
+
}, r.prototype.dispose = function(t, n) {
|
|
1079
|
+
_(this._features, function(a) {
|
|
1080
|
+
a instanceof k && a.dispose && a.dispose(t, n);
|
|
1081
|
+
});
|
|
1082
|
+
}, r.type = "toolbox", r;
|
|
1083
|
+
})(Dt)
|
|
1084
|
+
);
|
|
1085
|
+
function kn(e) {
|
|
1086
|
+
return e.indexOf("my") === 0;
|
|
1087
|
+
}
|
|
1088
|
+
var En = (
|
|
1089
|
+
/** @class */
|
|
1090
|
+
(function(e) {
|
|
1091
|
+
D(r, e);
|
|
1092
|
+
function r() {
|
|
1093
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
1094
|
+
}
|
|
1095
|
+
return r.prototype.onclick = function(t, n) {
|
|
1096
|
+
var a = this.model, i = a.get("name") || t.get("title.0.text") || "echarts", o = n.getZr().painter.getType() === "svg", s = o ? "svg" : a.get("type", !0) || "png", u = n.getConnectedDataURL({
|
|
1097
|
+
type: s,
|
|
1098
|
+
backgroundColor: a.get("backgroundColor", !0) || t.get("backgroundColor") || "#fff",
|
|
1099
|
+
connectedBackgroundColor: a.get("connectedBackgroundColor"),
|
|
1100
|
+
excludeComponents: a.get("excludeComponents"),
|
|
1101
|
+
pixelRatio: a.get("pixelRatio")
|
|
1102
|
+
}), h = yr.browser;
|
|
1103
|
+
if (typeof MouseEvent == "function" && (h.newEdge || !h.ie && !h.edge)) {
|
|
1104
|
+
var l = document.createElement("a");
|
|
1105
|
+
l.download = i + "." + s, l.target = "_blank", l.href = u;
|
|
1106
|
+
var p = new MouseEvent("click", {
|
|
1107
|
+
// some micro front-end framework, window maybe is a Proxy
|
|
1108
|
+
view: document.defaultView,
|
|
1109
|
+
bubbles: !0,
|
|
1110
|
+
cancelable: !1
|
|
1111
|
+
});
|
|
1112
|
+
l.dispatchEvent(p);
|
|
1113
|
+
} else if (window.navigator.msSaveOrOpenBlob || o) {
|
|
1114
|
+
var c = u.split(","), b = c[0].indexOf("base64") > -1, d = o ? decodeURIComponent(c[1]) : c[1];
|
|
1115
|
+
b && (d = window.atob(d));
|
|
1116
|
+
var C = i + "." + s;
|
|
1117
|
+
if (window.navigator.msSaveOrOpenBlob) {
|
|
1118
|
+
for (var T = d.length, y = new Uint8Array(T); T--; )
|
|
1119
|
+
y[T] = d.charCodeAt(T);
|
|
1120
|
+
var m = new Blob([y]);
|
|
1121
|
+
window.navigator.msSaveOrOpenBlob(m, C);
|
|
1122
|
+
} else {
|
|
1123
|
+
var x = document.createElement("iframe");
|
|
1124
|
+
document.body.appendChild(x);
|
|
1125
|
+
var f = x.contentWindow, v = f.document;
|
|
1126
|
+
v.open("image/svg+xml", "replace"), v.write(d), v.close(), f.focus(), v.execCommand("SaveAs", !0, C), document.body.removeChild(x);
|
|
1127
|
+
}
|
|
1128
|
+
} else {
|
|
1129
|
+
var g = a.get("lang"), S = '<body style="margin:0;"><img src="' + u + '" style="max-width:100%;" title="' + (g && g[0] || "") + '" /></body>', A = window.open();
|
|
1130
|
+
A.document.write(S), A.document.title = i;
|
|
1131
|
+
}
|
|
1132
|
+
}, r.getDefaultOption = function(t) {
|
|
1133
|
+
var n = {
|
|
1134
|
+
show: !0,
|
|
1135
|
+
icon: "M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",
|
|
1136
|
+
title: t.getLocaleModel().get(["toolbox", "saveAsImage", "title"]),
|
|
1137
|
+
type: "png",
|
|
1138
|
+
// Default use option.backgroundColor
|
|
1139
|
+
// backgroundColor: '#fff',
|
|
1140
|
+
connectedBackgroundColor: "#fff",
|
|
1141
|
+
name: "",
|
|
1142
|
+
excludeComponents: ["toolbox"],
|
|
1143
|
+
// use current pixel ratio of device by default
|
|
1144
|
+
// pixelRatio: 1,
|
|
1145
|
+
lang: t.getLocaleModel().get(["toolbox", "saveAsImage", "lang"])
|
|
1146
|
+
};
|
|
1147
|
+
return n;
|
|
1148
|
+
}, r;
|
|
1149
|
+
})(k)
|
|
1150
|
+
), ut = "__ec_magicType_stack__", In = [["line", "bar"], ["stack"]], Rn = (
|
|
1151
|
+
/** @class */
|
|
1152
|
+
(function(e) {
|
|
1153
|
+
D(r, e);
|
|
1154
|
+
function r() {
|
|
1155
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
1156
|
+
}
|
|
1157
|
+
return r.prototype.getIcons = function() {
|
|
1158
|
+
var t = this.model, n = t.get("icon"), a = {};
|
|
1159
|
+
return _(t.get("type"), function(i) {
|
|
1160
|
+
n[i] && (a[i] = n[i]);
|
|
1161
|
+
}), a;
|
|
1162
|
+
}, r.getDefaultOption = function(t) {
|
|
1163
|
+
var n = {
|
|
1164
|
+
show: !0,
|
|
1165
|
+
type: [],
|
|
1166
|
+
// Icon group
|
|
1167
|
+
icon: {
|
|
1168
|
+
line: "M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",
|
|
1169
|
+
bar: "M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",
|
|
1170
|
+
// eslint-disable-next-line
|
|
1171
|
+
stack: "M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"
|
|
1172
|
+
// jshint ignore:line
|
|
1173
|
+
},
|
|
1174
|
+
// `line`, `bar`, `stack`, `tiled`
|
|
1175
|
+
title: t.getLocaleModel().get(["toolbox", "magicType", "title"]),
|
|
1176
|
+
option: {},
|
|
1177
|
+
seriesIndex: {}
|
|
1178
|
+
};
|
|
1179
|
+
return n;
|
|
1180
|
+
}, r.prototype.onclick = function(t, n, a) {
|
|
1181
|
+
var i = this.model, o = i.get(["seriesIndex", a]);
|
|
1182
|
+
if (lt[a]) {
|
|
1183
|
+
var s = {
|
|
1184
|
+
series: []
|
|
1185
|
+
}, u = function(p) {
|
|
1186
|
+
var c = p.subType, b = p.id, d = lt[a](c, b, p, i);
|
|
1187
|
+
d && (re(d, p.option), s.series.push(d));
|
|
1188
|
+
var C = p.coordinateSystem;
|
|
1189
|
+
if (C && C.type === "cartesian2d" && (a === "line" || a === "bar")) {
|
|
1190
|
+
var T = C.getAxesByScale("ordinal")[0];
|
|
1191
|
+
if (T) {
|
|
1192
|
+
var y = T.dim, m = y + "Axis", x = p.getReferringComponents(m, br).models[0], f = x.componentIndex;
|
|
1193
|
+
s[m] = s[m] || [];
|
|
1194
|
+
for (var v = 0; v <= f; v++)
|
|
1195
|
+
s[m][f] = s[m][f] || {};
|
|
1196
|
+
s[m][f].boundaryGap = a === "bar";
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
};
|
|
1200
|
+
_(In, function(p) {
|
|
1201
|
+
Q(p, a) >= 0 && _(p, function(c) {
|
|
1202
|
+
i.setIconStatus(c, "normal");
|
|
1203
|
+
});
|
|
1204
|
+
}), i.setIconStatus(a, "emphasis"), t.eachComponent({
|
|
1205
|
+
mainType: "series",
|
|
1206
|
+
query: o == null ? null : {
|
|
1207
|
+
seriesIndex: o
|
|
1208
|
+
}
|
|
1209
|
+
}, u);
|
|
1210
|
+
var h, l = a;
|
|
1211
|
+
a === "stack" && (h = Z({
|
|
1212
|
+
stack: i.option.title.tiled,
|
|
1213
|
+
tiled: i.option.title.stack
|
|
1214
|
+
}, i.option.title), i.get(["iconStatus", a]) !== "emphasis" && (l = "tiled")), n.dispatchAction({
|
|
1215
|
+
type: "changeMagicType",
|
|
1216
|
+
currentType: l,
|
|
1217
|
+
newOption: s,
|
|
1218
|
+
newTitle: h,
|
|
1219
|
+
featureName: "magicType"
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
}, r;
|
|
1223
|
+
})(k)
|
|
1224
|
+
), lt = {
|
|
1225
|
+
line: function(e, r, t, n) {
|
|
1226
|
+
if (e === "bar")
|
|
1227
|
+
return Z({
|
|
1228
|
+
id: r,
|
|
1229
|
+
type: "line",
|
|
1230
|
+
// Preserve data related option
|
|
1231
|
+
data: t.get("data"),
|
|
1232
|
+
stack: t.get("stack"),
|
|
1233
|
+
markPoint: t.get("markPoint"),
|
|
1234
|
+
markLine: t.get("markLine")
|
|
1235
|
+
}, n.get(["option", "line"]) || {}, !0);
|
|
1236
|
+
},
|
|
1237
|
+
bar: function(e, r, t, n) {
|
|
1238
|
+
if (e === "line")
|
|
1239
|
+
return Z({
|
|
1240
|
+
id: r,
|
|
1241
|
+
type: "bar",
|
|
1242
|
+
// Preserve data related option
|
|
1243
|
+
data: t.get("data"),
|
|
1244
|
+
stack: t.get("stack"),
|
|
1245
|
+
markPoint: t.get("markPoint"),
|
|
1246
|
+
markLine: t.get("markLine")
|
|
1247
|
+
}, n.get(["option", "bar"]) || {}, !0);
|
|
1248
|
+
},
|
|
1249
|
+
stack: function(e, r, t, n) {
|
|
1250
|
+
var a = t.get("stack") === ut;
|
|
1251
|
+
if (e === "line" || e === "bar")
|
|
1252
|
+
return n.setIconStatus("stack", a ? "normal" : "emphasis"), Z({
|
|
1253
|
+
id: r,
|
|
1254
|
+
stack: a ? "" : ut
|
|
1255
|
+
}, n.get(["option", "stack"]) || {}, !0);
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
Ee({
|
|
1259
|
+
type: "changeMagicType",
|
|
1260
|
+
event: "magicTypeChanged",
|
|
1261
|
+
update: "prepareAndUpdate"
|
|
1262
|
+
}, function(e, r) {
|
|
1263
|
+
r.mergeOption(e.newOption);
|
|
1264
|
+
});
|
|
1265
|
+
var ue = new Array(60).join("-"), q = " ";
|
|
1266
|
+
function Pn(e) {
|
|
1267
|
+
var r = {}, t = [], n = [];
|
|
1268
|
+
return e.eachRawSeries(function(a) {
|
|
1269
|
+
var i = a.coordinateSystem;
|
|
1270
|
+
if (i && (i.type === "cartesian2d" || i.type === "polar")) {
|
|
1271
|
+
var o = i.getBaseAxis();
|
|
1272
|
+
if (o.type === "category") {
|
|
1273
|
+
var s = o.dim + "_" + o.index;
|
|
1274
|
+
r[s] || (r[s] = {
|
|
1275
|
+
categoryAxis: o,
|
|
1276
|
+
valueAxis: i.getOtherAxis(o),
|
|
1277
|
+
series: []
|
|
1278
|
+
}, n.push({
|
|
1279
|
+
axisDim: o.dim,
|
|
1280
|
+
axisIndex: o.index
|
|
1281
|
+
})), r[s].series.push(a);
|
|
1282
|
+
} else
|
|
1283
|
+
t.push(a);
|
|
1284
|
+
} else
|
|
1285
|
+
t.push(a);
|
|
1286
|
+
}), {
|
|
1287
|
+
seriesGroupByCategoryAxis: r,
|
|
1288
|
+
other: t,
|
|
1289
|
+
meta: n
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
function Ln(e) {
|
|
1293
|
+
var r = [];
|
|
1294
|
+
return _(e, function(t, n) {
|
|
1295
|
+
var a = t.categoryAxis, i = t.valueAxis, o = i.dim, s = [" "].concat(B(t.series, function(b) {
|
|
1296
|
+
return b.name;
|
|
1297
|
+
})), u = [a.model.getCategories()];
|
|
1298
|
+
_(t.series, function(b) {
|
|
1299
|
+
var d = b.getRawData();
|
|
1300
|
+
u.push(b.getRawData().mapArray(d.mapDimension(o), function(C) {
|
|
1301
|
+
return C;
|
|
1302
|
+
}));
|
|
1303
|
+
});
|
|
1304
|
+
for (var h = [s.join(q)], l = 0; l < u[0].length; l++) {
|
|
1305
|
+
for (var p = [], c = 0; c < u.length; c++)
|
|
1306
|
+
p.push(u[c][l]);
|
|
1307
|
+
h.push(p.join(q));
|
|
1308
|
+
}
|
|
1309
|
+
r.push(h.join(`
|
|
1310
|
+
`));
|
|
1311
|
+
}), r.join(`
|
|
1312
|
+
|
|
1313
|
+
` + ue + `
|
|
1314
|
+
|
|
1315
|
+
`);
|
|
1316
|
+
}
|
|
1317
|
+
function Nn(e) {
|
|
1318
|
+
return B(e, function(r) {
|
|
1319
|
+
var t = r.getRawData(), n = [r.name], a = [];
|
|
1320
|
+
return t.each(t.dimensions, function() {
|
|
1321
|
+
for (var i = arguments.length, o = arguments[i - 1], s = t.getName(o), u = 0; u < i - 1; u++)
|
|
1322
|
+
a[u] = arguments[u];
|
|
1323
|
+
n.push((s ? s + q : "") + a.join(q));
|
|
1324
|
+
}), n.join(`
|
|
1325
|
+
`);
|
|
1326
|
+
}).join(`
|
|
1327
|
+
|
|
1328
|
+
` + ue + `
|
|
1329
|
+
|
|
1330
|
+
`);
|
|
1331
|
+
}
|
|
1332
|
+
function Vn(e) {
|
|
1333
|
+
var r = Pn(e);
|
|
1334
|
+
return {
|
|
1335
|
+
value: _r([Ln(r.seriesGroupByCategoryAxis), Nn(r.other)], function(t) {
|
|
1336
|
+
return !!t.replace(/[\n\t\s]/g, "");
|
|
1337
|
+
}).join(`
|
|
1338
|
+
|
|
1339
|
+
` + ue + `
|
|
1340
|
+
|
|
1341
|
+
`),
|
|
1342
|
+
meta: r.meta
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
function ie(e) {
|
|
1346
|
+
return e.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
1347
|
+
}
|
|
1348
|
+
function zn(e) {
|
|
1349
|
+
var r = e.slice(0, e.indexOf(`
|
|
1350
|
+
`));
|
|
1351
|
+
if (r.indexOf(q) >= 0)
|
|
1352
|
+
return !0;
|
|
1353
|
+
}
|
|
1354
|
+
var Me = new RegExp("[" + q + "]+", "g");
|
|
1355
|
+
function Hn(e) {
|
|
1356
|
+
for (var r = e.split(/\n+/g), t = ie(r.shift()).split(Me), n = [], a = B(t, function(u) {
|
|
1357
|
+
return {
|
|
1358
|
+
name: u,
|
|
1359
|
+
data: []
|
|
1360
|
+
};
|
|
1361
|
+
}), i = 0; i < r.length; i++) {
|
|
1362
|
+
var o = ie(r[i]).split(Me);
|
|
1363
|
+
n.push(o.shift());
|
|
1364
|
+
for (var s = 0; s < o.length; s++)
|
|
1365
|
+
a[s] && (a[s].data[i] = o[s]);
|
|
1366
|
+
}
|
|
1367
|
+
return {
|
|
1368
|
+
series: a,
|
|
1369
|
+
categories: n
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
function Zn(e) {
|
|
1373
|
+
for (var r = e.split(/\n+/g), t = ie(r.shift()), n = [], a = 0; a < r.length; a++) {
|
|
1374
|
+
var i = ie(r[a]);
|
|
1375
|
+
if (i) {
|
|
1376
|
+
var o = i.split(Me), s = "", u = void 0, h = !1;
|
|
1377
|
+
isNaN(o[0]) ? (h = !0, s = o[0], o = o.slice(1), n[a] = {
|
|
1378
|
+
name: s,
|
|
1379
|
+
value: []
|
|
1380
|
+
}, u = n[a].value) : u = n[a] = [];
|
|
1381
|
+
for (var l = 0; l < o.length; l++)
|
|
1382
|
+
u.push(+o[l]);
|
|
1383
|
+
u.length === 1 && (h ? n[a].value = u[0] : n[a] = u[0]);
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
return {
|
|
1387
|
+
name: t,
|
|
1388
|
+
data: n
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
function Fn(e, r) {
|
|
1392
|
+
var t = e.split(new RegExp(`
|
|
1393
|
+
*` + ue + `
|
|
1394
|
+
*`, "g")), n = {
|
|
1395
|
+
series: []
|
|
1396
|
+
};
|
|
1397
|
+
return _(t, function(a, i) {
|
|
1398
|
+
if (zn(a)) {
|
|
1399
|
+
var o = Hn(a), s = r[i], u = s.axisDim + "Axis";
|
|
1400
|
+
s && (n[u] = n[u] || [], n[u][s.axisIndex] = {
|
|
1401
|
+
data: o.categories
|
|
1402
|
+
}, n.series = n.series.concat(o.series));
|
|
1403
|
+
} else {
|
|
1404
|
+
var o = Zn(a);
|
|
1405
|
+
n.series.push(o);
|
|
1406
|
+
}
|
|
1407
|
+
}), n;
|
|
1408
|
+
}
|
|
1409
|
+
var Wn = (
|
|
1410
|
+
/** @class */
|
|
1411
|
+
(function(e) {
|
|
1412
|
+
D(r, e);
|
|
1413
|
+
function r() {
|
|
1414
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
1415
|
+
}
|
|
1416
|
+
return r.prototype.onclick = function(t, n) {
|
|
1417
|
+
setTimeout(function() {
|
|
1418
|
+
n.dispatchAction({
|
|
1419
|
+
type: "hideTip"
|
|
1420
|
+
});
|
|
1421
|
+
});
|
|
1422
|
+
var a = n.getDom(), i = this.model;
|
|
1423
|
+
this._dom && a.removeChild(this._dom);
|
|
1424
|
+
var o = document.createElement("div");
|
|
1425
|
+
o.style.cssText = "position:absolute;top:0;bottom:0;left:0;right:0;padding:5px", o.style.backgroundColor = i.get("backgroundColor") || "#fff";
|
|
1426
|
+
var s = document.createElement("h4"), u = i.get("lang") || [];
|
|
1427
|
+
s.innerHTML = u[0] || i.get("title"), s.style.cssText = "margin:10px 20px", s.style.color = i.get("textColor");
|
|
1428
|
+
var h = document.createElement("div"), l = document.createElement("textarea");
|
|
1429
|
+
h.style.cssText = "overflow:auto";
|
|
1430
|
+
var p = i.get("optionToContent"), c = i.get("contentToOption"), b = Vn(t);
|
|
1431
|
+
if (be(p)) {
|
|
1432
|
+
var d = p(n.getOption());
|
|
1433
|
+
ye(d) ? h.innerHTML = d : xr(d) && h.appendChild(d);
|
|
1434
|
+
} else {
|
|
1435
|
+
l.readOnly = i.get("readOnly");
|
|
1436
|
+
var C = l.style;
|
|
1437
|
+
C.cssText = "display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none", C.color = i.get("textColor"), C.borderColor = i.get("textareaBorderColor"), C.backgroundColor = i.get("textareaColor"), l.value = b.value, h.appendChild(l);
|
|
1438
|
+
}
|
|
1439
|
+
var T = b.meta, y = document.createElement("div");
|
|
1440
|
+
y.style.cssText = "position:absolute;bottom:5px;left:0;right:0";
|
|
1441
|
+
var m = "float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px", x = document.createElement("div"), f = document.createElement("div");
|
|
1442
|
+
m += ";background-color:" + i.get("buttonColor"), m += ";color:" + i.get("buttonTextColor");
|
|
1443
|
+
var v = this;
|
|
1444
|
+
function g() {
|
|
1445
|
+
a.removeChild(o), v._dom = null;
|
|
1446
|
+
}
|
|
1447
|
+
Qe(x, "click", g), Qe(f, "click", function() {
|
|
1448
|
+
if (c == null && p != null || c != null && p == null) {
|
|
1449
|
+
process.env.NODE_ENV !== "production" && Cr("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."), g();
|
|
1450
|
+
return;
|
|
1451
|
+
}
|
|
1452
|
+
var S;
|
|
1453
|
+
try {
|
|
1454
|
+
be(c) ? S = c(h, n.getOption()) : S = Fn(l.value, T);
|
|
1455
|
+
} catch (A) {
|
|
1456
|
+
throw g(), new Error("Data view format error " + A);
|
|
1457
|
+
}
|
|
1458
|
+
S && n.dispatchAction({
|
|
1459
|
+
type: "changeDataView",
|
|
1460
|
+
newOption: S
|
|
1461
|
+
}), g();
|
|
1462
|
+
}), x.innerHTML = u[1], f.innerHTML = u[2], f.style.cssText = x.style.cssText = m, !i.get("readOnly") && y.appendChild(f), y.appendChild(x), o.appendChild(s), o.appendChild(h), o.appendChild(y), h.style.height = a.clientHeight - 80 + "px", a.appendChild(o), this._dom = o;
|
|
1463
|
+
}, r.prototype.remove = function(t, n) {
|
|
1464
|
+
this._dom && n.getDom().removeChild(this._dom);
|
|
1465
|
+
}, r.prototype.dispose = function(t, n) {
|
|
1466
|
+
this.remove(t, n);
|
|
1467
|
+
}, r.getDefaultOption = function(t) {
|
|
1468
|
+
var n = {
|
|
1469
|
+
show: !0,
|
|
1470
|
+
readOnly: !1,
|
|
1471
|
+
optionToContent: null,
|
|
1472
|
+
contentToOption: null,
|
|
1473
|
+
// eslint-disable-next-line
|
|
1474
|
+
icon: "M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",
|
|
1475
|
+
title: t.getLocaleModel().get(["toolbox", "dataView", "title"]),
|
|
1476
|
+
lang: t.getLocaleModel().get(["toolbox", "dataView", "lang"]),
|
|
1477
|
+
backgroundColor: "#fff",
|
|
1478
|
+
textColor: "#000",
|
|
1479
|
+
textareaColor: "#fff",
|
|
1480
|
+
textareaBorderColor: "#333",
|
|
1481
|
+
buttonColor: "#c23531",
|
|
1482
|
+
buttonTextColor: "#fff"
|
|
1483
|
+
};
|
|
1484
|
+
return n;
|
|
1485
|
+
}, r;
|
|
1486
|
+
})(k)
|
|
1487
|
+
);
|
|
1488
|
+
function Un(e, r) {
|
|
1489
|
+
return B(e, function(t, n) {
|
|
1490
|
+
var a = r && r[n];
|
|
1491
|
+
if (me(a) && !z(a)) {
|
|
1492
|
+
var i = me(t) && !z(t);
|
|
1493
|
+
i || (t = {
|
|
1494
|
+
value: t
|
|
1495
|
+
});
|
|
1496
|
+
var o = a.name != null && t.name == null;
|
|
1497
|
+
return t = re(t, a), o && delete t.name, t;
|
|
1498
|
+
} else
|
|
1499
|
+
return t;
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
Ee({
|
|
1503
|
+
type: "changeDataView",
|
|
1504
|
+
event: "dataViewChanged",
|
|
1505
|
+
update: "prepareAndUpdate"
|
|
1506
|
+
}, function(e, r) {
|
|
1507
|
+
var t = [];
|
|
1508
|
+
_(e.newOption.series, function(n) {
|
|
1509
|
+
var a = r.getSeriesByName(n.name)[0];
|
|
1510
|
+
if (!a)
|
|
1511
|
+
t.push(ke({
|
|
1512
|
+
// Default is scatter
|
|
1513
|
+
type: "scatter"
|
|
1514
|
+
}, n));
|
|
1515
|
+
else {
|
|
1516
|
+
var i = a.get("data");
|
|
1517
|
+
t.push({
|
|
1518
|
+
name: n.name,
|
|
1519
|
+
data: Un(n.data, i)
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
}), r.mergeOption(re({
|
|
1523
|
+
series: t
|
|
1524
|
+
}, e.newOption));
|
|
1525
|
+
});
|
|
1526
|
+
var Yt = _, Xt = Sr();
|
|
1527
|
+
function Gn(e, r) {
|
|
1528
|
+
var t = Ze(e);
|
|
1529
|
+
Yt(r, function(n, a) {
|
|
1530
|
+
for (var i = t.length - 1; i >= 0; i--) {
|
|
1531
|
+
var o = t[i];
|
|
1532
|
+
if (o[a])
|
|
1533
|
+
break;
|
|
1534
|
+
}
|
|
1535
|
+
if (i < 0) {
|
|
1536
|
+
var s = e.queryComponents({
|
|
1537
|
+
mainType: "dataZoom",
|
|
1538
|
+
subType: "select",
|
|
1539
|
+
id: a
|
|
1540
|
+
})[0];
|
|
1541
|
+
if (s) {
|
|
1542
|
+
var u = s.getPercentRange();
|
|
1543
|
+
t[0][a] = {
|
|
1544
|
+
dataZoomId: a,
|
|
1545
|
+
start: u[0],
|
|
1546
|
+
end: u[1]
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
}), t.push(r);
|
|
1551
|
+
}
|
|
1552
|
+
function Yn(e) {
|
|
1553
|
+
var r = Ze(e), t = r[r.length - 1];
|
|
1554
|
+
r.length > 1 && r.pop();
|
|
1555
|
+
var n = {};
|
|
1556
|
+
return Yt(t, function(a, i) {
|
|
1557
|
+
for (var o = r.length - 1; o >= 0; o--)
|
|
1558
|
+
if (a = r[o][i], a) {
|
|
1559
|
+
n[i] = a;
|
|
1560
|
+
break;
|
|
1561
|
+
}
|
|
1562
|
+
}), n;
|
|
1563
|
+
}
|
|
1564
|
+
function Xn(e) {
|
|
1565
|
+
Xt(e).snapshots = null;
|
|
1566
|
+
}
|
|
1567
|
+
function jn(e) {
|
|
1568
|
+
return Ze(e).length;
|
|
1569
|
+
}
|
|
1570
|
+
function Ze(e) {
|
|
1571
|
+
var r = Xt(e);
|
|
1572
|
+
return r.snapshots || (r.snapshots = [{}]), r.snapshots;
|
|
1573
|
+
}
|
|
1574
|
+
var $n = (
|
|
1575
|
+
/** @class */
|
|
1576
|
+
(function(e) {
|
|
1577
|
+
D(r, e);
|
|
1578
|
+
function r() {
|
|
1579
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
1580
|
+
}
|
|
1581
|
+
return r.prototype.onclick = function(t, n) {
|
|
1582
|
+
Xn(t), n.dispatchAction({
|
|
1583
|
+
type: "restore",
|
|
1584
|
+
from: this.uid
|
|
1585
|
+
});
|
|
1586
|
+
}, r.getDefaultOption = function(t) {
|
|
1587
|
+
var n = {
|
|
1588
|
+
show: !0,
|
|
1589
|
+
// eslint-disable-next-line
|
|
1590
|
+
icon: "M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",
|
|
1591
|
+
title: t.getLocaleModel().get(["toolbox", "restore", "title"])
|
|
1592
|
+
};
|
|
1593
|
+
return n;
|
|
1594
|
+
}, r;
|
|
1595
|
+
})(k)
|
|
1596
|
+
);
|
|
1597
|
+
Ee({
|
|
1598
|
+
type: "restore",
|
|
1599
|
+
event: "restore",
|
|
1600
|
+
update: "prepareAndUpdate"
|
|
1601
|
+
}, function(e, r) {
|
|
1602
|
+
r.resetOption("recreate");
|
|
1603
|
+
});
|
|
1604
|
+
var Qn = ["grid", "xAxis", "yAxis", "geo", "graph", "polar", "radiusAxis", "angleAxis", "bmap"], Fe = (
|
|
1605
|
+
/** @class */
|
|
1606
|
+
(function() {
|
|
1607
|
+
function e(r, t, n) {
|
|
1608
|
+
var a = this;
|
|
1609
|
+
this._targetInfoList = [];
|
|
1610
|
+
var i = ct(t, r);
|
|
1611
|
+
_(Kn, function(o, s) {
|
|
1612
|
+
(!n || !n.include || Q(n.include, s) >= 0) && o(i, a._targetInfoList);
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
return e.prototype.setOutputRanges = function(r, t) {
|
|
1616
|
+
return this.matchOutputRanges(r, t, function(n, a, i) {
|
|
1617
|
+
if ((n.coordRanges || (n.coordRanges = [])).push(a), !n.coordRange) {
|
|
1618
|
+
n.coordRange = a;
|
|
1619
|
+
var o = de[n.brushType](0, i, a);
|
|
1620
|
+
n.__rangeOffset = {
|
|
1621
|
+
offset: ft[n.brushType](o.values, n.range, [1, 1]),
|
|
1622
|
+
xyMinMax: o.xyMinMax
|
|
1623
|
+
};
|
|
1624
|
+
}
|
|
1625
|
+
}), r;
|
|
1626
|
+
}, e.prototype.matchOutputRanges = function(r, t, n) {
|
|
1627
|
+
_(r, function(a) {
|
|
1628
|
+
var i = this.findTargetInfo(a, t);
|
|
1629
|
+
i && i !== !0 && _(i.coordSyses, function(o) {
|
|
1630
|
+
var s = de[a.brushType](1, o, a.range, !0);
|
|
1631
|
+
n(a, s.values, o, t);
|
|
1632
|
+
});
|
|
1633
|
+
}, this);
|
|
1634
|
+
}, e.prototype.setInputRanges = function(r, t) {
|
|
1635
|
+
_(r, function(n) {
|
|
1636
|
+
var a = this.findTargetInfo(n, t);
|
|
1637
|
+
if (process.env.NODE_ENV !== "production" && (V(!a || a === !0 || n.coordRange, "coordRange must be specified when coord index specified."), V(!a || a !== !0 || n.range, "range must be specified in global brush.")), n.range = n.range || [], a && a !== !0) {
|
|
1638
|
+
n.panelId = a.panelId;
|
|
1639
|
+
var i = de[n.brushType](0, a.coordSys, n.coordRange), o = n.__rangeOffset;
|
|
1640
|
+
n.range = o ? ft[n.brushType](i.values, o.offset, qn(i.xyMinMax, o.xyMinMax)) : i.values;
|
|
1641
|
+
}
|
|
1642
|
+
}, this);
|
|
1643
|
+
}, e.prototype.makePanelOpts = function(r, t) {
|
|
1644
|
+
return B(this._targetInfoList, function(n) {
|
|
1645
|
+
var a = n.getPanelRect();
|
|
1646
|
+
return {
|
|
1647
|
+
panelId: n.panelId,
|
|
1648
|
+
defaultBrushType: t ? t(n) : null,
|
|
1649
|
+
clipPath: sn(a),
|
|
1650
|
+
isTargetByCursor: ln(a, r, n.coordSysModel),
|
|
1651
|
+
getLinearBrushOtherExtent: un(a)
|
|
1652
|
+
};
|
|
1653
|
+
});
|
|
1654
|
+
}, e.prototype.controlSeries = function(r, t, n) {
|
|
1655
|
+
var a = this.findTargetInfo(r, n);
|
|
1656
|
+
return a === !0 || a && Q(a.coordSyses, t.coordinateSystem) >= 0;
|
|
1657
|
+
}, e.prototype.findTargetInfo = function(r, t) {
|
|
1658
|
+
for (var n = this._targetInfoList, a = ct(t, r), i = 0; i < n.length; i++) {
|
|
1659
|
+
var o = n[i], s = r.panelId;
|
|
1660
|
+
if (s) {
|
|
1661
|
+
if (o.panelId === s)
|
|
1662
|
+
return o;
|
|
1663
|
+
} else
|
|
1664
|
+
for (var u = 0; u < ht.length; u++)
|
|
1665
|
+
if (ht[u](a, o))
|
|
1666
|
+
return o;
|
|
1667
|
+
}
|
|
1668
|
+
return !0;
|
|
1669
|
+
}, e;
|
|
1670
|
+
})()
|
|
1671
|
+
);
|
|
1672
|
+
function Ae(e) {
|
|
1673
|
+
return e[0] > e[1] && e.reverse(), e;
|
|
1674
|
+
}
|
|
1675
|
+
function ct(e, r) {
|
|
1676
|
+
return Bt(e, r, {
|
|
1677
|
+
includeMainTypes: Qn
|
|
1678
|
+
});
|
|
1679
|
+
}
|
|
1680
|
+
var Kn = {
|
|
1681
|
+
grid: function(e, r) {
|
|
1682
|
+
var t = e.xAxisModels, n = e.yAxisModels, a = e.gridModels, i = Tr(), o = {}, s = {};
|
|
1683
|
+
!t && !n && !a || (_(t, function(u) {
|
|
1684
|
+
var h = u.axis.grid.model;
|
|
1685
|
+
i.set(h.id, h), o[h.id] = !0;
|
|
1686
|
+
}), _(n, function(u) {
|
|
1687
|
+
var h = u.axis.grid.model;
|
|
1688
|
+
i.set(h.id, h), s[h.id] = !0;
|
|
1689
|
+
}), _(a, function(u) {
|
|
1690
|
+
i.set(u.id, u), o[u.id] = !0, s[u.id] = !0;
|
|
1691
|
+
}), i.each(function(u) {
|
|
1692
|
+
var h = u.coordinateSystem, l = [];
|
|
1693
|
+
_(h.getCartesians(), function(p, c) {
|
|
1694
|
+
(Q(t, p.getAxis("x").model) >= 0 || Q(n, p.getAxis("y").model) >= 0) && l.push(p);
|
|
1695
|
+
}), r.push({
|
|
1696
|
+
panelId: "grid--" + u.id,
|
|
1697
|
+
gridModel: u,
|
|
1698
|
+
coordSysModel: u,
|
|
1699
|
+
// Use the first one as the representitive coordSys.
|
|
1700
|
+
coordSys: l[0],
|
|
1701
|
+
coordSyses: l,
|
|
1702
|
+
getPanelRect: pt.grid,
|
|
1703
|
+
xAxisDeclared: o[u.id],
|
|
1704
|
+
yAxisDeclared: s[u.id]
|
|
1705
|
+
});
|
|
1706
|
+
}));
|
|
1707
|
+
},
|
|
1708
|
+
geo: function(e, r) {
|
|
1709
|
+
_(e.geoModels, function(t) {
|
|
1710
|
+
var n = t.coordinateSystem;
|
|
1711
|
+
r.push({
|
|
1712
|
+
panelId: "geo--" + t.id,
|
|
1713
|
+
geoModel: t,
|
|
1714
|
+
coordSysModel: t,
|
|
1715
|
+
coordSys: n,
|
|
1716
|
+
coordSyses: [n],
|
|
1717
|
+
getPanelRect: pt.geo
|
|
1718
|
+
});
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
}, ht = [
|
|
1722
|
+
// grid
|
|
1723
|
+
function(e, r) {
|
|
1724
|
+
var t = e.xAxisModel, n = e.yAxisModel, a = e.gridModel;
|
|
1725
|
+
return !a && t && (a = t.axis.grid.model), !a && n && (a = n.axis.grid.model), a && a === r.gridModel;
|
|
1726
|
+
},
|
|
1727
|
+
// geo
|
|
1728
|
+
function(e, r) {
|
|
1729
|
+
var t = e.geoModel;
|
|
1730
|
+
return t && t === r.geoModel;
|
|
1731
|
+
}
|
|
1732
|
+
], pt = {
|
|
1733
|
+
grid: function() {
|
|
1734
|
+
return this.coordSys.master.getRect().clone();
|
|
1735
|
+
},
|
|
1736
|
+
geo: function() {
|
|
1737
|
+
var e = this.coordSys, r = e.getBoundingRect().clone();
|
|
1738
|
+
return r.applyTransform(St(e)), r;
|
|
1739
|
+
}
|
|
1740
|
+
}, de = {
|
|
1741
|
+
lineX: E(vt, 0),
|
|
1742
|
+
lineY: E(vt, 1),
|
|
1743
|
+
rect: function(e, r, t, n) {
|
|
1744
|
+
var a = e ? r.pointToData([t[0][0], t[1][0]], n) : r.dataToPoint([t[0][0], t[1][0]], n), i = e ? r.pointToData([t[0][1], t[1][1]], n) : r.dataToPoint([t[0][1], t[1][1]], n), o = [Ae([a[0], i[0]]), Ae([a[1], i[1]])];
|
|
1745
|
+
return {
|
|
1746
|
+
values: o,
|
|
1747
|
+
xyMinMax: o
|
|
1748
|
+
};
|
|
1749
|
+
},
|
|
1750
|
+
polygon: function(e, r, t, n) {
|
|
1751
|
+
var a = [[1 / 0, -1 / 0], [1 / 0, -1 / 0]], i = B(t, function(o) {
|
|
1752
|
+
var s = e ? r.pointToData(o, n) : r.dataToPoint(o, n);
|
|
1753
|
+
return a[0][0] = Math.min(a[0][0], s[0]), a[1][0] = Math.min(a[1][0], s[1]), a[0][1] = Math.max(a[0][1], s[0]), a[1][1] = Math.max(a[1][1], s[1]), s;
|
|
1754
|
+
});
|
|
1755
|
+
return {
|
|
1756
|
+
values: i,
|
|
1757
|
+
xyMinMax: a
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1760
|
+
};
|
|
1761
|
+
function vt(e, r, t, n) {
|
|
1762
|
+
process.env.NODE_ENV !== "production" && V(t.type === "cartesian2d", "lineX/lineY brush is available only in cartesian2d.");
|
|
1763
|
+
var a = t.getAxis(["x", "y"][e]), i = Ae(B([0, 1], function(s) {
|
|
1764
|
+
return r ? a.coordToData(a.toLocalCoord(n[s]), !0) : a.toGlobalCoord(a.dataToCoord(n[s]));
|
|
1765
|
+
})), o = [];
|
|
1766
|
+
return o[e] = i, o[1 - e] = [NaN, NaN], {
|
|
1767
|
+
values: i,
|
|
1768
|
+
xyMinMax: o
|
|
1769
|
+
};
|
|
1770
|
+
}
|
|
1771
|
+
var ft = {
|
|
1772
|
+
lineX: E(dt, 0),
|
|
1773
|
+
lineY: E(dt, 1),
|
|
1774
|
+
rect: function(e, r, t) {
|
|
1775
|
+
return [[e[0][0] - t[0] * r[0][0], e[0][1] - t[0] * r[0][1]], [e[1][0] - t[1] * r[1][0], e[1][1] - t[1] * r[1][1]]];
|
|
1776
|
+
},
|
|
1777
|
+
polygon: function(e, r, t) {
|
|
1778
|
+
return B(e, function(n, a) {
|
|
1779
|
+
return [n[0] - t[0] * r[a][0], n[1] - t[1] * r[a][1]];
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
};
|
|
1783
|
+
function dt(e, r, t, n) {
|
|
1784
|
+
return [r[0] - n[e] * t[0], r[1] - n[e] * t[1]];
|
|
1785
|
+
}
|
|
1786
|
+
function qn(e, r) {
|
|
1787
|
+
var t = gt(e), n = gt(r), a = [t[0] / n[0], t[1] / n[1]];
|
|
1788
|
+
return isNaN(a[0]) && (a[0] = 1), isNaN(a[1]) && (a[1] = 1), a;
|
|
1789
|
+
}
|
|
1790
|
+
function gt(e) {
|
|
1791
|
+
return e ? [e[0][1] - e[0][0], e[1][1] - e[1][0]] : [NaN, NaN];
|
|
1792
|
+
}
|
|
1793
|
+
var we = _, Jn = Ar("toolbox-dataZoom_"), ea = (
|
|
1794
|
+
/** @class */
|
|
1795
|
+
(function(e) {
|
|
1796
|
+
D(r, e);
|
|
1797
|
+
function r() {
|
|
1798
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
1799
|
+
}
|
|
1800
|
+
return r.prototype.render = function(t, n, a, i) {
|
|
1801
|
+
this._brushController || (this._brushController = new kt(a.getZr()), this._brushController.on("brush", oe(this._onBrush, this)).mount()), na(t, n, this, i, a), ra(t, n);
|
|
1802
|
+
}, r.prototype.onclick = function(t, n, a) {
|
|
1803
|
+
ta[a].call(this);
|
|
1804
|
+
}, r.prototype.remove = function(t, n) {
|
|
1805
|
+
this._brushController && this._brushController.unmount();
|
|
1806
|
+
}, r.prototype.dispose = function(t, n) {
|
|
1807
|
+
this._brushController && this._brushController.dispose();
|
|
1808
|
+
}, r.prototype._onBrush = function(t) {
|
|
1809
|
+
var n = t.areas;
|
|
1810
|
+
if (!t.isEnd || !n.length)
|
|
1811
|
+
return;
|
|
1812
|
+
var a = {}, i = this.ecModel;
|
|
1813
|
+
this._brushController.updateCovers([]);
|
|
1814
|
+
var o = new Fe(We(this.model), i, {
|
|
1815
|
+
include: ["grid"]
|
|
1816
|
+
});
|
|
1817
|
+
o.matchOutputRanges(n, i, function(h, l, p) {
|
|
1818
|
+
if (p.type === "cartesian2d") {
|
|
1819
|
+
var c = h.brushType;
|
|
1820
|
+
c === "rect" ? (s("x", p, l[0]), s("y", p, l[1])) : s({
|
|
1821
|
+
lineX: "x",
|
|
1822
|
+
lineY: "y"
|
|
1823
|
+
}[c], p, l);
|
|
1824
|
+
}
|
|
1825
|
+
}), Gn(i, a), this._dispatchZoomAction(a);
|
|
1826
|
+
function s(h, l, p) {
|
|
1827
|
+
var c = l.getAxis(h), b = c.model, d = u(h, b, i), C = d.findRepresentativeAxisProxy(b).getMinMaxSpan();
|
|
1828
|
+
(C.minValueSpan != null || C.maxValueSpan != null) && (p = Vr(0, p.slice(), c.scale.getExtent(), 0, C.minValueSpan, C.maxValueSpan)), d && (a[d.id] = {
|
|
1829
|
+
dataZoomId: d.id,
|
|
1830
|
+
startValue: p[0],
|
|
1831
|
+
endValue: p[1]
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
function u(h, l, p) {
|
|
1835
|
+
var c;
|
|
1836
|
+
return p.eachComponent({
|
|
1837
|
+
mainType: "dataZoom",
|
|
1838
|
+
subType: "select"
|
|
1839
|
+
}, function(b) {
|
|
1840
|
+
var d = b.getAxisModel(h, l.componentIndex);
|
|
1841
|
+
d && (c = b);
|
|
1842
|
+
}), c;
|
|
1843
|
+
}
|
|
1844
|
+
}, r.prototype._dispatchZoomAction = function(t) {
|
|
1845
|
+
var n = [];
|
|
1846
|
+
we(t, function(a, i) {
|
|
1847
|
+
n.push(R(a));
|
|
1848
|
+
}), n.length && this.api.dispatchAction({
|
|
1849
|
+
type: "dataZoom",
|
|
1850
|
+
from: this.uid,
|
|
1851
|
+
batch: n
|
|
1852
|
+
});
|
|
1853
|
+
}, r.getDefaultOption = function(t) {
|
|
1854
|
+
var n = {
|
|
1855
|
+
show: !0,
|
|
1856
|
+
filterMode: "filter",
|
|
1857
|
+
// Icon group
|
|
1858
|
+
icon: {
|
|
1859
|
+
zoom: "M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",
|
|
1860
|
+
back: "M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"
|
|
1861
|
+
},
|
|
1862
|
+
// `zoom`, `back`
|
|
1863
|
+
title: t.getLocaleModel().get(["toolbox", "dataZoom", "title"]),
|
|
1864
|
+
brushStyle: {
|
|
1865
|
+
borderWidth: 0,
|
|
1866
|
+
color: "rgba(210,219,238,0.2)"
|
|
1867
|
+
}
|
|
1868
|
+
};
|
|
1869
|
+
return n;
|
|
1870
|
+
}, r;
|
|
1871
|
+
})(k)
|
|
1872
|
+
), ta = {
|
|
1873
|
+
zoom: function() {
|
|
1874
|
+
var e = !this._isZoomActive;
|
|
1875
|
+
this.api.dispatchAction({
|
|
1876
|
+
type: "takeGlobalCursor",
|
|
1877
|
+
key: "dataZoomSelect",
|
|
1878
|
+
dataZoomSelectActive: e
|
|
1879
|
+
});
|
|
1880
|
+
},
|
|
1881
|
+
back: function() {
|
|
1882
|
+
this._dispatchZoomAction(Yn(this.ecModel));
|
|
1883
|
+
}
|
|
1884
|
+
};
|
|
1885
|
+
function We(e) {
|
|
1886
|
+
var r = {
|
|
1887
|
+
xAxisIndex: e.get("xAxisIndex", !0),
|
|
1888
|
+
yAxisIndex: e.get("yAxisIndex", !0),
|
|
1889
|
+
xAxisId: e.get("xAxisId", !0),
|
|
1890
|
+
yAxisId: e.get("yAxisId", !0)
|
|
1891
|
+
};
|
|
1892
|
+
return r.xAxisIndex == null && r.xAxisId == null && (r.xAxisIndex = "all"), r.yAxisIndex == null && r.yAxisId == null && (r.yAxisIndex = "all"), r;
|
|
1893
|
+
}
|
|
1894
|
+
function ra(e, r) {
|
|
1895
|
+
e.setIconStatus("back", jn(r) > 1 ? "emphasis" : "normal");
|
|
1896
|
+
}
|
|
1897
|
+
function na(e, r, t, n, a) {
|
|
1898
|
+
var i = t._isZoomActive;
|
|
1899
|
+
n && n.type === "takeGlobalCursor" && (i = n.key === "dataZoomSelect" ? n.dataZoomSelectActive : !1), t._isZoomActive = i, e.setIconStatus("zoom", i ? "emphasis" : "normal");
|
|
1900
|
+
var o = new Fe(We(e), r, {
|
|
1901
|
+
include: ["grid"]
|
|
1902
|
+
}), s = o.makePanelOpts(a, function(u) {
|
|
1903
|
+
return u.xAxisDeclared && !u.yAxisDeclared ? "lineX" : !u.xAxisDeclared && u.yAxisDeclared ? "lineY" : "rect";
|
|
1904
|
+
});
|
|
1905
|
+
t._brushController.setPanels(s).enableBrush(i && s.length ? {
|
|
1906
|
+
brushType: "auto",
|
|
1907
|
+
brushStyle: e.getModel("brushStyle").getItemStyle()
|
|
1908
|
+
} : !1);
|
|
1909
|
+
}
|
|
1910
|
+
Mr("dataZoom", function(e) {
|
|
1911
|
+
var r = e.getComponent("toolbox", 0), t = ["feature", "dataZoom"];
|
|
1912
|
+
if (!r || r.get(t) == null)
|
|
1913
|
+
return;
|
|
1914
|
+
var n = r.getModel(t), a = [], i = We(n), o = Bt(e, i);
|
|
1915
|
+
we(o.xAxisModels, function(u) {
|
|
1916
|
+
return s(u, "xAxis", "xAxisIndex");
|
|
1917
|
+
}), we(o.yAxisModels, function(u) {
|
|
1918
|
+
return s(u, "yAxis", "yAxisIndex");
|
|
1919
|
+
});
|
|
1920
|
+
function s(u, h, l) {
|
|
1921
|
+
var p = u.componentIndex, c = {
|
|
1922
|
+
type: "select",
|
|
1923
|
+
$fromToolbox: !0,
|
|
1924
|
+
// Default to be filter
|
|
1925
|
+
filterMode: n.get("filterMode", !0) || "filter",
|
|
1926
|
+
// Id for merge mapping.
|
|
1927
|
+
id: Jn + h + p
|
|
1928
|
+
};
|
|
1929
|
+
c[l] = p, a.push(c);
|
|
1930
|
+
}
|
|
1931
|
+
return a;
|
|
1932
|
+
});
|
|
1933
|
+
function Da(e) {
|
|
1934
|
+
e.registerComponentModel(Bn), e.registerComponentView(On), $("saveAsImage", En), $("magicType", Rn), $("dataView", Wn), $("dataZoom", ea), $("restore", $n), Er(Dn);
|
|
1935
|
+
}
|
|
1936
|
+
var aa = ["rect", "polygon", "keep", "clear"];
|
|
1937
|
+
function ia(e, r) {
|
|
1938
|
+
var t = wr(e ? e.brush : []);
|
|
1939
|
+
if (t.length) {
|
|
1940
|
+
var n = [];
|
|
1941
|
+
_(t, function(u) {
|
|
1942
|
+
var h = u.hasOwnProperty("toolbox") ? u.toolbox : [];
|
|
1943
|
+
h instanceof Array && (n = n.concat(h));
|
|
1944
|
+
});
|
|
1945
|
+
var a = e && e.toolbox;
|
|
1946
|
+
z(a) && (a = a[0]), a || (a = {
|
|
1947
|
+
feature: {}
|
|
1948
|
+
}, e.toolbox = [a]);
|
|
1949
|
+
var i = a.feature || (a.feature = {}), o = i.brush || (i.brush = {}), s = o.type || (o.type = []);
|
|
1950
|
+
s.push.apply(s, n), oa(s), r && !s.length && s.push.apply(s, aa);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
function oa(e) {
|
|
1954
|
+
var r = {};
|
|
1955
|
+
_(e, function(t) {
|
|
1956
|
+
r[t] = 1;
|
|
1957
|
+
}), e.length = 0, _(r, function(t, n) {
|
|
1958
|
+
e.push(n);
|
|
1959
|
+
});
|
|
1960
|
+
}
|
|
1961
|
+
function sa(e) {
|
|
1962
|
+
var r = e.brushType, t = {
|
|
1963
|
+
point: function(n) {
|
|
1964
|
+
return mt[r].point(n, t, e);
|
|
1965
|
+
},
|
|
1966
|
+
rect: function(n) {
|
|
1967
|
+
return mt[r].rect(n, t, e);
|
|
1968
|
+
}
|
|
1969
|
+
};
|
|
1970
|
+
return t;
|
|
1971
|
+
}
|
|
1972
|
+
var mt = {
|
|
1973
|
+
lineX: yt(0),
|
|
1974
|
+
lineY: yt(1),
|
|
1975
|
+
rect: {
|
|
1976
|
+
point: function(e, r, t) {
|
|
1977
|
+
return e && t.boundingRect.contain(e[0], e[1]);
|
|
1978
|
+
},
|
|
1979
|
+
rect: function(e, r, t) {
|
|
1980
|
+
return e && t.boundingRect.intersect(e);
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
polygon: {
|
|
1984
|
+
point: function(e, r, t) {
|
|
1985
|
+
return e && t.boundingRect.contain(e[0], e[1]) && J(t.range, e[0], e[1]);
|
|
1986
|
+
},
|
|
1987
|
+
rect: function(e, r, t) {
|
|
1988
|
+
var n = t.range;
|
|
1989
|
+
if (!e || n.length <= 1)
|
|
1990
|
+
return !1;
|
|
1991
|
+
var a = e.x, i = e.y, o = e.width, s = e.height, u = n[0];
|
|
1992
|
+
if (J(n, a, i) || J(n, a + o, i) || J(n, a, i + s) || J(n, a + o, i + s) || Oe.create(e).contain(u[0], u[1]) || ae(a, i, a + o, i, n) || ae(a, i, a, i + s, n) || ae(a + o, i, a + o, i + s, n) || ae(a, i + s, a + o, i + s, n))
|
|
1993
|
+
return !0;
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
};
|
|
1997
|
+
function yt(e) {
|
|
1998
|
+
var r = ["x", "y"], t = ["width", "height"];
|
|
1999
|
+
return {
|
|
2000
|
+
point: function(n, a, i) {
|
|
2001
|
+
if (n) {
|
|
2002
|
+
var o = i.range, s = n[e];
|
|
2003
|
+
return ee(s, o);
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
rect: function(n, a, i) {
|
|
2007
|
+
if (n) {
|
|
2008
|
+
var o = i.range, s = [n[r[e]], n[r[e]] + n[t[e]]];
|
|
2009
|
+
return s[1] < s[0] && s.reverse(), ee(s[0], o) || ee(s[1], o) || ee(o[0], s) || ee(o[1], s);
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
}
|
|
2014
|
+
function ee(e, r) {
|
|
2015
|
+
return r[0] <= e && e <= r[1];
|
|
2016
|
+
}
|
|
2017
|
+
var bt = ["inBrush", "outOfBrush"], ge = "__ecBrushSelect", De = "__ecInBrushSelectEvent";
|
|
2018
|
+
function jt(e) {
|
|
2019
|
+
e.eachComponent({
|
|
2020
|
+
mainType: "brush"
|
|
2021
|
+
}, function(r) {
|
|
2022
|
+
var t = r.brushTargetManager = new Fe(r.option, e);
|
|
2023
|
+
t.setInputRanges(r.areas, e);
|
|
2024
|
+
});
|
|
2025
|
+
}
|
|
2026
|
+
function ua(e, r, t) {
|
|
2027
|
+
var n = [], a, i;
|
|
2028
|
+
e.eachComponent({
|
|
2029
|
+
mainType: "brush"
|
|
2030
|
+
}, function(o) {
|
|
2031
|
+
t && t.type === "takeGlobalCursor" && o.setBrushOption(t.key === "brush" ? t.brushOption : {
|
|
2032
|
+
brushType: !1
|
|
2033
|
+
});
|
|
2034
|
+
}), jt(e), e.eachComponent({
|
|
2035
|
+
mainType: "brush"
|
|
2036
|
+
}, function(o, s) {
|
|
2037
|
+
var u = {
|
|
2038
|
+
brushId: o.id,
|
|
2039
|
+
brushIndex: s,
|
|
2040
|
+
brushName: o.name,
|
|
2041
|
+
areas: R(o.areas),
|
|
2042
|
+
selected: []
|
|
2043
|
+
};
|
|
2044
|
+
n.push(u);
|
|
2045
|
+
var h = o.option, l = h.brushLink, p = [], c = [], b = [], d = !1;
|
|
2046
|
+
s || (a = h.throttleType, i = h.throttleDelay);
|
|
2047
|
+
var C = B(o.areas, function(v) {
|
|
2048
|
+
var g = pa[v.brushType], S = re({
|
|
2049
|
+
boundingRect: g ? g(v) : void 0
|
|
2050
|
+
}, v);
|
|
2051
|
+
return S.selectors = sa(S), S;
|
|
2052
|
+
}), T = zr(o.option, bt, function(v) {
|
|
2053
|
+
v.mappingMethod = "fixed";
|
|
2054
|
+
});
|
|
2055
|
+
z(l) && _(l, function(v) {
|
|
2056
|
+
p[v] = 1;
|
|
2057
|
+
});
|
|
2058
|
+
function y(v) {
|
|
2059
|
+
return l === "all" || !!p[v];
|
|
2060
|
+
}
|
|
2061
|
+
function m(v) {
|
|
2062
|
+
return !!v.length;
|
|
2063
|
+
}
|
|
2064
|
+
e.eachSeries(function(v, g) {
|
|
2065
|
+
var S = b[g] = [];
|
|
2066
|
+
v.subType === "parallel" ? x(v, g) : f(v, g, S);
|
|
2067
|
+
});
|
|
2068
|
+
function x(v, g) {
|
|
2069
|
+
var S = v.coordinateSystem;
|
|
2070
|
+
d = d || S.hasAxisBrushed(), y(g) && S.eachActiveState(v.getData(), function(A, M) {
|
|
2071
|
+
A === "active" && (c[M] = 1);
|
|
2072
|
+
});
|
|
2073
|
+
}
|
|
2074
|
+
function f(v, g, S) {
|
|
2075
|
+
if (!(!v.brushSelector || ha(o, g)) && (_(C, function(M) {
|
|
2076
|
+
o.brushTargetManager.controlSeries(M, v, e) && S.push(M), d = d || m(S);
|
|
2077
|
+
}), y(g) && m(S))) {
|
|
2078
|
+
var A = v.getData();
|
|
2079
|
+
A.each(function(M) {
|
|
2080
|
+
xt(v, S, A, M) && (c[M] = 1);
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
e.eachSeries(function(v, g) {
|
|
2085
|
+
var S = {
|
|
2086
|
+
seriesId: v.id,
|
|
2087
|
+
seriesIndex: g,
|
|
2088
|
+
seriesName: v.name,
|
|
2089
|
+
dataIndex: []
|
|
2090
|
+
};
|
|
2091
|
+
u.selected.push(S);
|
|
2092
|
+
var A = b[g], M = v.getData(), w = y(g) ? function(O) {
|
|
2093
|
+
return c[O] ? (S.dataIndex.push(M.getRawIndex(O)), "inBrush") : "outOfBrush";
|
|
2094
|
+
} : function(O) {
|
|
2095
|
+
return xt(v, A, M, O) ? (S.dataIndex.push(M.getRawIndex(O)), "inBrush") : "outOfBrush";
|
|
2096
|
+
};
|
|
2097
|
+
(y(g) ? d : m(A)) && Hr(bt, T, M, w);
|
|
2098
|
+
});
|
|
2099
|
+
}), la(r, a, i, n, t);
|
|
2100
|
+
}
|
|
2101
|
+
function la(e, r, t, n, a) {
|
|
2102
|
+
if (a) {
|
|
2103
|
+
var i = e.getZr();
|
|
2104
|
+
if (!i[De]) {
|
|
2105
|
+
i[ge] || (i[ge] = ca);
|
|
2106
|
+
var o = Dr(i, ge, t, r);
|
|
2107
|
+
o(e, n);
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
function ca(e, r) {
|
|
2112
|
+
if (!e.isDisposed()) {
|
|
2113
|
+
var t = e.getZr();
|
|
2114
|
+
t[De] = !0, e.dispatchAction({
|
|
2115
|
+
type: "brushSelect",
|
|
2116
|
+
batch: r
|
|
2117
|
+
}), t[De] = !1;
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
function xt(e, r, t, n) {
|
|
2121
|
+
for (var a = 0, i = r.length; a < i; a++) {
|
|
2122
|
+
var o = r[a];
|
|
2123
|
+
if (e.brushSelector(n, t, o.selectors, o))
|
|
2124
|
+
return !0;
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
function ha(e, r) {
|
|
2128
|
+
var t = e.option.seriesIndex;
|
|
2129
|
+
return t != null && t !== "all" && (z(t) ? Q(t, r) < 0 : r !== t);
|
|
2130
|
+
}
|
|
2131
|
+
var pa = {
|
|
2132
|
+
rect: function(e) {
|
|
2133
|
+
return Ct(e.range);
|
|
2134
|
+
},
|
|
2135
|
+
polygon: function(e) {
|
|
2136
|
+
for (var r, t = e.range, n = 0, a = t.length; n < a; n++) {
|
|
2137
|
+
r = r || [[1 / 0, -1 / 0], [1 / 0, -1 / 0]];
|
|
2138
|
+
var i = t[n];
|
|
2139
|
+
i[0] < r[0][0] && (r[0][0] = i[0]), i[0] > r[0][1] && (r[0][1] = i[0]), i[1] < r[1][0] && (r[1][0] = i[1]), i[1] > r[1][1] && (r[1][1] = i[1]);
|
|
2140
|
+
}
|
|
2141
|
+
return r && Ct(r);
|
|
2142
|
+
}
|
|
2143
|
+
};
|
|
2144
|
+
function Ct(e) {
|
|
2145
|
+
return new Oe(e[0][0], e[1][0], e[0][1] - e[0][0], e[1][1] - e[1][0]);
|
|
2146
|
+
}
|
|
2147
|
+
var va = (
|
|
2148
|
+
/** @class */
|
|
2149
|
+
(function(e) {
|
|
2150
|
+
D(r, e);
|
|
2151
|
+
function r() {
|
|
2152
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
2153
|
+
return t.type = r.type, t;
|
|
2154
|
+
}
|
|
2155
|
+
return r.prototype.init = function(t, n) {
|
|
2156
|
+
this.ecModel = t, this.api = n, this.model, (this._brushController = new kt(n.getZr())).on("brush", oe(this._onBrush, this)).mount();
|
|
2157
|
+
}, r.prototype.render = function(t, n, a, i) {
|
|
2158
|
+
this.model = t, this._updateController(t, n, a, i);
|
|
2159
|
+
}, r.prototype.updateTransform = function(t, n, a, i) {
|
|
2160
|
+
jt(n), this._updateController(t, n, a, i);
|
|
2161
|
+
}, r.prototype.updateVisual = function(t, n, a, i) {
|
|
2162
|
+
this.updateTransform(t, n, a, i);
|
|
2163
|
+
}, r.prototype.updateView = function(t, n, a, i) {
|
|
2164
|
+
this._updateController(t, n, a, i);
|
|
2165
|
+
}, r.prototype._updateController = function(t, n, a, i) {
|
|
2166
|
+
(!i || i.$from !== t.id) && this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice());
|
|
2167
|
+
}, r.prototype.dispose = function() {
|
|
2168
|
+
this._brushController.dispose();
|
|
2169
|
+
}, r.prototype._onBrush = function(t) {
|
|
2170
|
+
var n = this.model.id, a = this.model.brushTargetManager.setOutputRanges(t.areas, this.ecModel);
|
|
2171
|
+
(!t.isEnd || t.removeOnClick) && this.api.dispatchAction({
|
|
2172
|
+
type: "brush",
|
|
2173
|
+
brushId: n,
|
|
2174
|
+
areas: R(a),
|
|
2175
|
+
$from: n
|
|
2176
|
+
}), t.isEnd && this.api.dispatchAction({
|
|
2177
|
+
type: "brushEnd",
|
|
2178
|
+
brushId: n,
|
|
2179
|
+
areas: R(a),
|
|
2180
|
+
$from: n
|
|
2181
|
+
});
|
|
2182
|
+
}, r.type = "brush", r;
|
|
2183
|
+
})(Dt)
|
|
2184
|
+
), fa = "#ddd", da = (
|
|
2185
|
+
/** @class */
|
|
2186
|
+
(function(e) {
|
|
2187
|
+
D(r, e);
|
|
2188
|
+
function r() {
|
|
2189
|
+
var t = e !== null && e.apply(this, arguments) || this;
|
|
2190
|
+
return t.type = r.type, t.areas = [], t.brushOption = {}, t;
|
|
2191
|
+
}
|
|
2192
|
+
return r.prototype.optionUpdated = function(t, n) {
|
|
2193
|
+
var a = this.option;
|
|
2194
|
+
!n && Zr(a, t, ["inBrush", "outOfBrush"]);
|
|
2195
|
+
var i = a.inBrush = a.inBrush || {};
|
|
2196
|
+
a.outOfBrush = a.outOfBrush || {
|
|
2197
|
+
color: fa
|
|
2198
|
+
}, i.hasOwnProperty("liftZ") || (i.liftZ = 5);
|
|
2199
|
+
}, r.prototype.setAreas = function(t) {
|
|
2200
|
+
process.env.NODE_ENV !== "production" && (V(z(t)), _(t, function(n) {
|
|
2201
|
+
V(n.brushType, "Illegal areas");
|
|
2202
|
+
})), t && (this.areas = B(t, function(n) {
|
|
2203
|
+
return _t(this.option, n);
|
|
2204
|
+
}, this));
|
|
2205
|
+
}, r.prototype.setBrushOption = function(t) {
|
|
2206
|
+
this.brushOption = _t(this.option, t), this.brushType = this.brushOption.brushType;
|
|
2207
|
+
}, r.type = "brush", r.dependencies = ["geo", "grid", "xAxis", "yAxis", "parallel", "series"], r.defaultOption = {
|
|
2208
|
+
seriesIndex: "all",
|
|
2209
|
+
brushType: "rect",
|
|
2210
|
+
brushMode: "single",
|
|
2211
|
+
transformable: !0,
|
|
2212
|
+
brushStyle: {
|
|
2213
|
+
borderWidth: 1,
|
|
2214
|
+
color: "rgba(210,219,238,0.3)",
|
|
2215
|
+
borderColor: "#D2DBEE"
|
|
2216
|
+
},
|
|
2217
|
+
throttleType: "fixRate",
|
|
2218
|
+
throttleDelay: 0,
|
|
2219
|
+
removeOnClick: !0,
|
|
2220
|
+
z: 1e4
|
|
2221
|
+
}, r;
|
|
2222
|
+
})(At)
|
|
2223
|
+
);
|
|
2224
|
+
function _t(e, r) {
|
|
2225
|
+
return Z({
|
|
2226
|
+
brushType: e.brushType,
|
|
2227
|
+
brushMode: e.brushMode,
|
|
2228
|
+
transformable: e.transformable,
|
|
2229
|
+
brushStyle: new wt(e.brushStyle).getItemStyle(),
|
|
2230
|
+
removeOnClick: e.removeOnClick,
|
|
2231
|
+
z: e.z
|
|
2232
|
+
}, r, !0);
|
|
2233
|
+
}
|
|
2234
|
+
var ga = ["rect", "polygon", "lineX", "lineY", "keep", "clear"], ma = (
|
|
2235
|
+
/** @class */
|
|
2236
|
+
(function(e) {
|
|
2237
|
+
D(r, e);
|
|
2238
|
+
function r() {
|
|
2239
|
+
return e !== null && e.apply(this, arguments) || this;
|
|
2240
|
+
}
|
|
2241
|
+
return r.prototype.render = function(t, n, a) {
|
|
2242
|
+
var i, o, s;
|
|
2243
|
+
n.eachComponent({
|
|
2244
|
+
mainType: "brush"
|
|
2245
|
+
}, function(u) {
|
|
2246
|
+
i = u.brushType, o = u.brushOption.brushMode || "single", s = s || !!u.areas.length;
|
|
2247
|
+
}), this._brushType = i, this._brushMode = o, _(t.get("type", !0), function(u) {
|
|
2248
|
+
t.setIconStatus(u, (u === "keep" ? o === "multiple" : u === "clear" ? s : u === i) ? "emphasis" : "normal");
|
|
2249
|
+
});
|
|
2250
|
+
}, r.prototype.updateView = function(t, n, a) {
|
|
2251
|
+
this.render(t, n, a);
|
|
2252
|
+
}, r.prototype.getIcons = function() {
|
|
2253
|
+
var t = this.model, n = t.get("icon", !0), a = {};
|
|
2254
|
+
return _(t.get("type", !0), function(i) {
|
|
2255
|
+
n[i] && (a[i] = n[i]);
|
|
2256
|
+
}), a;
|
|
2257
|
+
}, r.prototype.onclick = function(t, n, a) {
|
|
2258
|
+
var i = this._brushType, o = this._brushMode;
|
|
2259
|
+
a === "clear" ? (n.dispatchAction({
|
|
2260
|
+
type: "axisAreaSelect",
|
|
2261
|
+
intervals: []
|
|
2262
|
+
}), n.dispatchAction({
|
|
2263
|
+
type: "brush",
|
|
2264
|
+
command: "clear",
|
|
2265
|
+
// Clear all areas of all brush components.
|
|
2266
|
+
areas: []
|
|
2267
|
+
})) : n.dispatchAction({
|
|
2268
|
+
type: "takeGlobalCursor",
|
|
2269
|
+
key: "brush",
|
|
2270
|
+
brushOption: {
|
|
2271
|
+
brushType: a === "keep" ? i : i === a ? !1 : a,
|
|
2272
|
+
brushMode: a === "keep" ? o === "multiple" ? "single" : "multiple" : o
|
|
2273
|
+
}
|
|
2274
|
+
});
|
|
2275
|
+
}, r.getDefaultOption = function(t) {
|
|
2276
|
+
var n = {
|
|
2277
|
+
show: !0,
|
|
2278
|
+
type: ga.slice(),
|
|
2279
|
+
icon: {
|
|
2280
|
+
/* eslint-disable */
|
|
2281
|
+
rect: "M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",
|
|
2282
|
+
polygon: "M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",
|
|
2283
|
+
lineX: "M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",
|
|
2284
|
+
lineY: "M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",
|
|
2285
|
+
keep: "M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",
|
|
2286
|
+
clear: "M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"
|
|
2287
|
+
// jshint ignore:line
|
|
2288
|
+
/* eslint-enable */
|
|
2289
|
+
},
|
|
2290
|
+
// `rect`, `polygon`, `lineX`, `lineY`, `keep`, `clear`
|
|
2291
|
+
title: t.getLocaleModel().get(["toolbox", "brush", "title"])
|
|
2292
|
+
};
|
|
2293
|
+
return n;
|
|
2294
|
+
}, r;
|
|
2295
|
+
})(k)
|
|
2296
|
+
);
|
|
2297
|
+
function Ba(e) {
|
|
2298
|
+
e.registerComponentView(va), e.registerComponentModel(da), e.registerPreprocessor(ia), e.registerVisual(e.PRIORITY.VISUAL.BRUSH, ua), e.registerAction({
|
|
2299
|
+
type: "brush",
|
|
2300
|
+
event: "brush",
|
|
2301
|
+
update: "updateVisual"
|
|
2302
|
+
}, function(r, t) {
|
|
2303
|
+
t.eachComponent({
|
|
2304
|
+
mainType: "brush",
|
|
2305
|
+
query: r
|
|
2306
|
+
}, function(n) {
|
|
2307
|
+
n.setAreas(r.areas);
|
|
2308
|
+
});
|
|
2309
|
+
}), e.registerAction({
|
|
2310
|
+
type: "brushSelect",
|
|
2311
|
+
event: "brushSelected",
|
|
2312
|
+
update: "none"
|
|
2313
|
+
}, Ke), e.registerAction({
|
|
2314
|
+
type: "brushEnd",
|
|
2315
|
+
event: "brushEnd",
|
|
2316
|
+
update: "none"
|
|
2317
|
+
}, Ke), $("brush", ma);
|
|
2318
|
+
}
|
|
2319
|
+
export {
|
|
2320
|
+
kt as B,
|
|
2321
|
+
cn as W,
|
|
2322
|
+
ln as a,
|
|
2323
|
+
sn as b,
|
|
2324
|
+
Da as c,
|
|
2325
|
+
Ba as d,
|
|
2326
|
+
wa as i,
|
|
2327
|
+
un as m
|
|
2328
|
+
};
|