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,3 @@
|
|
|
1
|
+
"use strict";var Ke=Object.defineProperty,We=Object.defineProperties;var Xe=Object.getOwnPropertyDescriptors;var Ae=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable;var _e=(e,i,t)=>i in e?Ke(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Oe=(e,i)=>{for(var t in i||(i={}))ye.call(i,t)&&_e(e,t,i[t]);if(Ae)for(var t of Ae(i))Je.call(i,t)&&_e(e,t,i[t]);return e},De=(e,i)=>We(e,Xe(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("vue"),J=require("./element-resize-detector-Bo5uDQAu.cjs"),Qe=require("./titleStyle-NSnz6cUg.cjs"),ne=require("./index-Mh5Dw2sd.cjs"),Te=require("./ele-lin-icon-Dke_1AmT.cjs"),ge=require("./install-Csxa7Kv7.cjs"),me=require("./installCanvasRenderer-CyhM1Qpl.cjs"),ei=require("./install-C8buXQPI.cjs"),ii=require("./install-CIT6k8Ga.cjs"),ti=require("./install-CltTFs4e.cjs"),ni=require("./install-z6wShIZI.cjs"),ri=require("./install-Ch5d8i37.cjs"),si=require("./universalTransition-CIN_u2Cu.cjs"),Ie=require("./echarts-BB8O2KSA.cjs");var ee=9e15,X=1e9,we="0123456789abcdef",oe="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",ue="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ve={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-ee,maxE:ee,crypto:!1},Fe,j,N=!0,fe="[DecimalError] ",W=fe+"Invalid argument: ",Ue=fe+"Precision limit exceeded",Ze=fe+"crypto unavailable",Ve="[object Decimal]",U=Math.floor,L=Math.pow,oi=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ui=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,li=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Be=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,x=1e7,w=7,fi=9007199254740991,ai=oe.length-1,Ne=ue.length-1,h={toStringTag:Ve};h.absoluteValue=h.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),m(e)};h.ceil=function(){return m(new this.constructor(this),this.e+1,2)};h.clampedTo=h.clamp=function(e,i){var t,n=this,r=n.constructor;if(e=new r(e),i=new r(i),!e.s||!i.s)return new r(NaN);if(e.gt(i))throw Error(W+i);return t=n.cmp(e),t<0?e:n.cmp(i)>0?i:new r(n)};h.comparedTo=h.cmp=function(e){var i,t,n,r,s=this,o=s.d,u=(e=new s.constructor(e)).d,f=s.s,l=e.s;if(!o||!u)return!f||!l?NaN:f!==l?f:o===u?0:!o^f<0?1:-1;if(!o[0]||!u[0])return o[0]?f:u[0]?-l:0;if(f!==l)return f;if(s.e!==e.e)return s.e>e.e^f<0?1:-1;for(n=o.length,r=u.length,i=0,t=n<r?n:r;i<t;++i)if(o[i]!==u[i])return o[i]>u[i]^f<0?1:-1;return n===r?0:n>r^f<0?1:-1};h.cosine=h.cos=function(){var e,i,t=this,n=t.constructor;return t.d?t.d[0]?(e=n.precision,i=n.rounding,n.precision=e+Math.max(t.e,t.sd())+w,n.rounding=1,t=ci(n,je(n,t)),n.precision=e,n.rounding=i,m(j==2||j==3?t.neg():t,e,i,!0)):new n(1):new n(NaN)};h.cubeRoot=h.cbrt=function(){var e,i,t,n,r,s,o,u,f,l,a=this,c=a.constructor;if(!a.isFinite()||a.isZero())return new c(a);for(N=!1,s=a.s*L(a.s*a,1/3),!s||Math.abs(s)==1/0?(t=R(a.d),e=a.e,(s=(e-t.length+1)%3)&&(t+=s==1||s==-2?"0":"00"),s=L(t,1/3),e=U((e+1)/3)-(e%3==(e<0?-1:2)),s==1/0?t="5e"+e:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t),n.s=a.s):n=new c(s.toString()),o=(e=c.precision)+3;;)if(u=n,f=u.times(u).times(u),l=f.plus(a),n=M(l.plus(a).times(u),l.plus(f),o+2,1),R(u.d).slice(0,o)===(t=R(n.d)).slice(0,o))if(t=t.slice(o-3,o+1),t=="9999"||!r&&t=="4999"){if(!r&&(m(u,e+1,0),u.times(u).times(u).eq(a))){n=u;break}o+=4,r=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(m(n,e+1,1),i=!n.times(n).times(n).eq(a));break}return N=!0,m(n,e,c.rounding,i)};h.decimalPlaces=h.dp=function(){var e,i=this.d,t=NaN;if(i){if(e=i.length-1,t=(e-U(this.e/w))*w,e=i[e],e)for(;e%10==0;e/=10)t--;t<0&&(t=0)}return t};h.dividedBy=h.div=function(e){return M(this,new this.constructor(e))};h.dividedToIntegerBy=h.divToInt=function(e){var i=this,t=i.constructor;return m(M(i,new t(e),0,1,1),t.precision,t.rounding)};h.equals=h.eq=function(e){return this.cmp(e)===0};h.floor=function(){return m(new this.constructor(this),this.e+1,3)};h.greaterThan=h.gt=function(e){return this.cmp(e)>0};h.greaterThanOrEqualTo=h.gte=function(e){var i=this.cmp(e);return i==1||i===0};h.hyperbolicCosine=h.cosh=function(){var e,i,t,n,r,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;t=o.precision,n=o.rounding,o.precision=t+Math.max(s.e,s.sd())+4,o.rounding=1,r=s.d.length,r<32?(e=Math.ceil(r/3),i=(1/ce(4,e)).toString()):(e=16,i="2.3283064365386962890625e-10"),s=ie(o,1,s.times(i),new o(1),!0);for(var f,l=e,a=new o(8);l--;)f=s.times(s),s=u.minus(f.times(a.minus(f.times(a))));return m(s,o.precision=t,o.rounding=n,!0)};h.hyperbolicSine=h.sinh=function(){var e,i,t,n,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(i=s.precision,t=s.rounding,s.precision=i+Math.max(r.e,r.sd())+4,s.rounding=1,n=r.d.length,n<3)r=ie(s,2,r,r,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,r=r.times(1/ce(5,e)),r=ie(s,2,r,r,!0);for(var o,u=new s(5),f=new s(16),l=new s(20);e--;)o=r.times(r),r=r.times(u.plus(o.times(f.times(o).plus(l))))}return s.precision=i,s.rounding=t,m(r,i,t,!0)};h.hyperbolicTangent=h.tanh=function(){var e,i,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+7,n.rounding=1,M(t.sinh(),t.cosh(),n.precision=e,n.rounding=i)):new n(t.s)};h.inverseCosine=h.acos=function(){var e=this,i=e.constructor,t=e.abs().cmp(1),n=i.precision,r=i.rounding;return t!==-1?t===0?e.isNeg()?$(i,n,r):new i(0):new i(NaN):e.isZero()?$(i,n+4,r).times(.5):(i.precision=n+6,i.rounding=1,e=new i(1).minus(e).div(e.plus(1)).sqrt().atan(),i.precision=n,i.rounding=r,e.times(2))};h.inverseHyperbolicCosine=h.acosh=function(){var e,i,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(e=n.precision,i=n.rounding,n.precision=e+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,N=!1,t=t.times(t).minus(1).sqrt().plus(t),N=!0,n.precision=e,n.rounding=i,t.ln()):new n(t)};h.inverseHyperbolicSine=h.asinh=function(){var e,i,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,N=!1,t=t.times(t).plus(1).sqrt().plus(t),N=!0,n.precision=e,n.rounding=i,t.ln())};h.inverseHyperbolicTangent=h.atanh=function(){var e,i,t,n,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=s.precision,i=s.rounding,n=r.sd(),Math.max(n,e)<2*-r.e-1?m(new s(r),e,i,!0):(s.precision=t=n-r.e,r=M(r.plus(1),new s(1).minus(r),t+e,1),s.precision=e+4,s.rounding=1,r=r.ln(),s.precision=e,s.rounding=i,r.times(.5))):new s(NaN)};h.inverseSine=h.asin=function(){var e,i,t,n,r=this,s=r.constructor;return r.isZero()?new s(r):(i=r.abs().cmp(1),t=s.precision,n=s.rounding,i!==-1?i===0?(e=$(s,t+4,n).times(.5),e.s=r.s,e):new s(NaN):(s.precision=t+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=t,s.rounding=n,r.times(2)))};h.inverseTangent=h.atan=function(){var e,i,t,n,r,s,o,u,f,l=this,a=l.constructor,c=a.precision,d=a.rounding;if(l.isFinite()){if(l.isZero())return new a(l);if(l.abs().eq(1)&&c+4<=Ne)return o=$(a,c+4,d).times(.25),o.s=l.s,o}else{if(!l.s)return new a(NaN);if(c+4<=Ne)return o=$(a,c+4,d).times(.5),o.s=l.s,o}for(a.precision=u=c+10,a.rounding=1,t=Math.min(28,u/w+2|0),e=t;e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(N=!1,i=Math.ceil(u/w),n=1,f=l.times(l),o=new a(l),r=l;e!==-1;)if(r=r.times(f),s=o.minus(r.div(n+=2)),r=r.times(f),o=s.plus(r.div(n+=2)),o.d[i]!==void 0)for(e=i;o.d[e]===s.d[e]&&e--;);return t&&(o=o.times(2<<t-1)),N=!0,m(o,a.precision=c,a.rounding=d,!0)};h.isFinite=function(){return!!this.d};h.isInteger=h.isInt=function(){return!!this.d&&U(this.e/w)>this.d.length-2};h.isNaN=function(){return!this.s};h.isNegative=h.isNeg=function(){return this.s<0};h.isPositive=h.isPos=function(){return this.s>0};h.isZero=function(){return!!this.d&&this.d[0]===0};h.lessThan=h.lt=function(e){return this.cmp(e)<0};h.lessThanOrEqualTo=h.lte=function(e){return this.cmp(e)<1};h.logarithm=h.log=function(e){var i,t,n,r,s,o,u,f,l=this,a=l.constructor,c=a.precision,d=a.rounding,g=5;if(e==null)e=new a(10),i=!0;else{if(e=new a(e),t=e.d,e.s<0||!t||!t[0]||e.eq(1))return new a(NaN);i=e.eq(10)}if(t=l.d,l.s<0||!t||!t[0]||l.eq(1))return new a(t&&!t[0]?-1/0:l.s!=1?NaN:t?0:1/0);if(i)if(t.length>1)s=!0;else{for(r=t[0];r%10===0;)r/=10;s=r!==1}if(N=!1,u=c+g,o=Y(l,u),n=i?le(a,u+10):Y(e,u),f=M(o,n,u,1),te(f.d,r=c,d))do if(u+=10,o=Y(l,u),n=i?le(a,u+10):Y(e,u),f=M(o,n,u,1),!s){+R(f.d).slice(r+1,r+15)+1==1e14&&(f=m(f,c+1,0));break}while(te(f.d,r+=10,d));return N=!0,m(f,c,d)};h.minus=h.sub=function(e){var i,t,n,r,s,o,u,f,l,a,c,d,g=this,C=g.constructor;if(e=new C(e),!g.d||!e.d)return!g.s||!e.s?e=new C(NaN):g.d?e.s=-e.s:e=new C(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(l=g.d,d=e.d,u=C.precision,f=C.rounding,!l[0]||!d[0]){if(d[0])e.s=-e.s;else if(l[0])e=new C(g);else return new C(f===3?-0:0);return N?m(e,u,f):e}if(t=U(e.e/w),a=U(g.e/w),l=l.slice(),s=a-t,s){for(c=s<0,c?(i=l,s=-s,o=d.length):(i=d,t=a,o=l.length),n=Math.max(Math.ceil(u/w),o)+2,s>n&&(s=n,i.length=1),i.reverse(),n=s;n--;)i.push(0);i.reverse()}else{for(n=l.length,o=d.length,c=n<o,c&&(o=n),n=0;n<o;n++)if(l[n]!=d[n]){c=l[n]<d[n];break}s=0}for(c&&(i=l,l=d,d=i,e.s=-e.s),o=l.length,n=d.length-o;n>0;--n)l[o++]=0;for(n=d.length;n>s;){if(l[--n]<d[n]){for(r=n;r&&l[--r]===0;)l[r]=x-1;--l[r],l[n]+=x}l[n]-=d[n]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--t;return l[0]?(e.d=l,e.e=ae(l,t),N?m(e,u,f):e):new C(f===3?-0:0)};h.modulo=h.mod=function(e){var i,t=this,n=t.constructor;return e=new n(e),!t.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||t.d&&!t.d[0]?m(new n(t),n.precision,n.rounding):(N=!1,n.modulo==9?(i=M(t,e.abs(),0,3,1),i.s*=e.s):i=M(t,e,0,n.modulo,1),i=i.times(e),N=!0,t.minus(i))};h.naturalExponential=h.exp=function(){return Ee(this)};h.naturalLogarithm=h.ln=function(){return Y(this)};h.negated=h.neg=function(){var e=new this.constructor(this);return e.s=-e.s,m(e)};h.plus=h.add=function(e){var i,t,n,r,s,o,u,f,l,a,c=this,d=c.constructor;if(e=new d(e),!c.d||!e.d)return!c.s||!e.s?e=new d(NaN):c.d||(e=new d(e.d||c.s===e.s?c:NaN)),e;if(c.s!=e.s)return e.s=-e.s,c.minus(e);if(l=c.d,a=e.d,u=d.precision,f=d.rounding,!l[0]||!a[0])return a[0]||(e=new d(c)),N?m(e,u,f):e;if(s=U(c.e/w),n=U(e.e/w),l=l.slice(),r=s-n,r){for(r<0?(t=l,r=-r,o=a.length):(t=a,n=s,o=l.length),s=Math.ceil(u/w),o=s>o?s+1:o+1,r>o&&(r=o,t.length=1),t.reverse();r--;)t.push(0);t.reverse()}for(o=l.length,r=a.length,o-r<0&&(r=o,t=a,a=l,l=t),i=0;r;)i=(l[--r]=l[r]+a[r]+i)/x|0,l[r]%=x;for(i&&(l.unshift(i),++n),o=l.length;l[--o]==0;)l.pop();return e.d=l,e.e=ae(l,n),N?m(e,u,f):e};h.precision=h.sd=function(e){var i,t=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(W+e);return t.d?(i=He(t.d),e&&t.e+1>i&&(i=t.e+1)):i=NaN,i};h.round=function(){var e=this,i=e.constructor;return m(new i(e),e.e+1,i.rounding)};h.sine=h.sin=function(){var e,i,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+Math.max(t.e,t.sd())+w,n.rounding=1,t=hi(n,je(n,t)),n.precision=e,n.rounding=i,m(j>2?t.neg():t,e,i,!0)):new n(NaN)};h.squareRoot=h.sqrt=function(){var e,i,t,n,r,s,o=this,u=o.d,f=o.e,l=o.s,a=o.constructor;if(l!==1||!u||!u[0])return new a(!l||l<0&&(!u||u[0])?NaN:u?o:1/0);for(N=!1,l=Math.sqrt(+o),l==0||l==1/0?(i=R(u),(i.length+f)%2==0&&(i+="0"),l=Math.sqrt(i),f=U((f+1)/2)-(f<0||f%2),l==1/0?i="5e"+f:(i=l.toExponential(),i=i.slice(0,i.indexOf("e")+1)+f),n=new a(i)):n=new a(l.toString()),t=(f=a.precision)+3;;)if(s=n,n=s.plus(M(o,s,t+2,1)).times(.5),R(s.d).slice(0,t)===(i=R(n.d)).slice(0,t))if(i=i.slice(t-3,t+1),i=="9999"||!r&&i=="4999"){if(!r&&(m(s,f+1,0),s.times(s).eq(o))){n=s;break}t+=4,r=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(m(n,f+1,1),e=!n.times(n).eq(o));break}return N=!0,m(n,f,a.rounding,e)};h.tangent=h.tan=function(){var e,i,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+10,n.rounding=1,t=t.sin(),t.s=1,t=M(t,new n(1).minus(t.times(t)).sqrt(),e+10,0),n.precision=e,n.rounding=i,m(j==2||j==4?t.neg():t,e,i,!0)):new n(NaN)};h.times=h.mul=function(e){var i,t,n,r,s,o,u,f,l,a=this,c=a.constructor,d=a.d,g=(e=new c(e)).d;if(e.s*=a.s,!d||!d[0]||!g||!g[0])return new c(!e.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:!d||!g?e.s/0:e.s*0);for(t=U(a.e/w)+U(e.e/w),f=d.length,l=g.length,f<l&&(s=d,d=g,g=s,o=f,f=l,l=o),s=[],o=f+l,n=o;n--;)s.push(0);for(n=l;--n>=0;){for(i=0,r=f+n;r>n;)u=s[r]+g[n]*d[r-n-1]+i,s[r--]=u%x|0,i=u/x|0;s[r]=(s[r]+i)%x|0}for(;!s[--o];)s.pop();return i?++t:s.shift(),e.d=s,e.e=ae(s,t),N?m(e,c.precision,c.rounding):e};h.toBinary=function(e,i){return Ce(this,2,e,i)};h.toDecimalPlaces=h.toDP=function(e,i){var t=this,n=t.constructor;return t=new n(t),e===void 0?t:(V(e,0,X),i===void 0?i=n.rounding:V(i,0,8),m(t,e+t.e+1,i))};h.toExponential=function(e,i){var t,n=this,r=n.constructor;return e===void 0?t=z(n,!0):(V(e,0,X),i===void 0?i=r.rounding:V(i,0,8),n=m(new r(n),e+1,i),t=z(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+t:t};h.toFixed=function(e,i){var t,n,r=this,s=r.constructor;return e===void 0?t=z(r):(V(e,0,X),i===void 0?i=s.rounding:V(i,0,8),n=m(new s(r),e+r.e+1,i),t=z(n,!1,e+n.e+1)),r.isNeg()&&!r.isZero()?"-"+t:t};h.toFraction=function(e){var i,t,n,r,s,o,u,f,l,a,c,d,g=this,C=g.d,v=g.constructor;if(!C)return new v(g);if(l=t=new v(1),n=f=new v(0),i=new v(n),s=i.e=He(C)-g.e-1,o=s%w,i.d[0]=L(10,o<0?w+o:o),e==null)e=s>0?i:l;else{if(u=new v(e),!u.isInt()||u.lt(l))throw Error(W+u);e=u.gt(i)?s>0?i:l:u}for(N=!1,u=new v(R(C)),a=v.precision,v.precision=s=C.length*w*2;c=M(u,i,0,1,1),r=t.plus(c.times(n)),r.cmp(e)!=1;)t=n,n=r,r=l,l=f.plus(c.times(r)),f=r,r=i,i=u.minus(c.times(r)),u=r;return r=M(e.minus(t),n,0,1,1),f=f.plus(r.times(l)),t=t.plus(r.times(n)),f.s=l.s=g.s,d=M(l,n,s,1).minus(g).abs().cmp(M(f,t,s,1).minus(g).abs())<1?[l,n]:[f,t],v.precision=a,N=!0,d};h.toHexadecimal=h.toHex=function(e,i){return Ce(this,16,e,i)};h.toNearest=function(e,i){var t=this,n=t.constructor;if(t=new n(t),e==null){if(!t.d)return t;e=new n(1),i=n.rounding}else{if(e=new n(e),i===void 0?i=n.rounding:V(i,0,8),!t.d)return e.s?t:e;if(!e.d)return e.s&&(e.s=t.s),e}return e.d[0]?(N=!1,t=M(t,e,0,i,1).times(e),N=!0,m(t)):(e.s=t.s,t=e),t};h.toNumber=function(){return+this};h.toOctal=function(e,i){return Ce(this,8,e,i)};h.toPower=h.pow=function(e){var i,t,n,r,s,o,u=this,f=u.constructor,l=+(e=new f(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new f(L(+u,l));if(u=new f(u),u.eq(1))return u;if(n=f.precision,s=f.rounding,e.eq(1))return m(u,n,s);if(i=U(e.e/w),i>=e.d.length-1&&(t=l<0?-l:l)<=fi)return r=xe(f,u,t,n),e.s<0?new f(1).div(r):m(r,n,s);if(o=u.s,o<0){if(i<e.d.length-1)return new f(NaN);if((e.d[i]&1)==0&&(o=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=o,u}return t=L(+u,l),i=t==0||!isFinite(t)?U(l*(Math.log("0."+R(u.d))/Math.LN10+u.e+1)):new f(t+"").e,i>f.maxE+1||i<f.minE-1?new f(i>0?o/0:0):(N=!1,f.rounding=u.s=1,t=Math.min(12,(i+"").length),r=Ee(e.times(Y(u,n+t)),n),r.d&&(r=m(r,n+5,1),te(r.d,n,s)&&(i=n+10,r=m(Ee(e.times(Y(u,i+t)),i),i+5,1),+R(r.d).slice(n+1,n+15)+1==1e14&&(r=m(r,n+1,0)))),r.s=o,N=!0,f.rounding=s,m(r,n,s))};h.toPrecision=function(e,i){var t,n=this,r=n.constructor;return e===void 0?t=z(n,n.e<=r.toExpNeg||n.e>=r.toExpPos):(V(e,1,X),i===void 0?i=r.rounding:V(i,0,8),n=m(new r(n),e,i),t=z(n,e<=n.e||n.e<=r.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+t:t};h.toSignificantDigits=h.toSD=function(e,i){var t=this,n=t.constructor;return e===void 0?(e=n.precision,i=n.rounding):(V(e,1,X),i===void 0?i=n.rounding:V(i,0,8)),m(new n(t),e,i)};h.toString=function(){var e=this,i=e.constructor,t=z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()&&!e.isZero()?"-"+t:t};h.truncated=h.trunc=function(){return m(new this.constructor(this),this.e+1,1)};h.valueOf=h.toJSON=function(){var e=this,i=e.constructor,t=z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()?"-"+t:t};function R(e){var i,t,n,r=e.length-1,s="",o=e[0];if(r>0){for(s+=o,i=1;i<r;i++)n=e[i]+"",t=w-n.length,t&&(s+=G(t)),s+=n;o=e[i],n=o+"",t=w-n.length,t&&(s+=G(t))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}function V(e,i,t){if(e!==~~e||e<i||e>t)throw Error(W+e)}function te(e,i,t,n){var r,s,o,u;for(s=e[0];s>=10;s/=10)--i;return--i<0?(i+=w,r=0):(r=Math.ceil((i+1)/w),i%=w),s=L(10,w-i),u=e[r]%s|0,n==null?i<3?(i==0?u=u/100|0:i==1&&(u=u/10|0),o=t<4&&u==99999||t>3&&u==49999||u==5e4||u==0):o=(t<4&&u+1==s||t>3&&u+1==s/2)&&(e[r+1]/s/100|0)==L(10,i-2)-1||(u==s/2||u==0)&&(e[r+1]/s/100|0)==0:i<4?(i==0?u=u/1e3|0:i==1?u=u/100|0:i==2&&(u=u/10|0),o=(n||t<4)&&u==9999||!n&&t>3&&u==4999):o=((n||t<4)&&u+1==s||!n&&t>3&&u+1==s/2)&&(e[r+1]/s/1e3|0)==L(10,i-3)-1,o}function re(e,i,t){for(var n,r=[0],s,o=0,u=e.length;o<u;){for(s=r.length;s--;)r[s]*=i;for(r[0]+=we.indexOf(e.charAt(o++)),n=0;n<r.length;n++)r[n]>t-1&&(r[n+1]===void 0&&(r[n+1]=0),r[n+1]+=r[n]/t|0,r[n]%=t)}return r.reverse()}function ci(e,i){var t,n,r;if(i.isZero())return i;n=i.d.length,n<32?(t=Math.ceil(n/3),r=(1/ce(4,t)).toString()):(t=16,r="2.3283064365386962890625e-10"),e.precision+=t,i=ie(e,1,i.times(r),new e(1));for(var s=t;s--;){var o=i.times(i);i=o.times(o).minus(o).times(8).plus(1)}return e.precision-=t,i}var M=(function(){function e(n,r,s){var o,u=0,f=n.length;for(n=n.slice();f--;)o=n[f]*r+u,n[f]=o%s|0,u=o/s|0;return u&&n.unshift(u),n}function i(n,r,s,o){var u,f;if(s!=o)f=s>o?1:-1;else for(u=f=0;u<s;u++)if(n[u]!=r[u]){f=n[u]>r[u]?1:-1;break}return f}function t(n,r,s,o){for(var u=0;s--;)n[s]-=u,u=n[s]<r[s]?1:0,n[s]=u*o+n[s]-r[s];for(;!n[0]&&n.length>1;)n.shift()}return function(n,r,s,o,u,f){var l,a,c,d,g,C,v,P,b,Z,p,E,_,q,B,O,k,F,A,H,I=n.constructor,y=n.s==r.s?1:-1,D=n.d,S=r.d;if(!D||!D[0]||!S||!S[0])return new I(!n.s||!r.s||(D?S&&D[0]==S[0]:!S)?NaN:D&&D[0]==0||!S?y*0:y/0);for(f?(g=1,a=n.e-r.e):(f=x,g=w,a=U(n.e/g)-U(r.e/g)),A=S.length,k=D.length,b=new I(y),Z=b.d=[],c=0;S[c]==(D[c]||0);c++);if(S[c]>(D[c]||0)&&a--,s==null?(q=s=I.precision,o=I.rounding):u?q=s+(n.e-r.e)+1:q=s,q<0)Z.push(1),C=!0;else{if(q=q/g+2|0,c=0,A==1){for(d=0,S=S[0],q++;(c<k||d)&&q--;c++)B=d*f+(D[c]||0),Z[c]=B/S|0,d=B%S|0;C=d||c<k}else{for(d=f/(S[0]+1)|0,d>1&&(S=e(S,d,f),D=e(D,d,f),A=S.length,k=D.length),O=A,p=D.slice(0,A),E=p.length;E<A;)p[E++]=0;H=S.slice(),H.unshift(0),F=S[0],S[1]>=f/2&&++F;do d=0,l=i(S,p,A,E),l<0?(_=p[0],A!=E&&(_=_*f+(p[1]||0)),d=_/F|0,d>1?(d>=f&&(d=f-1),v=e(S,d,f),P=v.length,E=p.length,l=i(v,p,P,E),l==1&&(d--,t(v,A<P?H:S,P,f))):(d==0&&(l=d=1),v=S.slice()),P=v.length,P<E&&v.unshift(0),t(p,v,E,f),l==-1&&(E=p.length,l=i(S,p,A,E),l<1&&(d++,t(p,A<E?H:S,E,f))),E=p.length):l===0&&(d++,p=[0]),Z[c++]=d,l&&p[0]?p[E++]=D[O]||0:(p=[D[O]],E=1);while((O++<k||p[0]!==void 0)&&q--);C=p[0]!==void 0}Z[0]||Z.shift()}if(g==1)b.e=a,Fe=C;else{for(c=1,d=Z[0];d>=10;d/=10)c++;b.e=c+a*g-1,m(b,u?s+b.e+1:s,o,C)}return b}})();function m(e,i,t,n){var r,s,o,u,f,l,a,c,d,g=e.constructor;e:if(i!=null){if(c=e.d,!c)return e;for(r=1,u=c[0];u>=10;u/=10)r++;if(s=i-r,s<0)s+=w,o=i,a=c[d=0],f=a/L(10,r-o-1)%10|0;else if(d=Math.ceil((s+1)/w),u=c.length,d>=u)if(n){for(;u++<=d;)c.push(0);a=f=0,r=1,s%=w,o=s-w+1}else break e;else{for(a=u=c[d],r=1;u>=10;u/=10)r++;s%=w,o=s-w+r,f=o<0?0:a/L(10,r-o-1)%10|0}if(n=n||i<0||c[d+1]!==void 0||(o<0?a:a%L(10,r-o-1)),l=t<4?(f||n)&&(t==0||t==(e.s<0?3:2)):f>5||f==5&&(t==4||n||t==6&&(s>0?o>0?a/L(10,r-o):0:c[d-1])%10&1||t==(e.s<0?8:7)),i<1||!c[0])return c.length=0,l?(i-=e.e+1,c[0]=L(10,(w-i%w)%w),e.e=-i||0):c[0]=e.e=0,e;if(s==0?(c.length=d,u=1,d--):(c.length=d+1,u=L(10,w-s),c[d]=o>0?(a/L(10,r-o)%L(10,o)|0)*u:0),l)for(;;)if(d==0){for(s=1,o=c[0];o>=10;o/=10)s++;for(o=c[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(e.e++,c[0]==x&&(c[0]=1));break}else{if(c[d]+=u,c[d]!=x)break;c[d--]=0,u=1}for(s=c.length;c[--s]===0;)c.pop()}return N&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function z(e,i,t){if(!e.isFinite())return ze(e);var n,r=e.e,s=R(e.d),o=s.length;return i?(t&&(n=t-o)>0?s=s.charAt(0)+"."+s.slice(1)+G(n):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):r<0?(s="0."+G(-r-1)+s,t&&(n=t-o)>0&&(s+=G(n))):r>=o?(s+=G(r+1-o),t&&(n=t-r-1)>0&&(s=s+"."+G(n))):((n=r+1)<o&&(s=s.slice(0,n)+"."+s.slice(n)),t&&(n=t-o)>0&&(r+1===o&&(s+="."),s+=G(n))),s}function ae(e,i){var t=e[0];for(i*=w;t>=10;t/=10)i++;return i}function le(e,i,t){if(i>ai)throw N=!0,t&&(e.precision=t),Error(Ue);return m(new e(oe),i,1,!0)}function $(e,i,t){if(i>Ne)throw Error(Ue);return m(new e(ue),i,t,!0)}function He(e){var i=e.length-1,t=i*w+1;if(i=e[i],i){for(;i%10==0;i/=10)t--;for(i=e[0];i>=10;i/=10)t++}return t}function G(e){for(var i="";e--;)i+="0";return i}function xe(e,i,t,n){var r,s=new e(1),o=Math.ceil(n/w+4);for(N=!1;;){if(t%2&&(s=s.times(i),Pe(s.d,o)&&(r=!0)),t=U(t/2),t===0){t=s.d.length-1,r&&s.d[t]===0&&++s.d[t];break}i=i.times(i),Pe(i.d,o)}return N=!0,s}function Le(e){return e.d[e.d.length-1]&1}function $e(e,i,t){for(var n,r,s=new e(i[0]),o=0;++o<i.length;){if(r=new e(i[o]),!r.s){s=r;break}n=s.cmp(r),(n===t||n===0&&s.s===t)&&(s=r)}return s}function Ee(e,i){var t,n,r,s,o,u,f,l=0,a=0,c=0,d=e.constructor,g=d.rounding,C=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(i==null?(N=!1,f=C):f=i,u=new d(.03125);e.e>-2;)e=e.times(u),c+=5;for(n=Math.log(L(2,c))/Math.LN10*2+5|0,f+=n,t=s=o=new d(1),d.precision=f;;){if(s=m(s.times(e),f,1),t=t.times(++a),u=o.plus(M(s,t,f,1)),R(u.d).slice(0,f)===R(o.d).slice(0,f)){for(r=c;r--;)o=m(o.times(o),f,1);if(i==null)if(l<3&&te(o.d,f-n,g,l))d.precision=f+=10,t=s=u=new d(1),a=0,l++;else return m(o,d.precision=C,g,N=!0);else return d.precision=C,o}o=u}}function Y(e,i){var t,n,r,s,o,u,f,l,a,c,d,g=1,C=10,v=e,P=v.d,b=v.constructor,Z=b.rounding,p=b.precision;if(v.s<0||!P||!P[0]||!v.e&&P[0]==1&&P.length==1)return new b(P&&!P[0]?-1/0:v.s!=1?NaN:P?0:v);if(i==null?(N=!1,a=p):a=i,b.precision=a+=C,t=R(P),n=t.charAt(0),Math.abs(s=v.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)v=v.times(e),t=R(v.d),n=t.charAt(0),g++;s=v.e,n>1?(v=new b("0."+t),s++):v=new b(n+"."+t.slice(1))}else return l=le(b,a+2,p).times(s+""),v=Y(new b(n+"."+t.slice(1)),a-C).plus(l),b.precision=p,i==null?m(v,p,Z,N=!0):v;for(c=v,f=o=v=M(v.minus(1),v.plus(1),a,1),d=m(v.times(v),a,1),r=3;;){if(o=m(o.times(d),a,1),l=f.plus(M(o,new b(r),a,1)),R(l.d).slice(0,a)===R(f.d).slice(0,a))if(f=f.times(2),s!==0&&(f=f.plus(le(b,a+2,p).times(s+""))),f=M(f,new b(g),a,1),i==null)if(te(f.d,a-C,Z,u))b.precision=a+=C,l=o=v=M(c.minus(1),c.plus(1),a,1),d=m(v.times(v),a,1),r=u=1;else return m(f,b.precision=p,Z,N=!0);else return b.precision=p,f;f=l,r+=2}}function ze(e){return String(e.s*e.s/0)}function se(e,i){var t,n,r;for((t=i.indexOf("."))>-1&&(i=i.replace(".","")),(n=i.search(/e/i))>0?(t<0&&(t=n),t+=+i.slice(n+1),i=i.substring(0,n)):t<0&&(t=i.length),n=0;i.charCodeAt(n)===48;n++);for(r=i.length;i.charCodeAt(r-1)===48;--r);if(i=i.slice(n,r),i){if(r-=n,e.e=t=t-n-1,e.d=[],n=(t+1)%w,t<0&&(n+=w),n<r){for(n&&e.d.push(+i.slice(0,n)),r-=w;n<r;)e.d.push(+i.slice(n,n+=w));i=i.slice(n),n=w-i.length}else n-=r;for(;n--;)i+="0";e.d.push(+i),N&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function di(e,i){var t,n,r,s,o,u,f,l,a;if(i.indexOf("_")>-1){if(i=i.replace(/(\d)_(?=\d)/g,"$1"),Be.test(i))return se(e,i)}else if(i==="Infinity"||i==="NaN")return+i||(e.s=NaN),e.e=NaN,e.d=null,e;if(ui.test(i))t=16,i=i.toLowerCase();else if(oi.test(i))t=2;else if(li.test(i))t=8;else throw Error(W+i);for(s=i.search(/p/i),s>0?(f=+i.slice(s+1),i=i.substring(2,s)):i=i.slice(2),s=i.indexOf("."),o=s>=0,n=e.constructor,o&&(i=i.replace(".",""),u=i.length,s=u-s,r=xe(n,new n(t),s,s*2)),l=re(i,t,x),a=l.length-1,s=a;l[s]===0;--s)l.pop();return s<0?new n(e.s*0):(e.e=ae(l,a),e.d=l,N=!1,o&&(e=M(e,r,u*4)),f&&(e=e.times(Math.abs(f)<54?L(2,f):K.pow(2,f))),N=!0,e)}function hi(e,i){var t,n=i.d.length;if(n<3)return i.isZero()?i:ie(e,2,i,i);t=1.4*Math.sqrt(n),t=t>16?16:t|0,i=i.times(1/ce(5,t)),i=ie(e,2,i,i);for(var r,s=new e(5),o=new e(16),u=new e(20);t--;)r=i.times(i),i=i.times(s.plus(r.times(o.times(r).minus(u))));return i}function ie(e,i,t,n,r){var s,o,u,f,l=e.precision,a=Math.ceil(l/w);for(N=!1,f=t.times(t),u=new e(n);;){if(o=M(u.times(f),new e(i++*i++),l,1),u=r?n.plus(o):n.minus(o),n=M(o.times(f),new e(i++*i++),l,1),o=u.plus(n),o.d[a]!==void 0){for(s=a;o.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=n,n=o,o=s}return N=!0,o.d.length=a+1,o}function ce(e,i){for(var t=e;--i;)t*=e;return t}function je(e,i){var t,n=i.s<0,r=$(e,e.precision,1),s=r.times(.5);if(i=i.abs(),i.lte(s))return j=n?4:1,i;if(t=i.divToInt(r),t.isZero())j=n?3:2;else{if(i=i.minus(t.times(r)),i.lte(s))return j=Le(t)?n?2:3:n?4:1,i;j=Le(t)?n?1:4:n?3:2}return i.minus(r).abs()}function Ce(e,i,t,n){var r,s,o,u,f,l,a,c,d,g=e.constructor,C=t!==void 0;if(C?(V(t,1,X),n===void 0?n=g.rounding:V(n,0,8)):(t=g.precision,n=g.rounding),!e.isFinite())a=ze(e);else{for(a=z(e),o=a.indexOf("."),C?(r=2,i==16?t=t*4-3:i==8&&(t=t*3-2)):r=i,o>=0&&(a=a.replace(".",""),d=new g(1),d.e=a.length-o,d.d=re(z(d),10,r),d.e=d.d.length),c=re(a,10,r),s=f=c.length;c[--f]==0;)c.pop();if(!c[0])a=C?"0p+0":"0";else{if(o<0?s--:(e=new g(e),e.d=c,e.e=s,e=M(e,d,t,n,0,r),c=e.d,s=e.e,l=Fe),o=c[t],u=r/2,l=l||c[t+1]!==void 0,l=n<4?(o!==void 0||l)&&(n===0||n===(e.s<0?3:2)):o>u||o===u&&(n===4||l||n===6&&c[t-1]&1||n===(e.s<0?8:7)),c.length=t,l)for(;++c[--t]>r-1;)c[t]=0,t||(++s,c.unshift(1));for(f=c.length;!c[f-1];--f);for(o=0,a="";o<f;o++)a+=we.charAt(c[o]);if(C){if(f>1)if(i==16||i==8){for(o=i==16?4:3,--f;f%o;f++)a+="0";for(c=re(a,r,i),f=c.length;!c[f-1];--f);for(o=1,a="1.";o<f;o++)a+=we.charAt(c[o])}else a=a.charAt(0)+"."+a.slice(1);a=a+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)a="0"+a;a="0."+a}else if(++s>f)for(s-=f;s--;)a+="0";else s<f&&(a=a.slice(0,s)+"."+a.slice(s))}a=(i==16?"0x":i==2?"0b":i==8?"0o":"")+a}return e.s<0?"-"+a:a}function Pe(e,i){if(e.length>i)return e.length=i,!0}function pi(e){return new this(e).abs()}function gi(e){return new this(e).acos()}function mi(e){return new this(e).acosh()}function wi(e,i){return new this(e).plus(i)}function vi(e){return new this(e).asin()}function Ni(e){return new this(e).asinh()}function Ei(e){return new this(e).atan()}function Ci(e){return new this(e).atanh()}function Si(e,i){e=new this(e),i=new this(i);var t,n=this.precision,r=this.rounding,s=n+4;return!e.s||!i.s?t=new this(NaN):!e.d&&!i.d?(t=$(this,s,1).times(i.s>0?.25:.75),t.s=e.s):!i.d||e.isZero()?(t=i.s<0?$(this,n,r):new this(0),t.s=e.s):!e.d||i.isZero()?(t=$(this,s,1).times(.5),t.s=e.s):i.s<0?(this.precision=s,this.rounding=1,t=this.atan(M(e,i,s,1)),i=$(this,s,1),this.precision=n,this.rounding=r,t=e.s<0?t.minus(i):t.plus(i)):t=this.atan(M(e,i,s,1)),t}function ki(e){return new this(e).cbrt()}function Mi(e){return m(e=new this(e),e.e+1,2)}function bi(e,i,t){return new this(e).clamp(i,t)}function qi(e){if(!e||typeof e!="object")throw Error(fe+"Object expected");var i,t,n,r=e.defaults===!0,s=["precision",1,X,"rounding",0,8,"toExpNeg",-ee,0,"toExpPos",0,ee,"maxE",0,ee,"minE",-ee,0,"modulo",0,9];for(i=0;i<s.length;i+=3)if(t=s[i],r&&(this[t]=ve[t]),(n=e[t])!==void 0)if(U(n)===n&&n>=s[i+1]&&n<=s[i+2])this[t]=n;else throw Error(W+t+": "+n);if(t="crypto",r&&(this[t]=ve[t]),(n=e[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Ze);else this[t]=!1;else throw Error(W+t+": "+n);return this}function Ai(e){return new this(e).cos()}function _i(e){return new this(e).cosh()}function Ge(e){var i,t,n;function r(s){var o,u,f,l=this;if(!(l instanceof r))return new r(s);if(l.constructor=r,Re(s)){l.s=s.s,N?!s.d||s.e>r.maxE?(l.e=NaN,l.d=null):s.e<r.minE?(l.e=0,l.d=[0]):(l.e=s.e,l.d=s.d.slice()):(l.e=s.e,l.d=s.d?s.d.slice():s.d);return}if(f=typeof s,f==="number"){if(s===0){l.s=1/s<0?-1:1,l.e=0,l.d=[0];return}if(s<0?(s=-s,l.s=-1):l.s=1,s===~~s&&s<1e7){for(o=0,u=s;u>=10;u/=10)o++;N?o>r.maxE?(l.e=NaN,l.d=null):o<r.minE?(l.e=0,l.d=[0]):(l.e=o,l.d=[s]):(l.e=o,l.d=[s]);return}if(s*0!==0){s||(l.s=NaN),l.e=NaN,l.d=null;return}return se(l,s.toString())}if(f==="string")return(u=s.charCodeAt(0))===45?(s=s.slice(1),l.s=-1):(u===43&&(s=s.slice(1)),l.s=1),Be.test(s)?se(l,s):di(l,s);if(f==="bigint")return s<0?(s=-s,l.s=-1):l.s=1,se(l,s.toString());throw Error(W+s)}if(r.prototype=h,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.EUCLID=9,r.config=r.set=qi,r.clone=Ge,r.isDecimal=Re,r.abs=pi,r.acos=gi,r.acosh=mi,r.add=wi,r.asin=vi,r.asinh=Ni,r.atan=Ei,r.atanh=Ci,r.atan2=Si,r.cbrt=ki,r.ceil=Mi,r.clamp=bi,r.cos=Ai,r.cosh=_i,r.div=Oi,r.exp=Di,r.floor=Ti,r.hypot=Ii,r.ln=Li,r.log=Pi,r.log10=Fi,r.log2=Ri,r.max=Ui,r.min=Zi,r.mod=Vi,r.mul=Bi,r.pow=Hi,r.random=xi,r.round=$i,r.sign=zi,r.sin=ji,r.sinh=Gi,r.sqrt=Yi,r.sub=Ki,r.sum=Wi,r.tan=Xi,r.tanh=yi,r.trunc=Ji,e===void 0&&(e={}),e&&e.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<n.length;)e.hasOwnProperty(t=n[i++])||(e[t]=this[t]);return r.config(e),r}function Oi(e,i){return new this(e).div(i)}function Di(e){return new this(e).exp()}function Ti(e){return m(e=new this(e),e.e+1,3)}function Ii(){var e,i,t=new this(0);for(N=!1,e=0;e<arguments.length;)if(i=new this(arguments[e++]),i.d)t.d&&(t=t.plus(i.times(i)));else{if(i.s)return N=!0,new this(1/0);t=i}return N=!0,t.sqrt()}function Re(e){return e instanceof K||e&&e.toStringTag===Ve||!1}function Li(e){return new this(e).ln()}function Pi(e,i){return new this(e).log(i)}function Ri(e){return new this(e).log(2)}function Fi(e){return new this(e).log(10)}function Ui(){return $e(this,arguments,-1)}function Zi(){return $e(this,arguments,1)}function Vi(e,i){return new this(e).mod(i)}function Bi(e,i){return new this(e).mul(i)}function Hi(e,i){return new this(e).pow(i)}function xi(e){var i,t,n,r,s=0,o=new this(1),u=[];if(e===void 0?e=this.precision:V(e,1,X),n=Math.ceil(e/w),this.crypto)if(crypto.getRandomValues)for(i=crypto.getRandomValues(new Uint32Array(n));s<n;)r=i[s],r>=429e7?i[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=r%1e7;else if(crypto.randomBytes){for(i=crypto.randomBytes(n*=4);s<n;)r=i[s]+(i[s+1]<<8)+(i[s+2]<<16)+((i[s+3]&127)<<24),r>=214e7?crypto.randomBytes(4).copy(i,s):(u.push(r%1e7),s+=4);s=n/4}else throw Error(Ze);else for(;s<n;)u[s++]=Math.random()*1e7|0;for(n=u[--s],e%=w,n&&e&&(r=L(10,w-e),u[s]=(n/r|0)*r);u[s]===0;s--)u.pop();if(s<0)t=0,u=[0];else{for(t=-1;u[0]===0;t-=w)u.shift();for(n=1,r=u[0];r>=10;r/=10)n++;n<w&&(t-=w-n)}return o.e=t,o.d=u,o}function $i(e){return m(e=new this(e),e.e+1,this.rounding)}function zi(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function ji(e){return new this(e).sin()}function Gi(e){return new this(e).sinh()}function Yi(e){return new this(e).sqrt()}function Ki(e,i){return new this(e).sub(i)}function Wi(){var e=0,i=arguments,t=new this(i[e]);for(N=!1;t.s&&++e<i.length;)t=t.plus(i[e]);return N=!0,m(t,this.precision,this.rounding)}function Xi(e){return new this(e).tan()}function yi(e){return new this(e).tanh()}function Ji(e){return m(e=new this(e),e.e+1,1)}h[Symbol.for("nodejs.util.inspect.custom")]=h.toString;h[Symbol.toStringTag]="Decimal";var K=h.constructor=Ge(ve);oe=new K(oe);ue=new K(ue);const Qi={DEFAULT_ICON:Te.DEFAULT_ICON,ACTIVE_ICON:Te.ACTIVE_ICON,NAME_CN:"K线图",NAME_EN:"Candlestick",ORDER:3},et={titleColor:"#111",bgColor:"#fff",textColor:"#111",upColor:"#c23531",downColor:"#314656",barColor:"#314656",radiusSize:8,textSize:12,top:30,bottom:40,left:40,right:30,points:100,isSmooth:!1,isHideTitle:!1},Ye=[{name:"参数一",项目编号:"",object_id:""}],it=["name","项目编号","object_id","source"],tt=["index","increment","balance","risk"],nt=1,rt={useAlias:!1,null:{type:"0",value:""},source:"index"},st={DEFAULT:Qi,OPTIONS:et,DATA:Ye,PARAMS:it,SOURCE:tt,ITEMS:nt,COMMON:rt},ot=T.defineComponent(De(Oe({},st),{__name:"kds",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(e){me.use([ge.install$1,me.install,ei.install,ii.install,ti.install,ge.install$2,ni.install,ge.install,ri.install,me.install$1,si.installUniversalTransition]);const i=T.ref(T.inject("session",null)),{proxy:t}=T.getCurrentInstance(),n="kds_"+Math.random().toString(16).substring(4,12);let r=null,s=null;const o=e;let u={data:[],dates:[],volumes:[]};class f extends J.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),upColor:this.getOptionValue("upColor","#c23531"),downColor:this.getOptionValue("downColor","#314656"),barColor:this.getOptionValue("barColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",100)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:Ye,T.nextTick(()=>{let E=document.querySelector("#"+n);C({num:a.value.points,max:200,min:0,mode:o.mode}),E&&(r||(r=Ie.init(E),s=J.elementResizeDetectorMaker({strategy:"scroll"}),s.listenTo(E,()=>r==null?void 0:r.resize())),r.setOption(d(),!0))})}onPreview(){b.preview()}cleanup(){s&&s.uninstall(document.querySelector("#"+n)),r&&r.clear(),r&&Ie.dispose(r),r=null,b.unregister()}}const l=new f(o,"kds");l.setupLifecycle();const a=l.getStyle(),c=T.computed(()=>Qe.generateTitleStyle(o.conf.options)),d=()=>{var E,_,q,B,O,k,F,A,H,I,y,D,S,Q,Se,ke,Me,be,qe;const{conf:p}=o;return{animation:!1,color:[a.value.upColor,a.value.downColor],tooltip:{textStyle:{fontSize:12,color:a.value.textColor},position:function(de,lt,ft,at,he){const pe={top:10};return he.viewSize[0]-de[0]<=he.contentSize[0]+20?pe.right=he.viewSize[0]-de[0]+30:pe.left=de[0]+30,pe}},axisPointer:{link:[{xAxisIndex:[0,1]}]},dataZoom:[{type:"slider",xAxisIndex:[0,1],height:12,bottom:12},{type:"inside",xAxisIndex:[0,1],height:12,bottom:12}],xAxis:[{type:"category",data:u.dates,boundaryGap:!0,axisPointer:{show:!0},axisLabel:{color:a.value.textColor}},{type:"category",gridIndex:1,data:u.dates,boundaryGap:!0,splitLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisPointer:{type:"shadow",label:{show:!1},triggerTooltip:!0,handle:{show:!0,margin:16,color:"#B80C00",size:24}}}],yAxis:[{scale:!0,splitNumber:2,axisLine:{lineStyle:{color:a.value.textColor}},axisLabel:{formatter:`{value}
|
|
2
|
+
`}},{scale:!0,gridIndex:1,splitNumber:2,axisLabel:{formatter:`{value}
|
|
3
|
+
`},splitLine:{show:!1},axisLine:{lineStyle:{color:a.value.textColor}}}],grid:[{left:(q=(_=(E=p==null?void 0:p.options)==null?void 0:E.left)==null?void 0:_.value)!=null?q:60,right:(k=(O=(B=p==null?void 0:p.options)==null?void 0:B.right)==null?void 0:O.value)!=null?k:30,top:(H=(A=(F=p==null?void 0:p.options)==null?void 0:F.top)==null?void 0:A.value)!=null?H:30,height:"55%"},{left:(D=(y=(I=p==null?void 0:p.options)==null?void 0:I.left)==null?void 0:y.value)!=null?D:60,right:(Se=(Q=(S=p==null?void 0:p.options)==null?void 0:S.right)==null?void 0:Q.value)!=null?Se:30,height:"20%",bottom:(be=(Me=(ke=p==null?void 0:p.options)==null?void 0:ke.bottom)==null?void 0:Me.value)!=null?be:40}],series:[{name:t.$t("common.total"),type:"bar",xAxisIndex:1,yAxisIndex:1,itemStyle:{color:a.value.barColor},data:u.volumes},{type:"candlestick",name:p!=null&&p.data?(qe=p==null?void 0:p.data[0])==null?void 0:qe.name:"--",data:u.data,itemStyle:{color:a.value.upColor,color0:a.value.downColor,borderColor:a.value.upColor,borderColor0:a.value.downColor}}]}},g=(p,E)=>{const _=[],q=[],B=ne.dayjs(E[0]);let O=[],k=[],F=1,A=o.conf.calcPeriod?Number(o.conf.calcPeriod):30;for(let I=0;I<E.length;I++)ne.dayjs(E[I]).diff(B,"minutes")>A*F&&(F++,O.length>0&&(_.push(O[O.length-1]),q.push({data:[k[0],k[k.length-1],Math.min(...k),Math.max(...k)],total:k.reduce((S,Q)=>K(String(S)).add(K(String(Q))),0).toNumber()}),O=[],k=[])),O.push(E[I]),k.push(p[I]),I===E.length-1&&(_.push(O[O.length-1]),q.push({data:[k[0],k[k.length-1],Math.max(...k),Math.min(...k)],total:k.reduce((S,Q)=>K(String(S)).add(K(String(Q))),0).toNumber()}));let H={data:[],dates:_,volumes:[]};q.forEach(I=>{H.data.push(I.data),H.volumes.push(I.total)}),u=H},C=p=>{let{num:E,max:_,min:q,mode:B}=p;E=E!=null?E:7,_=_!=null?_:200,q=q!=null?q:10;let O=ne.dayjs(),k=[],F=[];for(var A=0;A<E;A++){let H=B==="edit"?Math.floor(Math.random()*(_-q+1)+q):0;k.push(H);const I=O.subtract(A*5,"minutes").format("YYYY-MM-DD HH:mm:ss");F.unshift(I)}g(k,F)},v=p=>{if(!J.hasDataSource(o.conf))return;const{data:E}=o.conf;let _=J.handleNullData(p,o,"history"),q=[],B=[];_.history.length&&(_.history.forEach((O,k)=>{q=O.map(F=>{var A;return(A=F[E[k].fv])!=null?A:"--"}),B=O.map(F=>F.time)}),g(q,B),r==null||r.setOption(d(),!0))},P=p=>{J.hasDataSource(o.conf)},b={preview:()=>J.preview(o,i.value,v,P,"kds"),unregister:()=>J.unregister(o,i.value)};T.watchEffect(()=>{o.conf.socketData&&P(o.conf.socketData)});const Z=o.conf;return(p,E)=>(T.openBlock(),T.createElementBlock("div",{class:"mix-component",style:T.normalizeStyle({background:T.unref(a).bgColor,borderRadius:`${T.unref(a).radiusSize}px`})},[T.createElementVNode("div",{class:"mix-title",style:T.normalizeStyle(c.value)},T.toDisplayString(T.unref(Z).caption||T.unref(Z).name),5),T.createElementVNode("div",{class:"mix-body"},[T.createElementVNode("div",{class:"w-full h-full",id:n})]),T.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),ut=ne._export_sfc(ot,[["__scopeId","data-v-08c5058e"]]);exports.default=ut;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { cj as t, f as u } from "./echarts-BVht3HHb.js";
|
|
2
|
+
function o(r, l) {
|
|
3
|
+
var e = r.mapDimensionsAll("defaultedLabel"), a = e.length;
|
|
4
|
+
if (a === 1) {
|
|
5
|
+
var n = t(r, l, e[0]);
|
|
6
|
+
return n != null ? n + "" : null;
|
|
7
|
+
} else if (a) {
|
|
8
|
+
for (var s = [], f = 0; f < e.length; f++)
|
|
9
|
+
s.push(t(r, l, e[f]));
|
|
10
|
+
return s.join(" ");
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function v(r, l) {
|
|
14
|
+
var e = r.mapDimensionsAll("defaultedLabel");
|
|
15
|
+
if (!u(l))
|
|
16
|
+
return l + "";
|
|
17
|
+
for (var a = [], n = 0; n < e.length; n++) {
|
|
18
|
+
var s = r.getDimensionIndex(e[n]);
|
|
19
|
+
s >= 0 && a.push(l[s]);
|
|
20
|
+
}
|
|
21
|
+
return a.join(" ");
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
v as a,
|
|
25
|
+
o as g
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./echarts-BB8O2KSA.cjs");function f(l,r){var e=l.mapDimensionsAll("defaultedLabel"),t=e.length;if(t===1){var n=s.retrieveRawValue(l,r,e[0]);return n!=null?n+"":null}else if(t){for(var a=[],u=0;u<e.length;u++)a.push(s.retrieveRawValue(l,r,e[u]));return a.join(" ")}}function i(l,r){var e=l.mapDimensionsAll("defaultedLabel");if(!s.isArray(r))return r+"";for(var t=[],n=0;n<e.length;n++){var a=l.getDimensionIndex(e[n]);a>=0&&t.push(r[a])}return t.join(" ")}exports.getDefaultInterpolatedLabel=i;exports.getDefaultLabel=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _=Object.defineProperty,B=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var v=(l,o,a)=>o in l?_(l,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[o]=a,C=(l,o)=>{for(var a in o||(o={}))A.call(o,a)&&v(l,a,o[a]);if(b)for(var a of b(o))E.call(o,a)&&v(l,a,o[a]);return l},g=(l,o)=>B(l,O(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-Mh5Dw2sd.cjs"),I=require("./EChartComponentBase-BaQpBzVC.cjs"),k=require("./titleStyle-NSnz6cUg.cjs"),m=require("./ele-circleBar-icon-Da0-L9sa.cjs"),N={class:"mix-body"},z=["onClick"],w={class:"label"},H={DEFAULT_ICON:m.DEFAULT_ICON,ACTIVE_ICON:m.ACTIVE_ICON,NAME_CN:"图层标签切换",NAME_EN:"LayerTabs",ORDER:20},L={bgColor:{value:"transparent",type:"color",label:"背景颜色"},radiusSize:{value:6,type:"number",label:"圆角"},tabsHeight:{value:44,type:"number",label:"高度"},textSize:{value:14,type:"number",label:"字体大小"},textColor:{value:"#303133",type:"color",label:"文字颜色"},activeTextColor:{value:"#4162ff",type:"color",label:"选中文字颜色"},borderColor:{value:"#e5e5e5",type:"color",label:"边框颜色"},activeBorderColor:{value:"#4162ff",type:"color",label:"选中边框颜色"},barBgColor:{value:"#f4f7ff",type:"color",label:"栏背景"},activeBgColor:{value:"#ffffff",type:"color",label:"选中背景"},isHideTitle:{value:!0,type:"switch",label:"隐藏标题"}},h=[{label:"TAB1",layerId:""},{label:"TAB2",layerId:""}],D=[],M=[],$={useAlias:!1,multiObject:!1,source:"mosaic"},q={DEFAULT:H,OPTIONS:L,DATA:h,PARAMS:D,SOURCE:M,COMMON:$},R=e.defineComponent(g(C({},q),{__name:"layerTabs",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){e.useCssVars(r=>({a72d3684:e.unref(n).barBgColor,v26a82278:e.unref(n).borderColor,v2f17bda3:e.unref(n).textColor,v3fc1e847:`${e.unref(n).textSize}px`,v631a6d25:e.unref(n).activeBgColor,c59c4106:e.unref(n).activeTextColor,v3cc5021e:e.unref(n).activeBorderColor}));const o=l;class a extends I.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","transparent"),radiusSize:this.getOptionValue("radiusSize",6),tabsHeight:this.getOptionValue("tabsHeight",44),textSize:this.getOptionValue("textSize",14),textColor:this.getOptionValue("textColor","#303133"),activeTextColor:this.getOptionValue("activeTextColor","#4162ff"),borderColor:this.getOptionValue("borderColor","#e5e5e5"),activeBorderColor:this.getOptionValue("activeBorderColor","#4162ff"),barBgColor:this.getOptionValue("barBgColor","#f4f7ff"),activeBgColor:this.getOptionValue("activeBgColor","#ffffff"),isHideTitle:this.getOptionValue("isHideTitle",!0)}}init(){var s,t;this.Style.value=this.extractStyles(),this.applyTheme(),Array.isArray((t=(s=this.props)==null?void 0:s.conf)==null?void 0:t.data)||(this.props.conf.data=h)}}const p=new a(o,"layerTabs");p.setupLifecycle();const n=p.getStyle(),S=e.computed(()=>{var r;return k.generateTitleStyle((r=o.conf)==null?void 0:r.options)}),d=e.ref(null),f=e.computed(()=>{var s;return(Array.isArray((s=o.conf)==null?void 0:s.data)?o.conf.data:[]).map(t=>{var c,u;return{label:((c=t==null?void 0:t.label)!=null?c:"").toString(),layerId:((u=t==null?void 0:t.layerId)!=null?u:"").toString()}}).filter(t=>!!t.layerId)}),x=r=>{const s=window.__mix_preview_params,t=(s==null?void 0:s.sheets)||[];if(Array.isArray(t))for(const c of t){const u=(c==null?void 0:c.layers)||[];if(!Array.isArray(u)||!u.some(i=>(i==null?void 0:i.id)===r))continue;const T=new Set(f.value.map(i=>i.layerId));u.forEach(i=>{i!=null&&i.isSticky||T.has(i.id)&&(i.visible=i.id===r)});return}},y=r=>{r&&(d.value=r,o.mode==="preview"&&x(r))};return e.watchEffect(()=>{f.value.length&&(d.value||y(f.value[0].layerId))}),(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.unref(n).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(S.value)},e.toDisplayString(l.conf.caption||l.conf.name),5)),e.createElementVNode("div",N,[e.createElementVNode("div",{class:"tabs",style:e.normalizeStyle({height:`${e.unref(n).tabsHeight}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(t,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(["tab",{active:d.value===t.layerId}]),onClick:u=>y(t.layerId)},[e.createElementVNode("span",w,e.toDisplayString(t.label||t.layerId||"-"),1)],10,z))),128))],4)]),e.renderSlot(r.$slots,"default",{},void 0,!0)],4))}})),F=V._export_sfc(R,[["__scopeId","data-v-2e2919ec"]]);exports.default=F;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var E = Object.defineProperty, I = Object.defineProperties;
|
|
2
|
+
var z = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var g = Object.getOwnPropertySymbols;
|
|
4
|
+
var N = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var h = (a, t, r) => t in a ? E(a, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[t] = r, S = (a, t) => {
|
|
6
|
+
for (var r in t || (t = {}))
|
|
7
|
+
N.call(t, r) && h(a, r, t[r]);
|
|
8
|
+
if (g)
|
|
9
|
+
for (var r of g(t))
|
|
10
|
+
k.call(t, r) && h(a, r, t[r]);
|
|
11
|
+
return a;
|
|
12
|
+
}, x = (a, t) => I(a, z(t));
|
|
13
|
+
import { defineComponent as w, useCssVars as H, unref as s, computed as _, ref as L, watchEffect as D, openBlock as d, createElementBlock as p, normalizeStyle as b, toDisplayString as T, createCommentVNode as M, createElementVNode as v, Fragment as R, renderList as $, normalizeClass as F, renderSlot as U } from "vue";
|
|
14
|
+
import { _ as j } from "./index-kShjySl9.js";
|
|
15
|
+
import { E as P } from "./EChartComponentBase-BQOhWkz2.js";
|
|
16
|
+
import { g as q } from "./titleStyle-BT5GlpAb.js";
|
|
17
|
+
import { A as G, D as J } from "./ele-circleBar-icon-DNBUxt0A.js";
|
|
18
|
+
const K = { class: "mix-body" }, Q = ["onClick"], W = { class: "label" }, X = {
|
|
19
|
+
DEFAULT_ICON: J,
|
|
20
|
+
ACTIVE_ICON: G,
|
|
21
|
+
NAME_CN: "图层标签切换",
|
|
22
|
+
NAME_EN: "LayerTabs",
|
|
23
|
+
ORDER: 20
|
|
24
|
+
}, Y = {
|
|
25
|
+
bgColor: { value: "transparent", type: "color", label: "背景颜色" },
|
|
26
|
+
radiusSize: { value: 6, type: "number", label: "圆角" },
|
|
27
|
+
tabsHeight: { value: 44, type: "number", label: "高度" },
|
|
28
|
+
textSize: { value: 14, type: "number", label: "字体大小" },
|
|
29
|
+
textColor: { value: "#303133", type: "color", label: "文字颜色" },
|
|
30
|
+
activeTextColor: { value: "#4162ff", type: "color", label: "选中文字颜色" },
|
|
31
|
+
borderColor: { value: "#e5e5e5", type: "color", label: "边框颜色" },
|
|
32
|
+
activeBorderColor: { value: "#4162ff", type: "color", label: "选中边框颜色" },
|
|
33
|
+
barBgColor: { value: "#f4f7ff", type: "color", label: "栏背景" },
|
|
34
|
+
activeBgColor: { value: "#ffffff", type: "color", label: "选中背景" },
|
|
35
|
+
isHideTitle: { value: !0, type: "switch", label: "隐藏标题" }
|
|
36
|
+
}, A = [
|
|
37
|
+
{ label: "TAB1", layerId: "" },
|
|
38
|
+
{ label: "TAB2", layerId: "" }
|
|
39
|
+
], Z = [], ee = [], te = { useAlias: !1, multiObject: !1, source: "mosaic" }, oe = { DEFAULT: X, OPTIONS: Y, DATA: A, PARAMS: Z, SOURCE: ee, COMMON: te }, ae = /* @__PURE__ */ w(x(S({}, oe), {
|
|
40
|
+
__name: "layerTabs",
|
|
41
|
+
props: {
|
|
42
|
+
conf: { type: Object, default: () => ({}) },
|
|
43
|
+
uid: { type: String, default: "" },
|
|
44
|
+
mode: { type: String, default: "edit" },
|
|
45
|
+
theme: { type: String, default: "light" }
|
|
46
|
+
},
|
|
47
|
+
setup(a) {
|
|
48
|
+
H((o) => ({
|
|
49
|
+
a72d3684: s(i).barBgColor,
|
|
50
|
+
v26a82278: s(i).borderColor,
|
|
51
|
+
v2f17bda3: s(i).textColor,
|
|
52
|
+
v3fc1e847: `${s(i).textSize}px`,
|
|
53
|
+
v631a6d25: s(i).activeBgColor,
|
|
54
|
+
c59c4106: s(i).activeTextColor,
|
|
55
|
+
v3cc5021e: s(i).activeBorderColor
|
|
56
|
+
}));
|
|
57
|
+
const t = a;
|
|
58
|
+
class r extends P {
|
|
59
|
+
extractStyles() {
|
|
60
|
+
return {
|
|
61
|
+
bgColor: this.getOptionValue("bgColor", "transparent"),
|
|
62
|
+
radiusSize: this.getOptionValue("radiusSize", 6),
|
|
63
|
+
tabsHeight: this.getOptionValue("tabsHeight", 44),
|
|
64
|
+
textSize: this.getOptionValue("textSize", 14),
|
|
65
|
+
textColor: this.getOptionValue("textColor", "#303133"),
|
|
66
|
+
activeTextColor: this.getOptionValue("activeTextColor", "#4162ff"),
|
|
67
|
+
borderColor: this.getOptionValue("borderColor", "#e5e5e5"),
|
|
68
|
+
activeBorderColor: this.getOptionValue("activeBorderColor", "#4162ff"),
|
|
69
|
+
barBgColor: this.getOptionValue("barBgColor", "#f4f7ff"),
|
|
70
|
+
activeBgColor: this.getOptionValue("activeBgColor", "#ffffff"),
|
|
71
|
+
isHideTitle: this.getOptionValue("isHideTitle", !0)
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
init() {
|
|
75
|
+
var n, e;
|
|
76
|
+
this.Style.value = this.extractStyles(), this.applyTheme(), Array.isArray((e = (n = this.props) == null ? void 0 : n.conf) == null ? void 0 : e.data) || (this.props.conf.data = A);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const C = new r(t, "layerTabs");
|
|
80
|
+
C.setupLifecycle();
|
|
81
|
+
const i = C.getStyle(), O = _(() => {
|
|
82
|
+
var o;
|
|
83
|
+
return q((o = t.conf) == null ? void 0 : o.options);
|
|
84
|
+
}), y = L(null), f = _(() => {
|
|
85
|
+
var n;
|
|
86
|
+
return (Array.isArray((n = t.conf) == null ? void 0 : n.data) ? t.conf.data : []).map((e) => {
|
|
87
|
+
var c, u;
|
|
88
|
+
return {
|
|
89
|
+
label: ((c = e == null ? void 0 : e.label) != null ? c : "").toString(),
|
|
90
|
+
layerId: ((u = e == null ? void 0 : e.layerId) != null ? u : "").toString()
|
|
91
|
+
};
|
|
92
|
+
}).filter((e) => !!e.layerId);
|
|
93
|
+
}), B = (o) => {
|
|
94
|
+
const n = window.__mix_preview_params, e = (n == null ? void 0 : n.sheets) || [];
|
|
95
|
+
if (Array.isArray(e))
|
|
96
|
+
for (const c of e) {
|
|
97
|
+
const u = (c == null ? void 0 : c.layers) || [];
|
|
98
|
+
if (!Array.isArray(u) || !u.some((l) => (l == null ? void 0 : l.id) === o)) continue;
|
|
99
|
+
const V = new Set(f.value.map((l) => l.layerId));
|
|
100
|
+
u.forEach((l) => {
|
|
101
|
+
l != null && l.isSticky || V.has(l.id) && (l.visible = l.id === o);
|
|
102
|
+
});
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
}, m = (o) => {
|
|
106
|
+
o && (y.value = o, t.mode === "preview" && B(o));
|
|
107
|
+
};
|
|
108
|
+
return D(() => {
|
|
109
|
+
f.value.length && (y.value || m(f.value[0].layerId));
|
|
110
|
+
}), (o, n) => (d(), p("div", {
|
|
111
|
+
class: "mix-component",
|
|
112
|
+
style: b({ background: s(i).bgColor, borderRadius: `${s(i).radiusSize}px` })
|
|
113
|
+
}, [
|
|
114
|
+
s(i).isHideTitle ? M("", !0) : (d(), p("div", {
|
|
115
|
+
key: 0,
|
|
116
|
+
class: "mix-title",
|
|
117
|
+
style: b(O.value)
|
|
118
|
+
}, T(a.conf.caption || a.conf.name), 5)),
|
|
119
|
+
v("div", K, [
|
|
120
|
+
v("div", {
|
|
121
|
+
class: "tabs",
|
|
122
|
+
style: b({ height: `${s(i).tabsHeight}px` })
|
|
123
|
+
}, [
|
|
124
|
+
(d(!0), p(R, null, $(f.value, (e, c) => (d(), p("div", {
|
|
125
|
+
key: c,
|
|
126
|
+
class: F(["tab", { active: y.value === e.layerId }]),
|
|
127
|
+
onClick: (u) => m(e.layerId)
|
|
128
|
+
}, [
|
|
129
|
+
v("span", W, T(e.label || e.layerId || "-"), 1)
|
|
130
|
+
], 10, Q))), 128))
|
|
131
|
+
], 4)
|
|
132
|
+
]),
|
|
133
|
+
U(o.$slots, "default", {}, void 0, !0)
|
|
134
|
+
], 4));
|
|
135
|
+
}
|
|
136
|
+
})), fe = /* @__PURE__ */ j(ae, [["__scopeId", "data-v-2e2919ec"]]);
|
|
137
|
+
export {
|
|
138
|
+
fe as default
|
|
139
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var M=Object.defineProperty,N=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var _=(d,l,f)=>l in d?M(d,l,{enumerable:!0,configurable:!0,writable:!0,value:f}):d[l]=f,g=(d,l)=>{for(var f in l||(l={}))V.call(l,f)&&_(d,f,l[f]);if(E)for(var f of E(l))k.call(l,f)&&_(d,f,l[f]);return d},b=(d,l)=>N(d,Y(l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),y=require("./element-resize-detector-Bo5uDQAu.cjs"),w=require("./index-Mh5Dw2sd.cjs"),U=require("./EChartComponentBase-BaQpBzVC.cjs"),R=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-lin-icon-Dke_1AmT.cjs"),q=require("./installMarkLine-Bv53Iw9G.cjs"),I=require("./install-DV5cEgNV.cjs"),T=require("./install-CltTFs4e.cjs"),A=require("./installCanvasRenderer-CyhM1Qpl.cjs"),F=require("./install-C8buXQPI.cjs"),$=require("./install-CYwVETsi.cjs"),j={class:"mix-body"},B=["id"],X={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"基础曲线",NAME_EN:"Line Chart",ORDER:1},P={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,points:10,isHideTitle:!1,isSmooth:!1,showArea:!1,hideYaxis:!1,setFiexdYaxis:{value:!1,type:"checkbox",label:"component.line.setFiexdYaxis",repel:"hideYaxis"},yMax:{value:100,type:"number",label:"component.line.yMax",dependent:"setFiexdYaxis"},yMin:{value:0,type:"number",label:"component.line.yMin",dependent:"setFiexdYaxis"},showLabel:!1},H=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",markline:"null"}],G=["name","fv","object_id","color","markline"],J=["mosaic","statistics","calculate"],K={useAlias:!1,null:{type:"0",value:""},multiObject:!1,source:"mosaic",rate:{checked:!1,value:1}},Q={DEFAULT:X,OPTIONS:P,DATA:H,PARAMS:G,SOURCE:J,COMMON:K},W=u.defineComponent(b(g({},Q),{__name:"lin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){A.use([q.install,I.install,T.install,A.install,F.install,A.install$1,$.install]);const l=d;class f extends U.EChartComponentBase{extractStyles(){return b(g({},super.extractStyles()),{isSmooth:this.getOptionValue("isSmooth",!1),showArea:this.getOptionValue("showArea",!1),hideYaxis:this.getOptionValue("hideYaxis",!1),setFiexdYaxis:this.getOptionValue("setFiexdYaxis",!1),yMax:this.getOptionValue("yMax",100),yMin:this.getOptionValue("yMin",0),showLabel:this.getOptionValue("showLabel",!1)})}getChartOption(){const t=this.Style.value,r=this.props.conf;return{tooltip:{trigger:"axis",textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:r.data.map(o=>o.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",boundaryGap:!1,data:this.getXAxisData(),axisLabel:{formatter:o=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(o))return o;const[s,e]=o.split(" ");return`${s}
|
|
2
|
+
${e}`},color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}}}],yAxis:this.formatYaxis(),series:this.formatSeries()}}getXAxisData(){var s,e;const{data:t,common:r}=this.props.conf,o=r.source||"mosaic";return["statistics","calculate"].includes(o)&&!((e=(s=t[0])==null?void 0:s.periodUnit)!=null&&e.includes("near"))?y.getBarXAxis(t[0].periodUnit):this.getTimeAxis()}formatYaxis(){const t=this.Style.value,r=this.props.conf;return t.hideYaxis?r.data.map(()=>({type:"value",show:!1})):{type:"value",show:!0,splitNumber:4,axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},max:t.setFiexdYaxis?t.yMax:null,min:t.setFiexdYaxis?t.yMin:null}}formatSeries(){const t=this.Style.value;return this.props.conf.data.map((o,s)=>{const e=o.color||y.COLORS[s];return{type:"line",data:y.getRandomArr({num:t.points,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()}),smooth:t.isSmooth,name:o.name,yAxisIndex:t.hideYaxis?s:0,itemStyle:{color:e},areaStyle:this.setAreaStyle(e),markLine:this.setMarkLine(o),label:{show:t.showLabel,position:"top",color:e}}})}setAreaStyle(t){return this.Style.value.showArea?{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t},{offset:1,color:t+"00"}]}}:null}setMarkLine(t){const{markline:r,markData:o}=t;if(!r||r==="null")return null;const s=this.Style.value;return r==="average"?{data:[{type:"average",name:"平均值"}],label:{color:s.textColor,fontSize:s.textSize}}:r==="customize"?{data:o||[],label:{color:s.textColor,fontSize:s.textSize}}:null}setSocketData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:r,common:o}=this.props.conf,s=o.source||"mosaic",e=this.chartObj.getOption();r.forEach((i,c)=>{let a,n;if(["statistics","calculate"].includes(s)&&i.periodUnit&&!i.periodUnit.includes("near")){a=this.extractDataValue(t,i.fv);const p=i.periodUnit.split("-");n=y.getXAxisNearTime(t.start_time,p[p.length-1]);const x=e.xAxis[0].data.indexOf(n);x>=0&&(e.series[c].data[x]=a)}else["statistics","calculate"].includes(s)&&i.periodUnit&&i.periodUnit.includes("near")?(a=this.extractDataValue(t,i.fv),n=t.start_time,n!=null&&(c===0&&e.xAxis[0].data.push(n),e.series[c].data.push(a))):(a=this.extractDataValue(t,i.fv),n=["statistics","calculate"].includes(s)?t.start_time:t.datetime,n!=null&&(c===0&&e.xAxis[0].data.push(n),e.series[c].data.push(a)))});const m=y.addRealtimeData(e.xAxis[0].data,e.series.map(i=>i.data)),h=Number(this.Style.value.points)||10;e.xAxis[0].data=m.times.slice(-h),e.series.forEach((i,c)=>{var a;i.data=((a=m.data[c])==null?void 0:a.slice(-h))||[]}),this.updateChart(e)}setHistoryData(t){if(!this.hasData()||!this.chartObj||!t)return;const{data:r,common:o}=this.props.conf,s=o.source||"mosaic",e=this.handleNull(t,"history");if(!e||!e.history||!e.history.length)return;const m=this.chartObj.getOption(),h=[],i=[];s==="mosaic"?e.history.forEach((c,a)=>{i[a]=[],Array.isArray(c)&&c.forEach(n=>{var x,v;a===0&&h.push(n.time||n.datetime||"");const p=(x=r[a])==null?void 0:x.fv;i[a].push((v=n[p])!=null?v:null)})}):["statistics","calculate"].includes(s)&&e.history.forEach((c,a)=>{i[a]=[],Array.isArray(c)&&c.forEach(n=>{var p;a===0&&h.push(n.start_time||n.time||""),i[a].push((p=n.data)!=null?p:null)})}),h.length>0&&(m.xAxis[0].data=h,m.series.forEach((c,a)=>{c.data=i[a]||[]}),this.updateChart(m))}}const S=new f(l,"lin");S.setupLifecycle();const C=S.getStyle(),L=S.getEchartId(),z=u.computed(()=>R.generateTitleStyle(l.conf.options));return(O,t)=>(u.openBlock(),u.createElementBlock("div",{class:"mix-component",style:u.normalizeStyle({background:u.unref(C).bgColor,borderRadius:`${u.unref(C).radiusSize}px`})},[u.createElementVNode("div",{class:"mix-title",style:u.normalizeStyle(z.value)},u.toDisplayString(d.conf.caption||d.conf.name),5),u.createElementVNode("div",j,[u.createElementVNode("div",{class:"w-full h-full",id:u.unref(L)},null,8,B)]),u.renderSlot(O.$slots,"default",{},void 0,!0)],4))}})),Z=w._export_sfc(W,[["__scopeId","data-v-bdfe16f1"]]);exports.default=Z;
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
var z = Object.defineProperty, M = Object.defineProperties;
|
|
2
|
+
var Y = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
|
+
var w = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var _ = (f, n, u) => n in f ? z(f, n, { enumerable: !0, configurable: !0, writable: !0, value: u }) : f[n] = u, y = (f, n) => {
|
|
6
|
+
for (var u in n || (n = {}))
|
|
7
|
+
w.call(n, u) && _(f, u, n[u]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var u of v(n))
|
|
10
|
+
N.call(n, u) && _(f, u, n[u]);
|
|
11
|
+
return f;
|
|
12
|
+
}, S = (f, n) => M(f, Y(n));
|
|
13
|
+
import { defineComponent as k, computed as U, openBlock as V, createElementBlock as R, normalizeStyle as E, unref as g, createElementVNode as b, toDisplayString as $, renderSlot as F } from "vue";
|
|
14
|
+
import { g as T, C as j, a as I, b as B, c as X } from "./element-resize-detector-DJcsrJ8s.js";
|
|
15
|
+
import { _ as H } from "./index-kShjySl9.js";
|
|
16
|
+
import { E as P } from "./EChartComponentBase-BQOhWkz2.js";
|
|
17
|
+
import { g as G } from "./titleStyle-BT5GlpAb.js";
|
|
18
|
+
import { A as q, D as J } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
19
|
+
import { i as K } from "./installMarkLine-BgE0YACE.js";
|
|
20
|
+
import { i as Q } from "./install-CBde4hAM.js";
|
|
21
|
+
import { i as W } from "./install-hfre7yvV.js";
|
|
22
|
+
import { u as Z, i as tt, a as et } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
23
|
+
import { i as at } from "./install-BBrAry2m.js";
|
|
24
|
+
import { i as st } from "./install-8XfFtnlL.js";
|
|
25
|
+
const it = { class: "mix-body" }, ot = ["id"], lt = {
|
|
26
|
+
DEFAULT_ICON: J,
|
|
27
|
+
ACTIVE_ICON: q,
|
|
28
|
+
NAME_CN: "基础曲线",
|
|
29
|
+
NAME_EN: "Line Chart",
|
|
30
|
+
ORDER: 1
|
|
31
|
+
}, nt = {
|
|
32
|
+
titleColor: "#111",
|
|
33
|
+
textColor: "#111",
|
|
34
|
+
bgColor: "#fff",
|
|
35
|
+
top: 30,
|
|
36
|
+
bottom: 40,
|
|
37
|
+
left: 40,
|
|
38
|
+
right: 20,
|
|
39
|
+
radiusSize: 8,
|
|
40
|
+
textSize: 12,
|
|
41
|
+
points: 10,
|
|
42
|
+
isHideTitle: !1,
|
|
43
|
+
isSmooth: !1,
|
|
44
|
+
showArea: !1,
|
|
45
|
+
hideYaxis: !1,
|
|
46
|
+
setFiexdYaxis: { value: !1, type: "checkbox", label: "component.line.setFiexdYaxis", repel: "hideYaxis" },
|
|
47
|
+
yMax: { value: 100, type: "number", label: "component.line.yMax", dependent: "setFiexdYaxis" },
|
|
48
|
+
yMin: { value: 0, type: "number", label: "component.line.yMin", dependent: "setFiexdYaxis" },
|
|
49
|
+
showLabel: !1
|
|
50
|
+
}, rt = [{ name: "参数一", fv: "", object_id: "", color: "#4162ff", markline: "null" }], ct = ["name", "fv", "object_id", "color", "markline"], ft = ["mosaic", "statistics", "calculate"], ut = {
|
|
51
|
+
useAlias: !1,
|
|
52
|
+
null: {
|
|
53
|
+
type: "0",
|
|
54
|
+
value: ""
|
|
55
|
+
},
|
|
56
|
+
multiObject: !1,
|
|
57
|
+
source: "mosaic",
|
|
58
|
+
rate: { checked: !1, value: 1 }
|
|
59
|
+
}, ht = {
|
|
60
|
+
DEFAULT: lt,
|
|
61
|
+
OPTIONS: nt,
|
|
62
|
+
DATA: rt,
|
|
63
|
+
PARAMS: ct,
|
|
64
|
+
SOURCE: ft,
|
|
65
|
+
COMMON: ut
|
|
66
|
+
}, pt = /* @__PURE__ */ k(S(y({}, ht), {
|
|
67
|
+
__name: "lin",
|
|
68
|
+
props: {
|
|
69
|
+
conf: { type: Object, default: () => ({ data: [] }) },
|
|
70
|
+
uid: { type: String, default: "" },
|
|
71
|
+
mode: { type: String, default: "edit" },
|
|
72
|
+
theme: { type: String, default: "light" }
|
|
73
|
+
},
|
|
74
|
+
setup(f) {
|
|
75
|
+
Z([K, Q, W, tt, at, et, st]);
|
|
76
|
+
const n = f;
|
|
77
|
+
class u extends P {
|
|
78
|
+
extractStyles() {
|
|
79
|
+
return S(y({}, super.extractStyles()), {
|
|
80
|
+
isSmooth: this.getOptionValue("isSmooth", !1),
|
|
81
|
+
showArea: this.getOptionValue("showArea", !1),
|
|
82
|
+
hideYaxis: this.getOptionValue("hideYaxis", !1),
|
|
83
|
+
setFiexdYaxis: this.getOptionValue("setFiexdYaxis", !1),
|
|
84
|
+
yMax: this.getOptionValue("yMax", 100),
|
|
85
|
+
yMin: this.getOptionValue("yMin", 0),
|
|
86
|
+
showLabel: this.getOptionValue("showLabel", !1)
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
getChartOption() {
|
|
90
|
+
const t = this.Style.value, r = this.props.conf;
|
|
91
|
+
return {
|
|
92
|
+
tooltip: { trigger: "axis", textStyle: { align: "left", fontSize: t.textSize } },
|
|
93
|
+
grid: { top: t.top, bottom: t.bottom, left: t.left, right: t.right, containLabel: !1 },
|
|
94
|
+
legend: {
|
|
95
|
+
show: !0,
|
|
96
|
+
data: r.data.map((o) => o.name),
|
|
97
|
+
right: 20,
|
|
98
|
+
top: 0,
|
|
99
|
+
textStyle: { color: t.textColor, fontSize: t.textSize }
|
|
100
|
+
},
|
|
101
|
+
xAxis: [{
|
|
102
|
+
type: "category",
|
|
103
|
+
boundaryGap: !1,
|
|
104
|
+
data: this.getXAxisData(),
|
|
105
|
+
axisLabel: {
|
|
106
|
+
formatter: (o) => {
|
|
107
|
+
if (!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(o)) return o;
|
|
108
|
+
const [s, e] = o.split(" ");
|
|
109
|
+
return `${s}
|
|
110
|
+
${e}`;
|
|
111
|
+
},
|
|
112
|
+
color: t.textColor,
|
|
113
|
+
fontSize: t.textSize
|
|
114
|
+
},
|
|
115
|
+
axisLine: { lineStyle: { color: t.textColor } }
|
|
116
|
+
}],
|
|
117
|
+
yAxis: this.formatYaxis(),
|
|
118
|
+
series: this.formatSeries()
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
getXAxisData() {
|
|
122
|
+
var s, e;
|
|
123
|
+
const { data: t, common: r } = this.props.conf, o = r.source || "mosaic";
|
|
124
|
+
return ["statistics", "calculate"].includes(o) && !((e = (s = t[0]) == null ? void 0 : s.periodUnit) != null && e.includes("near")) ? T(t[0].periodUnit) : this.getTimeAxis();
|
|
125
|
+
}
|
|
126
|
+
formatYaxis() {
|
|
127
|
+
const t = this.Style.value, r = this.props.conf;
|
|
128
|
+
return t.hideYaxis ? r.data.map(() => ({ type: "value", show: !1 })) : {
|
|
129
|
+
type: "value",
|
|
130
|
+
show: !0,
|
|
131
|
+
splitNumber: 4,
|
|
132
|
+
axisLabel: { color: t.textColor, fontSize: t.textSize },
|
|
133
|
+
axisLine: { lineStyle: { color: t.textColor } },
|
|
134
|
+
splitLine: { lineStyle: { type: "dashed", color: "#e5e5e5" } },
|
|
135
|
+
max: t.setFiexdYaxis ? t.yMax : null,
|
|
136
|
+
min: t.setFiexdYaxis ? t.yMin : null
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
formatSeries() {
|
|
140
|
+
const t = this.Style.value;
|
|
141
|
+
return this.props.conf.data.map((o, s) => {
|
|
142
|
+
const e = o.color || j[s];
|
|
143
|
+
return {
|
|
144
|
+
type: "line",
|
|
145
|
+
data: I({ num: t.points, max: 200, min: 0, mode: this.props.mode, hasDataSource: this.hasData() }),
|
|
146
|
+
smooth: t.isSmooth,
|
|
147
|
+
name: o.name,
|
|
148
|
+
yAxisIndex: t.hideYaxis ? s : 0,
|
|
149
|
+
itemStyle: { color: e },
|
|
150
|
+
areaStyle: this.setAreaStyle(e),
|
|
151
|
+
markLine: this.setMarkLine(o),
|
|
152
|
+
label: { show: t.showLabel, position: "top", color: e }
|
|
153
|
+
};
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
setAreaStyle(t) {
|
|
157
|
+
return this.Style.value.showArea ? {
|
|
158
|
+
color: {
|
|
159
|
+
type: "linear",
|
|
160
|
+
x: 0,
|
|
161
|
+
y: 0,
|
|
162
|
+
x2: 0,
|
|
163
|
+
y2: 1,
|
|
164
|
+
colorStops: [{ offset: 0, color: t }, { offset: 1, color: t + "00" }]
|
|
165
|
+
}
|
|
166
|
+
} : null;
|
|
167
|
+
}
|
|
168
|
+
setMarkLine(t) {
|
|
169
|
+
const { markline: r, markData: o } = t;
|
|
170
|
+
if (!r || r === "null") return null;
|
|
171
|
+
const s = this.Style.value;
|
|
172
|
+
return r === "average" ? { data: [{ type: "average", name: "平均值" }], label: { color: s.textColor, fontSize: s.textSize } } : r === "customize" ? { data: o || [], label: { color: s.textColor, fontSize: s.textSize } } : null;
|
|
173
|
+
}
|
|
174
|
+
setSocketData(t) {
|
|
175
|
+
if (!this.hasData() || !this.chartObj || !t) return;
|
|
176
|
+
const { data: r, common: o } = this.props.conf, s = o.source || "mosaic", e = this.chartObj.getOption();
|
|
177
|
+
r.forEach((i, c) => {
|
|
178
|
+
let a, l;
|
|
179
|
+
if (["statistics", "calculate"].includes(s) && i.periodUnit && !i.periodUnit.includes("near")) {
|
|
180
|
+
a = this.extractDataValue(t, i.fv);
|
|
181
|
+
const p = i.periodUnit.split("-");
|
|
182
|
+
l = B(t.start_time, p[p.length - 1]);
|
|
183
|
+
const m = e.xAxis[0].data.indexOf(l);
|
|
184
|
+
m >= 0 && (e.series[c].data[m] = a);
|
|
185
|
+
} else ["statistics", "calculate"].includes(s) && i.periodUnit && i.periodUnit.includes("near") ? (a = this.extractDataValue(t, i.fv), l = t.start_time, l != null && (c === 0 && e.xAxis[0].data.push(l), e.series[c].data.push(a))) : (a = this.extractDataValue(t, i.fv), l = ["statistics", "calculate"].includes(s) ? t.start_time : t.datetime, l != null && (c === 0 && e.xAxis[0].data.push(l), e.series[c].data.push(a)));
|
|
186
|
+
});
|
|
187
|
+
const d = X(e.xAxis[0].data, e.series.map((i) => i.data)), h = Number(this.Style.value.points) || 10;
|
|
188
|
+
e.xAxis[0].data = d.times.slice(-h), e.series.forEach((i, c) => {
|
|
189
|
+
var a;
|
|
190
|
+
i.data = ((a = d.data[c]) == null ? void 0 : a.slice(-h)) || [];
|
|
191
|
+
}), this.updateChart(e);
|
|
192
|
+
}
|
|
193
|
+
// ✅ 处理历史数据
|
|
194
|
+
setHistoryData(t) {
|
|
195
|
+
if (!this.hasData() || !this.chartObj || !t) return;
|
|
196
|
+
const { data: r, common: o } = this.props.conf, s = o.source || "mosaic", e = this.handleNull(t, "history");
|
|
197
|
+
if (!e || !e.history || !e.history.length) return;
|
|
198
|
+
const d = this.chartObj.getOption(), h = [], i = [];
|
|
199
|
+
s === "mosaic" ? e.history.forEach((c, a) => {
|
|
200
|
+
i[a] = [], Array.isArray(c) && c.forEach((l) => {
|
|
201
|
+
var m, O;
|
|
202
|
+
a === 0 && h.push(l.time || l.datetime || "");
|
|
203
|
+
const p = (m = r[a]) == null ? void 0 : m.fv;
|
|
204
|
+
i[a].push((O = l[p]) != null ? O : null);
|
|
205
|
+
});
|
|
206
|
+
}) : ["statistics", "calculate"].includes(s) && e.history.forEach((c, a) => {
|
|
207
|
+
i[a] = [], Array.isArray(c) && c.forEach((l) => {
|
|
208
|
+
var p;
|
|
209
|
+
a === 0 && h.push(l.start_time || l.time || ""), i[a].push((p = l.data) != null ? p : null);
|
|
210
|
+
});
|
|
211
|
+
}), h.length > 0 && (d.xAxis[0].data = h, d.series.forEach((c, a) => {
|
|
212
|
+
c.data = i[a] || [];
|
|
213
|
+
}), this.updateChart(d));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
const x = new u(n, "lin");
|
|
217
|
+
x.setupLifecycle();
|
|
218
|
+
const A = x.getStyle(), D = x.getEchartId(), L = U(() => G(n.conf.options));
|
|
219
|
+
return (C, t) => (V(), R("div", {
|
|
220
|
+
class: "mix-component",
|
|
221
|
+
style: E({ background: g(A).bgColor, borderRadius: `${g(A).radiusSize}px` })
|
|
222
|
+
}, [
|
|
223
|
+
b("div", {
|
|
224
|
+
class: "mix-title",
|
|
225
|
+
style: E(L.value)
|
|
226
|
+
}, $(f.conf.caption || f.conf.name), 5),
|
|
227
|
+
b("div", it, [
|
|
228
|
+
b("div", {
|
|
229
|
+
class: "w-full h-full",
|
|
230
|
+
id: g(D)
|
|
231
|
+
}, null, 8, ot)
|
|
232
|
+
]),
|
|
233
|
+
F(C.$slots, "default", {}, void 0, !0)
|
|
234
|
+
], 4));
|
|
235
|
+
}
|
|
236
|
+
})), Dt = /* @__PURE__ */ H(pt, [["__scopeId", "data-v-bdfe16f1"]]);
|
|
237
|
+
export {
|
|
238
|
+
Dt as default
|
|
239
|
+
};
|