mixdashboards 1.0.40 → 1.0.44
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/{EChartComponentBase-GBbKjtlb.js → EChartComponentBase-BS3bnTQC.js} +1 -1
- package/dist/{EChartComponentBase-BTqBoBn8.cjs → EChartComponentBase-CleoClHm.cjs} +1 -1
- package/dist/{UniverSheet-B9dCqA-W.cjs → UniverSheet-CF1v7TYZ.cjs} +1 -1
- package/dist/{UniverSheet-DIkltx8i.js → UniverSheet-COMkODpK.js} +2 -2
- package/dist/{accelerationChart-B7grHeml.js → accelerationChart-DmWIcs4K.js} +3 -3
- package/dist/{accelerationChart-CvNoIyue.cjs → accelerationChart-cRoqP2gy.cjs} +1 -1
- package/dist/{actionItem-BKNfuprM.cjs → actionItem-BeTiYe45.cjs} +1 -1
- package/dist/{actionItem-BrTSUE0J.js → actionItem-Cyk7BOT6.js} +3 -3
- package/dist/{alarmLevelChart-CmjyIsWH.js → alarmLevelChart-DAXsyR0I.js} +2 -2
- package/dist/{alarmLevelChart-DBqGvaXQ.cjs → alarmLevelChart-sxtgVWnX.cjs} +1 -1
- package/dist/{alertTable-CZ2ufzg9.cjs → alertTable--x9DJvUP.cjs} +1 -1
- package/dist/{alertTable-C8beWyfK.js → alertTable-CuP5VxyK.js} +2 -2
- package/dist/{annualRainfallChart-D3YQwScd.cjs → annualRainfallChart-CbskRIIL.cjs} +1 -1
- package/dist/{annualRainfallChart-D3Pck4he.js → annualRainfallChart-D5pPXsFE.js} +2 -2
- package/dist/{api-C0okiLNC.cjs → api-DSuTQgb1.cjs} +1 -1
- package/dist/{api-DhQsrEGY.js → api-DpW5KYPS.js} +4 -4
- package/dist/{aqi-DnrkU6z-.js → aqi-CCdxrgkH.js} +3 -3
- package/dist/{aqi-91QfhWTq.cjs → aqi-U6Nf8ZZh.cjs} +1 -1
- package/dist/{aqiIndass-CzA5PVzc.js → aqiIndass-B4zzPOx5.js} +2 -2
- package/dist/{aqiIndass-D2h-731s.cjs → aqiIndass-Du6ul1sn.cjs} +1 -1
- package/dist/{arrayCard-C-V_01r7.cjs → arrayCard-B3YtVRwz.cjs} +1 -1
- package/dist/{arrayCard-mprI5bQN.js → arrayCard-Cy74MxNd.js} +2 -2
- package/dist/{audio-CdVI14ea.cjs → audio-BtvIDtUd.cjs} +1 -1
- package/dist/{audio-Xj66qRvv.js → audio-xxwBO_rY.js} +5 -5
- package/dist/{bar-ub8ERs66.js → bar-DO_1uGwc.js} +4 -4
- package/dist/{bar-DQ6kQXTC.cjs → bar-VfYGfeKN.cjs} +1 -1
- package/dist/{bmp-bXQBGW16.js → bmp-C-Gx1GvP.js} +3 -3
- package/dist/{bmp-xuWyQ9_n.cjs → bmp-CsK85ASl.cjs} +1 -1
- package/dist/{box-Dx6V-j_J.js → box-Bt9Q17mN.js} +2 -2
- package/dist/{box-C9s5aZjl.cjs → box-k9kt6rDN.cjs} +1 -1
- package/dist/{chartConfigPanel-CLbbeZzN.cjs → chartConfigPanel-69LZ5kPt.cjs} +1 -1
- package/dist/{chartConfigPanel-Bd47rczI.js → chartConfigPanel-BduE1xjC.js} +1 -1
- package/dist/{circleBar-D8I2e0Ov.js → circleBar-CH0tnaPc.js} +3 -3
- package/dist/{circleBar-BsmKIein.cjs → circleBar-Cgeu--Y3.cjs} +1 -1
- package/dist/{clock-7kw9zMJ0.js → clock-B9O7KUjw.js} +2 -2
- package/dist/{clock-bnKjuzzp.cjs → clock-xVJE721F.cjs} +1 -1
- package/dist/{clt-BGGFfbQ5.js → clt-CuVs6xNO.js} +3 -3
- package/dist/{clt-7F8jS0WQ.cjs → clt-DtYhHfRW.cjs} +1 -1
- package/dist/{cmc-B2ja2VKe.cjs → cmc-9wuvGy4o.cjs} +1 -1
- package/dist/{cmc-DTiGNWEl.js → cmc-B4w2cPtw.js} +3 -3
- package/dist/{cmp-BXx9BxO1.js → cmp-Bv11hWDG.js} +3 -3
- package/dist/{cmp-D9MzneF0.cjs → cmp-CqBtUvY9.cjs} +1 -1
- package/dist/{composite-C6PQB2RS.js → composite-D_-iOTxQ.js} +3 -3
- package/dist/{composite-Dh9pPcWq.cjs → composite-pP7alC6K.cjs} +1 -1
- package/dist/config-BrMFHyZe.js +9 -0
- package/dist/config-DbZfhrwE.cjs +1 -0
- package/dist/{controlList-VioXoP_4.js → controlList-BMsXGA7L.js} +3 -3
- package/dist/{controlList-uLJtFu1P.cjs → controlList-C75BcGNs.cjs} +1 -1
- package/dist/{controlRecordList-DY7qKQp1.js → controlRecordList-CJ934Pie.js} +3 -3
- package/dist/{controlRecordList-GtFLhcc9.cjs → controlRecordList-z2x8XWPp.cjs} +1 -1
- package/dist/{crd-Bf8Rmcf5.js → crd-CoenHDTI.js} +2 -2
- package/dist/{crd-DdsOuCBh.cjs → crd-DB6Fn6ud.cjs} +1 -1
- package/dist/{ctrBtn-GKFfJlE2.cjs → ctrBtn-Cok9efhd.cjs} +1 -1
- package/dist/{ctrBtn-BSzyUEkN.js → ctrBtn-DAta3TgZ.js} +4 -4
- package/dist/{ctrSet-CDr5scQE.cjs → ctrSet-BpYJQF8y.cjs} +1 -1
- package/dist/{ctrSet--1TrVZDc.js → ctrSet-Db7Lpzwx.js} +4 -4
- package/dist/{ctrSwitch-kHoyJDax.cjs → ctrSwitch-C7hsC01-.cjs} +1 -1
- package/dist/{ctrSwitch-ezGEAkLG.js → ctrSwitch-CcIeXrmG.js} +4 -4
- package/dist/{dataManagement-DxTZAlJy.cjs → dataManagement-CbRcfb5G.cjs} +1 -1
- package/dist/{dataManagement-oWoI1QPO.js → dataManagement-Dy3n0x4g.js} +2 -2
- package/dist/{dataReport-Dygq1jQV.cjs → dataReport-DSsw8Q6Y.cjs} +1 -1
- package/dist/{dataReport-BATqcXj4.js → dataReport-RYp5R7d0.js} +2 -2
- package/dist/{dataTable-CotUzlhz.cjs → dataTable-BHF65HZn.cjs} +1 -1
- package/dist/{dataTable-DIKwnInT.js → dataTable-C6YN6hSR.js} +1 -1
- package/dist/{datetime-DLASaAKw.cjs → datetime-C7pOOVtq.cjs} +1 -1
- package/dist/{datetime-CK042aN0.js → datetime-DQ3jiYZW.js} +2 -2
- package/dist/{deepClusterSlipSurface-D8v4xJGF.cjs → deepClusterSlipSurface-Bb34F5kA.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-C52_bDho.js → deepClusterSlipSurface-nbsn0oBQ.js} +3 -3
- package/dist/{deepDataMatrix-CdB1ZO5Q.js → deepDataMatrix-BM-rwarj.js} +2 -2
- package/dist/{deepDataMatrix-C-NrtGtk.cjs → deepDataMatrix-DhdpktL_.cjs} +1 -1
- package/dist/{deepDisplacement3D-C3Salw1w.js → deepDisplacement3D-CnHFeSRB.js} +3 -3
- package/dist/{deepDisplacement3D-CzM-wm4q.cjs → deepDisplacement3D-Cul-utay.cjs} +1 -1
- package/dist/{deepDisplacementChart-ndHgH60B.js → deepDisplacementChart-CLOjtaLw.js} +4 -4
- package/dist/{deepDisplacementChart-ByIJTYX6.cjs → deepDisplacementChart-CWOOiU3n.cjs} +1 -1
- package/dist/{deepDisplacementChart-BqZ4nUgg.cjs → deepDisplacementChart-cKMAvQDn.cjs} +1 -1
- package/dist/{deepDisplacementChart-GcH8IGA4.js → deepDisplacementChart-ffsvnTyM.js} +2 -2
- package/dist/{deepDisplacementView-Bo_pmf0R.js → deepDisplacementView-CmH38Qg4.js} +1 -1
- package/dist/{deepDisplacementView-Bq_G0GlS.cjs → deepDisplacementView-DrIDesTs.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CXgft_WM.js → deepNodeTemperatureChart-BV8NtGCe.js} +3 -3
- package/dist/{deepNodeTemperatureChart-Dsl1Zm8T.cjs → deepNodeTemperatureChart-Bs6-JuAH.cjs} +1 -1
- package/dist/{deepTangentAngleChart-iLt3bK8f.cjs → deepTangentAngleChart-DITiSIWH.cjs} +1 -1
- package/dist/{deepTangentAngleChart-D-WoGKz7.js → deepTangentAngleChart-eeikFBTp.js} +3 -3
- package/dist/{deepTemperatureField-BFB8bQde.js → deepTemperatureField-CfE1Tojo.js} +3 -3
- package/dist/{deepTemperatureField-DnpuZuD8.cjs → deepTemperatureField-DSfrt6dh.cjs} +1 -1
- package/dist/{deepTrendChart-BghE13XG.cjs → deepTrendChart-BmMiiBP8.cjs} +1 -1
- package/dist/{deepTrendChart-E-mAzsST.js → deepTrendChart-CChUdSS_.js} +3 -3
- package/dist/{deviceOnlineStatus-TQ-Fv8ye.cjs → deviceOnlineStatus-40xj7826.cjs} +1 -1
- package/dist/{deviceOnlineStatus-CkZijkjC.js → deviceOnlineStatus-LTnRdd9e.js} +2 -2
- package/dist/{deviceStatus-BkKc9wqU.cjs → deviceStatus-DParU3uI.cjs} +1 -1
- package/dist/{deviceStatus-BvJr98D0.js → deviceStatus-yRBqTeb7.js} +2 -2
- package/dist/{displacementDataTable-BJ5S7te1.js → displacementDataTable-DOO6Ly8a.js} +2 -2
- package/dist/{displacementDataTable-DJUK3mBu.cjs → displacementDataTable-DgicZH8R.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-C2estBCm.cjs → displacementTrajectoryChart-CXa9QpC2.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-DGS9Mn7o.js → displacementTrajectoryChart-WMQtPw-x.js} +3 -3
- package/dist/{displacementTrendChart-Ddgpsnta.js → displacementTrendChart-CLRYlvE-.js} +2 -2
- package/dist/{displacementTrendChart-CgsIcHCK.cjs → displacementTrendChart-pzq3aFoT.cjs} +1 -1
- package/dist/{dxf-B0EL1hyB.js → dxf-Cq049-5h.js} +5 -5
- package/dist/{dxf-DbxtgQWv.cjs → dxf-E4UDXLKk.cjs} +1 -1
- package/dist/{dzc-ACr2bZGl.js → dzc-BQv2iKCs.js} +3 -3
- package/dist/{dzc-Bdm2nr1F.cjs → dzc-COQNV8Rf.cjs} +1 -1
- package/dist/element-resize-detector-BNZCpkPn.cjs +6 -0
- package/dist/{element-resize-detector-DeMhGbNi.js → element-resize-detector-BykFgbx2.js} +419 -412
- package/dist/{evn-Moewbl2h.cjs → evn-BOubkN5p.cjs} +1 -1
- package/dist/{evn-D0llPvjK.js → evn-ByU2pJ1s.js} +2 -2
- package/dist/{evolutionChart-DBwL00ZJ.cjs → evolutionChart-CAGrFJu8.cjs} +1 -1
- package/dist/{evolutionChart-Cz_GOcB8.js → evolutionChart-HAGVFTuD.js} +3 -3
- package/dist/{fileViewer-D-WNR3vF.js → fileViewer-B37h0quk.js} +5 -5
- package/dist/{fileViewer-BtjOAdM9.cjs → fileViewer-cn86T_tA.cjs} +1 -1
- package/dist/{filterBar-4Q9XSiAY.cjs → filterBar-CuZkupo8.cjs} +1 -1
- package/dist/{filterBar-DLYmU350.js → filterBar-DVusFBbF.js} +2 -2
- package/dist/{fireCombustionCurve-BU3pplHd.js → fireCombustionCurve-C7QRx1Jc.js} +2 -2
- package/dist/{fireCombustionCurve-CWggQsw1.cjs → fireCombustionCurve-CIcqbz2i.cjs} +1 -1
- package/dist/{fireFilterBar-ROtoXZex.js → fireFilterBar-B8d5AJtv.js} +2 -2
- package/dist/{fireFilterBar-EKwzMAFp.cjs → fireFilterBar-C7lXgUWd.cjs} +1 -1
- package/dist/{gag-D8mNPZnH.js → gag-BrvzDnxa.js} +2 -2
- package/dist/{gag-CvMEVCbE.cjs → gag-D11JKxVV.cjs} +1 -1
- package/dist/{gasStationList-CWg8IYCo.cjs → gasStationList-Dla5JXYa.cjs} +1 -1
- package/dist/{gasStationList-qVKS-fgC.js → gasStationList-jyF27tRA.js} +3 -3
- package/dist/{glbModel-CQBEujd2.cjs → glbModel-BAm53QuG.cjs} +1 -1
- package/dist/{glbModel-U_yKQZWm.js → glbModel-HGeNSh_s.js} +2 -2
- package/dist/{gnssFilterBar-o7zpW7jS.js → gnssFilterBar-Dcn-7j-0.js} +2 -2
- package/dist/{gnssFilterBar-pvMsIjFy.cjs → gnssFilterBar-DwlYf3AQ.cjs} +1 -1
- package/dist/{gnssHistoryTable-Ddcw3-NB.cjs → gnssHistoryTable-B9yqwweE.cjs} +1 -1
- package/dist/{gnssHistoryTable-BYg9jtl5.js → gnssHistoryTable-K2wCCxKN.js} +3 -3
- package/dist/{gnssMapView-DMcq2u2c.js → gnssMapView-BevxEn6L.js} +2 -2
- package/dist/{gnssMapView--c2UXuOb.cjs → gnssMapView-Y9aw7pyC.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-BtUSps0z.js → gnssTimeSeriesChart-Dgv7xtDE.js} +4 -4
- package/dist/{gnssTimeSeriesChart-984dcBPA.cjs → gnssTimeSeriesChart-cQAYmpky.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DvIpI-GX.js → gnssXYTrajectory-B1c2A0-Z.js} +3 -3
- package/dist/{gnssXYTrajectory-D9JmAqC0.cjs → gnssXYTrajectory-Dlt7yHHE.cjs} +1 -1
- package/dist/{grd-Cb8vd52d.cjs → grd-BGgmRzO6.cjs} +1 -1
- package/dist/{grd-DcxFaMyv.js → grd-CJlgIi8g.js} +3 -3
- package/dist/{grdIndass-BPLTUWIc.js → grdIndass-BO4B5PCB.js} +3 -3
- package/dist/{grdIndass-FkNJ9pl6.cjs → grdIndass-DyalY7Xq.cjs} +1 -1
- package/dist/{grg-CoDiLjcl.cjs → grg-CKzA41OL.cjs} +1 -1
- package/dist/{grg-Baot_Pdv.js → grg-troeHaxv.js} +2 -2
- package/dist/{gridview-BwDeg0tI.cjs → gridview-7S4komvz.cjs} +1 -1
- package/dist/{gridview-DN8V84hl.js → gridview-Obgr_vSQ.js} +2 -2
- package/dist/{groupCard-D5wLscZo.js → groupCard-DvQ0_yp8.js} +2 -2
- package/dist/{groupCard-DChtdioU.cjs → groupCard-naO-gSFU.cjs} +1 -1
- package/dist/{headerBar-DLvSZsMl.js → headerBar-BV3AwcCs.js} +3 -3
- package/dist/{headerBar-m57S9WlE.cjs → headerBar-Dt3B7o4i.cjs} +1 -1
- package/dist/{history-DN0IVkYL.js → history-CaqA0wpH.js} +60 -57
- package/dist/history-DFKjqRBY.cjs +1 -0
- package/dist/{index-zPaMBZk-.js → index-CQCqGJ5R.js} +1900 -1857
- package/dist/index-LSCs4x8x.cjs +582 -0
- package/dist/{insarDeformChart-DkiLrhem.cjs → insarDeformChart-DI5b1SoT.cjs} +1 -1
- package/dist/{insarDeformChart-DZl03mOe.js → insarDeformChart-OPC8flx2.js} +2 -2
- package/dist/{insarImageViewer-ZcqHEEZr.cjs → insarImageViewer-BBVNYKrE.cjs} +1 -1
- package/dist/{insarImageViewer-kqYV5A1S.js → insarImageViewer-DhSbNhfs.js} +2 -2
- package/dist/{kds-Ba0yzyNm.cjs → kds-DvXxGtf1.cjs} +1 -1
- package/dist/{kds-BbyaSB3L.js → kds-DyiiYpCx.js} +2 -2
- package/dist/{layerTabs-SRHmamTF.js → layerTabs-DPq4ttW1.js} +2 -2
- package/dist/{layerTabs-D2M3EVxt.cjs → layerTabs-Drr1L0gD.cjs} +1 -1
- package/dist/{lin-DxnORLL5.js → lin-BjIpTy2o.js} +3 -3
- package/dist/{lin-0U8FQZHZ.cjs → lin-CeIaVr28.cjs} +1 -1
- package/dist/{linIndass-DXtxVxcr.js → linIndass-D4FJDIeG.js} +2 -2
- package/dist/{linIndass-CX9Z02-e.cjs → linIndass-DlgJ3gDh.cjs} +1 -1
- package/dist/{lst-Bk2nvLuQ.cjs → lst-BXUZi05h.cjs} +1 -1
- package/dist/{lst-BKALUOuy.js → lst-CEyPd2Iy.js} +2 -2
- package/dist/{manualEntry-DHH0Yrr3.js → manualEntry-BhhulyiX.js} +2 -2
- package/dist/{manualEntry-DRK0QRnb.cjs → manualEntry-DTI2dyTE.cjs} +1 -1
- package/dist/{mapBackground-BXj8T-bG.js → mapBackground-D4fBccmw.js} +2 -2
- package/dist/{mapBackground-DTuXORjO.cjs → mapBackground-ypoRDxm4.cjs} +1 -1
- package/dist/{mappingList-N-lL8mnV.js → mappingList-BbAr-FN1.js} +3 -3
- package/dist/{mappingList-M9OukdCu.cjs → mappingList-Dde6DBJS.cjs} +1 -1
- package/dist/{markdownViewer-CgabPFUn.js → markdownViewer-C5qlB_cv.js} +5 -5
- package/dist/{markdownViewer-CcLL2hzV.cjs → markdownViewer-DAb1tFDK.cjs} +1 -1
- package/dist/{mix-control-modal-Lhzopftt.cjs → mix-control-modal-Ks7-P_k-.cjs} +1 -1
- package/dist/{mix-control-modal-DRL4otx8.js → mix-control-modal-y23G7DTX.js} +3 -3
- package/dist/{mixDataPermission-B5fpqFgm.js → mixDataPermission-9affepdw.js} +2 -2
- package/dist/{mixDataPermission-CWt9H_Ib.cjs → mixDataPermission-aBLHSBN0.cjs} +1 -1
- package/dist/{mixGrid-wE427LB0.js → mixGrid-CJntkaxR.js} +3 -3
- package/dist/{mixGrid-DTwH6At3.cjs → mixGrid-exdKJpll.cjs} +1 -1
- package/dist/{mixMap-Bo7_Womf.js → mixMap-CoxhnyI6.js} +3 -3
- package/dist/{mixMap-DKDtSARk.cjs → mixMap-D-H9x3o4.cjs} +1 -1
- package/dist/{mixModel-Dufgy8XG.cjs → mixModel-DR5M6c3C.cjs} +1 -1
- package/dist/{mixModel-CdMcRi5k.js → mixModel-gQirXXx9.js} +3 -3
- package/dist/{mixPie-BoUARcVT.cjs → mixPie-CXfidWye.cjs} +1 -1
- package/dist/{mixPie-Dr9Toi5T.js → mixPie-CehUNusa.js} +3 -3
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-BBqBIpmz.js → mjpegCamera-BzSG7iGB.js} +2 -2
- package/dist/{mjpegCamera-C20yRxub.cjs → mjpegCamera-D0mr-NeO.cjs} +1 -1
- package/dist/{monitorAlert-BgRCm9Vs.cjs → monitorAlert-DlGt_zMX.cjs} +1 -1
- package/dist/{monitorAlert-DVfJ6uNR.js → monitorAlert-VHA4MFKH.js} +2 -2
- package/dist/{monitorData-Dz_cHcBR.cjs → monitorData-B49WLtug.cjs} +1 -1
- package/dist/{monitorData-zfcYQmc8.js → monitorData-VDHXdIYs.js} +3 -3
- package/dist/{monitorSpeedChart-DYV_S1um.js → monitorSpeedChart-DIj0qWoP.js} +1 -1
- package/dist/{monitorSpeedChart-jAf_Agnm.cjs → monitorSpeedChart-DyuPhzss.cjs} +1 -1
- package/dist/{mxa-mziDHRQU.js → mxa-B3piUHaz.js} +3 -3
- package/dist/{mxa-DGkX2ysU.cjs → mxa-CfMqQDdg.cjs} +1 -1
- package/dist/{myValue-s0IC6eg0.js → myValue-D_GY2ok8.js} +2 -2
- package/dist/{myValue-6J41vLFg.cjs → myValue-M7g_lmjB.cjs} +1 -1
- package/dist/{myValueList-Dl-JfGq6.cjs → myValueList-4DK5QiXA.cjs} +1 -1
- package/dist/{myValueList-cOT1nYnO.js → myValueList-CoVt_6AS.js} +2 -2
- package/dist/{objectList-DGBiB_w6.js → objectList-DEiKb_Qg.js} +578 -631
- package/dist/objectList-DzGi3DXA.cjs +1 -0
- package/dist/photo-B_bGJai9.cjs +1 -0
- package/dist/{photo-C_1tDAZa.js → photo-Br-MkUO8.js} +155 -144
- package/dist/{pie-p9CvjJ_m.js → pie-Bn0wKGe5.js} +3 -3
- package/dist/{pie-DAEzlPEp.cjs → pie-DNOfJ75A.cjs} +1 -1
- package/dist/{pressBtn-DlhDUUdy.js → pressBtn-5YFttcTS.js} +4 -4
- package/dist/{pressBtn-DMMLEAFZ.cjs → pressBtn-f5yJnrvV.cjs} +1 -1
- package/dist/{progressBar-ZksfXpzu.cjs → progressBar-CKNFPnHE.cjs} +1 -1
- package/dist/{progressBar-C3K0DYlI.js → progressBar-owNCCNcz.js} +2 -2
- package/dist/{progressCircle-BBLr8loP.js → progressCircle-BGwd3rR2.js} +2 -2
- package/dist/{progressCircle-eFwDltuC.cjs → progressCircle-s2ejZsRm.cjs} +1 -1
- package/dist/{qrcode-F7MtRi3K.cjs → qrcode-B5cFR1bH.cjs} +1 -1
- package/dist/{qrcode-DgwPQO8V.js → qrcode-BoZ2Mjan.js} +2 -2
- package/dist/{raceBar-Cp-9uqpX.cjs → raceBar-9pKjUPB3.cjs} +1 -1
- package/dist/{raceBar-CyW79eH-.js → raceBar-DU9Bd7dr.js} +3 -3
- package/dist/{rad-CLvi3eWj.cjs → rad-Ch8taBlQ.cjs} +1 -1
- package/dist/{rad-CbFS-xjy.js → rad-DnWPGOUU.js} +2 -2
- package/dist/{rainfallFilterBar-DldKT-I5.cjs → rainfallFilterBar-Ch-B2_tB.cjs} +1 -1
- package/dist/{rainfallFilterBar-B0G4jUib.js → rainfallFilterBar-Dgkpvddj.js} +2 -2
- package/dist/{rainfallTimeCurve-C5r3fOW8.cjs → rainfallTimeCurve-BSU-_bQV.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BlyxLbcV.js → rainfallTimeCurve-Cs5BHiE3.js} +3 -3
- package/dist/{rangeLin-B2vKFJHK.cjs → rangeLin-BB9iEY1l.cjs} +1 -1
- package/dist/{rangeLin-CLAcLUai.js → rangeLin-LI9h8NHk.js} +2 -2
- package/dist/{request-4n94CBXg.cjs → request-CvNMi086.cjs} +1 -1
- package/dist/{request-DT13bnc0.js → request-bXTintEv.js} +1 -1
- package/dist/{retainer1-Dy2VHVgc.js → retainer1-B40pcVTJ.js} +3 -3
- package/dist/{retainer1-EFUFSxMm.cjs → retainer1-iCmD4B9K.cjs} +1 -1
- package/dist/{retainer2-BKVJLvBo.cjs → retainer2-B3WxiPHq.cjs} +1 -1
- package/dist/{retainer2-3ITxlgwH.js → retainer2-biSotg_6.js} +3 -3
- package/dist/{riskRegionTable-C2GOEi0n.cjs → riskRegionTable-Bp5Zs_Qi.cjs} +1 -1
- package/dist/{riskRegionTable-BQ88G7F7.js → riskRegionTable-DWel5koY.js} +2 -2
- package/dist/{sankey-utV5RADH.cjs → sankey-BIisfhDr.cjs} +1 -1
- package/dist/{sankey-ehJmtfKp.js → sankey-DusWvLI1.js} +3 -3
- package/dist/{scd-D-Y1EEoF.js → scd-CpcQhYT9.js} +2 -2
- package/dist/{scd-Nx15OHeb.cjs → scd-DJ5kRYDc.cjs} +1 -1
- package/dist/{sideMenu-D6MgOAkf.js → sideMenu-Ct_iqDl4.js} +2 -2
- package/dist/{sideMenu-Ci3pDMFm.cjs → sideMenu-ORRUBDFb.cjs} +1 -1
- package/dist/{slopeStability-B9WvyL3-.cjs → slopeStability-DTPTg3PG.cjs} +1 -1
- package/dist/{slopeStability-Bu2a83d7.js → slopeStability-iqVxa0bH.js} +3 -3
- package/dist/{speedCurve-DrndMOKB.cjs → speedCurve-BPQZKDIm.cjs} +1 -1
- package/dist/{speedCurve-BR_xyp4X.js → speedCurve-Cl-bJ8rb.js} +3 -3
- package/dist/{staticLine-BLUdDtae.cjs → staticLine-BTR_6AgR.cjs} +1 -1
- package/dist/{staticLine-DYQUjE_3.js → staticLine-qZApen2m.js} +3 -3
- package/dist/{store-BpVoYd93.js → store-2y119umJ.js} +2 -2
- package/dist/{store-KXsdwyLp.cjs → store-C0zj_Rf7.cjs} +1 -1
- package/dist/{swiper-53BGkj5I.cjs → swiper-BvOAbs0U.cjs} +1 -1
- package/dist/{swiper-S8NYmcYS.js → swiper-DnI3EuaB.js} +3 -3
- package/dist/{terminalConfigList-DaEpZiog.js → terminalConfigList-BpQYMjSn.js} +3 -3
- package/dist/{terminalConfigList-DFDsxg1q.cjs → terminalConfigList-CSoD6ZOp.cjs} +1 -1
- package/dist/{terminalList-BgNFp3E0.cjs → terminalList-Bq-QAX8s.cjs} +1 -1
- package/dist/{terminalList-mKVmYqJm.js → terminalList-IAQ7mei9.js} +3 -3
- package/dist/{textbox-DAyhC67s.cjs → textbox-BMmMN6nZ.cjs} +1 -1
- package/dist/{textbox-Bazh9LRC.js → textbox-DK_cOQy5.js} +4 -4
- package/dist/{timeQueryBar-2cbPr7zw.cjs → timeQueryBar-BP0gb7_g.cjs} +1 -1
- package/dist/{timeQueryBar-BnVnJk5K.js → timeQueryBar-l9HrXlOq.js} +1 -1
- package/dist/{timeSeries-DEeo2zjY.cjs → timeSeries-DisCVCpU.cjs} +1 -1
- package/dist/{timeSeries-BF-2qAA7.js → timeSeries-HSjvMFTs.js} +4 -4
- package/dist/{timeSeriesCurve-CkCeP5mK.js → timeSeriesCurve-CrLXuU99.js} +3 -3
- package/dist/{timeSeriesCurve-BMhNq3WC.cjs → timeSeriesCurve-mgQuGvjW.cjs} +1 -1
- package/dist/{toggleBtn-hg6nIH97.cjs → toggleBtn-B1XZtKuh.cjs} +1 -1
- package/dist/{toggleBtn-BnIia9MT.js → toggleBtn-BzupLW6N.js} +3 -3
- package/dist/{trajectoryConfigPanel-agVnGJJ6.cjs → trajectoryConfigPanel-B2ojTqQ3.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-CfnLHqWP.js → trajectoryConfigPanel-DSIqC0nt.js} +1 -1
- package/dist/{trajectoryScatter-BBL5uJSS.js → trajectoryScatter-C2IRYmw4.js} +3 -3
- package/dist/{trajectoryScatter-BzFxJkJn.cjs → trajectoryScatter-D7PwYfQx.cjs} +1 -1
- package/dist/{universalConfigPanel-BueS1CeL.js → universalConfigPanel-CRPDLLv6.js} +1 -1
- package/dist/{universalConfigPanel-Db87fd8H.cjs → universalConfigPanel-DlYuOHHv.cjs} +1 -1
- package/dist/{universalTable-BXfm_1je.cjs → universalTable-CBstCmhL.cjs} +1 -1
- package/dist/{universalTable-5QpYwmyj.js → universalTable-InZV2Mc_.js} +2 -2
- package/dist/{video-C75mXLnF.js → video-B7M0uDdp.js} +5 -5
- package/dist/{video-QWpkqafn.cjs → video-BVbrSdp3.cjs} +1 -1
- package/dist/{videoMonitor-DSOQbTy9.js → videoMonitor-BaPhm798.js} +2 -2
- package/dist/{videoMonitor-Dlvtlmf3.cjs → videoMonitor-CX54qdGa.cjs} +1 -1
- package/dist/{vlu-BRrxfbLm.js → vlu-BU4pUssc.js} +2 -2
- package/dist/{vlu-DqqX7UrQ.cjs → vlu-EWkYp1Uy.cjs} +1 -1
- package/dist/{weather-B4twNcEf.js → weather-CRDTMuli.js} +3 -3
- package/dist/{weather-GNGvUFJc.cjs → weather-hZh2DELI.cjs} +1 -1
- package/dist/{windLin-DPr5J4_t.cjs → windLin-Cx_-n8g3.cjs} +1 -1
- package/dist/{windLin-DSh910GU.js → windLin-DbaPTa-Q.js} +2 -2
- package/package.json +1 -1
- package/dist/config-D3MEjLGn.js +0 -9
- package/dist/config-UTUPYJ45.cjs +0 -1
- package/dist/element-resize-detector-BlMXyWIR.cjs +0 -6
- package/dist/history-C4gipwnp.cjs +0 -1
- package/dist/index-EnNA0nIi.cjs +0 -582
- package/dist/objectList-DK5_HGK_.cjs +0 -1
- package/dist/photo-CBfgcj6v.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ts=Object.defineProperty,ws=Object.defineProperties;var Ss=Object.getOwnPropertyDescriptors;var ra=Object.getOwnPropertySymbols;var bs=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable;var ia=(e,t,r)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gt=(e,t)=>{for(var r in t||(t={}))bs.call(t,r)&&ia(e,r,t[r]);if(ra)for(var r of ra(t))Es.call(t,r)&&ia(e,r,t[r]);return e},Ut=(e,t)=>ws(e,Ss(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ji=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const Y=require("vue");require("html2canvas");const Zi=require("./element-resize-detector-BlMXyWIR.cjs"),wi=require("./index-EnNA0nIi.cjs"),As=require("./EChartComponentBase-BTqBoBn8.cjs"),Ds=require("./index-mAPVa0s4.cjs"),ne=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Cs=require("./install-BamnGDPb.cjs"),D=require("./echarts-BB8O2KSA.cjs"),go=require("./installSimple-c87Ufc4_.cjs"),ti=require("./axisAlignTicks-CDNWKJRo.cjs"),Ms=require("./createSeriesData-Cz83cqoZ.cjs"),Sn=require("./install-DHY9y86B.cjs"),na=require("./install-BvOpNm0Y.cjs"),aa=require("./ele-glbModel-icon-ByACDCrv.cjs");function Ls(e){return Ms.createSeriesData(null,e)}var Fn={isDimensionStacked:ne.isDimensionStacked,enableDataStack:ne.enableDataStack,getStackedDimension:ne.getStackedDimension};function zn(e,t){var r=t;t instanceof D.Model||(r=new D.Model(t));var i=ne.createScaleByModel(r);return i.setExtent(e[0],e[1]),ne.niceScaleExtent(i,r),i}function Ps(e){D.mixin(e,ti.AxisModelCommonMixin)}ne.use([ne.install$1,Cs.install]);ne.use(Ds.installLabelLayout);function oa(e,t,r){typeof t=="object"&&(r=t,t=null);var i=this,n;if(!(e instanceof Function)){n=[];for(var a in e)e.hasOwnProperty(a)&&n.push(a)}var o=function(l){if(i.apply(this,arguments),e instanceof Function?sa(this,e.call(this,l)):Ns(this,e,n),this.constructor===o)for(var h=o.__initializers__,u=0;u<h.length;u++)h[u].apply(this,arguments)};o.__super__=i,i.__initializers__?o.__initializers__=i.__initializers__.slice():o.__initializers__=[],t&&o.__initializers__.push(t);var s=function(){};return s.prototype=i.prototype,o.prototype=new s,o.prototype.constructor=o,sa(o.prototype,r),o.extend=i.extend,o.derive=i.extend,o}function sa(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}function Ns(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}}const Rs={extend:oa,derive:oa};function Os(e,t){this.action=e,this.context=t}var Gn={trigger:function(e){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(e)){var t=this.__handlers__[e],r=t.length,i=-1,n=arguments;switch(n.length){case 1:for(;++i<r;)t[i].action.call(t[i].context);return;case 2:for(;++i<r;)t[i].action.call(t[i].context,n[1]);return;case 3:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2]);return;case 4:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3]);return;case 5:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3],n[4]);return;default:for(;++i<r;)t[i].action.apply(t[i].context,Array.prototype.slice.call(n,1));return}}},on:function(e,t,r){if(!(!e||!t)){var i=this.__handlers__||(this.__handlers__={});if(!i[e])i[e]=[];else if(this.has(e,t))return;var n=new Os(t,r||this);return i[e].push(n),this}},once:function(e,t,r){if(!e||!t)return;var i=this;function n(){i.off(e,n),t.apply(this,arguments)}return this.on(e,n,r)},before:function(e,t,r){if(!(!e||!t))return e="before"+e,this.on(e,t,r)},after:function(e,t,r){if(!(!e||!t))return e="after"+e,this.on(e,t,r)},success:function(e,t){return this.once("success",e,t)},error:function(e,t){return this.once("error",e,t)},off:function(e,t){var r=this.__handlers__||(this.__handlers__={});if(!t){r[e]=[];return}if(r[e]){for(var i=r[e],n=[],a=0;a<i.length;a++)t&&i[a].action!==t&&n.push(i[a]);r[e]=n}return this},has:function(e,t){var r=this.__handlers__;if(!r||!r[e])return!1;for(var i=r[e],n=0;n<i.length;n++)if(i[n].action===t)return!0}},Is=0,Bs=Array.prototype,Fs=Bs.forEach,Ee={genGUID:function(){return++Is},relative2absolute:function(e,t){if(!t||e.match(/^\//))return e;for(var r=e.split("/"),i=t.split("/"),n=r[0];n==="."||n==="..";)n===".."&&i.pop(),r.shift(),n=r[0];return i.join("/")+"/"+r.join("/")},extend:function(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},defaults:function(e,t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e},extendWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}return e},defaultsWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]==null&&(e[n]=t[n])}return e},each:function(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Fs)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)},isObject:function(e){return e===Object(e)},isArray:function(e){return Array.isArray(e)},isArrayLike:function(e){return e?e.length===+e.length:!1},clone:function(e){if(Ee.isObject(e)){if(Ee.isArray(e))return e.slice();if(Ee.isArrayLike(e)){for(var t=new e.constructor(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}else return Ee.extend({},e)}else return e}},ke=function(){this.__uid__=Ee.genGUID()};ke.__initializers__=[function(e){Ee.extend(this,e)}];Ee.extend(ke,Rs);Ee.extend(ke.prototype,Gn);var la=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],ha=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function zs(e){for(var t={},r={},i=0;i<la.length;i++){var n=la[i];o(n)}for(var i=0;i<ha.length;i++){var a=ha[i];r[a]=e.getParameter(e[a])}this.getExtension=function(s){return s in t||o(s),t[s]},this.getParameter=function(s){return r[s]};function o(s){if(e.getExtension){var l=e.getExtension(s);l||(l=e.getExtension("MOZ_"+s)),l||(l=e.getExtension("WEBKIT_"+s)),t[s]=l}}}const I={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CW:2304,CCW:2305,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_2D:3553,TEXTURE_CUBE_MAP:34067,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FRAMEBUFFER:36160,RENDERBUFFER:36161,DEPTH_STENCIL:34041,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306};function Gs(e){var t=new XMLHttpRequest;t.open("get",e.url),t.responseType=e.responseType||"text",e.onprogress&&(t.onprogress=function(r){if(r.lengthComputable){var i=r.loaded/r.total;e.onprogress(i,r.loaded,r.total)}else e.onprogress(null)}),t.onload=function(r){t.status>=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Us={get:Gs};var qi,he={};he.supportWebGL=function(){if(qi==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch(r){qi=!1}return qi};he.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array;he.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array;he.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array;he.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array;he.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array;he.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array;he.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array;var qt={};typeof window!="undefined"?qt=window:typeof global!="undefined"&&(qt=global);he.requestAnimationFrame=qt.requestAnimationFrame||qt.msRequestAnimationFrame||qt.mozRequestAnimationFrame||qt.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};he.createCanvas=function(){return document.createElement("canvas")};he.createImage=function(){return new qt.Image};he.request={get:Us.get};he.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};he.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};var Ge=function(){this.head=null,this.tail=null,this._length=0};Ge.prototype.insert=function(e){var t=new Ge.Entry(e);return this.insertEntry(t),t};Ge.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new Ge.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};Ge.prototype.insertBeforeEntry=function(e,t){var r=new Ge.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};Ge.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};Ge.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};Ge.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};Ge.prototype.getHead=function(){if(this.head)return this.head.value};Ge.prototype.getTail=function(){if(this.tail)return this.tail.value};Ge.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};Ge.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};Ge.prototype.length=function(){return this._length};Ge.prototype.isEmpty=function(){return this._length===0};Ge.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t!="undefined";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};Ge.prototype.clear=function(){this.tail=this.head=null,this._length=0};Ge.Entry=function(e){this.value=e,this.next=null,this.prev=null};var rr=function(e){this._list=new Ge,this._map={},this._maxSize=e||10};rr.prototype.setMaxSize=function(e){this._maxSize=e};rr.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};rr.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};rr.prototype.remove=function(e){var t=this._map[e];typeof t!="undefined"&&(delete this._map[e],this._list.remove(t))};rr.prototype.clear=function(){this._list.clear(),this._map={}};var ye={},ua={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ut(e){return e=Math.round(e),e<0?0:e>255?255:e}function Vs(e){return e=Math.round(e),e<0?0:e>360?360:e}function Xr(e){return e<0?0:e>1?1:e}function Yi(e){return e.length&&e.charAt(e.length-1)==="%"?ut(parseFloat(e)/100*255):ut(parseInt(e,10))}function pr(e){return e.length&&e.charAt(e.length-1)==="%"?Xr(parseFloat(e)/100):Xr(parseFloat(e))}function Ki(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Pt(e,t,r){return e+(t-e)*r}function ht(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function bn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var _o=new rr(20),si=null;function ir(e,t){si&&bn(si,t),si=_o.put(e,si||t.slice())}ye.parse=function(e,t){if(e){t=t||[];var r=_o.get(e);if(r)return bn(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in ua)return bn(t,ua[i]),ir(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){ht(t,0,0,0,1);return}return ht(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),ir(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){ht(t,0,0,0,1);return}return ht(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),ir(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(l.length!==4){ht(t,0,0,0,1);return}h=pr(l.pop());case"rgb":if(l.length!==3){ht(t,0,0,0,1);return}return ht(t,Yi(l[0]),Yi(l[1]),Yi(l[2]),h),ir(e,t),t;case"hsla":if(l.length!==4){ht(t,0,0,0,1);return}return l[3]=pr(l[3]),En(l,t),ir(e,t),t;case"hsl":if(l.length!==3){ht(t,0,0,0,1);return}return En(l,t),ir(e,t),t;default:return}}ht(t,0,0,0,1)}};ye.parseToFloat=function(e,t){if(t=ye.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function En(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=pr(e[1]),n=pr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ht(t,ut(Ki(o,a,r+1/3)*255),ut(Ki(o,a,r)*255),ut(Ki(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Hs(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,h;if(o===0)l=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,c=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-c:r===a?l=1/3+u-d:i===a&&(l=2/3+c-u),l<0&&(l+=1),l>1&&(l-=1)}var f=[l*360,h,s];return e[3]!=null&&f.push(e[3]),f}}ye.lift=function(e,t){var r=ye.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return ye.stringify(r,r.length===4?"rgba":"rgb")}};ye.toHex=function(e){var t=ye.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};ye.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=ut(Pt(o[0],s[0],l)),r[1]=ut(Pt(o[1],s[1],l)),r[2]=ut(Pt(o[2],s[2],l)),r[3]=Xr(Pt(o[3],s[3],l)),r}};ye.fastMapToColor=ye.fastLerp;ye.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=ye.parse(t[n]),s=ye.parse(t[a]),l=i-n,h=ye.stringify([ut(Pt(o[0],s[0],l)),ut(Pt(o[1],s[1],l)),ut(Pt(o[2],s[2],l)),Xr(Pt(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};ye.mapToColor=ye.lerp;ye.modifyHSL=function(e,t,r,i){if(e=ye.parse(e),e)return e=Hs(e),t!=null&&(e[0]=Vs(t)),r!=null&&(e[1]=pr(r)),i!=null&&(e[2]=pr(i)),ye.stringify(En(e),"rgba")};ye.modifyAlpha=function(e,t){if(e=ye.parse(e),e&&t!=null)return e[3]=Xr(t),ye.stringify(e,"rgba")};ye.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};var ks=ye.parseToFloat,$i={};function ca(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i<t.length;i++){var n=t[i],a=e[n];a===null?r.push(n):r.push(n+" "+a.toString())}return r.join(`
|
|
1
|
+
"use strict";var Ts=Object.defineProperty,ws=Object.defineProperties;var Ss=Object.getOwnPropertyDescriptors;var ra=Object.getOwnPropertySymbols;var bs=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable;var ia=(e,t,r)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gt=(e,t)=>{for(var r in t||(t={}))bs.call(t,r)&&ia(e,r,t[r]);if(ra)for(var r of ra(t))Es.call(t,r)&&ia(e,r,t[r]);return e},Ut=(e,t)=>ws(e,Ss(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ji=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const Y=require("vue");require("html2canvas");const Zi=require("./element-resize-detector-BNZCpkPn.cjs"),wi=require("./index-LSCs4x8x.cjs"),As=require("./EChartComponentBase-CleoClHm.cjs"),Ds=require("./index-mAPVa0s4.cjs"),ne=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Cs=require("./install-BamnGDPb.cjs"),D=require("./echarts-BB8O2KSA.cjs"),go=require("./installSimple-c87Ufc4_.cjs"),ti=require("./axisAlignTicks-CDNWKJRo.cjs"),Ms=require("./createSeriesData-Cz83cqoZ.cjs"),Sn=require("./install-DHY9y86B.cjs"),na=require("./install-BvOpNm0Y.cjs"),aa=require("./ele-glbModel-icon-ByACDCrv.cjs");function Ls(e){return Ms.createSeriesData(null,e)}var Fn={isDimensionStacked:ne.isDimensionStacked,enableDataStack:ne.enableDataStack,getStackedDimension:ne.getStackedDimension};function zn(e,t){var r=t;t instanceof D.Model||(r=new D.Model(t));var i=ne.createScaleByModel(r);return i.setExtent(e[0],e[1]),ne.niceScaleExtent(i,r),i}function Ps(e){D.mixin(e,ti.AxisModelCommonMixin)}ne.use([ne.install$1,Cs.install]);ne.use(Ds.installLabelLayout);function oa(e,t,r){typeof t=="object"&&(r=t,t=null);var i=this,n;if(!(e instanceof Function)){n=[];for(var a in e)e.hasOwnProperty(a)&&n.push(a)}var o=function(l){if(i.apply(this,arguments),e instanceof Function?sa(this,e.call(this,l)):Ns(this,e,n),this.constructor===o)for(var h=o.__initializers__,u=0;u<h.length;u++)h[u].apply(this,arguments)};o.__super__=i,i.__initializers__?o.__initializers__=i.__initializers__.slice():o.__initializers__=[],t&&o.__initializers__.push(t);var s=function(){};return s.prototype=i.prototype,o.prototype=new s,o.prototype.constructor=o,sa(o.prototype,r),o.extend=i.extend,o.derive=i.extend,o}function sa(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}function Ns(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}}const Rs={extend:oa,derive:oa};function Os(e,t){this.action=e,this.context=t}var Gn={trigger:function(e){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(e)){var t=this.__handlers__[e],r=t.length,i=-1,n=arguments;switch(n.length){case 1:for(;++i<r;)t[i].action.call(t[i].context);return;case 2:for(;++i<r;)t[i].action.call(t[i].context,n[1]);return;case 3:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2]);return;case 4:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3]);return;case 5:for(;++i<r;)t[i].action.call(t[i].context,n[1],n[2],n[3],n[4]);return;default:for(;++i<r;)t[i].action.apply(t[i].context,Array.prototype.slice.call(n,1));return}}},on:function(e,t,r){if(!(!e||!t)){var i=this.__handlers__||(this.__handlers__={});if(!i[e])i[e]=[];else if(this.has(e,t))return;var n=new Os(t,r||this);return i[e].push(n),this}},once:function(e,t,r){if(!e||!t)return;var i=this;function n(){i.off(e,n),t.apply(this,arguments)}return this.on(e,n,r)},before:function(e,t,r){if(!(!e||!t))return e="before"+e,this.on(e,t,r)},after:function(e,t,r){if(!(!e||!t))return e="after"+e,this.on(e,t,r)},success:function(e,t){return this.once("success",e,t)},error:function(e,t){return this.once("error",e,t)},off:function(e,t){var r=this.__handlers__||(this.__handlers__={});if(!t){r[e]=[];return}if(r[e]){for(var i=r[e],n=[],a=0;a<i.length;a++)t&&i[a].action!==t&&n.push(i[a]);r[e]=n}return this},has:function(e,t){var r=this.__handlers__;if(!r||!r[e])return!1;for(var i=r[e],n=0;n<i.length;n++)if(i[n].action===t)return!0}},Is=0,Bs=Array.prototype,Fs=Bs.forEach,Ee={genGUID:function(){return++Is},relative2absolute:function(e,t){if(!t||e.match(/^\//))return e;for(var r=e.split("/"),i=t.split("/"),n=r[0];n==="."||n==="..";)n===".."&&i.pop(),r.shift(),n=r[0];return i.join("/")+"/"+r.join("/")},extend:function(e,t){if(t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},defaults:function(e,t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e},extendWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}return e},defaultsWithPropList:function(e,t,r){if(t)for(var i=0;i<r.length;i++){var n=r[i];e[n]==null&&(e[n]=t[n])}return e},each:function(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Fs)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)},isObject:function(e){return e===Object(e)},isArray:function(e){return Array.isArray(e)},isArrayLike:function(e){return e?e.length===+e.length:!1},clone:function(e){if(Ee.isObject(e)){if(Ee.isArray(e))return e.slice();if(Ee.isArrayLike(e)){for(var t=new e.constructor(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}else return Ee.extend({},e)}else return e}},ke=function(){this.__uid__=Ee.genGUID()};ke.__initializers__=[function(e){Ee.extend(this,e)}];Ee.extend(ke,Rs);Ee.extend(ke.prototype,Gn);var la=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],ha=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];function zs(e){for(var t={},r={},i=0;i<la.length;i++){var n=la[i];o(n)}for(var i=0;i<ha.length;i++){var a=ha[i];r[a]=e.getParameter(e[a])}this.getExtension=function(s){return s in t||o(s),t[s]},this.getParameter=function(s){return r[s]};function o(s){if(e.getExtension){var l=e.getExtension(s);l||(l=e.getExtension("MOZ_"+s)),l||(l=e.getExtension("WEBKIT_"+s)),t[s]=l}}}const I={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CW:2304,CCW:2305,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_2D:3553,TEXTURE_CUBE_MAP:34067,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FRAMEBUFFER:36160,RENDERBUFFER:36161,DEPTH_STENCIL:34041,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306};function Gs(e){var t=new XMLHttpRequest;t.open("get",e.url),t.responseType=e.responseType||"text",e.onprogress&&(t.onprogress=function(r){if(r.lengthComputable){var i=r.loaded/r.total;e.onprogress(i,r.loaded,r.total)}else e.onprogress(null)}),t.onload=function(r){t.status>=400?e.onerror&&e.onerror():e.onload&&e.onload(t.response)},e.onerror&&(t.onerror=e.onerror),t.send(null)}const Us={get:Gs};var qi,he={};he.supportWebGL=function(){if(qi==null)try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)throw new Error}catch(r){qi=!1}return qi};he.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array;he.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array;he.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array;he.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array;he.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array;he.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array;he.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array;var qt={};typeof window!="undefined"?qt=window:typeof global!="undefined"&&(qt=global);he.requestAnimationFrame=qt.requestAnimationFrame||qt.msRequestAnimationFrame||qt.mozRequestAnimationFrame||qt.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};he.createCanvas=function(){return document.createElement("canvas")};he.createImage=function(){return new qt.Image};he.request={get:Us.get};he.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};he.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};var Ge=function(){this.head=null,this.tail=null,this._length=0};Ge.prototype.insert=function(e){var t=new Ge.Entry(e);return this.insertEntry(t),t};Ge.prototype.insertAt=function(e,t){if(!(e<0)){for(var r=this.head,i=0;r&&i!=e;)r=r.next,i++;if(r){var n=new Ge.Entry(t),a=r.prev;a?(a.next=n,n.prev=a):this.head=n,n.next=r,r.prev=n}else this.insert(t)}};Ge.prototype.insertBeforeEntry=function(e,t){var r=new Ge.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};Ge.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};Ge.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._length--};Ge.prototype.removeAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;if(t)return this.remove(t),t.value}};Ge.prototype.getHead=function(){if(this.head)return this.head.value};Ge.prototype.getTail=function(){if(this.tail)return this.tail.value};Ge.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};Ge.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};Ge.prototype.length=function(){return this._length};Ge.prototype.isEmpty=function(){return this._length===0};Ge.prototype.forEach=function(e,t){for(var r=this.head,i=0,n=typeof t!="undefined";r;)n?e.call(t,r.value,i):e(r.value,i),r=r.next,i++};Ge.prototype.clear=function(){this.tail=this.head=null,this._length=0};Ge.Entry=function(e){this.value=e,this.next=null,this.prev=null};var rr=function(e){this._list=new Ge,this._map={},this._maxSize=e||10};rr.prototype.setMaxSize=function(e){this._maxSize=e};rr.prototype.put=function(e,t){if(!this._map.hasOwnProperty(e)){var r=this._list.length();if(r>=this._maxSize&&r>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var n=this._list.insert(t);n.key=e,this._map[e]=n}};rr.prototype.get=function(e){var t=this._map[e];if(this._map.hasOwnProperty(e))return t!==this._list.tail&&(this._list.remove(t),this._list.insertEntry(t)),t.value};rr.prototype.remove=function(e){var t=this._map[e];typeof t!="undefined"&&(delete this._map[e],this._list.remove(t))};rr.prototype.clear=function(){this._list.clear(),this._map={}};var ye={},ua={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ut(e){return e=Math.round(e),e<0?0:e>255?255:e}function Vs(e){return e=Math.round(e),e<0?0:e>360?360:e}function Xr(e){return e<0?0:e>1?1:e}function Yi(e){return e.length&&e.charAt(e.length-1)==="%"?ut(parseFloat(e)/100*255):ut(parseInt(e,10))}function pr(e){return e.length&&e.charAt(e.length-1)==="%"?Xr(parseFloat(e)/100):Xr(parseFloat(e))}function Ki(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Pt(e,t,r){return e+(t-e)*r}function ht(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function bn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var _o=new rr(20),si=null;function ir(e,t){si&&bn(si,t),si=_o.put(e,si||t.slice())}ye.parse=function(e,t){if(e){t=t||[];var r=_o.get(e);if(r)return bn(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in ua)return bn(t,ua[i]),ir(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){ht(t,0,0,0,1);return}return ht(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),ir(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){ht(t,0,0,0,1);return}return ht(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),ir(e,t),t}return}var a=i.indexOf("("),o=i.indexOf(")");if(a!==-1&&o+1===i.length){var s=i.substr(0,a),l=i.substr(a+1,o-(a+1)).split(","),h=1;switch(s){case"rgba":if(l.length!==4){ht(t,0,0,0,1);return}h=pr(l.pop());case"rgb":if(l.length!==3){ht(t,0,0,0,1);return}return ht(t,Yi(l[0]),Yi(l[1]),Yi(l[2]),h),ir(e,t),t;case"hsla":if(l.length!==4){ht(t,0,0,0,1);return}return l[3]=pr(l[3]),En(l,t),ir(e,t),t;case"hsl":if(l.length!==3){ht(t,0,0,0,1);return}return En(l,t),ir(e,t),t;default:return}}ht(t,0,0,0,1)}};ye.parseToFloat=function(e,t){if(t=ye.parse(e,t),!!t)return t[0]/=255,t[1]/=255,t[2]/=255,t};function En(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=pr(e[1]),n=pr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ht(t,ut(Ki(o,a,r+1/3)*255),ut(Ki(o,a,r)*255),ut(Ki(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Hs(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,l,h;if(o===0)l=0,h=0;else{s<.5?h=o/(a+n):h=o/(2-a-n);var u=((a-t)/6+o/2)/o,c=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-c:r===a?l=1/3+u-d:i===a&&(l=2/3+c-u),l<0&&(l+=1),l>1&&(l-=1)}var f=[l*360,h,s];return e[3]!=null&&f.push(e[3]),f}}ye.lift=function(e,t){var r=ye.parse(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return ye.stringify(r,r.length===4?"rgba":"rgb")}};ye.toHex=function(e){var t=ye.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};ye.fastLerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return r[0]=ut(Pt(o[0],s[0],l)),r[1]=ut(Pt(o[1],s[1],l)),r[2]=ut(Pt(o[2],s[2],l)),r[3]=Xr(Pt(o[3],s[3],l)),r}};ye.fastMapToColor=ye.fastLerp;ye.lerp=function(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=ye.parse(t[n]),s=ye.parse(t[a]),l=i-n,h=ye.stringify([ut(Pt(o[0],s[0],l)),ut(Pt(o[1],s[1],l)),ut(Pt(o[2],s[2],l)),Xr(Pt(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};ye.mapToColor=ye.lerp;ye.modifyHSL=function(e,t,r,i){if(e=ye.parse(e),e)return e=Hs(e),t!=null&&(e[0]=Vs(t)),r!=null&&(e[1]=pr(r)),i!=null&&(e[2]=pr(i)),ye.stringify(En(e),"rgba")};ye.modifyAlpha=function(e,t){if(e=ye.parse(e),e&&t!=null)return e[3]=Xr(t),ye.stringify(e,"rgba")};ye.stringify=function(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}};var ks=ye.parseToFloat,$i={};function ca(e){var t=Object.keys(e);t.sort();for(var r=[],i=0;i<t.length;i++){var n=t[i],a=e[n];a===null?r.push(n):r.push(n+" "+a.toString())}return r.join(`
|
|
2
2
|
`)}function Ws(e,t,r){r.sort();for(var i=[],n=0;n<r.length;n++){var a=r[n];i.push(a)}var o=ca(e)+`
|
|
3
3
|
`+ca(t)+`
|
|
4
4
|
`+i.join(`
|
|
@@ -19,10 +19,10 @@ import "element-plus/es/components/option/style/css";
|
|
|
19
19
|
import { defineComponent as ve, inject as ge, ref as N, computed as ye, watch as U, nextTick as $, onMounted as be, onUnmounted as De, openBlock as H, createElementBlock as J, normalizeStyle as K, createElementVNode as j, toDisplayString as Ce, unref as R, createVNode as z, withCtx as G, Fragment as xe, renderList as Se, createBlock as _e, createTextVNode as Ee, renderSlot as Oe } from "vue";
|
|
20
20
|
import { Download as je } from "@element-plus/icons-vue";
|
|
21
21
|
import "html2canvas";
|
|
22
|
-
import { i as we, j as Ne, d as Ae } from "./element-resize-detector-
|
|
23
|
-
import { d as F, _ as ke } from "./index-
|
|
24
|
-
import { E as Me } from "./EChartComponentBase-
|
|
25
|
-
import { formatRequest as Ve } from "./request-
|
|
22
|
+
import { i as we, j as Ne, d as Ae } from "./element-resize-detector-BykFgbx2.js";
|
|
23
|
+
import { d as F, _ as ke } from "./index-CQCqGJ5R.js";
|
|
24
|
+
import { E as Me } from "./EChartComponentBase-BS3bnTQC.js";
|
|
25
|
+
import { formatRequest as Ve } from "./request-bXTintEv.js";
|
|
26
26
|
import { A as Le, D as Te } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
27
27
|
const Ie = { class: "panel-header" }, Re = { class: "header-left" }, ze = { class: "header-title" }, Fe = { class: "chart-area" }, Ue = { class: "toolbar" }, $e = ["id"], He = {
|
|
28
28
|
DEFAULT_ICON: Te,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Q=Object.defineProperty,Y=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols,te=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ne=Reflect.get;var q=(d,i,a)=>i in d?Q(d,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[i]=a,U=(d,i)=>{for(var a in i||(i={}))oe.call(i,a)&&q(d,a,i[a]);if(V)for(var a of V(i))ae.call(i,a)&&q(d,a,i[a]);return d},K=(d,i)=>Y(d,ee(i));var F=(d,i,a)=>ne(te(d),a,i);var G=(d,i,a)=>new Promise((N,m)=>{var j=b=>{try{_(a.next(b))}catch(A){m(A)}},p=b=>{try{_(a.throw(b))}catch(A){m(A)}},_=b=>b.done?N(b.value):Promise.resolve(b.value).then(j,p);_((a=a.apply(d,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const P=require("./element-resize-detector-
|
|
1
|
+
"use strict";var Q=Object.defineProperty,Y=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols,te=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,ne=Reflect.get;var q=(d,i,a)=>i in d?Q(d,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[i]=a,U=(d,i)=>{for(var a in i||(i={}))oe.call(i,a)&&q(d,a,i[a]);if(V)for(var a of V(i))ae.call(i,a)&&q(d,a,i[a]);return d},K=(d,i)=>Y(d,ee(i));var F=(d,i,a)=>ne(te(d),a,i);var G=(d,i,a)=>new Promise((N,m)=>{var j=b=>{try{_(a.next(b))}catch(A){m(A)}},p=b=>{try{_(a.throw(b))}catch(A){m(A)}},_=b=>b.done?N(b.value):Promise.resolve(b.value).then(j,p);_((a=a.apply(d,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const P=require("./element-resize-detector-BNZCpkPn.cjs"),H=require("./index-LSCs4x8x.cjs");require("./index-mAPVa0s4.cjs");const Z=require("./ele-mxa-icon-fgN0MLnh.cjs"),se=require("./echarts-BB8O2KSA.cjs"),le={class:"deep-displacement-chart"},ie={class:"chart-header"},ce={class:"chart-title"},re={class:"chart-subtitle"},de={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部位移曲线图",NAME_EN:"Deep Displacement Chart",ORDER:13},pe={title:{value:"ZK10-深部位移01",type:"string",label:"component.deepDisplacement.title"},depth:{value:152,type:"number",label:"component.deepDisplacement.depth",min:1,max:500},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},points:{value:30,type:"number",label:"component.options.points",min:5,max:100}},fe=[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}],he=["configPanelId","name","object_id","points_fv","fv","depth_fv","color"],ue=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!1,source:"mosaic"},ge={DEFAULT:de,OPTIONS:pe,DATA:fe,PARAMS:he,SOURCE:ue,COMMON:me},ve=o.defineComponent(K(U({},ge),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(d){o.useCssVars(t=>({v7db3a074:o.unref(O).bgColor,v764b7b0c:o.unref(O).textColor}));const i=H.useLinkStore(),a=d,N=o.ref({selectedTimes:[],startDate:"",endDate:""}),m=o.ref(new Map),j=`dispChart_${Date.now()}_${Math.random().toString(36).slice(2,8)}`;let p=null,_=null;const b=["#4a90d9","#67c23a","#e6a23c","#f56c6c","#909399","#00bcd4","#9c27b0","#ff9800","#795548","#607d8b"];class A extends P.BaseComponent{extractStyles(){var n,s,y,f,g;const{options:e}=this.props.conf;return{title:((n=e==null?void 0:e.title)==null?void 0:n.value)||"ZK10-深部位移01",depth:((s=e==null?void 0:e.depth)==null?void 0:s.value)||152,bgColor:((y=e==null?void 0:e.bgColor)==null?void 0:y.value)||"#ffffff",textColor:((f=e==null?void 0:e.textColor)==null?void 0:f.value)||"#333333",points:((g=e==null?void 0:e.points)==null?void 0:g.value)||30}}getDefaultData(){return[{configPanelId:"",name:"ZK10-X位移",object_id:"",points_fv:"points",fv:"disp_x",depth_fv:"depth",color:"#4a90d9"}]}getMockData(){var y;const e=((y=this.props.conf)==null?void 0:y.data)||this.getDefaultData(),n=["2026-01-15","2026-01-14","2026-01-13","2026-01-12","2026-01-11"],s=new Map;return e.forEach((f,g)=>{const I=new Map;n.forEach((T,h)=>{const l=[],x=(n.length-1-h)*5;for(let r=0;r<=30;r++){const S=-122-r,c=(10+x+g*3)*(1+r*.03);l.push({depth:S,value:c+Math.sin(r*.2+g)*2})}I.set(T,l)}),s.set(f.name,I)}),s}onPreview(){return G(this,null,function*(){const{data:e}=this.props.conf;e.some(s=>s.object_id&&s.fv)?(console.log("[DeepDisplacementChart] 检测到数据绑定,订阅真实数据"),yield F(A.prototype,this,"onPreview").call(this)):(console.log("[DeepDisplacementChart] 未配置数据源,使用模拟数据"),this.getMockData().forEach((y,f)=>m.value.set(f,y)),z())})}setHistoryData(e){var I,T;const{data:n,common:s}=this.props.conf;if(!n||n.length===0||!n.some(h=>h.object_id&&h.fv))return;const f=(s==null?void 0:s.source)||"mosaic";["statistics","calculate"].includes(f)&&(e=P.formatStatisticsResult(e,n));const g=P.handleNullData(e,this.props,"history");if(g){try{m.value.clear();const h=n.find(c=>c.object_id);if(!h)return;const l=n.indexOf(h),x=((I=g.history)==null?void 0:I[l])||[],r=h.points_fv||"points";x.length>0&&Array.isArray((T=x[0])==null?void 0:T[r])?n.forEach(c=>{if(!c.object_id||!c.fv)return;const k=new Map,E=new Map;x.forEach(D=>{const M=(D.time||D.datetime||"").split(" ")[0];E.has(M)||E.set(M,[]),(D[r]||[]).forEach(u=>{var C,R,$;E.get(M).push({depth:(R=(C=u[c.depth_fv])!=null?C:u.depth)!=null?R:0,value:($=u[c.fv])!=null?$:0})})}),E.forEach((D,v)=>{const M=new Map;D.forEach(u=>M.set(u.depth,u.value));const w=Array.from(M.entries()).map(([u,C])=>({depth:u,value:C})).sort((u,C)=>C.depth-u.depth);k.set(v,w)}),m.value.set(c.name,k)}):n.forEach((c,k)=>{var M;if(!c.object_id||!c.fv)return;const E=((M=g.history)==null?void 0:M[k])||[],D=new Map,v=new Map;E.forEach(w=>{var R,$;const C=(w.time||w.datetime||"").split(" ")[0];v.has(C)||v.set(C,[]),v.get(C).push({depth:(R=w[c.depth_fv])!=null?R:0,value:($=w[c.fv])!=null?$:0})}),v.forEach((w,u)=>{D.set(u,w)}),m.value.set(c.name,D)})}catch(h){console.error("[Chart] 解析历史数据失败:",h)}z()}}setSocketData(e){e&&console.log("[DeepDisplacementChart] 收到实时数据:",e)}}const L=new A(a,"deepDisplacementChart");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=L.getDefaultData()),L.setupLifecycle();const O=L.getStyle(),X=o.computed(()=>{const t=N.value.selectedTimes||[];if(t.length===0)return"";const e=[...t].sort(),n=e[0],s=e[e.length-1];return`${n} ~ ${s} [${t.length}天]`}),B=()=>{var h;const t=O.value,e=N.value,n=((h=a.conf)==null?void 0:h.data)||L.getDefaultData();let s=e.selectedTimes||[];if(m.value.size===0&&L.getMockData().forEach((x,r)=>m.value.set(r,x)),s.length===0&&m.value.size>0){const l=m.value.values().next().value;l&&(s=Array.from(l.keys()))}s=[...s].sort().reverse();const y=[];let f=[],g=0;n.forEach(l=>{const x=m.value.get(l.name);if(!x)return;const r=l.color||b[g%b.length];g++,s.forEach((S,c)=>{const k=x.get(S)||[];if(k.length===0)return;k.forEach(v=>f.push(v.depth));const E=1-c*.15,D=r;y.push({name:`${l.name} (${S})`,type:"line",data:k.map(v=>[v.value,v.depth]),smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:D,width:2,opacity:E},itemStyle:{color:D,opacity:E}})})}),f.length===0&&(f=[-122,-152]);const I=Math.min(...f),T=Math.max(...f);return{grid:{left:60,right:140,top:30,bottom:60},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:l=>{if(!l||l.length===0)return"";let r=`<div style="padding:8px;max-width:280px;">
|
|
2
2
|
<div style="font-weight:600;margin-bottom:6px;">深度: ${l[0].data[1]}m</div>`;return l.forEach(S=>{r+=`<div style="display:flex;align-items:center;margin:2px 0;">
|
|
3
3
|
<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${S.color};margin-right:6px;"></span>
|
|
4
4
|
<span style="flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">${S.seriesName}: ${S.data[0].toFixed(3)} mm</span>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var te=Object.defineProperty,ae=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var $=(N,g,S)=>g in N?te(N,g,{enumerable:!0,configurable:!0,writable:!0,value:S}):N[g]=S,L=(N,g)=>{for(var S in g||(g={}))le.call(g,S)&&$(N,S,g[S]);if(U)for(var S of U(g))se.call(g,S)&&$(N,S,g[S]);return N},I=(N,g)=>ae(N,ne(g));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const s=require("vue"),oe=require("@element-plus/icons-vue");require("html2canvas");const R=require("./element-resize-detector-BlMXyWIR.cjs"),j=require("./index-EnNA0nIi.cjs"),ie=require("./EChartComponentBase-BTqBoBn8.cjs"),re=require("./request-4n94CBXg.cjs"),B=require("./ele-lin-icon-Dke_1AmT.cjs"),ce={class:"panel-header"},ue={class:"header-left"},pe={class:"header-title"},de={class:"chart-area"},he={class:"toolbar"},me=["id"],fe={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"深部位移图表",NAME_EN:"Deep Displacement Chart",ORDER:1},ve={title:{value:"深部位移图表",type:"string",label:"component.deepDisplacementChart.title"},dispType:{value:"cumulative",type:"select",label:"component.deepDisplacementChart.dispType",options:[{label:"component.deepDisplacementChart.dispTypeOptions.cumulative",value:"cumulative"},{label:"component.deepDisplacementChart.dispTypeOptions.relative",value:"relative"}]},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},xAxisName:{value:"位移量(mm)",type:"string",label:"component.deepDisplacementChart.xAxisName"},yAxisLeftName:{value:"深度(m)",type:"string",label:"component.deepDisplacementChart.yAxisLeftName"},yAxisRightName:{value:"高程(m)",type:"string",label:"component.deepDisplacementChart.yAxisRightName"},baseElevation:{value:688,type:"number",label:"基准高程(m)"},jumpUrl:{value:"",type:"string",label:"component.deepDisplacementChart.jumpUrl"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},ge=[{name:"合位移",fv:"disp_130",depth:-130,color:"#4a90d9",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#4a90d9",object_id:""}],ye=["name","fv","depth","color","object_id"],be=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],De={useAlias:!1,multiObject:!0,source:"mosaic"},Ce={DEFAULT:fe,OPTIONS:ve,DATA:ge,PARAMS:ye,SOURCE:be,COMMON:De},xe=s.defineComponent(I(L({},Ce),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(N){const g=N;class S extends ie.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData=new Map,this.timeSeriesData=new Map,this.latestValues=new Map}getRecordValue(e,a){return e&&Object.prototype.hasOwnProperty.call(e,a)?e[a]:e!=null&&e.event?this.extractDataValue(e,a):e==null?void 0:e[a]}getDepthValue(e){const a=Number(e);return Number.isFinite(a)?a:null}extractStyles(){var t,o,u,d,h,r,n,p,f,m,v;const{options:e}=this.props.conf,a=((t=e==null?void 0:e.linkChannel)==null?void 0:t.value)||"deepDisplacement",i=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"",l=a==="custom"&&i?i:a;return{title:((u=e==null?void 0:e.title)==null?void 0:u.value)||"深部位移图表",dispType:((d=e==null?void 0:e.dispType)==null?void 0:d.value)||"cumulative",bgColor:((h=e==null?void 0:e.bgColor)==null?void 0:h.value)||"#ffffff",textColor:((r=e==null?void 0:e.textColor)==null?void 0:r.value)||"#333333",xAxisName:((n=e==null?void 0:e.xAxisName)==null?void 0:n.value)||"位移量(mm)",yAxisLeftName:((p=e==null?void 0:e.yAxisLeftName)==null?void 0:p.value)||"深度(m)",yAxisRightName:((f=e==null?void 0:e.yAxisRightName)==null?void 0:f.value)||"高程(m)",baseElevation:((m=e==null?void 0:e.baseElevation)==null?void 0:m.value)||688,jumpUrl:((v=e==null?void 0:e.jumpUrl)==null?void 0:v.value)||"",linkChannel:l}}getDefaultData(){return[{name:"合位移",fv:"disp_130",depth:-130,color:"#4a90d9",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#4a90d9",object_id:""}]}setHistoryData(e){var o,u,d;const{data:a,common:i}=this.props.conf;if(!a||a.length===0)return;const l=(i==null?void 0:i.source)||"mosaic";["statistics","calculate"].includes(l)&&(e=R.formatStatisticsResult(e,a));const t=R.handleNullData(e,this.props,"history");if(t){console.log("[DeepDisplacementChart] history raw sample:",((u=(o=t.history)==null?void 0:o[0])==null?void 0:u[0])||((d=t.history)==null?void 0:d[0])||t.history);try{if(this.chartData.clear(),this.timeSeriesData.clear(),D.value=[],O.value=[],!t.history||!Array.isArray(t.history))return;const h=t.history.length>0&&Array.isArray(t.history[0]);if(console.log("[DeepDisplacementChart] ===== 开始处理历史数据 ====="),console.log("[DeepDisplacementChart] response.history 长度:",t.history.length),console.log("[DeepDisplacementChart] 是否多对象数据:",h),console.log("[DeepDisplacementChart] 配置项数量:",a.length),console.log("[DeepDisplacementChart] 配置项:",a.map(r=>({name:r.name,fv:r.fv,object_id:r.object_id}))),!h)console.log("[DeepDisplacementChart] 单对象模式"),this.processHistoryRecords(t.history,a);else{console.log("[DeepDisplacementChart] 多对象模式,对象数量:",t.history.length);const r=[...new Set(a.map(n=>n.object_id).filter(Boolean))];if(console.log("[DeepDisplacementChart] 配置的对象ID:",r),r.length===1){const n=t.history[0]||[];this.processHistoryRecords(n,a)}else this.processMultiObjectHistory(t.history,a,r)}if(A(),!b.value&&D.value.length&&(b.value=D.value[D.value.length-1]),console.log("[DeepDisplacementChart] 选中时间:",b.value),console.log("[DeepDisplacementChart] timeSeriesData 中的时间点:",Array.from(this.timeSeriesData.keys())),b.value&&this.timeSeriesData.has(b.value)){const r=this.timeSeriesData.get(b.value);console.log("[DeepDisplacementChart] 选中时间的数据,线:",Array.from((r==null?void 0:r.keys())||[])),this.chartData=new Map(r||new Map)}console.log("[DeepDisplacementChart] 最终 chartData 中的线:",Array.from(this.chartData.keys())),M.value++}catch(h){console.error("[DeepDisplacementChart] 解析历史数据失败:",h)}}}processHistoryRecords(e,a){e.forEach(i=>{var o;const l=(o=i==null?void 0:i.time)!=null?o:i==null?void 0:i.datetime;if(!l)return;const t=new Map;if(a.forEach(u=>{const d=u.fv,h=u.depth,r=u.name||"未命名",n=this.getRecordValue(i,d),p=Number(n);if(n!=null&&Number.isFinite(h)){const m=(this.extractStyles().baseElevation||688)+h;t.has(r)||t.set(r,[]),t.get(r).push({depth:h,elevation:m,value:Number.isFinite(p)?p:0})}}),t.size>0){const u=new Map;t.forEach((d,h)=>{d.sort((r,n)=>n.depth-r.depth),u.set(h,d)}),this.timeSeriesData.set(String(l),u),V(l)}})}processMultiObjectHistory(e,a,i){const l=e[0]||[];l.length&&l.forEach((t,o)=>{var h;const u=(h=t==null?void 0:t.time)!=null?h:t==null?void 0:t.datetime;if(!u)return;const d=new Map;if(a.forEach(r=>{const n=r.fv,p=r.depth,f=r.name||"未命名",m=r.object_id,v=i.indexOf(m);if(v===-1||!e[v])return;const C=e[v];if(!C[o])return;const E=C[o],_=this.getRecordValue(E,n),x=Number(_);if(_!=null&&Number.isFinite(p)){const ee=(this.extractStyles().baseElevation||688)+p;d.has(f)||d.set(f,[]),d.get(f).push({depth:p,elevation:ee,value:x})}}),d.size>0){const r=new Map;d.forEach((n,p)=>{n.sort((f,m)=>m.depth-f.depth),r.set(p,n)}),this.timeSeriesData.set(String(u),r),V(u)}})}setSocketData(e){var i,l;if(!e)return;const{data:a}=this.props.conf;if(!(!a||a.length===0))try{const t=(l=(i=e==null?void 0:e.time)!=null?i:e==null?void 0:e.datetime)!=null?l:Date.now(),o=new Map;console.log("[DeepDisplacementChart] realtime raw:",e),a.forEach(d=>{const h=d.fv,r=this.getDepthValue(d.depth),n=d.name||"未命名",p=this.extractDataValue(e,h);console.log("[DeepDisplacementChart] realtime fv:",h,"rawValue:",p),p!=null&&Number.isFinite(Number(p))&&this.latestValues.set(h,Number(p));const f=this.latestValues.get(h);if(f!==void 0&&r!==null){const v=(this.extractStyles().baseElevation||688)+r;o.has(n)||o.set(n,[]),o.get(n).push({depth:r,elevation:v,value:f})}});const u=new Map;o.forEach((d,h)=>{d.sort((r,n)=>n.depth-r.depth),u.set(h,d)}),u.size>0&&(console.log("[DeepDisplacementChart] realtime series keys:",Array.from(u.keys())),console.log("[DeepDisplacementChart] realtime series data:",Array.from(u.entries())),this.timeSeriesData.set(String(t),u),V(t),this.chartData=u,M.value++)}catch(t){console.error("[DeepDisplacementChart] 解析实时数据失败:",t)}}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}getChartOption(){var f;const e=this.extractStyles(),a=((f=this.props.conf)==null?void 0:f.data)||[],i=b.value;i&&this.timeSeriesData.has(i)&&(this.chartData=new Map(this.timeSeriesData.get(i)||new Map));const l=[];let t=[],o=[];this.chartData.forEach((m,v)=>{if(m.length===0)return;m.forEach(x=>{x.depth!==void 0&&t.push(x.depth),x.elevation!==void 0&&o.push(x.elevation)});const C=[...m].sort((x,F)=>(F.depth||0)-(x.depth||0)),E=a.find(x=>x.name===v),_=(E==null?void 0:E.color)||"#4a90d9";l.push({name:v,type:"line",data:C.map(x=>[x.value||0,x.depth||0]),smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:_,width:2},itemStyle:{color:_,borderColor:"#fff",borderWidth:2},yAxisIndex:0})}),l.length===0&&this.getMockData().forEach(v=>{l.push({name:v.name,type:"line",data:v.data,smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:v.color,width:2},itemStyle:{color:v.color,borderColor:"#fff",borderWidth:2},yAxisIndex:0}),v.data.forEach(C=>t.push(C[1]))});const u=t.length>0?Math.min(...t):-80,d=t.length>0?Math.max(...t):0,h=o.length>0?Math.min(...o):810,r=o.length>0?Math.max(...o):890,n=r||890,p=m=>n+m;return{grid:{left:80,right:80,top:36,bottom:88},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:m=>{if(!m||m.length===0)return"";const v=m[0].data[1],C=p(v);let E=`<div style="padding:8px;max-width:300px;">
|
|
1
|
+
"use strict";var te=Object.defineProperty,ae=Object.defineProperties;var ne=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var $=(N,g,S)=>g in N?te(N,g,{enumerable:!0,configurable:!0,writable:!0,value:S}):N[g]=S,L=(N,g)=>{for(var S in g||(g={}))le.call(g,S)&&$(N,S,g[S]);if(U)for(var S of U(g))se.call(g,S)&&$(N,S,g[S]);return N},I=(N,g)=>ae(N,ne(g));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const s=require("vue"),oe=require("@element-plus/icons-vue");require("html2canvas");const R=require("./element-resize-detector-BNZCpkPn.cjs"),j=require("./index-LSCs4x8x.cjs"),ie=require("./EChartComponentBase-CleoClHm.cjs"),re=require("./request-CvNMi086.cjs"),B=require("./ele-lin-icon-Dke_1AmT.cjs"),ce={class:"panel-header"},ue={class:"header-left"},pe={class:"header-title"},de={class:"chart-area"},he={class:"toolbar"},me=["id"],fe={DEFAULT_ICON:B.DEFAULT_ICON,ACTIVE_ICON:B.ACTIVE_ICON,NAME_CN:"深部位移图表",NAME_EN:"Deep Displacement Chart",ORDER:1},ve={title:{value:"深部位移图表",type:"string",label:"component.deepDisplacementChart.title"},dispType:{value:"cumulative",type:"select",label:"component.deepDisplacementChart.dispType",options:[{label:"component.deepDisplacementChart.dispTypeOptions.cumulative",value:"cumulative"},{label:"component.deepDisplacementChart.dispTypeOptions.relative",value:"relative"}]},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},xAxisName:{value:"位移量(mm)",type:"string",label:"component.deepDisplacementChart.xAxisName"},yAxisLeftName:{value:"深度(m)",type:"string",label:"component.deepDisplacementChart.yAxisLeftName"},yAxisRightName:{value:"高程(m)",type:"string",label:"component.deepDisplacementChart.yAxisRightName"},baseElevation:{value:688,type:"number",label:"基准高程(m)"},jumpUrl:{value:"",type:"string",label:"component.deepDisplacementChart.jumpUrl"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},ge=[{name:"合位移",fv:"disp_130",depth:-130,color:"#4a90d9",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#4a90d9",object_id:""}],ye=["name","fv","depth","color","object_id"],be=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],De={useAlias:!1,multiObject:!0,source:"mosaic"},Ce={DEFAULT:fe,OPTIONS:ve,DATA:ge,PARAMS:ye,SOURCE:be,COMMON:De},xe=s.defineComponent(I(L({},Ce),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(N){const g=N;class S extends ie.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData=new Map,this.timeSeriesData=new Map,this.latestValues=new Map}getRecordValue(e,a){return e&&Object.prototype.hasOwnProperty.call(e,a)?e[a]:e!=null&&e.event?this.extractDataValue(e,a):e==null?void 0:e[a]}getDepthValue(e){const a=Number(e);return Number.isFinite(a)?a:null}extractStyles(){var t,o,u,d,h,r,n,p,f,m,v;const{options:e}=this.props.conf,a=((t=e==null?void 0:e.linkChannel)==null?void 0:t.value)||"deepDisplacement",i=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"",l=a==="custom"&&i?i:a;return{title:((u=e==null?void 0:e.title)==null?void 0:u.value)||"深部位移图表",dispType:((d=e==null?void 0:e.dispType)==null?void 0:d.value)||"cumulative",bgColor:((h=e==null?void 0:e.bgColor)==null?void 0:h.value)||"#ffffff",textColor:((r=e==null?void 0:e.textColor)==null?void 0:r.value)||"#333333",xAxisName:((n=e==null?void 0:e.xAxisName)==null?void 0:n.value)||"位移量(mm)",yAxisLeftName:((p=e==null?void 0:e.yAxisLeftName)==null?void 0:p.value)||"深度(m)",yAxisRightName:((f=e==null?void 0:e.yAxisRightName)==null?void 0:f.value)||"高程(m)",baseElevation:((m=e==null?void 0:e.baseElevation)==null?void 0:m.value)||688,jumpUrl:((v=e==null?void 0:e.jumpUrl)==null?void 0:v.value)||"",linkChannel:l}}getDefaultData(){return[{name:"合位移",fv:"disp_130",depth:-130,color:"#4a90d9",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#4a90d9",object_id:""}]}setHistoryData(e){var o,u,d;const{data:a,common:i}=this.props.conf;if(!a||a.length===0)return;const l=(i==null?void 0:i.source)||"mosaic";["statistics","calculate"].includes(l)&&(e=R.formatStatisticsResult(e,a));const t=R.handleNullData(e,this.props,"history");if(t){console.log("[DeepDisplacementChart] history raw sample:",((u=(o=t.history)==null?void 0:o[0])==null?void 0:u[0])||((d=t.history)==null?void 0:d[0])||t.history);try{if(this.chartData.clear(),this.timeSeriesData.clear(),D.value=[],O.value=[],!t.history||!Array.isArray(t.history))return;const h=t.history.length>0&&Array.isArray(t.history[0]);if(console.log("[DeepDisplacementChart] ===== 开始处理历史数据 ====="),console.log("[DeepDisplacementChart] response.history 长度:",t.history.length),console.log("[DeepDisplacementChart] 是否多对象数据:",h),console.log("[DeepDisplacementChart] 配置项数量:",a.length),console.log("[DeepDisplacementChart] 配置项:",a.map(r=>({name:r.name,fv:r.fv,object_id:r.object_id}))),!h)console.log("[DeepDisplacementChart] 单对象模式"),this.processHistoryRecords(t.history,a);else{console.log("[DeepDisplacementChart] 多对象模式,对象数量:",t.history.length);const r=[...new Set(a.map(n=>n.object_id).filter(Boolean))];if(console.log("[DeepDisplacementChart] 配置的对象ID:",r),r.length===1){const n=t.history[0]||[];this.processHistoryRecords(n,a)}else this.processMultiObjectHistory(t.history,a,r)}if(A(),!b.value&&D.value.length&&(b.value=D.value[D.value.length-1]),console.log("[DeepDisplacementChart] 选中时间:",b.value),console.log("[DeepDisplacementChart] timeSeriesData 中的时间点:",Array.from(this.timeSeriesData.keys())),b.value&&this.timeSeriesData.has(b.value)){const r=this.timeSeriesData.get(b.value);console.log("[DeepDisplacementChart] 选中时间的数据,线:",Array.from((r==null?void 0:r.keys())||[])),this.chartData=new Map(r||new Map)}console.log("[DeepDisplacementChart] 最终 chartData 中的线:",Array.from(this.chartData.keys())),M.value++}catch(h){console.error("[DeepDisplacementChart] 解析历史数据失败:",h)}}}processHistoryRecords(e,a){e.forEach(i=>{var o;const l=(o=i==null?void 0:i.time)!=null?o:i==null?void 0:i.datetime;if(!l)return;const t=new Map;if(a.forEach(u=>{const d=u.fv,h=u.depth,r=u.name||"未命名",n=this.getRecordValue(i,d),p=Number(n);if(n!=null&&Number.isFinite(h)){const m=(this.extractStyles().baseElevation||688)+h;t.has(r)||t.set(r,[]),t.get(r).push({depth:h,elevation:m,value:Number.isFinite(p)?p:0})}}),t.size>0){const u=new Map;t.forEach((d,h)=>{d.sort((r,n)=>n.depth-r.depth),u.set(h,d)}),this.timeSeriesData.set(String(l),u),V(l)}})}processMultiObjectHistory(e,a,i){const l=e[0]||[];l.length&&l.forEach((t,o)=>{var h;const u=(h=t==null?void 0:t.time)!=null?h:t==null?void 0:t.datetime;if(!u)return;const d=new Map;if(a.forEach(r=>{const n=r.fv,p=r.depth,f=r.name||"未命名",m=r.object_id,v=i.indexOf(m);if(v===-1||!e[v])return;const C=e[v];if(!C[o])return;const E=C[o],_=this.getRecordValue(E,n),x=Number(_);if(_!=null&&Number.isFinite(p)){const ee=(this.extractStyles().baseElevation||688)+p;d.has(f)||d.set(f,[]),d.get(f).push({depth:p,elevation:ee,value:x})}}),d.size>0){const r=new Map;d.forEach((n,p)=>{n.sort((f,m)=>m.depth-f.depth),r.set(p,n)}),this.timeSeriesData.set(String(u),r),V(u)}})}setSocketData(e){var i,l;if(!e)return;const{data:a}=this.props.conf;if(!(!a||a.length===0))try{const t=(l=(i=e==null?void 0:e.time)!=null?i:e==null?void 0:e.datetime)!=null?l:Date.now(),o=new Map;console.log("[DeepDisplacementChart] realtime raw:",e),a.forEach(d=>{const h=d.fv,r=this.getDepthValue(d.depth),n=d.name||"未命名",p=this.extractDataValue(e,h);console.log("[DeepDisplacementChart] realtime fv:",h,"rawValue:",p),p!=null&&Number.isFinite(Number(p))&&this.latestValues.set(h,Number(p));const f=this.latestValues.get(h);if(f!==void 0&&r!==null){const v=(this.extractStyles().baseElevation||688)+r;o.has(n)||o.set(n,[]),o.get(n).push({depth:r,elevation:v,value:f})}});const u=new Map;o.forEach((d,h)=>{d.sort((r,n)=>n.depth-r.depth),u.set(h,d)}),u.size>0&&(console.log("[DeepDisplacementChart] realtime series keys:",Array.from(u.keys())),console.log("[DeepDisplacementChart] realtime series data:",Array.from(u.entries())),this.timeSeriesData.set(String(t),u),V(t),this.chartData=u,M.value++)}catch(t){console.error("[DeepDisplacementChart] 解析实时数据失败:",t)}}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}getChartOption(){var f;const e=this.extractStyles(),a=((f=this.props.conf)==null?void 0:f.data)||[],i=b.value;i&&this.timeSeriesData.has(i)&&(this.chartData=new Map(this.timeSeriesData.get(i)||new Map));const l=[];let t=[],o=[];this.chartData.forEach((m,v)=>{if(m.length===0)return;m.forEach(x=>{x.depth!==void 0&&t.push(x.depth),x.elevation!==void 0&&o.push(x.elevation)});const C=[...m].sort((x,F)=>(F.depth||0)-(x.depth||0)),E=a.find(x=>x.name===v),_=(E==null?void 0:E.color)||"#4a90d9";l.push({name:v,type:"line",data:C.map(x=>[x.value||0,x.depth||0]),smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:_,width:2},itemStyle:{color:_,borderColor:"#fff",borderWidth:2},yAxisIndex:0})}),l.length===0&&this.getMockData().forEach(v=>{l.push({name:v.name,type:"line",data:v.data,smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:v.color,width:2},itemStyle:{color:v.color,borderColor:"#fff",borderWidth:2},yAxisIndex:0}),v.data.forEach(C=>t.push(C[1]))});const u=t.length>0?Math.min(...t):-80,d=t.length>0?Math.max(...t):0,h=o.length>0?Math.min(...o):810,r=o.length>0?Math.max(...o):890,n=r||890,p=m=>n+m;return{grid:{left:80,right:80,top:36,bottom:88},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:m=>{if(!m||m.length===0)return"";const v=m[0].data[1],C=p(v);let E=`<div style="padding:8px;max-width:300px;">
|
|
2
2
|
<div style="font-weight:600;margin-bottom:6px;">深度: ${v}m</div>
|
|
3
3
|
<div style="color:#666;margin-bottom:6px;">高程: ${C.toFixed(2)}m</div>`;return m.forEach(_=>{E+=`<div style="display:flex;align-items:center;margin:2px 0;">
|
|
4
4
|
<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${_.color};margin-right:6px;"></span>
|
|
@@ -28,8 +28,8 @@ var X = (r, l, o) => new Promise((L, u) => {
|
|
|
28
28
|
});
|
|
29
29
|
import { defineComponent as ct, useCssVars as rt, unref as z, ref as W, computed as q, watch as J, nextTick as P, onMounted as dt, onBeforeUnmount as pt, openBlock as ft, createElementBlock as ht, createElementVNode as B, toDisplayString as K, renderSlot as ut } from "vue";
|
|
30
30
|
import "html2canvas";
|
|
31
|
-
import { B as mt, i as gt, j as vt } from "./element-resize-detector-
|
|
32
|
-
import { u as yt, _ as xt } from "./index-
|
|
31
|
+
import { B as mt, i as gt, j as vt } from "./element-resize-detector-BykFgbx2.js";
|
|
32
|
+
import { u as yt, _ as xt } from "./index-CQCqGJ5R.js";
|
|
33
33
|
import "./index-ButoLLAe.js";
|
|
34
34
|
import { A as bt, D as Dt } from "./ele-mxa-icon-CJWttkCK.js";
|
|
35
35
|
import { i as _t } from "./echarts-BVht3HHb.js";
|
|
@@ -16,7 +16,7 @@ import "element-plus/es/components/select/style/css";
|
|
|
16
16
|
import "element-plus/es/components/option/style/css";
|
|
17
17
|
import "element-plus/es/components/button/style/css";
|
|
18
18
|
import { defineComponent as le, useCssVars as ae, ref as w, computed as I, watch as A, nextTick as j, onMounted as ne, onBeforeUnmount as ie, openBlock as V, createElementBlock as E, createElementVNode as s, toDisplayString as b, createVNode as L, withCtx as B, createTextVNode as se, Fragment as re, renderList as de, createCommentVNode as ce, renderSlot as me } from "vue";
|
|
19
|
-
import { u as pe, d as ue, _ as fe } from "./index-
|
|
19
|
+
import { u as pe, d as ue, _ as fe } from "./index-CQCqGJ5R.js";
|
|
20
20
|
import "./index-ButoLLAe.js";
|
|
21
21
|
import { A as ve, D as xe } from "./ele-gridview-icon-cSd1oIDi.js";
|
|
22
22
|
import { i as ge } from "./echarts-BVht3HHb.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Y=Object.defineProperty,j=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(c,i,s)=>i in c?Y(c,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):c[i]=s,q=(c,i)=>{for(var s in i||(i={}))X.call(i,s)&&O(c,s,i[s]);if(L)for(var s of L(i))Z.call(i,s)&&O(c,s,i[s]);return c},P=(c,i)=>j(c,F(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),V=require("./index-
|
|
1
|
+
"use strict";var Y=Object.defineProperty,j=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(c,i,s)=>i in c?Y(c,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):c[i]=s,q=(c,i)=>{for(var s in i||(i={}))X.call(i,s)&&O(c,s,i[s]);if(L)for(var s of L(i))Z.call(i,s)&&O(c,s,i[s]);return c},P=(c,i)=>j(c,F(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),V=require("./index-LSCs4x8x.cjs");require("./index-mAPVa0s4.cjs");const T=require("./ele-gridview-icon-D3GcssP6.cjs"),H=require("./echarts-BB8O2KSA.cjs"),W={class:"deep-displacement-view"},G={class:"view-toolbar"},J={class:"time-display"},K={class:"view-header"},Q={class:"view-title"},ee={class:"view-time"},te={class:"chart-container"},oe={key:0,class:"no-data"},le={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"深部位移三视图",NAME_EN:"Deep Displacement View",ORDER:12},ne={title:{value:"深部位移三视图",type:"string",label:"component.deepDisplacement.title"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},lineColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.lineColor"},gridColor:{value:"#e5e5e5",type:"color",label:"component.deepDisplacement.gridColor"},pointColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.pointColor"}},ae=[{configPanelId:""}],ie=["configPanelId"],re=[],se={useAlias:!1,multiObject:!1,source:""},de={DEFAULT:le,OPTIONS:ne,DATA:ae,PARAMS:ie,SOURCE:re,COMMON:se},ce=e.defineComponent(P(q({},de),{__name:"deepDisplacementView",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(c){e.useCssVars(t=>({v28f3e125:u.value.bgColor,v527e537d:u.value.textColor,v25488d16:u.value.lineColor}));const i=V.useLinkStore(),s=c,z=[{label:"俯视图",value:"top"},{label:"主视图",value:"front"},{label:"侧视图",value:"side"}],N={top:"俯视图",front:"主视图",side:"侧视图"},f=e.ref("top"),b=e.ref(""),B=e.computed(()=>V.dayjs().format("YYYY-MM-DD HH:mm:ss")),M=`deepDisplacementView_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,v=e.ref([]),_=e.computed(()=>v.value&&v.value.length>0);let d=null,g=null;const u=e.computed(()=>{var l,n,m,r,p,x,y;const{options:t,data:o}=s.conf||{};return{title:((l=t==null?void 0:t.title)==null?void 0:l.value)||"深部位移三视图",configPanelId:((n=o==null?void 0:o[0])==null?void 0:n.configPanelId)||"",bgColor:((m=t==null?void 0:t.bgColor)==null?void 0:m.value)||"#ffffff",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.value)||"#333333",lineColor:((p=t==null?void 0:t.lineColor)==null?void 0:p.value)||"#4a90d9",gridColor:((x=t==null?void 0:t.gridColor)==null?void 0:x.value)||"#e5e5e5",pointColor:((y=t==null?void 0:t.pointColor)==null?void 0:y.value)||"#4a90d9"}}),R=t=>{const o=v.value;if(!o||o.length===0)return{};const l=u.value;let n=[],m=[],r="",p="";t==="front"?(n=o.map(a=>a.x),m=o.map(a=>a.depth),r="X (mm)",p="Z (mm)"):t==="side"?(n=o.map(a=>a.y),m=o.map(a=>a.depth),r="Y (mm)",p="Z (mm)"):(n=o.map(a=>a.x),m=o.map(a=>a.y),r="X (mm)",p="Y (mm)");const x=Math.min(...n),y=Math.max(...n),C=Math.min(...m),I=Math.max(...m),A=Math.max(Math.abs(x),Math.abs(y),15e3),k=t==="top"?Math.max(Math.abs(C),Math.abs(I),15e3):Math.abs(C-I)*1.1;return{grid:{left:60,right:50,top:20,bottom:60},tooltip:{trigger:"item",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:a=>{const S=a.dataIndex,h=o[S];return`<div style="padding: 8px;">
|
|
2
2
|
<div style="font-weight: 600; margin-bottom: 6px;">深度: ${h.depth}m</div>
|
|
3
3
|
<div style="color: #666; line-height: 1.8;">
|
|
4
4
|
<div>高程: ${h.elevation}m</div>
|
|
@@ -18,9 +18,9 @@ import "element-plus/es/components/select/style/css";
|
|
|
18
18
|
import "element-plus/es/components/option/style/css";
|
|
19
19
|
import { defineComponent as be, ref as w, computed as J, watch as Q, watchEffect as Ne, onMounted as Oe, openBlock as I, createElementBlock as F, normalizeStyle as Z, unref as E, toDisplayString as _e, createCommentVNode as xe, createElementVNode as L, createVNode as R, withCtx as M, Fragment as ye, renderList as ke, createBlock as Ee, createTextVNode as De, renderSlot as Ve, nextTick as ee } from "vue";
|
|
20
20
|
import { Download as Te } from "@element-plus/icons-vue";
|
|
21
|
-
import { d as te, i as Ae } from "./element-resize-detector-
|
|
22
|
-
import { u as we, _ as Ie } from "./index-
|
|
23
|
-
import { E as Re } from "./EChartComponentBase-
|
|
21
|
+
import { d as te, i as Ae } from "./element-resize-detector-BykFgbx2.js";
|
|
22
|
+
import { u as we, _ as Ie } from "./index-CQCqGJ5R.js";
|
|
23
|
+
import { E as Re } from "./EChartComponentBase-BS3bnTQC.js";
|
|
24
24
|
import { g as ze } from "./titleStyle-BT5GlpAb.js";
|
|
25
25
|
import { A as Fe, D as Le } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
26
26
|
import { u as Me, i as $e, a as Be } from "./installCanvasRenderer-CLT2hquJ.js";
|
package/dist/{deepNodeTemperatureChart-Dsl1Zm8T.cjs → deepNodeTemperatureChart-Bs6-JuAH.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var se=Object.defineProperty,ae=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var P=(p,i,f)=>i in p?se(p,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):p[i]=f,G=(p,i)=>{for(var f in i||(i={}))re.call(i,f)&&P(p,f,i[f]);if(U)for(var f of U(i))ce.call(i,f)&&P(p,f,i[f]);return p},K=(p,i)=>ae(p,ie(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),ue=require("@element-plus/icons-vue"),q=require("./element-resize-detector-BlMXyWIR.cjs"),X=require("./index-EnNA0nIi.cjs"),he=require("./EChartComponentBase-BTqBoBn8.cjs"),de=require("./titleStyle-NSnz6cUg.cjs"),W=require("./ele-lin-icon-Dke_1AmT.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),pe=require("./install-C8buXQPI.cjs"),fe=require("./install-CltTFs4e.cjs"),me=require("./install-CYwVETsi.cjs"),ge={class:"mix-body"},ve={class:"toolbar"},Ce=["id"],Se={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"节点温度图",NAME_EN:"DeepNodeTemperatureChart",ORDER:19},be={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"温度(℃)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Y=[{name:"-130m",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"-140m",fv:"temp_140",depth:-140,color:"#91cc75",object_id:""}],Ne=["name","fv","depth","color","object_id"],Oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ke={useAlias:!1,multiObject:!0,source:"mosaic"},ye={DEFAULT:Se,OPTIONS:be,DATA:Y,PARAMS:Ne,SOURCE:Oe,COMMON:ke},xe=o.defineComponent(K(G({},ye),{__name:"deepNodeTemperatureChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){R.use([pe.install,R.install,fe.install,R.install$1,me.install]);const i=p,f=X.useLinkStore(),d=o.ref(""),x=o.ref([]),k=o.ref(new Map);class J extends he.EChartComponentBase{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),l=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","温度(℃)"),linkChannel:l}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=Y),o.nextTick(()=>this.initChart())}setHistoryData(n){B(n)}setSocketData(n){n&&B(n)}onLinkEvent(n){F(n)}getChartOption(){var t;const n=((t=i.conf)==null?void 0:t.data)||[];return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:z.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},yAxis:{type:"value",name:this.Style.value.yName,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:n.map((l,a)=>({name:(l==null?void 0:l.name)||`节点${a+1}`,type:"line",smooth:!0,data:ee(l==null?void 0:l.depth),lineStyle:{color:(l==null?void 0:l.color)||D[a%D.length],width:2},itemStyle:{color:(l==null?void 0:l.color)||D[a%D.length]}}))}}}const C=new J(i,"deepNodeTemperatureChart"),Q=C.getEchartId();C.setupLifecycle();const V=C.getStyle(),Z=o.computed(()=>de.generateTitleStyle(i.conf.options)),S=o.ref([]),D=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272"],z=o.computed(()=>{if(d.value&&k.value.has(d.value)){const n=k.value.get(d.value)||[],t=new Set;return n.forEach(l=>t.add(l.t)),Array.from(t)}const e=new Set;return S.value.forEach(n=>e.add(n.t)),Array.from(e)}),ee=e=>{const n=Number(e),t=new Map;return(d.value&&k.value.has(d.value)?k.value.get(d.value)||[]:S.value).forEach(a=>{Math.abs(a.depth-n)<.1&&t.set(a.t,a.temp)}),z.value.map(a=>{var s;return(s=t.get(a))!=null?s:null})},N=()=>{o.nextTick(()=>{const e=C.getChartInstance();e&&e.setOption(C.getChartOption(),!0)})},te=()=>N(),ne=()=>{const e=C.getChartInstance();if(!e)return;const n=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=n,t.download=`node-temperature-${d.value||Date.now()}.png`,t.click()},L=()=>{var l,a,s;const e=((l=i.conf)==null?void 0:l.options)||{},n=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||V.value.linkChannel||"deepDisplacement",t=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return n==="custom"&&t?t:n},le=e=>{var a,s,u;const n=((a=i.conf)==null?void 0:a.data)||[],t=[];if(Array.isArray(e==null?void 0:e.data))return e.data.forEach((c,b)=>{var r,O;const v=String((O=(r=c==null?void 0:c.time)!=null?r:c==null?void 0:c.datetime)!=null?O:b);n.forEach(E=>{const T=E.fv,m=E.depth,h=Number(c==null?void 0:c[T]);Number.isFinite(m)&&Number.isFinite(h)&&t.push({t:v,depth:m,temp:h})})}),t;const l=String((u=(s=e==null?void 0:e.time)!=null?s:e==null?void 0:e.datetime)!=null?u:Date.now());return n.forEach(c=>{const b=c.fv,v=c.depth,r=Number(e==null?void 0:e[b]);Number.isFinite(v)&&Number.isFinite(r)&&t.push({t:l,depth:v,temp:r})}),t},F=e=>{var c,b,v;if(i.mode==="edit"||!e||!e.payload)return;const n=L();if((c=e.topic)!=null&&c.channel&&n&&e.topic.channel!==n||!f.shouldHandle(e,"deepNodeTemperatureChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const r=t.timeRange||t.dateRange||t.timeRangeValue;if((b=t.selectedTimes)!=null&&b.length){d.value=String(t.selectedTimes[t.selectedTimes.length-1]),N();return}if(Array.isArray(r)&&r.length){d.value=String(r[r.length-1]),N();return}if(r!=null&&r.endDate||r!=null&&r.end){d.value=String(r.endDate||r.end),N();return}return}const l=i.conf,a=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{};if(a.length>0&&!(s!=null&&s.multiObject)){const r=q.getObjectId(s,s==null?void 0:s.useAlias,i.uid)||((v=a[0])==null?void 0:v.object_id),O=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(r&&O&&String(r)!==String(O))return}const u=le(t);u.length&&(S.value=u.length<20?[...S.value.slice(-500),...u]:u,N())},B=e=>{var c,b,v,r,O,E,T;const n=i.conf,t=(n==null?void 0:n.data)||[],l=(n==null?void 0:n.common)||{},a=(l==null?void 0:l.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=q.formatStatisticsResult(s,t));const u=[];if((c=s==null?void 0:s.history)!=null&&c.length){const m=new Map;s.history.forEach((h,w)=>{var _,M;const g=(h==null?void 0:h[0])||h||{},A=String((M=(_=g==null?void 0:g.time)!=null?_:g==null?void 0:g.datetime)!=null?M:w),y=A.split(" ")[0];t.forEach($=>{const oe=$.fv,j=$.depth,H=Number(g==null?void 0:g[oe]);Number.isFinite(j)&&Number.isFinite(H)&&(m.has(y)||m.set(y,[]),m.get(y).push({t:A,depth:j,temp:H}))})}),x.value=Array.from(m.keys()).sort().reverse(),k.value=m,x.value.length>0&&!d.value&&(d.value=x.value[0]),S.value=m.get(d.value)||[]}else{const m=l!=null&&l.multiObject?"":q.getObjectId(l,l==null?void 0:l.useAlias,i.uid),h=m&&((v=(b=s==null?void 0:s[m])==null?void 0:b[a])==null?void 0:v.data)||((r=s==null?void 0:s[a])==null?void 0:r.data)||(s==null?void 0:s.data)||s,w=String((E=(O=h==null?void 0:h.time)!=null?O:h==null?void 0:h.datetime)!=null?E:Date.now());t.forEach(g=>{const A=g.fv,y=g.depth,_=Number(h==null?void 0:h[A]);Number.isFinite(y)&&Number.isFinite(_)&&u.push({t:w,depth:y,temp:_})}),S.value=[...S.value.slice(-500),...u]}!u.length&&!((T=s==null?void 0:s.history)!=null&&T.length)||N()};return o.watch(()=>f.channels[L()],e=>{e&&F(e)},{deep:!0}),o.watchEffect(()=>{i.conf.socketData&&C.setSocketData(i.conf.socketData)}),o.watch(()=>{var e;return(e=i.conf)==null?void 0:e.options},()=>{C.getStyle().value=C.extractStyles(),N()},{deep:!0}),o.onMounted(()=>{if(i.mode==="edit"&&!S.value.length){const e=[-1,-10,-20,-30],n=["2026-03-05","2026-03-04","2026-03-03"];n.forEach(t=>{const l=[];for(let a=0;a<24;a++){const s=`${t} ${String(a).padStart(2,"0")}:00:00`;e.forEach((u,c)=>{l.push({t:s,depth:u,temp:Number((18+c*1.5+Math.sin(a/4+c)*2).toFixed(2))})})}k.value.set(t,l)}),x.value=n,d.value=n[0],S.value=k.value.get(n[0])||[]}N()}),(e,n)=>{const t=I.ElOption,l=I.ElSelect,a=I.ElIcon,s=I.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(V).bgColor,borderRadius:`${o.unref(V).radiusSize}px`})},[o.unref(V).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Z.value)},o.toDisplayString(p.conf.caption||p.conf.name),5)),o.createElementVNode("div",ge,[o.createElementVNode("div",ve,[o.createVNode(l,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=u=>d.value=u),placeholder:"选择时间",size:"small",class:"time-select",onChange:te},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,u=>(o.openBlock(),o.createBlock(t,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(s,{size:"small",class:"export-btn",onClick:ne},{default:o.withCtx(()=>[o.createVNode(a,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ue.Download))]),_:1}),n[1]||(n[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(Q)},null,8,Ce)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Ee=X._export_sfc(xe,[["__scopeId","data-v-bbfa78df"]]);exports.default=Ee;
|
|
1
|
+
"use strict";var se=Object.defineProperty,ae=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var P=(p,i,f)=>i in p?se(p,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):p[i]=f,G=(p,i)=>{for(var f in i||(i={}))re.call(i,f)&&P(p,f,i[f]);if(U)for(var f of U(i))ce.call(i,f)&&P(p,f,i[f]);return p},K=(p,i)=>ae(p,ie(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),ue=require("@element-plus/icons-vue"),q=require("./element-resize-detector-BNZCpkPn.cjs"),X=require("./index-LSCs4x8x.cjs"),he=require("./EChartComponentBase-CleoClHm.cjs"),de=require("./titleStyle-NSnz6cUg.cjs"),W=require("./ele-lin-icon-Dke_1AmT.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),pe=require("./install-C8buXQPI.cjs"),fe=require("./install-CltTFs4e.cjs"),me=require("./install-CYwVETsi.cjs"),ge={class:"mix-body"},ve={class:"toolbar"},Ce=["id"],Se={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"节点温度图",NAME_EN:"DeepNodeTemperatureChart",ORDER:19},be={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"温度(℃)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Y=[{name:"-130m",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"-140m",fv:"temp_140",depth:-140,color:"#91cc75",object_id:""}],Ne=["name","fv","depth","color","object_id"],Oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ke={useAlias:!1,multiObject:!0,source:"mosaic"},ye={DEFAULT:Se,OPTIONS:be,DATA:Y,PARAMS:Ne,SOURCE:Oe,COMMON:ke},xe=o.defineComponent(K(G({},ye),{__name:"deepNodeTemperatureChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){R.use([pe.install,R.install,fe.install,R.install$1,me.install]);const i=p,f=X.useLinkStore(),d=o.ref(""),x=o.ref([]),k=o.ref(new Map);class J extends he.EChartComponentBase{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),l=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","温度(℃)"),linkChannel:l}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=Y),o.nextTick(()=>this.initChart())}setHistoryData(n){B(n)}setSocketData(n){n&&B(n)}onLinkEvent(n){F(n)}getChartOption(){var t;const n=((t=i.conf)==null?void 0:t.data)||[];return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:z.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},yAxis:{type:"value",name:this.Style.value.yName,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:n.map((l,a)=>({name:(l==null?void 0:l.name)||`节点${a+1}`,type:"line",smooth:!0,data:ee(l==null?void 0:l.depth),lineStyle:{color:(l==null?void 0:l.color)||D[a%D.length],width:2},itemStyle:{color:(l==null?void 0:l.color)||D[a%D.length]}}))}}}const C=new J(i,"deepNodeTemperatureChart"),Q=C.getEchartId();C.setupLifecycle();const V=C.getStyle(),Z=o.computed(()=>de.generateTitleStyle(i.conf.options)),S=o.ref([]),D=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272"],z=o.computed(()=>{if(d.value&&k.value.has(d.value)){const n=k.value.get(d.value)||[],t=new Set;return n.forEach(l=>t.add(l.t)),Array.from(t)}const e=new Set;return S.value.forEach(n=>e.add(n.t)),Array.from(e)}),ee=e=>{const n=Number(e),t=new Map;return(d.value&&k.value.has(d.value)?k.value.get(d.value)||[]:S.value).forEach(a=>{Math.abs(a.depth-n)<.1&&t.set(a.t,a.temp)}),z.value.map(a=>{var s;return(s=t.get(a))!=null?s:null})},N=()=>{o.nextTick(()=>{const e=C.getChartInstance();e&&e.setOption(C.getChartOption(),!0)})},te=()=>N(),ne=()=>{const e=C.getChartInstance();if(!e)return;const n=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=n,t.download=`node-temperature-${d.value||Date.now()}.png`,t.click()},L=()=>{var l,a,s;const e=((l=i.conf)==null?void 0:l.options)||{},n=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||V.value.linkChannel||"deepDisplacement",t=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return n==="custom"&&t?t:n},le=e=>{var a,s,u;const n=((a=i.conf)==null?void 0:a.data)||[],t=[];if(Array.isArray(e==null?void 0:e.data))return e.data.forEach((c,b)=>{var r,O;const v=String((O=(r=c==null?void 0:c.time)!=null?r:c==null?void 0:c.datetime)!=null?O:b);n.forEach(E=>{const T=E.fv,m=E.depth,h=Number(c==null?void 0:c[T]);Number.isFinite(m)&&Number.isFinite(h)&&t.push({t:v,depth:m,temp:h})})}),t;const l=String((u=(s=e==null?void 0:e.time)!=null?s:e==null?void 0:e.datetime)!=null?u:Date.now());return n.forEach(c=>{const b=c.fv,v=c.depth,r=Number(e==null?void 0:e[b]);Number.isFinite(v)&&Number.isFinite(r)&&t.push({t:l,depth:v,temp:r})}),t},F=e=>{var c,b,v;if(i.mode==="edit"||!e||!e.payload)return;const n=L();if((c=e.topic)!=null&&c.channel&&n&&e.topic.channel!==n||!f.shouldHandle(e,"deepNodeTemperatureChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const r=t.timeRange||t.dateRange||t.timeRangeValue;if((b=t.selectedTimes)!=null&&b.length){d.value=String(t.selectedTimes[t.selectedTimes.length-1]),N();return}if(Array.isArray(r)&&r.length){d.value=String(r[r.length-1]),N();return}if(r!=null&&r.endDate||r!=null&&r.end){d.value=String(r.endDate||r.end),N();return}return}const l=i.conf,a=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{};if(a.length>0&&!(s!=null&&s.multiObject)){const r=q.getObjectId(s,s==null?void 0:s.useAlias,i.uid)||((v=a[0])==null?void 0:v.object_id),O=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(r&&O&&String(r)!==String(O))return}const u=le(t);u.length&&(S.value=u.length<20?[...S.value.slice(-500),...u]:u,N())},B=e=>{var c,b,v,r,O,E,T;const n=i.conf,t=(n==null?void 0:n.data)||[],l=(n==null?void 0:n.common)||{},a=(l==null?void 0:l.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=q.formatStatisticsResult(s,t));const u=[];if((c=s==null?void 0:s.history)!=null&&c.length){const m=new Map;s.history.forEach((h,w)=>{var _,M;const g=(h==null?void 0:h[0])||h||{},A=String((M=(_=g==null?void 0:g.time)!=null?_:g==null?void 0:g.datetime)!=null?M:w),y=A.split(" ")[0];t.forEach($=>{const oe=$.fv,j=$.depth,H=Number(g==null?void 0:g[oe]);Number.isFinite(j)&&Number.isFinite(H)&&(m.has(y)||m.set(y,[]),m.get(y).push({t:A,depth:j,temp:H}))})}),x.value=Array.from(m.keys()).sort().reverse(),k.value=m,x.value.length>0&&!d.value&&(d.value=x.value[0]),S.value=m.get(d.value)||[]}else{const m=l!=null&&l.multiObject?"":q.getObjectId(l,l==null?void 0:l.useAlias,i.uid),h=m&&((v=(b=s==null?void 0:s[m])==null?void 0:b[a])==null?void 0:v.data)||((r=s==null?void 0:s[a])==null?void 0:r.data)||(s==null?void 0:s.data)||s,w=String((E=(O=h==null?void 0:h.time)!=null?O:h==null?void 0:h.datetime)!=null?E:Date.now());t.forEach(g=>{const A=g.fv,y=g.depth,_=Number(h==null?void 0:h[A]);Number.isFinite(y)&&Number.isFinite(_)&&u.push({t:w,depth:y,temp:_})}),S.value=[...S.value.slice(-500),...u]}!u.length&&!((T=s==null?void 0:s.history)!=null&&T.length)||N()};return o.watch(()=>f.channels[L()],e=>{e&&F(e)},{deep:!0}),o.watchEffect(()=>{i.conf.socketData&&C.setSocketData(i.conf.socketData)}),o.watch(()=>{var e;return(e=i.conf)==null?void 0:e.options},()=>{C.getStyle().value=C.extractStyles(),N()},{deep:!0}),o.onMounted(()=>{if(i.mode==="edit"&&!S.value.length){const e=[-1,-10,-20,-30],n=["2026-03-05","2026-03-04","2026-03-03"];n.forEach(t=>{const l=[];for(let a=0;a<24;a++){const s=`${t} ${String(a).padStart(2,"0")}:00:00`;e.forEach((u,c)=>{l.push({t:s,depth:u,temp:Number((18+c*1.5+Math.sin(a/4+c)*2).toFixed(2))})})}k.value.set(t,l)}),x.value=n,d.value=n[0],S.value=k.value.get(n[0])||[]}N()}),(e,n)=>{const t=I.ElOption,l=I.ElSelect,a=I.ElIcon,s=I.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(V).bgColor,borderRadius:`${o.unref(V).radiusSize}px`})},[o.unref(V).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Z.value)},o.toDisplayString(p.conf.caption||p.conf.name),5)),o.createElementVNode("div",ge,[o.createElementVNode("div",ve,[o.createVNode(l,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=u=>d.value=u),placeholder:"选择时间",size:"small",class:"time-select",onChange:te},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,u=>(o.openBlock(),o.createBlock(t,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(s,{size:"small",class:"export-btn",onClick:ne},{default:o.withCtx(()=>[o.createVNode(a,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ue.Download))]),_:1}),n[1]||(n[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(Q)},null,8,Ce)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Ee=X._export_sfc(xe,[["__scopeId","data-v-bbfa78df"]]);exports.default=Ee;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var oe=Object.defineProperty,ae=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var W=(v,r,C)=>r in v?oe(v,r,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[r]=C,L=(v,r)=>{for(var C in r||(r={}))re.call(r,C)&&W(v,C,r[C]);if(G)for(var C of G(r))ce.call(r,C)&&W(v,C,r[C]);return v},B=(v,r)=>ae(v,ie(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const n=require("vue"),ue=require("@element-plus/icons-vue"),q=require("./element-resize-detector-BlMXyWIR.cjs"),P=require("./index-EnNA0nIi.cjs"),he=require("./EChartComponentBase-BTqBoBn8.cjs"),de=require("./titleStyle-NSnz6cUg.cjs"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ge=require("./install-kGXY_57n.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),fe=require("./install-C8buXQPI.cjs"),pe=require("./install-CltTFs4e.cjs"),me=require("./install-CYwVETsi.cjs"),ve={class:"mix-body"},Ce={class:"toolbar"},Se={key:0,class:"custom-legend"},ye=["onClick"],be={class:"legend-text"},ke=["id"],xe={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"深部切线角",NAME_EN:"DeepTangentAngleChart",ORDER:17},Oe={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:40,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"切线角(°)",type:"string",label:"Y轴名称"},yMin:{value:-90,type:"number",label:"Y轴最小值"},yMax:{value:90,type:"number",label:"Y轴最大值"},showThresholdBand:{value:!0,type:"switch",label:"显示阈值带"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Q=[{name:"切线角",fv:"angle_130",depth:-130,color:"#5470c6",object_id:""},{name:"切线角",fv:"angle_140",depth:-140,color:"#5470c6",object_id:""}],Ne=["name","fv","depth","color","object_id"],_e=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ee={useAlias:!1,multiObject:!0,source:"mosaic"},Ve={DEFAULT:xe,OPTIONS:Oe,DATA:Q,PARAMS:Ne,SOURCE:_e,COMMON:Ee},Me=n.defineComponent(B(L({},Ve),{__name:"deepTangentAngleChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){R.use([fe.install,R.install,pe.install,ge.install,R.install$1,me.install]);const r=v,C=P.useLinkStore(),E=(e,l,t)=>{const s=(e==null?void 0:e.name)||`切线角${l+1}`;if(t.filter(p=>((p==null?void 0:p.name)||"")===s).length<=1)return s;const a=(e==null?void 0:e.depth)!==void 0?`${e.depth}m`:`${l+1}`;return`${s}-${a}`},S=n.ref(""),T=n.ref([]),V=n.ref(new Map);class Z extends he.EChartComponentBase{extractStyles(){const l=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),s=l==="custom"&&t?t:l;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","切线角(°)"),yMin:this.getOptionValue("yMin",-90),yMax:this.getOptionValue("yMax",90),showThresholdBand:this.getOptionValue("showThresholdBand",!0),linkChannel:s}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=Q),n.nextTick(()=>this.initChart())}setHistoryData(l){Y(l)}setSocketData(l){l&&Y(l)}onLinkEvent(l){U(l)}getChartOption(){var p;const l=((p=r.conf)==null?void 0:p.data)||[],t=S.value&&V.value.has(S.value)?V.value.get(S.value)||new Map:k.value,s=[];let u=[];if(l.forEach((i,g)=>{const f=E(i,g,l),d=(i==null?void 0:i.color)||"#5470c6",o=t instanceof Map?t.get(f)||[]:[];g===0&&(u=o);const c=o.map(x=>x.angle),m=o[o.length-1],h=_.value[f]!==!1;h&&s.push({name:f,type:"line",data:c,smooth:!1,symbol:"circle",symbolSize:6,lineStyle:{color:d,width:2},itemStyle:{color:d},markArea:void 0,markPoint:m&&h?{symbol:"circle",symbolSize:8,label:{show:!0,formatter:f,position:"right",color:d,fontSize:12},data:[{coord:[m.t,m.angle]}]}:void 0})}),!u.length&&t instanceof Map){const i=Array.from(t.keys())[0];u=i?t.get(i)||[]:[]}const a=this.Style.value.showThresholdBand?90:0;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right+a,containLabel:!0},tooltip:{trigger:"axis",formatter:i=>{var d;if(!(i!=null&&i.length))return"";const g=((d=i[0])==null?void 0:d.axisValue)||"-",f=i.map(o=>{var c;return`${o.seriesName}: ${(c=o.data)!=null?c:"-"}°`});return`${g}<br/>${f.join("<br/>")}`}},xAxis:{type:"category",name:this.Style.value.xName,data:u.map(i=>i.t),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:i=>{if(!i)return i;const g=P.dayjs(i);if(g.isValid())return g.format("MM-DD HH:mm");if(i.includes(" ")){const[f,d]=i.split(" "),[,o,c]=f.split("-"),[m,h]=d.split(":");return`${o}-${c} ${m}:${h}`}return i}}},yAxis:{type:"value",name:this.Style.value.yName,min:Number(this.Style.value.yMin),max:Number(this.Style.value.yMax),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:s}}}const y=new Z(r,"deepTangentAngleChart"),ee=y.getEchartId();y.setupLifecycle();const D=y.getStyle(),te=n.computed(()=>de.generateTitleStyle(r.conf.options)),k=n.ref(new Map),_=n.ref({}),j=n.computed(()=>{var l;const e=((l=r.conf)==null?void 0:l.data)||[];return e.map((t,s)=>({name:E(t,s,e),color:(t==null?void 0:t.color)||"#5470c6"}))}),b=()=>{n.nextTick(()=>{const e=y.getChartInstance();e&&e.setOption(y.getChartOption(),!0)})},F=e=>{_.value=(e==null?void 0:e.selected)||{},b()},ne=e=>{_.value=B(L({},_.value),{[e]:_.value[e]===!1}),b()};n.watch(()=>y.getChartInstance(),e=>{e&&(e.off("legendselectchanged",F),e.on("legendselectchanged",F))});const le=()=>{const e=y.getChartInstance();if(!e)return;const l=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=l,t.download=`tangent-angle-${S.value||Date.now()}.png`,t.click()},H=()=>{var s,u,a;const e=((s=r.conf)==null?void 0:s.options)||{},l=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||D.value.linkChannel||"deepDisplacement",t=((a=e==null?void 0:e.customChannel)==null?void 0:a.value)||"";return l==="custom"&&t?t:l},se=e=>{var s;const l=((s=r.conf)==null?void 0:s.data)||[],t=new Map;return l.length&&l.forEach((u,a)=>{var d,o;const p=u.fv,i=E(u,a,l),g=Number(e==null?void 0:e[p]);if(!Number.isFinite(g))return;const f=String((o=(d=e==null?void 0:e.time)!=null?d:e==null?void 0:e.datetime)!=null?o:Date.now());t.has(i)||t.set(i,[]),t.get(i).push({t:f,angle:g})}),t},U=e=>{var g,f,d;if(r.mode==="edit"||!e||!e.payload)return;const l=H();if((g=e.topic)!=null&&g.channel&&l&&e.topic.channel!==l||!C.shouldHandle(e,"deepTangentAngleChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const o=t.timeRange||t.dateRange||t.timeRangeValue;if((f=t.selectedTimes)!=null&&f.length){S.value=String(t.selectedTimes[t.selectedTimes.length-1]),b();return}if(Array.isArray(o)&&o.length){S.value=String(o[o.length-1]),b();return}if(o!=null&&o.endDate||o!=null&&o.end){S.value=String(o.endDate||o.end),b();return}return}const s=r.conf,u=(s==null?void 0:s.data)||[],a=(s==null?void 0:s.common)||{};if(u.length>0&&!(a!=null&&a.multiObject)){const o=q.getObjectId(a,a==null?void 0:a.useAlias,r.uid)||((d=u[0])==null?void 0:d.object_id),c=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(o&&c&&String(o)!==String(c))return}const p=se(t);if(!p.size)return;const i=new Map(k.value);p.forEach((o,c)=>{const m=i.get(c)||[];i.set(c,[...m.slice(-199),...o])}),k.value=i,b()},Y=e=>{var i,g,f,d;const l=r.conf,t=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{},u=(s==null?void 0:s.source)||"mosaic";let a=e;["statistics","calculate"].includes(u)&&(a=q.formatStatisticsResult(a,t));let p=!1;if((i=a==null?void 0:a.history)!=null&&i.length){const o=new Map;a.history.forEach((c,m)=>{var N,M;const h=(c==null?void 0:c[0])||c||{},x=String((M=(N=h==null?void 0:h.time)!=null?N:h==null?void 0:h.datetime)!=null?M:m),O=x.split(" ")[0];t.forEach((A,w)=>{const $=A.fv,I=E(A,w,t),K=Number(h==null?void 0:h[$]);if(!Number.isFinite(K))return;o.has(O)||o.set(O,new Map);const z=o.get(O);z.has(I)||z.set(I,[]),z.get(I).push({t:x,angle:K})})}),T.value=Array.from(o.keys()).sort().reverse(),V.value=o,T.value.length>0&&!S.value&&(S.value=T.value[0]),k.value=o.get(S.value)||new Map,p=!0}else{const o=s!=null&&s.multiObject?"":q.getObjectId(s,s==null?void 0:s.useAlias,r.uid),c=o&&((f=(g=a==null?void 0:a[o])==null?void 0:g[u])==null?void 0:f.data)||((d=a==null?void 0:a[u])==null?void 0:d.data)||(a==null?void 0:a.data)||a,m=new Map;if(t.forEach((h,x)=>{var w,$;const O=h.fv,N=E(h,x,t),M=Number(c==null?void 0:c[O]);if(!Number.isFinite(M))return;const A=String(($=(w=c==null?void 0:c.time)!=null?w:c==null?void 0:c.datetime)!=null?$:Date.now());m.has(N)||m.set(N,[]),m.get(N).push({t:A,angle:M})}),m.size>0){const h=new Map(k.value);m.forEach((x,O)=>{const N=h.get(O)||[];h.set(O,[...N.slice(-199),...x])}),k.value=h,p=!0}}p&&b()};return n.watch(()=>C.channels[H()],e=>{e&&U(e)},{deep:!0}),n.watchEffect(()=>{r.conf.socketData&&y.setSocketData(r.conf.socketData)}),n.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{y.getStyle().value=y.extractStyles(),b()},{deep:!0}),n.onMounted(()=>{if(r.mode==="edit"&&!k.value.length){const e=["2026-03-05","2026-03-04","2026-03-03"];e.forEach(l=>{const t=[];for(let s=0;s<24;s++){const u=`${l} ${String(s).padStart(2,"0")}:00:00`,a=Number((Math.sin(s/3)*50+s%4*6).toFixed(2));t.push({t:u,angle:a})}V.value.set(l,t)}),T.value=e,S.value=e[0],k.value=V.value.get(e[0])||[]}b()}),(e,l)=>{const t=X.ElIcon,s=X.ElButton;return n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(D).bgColor,borderRadius:`${n.unref(D).radiusSize}px`})},[n.unref(D).isHideTitle?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"mix-title",style:n.normalizeStyle(te.value)},n.toDisplayString(v.conf.caption||v.conf.name),5)),n.createElementVNode("div",ve,[n.createElementVNode("div",Ce,[n.createVNode(s,{size:"small",class:"export-btn",onClick:le},{default:n.withCtx(()=>[n.createVNode(t,null,{default:n.withCtx(()=>[n.createVNode(n.unref(ue.Download))]),_:1}),l[0]||(l[0]=n.createTextVNode(" 导出图 ",-1))]),_:1})]),j.value.length?(n.openBlock(),n.createElementBlock("div",Se,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(j.value,u=>(n.openBlock(),n.createElementBlock("span",{key:u.name,class:n.normalizeClass(["legend-item",{inactive:_.value[u.name]===!1}]),onClick:a=>ne(u.name)},[n.createElementVNode("span",{class:"legend-dot",style:n.normalizeStyle({backgroundColor:u.color})},null,4),n.createElementVNode("span",be,n.toDisplayString(u.name),1)],10,ye))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"echart-container",id:n.unref(ee)},null,8,ke)]),n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Te=P._export_sfc(Me,[["__scopeId","data-v-3f556520"]]);exports.default=Te;
|
|
1
|
+
"use strict";var oe=Object.defineProperty,ae=Object.defineProperties;var ie=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var W=(v,r,C)=>r in v?oe(v,r,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[r]=C,L=(v,r)=>{for(var C in r||(r={}))re.call(r,C)&&W(v,C,r[C]);if(G)for(var C of G(r))ce.call(r,C)&&W(v,C,r[C]);return v},B=(v,r)=>ae(v,ie(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const n=require("vue"),ue=require("@element-plus/icons-vue"),q=require("./element-resize-detector-BNZCpkPn.cjs"),P=require("./index-LSCs4x8x.cjs"),he=require("./EChartComponentBase-CleoClHm.cjs"),de=require("./titleStyle-NSnz6cUg.cjs"),J=require("./ele-lin-icon-Dke_1AmT.cjs"),ge=require("./install-kGXY_57n.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),fe=require("./install-C8buXQPI.cjs"),pe=require("./install-CltTFs4e.cjs"),me=require("./install-CYwVETsi.cjs"),ve={class:"mix-body"},Ce={class:"toolbar"},Se={key:0,class:"custom-legend"},ye=["onClick"],be={class:"legend-text"},ke=["id"],xe={DEFAULT_ICON:J.DEFAULT_ICON,ACTIVE_ICON:J.ACTIVE_ICON,NAME_CN:"深部切线角",NAME_EN:"DeepTangentAngleChart",ORDER:17},Oe={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:40,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"切线角(°)",type:"string",label:"Y轴名称"},yMin:{value:-90,type:"number",label:"Y轴最小值"},yMax:{value:90,type:"number",label:"Y轴最大值"},showThresholdBand:{value:!0,type:"switch",label:"显示阈值带"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},Q=[{name:"切线角",fv:"angle_130",depth:-130,color:"#5470c6",object_id:""},{name:"切线角",fv:"angle_140",depth:-140,color:"#5470c6",object_id:""}],Ne=["name","fv","depth","color","object_id"],_e=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ee={useAlias:!1,multiObject:!0,source:"mosaic"},Ve={DEFAULT:xe,OPTIONS:Oe,DATA:Q,PARAMS:Ne,SOURCE:_e,COMMON:Ee},Me=n.defineComponent(B(L({},Ve),{__name:"deepTangentAngleChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){R.use([fe.install,R.install,pe.install,ge.install,R.install$1,me.install]);const r=v,C=P.useLinkStore(),E=(e,l,t)=>{const s=(e==null?void 0:e.name)||`切线角${l+1}`;if(t.filter(p=>((p==null?void 0:p.name)||"")===s).length<=1)return s;const a=(e==null?void 0:e.depth)!==void 0?`${e.depth}m`:`${l+1}`;return`${s}-${a}`},S=n.ref(""),T=n.ref([]),V=n.ref(new Map);class Z extends he.EChartComponentBase{extractStyles(){const l=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),s=l==="custom"&&t?t:l;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","切线角(°)"),yMin:this.getOptionValue("yMin",-90),yMax:this.getOptionValue("yMax",90),showThresholdBand:this.getOptionValue("showThresholdBand",!0),linkChannel:s}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=Q),n.nextTick(()=>this.initChart())}setHistoryData(l){Y(l)}setSocketData(l){l&&Y(l)}onLinkEvent(l){U(l)}getChartOption(){var p;const l=((p=r.conf)==null?void 0:p.data)||[],t=S.value&&V.value.has(S.value)?V.value.get(S.value)||new Map:k.value,s=[];let u=[];if(l.forEach((i,g)=>{const f=E(i,g,l),d=(i==null?void 0:i.color)||"#5470c6",o=t instanceof Map?t.get(f)||[]:[];g===0&&(u=o);const c=o.map(x=>x.angle),m=o[o.length-1],h=_.value[f]!==!1;h&&s.push({name:f,type:"line",data:c,smooth:!1,symbol:"circle",symbolSize:6,lineStyle:{color:d,width:2},itemStyle:{color:d},markArea:void 0,markPoint:m&&h?{symbol:"circle",symbolSize:8,label:{show:!0,formatter:f,position:"right",color:d,fontSize:12},data:[{coord:[m.t,m.angle]}]}:void 0})}),!u.length&&t instanceof Map){const i=Array.from(t.keys())[0];u=i?t.get(i)||[]:[]}const a=this.Style.value.showThresholdBand?90:0;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right+a,containLabel:!0},tooltip:{trigger:"axis",formatter:i=>{var d;if(!(i!=null&&i.length))return"";const g=((d=i[0])==null?void 0:d.axisValue)||"-",f=i.map(o=>{var c;return`${o.seriesName}: ${(c=o.data)!=null?c:"-"}°`});return`${g}<br/>${f.join("<br/>")}`}},xAxis:{type:"category",name:this.Style.value.xName,data:u.map(i=>i.t),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:i=>{if(!i)return i;const g=P.dayjs(i);if(g.isValid())return g.format("MM-DD HH:mm");if(i.includes(" ")){const[f,d]=i.split(" "),[,o,c]=f.split("-"),[m,h]=d.split(":");return`${o}-${c} ${m}:${h}`}return i}}},yAxis:{type:"value",name:this.Style.value.yName,min:Number(this.Style.value.yMin),max:Number(this.Style.value.yMax),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:s}}}const y=new Z(r,"deepTangentAngleChart"),ee=y.getEchartId();y.setupLifecycle();const D=y.getStyle(),te=n.computed(()=>de.generateTitleStyle(r.conf.options)),k=n.ref(new Map),_=n.ref({}),j=n.computed(()=>{var l;const e=((l=r.conf)==null?void 0:l.data)||[];return e.map((t,s)=>({name:E(t,s,e),color:(t==null?void 0:t.color)||"#5470c6"}))}),b=()=>{n.nextTick(()=>{const e=y.getChartInstance();e&&e.setOption(y.getChartOption(),!0)})},F=e=>{_.value=(e==null?void 0:e.selected)||{},b()},ne=e=>{_.value=B(L({},_.value),{[e]:_.value[e]===!1}),b()};n.watch(()=>y.getChartInstance(),e=>{e&&(e.off("legendselectchanged",F),e.on("legendselectchanged",F))});const le=()=>{const e=y.getChartInstance();if(!e)return;const l=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=l,t.download=`tangent-angle-${S.value||Date.now()}.png`,t.click()},H=()=>{var s,u,a;const e=((s=r.conf)==null?void 0:s.options)||{},l=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||D.value.linkChannel||"deepDisplacement",t=((a=e==null?void 0:e.customChannel)==null?void 0:a.value)||"";return l==="custom"&&t?t:l},se=e=>{var s;const l=((s=r.conf)==null?void 0:s.data)||[],t=new Map;return l.length&&l.forEach((u,a)=>{var d,o;const p=u.fv,i=E(u,a,l),g=Number(e==null?void 0:e[p]);if(!Number.isFinite(g))return;const f=String((o=(d=e==null?void 0:e.time)!=null?d:e==null?void 0:e.datetime)!=null?o:Date.now());t.has(i)||t.set(i,[]),t.get(i).push({t:f,angle:g})}),t},U=e=>{var g,f,d;if(r.mode==="edit"||!e||!e.payload)return;const l=H();if((g=e.topic)!=null&&g.channel&&l&&e.topic.channel!==l||!C.shouldHandle(e,"deepTangentAngleChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const o=t.timeRange||t.dateRange||t.timeRangeValue;if((f=t.selectedTimes)!=null&&f.length){S.value=String(t.selectedTimes[t.selectedTimes.length-1]),b();return}if(Array.isArray(o)&&o.length){S.value=String(o[o.length-1]),b();return}if(o!=null&&o.endDate||o!=null&&o.end){S.value=String(o.endDate||o.end),b();return}return}const s=r.conf,u=(s==null?void 0:s.data)||[],a=(s==null?void 0:s.common)||{};if(u.length>0&&!(a!=null&&a.multiObject)){const o=q.getObjectId(a,a==null?void 0:a.useAlias,r.uid)||((d=u[0])==null?void 0:d.object_id),c=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(o&&c&&String(o)!==String(c))return}const p=se(t);if(!p.size)return;const i=new Map(k.value);p.forEach((o,c)=>{const m=i.get(c)||[];i.set(c,[...m.slice(-199),...o])}),k.value=i,b()},Y=e=>{var i,g,f,d;const l=r.conf,t=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{},u=(s==null?void 0:s.source)||"mosaic";let a=e;["statistics","calculate"].includes(u)&&(a=q.formatStatisticsResult(a,t));let p=!1;if((i=a==null?void 0:a.history)!=null&&i.length){const o=new Map;a.history.forEach((c,m)=>{var N,M;const h=(c==null?void 0:c[0])||c||{},x=String((M=(N=h==null?void 0:h.time)!=null?N:h==null?void 0:h.datetime)!=null?M:m),O=x.split(" ")[0];t.forEach((A,w)=>{const $=A.fv,I=E(A,w,t),K=Number(h==null?void 0:h[$]);if(!Number.isFinite(K))return;o.has(O)||o.set(O,new Map);const z=o.get(O);z.has(I)||z.set(I,[]),z.get(I).push({t:x,angle:K})})}),T.value=Array.from(o.keys()).sort().reverse(),V.value=o,T.value.length>0&&!S.value&&(S.value=T.value[0]),k.value=o.get(S.value)||new Map,p=!0}else{const o=s!=null&&s.multiObject?"":q.getObjectId(s,s==null?void 0:s.useAlias,r.uid),c=o&&((f=(g=a==null?void 0:a[o])==null?void 0:g[u])==null?void 0:f.data)||((d=a==null?void 0:a[u])==null?void 0:d.data)||(a==null?void 0:a.data)||a,m=new Map;if(t.forEach((h,x)=>{var w,$;const O=h.fv,N=E(h,x,t),M=Number(c==null?void 0:c[O]);if(!Number.isFinite(M))return;const A=String(($=(w=c==null?void 0:c.time)!=null?w:c==null?void 0:c.datetime)!=null?$:Date.now());m.has(N)||m.set(N,[]),m.get(N).push({t:A,angle:M})}),m.size>0){const h=new Map(k.value);m.forEach((x,O)=>{const N=h.get(O)||[];h.set(O,[...N.slice(-199),...x])}),k.value=h,p=!0}}p&&b()};return n.watch(()=>C.channels[H()],e=>{e&&U(e)},{deep:!0}),n.watchEffect(()=>{r.conf.socketData&&y.setSocketData(r.conf.socketData)}),n.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{y.getStyle().value=y.extractStyles(),b()},{deep:!0}),n.onMounted(()=>{if(r.mode==="edit"&&!k.value.length){const e=["2026-03-05","2026-03-04","2026-03-03"];e.forEach(l=>{const t=[];for(let s=0;s<24;s++){const u=`${l} ${String(s).padStart(2,"0")}:00:00`,a=Number((Math.sin(s/3)*50+s%4*6).toFixed(2));t.push({t:u,angle:a})}V.value.set(l,t)}),T.value=e,S.value=e[0],k.value=V.value.get(e[0])||[]}b()}),(e,l)=>{const t=X.ElIcon,s=X.ElButton;return n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(D).bgColor,borderRadius:`${n.unref(D).radiusSize}px`})},[n.unref(D).isHideTitle?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"mix-title",style:n.normalizeStyle(te.value)},n.toDisplayString(v.conf.caption||v.conf.name),5)),n.createElementVNode("div",ve,[n.createElementVNode("div",Ce,[n.createVNode(s,{size:"small",class:"export-btn",onClick:le},{default:n.withCtx(()=>[n.createVNode(t,null,{default:n.withCtx(()=>[n.createVNode(n.unref(ue.Download))]),_:1}),l[0]||(l[0]=n.createTextVNode(" 导出图 ",-1))]),_:1})]),j.value.length?(n.openBlock(),n.createElementBlock("div",Se,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(j.value,u=>(n.openBlock(),n.createElementBlock("span",{key:u.name,class:n.normalizeClass(["legend-item",{inactive:_.value[u.name]===!1}]),onClick:a=>ne(u.name)},[n.createElementVNode("span",{class:"legend-dot",style:n.normalizeStyle({backgroundColor:u.color})},null,4),n.createElementVNode("span",be,n.toDisplayString(u.name),1)],10,ye))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"echart-container",id:n.unref(ee)},null,8,ke)]),n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Te=P._export_sfc(Me,[["__scopeId","data-v-3f556520"]]);exports.default=Te;
|
|
@@ -16,9 +16,9 @@ import "element-plus/es/components/button/style/css";
|
|
|
16
16
|
import "element-plus/es/components/icon/style/css";
|
|
17
17
|
import { defineComponent as ye, ref as V, computed as ee, watch as j, watchEffect as be, onMounted as xe, openBlock as E, createElementBlock as T, normalizeStyle as U, unref as A, toDisplayString as te, createCommentVNode as ne, createElementVNode as $, createVNode as Y, withCtx as se, createTextVNode as Oe, Fragment as ke, renderList as _e, normalizeClass as Ne, renderSlot as Me, nextTick as ae } from "vue";
|
|
18
18
|
import { Download as De } from "@element-plus/icons-vue";
|
|
19
|
-
import { d as le, i as Ve } from "./element-resize-detector-
|
|
20
|
-
import { u as Ee, d as Te, _ as Ae } from "./index-
|
|
21
|
-
import { E as $e } from "./EChartComponentBase-
|
|
19
|
+
import { d as le, i as Ve } from "./element-resize-detector-BykFgbx2.js";
|
|
20
|
+
import { u as Ee, d as Te, _ as Ae } from "./index-CQCqGJ5R.js";
|
|
21
|
+
import { E as $e } from "./EChartComponentBase-BS3bnTQC.js";
|
|
22
22
|
import { g as we } from "./titleStyle-BT5GlpAb.js";
|
|
23
23
|
import { A as ze, D as Ie } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
24
24
|
import { i as Le } from "./install-C9Cdzkc6.js";
|
|
@@ -16,9 +16,9 @@ import "element-plus/es/components/button/style/css";
|
|
|
16
16
|
import "element-plus/es/components/icon/style/css";
|
|
17
17
|
import { defineComponent as St, ref as M, computed as E, watch as Y, watchEffect as bt, onMounted as Ct, openBlock as V, createElementBlock as q, normalizeStyle as G, unref as k, toDisplayString as yt, createCommentVNode as J, createElementVNode as R, createVNode as L, withCtx as I, createTextVNode as K, createBlock as xt, renderSlot as Ot, nextTick as Q } from "vue";
|
|
18
18
|
import { Download as Dt } from "@element-plus/icons-vue";
|
|
19
|
-
import { d as X, i as Nt } from "./element-resize-detector-
|
|
20
|
-
import { u as kt, d as Z, _ as Tt } from "./index-
|
|
21
|
-
import { E as _t } from "./EChartComponentBase-
|
|
19
|
+
import { d as X, i as Nt } from "./element-resize-detector-BykFgbx2.js";
|
|
20
|
+
import { u as kt, d as Z, _ as Tt } from "./index-CQCqGJ5R.js";
|
|
21
|
+
import { E as _t } from "./EChartComponentBase-BS3bnTQC.js";
|
|
22
22
|
import { g as wt } from "./titleStyle-BT5GlpAb.js";
|
|
23
23
|
import { A as Mt, D as Et } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
24
24
|
import { i as At } from "./install-D1QM80AD.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var nt=Object.defineProperty,it=Object.defineProperties;var st=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var at=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var q=(v,r,S)=>r in v?nt(v,r,{enumerable:!0,configurable:!0,writable:!0,value:S}):v[r]=S,B=(v,r)=>{for(var S in r||(r={}))at.call(r,S)&&q(v,S,r[S]);if(z)for(var S of z(r))lt.call(r,S)&&q(v,S,r[S]);return v},H=(v,r)=>it(v,st(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const a=require("vue"),ot=require("@element-plus/icons-vue"),F=require("./element-resize-detector-BlMXyWIR.cjs"),V=require("./index-EnNA0nIi.cjs"),rt=require("./EChartComponentBase-BTqBoBn8.cjs"),ct=require("./titleStyle-NSnz6cUg.cjs"),U=require("./ele-lin-icon-Dke_1AmT.cjs"),ut=require("./install-LtoYukZU.cjs"),$=require("./installCanvasRenderer-CyhM1Qpl.cjs"),dt=require("./install-C8buXQPI.cjs"),pt=require("./install-CIT6k8Ga.cjs"),mt={class:"mix-body"},ht={class:"toolbar"},ft=["id"],gt={DEFAULT_ICON:U.DEFAULT_ICON,ACTIVE_ICON:U.ACTIVE_ICON,NAME_CN:"深部温度场",NAME_EN:"DeepTemperatureField",ORDER:16},vt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:30,left:50,right:60,visualMin:{value:0,type:"number",label:"温度最小值"},visualMax:{value:40,type:"number",label:"温度最大值"},showDebugClear:{value:!1,type:"switch",label:"显示清空过滤按钮"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},P=[{name:"温度场",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"温度场",fv:"temp_140",depth:-140,color:"#5470c6",object_id:""}],St=["name","fv","depth","color","object_id"],bt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ct={useAlias:!1,multiObject:!0,source:"mosaic"},yt={DEFAULT:gt,OPTIONS:vt,DATA:P,PARAMS:St,SOURCE:bt,COMMON:Ct},xt=a.defineComponent(H(B({},yt),{__name:"deepTemperatureField",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){$.use([dt.install,$.install,pt.install,$.install$1,ut.install]);const r=v,S=V.useLinkStore();a.ref([]);const W=t=>{if(t==null)return"";const e=typeof t=="string"?t:String(t),i=typeof t=="number"||/^\d+$/.test(e)?new Date(Number(t)):new Date(e);if(Number.isNaN(i.getTime()))return e;const l=i.getFullYear(),s=String(i.getMonth()+1).padStart(2,"0"),p=String(i.getDate()).padStart(2,"0"),o=String(i.getHours()).padStart(2,"0"),f=String(i.getMinutes()).padStart(2,"0"),h=String(i.getSeconds()).padStart(2,"0");return`${l}-${s}-${p} ${o}:${f}:${h}`},_=t=>{if(t==null)return null;const e=String(t);return/^\d+$/.test(e)?V.dayjs(Number(e)):V.dayjs(t)},Y=(t,e)=>{const n=t?_(t):null,i=e?_(e):null,l=!!(t&&String(t).includes(" ")),s=!!(e&&String(e).includes(" "));return{start:n?l?n:n.startOf("day"):null,end:i?s?i:i.endOf("day"):null}};class G extends rt.EChartComponentBase{extractStyles(){const e=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=e==="custom"&&n?n:e;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",30),left:this.getOptionValue("left",50),right:this.getOptionValue("right",60),visualMin:this.getOptionValue("visualMin",0),visualMax:this.getOptionValue("visualMax",40),showDebugClear:this.getOptionValue("showDebugClear",!1),linkChannel:i}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=P),a.nextTick(()=>this.initChart())}setHistoryData(e){L(e)}setSocketData(e){e&&L(e)}onLinkEvent(e){I(e)}getChartOption(){var i,l,s,p,o,f,h,D;const e=Number((p=(s=(l=(i=r.conf)==null?void 0:i.options)==null?void 0:l.visualMin)==null?void 0:s.value)!=null?p:this.Style.value.visualMin),n=Number((D=(h=(f=(o=r.conf)==null?void 0:o.options)==null?void 0:f.visualMax)==null?void 0:h.value)!=null?D:this.Style.value.visualMax);return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},tooltip:{position:"top",formatter:c=>{var b,g,y;const u=M.value[(b=c.value)==null?void 0:b[0]]||"-",d=A.value[(g=c.value)==null?void 0:g[1]]||"-",m=(y=c.value)==null?void 0:y[2];return`时间: ${u}<br/>深度: ${d}m<br/>温度: ${m}℃`}},xAxis:{type:"category",data:M.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,rotate:45,formatter:c=>{if(/^\d+$/.test(c)){const u=new Date(Number(c)),d=String(u.getMonth()+1).padStart(2,"0"),m=String(u.getDate()).padStart(2,"0"),b=String(u.getHours()).padStart(2,"0"),g=String(u.getMinutes()).padStart(2,"0");return`${d}-${m} ${b}:${g}`}if(c&&c.includes(" ")){const[u,d]=c.split(" "),m=u.split("-");if(m.length===3){const[b,g,y]=m,[w,et]=d.split(":");return`${g}-${y} ${w}:${et}`}}return c}}},yAxis:{type:"category",data:A.value.map(c=>String(c)),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},visualMap:{min:Number.isFinite(e)?e:0,max:Number.isFinite(n)?n:40,calculable:!0,orient:"vertical",right:8,top:"middle"},series:[{name:"温度场",type:"heatmap",data:Q.value,label:{show:!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.4)"}}}]}}}const x=new G(r,"deepTemperatureField"),J=x.getEchartId();x.setupLifecycle();const T=x.getStyle(),K=a.computed(()=>ct.generateTitleStyle(r.conf.options)),C=a.ref([]),O=a.ref([]),M=a.computed(()=>{const t=new Set;return C.value.forEach(e=>t.add(String(e.t))),Array.from(t).sort()}),A=a.computed(()=>{const t=new Set;return C.value.forEach(e=>t.add(Number(e.depth))),Array.from(t).sort((e,n)=>e-n)}),Q=a.computed(()=>{const t=new Map,e=new Map;return M.value.forEach((n,i)=>t.set(n,i)),A.value.forEach((n,i)=>e.set(n,i)),C.value.map(n=>{const i=t.get(String(n.t)),l=e.get(Number(n.depth)),s=Number(n.temp);return i===void 0||l===void 0||!Number.isFinite(s)?null:[i,l,s]}).filter(Boolean)}),N=()=>{a.nextTick(()=>{const t=x.getChartInstance();t&&t.setOption(x.getChartOption(),!0)})},X=()=>{const t=x.getChartInstance();if(!t)return;const e=t.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=e,n.download=`temperature-field-${Date.now()}.png`,n.click()},Z=()=>{k.value=null,C.value=[...O.value],N()},R=()=>{var i,l,s;const t=((i=r.conf)==null?void 0:i.options)||{},e=((l=t==null?void 0:t.linkChannel)==null?void 0:l.value)||T.value.linkChannel||"deepDisplacement",n=((s=t==null?void 0:t.customChannel)==null?void 0:s.value)||"";return e==="custom"&&n?n:e},I=t=>{var f,h,D,c,u;if(r.mode==="edit"||!t||!t.payload)return;const e=R();if((f=t.topic)!=null&&f.channel&&e&&t.topic.channel!==e||!S.shouldHandle(t,"deepTemperatureField"))return;const n=t.payload,i=r.conf,l=(i==null?void 0:i.data)||[],s=(i==null?void 0:i.common)||{};if(n.type==="filter"){console.log("[deepTemperatureField] 收到筛选配置:",(h=n.filter)!=null?h:n),tt((D=n.filter)!=null?D:n);return}if(l.length>0&&!(s!=null&&s.multiObject)){const d=F.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((c=l[0])==null?void 0:c.object_id),m=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(d&&m&&String(d)!==String(m))return}const p=W((n==null?void 0:n.time)||(n==null?void 0:n.datetime)||((u=t.topic)==null?void 0:u.time)||Date.now()),o=[];l.forEach(d=>{const m=d.fv,b=d.depth,g=Number(n==null?void 0:n[m]);Number.isFinite(b)&&Number.isFinite(g)&&o.push({t:p,depth:b,temp:g})}),o.length&&(O.value=[...O.value,...o],E(),N())},k=a.ref(null),tt=t=>{var p;if(!t){k.value=null,E(),N();return}console.log("[deepTemperatureField] 收到配置数据类型:",typeof t,t);const e=Array.isArray(t)?null:t||null;if(e){const o=e.timeRange||e.dateRange,f=e.timeList||e.selectedTimes,h={};o&&(h.startDate=o.startDate||o.start||o[0],h.endDate=o.endDate||o.end||o[1]),Array.isArray(f)&&f.length>0&&(h.timeList=f),k.value=h,E(),N();return}const n=Array.isArray(t)?t:[];if(n.length===0){console.warn("[deepTemperatureField] 配置为空或格式错误");return}const i=n.find(o=>o.type==="timeRange"),l=n.find(o=>o.type==="timeList"),s={};i&&(s.startDate=i.startDate,s.endDate=i.endDate),l&&((p=l.selectedTimes)==null?void 0:p.length)>0&&(s.timeList=l.selectedTimes),k.value=s,E(),N()},E=()=>{if(!k.value){C.value=[...O.value];return}const{startDate:t,endDate:e,timeList:n}=k.value,i=O.value;if(n&&n.length>0){const l=new Set(n);C.value=i.filter(s=>{const p=String(s.t).split(" ")[0];return l.has(p)||l.has(String(s.t))});return}if(t||e){const{start:l,end:s}=Y(t,e);C.value=i.filter(p=>{const o=_(p.t);return!(!o||!o.isValid()||l&&o.isBefore(l)||s&&o.isAfter(s))});return}C.value=i},L=t=>{var o,f,h,D;const e=r.conf,n=(e==null?void 0:e.data)||[],i=(e==null?void 0:e.common)||{},l=(i==null?void 0:i.source)||"mosaic";let s=t;["statistics","calculate"].includes(l)&&(s=F.formatStatisticsResult(s,n));const p=[];if((o=s==null?void 0:s.history)!=null&&o.length)s.history.forEach((c,u)=>{const d=(c==null?void 0:c[0])||c||{},m=(d==null?void 0:d.time)||(d==null?void 0:d.datetime)||u;n.forEach(b=>{const g=b.fv,y=b.depth,w=Number(d==null?void 0:d[g]);Number.isFinite(y)&&Number.isFinite(w)&&p.push({t:String(m),depth:y,temp:w})})}),O.value=p;else{const c=i!=null&&i.multiObject?"":F.getObjectId(i,i==null?void 0:i.useAlias,r.uid),u=c&&((h=(f=s==null?void 0:s[c])==null?void 0:f[l])==null?void 0:h.data)||((D=s==null?void 0:s[l])==null?void 0:D.data)||(s==null?void 0:s.data)||s,d=(u==null?void 0:u.time)||(u==null?void 0:u.datetime)||Date.now();n.forEach(m=>{const b=m.fv,g=m.depth,y=Number(u==null?void 0:u[b]);Number.isFinite(g)&&Number.isFinite(y)&&p.push({t:String(d),depth:g,temp:y})}),p.length&&(O.value=[...O.value,...p])}p.length&&(E(),N())};return a.watch(()=>S.channels[R()],t=>{t&&I(t)},{deep:!0}),a.watchEffect(()=>{r.conf.socketData&&x.setSocketData(r.conf.socketData)}),a.watch(()=>{var t;return(t=r.conf)==null?void 0:t.options},()=>{x.getStyle().value=x.extractStyles(),N()},{deep:!0}),a.onMounted(()=>{if(r.mode==="edit"&&!C.value.length){const t=["2026-03-10 00:44:43","2026-03-10 02:44:40","2026-03-10 04:44:40","2026-03-10 06:44:40","2026-03-10 08:44:40","2026-03-10 09:44:44"],e=[-122,-124,-126,-128,-130,-132,-134,-136,-138,-140,-142,-144,-146,-148,-150,-152];t.forEach(n=>{e.forEach(i=>{const l=Number((5+Math.abs(i)*.05+Math.random()*2).toFixed(2));C.value.push({t:n,depth:i,temp:l})})}),O.value=[...C.value]}N()}),(t,e)=>{const n=j.ElIcon,i=j.ElButton;return a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(T).bgColor,borderRadius:`${a.unref(T).radiusSize}px`})},[a.unref(T).isHideTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"mix-title",style:a.normalizeStyle(K.value)},a.toDisplayString(v.conf.caption||v.conf.name),5)),a.createElementVNode("div",mt,[a.createElementVNode("div",ht,[a.createVNode(i,{size:"small",class:"export-btn",onClick:X},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createVNode(a.unref(ot.Download))]),_:1}),e[0]||(e[0]=a.createTextVNode(" 导出图 ",-1))]),_:1}),a.unref(T).showDebugClear?(a.openBlock(),a.createBlock(i,{key:0,size:"small",class:"clear-btn",onClick:Z},{default:a.withCtx(()=>[...e[1]||(e[1]=[a.createTextVNode(" 清空过滤 ",-1)])]),_:1})):a.createCommentVNode("",!0)]),a.createElementVNode("div",{class:"echart-container",id:a.unref(J)},null,8,ft)]),a.renderSlot(t.$slots,"default",{},void 0,!0)],4)}}})),Ot=V._export_sfc(xt,[["__scopeId","data-v-d9de034b"]]);exports.default=Ot;
|
|
1
|
+
"use strict";var nt=Object.defineProperty,it=Object.defineProperties;var st=Object.getOwnPropertyDescriptors;var z=Object.getOwnPropertySymbols;var at=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var q=(v,r,S)=>r in v?nt(v,r,{enumerable:!0,configurable:!0,writable:!0,value:S}):v[r]=S,B=(v,r)=>{for(var S in r||(r={}))at.call(r,S)&&q(v,S,r[S]);if(z)for(var S of z(r))lt.call(r,S)&&q(v,S,r[S]);return v},H=(v,r)=>it(v,st(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const a=require("vue"),ot=require("@element-plus/icons-vue"),F=require("./element-resize-detector-BNZCpkPn.cjs"),V=require("./index-LSCs4x8x.cjs"),rt=require("./EChartComponentBase-CleoClHm.cjs"),ct=require("./titleStyle-NSnz6cUg.cjs"),U=require("./ele-lin-icon-Dke_1AmT.cjs"),ut=require("./install-LtoYukZU.cjs"),$=require("./installCanvasRenderer-CyhM1Qpl.cjs"),dt=require("./install-C8buXQPI.cjs"),pt=require("./install-CIT6k8Ga.cjs"),mt={class:"mix-body"},ht={class:"toolbar"},ft=["id"],gt={DEFAULT_ICON:U.DEFAULT_ICON,ACTIVE_ICON:U.ACTIVE_ICON,NAME_CN:"深部温度场",NAME_EN:"DeepTemperatureField",ORDER:16},vt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:30,left:50,right:60,visualMin:{value:0,type:"number",label:"温度最小值"},visualMax:{value:40,type:"number",label:"温度最大值"},showDebugClear:{value:!1,type:"switch",label:"显示清空过滤按钮"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},P=[{name:"温度场",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"温度场",fv:"temp_140",depth:-140,color:"#5470c6",object_id:""}],St=["name","fv","depth","color","object_id"],bt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ct={useAlias:!1,multiObject:!0,source:"mosaic"},yt={DEFAULT:gt,OPTIONS:vt,DATA:P,PARAMS:St,SOURCE:bt,COMMON:Ct},xt=a.defineComponent(H(B({},yt),{__name:"deepTemperatureField",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){$.use([dt.install,$.install,pt.install,$.install$1,ut.install]);const r=v,S=V.useLinkStore();a.ref([]);const W=t=>{if(t==null)return"";const e=typeof t=="string"?t:String(t),i=typeof t=="number"||/^\d+$/.test(e)?new Date(Number(t)):new Date(e);if(Number.isNaN(i.getTime()))return e;const l=i.getFullYear(),s=String(i.getMonth()+1).padStart(2,"0"),p=String(i.getDate()).padStart(2,"0"),o=String(i.getHours()).padStart(2,"0"),f=String(i.getMinutes()).padStart(2,"0"),h=String(i.getSeconds()).padStart(2,"0");return`${l}-${s}-${p} ${o}:${f}:${h}`},_=t=>{if(t==null)return null;const e=String(t);return/^\d+$/.test(e)?V.dayjs(Number(e)):V.dayjs(t)},Y=(t,e)=>{const n=t?_(t):null,i=e?_(e):null,l=!!(t&&String(t).includes(" ")),s=!!(e&&String(e).includes(" "));return{start:n?l?n:n.startOf("day"):null,end:i?s?i:i.endOf("day"):null}};class G extends rt.EChartComponentBase{extractStyles(){const e=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=e==="custom"&&n?n:e;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",30),left:this.getOptionValue("left",50),right:this.getOptionValue("right",60),visualMin:this.getOptionValue("visualMin",0),visualMax:this.getOptionValue("visualMax",40),showDebugClear:this.getOptionValue("showDebugClear",!1),linkChannel:i}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=P),a.nextTick(()=>this.initChart())}setHistoryData(e){L(e)}setSocketData(e){e&&L(e)}onLinkEvent(e){I(e)}getChartOption(){var i,l,s,p,o,f,h,D;const e=Number((p=(s=(l=(i=r.conf)==null?void 0:i.options)==null?void 0:l.visualMin)==null?void 0:s.value)!=null?p:this.Style.value.visualMin),n=Number((D=(h=(f=(o=r.conf)==null?void 0:o.options)==null?void 0:f.visualMax)==null?void 0:h.value)!=null?D:this.Style.value.visualMax);return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},tooltip:{position:"top",formatter:c=>{var b,g,y;const u=M.value[(b=c.value)==null?void 0:b[0]]||"-",d=A.value[(g=c.value)==null?void 0:g[1]]||"-",m=(y=c.value)==null?void 0:y[2];return`时间: ${u}<br/>深度: ${d}m<br/>温度: ${m}℃`}},xAxis:{type:"category",data:M.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,rotate:45,formatter:c=>{if(/^\d+$/.test(c)){const u=new Date(Number(c)),d=String(u.getMonth()+1).padStart(2,"0"),m=String(u.getDate()).padStart(2,"0"),b=String(u.getHours()).padStart(2,"0"),g=String(u.getMinutes()).padStart(2,"0");return`${d}-${m} ${b}:${g}`}if(c&&c.includes(" ")){const[u,d]=c.split(" "),m=u.split("-");if(m.length===3){const[b,g,y]=m,[w,et]=d.split(":");return`${g}-${y} ${w}:${et}`}}return c}}},yAxis:{type:"category",data:A.value.map(c=>String(c)),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},visualMap:{min:Number.isFinite(e)?e:0,max:Number.isFinite(n)?n:40,calculable:!0,orient:"vertical",right:8,top:"middle"},series:[{name:"温度场",type:"heatmap",data:Q.value,label:{show:!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.4)"}}}]}}}const x=new G(r,"deepTemperatureField"),J=x.getEchartId();x.setupLifecycle();const T=x.getStyle(),K=a.computed(()=>ct.generateTitleStyle(r.conf.options)),C=a.ref([]),O=a.ref([]),M=a.computed(()=>{const t=new Set;return C.value.forEach(e=>t.add(String(e.t))),Array.from(t).sort()}),A=a.computed(()=>{const t=new Set;return C.value.forEach(e=>t.add(Number(e.depth))),Array.from(t).sort((e,n)=>e-n)}),Q=a.computed(()=>{const t=new Map,e=new Map;return M.value.forEach((n,i)=>t.set(n,i)),A.value.forEach((n,i)=>e.set(n,i)),C.value.map(n=>{const i=t.get(String(n.t)),l=e.get(Number(n.depth)),s=Number(n.temp);return i===void 0||l===void 0||!Number.isFinite(s)?null:[i,l,s]}).filter(Boolean)}),N=()=>{a.nextTick(()=>{const t=x.getChartInstance();t&&t.setOption(x.getChartOption(),!0)})},X=()=>{const t=x.getChartInstance();if(!t)return;const e=t.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=e,n.download=`temperature-field-${Date.now()}.png`,n.click()},Z=()=>{k.value=null,C.value=[...O.value],N()},R=()=>{var i,l,s;const t=((i=r.conf)==null?void 0:i.options)||{},e=((l=t==null?void 0:t.linkChannel)==null?void 0:l.value)||T.value.linkChannel||"deepDisplacement",n=((s=t==null?void 0:t.customChannel)==null?void 0:s.value)||"";return e==="custom"&&n?n:e},I=t=>{var f,h,D,c,u;if(r.mode==="edit"||!t||!t.payload)return;const e=R();if((f=t.topic)!=null&&f.channel&&e&&t.topic.channel!==e||!S.shouldHandle(t,"deepTemperatureField"))return;const n=t.payload,i=r.conf,l=(i==null?void 0:i.data)||[],s=(i==null?void 0:i.common)||{};if(n.type==="filter"){console.log("[deepTemperatureField] 收到筛选配置:",(h=n.filter)!=null?h:n),tt((D=n.filter)!=null?D:n);return}if(l.length>0&&!(s!=null&&s.multiObject)){const d=F.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((c=l[0])==null?void 0:c.object_id),m=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(d&&m&&String(d)!==String(m))return}const p=W((n==null?void 0:n.time)||(n==null?void 0:n.datetime)||((u=t.topic)==null?void 0:u.time)||Date.now()),o=[];l.forEach(d=>{const m=d.fv,b=d.depth,g=Number(n==null?void 0:n[m]);Number.isFinite(b)&&Number.isFinite(g)&&o.push({t:p,depth:b,temp:g})}),o.length&&(O.value=[...O.value,...o],E(),N())},k=a.ref(null),tt=t=>{var p;if(!t){k.value=null,E(),N();return}console.log("[deepTemperatureField] 收到配置数据类型:",typeof t,t);const e=Array.isArray(t)?null:t||null;if(e){const o=e.timeRange||e.dateRange,f=e.timeList||e.selectedTimes,h={};o&&(h.startDate=o.startDate||o.start||o[0],h.endDate=o.endDate||o.end||o[1]),Array.isArray(f)&&f.length>0&&(h.timeList=f),k.value=h,E(),N();return}const n=Array.isArray(t)?t:[];if(n.length===0){console.warn("[deepTemperatureField] 配置为空或格式错误");return}const i=n.find(o=>o.type==="timeRange"),l=n.find(o=>o.type==="timeList"),s={};i&&(s.startDate=i.startDate,s.endDate=i.endDate),l&&((p=l.selectedTimes)==null?void 0:p.length)>0&&(s.timeList=l.selectedTimes),k.value=s,E(),N()},E=()=>{if(!k.value){C.value=[...O.value];return}const{startDate:t,endDate:e,timeList:n}=k.value,i=O.value;if(n&&n.length>0){const l=new Set(n);C.value=i.filter(s=>{const p=String(s.t).split(" ")[0];return l.has(p)||l.has(String(s.t))});return}if(t||e){const{start:l,end:s}=Y(t,e);C.value=i.filter(p=>{const o=_(p.t);return!(!o||!o.isValid()||l&&o.isBefore(l)||s&&o.isAfter(s))});return}C.value=i},L=t=>{var o,f,h,D;const e=r.conf,n=(e==null?void 0:e.data)||[],i=(e==null?void 0:e.common)||{},l=(i==null?void 0:i.source)||"mosaic";let s=t;["statistics","calculate"].includes(l)&&(s=F.formatStatisticsResult(s,n));const p=[];if((o=s==null?void 0:s.history)!=null&&o.length)s.history.forEach((c,u)=>{const d=(c==null?void 0:c[0])||c||{},m=(d==null?void 0:d.time)||(d==null?void 0:d.datetime)||u;n.forEach(b=>{const g=b.fv,y=b.depth,w=Number(d==null?void 0:d[g]);Number.isFinite(y)&&Number.isFinite(w)&&p.push({t:String(m),depth:y,temp:w})})}),O.value=p;else{const c=i!=null&&i.multiObject?"":F.getObjectId(i,i==null?void 0:i.useAlias,r.uid),u=c&&((h=(f=s==null?void 0:s[c])==null?void 0:f[l])==null?void 0:h.data)||((D=s==null?void 0:s[l])==null?void 0:D.data)||(s==null?void 0:s.data)||s,d=(u==null?void 0:u.time)||(u==null?void 0:u.datetime)||Date.now();n.forEach(m=>{const b=m.fv,g=m.depth,y=Number(u==null?void 0:u[b]);Number.isFinite(g)&&Number.isFinite(y)&&p.push({t:String(d),depth:g,temp:y})}),p.length&&(O.value=[...O.value,...p])}p.length&&(E(),N())};return a.watch(()=>S.channels[R()],t=>{t&&I(t)},{deep:!0}),a.watchEffect(()=>{r.conf.socketData&&x.setSocketData(r.conf.socketData)}),a.watch(()=>{var t;return(t=r.conf)==null?void 0:t.options},()=>{x.getStyle().value=x.extractStyles(),N()},{deep:!0}),a.onMounted(()=>{if(r.mode==="edit"&&!C.value.length){const t=["2026-03-10 00:44:43","2026-03-10 02:44:40","2026-03-10 04:44:40","2026-03-10 06:44:40","2026-03-10 08:44:40","2026-03-10 09:44:44"],e=[-122,-124,-126,-128,-130,-132,-134,-136,-138,-140,-142,-144,-146,-148,-150,-152];t.forEach(n=>{e.forEach(i=>{const l=Number((5+Math.abs(i)*.05+Math.random()*2).toFixed(2));C.value.push({t:n,depth:i,temp:l})})}),O.value=[...C.value]}N()}),(t,e)=>{const n=j.ElIcon,i=j.ElButton;return a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(T).bgColor,borderRadius:`${a.unref(T).radiusSize}px`})},[a.unref(T).isHideTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"mix-title",style:a.normalizeStyle(K.value)},a.toDisplayString(v.conf.caption||v.conf.name),5)),a.createElementVNode("div",mt,[a.createElementVNode("div",ht,[a.createVNode(i,{size:"small",class:"export-btn",onClick:X},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createVNode(a.unref(ot.Download))]),_:1}),e[0]||(e[0]=a.createTextVNode(" 导出图 ",-1))]),_:1}),a.unref(T).showDebugClear?(a.openBlock(),a.createBlock(i,{key:0,size:"small",class:"clear-btn",onClick:Z},{default:a.withCtx(()=>[...e[1]||(e[1]=[a.createTextVNode(" 清空过滤 ",-1)])]),_:1})):a.createCommentVNode("",!0)]),a.createElementVNode("div",{class:"echart-container",id:a.unref(J)},null,8,ft)]),a.renderSlot(t.$slots,"default",{},void 0,!0)],4)}}})),Ot=V._export_sfc(xt,[["__scopeId","data-v-d9de034b"]]);exports.default=Ot;
|