mixdashboards 1.0.49 → 1.0.50
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-CafVdj74.js → EChartComponentBase-BjiCJlIa.js} +1 -1
- package/dist/{EChartComponentBase-Dz5E-lyI.cjs → EChartComponentBase-CUbabNTX.cjs} +1 -1
- package/dist/{UniverSheet-CH1YywcZ.js → UniverSheet-B2ysdSZW.js} +2 -2
- package/dist/{UniverSheet-BqLvs6V6.cjs → UniverSheet-C97ENJKg.cjs} +1 -1
- package/dist/{accelerationChart-V4UmpPse.js → accelerationChart-BtHLKXou.js} +3 -3
- package/dist/{accelerationChart-BWRlw5-L.cjs → accelerationChart-CqZGLCTa.cjs} +1 -1
- package/dist/{actionItem-Dsg6qYSp.cjs → actionItem-Ba4CZB9l.cjs} +1 -1
- package/dist/{actionItem-CBwfWvTO.js → actionItem-D6ScXj3z.js} +3 -3
- package/dist/{alarmLevelChart-CnKEZZZv.js → alarmLevelChart-CAA_fUgy.js} +2 -2
- package/dist/{alarmLevelChart-DN8hyTdg.cjs → alarmLevelChart-DyThrs-J.cjs} +1 -1
- package/dist/{alertTable-CdkiAZIu.cjs → alertTable-DICnr2gs.cjs} +1 -1
- package/dist/{alertTable-BluC1smp.js → alertTable-_z8F5EWM.js} +2 -2
- package/dist/{annualRainfallChart-COeieHTg.js → annualRainfallChart-B0TXYlAe.js} +2 -2
- package/dist/{annualRainfallChart-BeenDSmW.cjs → annualRainfallChart-CbND_8XT.cjs} +1 -1
- package/dist/api-BR57NNEB.cjs +1 -0
- package/dist/api-CcAArQi7.js +164 -0
- package/dist/{aqi-BXtF-SsB.cjs → aqi-BOEGQCuM.cjs} +1 -1
- package/dist/{aqi-naf_yg1B.js → aqi-RDZu5nYt.js} +3 -3
- package/dist/{aqiIndass-CiHVV6y-.js → aqiIndass-BPAt5nQk.js} +2 -2
- package/dist/{aqiIndass-YO0txxEM.cjs → aqiIndass-CgURee9t.cjs} +1 -1
- package/dist/{arrayCard-CPtHFB--.js → arrayCard-BLUoVrsd.js} +2 -2
- package/dist/{arrayCard-USJyzspe.cjs → arrayCard-Wnr9xzrq.cjs} +1 -1
- package/dist/{audio-7HMku35Z.js → audio-DC_D2YUu.js} +4 -4
- package/dist/{audio-Uz_XIJyA.cjs → audio-DuS_h70S.cjs} +1 -1
- package/dist/{bar-Bq_RDVaa.js → bar-BeO49AzX.js} +4 -4
- package/dist/{bar-CSideFNS.cjs → bar-bZbB0yMx.cjs} +1 -1
- package/dist/{bmp-DZ9_aKMT.cjs → bmp-6zTErjQZ.cjs} +1 -1
- package/dist/{bmp-BF-OdMoW.js → bmp-CLKbvXOI.js} +3 -3
- package/dist/{box-DfqNW1B6.js → box-BxXWmt0X.js} +2 -2
- package/dist/{box-C1n5r8hT.cjs → box-eQDyV3hk.cjs} +1 -1
- package/dist/{chartConfigPanel-8wROQoL0.js → chartConfigPanel-BvnnoSQ2.js} +1 -1
- package/dist/{chartConfigPanel-C62JqDqE.cjs → chartConfigPanel-CE3d4OpP.cjs} +1 -1
- package/dist/{circleBar-C54UQvaf.js → circleBar-Cl5i_iPg.js} +3 -3
- package/dist/{circleBar-UrV2_yVK.cjs → circleBar-I4Mh4_kk.cjs} +1 -1
- package/dist/{clock-CbebZdlU.js → clock-4HEPNmup.js} +2 -2
- package/dist/{clock-DgkEPumE.cjs → clock-7KHM_O_j.cjs} +1 -1
- package/dist/{clt-B32D8bK9.js → clt-Cicmq_zn.js} +3 -3
- package/dist/{clt-DWBynZO1.cjs → clt-z0rh02ts.cjs} +1 -1
- package/dist/{cmc-BVrFcoih.cjs → cmc-BFOFyDhF.cjs} +1 -1
- package/dist/{cmc-CC-6njzU.js → cmc-DoKSe6kA.js} +3 -3
- package/dist/{cmp-BCvtkNwO.js → cmp-88WnAeeC.js} +3 -3
- package/dist/{cmp-D6aHhSC6.cjs → cmp-fxk3vvRJ.cjs} +1 -1
- package/dist/{composite-CWYjAAsg.js → composite-CJi4KbAS.js} +3 -3
- package/dist/{composite-kODICk08.cjs → composite-CpD_yPEG.cjs} +1 -1
- package/dist/{controlList-BXvCyR2L.cjs → controlList-DT21uV7S.cjs} +1 -1
- package/dist/{controlList-zYX8DbNE.js → controlList-Ds98eQhx.js} +3 -3
- package/dist/{controlRecordList-Dly5aorA.cjs → controlRecordList-BEXUdUlk.cjs} +1 -1
- package/dist/{controlRecordList-Bc2M0iyo.js → controlRecordList-YlkbvMFI.js} +3 -3
- package/dist/{crd--3Oj3Y1t.cjs → crd-C852SplB.cjs} +1 -1
- package/dist/{crd-CoB00gS6.js → crd-Cr3HLog9.js} +2 -2
- package/dist/{ctrBtn-CUADz_pu.js → ctrBtn-N0CQxGOu.js} +4 -4
- package/dist/{ctrBtn-BusKAhHv.cjs → ctrBtn-OUtZpJrN.cjs} +1 -1
- package/dist/{ctrSet-C0R2aIby.cjs → ctrSet-BRFaMtA6.cjs} +1 -1
- package/dist/{ctrSet-BKVsejze.js → ctrSet-Br9GbDQP.js} +4 -4
- package/dist/{ctrSwitch-BqRBh40z.js → ctrSwitch-CZi4Q2qY.js} +4 -4
- package/dist/{ctrSwitch-uIqQRKaq.cjs → ctrSwitch-Cbd5L15F.cjs} +1 -1
- package/dist/{dataManagement-BdP1iSeC.cjs → dataManagement-Bh9BM8p4.cjs} +1 -1
- package/dist/{dataManagement-C6jHI7-1.js → dataManagement-BnQyWMyj.js} +2 -2
- package/dist/{dataReport-DNPD3MZl.cjs → dataReport-Dsgpg9HI.cjs} +1 -1
- package/dist/{dataReport-C2XWn_Xv.js → dataReport-v01I_59R.js} +2 -2
- package/dist/{dataTable-5bUrqBWz.js → dataTable-BM4F69di.js} +1 -1
- package/dist/{dataTable-BvlEs83r.cjs → dataTable-DOVR0yGL.cjs} +1 -1
- package/dist/{datetime-CE5wsyi7.cjs → datetime-COHpK691.cjs} +1 -1
- package/dist/{datetime-Dp8mPzSO.js → datetime-DmYFqkn-.js} +2 -2
- package/dist/{deepClusterSlipSurface-BinAmtCz.cjs → deepClusterSlipSurface-02MBgHpP.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-D_7LRpHz.js → deepClusterSlipSurface-CdInWoSj.js} +3 -3
- package/dist/{deepDataMatrix-t6axw0An.cjs → deepDataMatrix-C6uYc1Ii.cjs} +1 -1
- package/dist/{deepDataMatrix-BXTJm6UD.js → deepDataMatrix-Dx6S0Ud4.js} +2 -2
- package/dist/{deepDisplacement3D-BRutQ6Ut.cjs → deepDisplacement3D-Cd3SYFTm.cjs} +1 -1
- package/dist/{deepDisplacement3D-Cy-FIGAq.js → deepDisplacement3D-e3cZoBIa.js} +3 -3
- package/dist/{deepDisplacementChart-BWVcNgaX.js → deepDisplacementChart-BRg-5xLU.js} +4 -4
- package/dist/{deepDisplacementChart-eD2GOxML.cjs → deepDisplacementChart-BdnmYVpg.cjs} +1 -1
- package/dist/{deepDisplacementChart---DgDx8L.js → deepDisplacementChart-Df_wRTax.js} +2 -2
- package/dist/{deepDisplacementChart-DboPezyJ.cjs → deepDisplacementChart-DyZzw3I1.cjs} +1 -1
- package/dist/{deepDisplacementView-CHFgG2wy.js → deepDisplacementView-7PEeLnmE.js} +1 -1
- package/dist/{deepDisplacementView-BNVTS7Ar.cjs → deepDisplacementView-DDmT4y42.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-CpJI7axl.cjs → deepNodeTemperatureChart-B7HLWtyp.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-N1z-KMmu.js → deepNodeTemperatureChart-DpZK2y_K.js} +3 -3
- package/dist/{deepTangentAngleChart-ClnxPvUM.js → deepTangentAngleChart-D2_fQpm1.js} +3 -3
- package/dist/{deepTangentAngleChart-DxB4EaWm.cjs → deepTangentAngleChart-jTYFJpUS.cjs} +1 -1
- package/dist/{deepTemperatureField-DT7iyND9.js → deepTemperatureField-Bj0tQot1.js} +3 -3
- package/dist/{deepTemperatureField-DWO8Dcjh.cjs → deepTemperatureField-C9oKBaWc.cjs} +1 -1
- package/dist/{deepTrendChart-C7_BfEiR.js → deepTrendChart-Cox4B6GG.js} +3 -3
- package/dist/{deepTrendChart-D9uQKgck.cjs → deepTrendChart-MgsjLjQP.cjs} +1 -1
- package/dist/{deviceOnlineStatus-BA7D5fbt.cjs → deviceOnlineStatus-Ckr78uqa.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DlrB6EXN.js → deviceOnlineStatus-KoRHRByt.js} +2 -2
- package/dist/{deviceStatus-mDl8zF_Z.cjs → deviceStatus-C6zUE1Ch.cjs} +1 -1
- package/dist/{deviceStatus-aPf8MflS.js → deviceStatus-CLyOrzWr.js} +2 -2
- package/dist/{displacementDataTable-Da1xkiXG.js → displacementDataTable-B__8-EMW.js} +2 -2
- package/dist/{displacementDataTable-Co4In07D.cjs → displacementDataTable-CnMmwp_T.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-B85ad8vc.js → displacementTrajectoryChart-BD6_q2AN.js} +3 -3
- package/dist/{displacementTrajectoryChart-FPrvrbUa.cjs → displacementTrajectoryChart-EjHI5pSK.cjs} +1 -1
- package/dist/{displacementTrendChart-BRxIsjeK.js → displacementTrendChart-C2_U9d0k.js} +2 -2
- package/dist/{displacementTrendChart-DcBu8-_Z.cjs → displacementTrendChart-C9-Wcthw.cjs} +1 -1
- package/dist/{dxf-FrPSVW4C.js → dxf-BTdzQ1WR.js} +4 -4
- package/dist/{dxf-EDkdonhJ.cjs → dxf-BnW_56W9.cjs} +1 -1
- package/dist/{dzc-BBijV6-m.cjs → dzc-DIgGeG0y.cjs} +1 -1
- package/dist/{dzc-BOaL7miE.js → dzc-DWHQjxWE.js} +3 -3
- package/dist/{element-resize-detector-DYs3pJPp.cjs → element-resize-detector-Cl7PwC4K.cjs} +1 -1
- package/dist/{element-resize-detector-BCRzpPES.js → element-resize-detector-CoRhuer9.js} +4 -4
- package/dist/{evn-T-0VLXht.js → evn-CZWFRKvU.js} +2 -2
- package/dist/{evn-CAWNNpK2.cjs → evn-D964RzSY.cjs} +1 -1
- package/dist/{evolutionChart-B8vzbfrk.cjs → evolutionChart-CAZZ33t-.cjs} +1 -1
- package/dist/{evolutionChart-DYf3V-rl.js → evolutionChart-Co5KN4kk.js} +3 -3
- package/dist/{fileViewer-D6rC0YFY.cjs → fileViewer-8Tb-6ZXx.cjs} +1 -1
- package/dist/{fileViewer-BRVwWDA3.js → fileViewer-CIgKOZJY.js} +4 -4
- package/dist/{filterBar-hfIbyNh_.js → filterBar-DN3gl-1y.js} +2 -2
- package/dist/{filterBar-B3Ka4jw8.cjs → filterBar-DzSWAegi.cjs} +1 -1
- package/dist/{fireCombustionCurve-D1wKpm4i.js → fireCombustionCurve-2gyNx_37.js} +2 -2
- package/dist/{fireCombustionCurve-DKQJzKh2.cjs → fireCombustionCurve-BoPafSTF.cjs} +1 -1
- package/dist/{fireFilterBar-D8TTM4KM.cjs → fireFilterBar-BRlStM-R.cjs} +1 -1
- package/dist/{fireFilterBar-Bl0iCn48.js → fireFilterBar-DmyGJmXo.js} +2 -2
- package/dist/{gag-dKpxHBTV.cjs → gag-Bv61Z9xd.cjs} +1 -1
- package/dist/{gag-Vt7-rYYR.js → gag-D8OE6QuC.js} +2 -2
- package/dist/{gasStationList-g4AUNuxi.cjs → gasStationList-Db7hnhSp.cjs} +1 -1
- package/dist/{gasStationList-BDRHTLvR.js → gasStationList-pE2Ix1jL.js} +3 -3
- package/dist/{glbModel-BpnMbHQe.js → glbModel-BOccEfV7.js} +2 -2
- package/dist/{glbModel-BCgQzSz1.cjs → glbModel-CveO7gRY.cjs} +1 -1
- package/dist/{gnssFilterBar-BgS-JH3k.cjs → gnssFilterBar-DbvuQETH.cjs} +1 -1
- package/dist/{gnssFilterBar-CaGGhgEk.js → gnssFilterBar-o46kht8b.js} +2 -2
- package/dist/{gnssHistoryTable-CGY1ROb6.js → gnssHistoryTable-BR8BagaW.js} +3 -3
- package/dist/{gnssHistoryTable-Bkt4Zvxa.cjs → gnssHistoryTable-D4md3vW9.cjs} +1 -1
- package/dist/{gnssMapView-DuNotJym.cjs → gnssMapView-BONePEA0.cjs} +1 -1
- package/dist/{gnssMapView-C4-pk-1_.js → gnssMapView-CBuI36is.js} +2 -2
- package/dist/{gnssTimeSeriesChart-MZbERhu9.js → gnssTimeSeriesChart-BnkwIXD3.js} +4 -4
- package/dist/{gnssTimeSeriesChart-y7L6j_y5.cjs → gnssTimeSeriesChart-k759R4Jz.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DZFjqFPv.cjs → gnssXYTrajectory-D8lgUVnP.cjs} +1 -1
- package/dist/{gnssXYTrajectory-DL8WWe1C.js → gnssXYTrajectory-XRvGqirG.js} +3 -3
- package/dist/{grd-BgaxrUfI.js → grd-GmODod_I.js} +3 -3
- package/dist/{grd-DNJ1rlwR.cjs → grd-b9meYGso.cjs} +1 -1
- package/dist/{grdIndass-Bxf2L3J5.js → grdIndass-CMhE_Am5.js} +3 -3
- package/dist/{grdIndass-DlwlkKKH.cjs → grdIndass-DOjsX9Xe.cjs} +1 -1
- package/dist/{grg-78Sh9Nr7.js → grg-Bof7f3MI.js} +2 -2
- package/dist/{grg-CmxBlYJ6.cjs → grg-BsVjC-sq.cjs} +1 -1
- package/dist/{gridview-FFx-3wNz.cjs → gridview-CQreGJwJ.cjs} +1 -1
- package/dist/{gridview-BWe_qLy-.js → gridview-CZUzJi9i.js} +2 -2
- package/dist/{groupCard-B2ORsgUN.js → groupCard-B7bg93K0.js} +2 -2
- package/dist/{groupCard-BOqERSM4.cjs → groupCard-D8CtEB-E.cjs} +1 -1
- package/dist/{headerBar-DPlPX8uD.js → headerBar-CvH7Zc7X.js} +3 -3
- package/dist/{headerBar-o2J2Dqkd.cjs → headerBar-eKaZGrw3.cjs} +1 -1
- package/dist/{history-DH68UK_U.js → history-D-BYETka.js} +52 -48
- package/dist/history-dKfXo4HD.cjs +1 -0
- package/dist/{index-ZwyqrmaH.cjs → index-CtAaj9XN.cjs} +11 -2
- package/dist/{index-LgTfdmT4.js → index-yidMosRJ.js} +11 -2
- package/dist/{insarDeformChart-9Qss0VGu.js → insarDeformChart-DkoK7BBR.js} +2 -2
- package/dist/{insarDeformChart-BTwU5ktS.cjs → insarDeformChart-z8yO9-05.cjs} +1 -1
- package/dist/{insarImageViewer-C7aTZp-m.js → insarImageViewer-D3dKgLZO.js} +2 -2
- package/dist/{insarImageViewer-B-ExpEa8.cjs → insarImageViewer-DA8knTHO.cjs} +1 -1
- package/dist/{kds-8n-a2GhL.cjs → kds-CEwnUrkv.cjs} +1 -1
- package/dist/{kds-CS7G3BaQ.js → kds-CHs9Tu_R.js} +2 -2
- package/dist/{layerTabs-pJJzTbu9.js → layerTabs-DatJpr1M.js} +2 -2
- package/dist/{layerTabs-1lOAiEhu.cjs → layerTabs-Dd9Jh_Fv.cjs} +1 -1
- package/dist/{lin-IHxWU55I.cjs → lin-B7j-nXP9.cjs} +1 -1
- package/dist/{lin-Bk49Db_G.js → lin-BE41AMlf.js} +3 -3
- package/dist/{linIndass-Drxnj7KQ.js → linIndass-By1yFIUk.js} +2 -2
- package/dist/{linIndass-Cpf8pnLn.cjs → linIndass-C1p1Cmnn.cjs} +1 -1
- package/dist/{lst-CPd37vza.cjs → lst-C9GGJBSY.cjs} +1 -1
- package/dist/{lst-CL6bmgJ2.js → lst-CZ-zfn6U.js} +2 -2
- package/dist/{manualEntry-CcCE4O6Q.cjs → manualEntry-BGHJBf0t.cjs} +1 -1
- package/dist/{manualEntry-D_doLqqH.js → manualEntry-D9hLFJDz.js} +2 -2
- package/dist/{mapBackground-DEBggmVp.cjs → mapBackground-BtWWW32y.cjs} +1 -1
- package/dist/{mapBackground-CvLXKuJx.js → mapBackground-xNQTZByG.js} +2 -2
- package/dist/{mappingList-BZODl4t5.js → mappingList-CRrWBRN6.js} +3 -3
- package/dist/{mappingList-qKR-0uhY.cjs → mappingList-oTl8MueE.cjs} +1 -1
- package/dist/{markdownViewer-CtN6ailN.js → markdownViewer-CL61hROd.js} +4 -4
- package/dist/{markdownViewer-DZ8gvoHk.cjs → markdownViewer-CX24h3nv.cjs} +1 -1
- package/dist/{mix-control-modal-BlWtiePl.js → mix-control-modal-D6EEQCGG.js} +3 -3
- package/dist/{mix-control-modal-zbr85DkZ.cjs → mix-control-modal-dT4E6Haz.cjs} +1 -1
- package/dist/{mixDataPermission-C-Cu3_y0.js → mixDataPermission-B9cjyL0A.js} +1 -1
- package/dist/{mixDataPermission-Gcl_4czp.cjs → mixDataPermission-DCwcPNX3.cjs} +1 -1
- package/dist/{mixGrid-DJQ2jXcg.js → mixGrid-GUG7sL3_.js} +3 -3
- package/dist/{mixGrid-Dh9y_kW0.cjs → mixGrid-uKQuF0o0.cjs} +1 -1
- package/dist/{mixMap-BRnDOkNF.cjs → mixMap-BdG5zgn9.cjs} +1 -1
- package/dist/{mixMap-2REwmqmi.js → mixMap-m7d9IzZE.js} +3 -3
- package/dist/{mixModel-C1CKMCLi.cjs → mixModel-C8zjwy8B.cjs} +1 -1
- package/dist/{mixModel-CHtF97xc.js → mixModel-CC6G9D0O.js} +3 -3
- package/dist/{mixPie-sD-AjwaC.cjs → mixPie-2gzUWb-u.cjs} +1 -1
- package/dist/{mixPie-DwDffWz5.js → mixPie-Bj81XmbV.js} +3 -3
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mjpegCamera-Dbfd7eUC.js → mjpegCamera-Br5ey7tT.js} +2 -2
- package/dist/{mjpegCamera-RMS_dnv0.cjs → mjpegCamera-CILgaHwA.cjs} +1 -1
- package/dist/{monitorAlert-CjIQQ6fQ.cjs → monitorAlert-BmzetgZD.cjs} +1 -1
- package/dist/{monitorAlert-DagV3vuc.js → monitorAlert-CobYzZGr.js} +2 -2
- package/dist/{monitorData-CTkeA21g.js → monitorData-1r6SI7q1.js} +3 -3
- package/dist/{monitorData-DUansNO5.cjs → monitorData-DJbzjlS_.cjs} +1 -1
- package/dist/{monitorSpeedChart-CjfFqWon.cjs → monitorSpeedChart-DBaNR_i8.cjs} +1 -1
- package/dist/{monitorSpeedChart-BFnREZYZ.js → monitorSpeedChart-DkdUR1aJ.js} +1 -1
- package/dist/{mxa-B6ezKf-C.js → mxa-D-jbIMK7.js} +3 -3
- package/dist/{mxa-CN6zXgZA.cjs → mxa-QPAMK1uo.cjs} +1 -1
- package/dist/{myValue-C08vYRJC.js → myValue-BAiot_SS.js} +2 -2
- package/dist/{myValue-BG_jI_HT.cjs → myValue-Djvdf93P.cjs} +1 -1
- package/dist/{myValueList-BKVL_kPb.js → myValueList-BQAhr_60.js} +2 -2
- package/dist/{myValueList-Bwg3XCPF.cjs → myValueList-BVoHmkwi.cjs} +1 -1
- package/dist/{objectList-emtQyLbD.js → objectList-DC6ZXVnE.js} +4 -4
- package/dist/{objectList-FArM7oEM.cjs → objectList-ZBsMNei9.cjs} +1 -1
- package/dist/{photo-B9Veb_Am.cjs → photo-BfbD83cP.cjs} +1 -1
- package/dist/{photo-DXbQg_FJ.js → photo-DB7ScxzD.js} +4 -4
- package/dist/{pie-U9hOnFzz.cjs → pie-BWZlNdAH.cjs} +1 -1
- package/dist/{pie-DZzf2lL7.js → pie-CG9x9JkC.js} +3 -3
- package/dist/{pressBtn-BNr1R0gW.cjs → pressBtn-B9R9kSLo.cjs} +1 -1
- package/dist/{pressBtn-R5Wsj-Jw.js → pressBtn-Dx47q_TJ.js} +4 -4
- package/dist/{progressBar-sLfJICdr.js → progressBar-BiODeN_6.js} +2 -2
- package/dist/{progressBar-CUSoF6f0.cjs → progressBar-Cc0NRBqW.cjs} +1 -1
- package/dist/{progressCircle-BZgPxs_q.js → progressCircle-CUhyErYl.js} +2 -2
- package/dist/{progressCircle-B6P8B-t_.cjs → progressCircle-DafFwMdt.cjs} +1 -1
- package/dist/{qrcode-C96PznAO.js → qrcode-BcG6Yp9v.js} +2 -2
- package/dist/{qrcode-DMrNxgq5.cjs → qrcode-CpIFW2ZU.cjs} +1 -1
- package/dist/{raceBar-Dryx8Onl.js → raceBar-3TwLjyCx.js} +3 -3
- package/dist/{raceBar-BTExTEsZ.cjs → raceBar-DcyXXcCw.cjs} +1 -1
- package/dist/{rad-vw4O2ByZ.js → rad-B9uXwQSO.js} +2 -2
- package/dist/{rad-DpkIOKs_.cjs → rad-tTO9rh8e.cjs} +1 -1
- package/dist/{rainfallFilterBar-CH3abw6C.cjs → rainfallFilterBar-B0MHbvVF.cjs} +1 -1
- package/dist/{rainfallFilterBar-BjAWqKtM.js → rainfallFilterBar-B5me6wiw.js} +2 -2
- package/dist/{rainfallTimeCurve-oJUJ2mt7.cjs → rainfallTimeCurve-C0fnVsZL.cjs} +1 -1
- package/dist/{rainfallTimeCurve-BPDZGrlQ.js → rainfallTimeCurve-DhMUUl4b.js} +3 -3
- package/dist/{rangeLin-BFFy57TT.js → rangeLin-Bjba28V0.js} +2 -2
- package/dist/{rangeLin-CBqKAU0P.cjs → rangeLin-CcAP_o6E.cjs} +1 -1
- package/dist/{request-jIo7FwQD.js → request-CQBzobr7.js} +1 -1
- package/dist/{request-BcQP_dWt.cjs → request-DWe5EztR.cjs} +1 -1
- package/dist/{retainer1-CfcwA39J.cjs → retainer1-D0WcsB4O.cjs} +1 -1
- package/dist/{retainer1-goSPppQ-.js → retainer1-DnbR3o0S.js} +3 -3
- package/dist/{retainer2-DwQmFU10.cjs → retainer2-BsGq3sf6.cjs} +1 -1
- package/dist/{retainer2-BHdnsKrO.js → retainer2-HC4a_Rcx.js} +3 -3
- package/dist/{riskRegionTable-B8-f5xx-.js → riskRegionTable-DTArCYea.js} +2 -2
- package/dist/{riskRegionTable-CSJpPxPB.cjs → riskRegionTable-FoEiUsM-.cjs} +1 -1
- package/dist/{sankey-DXCBHb16.cjs → sankey-C5gmAMhu.cjs} +1 -1
- package/dist/{sankey-C0gaE3HM.js → sankey-D3TV79p7.js} +3 -3
- package/dist/{scd-Cwyft2g6.js → scd-Bl3rOGmw.js} +2 -2
- package/dist/{scd-CkEHu7nZ.cjs → scd-Db6KXaan.cjs} +1 -1
- package/dist/{sideMenu-DUdDDJ9K.cjs → sideMenu-BDM1P1cW.cjs} +1 -1
- package/dist/{sideMenu-BtVCCKw9.js → sideMenu-BJfA1uhH.js} +2 -2
- package/dist/{slopeStability-DwxDXTQG.js → slopeStability-DaP323la.js} +3 -3
- package/dist/{slopeStability-Byb6AKti.cjs → slopeStability-Z2V2od39.cjs} +1 -1
- package/dist/{speedCurve-BuNsy-ev.js → speedCurve-B_EYlvSe.js} +3 -3
- package/dist/{speedCurve-DArreweP.cjs → speedCurve-Dp3uVVyX.cjs} +1 -1
- package/dist/{staticLine-DfkpF6ZW.js → staticLine-CHiOuPX8.js} +3 -3
- package/dist/{staticLine-C50p0CZs.cjs → staticLine-Cnx32607.cjs} +1 -1
- package/dist/{store-D_TrU3nw.js → store-CHqnWEik.js} +2 -2
- package/dist/{store-ByTYoqyI.cjs → store-DehrZfaE.cjs} +1 -1
- package/dist/{swiper-L0Oo2dYD.cjs → swiper-BR2IFoJz.cjs} +1 -1
- package/dist/{swiper-CQiRByJd.js → swiper-C3dOtddc.js} +2 -2
- package/dist/{terminalConfigList-ChC43Bwq.cjs → terminalConfigList-DSu4f9n4.cjs} +1 -1
- package/dist/{terminalConfigList-BhmfFm4f.js → terminalConfigList-DVWWVeq4.js} +3 -3
- package/dist/{terminalList-C6tswBt1.js → terminalList-B8VgdttS.js} +3 -3
- package/dist/{terminalList-BQModRyk.cjs → terminalList-CKIaOeIR.cjs} +1 -1
- package/dist/{textbox-CgOhFsYo.js → textbox-Dj_XimAG.js} +3 -3
- package/dist/{textbox-CSuiDl8k.cjs → textbox-Dzmi2rz_.cjs} +1 -1
- package/dist/{timeQueryBar-QEg1Flg9.js → timeQueryBar-C2VHV9c7.js} +1 -1
- package/dist/{timeQueryBar-BtCXHgrg.cjs → timeQueryBar-crAWaYhQ.cjs} +1 -1
- package/dist/{timeSeries-DMINp9Fr.cjs → timeSeries-BRyc4h11.cjs} +1 -1
- package/dist/{timeSeries-B7NgbHfJ.js → timeSeries-CWuU-ogt.js} +4 -4
- package/dist/{timeSeriesCurve-wC9wHGI4.cjs → timeSeriesCurve-BMhQZA1X.cjs} +1 -1
- package/dist/{timeSeriesCurve-DEY5KQvu.js → timeSeriesCurve-Dk6FzaEp.js} +3 -3
- package/dist/{toggleBtn-DO953U-q.cjs → toggleBtn-B89o860W.cjs} +1 -1
- package/dist/{toggleBtn-Brtfu0-e.js → toggleBtn-ogVA3WOs.js} +3 -3
- package/dist/{trajectoryConfigPanel-BDdP3SdV.js → trajectoryConfigPanel-D01N49lh.js} +1 -1
- package/dist/{trajectoryConfigPanel-Bl_o9h2e.cjs → trajectoryConfigPanel-vGNgzSs6.cjs} +1 -1
- package/dist/{trajectoryScatter-DVm5ljvY.cjs → trajectoryScatter-CYFXE4dK.cjs} +1 -1
- package/dist/{trajectoryScatter-7-lJ5SMe.js → trajectoryScatter-DFhmjKpF.js} +3 -3
- package/dist/{universalConfigPanel-Cm4TfqAK.cjs → universalConfigPanel-DZHD2pZU.cjs} +1 -1
- package/dist/{universalConfigPanel-DTLFrGXs.js → universalConfigPanel-NB63CQv0.js} +1 -1
- package/dist/{universalTable-Bl9x3wEx.cjs → universalTable-BAlYZc6X.cjs} +1 -1
- package/dist/{universalTable-CCFr-GKz.js → universalTable-qpOc4526.js} +2 -2
- package/dist/{video-DObKrYkw.cjs → video-De2pwq7u.cjs} +1 -1
- package/dist/{video-gqqvz5Ge.js → video-rA9ArC4S.js} +4 -4
- package/dist/{videoMonitor-CGMHzNdh.js → videoMonitor-BSwBaLTE.js} +2 -2
- package/dist/{videoMonitor-B_Ur25fz.cjs → videoMonitor-CtoFDowr.cjs} +1 -1
- package/dist/{vlu-6DSf0haZ.js → vlu-B75MzAeW.js} +2 -2
- package/dist/{vlu-Dbj9euY_.cjs → vlu-BzBMTMWw.cjs} +1 -1
- package/dist/{weather-BsIBTn7G.cjs → weather-BNvwdR4t.cjs} +1 -1
- package/dist/{weather-CQBxQBld.js → weather-CJfwwOVu.js} +2 -2
- package/dist/{windLin-jVF-rhIx.cjs → windLin-SLR46lyF.cjs} +1 -1
- package/dist/{windLin-KIVk9hOD.js → windLin-yLs-b3_q.js} +2 -2
- package/package.json +1 -1
- package/dist/api-Cyx2Fha0.js +0 -125
- package/dist/api-nw_9niqv.cjs +0 -1
- package/dist/history-5W6pGCPq.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-DYs3pJPp.cjs"),wi=require("./index-ZwyqrmaH.cjs"),As=require("./EChartComponentBase-Dz5E-lyI.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-Cl7PwC4K.cjs"),wi=require("./index-CtAaj9XN.cjs"),As=require("./EChartComponentBase-CUbabNTX.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(`
|
|
@@ -17,9 +17,9 @@ import "element-plus/es/components/select/style/css";
|
|
|
17
17
|
import "element-plus/es/components/option/style/css";
|
|
18
18
|
import { defineComponent as cl, useCssVars as dl, unref as Hr, ref as lr, computed as vl, onMounted as pl, nextTick as cn, onBeforeUnmount as ml, watch as dn, openBlock as yi, createElementBlock as vn, createElementVNode as hr, createVNode as xi, withCtx as pn, Fragment as La, renderList as Ca, createBlock as gl, createTextVNode as _l, toDisplayString as Ti, renderSlot as yl } from "vue";
|
|
19
19
|
import "html2canvas";
|
|
20
|
-
import { i as xl, j as Tl, d as wl } from "./element-resize-detector-
|
|
21
|
-
import { e as mn, _ as Sl } from "./index-
|
|
22
|
-
import { E as bl } from "./EChartComponentBase-
|
|
20
|
+
import { i as xl, j as Tl, d as wl } from "./element-resize-detector-CoRhuer9.js";
|
|
21
|
+
import { e as mn, _ as Sl } from "./index-yidMosRJ.js";
|
|
22
|
+
import { E as bl } from "./EChartComponentBase-BjiCJlIa.js";
|
|
23
23
|
import { i as El } from "./index-ButoLLAe.js";
|
|
24
24
|
import { d as Al, n as Dl, q as Ll, V as Cl, L as Ml, u as He, a as Pl, O as Nl, Y as ci, S as yt } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
25
25
|
import { i as Rl } from "./install-DWm3j_D3.js";
|
|
@@ -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 { e 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-CoRhuer9.js";
|
|
23
|
+
import { e as F, _ as ke } from "./index-yidMosRJ.js";
|
|
24
|
+
import { E as Me } from "./EChartComponentBase-BjiCJlIa.js";
|
|
25
|
+
import { formatRequest as Ve } from "./request-CQBzobr7.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-Cl7PwC4K.cjs"),H=require("./index-CtAaj9XN.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>
|
|
@@ -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-CoRhuer9.js";
|
|
32
|
+
import { u as yt, _ as xt } from "./index-yidMosRJ.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";
|
|
@@ -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-DYs3pJPp.cjs"),j=require("./index-ZwyqrmaH.cjs"),ie=require("./EChartComponentBase-Dz5E-lyI.cjs"),re=require("./request-BcQP_dWt.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-Cl7PwC4K.cjs"),j=require("./index-CtAaj9XN.cjs"),ie=require("./EChartComponentBase-CUbabNTX.cjs"),re=require("./request-DWe5EztR.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>
|
|
@@ -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, e as ue, _ as fe } from "./index-
|
|
19
|
+
import { u as pe, e as ue, _ as fe } from "./index-yidMosRJ.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-CtAaj9XN.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>
|
package/dist/{deepNodeTemperatureChart-CpJI7axl.cjs → deepNodeTemperatureChart-B7HLWtyp.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-DYs3pJPp.cjs"),X=require("./index-ZwyqrmaH.cjs"),he=require("./EChartComponentBase-Dz5E-lyI.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-Cl7PwC4K.cjs"),X=require("./index-CtAaj9XN.cjs"),he=require("./EChartComponentBase-CUbabNTX.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;
|
|
@@ -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-CoRhuer9.js";
|
|
22
|
+
import { u as we, _ as Ie } from "./index-yidMosRJ.js";
|
|
23
|
+
import { E as Re } from "./EChartComponentBase-BjiCJlIa.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";
|
|
@@ -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, e 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-CoRhuer9.js";
|
|
20
|
+
import { u as Ee, e as Te, _ as Ae } from "./index-yidMosRJ.js";
|
|
21
|
+
import { E as $e } from "./EChartComponentBase-BjiCJlIa.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";
|
|
@@ -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-DYs3pJPp.cjs"),P=require("./index-ZwyqrmaH.cjs"),he=require("./EChartComponentBase-Dz5E-lyI.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-Cl7PwC4K.cjs"),P=require("./index-CtAaj9XN.cjs"),he=require("./EChartComponentBase-CUbabNTX.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 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, e 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-CoRhuer9.js";
|
|
20
|
+
import { u as kt, e as Z, _ as Tt } from "./index-yidMosRJ.js";
|
|
21
|
+
import { E as _t } from "./EChartComponentBase-BjiCJlIa.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-DYs3pJPp.cjs"),V=require("./index-ZwyqrmaH.cjs"),rt=require("./EChartComponentBase-Dz5E-lyI.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-Cl7PwC4K.cjs"),V=require("./index-CtAaj9XN.cjs"),rt=require("./EChartComponentBase-CUbabNTX.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;
|
|
@@ -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 d3, ref as U, computed as N, watch as P, watchEffect as p3, onMounted as m3, openBlock as b, createElementBlock as A, normalizeStyle as G, unref as O, toDisplayString as h3, createCommentVNode as f3, createElementVNode as F, createVNode as V, withCtx as z, Fragment as v3, renderList as g3, createBlock as L3, createTextVNode as C3, renderSlot as S3, nextTick as W } from "vue";
|
|
20
20
|
import { Download as x3 } from "@element-plus/icons-vue";
|
|
21
|
-
import { d as X, i as y3 } from "./element-resize-detector-
|
|
22
|
-
import { u as _3, _ as k3 } from "./index-
|
|
23
|
-
import { E as O3 } from "./EChartComponentBase-
|
|
21
|
+
import { d as X, i as y3 } from "./element-resize-detector-CoRhuer9.js";
|
|
22
|
+
import { u as _3, _ as k3 } from "./index-yidMosRJ.js";
|
|
23
|
+
import { E as O3 } from "./EChartComponentBase-BjiCJlIa.js";
|
|
24
24
|
import { g as w3 } from "./titleStyle-BT5GlpAb.js";
|
|
25
25
|
import { u as b3, i as V3, a as T3 } from "./installCanvasRenderer-CLT2hquJ.js";
|
|
26
26
|
import { i as D3 } from "./install-BBrAry2m.js";
|