mixdashboards 1.0.75 → 1.0.76
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/{BaseComponent-BXAJUoaf.cjs → BaseComponent-BmhMoM4H.cjs} +1 -1
- package/dist/{BaseComponent-BlCsb-HW.js → BaseComponent-CQaDWNO0.js} +8 -8
- package/dist/{EChartComponentBase-BPiPzdtw.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
- package/dist/{EChartComponentBase-DPWPg81w.js → EChartComponentBase-i76OGL3z.js} +2 -2
- package/dist/{EmergencyPlanPanel-Cv06qTDX.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
- package/dist/{EmergencyPlanPanel-CU0gJiFM.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
- package/dist/{HistoryPlanDialog-CiRVXFaZ.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
- package/dist/{HistoryPlanDialog-BALmXGdQ.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
- package/dist/{MonitoringMap-BuVJ-ir-.js → MonitoringMap-B6tXBdvK.js} +2 -2
- package/dist/{MonitoringMap-BXxlfEQV.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
- package/dist/{UniverSheet-CDug4m6W.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
- package/dist/{UniverSheet-GnlJ56Io.js → UniverSheet-D8sflrTb.js} +2 -2
- package/dist/{accelerationChart-BQkfynh-.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
- package/dist/{accelerationChart-lWscOOUn.js → accelerationChart-bch4O3t-.js} +14 -14
- package/dist/{actionItem-B4nl_rf_.js → actionItem-Cw67YwsR.js} +2 -2
- package/dist/{actionItem-6eYNuhg3.cjs → actionItem-cdsgUvaC.cjs} +1 -1
- package/dist/{alarmLevelChart-Mq8iVSI0.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
- package/dist/{alarmLevelChart-CiobE56j.js → alarmLevelChart-BynSRHG2.js} +2 -2
- package/dist/{alertTable-f0pzyZBg.cjs → alertTable-3VhkUZSf.cjs} +1 -1
- package/dist/{alertTable-CMlVY_8H.js → alertTable-CiwuaydQ.js} +2 -2
- package/dist/{aliasObjectSelectorDemo-C1bpTa2y.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
- package/dist/{aliasObjectSelectorDemo-DqZ0EfVH.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
- package/dist/{annualRainfallChart-_mJM58W4.js → annualRainfallChart-CHcr4-0D.js} +2 -2
- package/dist/{annualRainfallChart-BbYOeEs_.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
- package/dist/{aqi-yjjoBI4W.cjs → aqi-D7VqP1QE.cjs} +1 -1
- package/dist/{aqi-jYtMHp4c.js → aqi-Gu-pAovO.js} +4 -4
- package/dist/{aqiIndass-BPnJN1L7.js → aqiIndass-Bjj6n1aj.js} +18 -18
- package/dist/{aqiIndass-DuxFgiJF.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
- package/dist/{areaDeformCurve-BM8ClfUa.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
- package/dist/{areaDeformCurve-DNleJiVH.js → areaDeformCurve-nwlcUBDv.js} +2 -2
- package/dist/{arrayCard-jITzZi-r.js → arrayCard-TfcgLrHv.js} +2 -2
- package/dist/{arrayCard-BxpqdLMV.cjs → arrayCard-UoDqAGbN.cjs} +1 -1
- package/dist/{audio-CH5r-0gF.js → audio-BYgGYoEr.js} +2 -2
- package/dist/{audio-BuyKXQ0N.cjs → audio-DdUv9Ot-.cjs} +1 -1
- package/dist/bar-CkBXc7t1.cjs +2 -0
- package/dist/{bar-BtlkgC6a.js → bar-SfGiFl1r.js} +75 -67
- package/dist/{bmp-C2DUdhaT.js → bmp-BbtdzIrI.js} +2 -2
- package/dist/{bmp-DLIPXhyT.cjs → bmp-CY-Hb2x1.cjs} +1 -1
- package/dist/{box-CVcPOlKk.cjs → box-B4C_mirv.cjs} +1 -1
- package/dist/{box-BgwIB1Bl.js → box-CV41cJuX.js} +2 -2
- package/dist/{chartConfigPanel-ByzQkeYT.js → chartConfigPanel-D650rSn7.js} +1 -1
- package/dist/{chartConfigPanel-BdVphXRS.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
- package/dist/{circleBar-DBCX2g0i.cjs → circleBar-DkV7xPBl.cjs} +1 -1
- package/dist/{circleBar-CFV6RoS1.js → circleBar-U3iXMQr5.js} +2 -2
- package/dist/{clock--G7VfksN.cjs → clock-CjgMeOhp.cjs} +1 -1
- package/dist/{clock-ilY2WqEO.js → clock-zKVUU8pu.js} +2 -2
- package/dist/{clt-4fAQmG5V.js → clt-BsIA-YPQ.js} +2 -2
- package/dist/{clt-DOAntJi9.cjs → clt-DwI8i7zI.cjs} +1 -1
- package/dist/{cmc-CehLriLD.cjs → cmc-BX9ichBB.cjs} +1 -1
- package/dist/{cmc-Bhyw5-iw.js → cmc-CgpHejR2.js} +2 -2
- package/dist/{cmp-znNaGWlx.js → cmp-CS34lG7V.js} +2 -2
- package/dist/{cmp-BL3VD7Pn.cjs → cmp-CTqtxzo4.cjs} +1 -1
- package/dist/{conclusionCard-B5DhxboF.js → conclusionCard-N6pA6Q9P.js} +2 -2
- package/dist/{conclusionCard-K6CSG9A7.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
- package/dist/{controlList-CyE_bM7S.cjs → controlList-BUAMdHA3.cjs} +1 -1
- package/dist/{controlList-DoaSMBIh.js → controlList-Zz5ABe5b.js} +2 -2
- package/dist/{controlRecordList-CDKRXU47.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
- package/dist/{controlRecordList-DwXUWAgm.js → controlRecordList-Dx0zj7js.js} +2 -2
- package/dist/{controlRecordListAPP-cODkXLeg.cjs → controlRecordListAPP-ZDCKmz_8.cjs} +1 -1
- package/dist/{controlRecordListAPP-CP-tQ4o_.js → controlRecordListAPP-bL9oqWzQ.js} +2 -2
- package/dist/{crd-D9Djs_9M.cjs → crd-8tMwNlgx.cjs} +1 -1
- package/dist/{crd-BJJ9sEBi.js → crd-DZPpD6XY.js} +2 -2
- package/dist/{ctrBtn-zECsVsC6.js → ctrBtn-6Ql9ulTr.js} +10 -10
- package/dist/{ctrBtn-Ci7BkiOn.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
- package/dist/{ctrSet-DQTACQn1.js → ctrSet-BwFVH1Mk.js} +3 -3
- package/dist/{ctrSet-DZrpF9pM.cjs → ctrSet-pX-zVivo.cjs} +1 -1
- package/dist/{ctrSwitch-BDy8B1lF.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
- package/dist/{ctrSwitch-CrEAuL-v.js → ctrSwitch-b6hHf4QF.js} +11 -11
- package/dist/{dataManagement-D6SM8zVY.cjs → dataManagement-DubA1TV1.cjs} +1 -1
- package/dist/{dataManagement-ivUDfZ3f.js → dataManagement-VucRLCK4.js} +2 -2
- package/dist/{dataReport-CryAeh7C.js → dataReport-CALIw14D.js} +2 -2
- package/dist/{dataReport-CFJ5aMrb.cjs → dataReport-CkF5J7X1.cjs} +1 -1
- package/dist/{dataTable-BBW0i51h.js → dataTable-C1rBH_p9.js} +1 -1
- package/dist/{dataTable-IKk8N9i9.cjs → dataTable-C2q_CX5D.cjs} +1 -1
- package/dist/{datetime-BPoSIL-3.js → datetime-Cq8scz5Q.js} +2 -2
- package/dist/{datetime-CGUnVeRE.cjs → datetime-TBTeWqlf.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-rZIUqLLp.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
- package/dist/{deepClusterSlipSurface-jt74ODxX.js → deepClusterSlipSurface-Cm50wbjv.js} +2 -2
- package/dist/{deepDataMatrix-DyK--0cJ.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
- package/dist/{deepDataMatrix-B1rr5lNY.js → deepDataMatrix-DyStA98d.js} +7 -7
- package/dist/{deepDisplacement3D-DdSfiM8c.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
- package/dist/{deepDisplacement3D-BnWitDOk.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
- package/dist/{deepDisplacementChart-BxdiiuUe.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
- package/dist/{deepDisplacementChart-DY3PLNdf.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
- package/dist/{deepDisplacementChart-BQ3nFJLH.js → deepDisplacementChart-CYMpNu_W.js} +25 -25
- package/dist/{deepDisplacementChart-lIfyzMpq.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
- package/dist/{deepDisplacementView-C0r4oIIk.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
- package/dist/{deepDisplacementView-BsddlCKN.js → deepDisplacementView-DnjwQmEW.js} +1 -1
- package/dist/{deepNodeTemperatureChart-DrqwFmDg.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
- package/dist/{deepNodeTemperatureChart-C1RVbMT1.js → deepNodeTemperatureChart-CLKg72UA.js} +32 -32
- package/dist/{deepTangentAngleChart-Hs9wfNfb.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
- package/dist/{deepTangentAngleChart-BSifjEIw.js → deepTangentAngleChart-DklHYHhm.js} +13 -13
- package/dist/{deepTemperatureField-Bz9X6xx5.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
- package/dist/{deepTemperatureField-BSsTui64.js → deepTemperatureField-CcnVGgbf.js} +3 -3
- package/dist/{deepTrendChart-apQrMrj6.js → deepTrendChart-De7ebpk4.js} +14 -14
- package/dist/{deepTrendChart-B3q-lEJw.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
- package/dist/{deviceOnlineStatus-DABeXKWW.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
- package/dist/{deviceOnlineStatus-kFsHXR6n.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
- package/dist/{deviceStatus-BE2Pszt3.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
- package/dist/{deviceStatus-TNP-PLi-.js → deviceStatus-CL6E-pQ0.js} +10 -10
- package/dist/{displacementDataTable-BD45feZR.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
- package/dist/{displacementDataTable-kZBxmOLa.js → displacementDataTable-tKtGe2xd.js} +11 -11
- package/dist/{displacementTrajectoryChart-DmuezhG8.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
- package/dist/{displacementTrajectoryChart-BjbgbY-z.js → displacementTrajectoryChart-Dh6oPB0p.js} +22 -22
- package/dist/{displacementTrendChart-BjIXnttw.js → displacementTrendChart-BHORe0qO.js} +36 -36
- package/dist/{displacementTrendChart-iXH_pVRS.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
- package/dist/{dxf-DMZPfCEF.cjs → dxf-CVa4Vfm3.cjs} +1 -1
- package/dist/{dxf-Cne0HiZv.js → dxf-CjcHSJq-.js} +2 -2
- package/dist/{dzc-BHGWFMVE.js → dzc-DDXNSuie.js} +6 -6
- package/dist/{dzc-Xii4wMjP.cjs → dzc-DK16oTVj.cjs} +1 -1
- package/dist/{emergencyPlan-B1znDbbO.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
- package/dist/{emergencyPlan-CdFHCDZY.js → emergencyPlan-Vim4E6h7.js} +3 -3
- package/dist/{evn-UM09m5js.js → evn-CdMN8gIC.js} +2 -2
- package/dist/{evn-DQIIN0A9.cjs → evn-D2mdSoFB.cjs} +1 -1
- package/dist/{evolutionChart-DDtDzRIE.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
- package/dist/{evolutionChart-Dm3nLcz6.js → evolutionChart-P0l6P0Bc.js} +3 -3
- package/dist/{fileViewer-CoTW7CWz.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
- package/dist/{fileViewer-C1Ky9Ydw.js → fileViewer-DvntGv0b.js} +2 -2
- package/dist/{filterBar-BNr5i0ab.js → filterBar-8gex5oR-.js} +2 -2
- package/dist/{filterBar-DPG_jFL8.cjs → filterBar-GSTji96g.cjs} +1 -1
- package/dist/{fireCombustionCurve-DpcQ13zK.js → fireCombustionCurve-B3jAhOft.js} +3 -3
- package/dist/{fireCombustionCurve-z2iMEkbd.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
- package/dist/{fireFilterBar-BFJeB-8m.js → fireFilterBar-CH6iK0Xg.js} +2 -2
- package/dist/{fireFilterBar-iXGBx5Zi.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
- package/dist/{fireHistoryTable-E9Gx4Gqf.js → fireHistoryTable-CHxHqPs0.js} +2 -2
- package/dist/{fireHistoryTable-BE79laqx.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
- package/dist/{gag-naUs2e3c.js → gag-BsO4kmp1.js} +2 -2
- package/dist/{gag-Ce_-YYka.cjs → gag-BzjuwBvY.cjs} +1 -1
- package/dist/{gasStationList-Kbha10pX.js → gasStationList-7JzUcISs.js} +214 -276
- package/dist/gasStationList-QwqTDEAG.cjs +1 -0
- package/dist/{geo3dViewer-CnAgLJ_6.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
- package/dist/{geo3dViewer-CMISZOfo.js → geo3dViewer-doEpUC_J.js} +3 -3
- package/dist/{glbModel-Bw25mL_R.js → glbModel-BgFIj_es.js} +2 -2
- package/dist/{glbModel-CS8qUhON.cjs → glbModel-C6L--3dO.cjs} +1 -1
- package/dist/{globalObjectSelector-BcLO38lZ.js → globalObjectSelector-CdfiXRjg.js} +1 -1
- package/dist/{globalObjectSelector-BwoQjJGq.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
- package/dist/{gnssFilterBar-CfqJBy4d.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
- package/dist/{gnssFilterBar-bS10JYoi.js → gnssFilterBar-DPNshMIx.js} +2 -2
- package/dist/{gnssHistoryTable-CPs_w2gf.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
- package/dist/{gnssHistoryTable-CyingjiU.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
- package/dist/{gnssMapView-DD_L9jE0.js → gnssMapView-BWcS4hqj.js} +4 -4
- package/dist/{gnssMapView-KvzwIbK1.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
- package/dist/{gnssSectionProfile-DxkEsZQx.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
- package/dist/{gnssSectionProfile-DGYWQKML.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
- package/dist/{gnssTimeSeriesChart-KVg2GW1C.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
- package/dist/{gnssTimeSeriesChart-1bLKTD-e.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
- package/dist/{gnssXYTrajectory-B-d6rq3V.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
- package/dist/{gnssXYTrajectory-B-0h71U8.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
- package/dist/{grd-CqeXHXO2.js → grd-BLab9IY0.js} +20 -20
- package/dist/{grd-CbvQkv0q.cjs → grd-rJXqEimt.cjs} +1 -1
- package/dist/{grdIndass-BaHBsp5T.js → grdIndass-gGrZ7gRV.js} +6 -6
- package/dist/{grdIndass-_-7wqVjL.cjs → grdIndass-niY4UOwz.cjs} +1 -1
- package/dist/{grg-DmN25aj-.cjs → grg-C1L5yeyY.cjs} +1 -1
- package/dist/{grg-Cgpfx9kR.js → grg-Dnro7bLg.js} +6 -6
- package/dist/{gridview-B0haH8LS.js → gridview-BhjWlD0J.js} +2 -2
- package/dist/{gridview-DYYpW2MH.cjs → gridview-DxUsv2ny.cjs} +1 -1
- package/dist/{groundwaterFilterBar-mcMEwt9B.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
- package/dist/{groundwaterFilterBar-ClXMXCj6.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
- package/dist/{groundwaterProfileChart-BoRVOmen.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
- package/dist/{groundwaterProfileChart-Cfwfua8-.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
- package/dist/{groundwaterTimeCurve-BOarX2wf.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
- package/dist/{groundwaterTimeCurve-Czt7iLlt.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
- package/dist/{groupCard-2aS7lgg2.js → groupCard-D00ElZoy.js} +63 -53
- package/dist/{groupCard-DjUIJShv.cjs → groupCard-D4gdaVqR.cjs} +1 -1
- package/dist/{headerBar-u-0s0z16.js → headerBar-DEHj8fJr.js} +2 -2
- package/dist/{headerBar-5nL0hMXs.cjs → headerBar-MFw1W0qa.cjs} +1 -1
- package/dist/{history-BtX7uNYs.js → history-BRkb914v.js} +16 -16
- package/dist/{history-B-Ynlm5z.cjs → history-D1R2RAZQ.cjs} +1 -1
- package/dist/index-77aUdspY.cjs +612 -0
- package/dist/{index-DomNEEyv.js → index-BZpYmpDy.js} +3569 -2983
- package/dist/{insarDeformChart-KECXbG_n.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
- package/dist/{insarDeformChart-DVGZUwaX.js → insarDeformChart-pbOnnoN-.js} +2 -2
- package/dist/{insarImageViewer-BMk5v36R.js → insarImageViewer-D3bbQA6g.js} +2 -2
- package/dist/{insarImageViewer-CdJyowUc.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
- package/dist/{kds-DU8wNnhT.cjs → kds-D5seJB3L.cjs} +1 -1
- package/dist/{kds-CawaHOXh.js → kds-gTJOwHbM.js} +21 -21
- package/dist/{kpiCard-CAuX9-zP.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
- package/dist/{kpiCard-B5ZueB0g.js → kpiCard-Cx6VNK6L.js} +2 -2
- package/dist/{landslideMap-DGkSLtbi.js → landslideMap-5erIcZo7.js} +15 -15
- package/dist/{landslideMap-CImGVGDr.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
- package/dist/{landslideWarning-C8cHW-2p.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
- package/dist/{landslideWarning-BeQUD3uJ.js → landslideWarning-CzaddgWf.js} +14 -14
- package/dist/{layerTabs-DxX6yqOO.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
- package/dist/{layerTabs-CBr-oH28.js → layerTabs-DqbOykS2.js} +2 -2
- package/dist/{leaflet-src-BXugYdBe.js → leaflet-src-BY2SMh9y.js} +1 -1
- package/dist/{leaflet-src-VXn1CZcu.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
- package/dist/{lerc-td9bbpKy.js → lerc-Chm_GVte.js} +2 -2
- package/dist/{lerc-DJGGksD3.cjs → lerc-DGuyYCKG.cjs} +1 -1
- package/dist/{lin-vrv9_1Gw.cjs → lin-8x2j8aGa.cjs} +1 -1
- package/dist/{lin-DlD92hLY.js → lin-tqtSA5ci.js} +9 -9
- package/dist/{linIndass-DRZUPyVA.js → linIndass-DHFymSVI.js} +12 -12
- package/dist/{linIndass-BhvIJJ_-.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
- package/dist/{lst-BsGZwd4K.cjs → lst-BV6EbDPs.cjs} +1 -1
- package/dist/{lst-DHBMHjOM.js → lst-BejIuO0f.js} +2 -2
- package/dist/{manualEntry-zdYpuGoU.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
- package/dist/{manualEntry-gGLZH2mN.js → manualEntry-DObI0OAq.js} +2 -2
- package/dist/{mapBackground-DBXKXI9j.js → mapBackground-Cuym5Dqr.js} +3 -3
- package/dist/{mapBackground-U2NX5fCU.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
- package/dist/{mappingList-vLJbxZcd.cjs → mappingList-BEWAqLd4.cjs} +1 -1
- package/dist/{mappingList-D4KRWEkc.js → mappingList-Dzq0zMfs.js} +2 -2
- package/dist/{markdownViewer-DzZnOTO-.js → markdownViewer-Bz50jkb6.js} +2 -2
- package/dist/{markdownViewer-XvNb3eNT.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
- package/dist/{mix-control-modal-DjD4xOuc.js → mix-control-modal-DzVLdO3S.js} +7 -7
- package/dist/{mix-control-modal-DQnZbDGs.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
- package/dist/{mixGrid-CLEdWr86.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
- package/dist/{mixGrid-uzRHR_XB.js → mixGrid-tVSdKPms.js} +2 -2
- package/dist/mixdashboards.cjs +1 -1
- package/dist/mixdashboards.css +1 -1
- package/dist/mixdashboards.js +1 -1
- package/dist/{mixiotObjectListApi-DCuG7zc-.cjs → mixiotObjectListApi-BUQ-RZ3L.cjs} +1 -1
- package/dist/{mixiotObjectListApi-DP6wrrOJ.js → mixiotObjectListApi-D5vNNWgT.js} +1 -1
- package/dist/{mjpegCamera-D416oWYH.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
- package/dist/{mjpegCamera-y_pW209K.js → mjpegCamera-DnAPpFJU.js} +2 -2
- package/dist/{monitorAlert-BOJ4UrnO.js → monitorAlert-B-fTYPn6.js} +11 -11
- package/dist/{monitorAlert-Bq1MEu6y.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
- package/dist/{monitorData-CTVzSwsd.js → monitorData-Dopc660L.js} +7 -7
- package/dist/{monitorData-eE9QUfb3.cjs → monitorData-YhGSUq3H.cjs} +1 -1
- package/dist/{monitorSpeedChart-CnKy9z8m.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
- package/dist/{monitorSpeedChart-CUZat2mO.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
- package/dist/{mxa-ueyMsY-m.cjs → mxa-BzdI7BLB.cjs} +1 -1
- package/dist/{mxa-DDJJIW_n.js → mxa-D4WkyBYZ.js} +7 -7
- package/dist/{myValue-BdJdeV7Y.cjs → myValue-C0tq-asC.cjs} +1 -1
- package/dist/{myValue-jZIrcY-B.js → myValue-DYtBtOJ2.js} +2 -2
- package/dist/{myValueList-KoXkIHn0.cjs → myValueList-BJctRTNd.cjs} +1 -1
- package/dist/{myValueList-DYPYb3FQ.js → myValueList-Ddpn1S68.js} +2 -2
- package/dist/{objectList-Ct6UzSuD.cjs → objectList-Csf0hVwo.cjs} +1 -1
- package/dist/{objectList-CGYOZD6e.js → objectList-G4wXFDwe.js} +3 -3
- package/dist/{objectListAPP-DrymYbRw.js → objectListAPP-BrmUj4At.js} +3 -3
- package/dist/{objectListAPP-D0dHuEhF.cjs → objectListAPP-UZN4iuTn.cjs} +1 -1
- package/dist/{photo-DC0tNbgw.js → photo-BEPeK7U8.js} +2 -2
- package/dist/{photo-siDcsoGU.cjs → photo-BYH_qg5O.cjs} +1 -1
- package/dist/{pie-D9J75dIT.cjs → pie-B57zDxJV.cjs} +1 -1
- package/dist/{pie-I_Gqoxg_.js → pie-CEVKe1lL.js} +2 -2
- package/dist/{placeholder-BPjcnXBR.cjs → placeholder-BezBEQGo.cjs} +1 -1
- package/dist/{placeholder-BsmPsTrK.js → placeholder-Bwv3VyEg.js} +1 -1
- package/dist/{pressBtn-CXasqSG5.js → pressBtn-1LCNz2gE.js} +3 -3
- package/dist/{pressBtn-DkR5yC7c.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
- package/dist/{processTable-CprS7V6w.js → processTable-CHDazqah.js} +2 -2
- package/dist/{processTable-D2upRmGB.cjs → processTable-HtDeg1by.cjs} +1 -1
- package/dist/{progressBar-CHGUKjOk.cjs → progressBar-BP4SmPZK.cjs} +1 -1
- package/dist/{progressBar-BnDhCqnO.js → progressBar-C3NcWUrS.js} +2 -2
- package/dist/{progressCircle-DTSsucDj.js → progressCircle-Bo9-Qva_.js} +2 -2
- package/dist/{progressCircle-C7U0fPQv.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
- package/dist/{qrcode-B65TN3DU.js → qrcode-VmYwvClG.js} +2 -2
- package/dist/{qrcode-COSof3Xg.cjs → qrcode-qD6tOm4F.cjs} +1 -1
- package/dist/{raceBar-B-Dg_JeH.js → raceBar-DR2-luKW.js} +2 -2
- package/dist/{raceBar-DUTC68PY.cjs → raceBar-uAs91hyk.cjs} +1 -1
- package/dist/{rad-CQS9cZyM.js → rad-1Jy1KDzt.js} +2 -2
- package/dist/{rad-C-5BUzw2.cjs → rad-D7-YZJNO.cjs} +1 -1
- package/dist/{radarMapViewer-8GICTIhi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
- package/dist/{radarMapViewer-Bnzk9-oK.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
- package/dist/{rainfallFilterBar-2PbsD0mU.js → rainfallFilterBar-C1obotPf.js} +2 -2
- package/dist/{rainfallFilterBar-BAFB2Yla.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
- package/dist/{rainfallTimeCurve-D8deMaZA.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
- package/dist/{rainfallTimeCurve-pNf06cfu.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
- package/dist/{rangeLin-D1_RCrEG.cjs → rangeLin-COsJkCky.cjs} +1 -1
- package/dist/{rangeLin-DiCVHBXe.js → rangeLin-CdfUCFQr.js} +2 -2
- package/dist/{realtimeEvolutionMap-BwDjG4Cd.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
- package/dist/{realtimeEvolutionMap-BZ3odAWj.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
- package/dist/{regionBar-BZVsJdo6.cjs → regionBar-BYF7IaGA.cjs} +1 -1
- package/dist/{regionBar-C_C5cX2r.js → regionBar-DB-secNe.js} +2 -2
- package/dist/{request-CsiNbn80.js → request-CBsG4ipL.js} +7 -7
- package/dist/{request-B1HlG30f.cjs → request-CvdHjG34.cjs} +1 -1
- package/dist/{retainer1-CzyGsNUK.cjs → retainer1-1CFk4InO.cjs} +1 -1
- package/dist/{retainer1-DROmtfRa.js → retainer1-CMzTlM5Z.js} +3 -3
- package/dist/{retainer2-BCAnjUE9.js → retainer2-DW4ewYX7.js} +3 -3
- package/dist/{retainer2-1BaKVlim.cjs → retainer2-DliOH7it.cjs} +1 -1
- package/dist/{retainerRecordList-DIdk5Q5E.js → retainerRecordList-Bcm6leuD.js} +2 -2
- package/dist/{retainerRecordList-Ct_yDZds.cjs → retainerRecordList-DV7Tx39d.cjs} +1 -1
- package/dist/{retainerRecordListAPP-Bi6Ax0r6.js → retainerRecordListAPP-BDRwp8T3.js} +2 -2
- package/dist/{retainerRecordListAPP-DUqNtCCN.cjs → retainerRecordListAPP-CJ-u0Tj2.cjs} +1 -1
- package/dist/{ringTopN-BSWAdbso.js → ringTopN-Duq0pzm_.js} +2 -2
- package/dist/{ringTopN-CIusnN5O.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
- package/dist/{riskRegionTable-Lmup8bDM.js → riskRegionTable-BE_ggcEV.js} +7 -7
- package/dist/{riskRegionTable-0fHQGnVM.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
- package/dist/{sankey-D8Erc_QS.cjs → sankey-BqBn6_rx.cjs} +1 -1
- package/dist/{sankey-D99KciIH.js → sankey-CnKm9PZe.js} +5 -5
- package/dist/{scd-0yZCqQT2.js → scd-BaBLoem8.js} +2 -2
- package/dist/{scd-Bkse6tqJ.cjs → scd-BgJ5P7co.cjs} +1 -1
- package/dist/{sideMenu-B8Wf4m_8.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
- package/dist/{sideMenu-DZ2bbsp7.js → sideMenu-CUal1UQY.js} +2 -2
- package/dist/{slopeStability-B8u5QQaS.js → slopeStability-B9YbQLCE.js} +24 -24
- package/dist/{slopeStability-D2XSPa-Q.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
- package/dist/{speedCurve-BD8ajqAX.js → speedCurve-DERBMtE1.js} +2 -2
- package/dist/{speedCurve-CMZGeXjF.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
- package/dist/{stressFilterBar-Chq7rovQ.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
- package/dist/{stressFilterBar-Dpn3RUli.js → stressFilterBar-CHRWFnpP.js} +2 -2
- package/dist/{stressTimeCurve-D-wPq_W1.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
- package/dist/{stressTimeCurve-SRlS-9iL.js → stressTimeCurve-hrlqSYS3.js} +3 -3
- package/dist/{swiper-BBV8vKRh.cjs → swiper-CnGllhBQ.cjs} +1 -1
- package/dist/{swiper-DIFY95yz.js → swiper-DNHC412s.js} +2 -2
- package/dist/{terminalConfigList-Dom3--nE.js → terminalConfigList-BlHAsyCm.js} +2 -2
- package/dist/{terminalConfigList-DwA9ITHL.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
- package/dist/{terminalList-ClsF5hyg.cjs → terminalList-CNI3_FGb.cjs} +1 -1
- package/dist/{terminalList-DpB3UlZG.js → terminalList-UGjkhyf4.js} +2 -2
- package/dist/{terminalListAPP-Bu_KM5lV.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
- package/dist/{terminalListAPP-U6qqbtPw.js → terminalListAPP-CIJZMdxI.js} +2 -2
- package/dist/{textbox-DLDf0rM6.js → textbox-BD_LQ0EN.js} +2 -2
- package/dist/{textbox-CbF9pAtK.cjs → textbox-yNPnOaan.cjs} +1 -1
- package/dist/{timeQueryBar-CE9N3lDg.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
- package/dist/{timeQueryBar-ZAH6gs8Q.js → timeQueryBar-B-uPtN25.js} +1 -1
- package/dist/{timeSeries-0oO4KLxQ.cjs → timeSeries-BTUuojvj.cjs} +1 -1
- package/dist/{timeSeries-DvHAA0wU.js → timeSeries-DdQI4oZU.js} +19 -19
- package/dist/{timeSeriesCurve-BTuPg-3z.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
- package/dist/{timeSeriesCurve-Dyl9b667.js → timeSeriesCurve-TGXshTzl.js} +3 -3
- package/dist/{toggleBtn-CZoTmwAw.js → toggleBtn-BMxqm5WG.js} +2 -2
- package/dist/{toggleBtn-qDOJLJ7K.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-CxV8Ed97.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
- package/dist/{trajectoryConfigPanel-DwZvvYAl.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
- package/dist/{trajectoryScatter-CEFp9PB3.js → trajectoryScatter-DPE4cC8N.js} +2 -2
- package/dist/{trajectoryScatter-Dd8Ppxae.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
- package/dist/{universalConfigPanel-BAppgtmC.js → universalConfigPanel-CI1CuBmr.js} +1 -1
- package/dist/{universalConfigPanel-C7tTPczg.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
- package/dist/{universalTable-3JLC8oEV.js → universalTable-DMrgtBrw.js} +2 -2
- package/dist/{universalTable-COmdNAnW.cjs → universalTable-dQObEQog.cjs} +1 -1
- package/dist/{video-BtR163lf.js → video-DEhLie80.js} +2 -2
- package/dist/{video-8vSuQilp.cjs → video-DbsKQhVD.cjs} +1 -1
- package/dist/{videoMonitor-CdTNqBTI.js → videoMonitor-BS6_LYUb.js} +12 -12
- package/dist/{videoMonitor-BZwJZvno.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
- package/dist/{vlu-AozGL50n.cjs → vlu-DXk_wQf-.cjs} +1 -1
- package/dist/{vlu-DqeEDfiN.js → vlu-DaSjPY3I.js} +2 -2
- package/dist/{warningOverview-CV_pqizm.js → warningOverview-CKCEs_Jj.js} +3 -3
- package/dist/{warningOverview-CRaFyOXe.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
- package/dist/{weather-CLXe9W0L.cjs → weather-BAI0IWNH.cjs} +1 -1
- package/dist/{weather-iTeslV81.js → weather-XUj6pFwM.js} +2 -2
- package/dist/{windLin-u983PAHI.js → windLin-Bt4q2eUT.js} +2 -2
- package/dist/{windLin-BCMqmXdY.cjs → windLin-C9dsCT1w.cjs} +1 -1
- package/package.json +1 -1
- package/dist/bar-vpJvlBYX.cjs +0 -2
- package/dist/gasStationList-jfKZeg4P.cjs +0 -1
- package/dist/index-Cvu9nAQq.cjs +0 -612
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var St=Object.defineProperty,vt=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var bt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var nt=(v,r,N)=>r in v?St(v,r,{enumerable:!0,configurable:!0,writable:!0,value:N}):v[r]=N,st=(v,r)=>{for(var N in r||(r={}))bt.call(r,N)&&nt(v,N,r[N]);if(et)for(var N of et(r))Ct.call(r,N)&&nt(v,N,r[N]);return v},lt=(v,r)=>vt(v,Nt(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=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"),yt=require("@element-plus/icons-vue"),B=require("./index-Cvu9nAQq.cjs");require("element-plus");const Ot=require("./EChartComponentBase-BPiPzdtw.cjs"),xt=require("./titleStyle-NSnz6cUg.cjs"),at=require("./ele-lin-icon-Dke_1AmT.cjs"),W=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Dt=require("./install-C8buXQPI.cjs"),It=require("./install-CltTFs4e.cjs"),Et=require("./install-CYwVETsi.cjs"),_t={class:"mix-body"},Vt={class:"toolbar"},wt=["id"],At={DEFAULT_ICON:at.DEFAULT_ICON,ACTIVE_ICON:at.ACTIVE_ICON,NAME_CN:"聚类滑面关联",NAME_EN:"DeepClusterSlipSurface",ORDER:18,PLATFORM:["pc","screen"]},Tt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:40,xName:{value:"时间",type:"string",label:"X轴名称"},yLeftName:{value:"累计位移(mm)",type:"string",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"}}},it=[{name:"累计位移",fv:"disp_130",color:"#5470c6",object_id:""}],kt=["name","fv","color","object_id"],Lt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Mt={useAlias:!1,multiObject:!0,source:"mosaic"},$t={DEFAULT:At,OPTIONS:Tt,DATA:it,PARAMS:kt,SOURCE:Lt,COMMON:Mt},Ft=a.defineComponent(lt(st({},$t),{__name:"deepClusterSlipSurface",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){W.use([Dt.install,W.install,It.install,W.install$1,Et.install]);const r=v,N=B.useLinkStore(),w=a.ref([]),M=a.ref(new Map),P=t=>{if(t==null)return"";const e=typeof t=="string"?t:String(t),s=typeof t=="number"||/^\d+$/.test(e)?new Date(Number(t)):new Date(e);if(Number.isNaN(s.getTime()))return e;const i=s.getFullYear(),o=String(s.getMonth()+1).padStart(2,"0"),u=String(s.getDate()).padStart(2,"0"),d=String(s.getHours()).padStart(2,"0"),l=String(s.getMinutes()).padStart(2,"0"),f=String(s.getSeconds()).padStart(2,"0");return`${i}-${o}-${u} ${d}:${l}:${f}`};class rt extends Ot.EChartComponentBase{extractStyles(){const e=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),s=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",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",40),xName:this.getOptionValue("xName","时间"),yLeftName:this.getOptionValue("yLeftName","累计位移(mm)"),linkChannel:s}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=it),a.nextTick(()=>this.initChart())}setHistoryData(e){tt(e)}setSocketData(e){e&&tt(e)}setPanelConfig(e){this.panelConfig=e||{};const n=this.getChartInstance();n&&n.setOption(this.getChartOption(),!0)}onLinkEvent(e){Z(e)}getChartOption(){var d;const e=((d=r.conf)==null?void 0:d.data)||[],n=this.panelConfig||{},s=Object.keys(n).find(l=>l.endsWith("__yAxis")),i=s&&n[s]||n.range__yAxis||n.range__y||null,o=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,u=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null;return{animation:!0,animationDuration:500,animationDurationUpdate:700,animationEasing:"cubicOut",animationEasingUpdate:"cubicInOut",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:G.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:l=>F.value==="day"?q(l):P(l)}},yAxis:[{type:"value",name:this.Style.value.yLeftName,min:o!==null?o:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}}],series:e.filter(l=>!A.value||A.value.length===0?!1:A.value.includes(String(l==null?void 0:l.fv))).map((l,f)=>{const m=(l==null?void 0:l.fv)||`v${f}`,g=new Map;J.value.forEach(c=>{const h=c[m];h!=null&&g.set(String(c.t),Number(h))});const S=G.value.map(c=>g.has(c)?g.get(c):null);return{name:(l==null?void 0:l.name)||`序列${f+1}`,type:"line",smooth:.35,smoothMonotone:"x",showSymbol:!1,emphasis:{focus:"series",scale:!0},data:S,lineStyle:{color:(l==null?void 0:l.color)||"#5470c6",width:2},itemStyle:{color:(l==null?void 0:l.color)||"#5470c6"}}})}}}const O=new rt(r,"deepClusterSlipSurface"),ct=O.getEchartId();O.setupLifecycle();const H=O.getStyle(),ut=a.computed(()=>xt.generateTitleStyle(r.conf.options)),V=a.ref([]),A=a.ref(null),Y=a.ref(!1),X=a.ref(null),F=a.ref("hour"),K=a.ref([]),R=()=>{var n;if(Y.value||A.value&&A.value.length)return;const e=(((n=r.conf)==null?void 0:n.data)||[]).map(s=>String((s==null?void 0:s.logicKey)||(s==null?void 0:s.fv)||"")).filter(Boolean);A.value=e.length?e:null},U=t=>{if(t==null)return Number.NaN;const e=typeof t=="string"?t.trim():String(t);if(!e)return Number.NaN;if(/^\d+$/.test(e)){const n=Number(e);return e.length<=10?n*1e3:n}return new Date(e).getTime()},q=t=>{const e=U(t);if(Number.isNaN(e))return String(t||"").slice(0,10);const n=new Date(e),s=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return`${s}-${i}-${o}`},ft=(t,e)=>{if(!(e!=null&&e.startDate)&&!(e!=null&&e.endDate))return!0;const n=U(t);if(Number.isNaN(n))return!0;const s=e.startDate?U(e.startDate):Number.NEGATIVE_INFINITY,i=e.endDate?U(e.endDate):Number.POSITIVE_INFINITY,o=Number.isNaN(s)?Number.NEGATIVE_INFINITY:s,u=Number.isNaN(i)?Number.POSITIVE_INFINITY:i;return n>=o&&n<=u},dt=t=>{var i;const e=((i=r.conf)==null?void 0:i.data)||[];if(!t.length||!e.length)return t;const n=new Map;t.forEach(o=>{const u=q(o.t);n.has(u)||n.set(u,[]),n.get(u).push(o)});const s=[];return Array.from(n.entries()).forEach(([o,u])=>{const d={t:o};let l=!1;e.forEach(f=>{const m=f==null?void 0:f.fv;if(!m)return;let g=0,S=0;u.forEach(c=>{const h=Number(c[m]);Number.isFinite(h)&&(g+=h,S+=1)}),S>0&&(d[m]=Number((g/S).toFixed(6)),l=!0)}),l&&s.push(d)}),s.sort((o,u)=>String(o.t).localeCompare(String(u.t)))},ht=(t,e)=>{const n=String(t||"").trim(),s=String(e||"").trim();return!n||!s?!1:n===s?!0:F.value==="day"?q(n)===q(s):P(n)===P(s)},mt=a.computed(()=>{const t=F.value==="day"?dt(V.value):V.value;if(!t.length)return[];const e=X.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?t:t.filter(n=>ft(String(n.t),e))}),J=a.computed(()=>{const t=mt.value;return K.value.length>0?t.filter(e=>K.value.some(n=>ht(String(e.t),n))):t}),G=a.computed(()=>{const t=new Set;return J.value.forEach(e=>t.add(String(e.t))),Array.from(t).sort()});a.computed(()=>G.value.map(t=>F.value==="day"?q(t):P(t)));const z=()=>{a.nextTick(()=>{const t=O.getChartInstance();t&&t.setOption(O.getChartOption(),!0)})},pt=()=>{const t=O.getChartInstance();if(!t)return;const e=t.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=e,n.download=`cluster-slip-${selectedTime.value||Date.now()}.png`,n.click()},Q=()=>{var s,i,o;const t=((s=r.conf)==null?void 0:s.options)||{},e=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||H.value.linkChannel||"deepDisplacement",n=((o=t==null?void 0:t.customChannel)==null?void 0:o.value)||"";return e==="custom"&&n?n:e},gt=t=>{var o,u,d;const e=((o=r.conf)==null?void 0:o.data)||[];if(e.length===0)return[];if(Array.isArray(t==null?void 0:t.data))return t.data.map((l,f)=>{var S,c;const m={t:String((c=(S=l==null?void 0:l.time)!=null?S:l==null?void 0:l.datetime)!=null?c:f)};let g=!1;return e.forEach(h=>{const I=h==null?void 0:h.fv;I&&(l==null?void 0:l[I])!==void 0&&(l==null?void 0:l[I])!==null&&(m[I]=Number(l==null?void 0:l[I]),g=!0)}),g?m:null}).filter(Boolean);const s={t:String((d=(u=t==null?void 0:t.time)!=null?u:t==null?void 0:t.datetime)!=null?d:Date.now())};let i=!1;return e.forEach(l=>{const f=l==null?void 0:l.fv;if(!f)return;const m=t==null?void 0:t[f];m!=null&&M.value.set(f,Number(m)),M.value.has(f)&&(s[f]=M.value.get(f),i=!0)}),i?[s]:[]},Z=t=>{var d,l,f,m,g,S;if(!t||!t.payload)return;const e=Q();if((d=t.topic)!=null&&d.channel&&e&&t.topic.channel!==e||!N.shouldHandle(t,"deepClusterSlipSurface"))return;const n=t.payload;if((n==null?void 0:n.type)==="filter"){const c=n.filter||n,h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id),E=((f=(((l=r.conf)==null?void 0:l.data)||[])[0])==null?void 0:f.configPanelId)||"",C=[r.uid,(m=r.conf)==null?void 0:m.id,(g=r.conf)==null?void 0:g.uid,E].map(y=>String(y||"").trim()).filter(Boolean).includes(String(h||"").trim());if(!h||!C)return;O.setPanelConfig(c);const T=c.nodeList||c.selectList||c.options||c.selectedNodes,_=Array.isArray(T)?T.map(String):null;Y.value=Array.isArray(T),A.value=_&&_.length>0?_:[],Y.value||R();const x=Object.entries(c||{}).find(([y,L])=>{if(!L||typeof L!="object"||Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")&&j.includes("range")||!!L.startDate&&!!L.endDate}),p=(x==null?void 0:x[1])||c.timeRange||c.range||null;X.value=p&&(p.startDate||p.endDate)?{startDate:p.startDate,endDate:p.endDate}:null;const D=String((p==null?void 0:p.granularity)||(c==null?void 0:c.granularity)||"").toLowerCase();(D==="day"||D==="hour")&&(F.value=D);const k=Object.entries(c||{}).find(([y,L])=>{if(!Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")||j.includes("date")}),$=c.timeList||c.selectedTimes||(k==null?void 0:k[1]);K.value=Array.isArray($)?$.map(y=>String(y)):[],z();return}const s=r.conf,i=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(i.length>0&&!(o!=null&&o.multiObject)){const c=B.getObjectId(o,o==null?void 0:o.useAlias,r.uid)||((S=i[0])==null?void 0:S.object_id),h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(c&&h&&String(c)!==String(h))return}const u=gt(n);u.length&&(V.value=u.length===1?[...V.value.slice(-199),...u]:u,R(),z())},tt=t=>{var l,f,m,g,S,c,h,I;const e=r.conf,n=(e==null?void 0:e.data)||[],s=(e==null?void 0:e.common)||{},i=(s==null?void 0:s.source)||"mosaic";let o=t;["statistics","calculate"].includes(i)&&(o=B.formatStatisticsResult(o,n));const u=n||[],d=[];if((l=o==null?void 0:o.history)!=null&&l.length)o.history.forEach((E,b)=>{var p,D;const C=(E==null?void 0:E[0])||E||{},_={t:String((D=(p=C==null?void 0:C.time)!=null?p:C==null?void 0:C.datetime)!=null?D:b)};let x=!1;u.forEach(k=>{const $=k==null?void 0:k.fv;if(!$)return;const y=C==null?void 0:C[$];y!=null&&(_[$]=Number(y),x=!0)}),x&&d.push(_)}),w.value=d,V.value=[...w.value],R();else{const E=B.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((f=n[0])==null?void 0:f.object_id),b=E&&((g=(m=o==null?void 0:o[E])==null?void 0:m[i])==null?void 0:g.data)||((S=o==null?void 0:o[i])==null?void 0:S.data)||(o==null?void 0:o.data)||o,T={t:String((h=(c=b==null?void 0:b.time)!=null?c:b==null?void 0:b.datetime)!=null?h:Date.now())};let _=!1;u.forEach(x=>{const p=x==null?void 0:x.fv;if(!p)return;const D=b==null?void 0:b[p];D!=null&&M.value.set(p,Number(D)),M.value.has(p)&&(T[p]=M.value.get(p),_=!0)}),_&&d.push(T),d.length&&(w.value=[...w.value,...d],V.value=[...w.value],R())}!d.length&&!((I=o==null?void 0:o.history)!=null&&I.length)||z()};return a.watch(()=>N.channels[Q()],t=>{t&&Z(t)},{deep:!0}),a.watchEffect(()=>{r.conf.socketData&&O.setSocketData(r.conf.socketData)}),a.watch(()=>{var t;return(t=r.conf)==null?void 0:t.options},()=>{O.getStyle().value=O.extractStyles(),z()},{deep:!0}),a.onMounted(()=>{if(r.mode==="edit"&&!V.value.length){const t=["2026-03-05","2026-03-04","2026-03-03"],e=[];t.forEach(n=>{for(let s=0;s<24;s++){const i=`${n} ${String(s).padStart(2,"0")}:00:00`;e.push({t:i,disp:Number((s*1.8+Math.sin(s/3)*2).toFixed(2)),slip:Number(Math.max(0,Math.min(1,.25+s*.02+Math.sin(s/4)*.08)).toFixed(3))})}}),w.value=e,V.value=[...w.value]}R(),z()}),(t,e)=>{const n=ot.ElIcon,s=ot.ElButton;return a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(H).bgColor,borderRadius:`${a.unref(H).radiusSize}px`})},[a.unref(H).isHideTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"mix-title",style:a.normalizeStyle(ut.value)},a.toDisplayString(v.conf.caption||v.conf.name),5)),a.createElementVNode("div",_t,[a.createElementVNode("div",Vt,[a.createVNode(s,{size:"small",class:"export-btn",onClick:pt},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createVNode(a.unref(yt.Download))]),_:1}),e[0]||(e[0]=a.createTextVNode(" 导出图 ",-1))]),_:1})]),a.createElementVNode("div",{class:"echart-container",id:a.unref(ct)},null,8,wt)]),a.renderSlot(t.$slots,"default",{},void 0,!0)],4)}}})),Rt=B._export_sfc(Ft,[["__scopeId","data-v-98d6e980"]]);exports.default=Rt;
|
|
1
|
+
"use strict";var St=Object.defineProperty,vt=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var bt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var nt=(v,r,N)=>r in v?St(v,r,{enumerable:!0,configurable:!0,writable:!0,value:N}):v[r]=N,st=(v,r)=>{for(var N in r||(r={}))bt.call(r,N)&&nt(v,N,r[N]);if(et)for(var N of et(r))Ct.call(r,N)&&nt(v,N,r[N]);return v},lt=(v,r)=>vt(v,Nt(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=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"),yt=require("@element-plus/icons-vue"),B=require("./index-77aUdspY.cjs");require("element-plus");const Ot=require("./EChartComponentBase-D9EUh4BZ.cjs"),xt=require("./titleStyle-NSnz6cUg.cjs"),at=require("./ele-lin-icon-Dke_1AmT.cjs"),W=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Dt=require("./install-C8buXQPI.cjs"),It=require("./install-CltTFs4e.cjs"),Et=require("./install-CYwVETsi.cjs"),_t={class:"mix-body"},Vt={class:"toolbar"},wt=["id"],At={DEFAULT_ICON:at.DEFAULT_ICON,ACTIVE_ICON:at.ACTIVE_ICON,NAME_CN:"聚类滑面关联",NAME_EN:"DeepClusterSlipSurface",ORDER:18,PLATFORM:["pc","screen"]},Tt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:40,xName:{value:"时间",type:"string",label:"X轴名称"},yLeftName:{value:"累计位移(mm)",type:"string",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"}}},it=[{name:"累计位移",fv:"disp_130",color:"#5470c6",object_id:""}],kt=["name","fv","color","object_id"],Lt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Mt={useAlias:!1,multiObject:!0,source:"mosaic"},$t={DEFAULT:At,OPTIONS:Tt,DATA:it,PARAMS:kt,SOURCE:Lt,COMMON:Mt},Ft=a.defineComponent(lt(st({},$t),{__name:"deepClusterSlipSurface",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){W.use([Dt.install,W.install,It.install,W.install$1,Et.install]);const r=v,N=B.useLinkStore(),w=a.ref([]),M=a.ref(new Map),P=t=>{if(t==null)return"";const e=typeof t=="string"?t:String(t),s=typeof t=="number"||/^\d+$/.test(e)?new Date(Number(t)):new Date(e);if(Number.isNaN(s.getTime()))return e;const i=s.getFullYear(),o=String(s.getMonth()+1).padStart(2,"0"),u=String(s.getDate()).padStart(2,"0"),d=String(s.getHours()).padStart(2,"0"),l=String(s.getMinutes()).padStart(2,"0"),f=String(s.getSeconds()).padStart(2,"0");return`${i}-${o}-${u} ${d}:${l}:${f}`};class rt extends Ot.EChartComponentBase{extractStyles(){const e=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),s=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",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",40),xName:this.getOptionValue("xName","时间"),yLeftName:this.getOptionValue("yLeftName","累计位移(mm)"),linkChannel:s}}init(){var e;this.Style.value=this.extractStyles(),this.applyTheme(),(e=this.props.conf.data)!=null&&e.length||(this.props.conf.data=it),a.nextTick(()=>this.initChart())}setHistoryData(e){tt(e)}setSocketData(e){e&&tt(e)}setPanelConfig(e){this.panelConfig=e||{};const n=this.getChartInstance();n&&n.setOption(this.getChartOption(),!0)}onLinkEvent(e){Z(e)}getChartOption(){var d;const e=((d=r.conf)==null?void 0:d.data)||[],n=this.panelConfig||{},s=Object.keys(n).find(l=>l.endsWith("__yAxis")),i=s&&n[s]||n.range__yAxis||n.range__y||null,o=Number.isFinite(i==null?void 0:i.min)?Number(i==null?void 0:i.min):null,u=Number.isFinite(i==null?void 0:i.max)?Number(i==null?void 0:i.max):null;return{animation:!0,animationDuration:500,animationDurationUpdate:700,animationEasing:"cubicOut",animationEasingUpdate:"cubicInOut",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:G.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:l=>F.value==="day"?q(l):P(l)}},yAxis:[{type:"value",name:this.Style.value.yLeftName,min:o!==null?o:null,max:u!==null?u:null,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}}],series:e.filter(l=>!A.value||A.value.length===0?!1:A.value.includes(String(l==null?void 0:l.fv))).map((l,f)=>{const m=(l==null?void 0:l.fv)||`v${f}`,g=new Map;J.value.forEach(c=>{const h=c[m];h!=null&&g.set(String(c.t),Number(h))});const S=G.value.map(c=>g.has(c)?g.get(c):null);return{name:(l==null?void 0:l.name)||`序列${f+1}`,type:"line",smooth:.35,smoothMonotone:"x",showSymbol:!1,emphasis:{focus:"series",scale:!0},data:S,lineStyle:{color:(l==null?void 0:l.color)||"#5470c6",width:2},itemStyle:{color:(l==null?void 0:l.color)||"#5470c6"}}})}}}const O=new rt(r,"deepClusterSlipSurface"),ct=O.getEchartId();O.setupLifecycle();const H=O.getStyle(),ut=a.computed(()=>xt.generateTitleStyle(r.conf.options)),V=a.ref([]),A=a.ref(null),Y=a.ref(!1),X=a.ref(null),F=a.ref("hour"),K=a.ref([]),R=()=>{var n;if(Y.value||A.value&&A.value.length)return;const e=(((n=r.conf)==null?void 0:n.data)||[]).map(s=>String((s==null?void 0:s.logicKey)||(s==null?void 0:s.fv)||"")).filter(Boolean);A.value=e.length?e:null},U=t=>{if(t==null)return Number.NaN;const e=typeof t=="string"?t.trim():String(t);if(!e)return Number.NaN;if(/^\d+$/.test(e)){const n=Number(e);return e.length<=10?n*1e3:n}return new Date(e).getTime()},q=t=>{const e=U(t);if(Number.isNaN(e))return String(t||"").slice(0,10);const n=new Date(e),s=n.getFullYear(),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0");return`${s}-${i}-${o}`},ft=(t,e)=>{if(!(e!=null&&e.startDate)&&!(e!=null&&e.endDate))return!0;const n=U(t);if(Number.isNaN(n))return!0;const s=e.startDate?U(e.startDate):Number.NEGATIVE_INFINITY,i=e.endDate?U(e.endDate):Number.POSITIVE_INFINITY,o=Number.isNaN(s)?Number.NEGATIVE_INFINITY:s,u=Number.isNaN(i)?Number.POSITIVE_INFINITY:i;return n>=o&&n<=u},dt=t=>{var i;const e=((i=r.conf)==null?void 0:i.data)||[];if(!t.length||!e.length)return t;const n=new Map;t.forEach(o=>{const u=q(o.t);n.has(u)||n.set(u,[]),n.get(u).push(o)});const s=[];return Array.from(n.entries()).forEach(([o,u])=>{const d={t:o};let l=!1;e.forEach(f=>{const m=f==null?void 0:f.fv;if(!m)return;let g=0,S=0;u.forEach(c=>{const h=Number(c[m]);Number.isFinite(h)&&(g+=h,S+=1)}),S>0&&(d[m]=Number((g/S).toFixed(6)),l=!0)}),l&&s.push(d)}),s.sort((o,u)=>String(o.t).localeCompare(String(u.t)))},ht=(t,e)=>{const n=String(t||"").trim(),s=String(e||"").trim();return!n||!s?!1:n===s?!0:F.value==="day"?q(n)===q(s):P(n)===P(s)},mt=a.computed(()=>{const t=F.value==="day"?dt(V.value):V.value;if(!t.length)return[];const e=X.value;return!(e!=null&&e.startDate)&&!(e!=null&&e.endDate)?t:t.filter(n=>ft(String(n.t),e))}),J=a.computed(()=>{const t=mt.value;return K.value.length>0?t.filter(e=>K.value.some(n=>ht(String(e.t),n))):t}),G=a.computed(()=>{const t=new Set;return J.value.forEach(e=>t.add(String(e.t))),Array.from(t).sort()});a.computed(()=>G.value.map(t=>F.value==="day"?q(t):P(t)));const z=()=>{a.nextTick(()=>{const t=O.getChartInstance();t&&t.setOption(O.getChartOption(),!0)})},pt=()=>{const t=O.getChartInstance();if(!t)return;const e=t.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=e,n.download=`cluster-slip-${selectedTime.value||Date.now()}.png`,n.click()},Q=()=>{var s,i,o;const t=((s=r.conf)==null?void 0:s.options)||{},e=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||H.value.linkChannel||"deepDisplacement",n=((o=t==null?void 0:t.customChannel)==null?void 0:o.value)||"";return e==="custom"&&n?n:e},gt=t=>{var o,u,d;const e=((o=r.conf)==null?void 0:o.data)||[];if(e.length===0)return[];if(Array.isArray(t==null?void 0:t.data))return t.data.map((l,f)=>{var S,c;const m={t:String((c=(S=l==null?void 0:l.time)!=null?S:l==null?void 0:l.datetime)!=null?c:f)};let g=!1;return e.forEach(h=>{const I=h==null?void 0:h.fv;I&&(l==null?void 0:l[I])!==void 0&&(l==null?void 0:l[I])!==null&&(m[I]=Number(l==null?void 0:l[I]),g=!0)}),g?m:null}).filter(Boolean);const s={t:String((d=(u=t==null?void 0:t.time)!=null?u:t==null?void 0:t.datetime)!=null?d:Date.now())};let i=!1;return e.forEach(l=>{const f=l==null?void 0:l.fv;if(!f)return;const m=t==null?void 0:t[f];m!=null&&M.value.set(f,Number(m)),M.value.has(f)&&(s[f]=M.value.get(f),i=!0)}),i?[s]:[]},Z=t=>{var d,l,f,m,g,S;if(!t||!t.payload)return;const e=Q();if((d=t.topic)!=null&&d.channel&&e&&t.topic.channel!==e||!N.shouldHandle(t,"deepClusterSlipSurface"))return;const n=t.payload;if((n==null?void 0:n.type)==="filter"){const c=n.filter||n,h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id),E=((f=(((l=r.conf)==null?void 0:l.data)||[])[0])==null?void 0:f.configPanelId)||"",C=[r.uid,(m=r.conf)==null?void 0:m.id,(g=r.conf)==null?void 0:g.uid,E].map(y=>String(y||"").trim()).filter(Boolean).includes(String(h||"").trim());if(!h||!C)return;O.setPanelConfig(c);const T=c.nodeList||c.selectList||c.options||c.selectedNodes,_=Array.isArray(T)?T.map(String):null;Y.value=Array.isArray(T),A.value=_&&_.length>0?_:[],Y.value||R();const x=Object.entries(c||{}).find(([y,L])=>{if(!L||typeof L!="object"||Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")&&j.includes("range")||!!L.startDate&&!!L.endDate}),p=(x==null?void 0:x[1])||c.timeRange||c.range||null;X.value=p&&(p.startDate||p.endDate)?{startDate:p.startDate,endDate:p.endDate}:null;const D=String((p==null?void 0:p.granularity)||(c==null?void 0:c.granularity)||"").toLowerCase();(D==="day"||D==="hour")&&(F.value=D);const k=Object.entries(c||{}).find(([y,L])=>{if(!Array.isArray(L))return!1;const j=String(y||"").toLowerCase();return j.includes("time")||j.includes("date")}),$=c.timeList||c.selectedTimes||(k==null?void 0:k[1]);K.value=Array.isArray($)?$.map(y=>String(y)):[],z();return}const s=r.conf,i=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(i.length>0&&!(o!=null&&o.multiObject)){const c=B.getObjectId(o,o==null?void 0:o.useAlias,r.uid)||((S=i[0])==null?void 0:S.object_id),h=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(c&&h&&String(c)!==String(h))return}const u=gt(n);u.length&&(V.value=u.length===1?[...V.value.slice(-199),...u]:u,R(),z())},tt=t=>{var l,f,m,g,S,c,h,I;const e=r.conf,n=(e==null?void 0:e.data)||[],s=(e==null?void 0:e.common)||{},i=(s==null?void 0:s.source)||"mosaic";let o=t;["statistics","calculate"].includes(i)&&(o=B.formatStatisticsResult(o,n));const u=n||[],d=[];if((l=o==null?void 0:o.history)!=null&&l.length)o.history.forEach((E,b)=>{var p,D;const C=(E==null?void 0:E[0])||E||{},_={t:String((D=(p=C==null?void 0:C.time)!=null?p:C==null?void 0:C.datetime)!=null?D:b)};let x=!1;u.forEach(k=>{const $=k==null?void 0:k.fv;if(!$)return;const y=C==null?void 0:C[$];y!=null&&(_[$]=Number(y),x=!0)}),x&&d.push(_)}),w.value=d,V.value=[...w.value],R();else{const E=B.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((f=n[0])==null?void 0:f.object_id),b=E&&((g=(m=o==null?void 0:o[E])==null?void 0:m[i])==null?void 0:g.data)||((S=o==null?void 0:o[i])==null?void 0:S.data)||(o==null?void 0:o.data)||o,T={t:String((h=(c=b==null?void 0:b.time)!=null?c:b==null?void 0:b.datetime)!=null?h:Date.now())};let _=!1;u.forEach(x=>{const p=x==null?void 0:x.fv;if(!p)return;const D=b==null?void 0:b[p];D!=null&&M.value.set(p,Number(D)),M.value.has(p)&&(T[p]=M.value.get(p),_=!0)}),_&&d.push(T),d.length&&(w.value=[...w.value,...d],V.value=[...w.value],R())}!d.length&&!((I=o==null?void 0:o.history)!=null&&I.length)||z()};return a.watch(()=>N.channels[Q()],t=>{t&&Z(t)},{deep:!0}),a.watchEffect(()=>{r.conf.socketData&&O.setSocketData(r.conf.socketData)}),a.watch(()=>{var t;return(t=r.conf)==null?void 0:t.options},()=>{O.getStyle().value=O.extractStyles(),z()},{deep:!0}),a.onMounted(()=>{if(r.mode==="edit"&&!V.value.length){const t=["2026-03-05","2026-03-04","2026-03-03"],e=[];t.forEach(n=>{for(let s=0;s<24;s++){const i=`${n} ${String(s).padStart(2,"0")}:00:00`;e.push({t:i,disp:Number((s*1.8+Math.sin(s/3)*2).toFixed(2)),slip:Number(Math.max(0,Math.min(1,.25+s*.02+Math.sin(s/4)*.08)).toFixed(3))})}}),w.value=e,V.value=[...w.value]}R(),z()}),(t,e)=>{const n=ot.ElIcon,s=ot.ElButton;return a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(H).bgColor,borderRadius:`${a.unref(H).radiusSize}px`})},[a.unref(H).isHideTitle?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"mix-title",style:a.normalizeStyle(ut.value)},a.toDisplayString(v.conf.caption||v.conf.name),5)),a.createElementVNode("div",_t,[a.createElementVNode("div",Vt,[a.createVNode(s,{size:"small",class:"export-btn",onClick:pt},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createVNode(a.unref(yt.Download))]),_:1}),e[0]||(e[0]=a.createTextVNode(" 导出图 ",-1))]),_:1})]),a.createElementVNode("div",{class:"echart-container",id:a.unref(ct)},null,8,wt)]),a.renderSlot(t.$slots,"default",{},void 0,!0)],4)}}})),Rt=B._export_sfc(Ft,[["__scopeId","data-v-98d6e980"]]);exports.default=Rt;
|
|
@@ -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 Vt, ref as A, computed as P, watch as lt, watchEffect as kt, onMounted as Tt, openBlock as rt, createElementBlock as ct, normalizeStyle as ut, unref as H, toDisplayString as Lt, createCommentVNode as Mt, createElementVNode as q, createVNode as J, withCtx as ft, createTextVNode as $t, renderSlot as Ft, nextTick as dt } from "vue";
|
|
18
18
|
import { Download as Rt } from "@element-plus/icons-vue";
|
|
19
|
-
import { l as zt,
|
|
19
|
+
import { l as zt, O as ht, N as jt, _ as Bt } from "./index-BZpYmpDy.js";
|
|
20
20
|
import "element-plus";
|
|
21
|
-
import { E as Pt } from "./EChartComponentBase-
|
|
21
|
+
import { E as Pt } from "./EChartComponentBase-i76OGL3z.js";
|
|
22
22
|
import { g as Ht } from "./titleStyle-BT5GlpAb.js";
|
|
23
23
|
import { A as Ut, D as Yt } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
24
24
|
import { u as Kt, i as Gt, a as Wt } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var F=Object.defineProperty,z=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var j=(c,i,r)=>i in c?F(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,A=(c,i)=>{for(var r in i||(i={}))q.call(i,r)&&j(c,r,i[r]);if(B)for(var r of B(i))H.call(i,r)&&j(c,r,i[r]);return c},R=(c,i)=>z(c,$(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const P=require("./BaseComponent-
|
|
1
|
+
"use strict";var F=Object.defineProperty,z=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var j=(c,i,r)=>i in c?F(c,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):c[i]=r,A=(c,i)=>{for(var r in i||(i={}))q.call(i,r)&&j(c,r,i[r]);if(B)for(var r of B(i))H.call(i,r)&&j(c,r,i[r]);return c},R=(c,i)=>z(c,$(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const P=require("./BaseComponent-BmhMoM4H.cjs"),C=require("./index-77aUdspY.cjs"),U=require("./titleStyle-NSnz6cUg.cjs"),I=require("./ele-gridview-icon-D3GcssP6.cjs"),G={class:"mix-body"},W={class:"table-wrap"},J={class:"matrix-table"},K={class:"time-col"},Q={key:0},X=["colspan"],Y={DEFAULT_ICON:I.DEFAULT_ICON,ACTIVE_ICON:I.ACTIVE_ICON,NAME_CN:"深部位移矩阵表",NAME_EN:"DeepDataMatrix",ORDER:20,PLATFORM:["pc","screen"]},Z={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,maxRows:{value:50,type:"number",label:"最大显示行数"},decimal:{value:3,type:"number",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"}}},T=[{name:"合位移",fv:"disp_130",depth:-130,color:"#5470c6",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#5470c6",object_id:""}],ee=["name","fv","depth","color","object_id"],te=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],ne={useAlias:!1,multiObject:!0,source:"mosaic"},le={DEFAULT:Y,OPTIONS:Z,DATA:T,PARAMS:ee,SOURCE:te,COMMON:ne},ae=e.defineComponent(R(A({},le),{__name:"deepDataMatrix",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(c){const i=c,r=C.useLinkStore();class L extends P.BaseComponent{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),o=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),maxRows:this.getOptionValue("maxRows",50),decimal:this.getOptionValue("decimal",3),linkChannel:o}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=T)}setHistoryData(n){V(n)}setSocketData(n){n&&V(n)}onLinkEvent(n){N(n)}}const v=new L(i,"deepDataMatrix");v.setupLifecycle();const g=v.getStyle(),w=e.computed(()=>U.generateTitleStyle(i.conf.options)),d=e.ref([]),O=e.computed(()=>{const a=new Set;return d.value.forEach(n=>{Object.keys(n.values).forEach(t=>a.add(Number(t)))}),Array.from(a).sort((n,t)=>n-t)}),x=e.computed(()=>{var n,t,o,s,l;const a=Math.max(1,Number((l=(s=(o=(t=(n=i.conf)==null?void 0:n.options)==null?void 0:t.maxRows)==null?void 0:o.value)!=null?s:g.value.maxRows)!=null?l:50));return d.value.slice(Math.max(0,d.value.length-a))}),_=a=>{var t,o,s,l,u;const n=Math.max(0,Number((u=(l=(s=(o=(t=i.conf)==null?void 0:t.options)==null?void 0:o.decimal)==null?void 0:s.value)!=null?l:g.value.decimal)!=null?u:3));return a.toFixed(n)},D=()=>{var o,s,l;const a=((o=i.conf)==null?void 0:o.options)||{},n=((s=a==null?void 0:a.linkChannel)==null?void 0:s.value)||g.value.linkChannel||"deepDisplacement",t=((l=a==null?void 0:a.customChannel)==null?void 0:l.value)||"";return n==="custom"&&t?t:n},S=a=>{var o;const n=((o=i.conf)==null?void 0:o.data)||[],t=[];return a.forEach((s,l)=>{var h,m;const u=String((m=(h=s==null?void 0:s.time)!=null?h:s==null?void 0:s.datetime)!=null?m:l),p={};n.forEach(f=>{const k=f.fv,b=Number(s==null?void 0:s[k]);if(Number.isFinite(b)){const E=-Math.abs(parseFloat(k));p[E]=_(b)}}),Object.keys(p).length&&t.push({time:u,values:p})}),t},N=a=>{var p,h;if(i.mode==="edit"||!a||!a.payload)return;const n=D();if((p=a.topic)!=null&&p.channel&&n&&a.topic.channel!==n||!r.shouldHandle(a,"deepDataMatrix"))return;const t=a.payload;if((t==null?void 0:t.type)==="filter")return;const o=i.conf,s=(o==null?void 0:o.data)||[],l=(o==null?void 0:o.common)||{};if(s.length>0&&!(l!=null&&l.multiObject)){const m=C.getObjectId(l,l==null?void 0:l.useAlias,i.uid)||((h=s[0])==null?void 0:h.object_id),f=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(m&&f&&String(m)!==String(f))return}if(Array.isArray(t==null?void 0:t.data)){const m=S(t.data);m.length&&(d.value=m);return}const u=S([t]);u.length&&(d.value=[...d.value.slice(-199),...u])},V=a=>{var m,f,k,b;const n=i.conf,t=(n==null?void 0:n.data)||[],o=(n==null?void 0:n.common)||{},s=(o==null?void 0:o.source)||"mosaic";let l=a;if(["statistics","calculate"].includes(s)&&(l=C.formatStatisticsResult(l,t)),(m=l==null?void 0:l.history)!=null&&m.length){const E=l.history.map(y=>(y==null?void 0:y[0])||y||{}),M=S(E);M.length&&(d.value=M);return}const u=o!=null&&o.multiObject?"":C.getObjectId(o,o==null?void 0:o.useAlias,i.uid),p=u&&((k=(f=l==null?void 0:l[u])==null?void 0:f[s])==null?void 0:k.data)||((b=l==null?void 0:l[s])==null?void 0:b.data)||(l==null?void 0:l.data)||l,h=S([p]);h.length&&(d.value=[...d.value.slice(-199),...h])};return e.watch(()=>r.channels[D()],a=>{a&&N(a)},{deep:!0}),e.watchEffect(()=>{i.conf.socketData&&v.setSocketData(i.conf.socketData)}),e.watch(()=>{var a;return(a=i.conf)==null?void 0:a.options},()=>{v.getStyle().value=v.extractStyles()},{deep:!0}),e.onMounted(()=>{if(i.mode==="edit"&&!d.value.length){const a=[],n=[-78,-75,-72,-69,-66,-63];for(let t=0;t<8;t++){const o=`2026-03-05 ${String(t).padStart(2,"0")}:00:00`,s={};n.forEach((l,u)=>{const p=5+u*.8+t*.2+Math.sin(t+u)*.3;s[l]=_(p)}),a.push({time:o,values:s})}d.value=a}}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(g).bgColor,borderRadius:`${e.unref(g).radiusSize}px`})},[e.unref(g).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(w.value)},e.toDisplayString(c.conf.caption||c.conf.name),5)),e.createElementVNode("div",G,[e.createElementVNode("div",W,[e.createElementVNode("table",J,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[n[0]||(n[0]=e.createElementVNode("th",{class:"time-col"},"采集时间",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,t=>(e.openBlock(),e.createElementBlock("th",{key:`head-${t}`},e.toDisplayString(t)+"米",1))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(t,o)=>(e.openBlock(),e.createElementBlock("tr",{key:`row-${o}-${t.time}`},[e.createElementVNode("td",K,e.toDisplayString(t.time),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(O.value,s=>{var l;return e.openBlock(),e.createElementBlock("td",{key:`cell-${o}-${s}`},e.toDisplayString((l=t.values[s])!=null?l:"--"),1)}),128))]))),128)),x.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("tr",Q,[e.createElementVNode("td",{colspan:Math.max(2,O.value.length+1),class:"empty-cell"},"暂无数据",8,X)]))])])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4))}})),oe=C._export_sfc(ae,[["__scopeId","data-v-670aa6dd"]]);exports.default=oe;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var J = Object.defineProperty, K = Object.defineProperties;
|
|
2
2
|
var Q = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var L = Object.getOwnPropertySymbols;
|
|
4
4
|
var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var z = (i, o, c) => o in i ? J(i, o, { enumerable: !0, configurable: !0, writable: !0, value: c }) : i[o] = c, $ = (i, o) => {
|
|
6
6
|
for (var c in o || (o = {}))
|
|
7
7
|
X.call(o, c) && z(i, c, o[c]);
|
|
8
|
-
if (
|
|
9
|
-
for (var c of
|
|
8
|
+
if (L)
|
|
9
|
+
for (var c of L(o))
|
|
10
10
|
Y.call(o, c) && z(i, c, o[c]);
|
|
11
11
|
return i;
|
|
12
12
|
}, F = (i, o) => K(i, Q(o));
|
|
13
13
|
import { defineComponent as Z, computed as M, ref as tt, watch as H, watchEffect as et, onMounted as nt, openBlock as p, createElementBlock as h, normalizeStyle as B, unref as E, toDisplayString as y, createCommentVNode as P, createElementVNode as f, Fragment as j, renderList as A, renderSlot as at } from "vue";
|
|
14
14
|
import "html2canvas";
|
|
15
|
-
import { B as st } from "./BaseComponent-
|
|
16
|
-
import { l as lt,
|
|
15
|
+
import { B as st } from "./BaseComponent-CQaDWNO0.js";
|
|
16
|
+
import { l as lt, O as U, N as ot, _ as it } from "./index-BZpYmpDy.js";
|
|
17
17
|
import { g as ct } from "./titleStyle-BT5GlpAb.js";
|
|
18
18
|
import { A as ut, D as rt } from "./ele-gridview-icon-cSd1oIDi.js";
|
|
19
19
|
const dt = { class: "mix-body" }, mt = { class: "table-wrap" }, pt = { class: "matrix-table" }, ht = { class: "time-col" }, ft = { key: 0 }, vt = ["colspan"], gt = {
|
|
@@ -152,8 +152,8 @@ const dt = { class: "mix-body" }, mt = { class: "table-wrap" }, pt = { class: "m
|
|
|
152
152
|
const e = o.conf, t = (e == null ? void 0 : e.data) || [], s = (e == null ? void 0 : e.common) || {}, l = (s == null ? void 0 : s.source) || "mosaic";
|
|
153
153
|
let n = a;
|
|
154
154
|
if (["statistics", "calculate"].includes(l) && (n = ot(n, t)), (d = n == null ? void 0 : n.history) != null && d.length) {
|
|
155
|
-
const D = n.history.map((x) => (x == null ? void 0 : x[0]) || x || {}),
|
|
156
|
-
|
|
155
|
+
const D = n.history.map((x) => (x == null ? void 0 : x[0]) || x || {}), w = O(D);
|
|
156
|
+
w.length && (r.value = w);
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
159
|
const u = s != null && s.multiObject ? "" : U(s, s == null ? void 0 : s.useAlias, o.uid), m = u && ((S = (g = n == null ? void 0 : n[u]) == null ? void 0 : g[l]) == null ? void 0 : S.data) || ((k = n == null ? void 0 : n[l]) == null ? void 0 : k.data) || (n == null ? void 0 : n.data) || n, v = O([m]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ws=Object.defineProperty,Ss=Object.defineProperties;var bs=Object.getOwnPropertyDescriptors;var ra=Object.getOwnPropertySymbols;var Es=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable;var ia=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))Es.call(t,r)&&ia(e,r,t[r]);if(ra)for(var r of ra(t))As.call(t,r)&&ia(e,r,t[r]);return e},kt=(e,t)=>Ss(e,bs(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Zi=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 $=require("vue");require("html2canvas");const vt=require("./index-Cvu9nAQq.cjs");require("element-plus");const Ds=require("./EChartComponentBase-BPiPzdtw.cjs"),go=require("./index-CJgyJTvc.cjs"),oe=require("./installCanvasRenderer-CyhM1Qpl.cjs"),D=require("./echarts-BB8O2KSA.cjs"),_o=require("./installSimple-c87Ufc4_.cjs"),ii=require("./axisAlignTicks-CDNWKJRo.cjs"),Cs=require("./createSeriesData-Cz83cqoZ.cjs"),Sn=require("./install-DHY9y86B.cjs"),na=require("./install-BvOpNm0Y.cjs"),aa=require("./ele-glbModel-icon-ByACDCrv.cjs");function Ms(e){return Cs.createSeriesData(null,e)}var Fn={isDimensionStacked:oe.isDimensionStacked,enableDataStack:oe.enableDataStack,getStackedDimension:oe.getStackedDimension};function zn(e,t){var r=t;t instanceof D.Model||(r=new D.Model(t));var i=oe.createScaleByModel(r);return i.setExtent(e[0],e[1]),oe.niceScaleExtent(i,r),i}function Ls(e){D.mixin(e,ii.AxisModelCommonMixin)}oe.use([oe.install$1,go.install]);oe.use(go.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)):Ps(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 Ps(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}}const Ns={extend:oa,derive:oa};function Rs(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 Rs(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}},Os=0,Is=Array.prototype,Bs=Is.forEach,Le={genGUID:function(){return++Os},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===Bs)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(Le.isObject(e)){if(Le.isArray(e))return e.slice();if(Le.isArrayLike(e)){for(var t=new e.constructor(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}else return Le.extend({},e)}else return e}},Xe=function(){this.__uid__=Le.genGUID()};Xe.__initializers__=[function(e){Le.extend(this,e)}];Le.extend(Xe,Ns);Le.extend(Xe.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 Fs(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 F={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 zs(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 Gs={get:zs};var qi,fe={};fe.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};fe.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array;fe.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array;fe.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array;fe.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array;fe.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array;fe.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array;fe.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array;var $t={};typeof window!="undefined"?$t=window:typeof global!="undefined"&&($t=global);fe.requestAnimationFrame=$t.requestAnimationFrame||$t.msRequestAnimationFrame||$t.mozRequestAnimationFrame||$t.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};fe.createCanvas=function(){return document.createElement("canvas")};fe.createImage=function(){return new $t.Image};fe.request={get:Gs.get};fe.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};fe.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};var He=function(){this.head=null,this.tail=null,this._length=0};He.prototype.insert=function(e){var t=new He.Entry(e);return this.insertEntry(t),t};He.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 He.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)}};He.prototype.insertBeforeEntry=function(e,t){var r=new He.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};He.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};He.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--};He.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}};He.prototype.getHead=function(){if(this.head)return this.head.value};He.prototype.getTail=function(){if(this.tail)return this.tail.value};He.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};He.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};He.prototype.length=function(){return this._length};He.prototype.isEmpty=function(){return this._length===0};He.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++};He.prototype.clear=function(){this.tail=this.head=null,this._length=0};He.Entry=function(e){this.value=e,this.next=null,this.prev=null};var ar=function(e){this._list=new He,this._map={},this._maxSize=e||10};ar.prototype.setMaxSize=function(e){this._maxSize=e};ar.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}};ar.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};ar.prototype.remove=function(e){var t=this._map[e];typeof t!="undefined"&&(delete this._map[e],this._list.remove(t))};ar.prototype.clear=function(){this._list.clear(),this._map={}};var Ee={},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 ct(e){return e=Math.round(e),e<0?0:e>255?255:e}function Us(e){return e=Math.round(e),e<0?0:e>360?360:e}function Zr(e){return e<0?0:e>1?1:e}function Yi(e){return e.length&&e.charAt(e.length-1)==="%"?ct(parseFloat(e)/100*255):ct(parseInt(e,10))}function _r(e){return e.length&&e.charAt(e.length-1)==="%"?Zr(parseFloat(e)/100):Zr(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 Ot(e,t,r){return e+(t-e)*r}function ft(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 yo=new ar(20),ui=null;function or(e,t){ui&&bn(ui,t),ui=yo.put(e,ui||t.slice())}Ee.parse=function(e,t){if(e){t=t||[];var r=yo.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]),or(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){ft(t,0,0,0,1);return}return ft(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),or(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){ft(t,0,0,0,1);return}return ft(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),or(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){ft(t,0,0,0,1);return}h=_r(l.pop());case"rgb":if(l.length!==3){ft(t,0,0,0,1);return}return ft(t,Yi(l[0]),Yi(l[1]),Yi(l[2]),h),or(e,t),t;case"hsla":if(l.length!==4){ft(t,0,0,0,1);return}return l[3]=_r(l[3]),En(l,t),or(e,t),t;case"hsl":if(l.length!==3){ft(t,0,0,0,1);return}return En(l,t),or(e,t),t;default:return}}ft(t,0,0,0,1)}};Ee.parseToFloat=function(e,t){if(t=Ee.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=_r(e[1]),n=_r(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ft(t,ct(Ki(o,a,r+1/3)*255),ct(Ki(o,a,r)*255),ct(Ki(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vs(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,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+u-d:i===a&&(l=2/3+f-u),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,h,s];return e[3]!=null&&c.push(e[3]),c}}Ee.lift=function(e,t){var r=Ee.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 Ee.stringify(r,r.length===4?"rgba":"rgb")}};Ee.toHex=function(e){var t=Ee.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Ee.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]=ct(Ot(o[0],s[0],l)),r[1]=ct(Ot(o[1],s[1],l)),r[2]=ct(Ot(o[2],s[2],l)),r[3]=Zr(Ot(o[3],s[3],l)),r}};Ee.fastMapToColor=Ee.fastLerp;Ee.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=Ee.parse(t[n]),s=Ee.parse(t[a]),l=i-n,h=Ee.stringify([ct(Ot(o[0],s[0],l)),ct(Ot(o[1],s[1],l)),ct(Ot(o[2],s[2],l)),Zr(Ot(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};Ee.mapToColor=Ee.lerp;Ee.modifyHSL=function(e,t,r,i){if(e=Ee.parse(e),e)return e=Vs(e),t!=null&&(e[0]=Us(t)),r!=null&&(e[1]=_r(r)),i!=null&&(e[2]=_r(i)),Ee.stringify(En(e),"rgba")};Ee.modifyAlpha=function(e,t){if(e=Ee.parse(e),e&&t!=null)return e[3]=Zr(t),Ee.stringify(e,"rgba")};Ee.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 Hs=Ee.parseToFloat,$i={};function fa(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 ws=Object.defineProperty,Ss=Object.defineProperties;var bs=Object.getOwnPropertyDescriptors;var ra=Object.getOwnPropertySymbols;var Es=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable;var ia=(e,t,r)=>t in e?ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ct=(e,t)=>{for(var r in t||(t={}))Es.call(t,r)&&ia(e,r,t[r]);if(ra)for(var r of ra(t))As.call(t,r)&&ia(e,r,t[r]);return e},kt=(e,t)=>Ss(e,bs(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Zi=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 $=require("vue");require("html2canvas");const vt=require("./index-77aUdspY.cjs");require("element-plus");const Ds=require("./EChartComponentBase-D9EUh4BZ.cjs"),go=require("./index-CJgyJTvc.cjs"),oe=require("./installCanvasRenderer-CyhM1Qpl.cjs"),D=require("./echarts-BB8O2KSA.cjs"),_o=require("./installSimple-c87Ufc4_.cjs"),ii=require("./axisAlignTicks-CDNWKJRo.cjs"),Cs=require("./createSeriesData-Cz83cqoZ.cjs"),Sn=require("./install-DHY9y86B.cjs"),na=require("./install-BvOpNm0Y.cjs"),aa=require("./ele-glbModel-icon-ByACDCrv.cjs");function Ms(e){return Cs.createSeriesData(null,e)}var Fn={isDimensionStacked:oe.isDimensionStacked,enableDataStack:oe.enableDataStack,getStackedDimension:oe.getStackedDimension};function zn(e,t){var r=t;t instanceof D.Model||(r=new D.Model(t));var i=oe.createScaleByModel(r);return i.setExtent(e[0],e[1]),oe.niceScaleExtent(i,r),i}function Ls(e){D.mixin(e,ii.AxisModelCommonMixin)}oe.use([oe.install$1,go.install]);oe.use(go.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)):Ps(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 Ps(e,t,r){for(var i=0;i<r.length;i++){var n=r[i];e[n]=t[n]}}const Ns={extend:oa,derive:oa};function Rs(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 Rs(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}},Os=0,Is=Array.prototype,Bs=Is.forEach,Le={genGUID:function(){return++Os},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===Bs)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(Le.isObject(e)){if(Le.isArray(e))return e.slice();if(Le.isArrayLike(e)){for(var t=new e.constructor(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}else return Le.extend({},e)}else return e}},Xe=function(){this.__uid__=Le.genGUID()};Xe.__initializers__=[function(e){Le.extend(this,e)}];Le.extend(Xe,Ns);Le.extend(Xe.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 Fs(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 F={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 zs(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 Gs={get:zs};var qi,fe={};fe.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};fe.Int8Array=typeof Int8Array=="undefined"?Array:Int8Array;fe.Uint8Array=typeof Uint8Array=="undefined"?Array:Uint8Array;fe.Uint16Array=typeof Uint16Array=="undefined"?Array:Uint16Array;fe.Uint32Array=typeof Uint32Array=="undefined"?Array:Uint32Array;fe.Int16Array=typeof Int16Array=="undefined"?Array:Int16Array;fe.Float32Array=typeof Float32Array=="undefined"?Array:Float32Array;fe.Float64Array=typeof Float64Array=="undefined"?Array:Float64Array;var $t={};typeof window!="undefined"?$t=window:typeof global!="undefined"&&($t=global);fe.requestAnimationFrame=$t.requestAnimationFrame||$t.msRequestAnimationFrame||$t.mozRequestAnimationFrame||$t.webkitRequestAnimationFrame||function(e){setTimeout(e,16)};fe.createCanvas=function(){return document.createElement("canvas")};fe.createImage=function(){return new $t.Image};fe.request={get:Gs.get};fe.addEventListener=function(e,t,r,i){e.addEventListener(t,r,i)};fe.removeEventListener=function(e,t,r){e.removeEventListener(t,r)};var He=function(){this.head=null,this.tail=null,this._length=0};He.prototype.insert=function(e){var t=new He.Entry(e);return this.insertEntry(t),t};He.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 He.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)}};He.prototype.insertBeforeEntry=function(e,t){var r=new He.Entry(e),i=t.prev;i?(i.next=r,r.prev=i):this.head=r,r.next=t,t.prev=r,this._length++};He.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._length++};He.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--};He.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}};He.prototype.getHead=function(){if(this.head)return this.head.value};He.prototype.getTail=function(){if(this.tail)return this.tail.value};He.prototype.getAt=function(e){if(!(e<0)){for(var t=this.head,r=0;t&&r!=e;)t=t.next,r++;return t.value}};He.prototype.indexOf=function(e){for(var t=this.head,r=0;t;){if(t.value===e)return r;t=t.next,r++}};He.prototype.length=function(){return this._length};He.prototype.isEmpty=function(){return this._length===0};He.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++};He.prototype.clear=function(){this.tail=this.head=null,this._length=0};He.Entry=function(e){this.value=e,this.next=null,this.prev=null};var ar=function(e){this._list=new He,this._map={},this._maxSize=e||10};ar.prototype.setMaxSize=function(e){this._maxSize=e};ar.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}};ar.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};ar.prototype.remove=function(e){var t=this._map[e];typeof t!="undefined"&&(delete this._map[e],this._list.remove(t))};ar.prototype.clear=function(){this._list.clear(),this._map={}};var Ee={},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 ct(e){return e=Math.round(e),e<0?0:e>255?255:e}function Us(e){return e=Math.round(e),e<0?0:e>360?360:e}function Zr(e){return e<0?0:e>1?1:e}function Yi(e){return e.length&&e.charAt(e.length-1)==="%"?ct(parseFloat(e)/100*255):ct(parseInt(e,10))}function _r(e){return e.length&&e.charAt(e.length-1)==="%"?Zr(parseFloat(e)/100):Zr(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 Ot(e,t,r){return e+(t-e)*r}function ft(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 yo=new ar(20),ui=null;function or(e,t){ui&&bn(ui,t),ui=yo.put(e,ui||t.slice())}Ee.parse=function(e,t){if(e){t=t||[];var r=yo.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]),or(e,t),t;if(i.charAt(0)==="#"){if(i.length===4){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=4095)){ft(t,0,0,0,1);return}return ft(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,1),or(e,t),t}else if(i.length===7){var n=parseInt(i.substr(1),16);if(!(n>=0&&n<=16777215)){ft(t,0,0,0,1);return}return ft(t,(n&16711680)>>16,(n&65280)>>8,n&255,1),or(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){ft(t,0,0,0,1);return}h=_r(l.pop());case"rgb":if(l.length!==3){ft(t,0,0,0,1);return}return ft(t,Yi(l[0]),Yi(l[1]),Yi(l[2]),h),or(e,t),t;case"hsla":if(l.length!==4){ft(t,0,0,0,1);return}return l[3]=_r(l[3]),En(l,t),or(e,t),t;case"hsl":if(l.length!==3){ft(t,0,0,0,1);return}return En(l,t),or(e,t),t;default:return}}ft(t,0,0,0,1)}};Ee.parseToFloat=function(e,t){if(t=Ee.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=_r(e[1]),n=_r(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ft(t,ct(Ki(o,a,r+1/3)*255),ct(Ki(o,a,r)*255),ct(Ki(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Vs(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,f=((a-r)/6+o/2)/o,d=((a-i)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+u-d:i===a&&(l=2/3+f-u),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,h,s];return e[3]!=null&&c.push(e[3]),c}}Ee.lift=function(e,t){var r=Ee.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 Ee.stringify(r,r.length===4?"rgba":"rgb")}};Ee.toHex=function(e){var t=Ee.parse(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)};Ee.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]=ct(Ot(o[0],s[0],l)),r[1]=ct(Ot(o[1],s[1],l)),r[2]=ct(Ot(o[2],s[2],l)),r[3]=Zr(Ot(o[3],s[3],l)),r}};Ee.fastMapToColor=Ee.fastLerp;Ee.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=Ee.parse(t[n]),s=Ee.parse(t[a]),l=i-n,h=Ee.stringify([ct(Ot(o[0],s[0],l)),ct(Ot(o[1],s[1],l)),ct(Ot(o[2],s[2],l)),Zr(Ot(o[3],s[3],l))],"rgba");return r?{color:h,leftIndex:n,rightIndex:a,value:i}:h}};Ee.mapToColor=Ee.lerp;Ee.modifyHSL=function(e,t,r,i){if(e=Ee.parse(e),e)return e=Vs(e),t!=null&&(e[0]=Us(t)),r!=null&&(e[1]=_r(r)),i!=null&&(e[2]=_r(i)),Ee.stringify(En(e),"rgba")};Ee.modifyAlpha=function(e,t){if(e=Ee.parse(e),e&&t!=null)return e[3]=Zr(t),Ee.stringify(e,"rgba")};Ee.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 Hs=Ee.parseToFloat,$i={};function fa(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 ks(e,t,r){r.sort();for(var i=[],n=0;n<r.length;n++){var a=r[n];i.push(a)}var o=fa(e)+`
|
|
3
3
|
`+fa(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 dl, useCssVars as vl, unref as kr, ref as ur, computed as pl, onMounted as ml, nextTick as vn, onBeforeUnmount as gl, watch as pn, openBlock as wi, createElementBlock as mn, createElementVNode as fr, createVNode as Si, withCtx as gn, Fragment as Ca, renderList as Ma, createBlock as _l, createTextVNode as yl, toDisplayString as bi, renderSlot as xl } from "vue";
|
|
19
19
|
import "html2canvas";
|
|
20
|
-
import { d as cr,
|
|
20
|
+
import { d as cr, N as Tl, G as wl, O as Sl, _ as bl } from "./index-BZpYmpDy.js";
|
|
21
21
|
import "element-plus";
|
|
22
|
-
import { E as El } from "./EChartComponentBase-
|
|
22
|
+
import { E as El } from "./EChartComponentBase-i76OGL3z.js";
|
|
23
23
|
import { i as Al, a as Dl } from "./index-eIsZnzkc.js";
|
|
24
24
|
import { d as Ll, n as Cl, q as Ml, V as Pl, L as Nl, u as ke, a as Rl, O as Ol, Y as vi, S as xt } from "./installCanvasRenderer-oDYkyVFy.js";
|
|
25
25
|
import { M as Ar, cc as Il, f as Tt, o as Pa, f2 as Bl, f3 as Fl, v as qo, R as Yo, g as zl, bY as jn, h as wt, t as Gl, b3 as Ul, b2 as Hl, b5 as Vl, dg as kl, C as Br, m as ve, u as Ut, f4 as Wl, bX as Ko, Z as ki, c as Wi, b as pi, cm as $o, f5 as Qo, a as nn, P as Xl, E as jl, f6 as Zn, dl as sa, aR as Zl, eC as ql, av as Yl, bJ as Kl, bI as wr, ai as Na, T as $l, f7 as Ql, f8 as Jl, f9 as Jo, aT as dt, aS as vt, db as eh, H as th, ag as Ei, br as rh, ce as ih, bb as es, cl as Ra, x as Oa, cy as Ia, i as nh } from "./echarts-Bp7QN4X6.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var ie=Object.defineProperty,oe=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,de=Reflect.get;var W=(_,y,b)=>y in _?ie(_,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):_[y]=b,A=(_,y)=>{for(var b in y||(y={}))ue.call(y,b)&&W(_,b,y[b]);if(G)for(var b of G(y))pe.call(y,b)&&W(_,b,y[b]);return _},U=(_,y)=>oe(_,re(y));var X=(_,y,b)=>de(ce(_),b,y);var Y=(_,y,b)=>new Promise((S,j)=>{var B=g=>{try{x(b.next(g))}catch(N){j(N)}},V=g=>{try{x(b.throw(g))}catch(N){j(N)}},x=g=>g.done?S(g.value):Promise.resolve(g.value).then(B,V);x((b=b.apply(_,y)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=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 l=require("vue"),he=require("@element-plus/icons-vue");require("html2canvas");const k=require("./index-Cvu9nAQq.cjs");require("element-plus");const me=require("./EChartComponentBase-BPiPzdtw.cjs"),fe=require("./request-B1HlG30f.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"panel-header"},ye={class:"header-left"},ge={class:"header-title"},be={class:"chart-area"},xe={class:"toolbar"},De=["id"],Ce={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部位移图表",NAME_EN:"Deep Displacement Chart",ORDER:1,PLATFORM:["pc","screen"]},Se={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"}}},Ee=[{name:"X位移",fvPrefix:"x",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#4a90d9",object_id:""},{name:"Y位移",fvPrefix:"y",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#f5a623",object_id:""},{name:"Z位移",fvPrefix:"z",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#7ed321",object_id:""}],_e=["name","fv","fvPrefix","separator","minDepth","maxDepth","step","color","object_id"],Oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ne={useAlias:!1,multiObject:!0,source:"mosaic"},je={DEFAULT:Ce,OPTIONS:Se,DATA:Ee,PARAMS:_e,SOURCE:Oe,COMMON:Ne},we=l.defineComponent(U(A({},je),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(_){const y=_;class b extends me.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData=new Map,this.timeSeriesData=new Map,this.latestValues=new Map}getRecordValue(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:e!=null&&e.event?this.extractDataValue(e,t):e==null?void 0:e[t]}getDepthValue(e){const t=Number(e);return Number.isFinite(t)?t:null}extractStyles(){var a,o,p,m,f,h,n,d,r,c,v;const{options:e}=this.props.conf,t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||"deepDisplacement",i=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"",s=t==="custom"&&i?i:t;return{title:((p=e==null?void 0:e.title)==null?void 0:p.value)||"深部位移图表",dispType:((m=e==null?void 0:e.dispType)==null?void 0:m.value)||"cumulative",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((h=e==null?void 0:e.textColor)==null?void 0:h.value)||"#333333",xAxisName:((n=e==null?void 0:e.xAxisName)==null?void 0:n.value)||"位移量(mm)",yAxisLeftName:((d=e==null?void 0:e.yAxisLeftName)==null?void 0:d.value)||"深度(m)",yAxisRightName:((r=e==null?void 0:e.yAxisRightName)==null?void 0:r.value)||"高程(m)",baseElevation:((c=e==null?void 0:e.baseElevation)==null?void 0:c.value)||688,jumpUrl:((v=e==null?void 0:e.jumpUrl)==null?void 0:v.value)||"",linkChannel:s}}getDefaultData(){return[{name:"合位移",fv:"disp_130",depth:-130,color:"#4a90d9",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#4a90d9",object_id:""}]}initHistory(){return Y(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const t=e.options.points,i=Object.prototype.hasOwnProperty.call(e.options,"points");(!t||Number(t)<24)&&(e.options.points=24);try{return yield X(b.prototype,this,"initHistory").call(this)}finally{i?e.options.points=t:delete e.options.points}})}setHistoryData(e){var o,p,m;const{data:t,common:i}=this.props.conf;if(!t||t.length===0)return;const s=(i==null?void 0:i.source)||"mosaic";["statistics","calculate"].includes(s)&&(e=k.formatStatisticsResult(e,t));const a=k.handleNullData(e,this.props,"history");if(a){console.log("[DeepDisplacementChart] history raw sample:",((p=(o=a.history)==null?void 0:o[0])==null?void 0:p[0])||((m=a.history)==null?void 0:m[0])||a.history);try{if(this.chartData.clear(),this.timeSeriesData.clear(),g.value=[],N.value=[],!a.history||!Array.isArray(a.history))return;const f=[...new Set(t.map(r=>{var c;return String((c=r.object_id)!=null?c:"")}))],h=Array.isArray(a.history)?a.history:[],n=r=>{const c=t.map((C,D)=>D).filter(C=>{var D,w;return String((w=(D=t[C])==null?void 0:D.object_id)!=null?w:"")===r});if(!c.length)return[];const v=c[0],E=Array.isArray(h[v])?h[v]:[],O=[];return E.forEach((C,D)=>{const w=C&&typeof C=="object"?A({},C):{};c.forEach(R=>{var $,H;const q=($=h[R])==null?void 0:$[D],F=(H=t[R])==null?void 0:H.fv;F&&q&&typeof q=="object"&&Object.prototype.hasOwnProperty.call(q,F)&&(w[F]=q[F])}),O.push(w)}),O},d=f.map(r=>n(r));if(this.processMultiObjectHistory(d,t,f),T(),!x.value&&g.value.length&&(x.value=g.value[g.value.length-1]),console.log("[DeepDisplacementChart] 选中时间:",x.value),console.log("[DeepDisplacementChart] timeSeriesData 中的时间点:",Array.from(this.timeSeriesData.keys())),x.value&&this.timeSeriesData.has(x.value)){const r=this.timeSeriesData.get(x.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())),I.value++}catch(f){console.error("[DeepDisplacementChart] 解析历史数据失败:",f)}}}processHistoryRecords(e,t){e.forEach(i=>{var o;const s=(o=i==null?void 0:i.time)!=null?o:i==null?void 0:i.datetime;if(!s)return;const a=new Map;if(t.forEach(p=>{const m=p.fv,f=p.depth,h=p.name||"未命名",n=this.getRecordValue(i,m),d=Number(n);if(n!=null&&Number.isFinite(f)){const c=(this.extractStyles().baseElevation||688)+f;a.has(h)||a.set(h,[]),a.get(h).push({depth:f,elevation:c,value:Number.isFinite(d)?d:0})}}),a.size>0){const p=new Map;a.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),this.timeSeriesData.set(String(s),p),L(s)}})}processMultiObjectHistory(e,t,i){const s=e[0]||[];s.length&&s.forEach((a,o)=>{var f;const p=(f=a==null?void 0:a.time)!=null?f:a==null?void 0:a.datetime;if(!p)return;const m=new Map;if(t.forEach(h=>{const n=h.fv,d=h.depth,r=h.name||"未命名",c=h.object_id,v=i.indexOf(c);if(v===-1||!e[v])return;const E=e[v];if(!E[o])return;const O=E[o],C=this.getRecordValue(O,n),D=Number(C);if(C!=null&&Number.isFinite(d)){const R=(this.extractStyles().baseElevation||688)+d;m.has(r)||m.set(r,[]),m.get(r).push({depth:d,elevation:R,value:D})}}),m.size>0){const h=new Map;m.forEach((n,d)=>{n.sort((r,c)=>c.depth-r.depth),h.set(d,n)}),this.timeSeriesData.set(String(p),h),L(p)}})}setSocketData(e){var i,s;if(!e)return;const{data:t}=this.props.conf;if(!(!t||t.length===0))try{const a=(s=(i=e==null?void 0:e.time)!=null?i:e==null?void 0:e.datetime)!=null?s:Date.now(),o=new Map;console.log("[DeepDisplacementChart] realtime raw:",e),t.forEach(m=>{const f=m.fv,h=this.getDepthValue(m.depth),n=m.name||"未命名",d=this.extractDataValue(e,f);console.log("[DeepDisplacementChart] realtime fv:",f,"rawValue:",d),d!=null&&Number.isFinite(Number(d))&&this.latestValues.set(f,Number(d));const r=this.latestValues.get(f);if(r!==void 0&&h!==null){const v=(this.extractStyles().baseElevation||688)+h;o.has(n)||o.set(n,[]),o.get(n).push({depth:h,elevation:v,value:r})}});const p=new Map;o.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),p.size>0&&(console.log("[DeepDisplacementChart] realtime series keys:",Array.from(p.keys())),console.log("[DeepDisplacementChart] realtime series data:",Array.from(p.entries())),this.timeSeriesData.set(String(a),p),L(a),this.chartData=p,I.value++)}catch(a){console.error("[DeepDisplacementChart] 解析实时数据失败:",a)}}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}getChartOption(){var r;const e=this.extractStyles(),t=((r=this.props.conf)==null?void 0:r.data)||[],i=x.value;i&&this.timeSeriesData.has(i)&&(this.chartData=new Map(this.timeSeriesData.get(i)||new Map));const s=[];let a=[],o=[];this.chartData.forEach((c,v)=>{if(c.length===0)return;c.forEach(D=>{D.depth!==void 0&&a.push(D.depth),D.elevation!==void 0&&o.push(D.elevation)});const E=[...c].sort((D,w)=>(w.depth||0)-(D.depth||0)),O=t.find(D=>D.name===v),C=(O==null?void 0:O.color)||"#4a90d9";s.push({name:v,type:"line",data:E.map(D=>[D.value||0,D.depth||0]),smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:C,width:2},itemStyle:{color:C,borderColor:"#fff",borderWidth:2},yAxisIndex:0})}),s.length===0&&this.getMockData().forEach(v=>{s.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(E=>a.push(E[1]))});const p=a.length>0?Math.min(...a):-80,m=a.length>0?Math.max(...a):0,f=o.length>0?Math.min(...o):810,h=o.length>0?Math.max(...o):890,n=h||890,d=c=>n+c;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:c=>{if(!c||c.length===0)return"";const v=c[0].data[1],E=d(v);let O=`<div style="padding:8px;max-width:300px;">
|
|
1
|
+
"use strict";var ie=Object.defineProperty,oe=Object.defineProperties;var re=Object.getOwnPropertyDescriptors;var G=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,ue=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,de=Reflect.get;var W=(_,y,b)=>y in _?ie(_,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):_[y]=b,A=(_,y)=>{for(var b in y||(y={}))ue.call(y,b)&&W(_,b,y[b]);if(G)for(var b of G(y))pe.call(y,b)&&W(_,b,y[b]);return _},U=(_,y)=>oe(_,re(y));var X=(_,y,b)=>de(ce(_),b,y);var Y=(_,y,b)=>new Promise((S,j)=>{var B=g=>{try{x(b.next(g))}catch(N){j(N)}},V=g=>{try{x(b.throw(g))}catch(N){j(N)}},x=g=>g.done?S(g.value):Promise.resolve(g.value).then(B,V);x((b=b.apply(_,y)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=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 l=require("vue"),he=require("@element-plus/icons-vue");require("html2canvas");const k=require("./index-77aUdspY.cjs");require("element-plus");const me=require("./EChartComponentBase-D9EUh4BZ.cjs"),fe=require("./request-CvdHjG34.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),ve={class:"panel-header"},ye={class:"header-left"},ge={class:"header-title"},be={class:"chart-area"},xe={class:"toolbar"},De=["id"],Ce={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部位移图表",NAME_EN:"Deep Displacement Chart",ORDER:1,PLATFORM:["pc","screen"]},Se={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"}}},Ee=[{name:"X位移",fvPrefix:"x",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#4a90d9",object_id:""},{name:"Y位移",fvPrefix:"y",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#f5a623",object_id:""},{name:"Z位移",fvPrefix:"z",separator:"_",minDepth:0,maxDepth:200,step:1,color:"#7ed321",object_id:""}],_e=["name","fv","fvPrefix","separator","minDepth","maxDepth","step","color","object_id"],Oe=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ne={useAlias:!1,multiObject:!0,source:"mosaic"},je={DEFAULT:Ce,OPTIONS:Se,DATA:Ee,PARAMS:_e,SOURCE:Oe,COMMON:Ne},we=l.defineComponent(U(A({},je),{__name:"deepDisplacementChart",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(_){const y=_;class b extends me.EChartComponentBase{constructor(){super(...arguments),this.currentObjectId="",this.chartData=new Map,this.timeSeriesData=new Map,this.latestValues=new Map}getRecordValue(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:e!=null&&e.event?this.extractDataValue(e,t):e==null?void 0:e[t]}getDepthValue(e){const t=Number(e);return Number.isFinite(t)?t:null}extractStyles(){var a,o,p,m,f,h,n,d,r,c,v;const{options:e}=this.props.conf,t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||"deepDisplacement",i=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"",s=t==="custom"&&i?i:t;return{title:((p=e==null?void 0:e.title)==null?void 0:p.value)||"深部位移图表",dispType:((m=e==null?void 0:e.dispType)==null?void 0:m.value)||"cumulative",bgColor:((f=e==null?void 0:e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((h=e==null?void 0:e.textColor)==null?void 0:h.value)||"#333333",xAxisName:((n=e==null?void 0:e.xAxisName)==null?void 0:n.value)||"位移量(mm)",yAxisLeftName:((d=e==null?void 0:e.yAxisLeftName)==null?void 0:d.value)||"深度(m)",yAxisRightName:((r=e==null?void 0:e.yAxisRightName)==null?void 0:r.value)||"高程(m)",baseElevation:((c=e==null?void 0:e.baseElevation)==null?void 0:c.value)||688,jumpUrl:((v=e==null?void 0:e.jumpUrl)==null?void 0:v.value)||"",linkChannel:s}}getDefaultData(){return[{name:"合位移",fv:"disp_130",depth:-130,color:"#4a90d9",object_id:""},{name:"合位移",fv:"disp_140",depth:-140,color:"#4a90d9",object_id:""}]}initHistory(){return Y(this,null,function*(){const e=this.props.conf;if(!e)return[];e.options||(e.options={});const t=e.options.points,i=Object.prototype.hasOwnProperty.call(e.options,"points");(!t||Number(t)<24)&&(e.options.points=24);try{return yield X(b.prototype,this,"initHistory").call(this)}finally{i?e.options.points=t:delete e.options.points}})}setHistoryData(e){var o,p,m;const{data:t,common:i}=this.props.conf;if(!t||t.length===0)return;const s=(i==null?void 0:i.source)||"mosaic";["statistics","calculate"].includes(s)&&(e=k.formatStatisticsResult(e,t));const a=k.handleNullData(e,this.props,"history");if(a){console.log("[DeepDisplacementChart] history raw sample:",((p=(o=a.history)==null?void 0:o[0])==null?void 0:p[0])||((m=a.history)==null?void 0:m[0])||a.history);try{if(this.chartData.clear(),this.timeSeriesData.clear(),g.value=[],N.value=[],!a.history||!Array.isArray(a.history))return;const f=[...new Set(t.map(r=>{var c;return String((c=r.object_id)!=null?c:"")}))],h=Array.isArray(a.history)?a.history:[],n=r=>{const c=t.map((C,D)=>D).filter(C=>{var D,w;return String((w=(D=t[C])==null?void 0:D.object_id)!=null?w:"")===r});if(!c.length)return[];const v=c[0],E=Array.isArray(h[v])?h[v]:[],O=[];return E.forEach((C,D)=>{const w=C&&typeof C=="object"?A({},C):{};c.forEach(R=>{var $,H;const q=($=h[R])==null?void 0:$[D],F=(H=t[R])==null?void 0:H.fv;F&&q&&typeof q=="object"&&Object.prototype.hasOwnProperty.call(q,F)&&(w[F]=q[F])}),O.push(w)}),O},d=f.map(r=>n(r));if(this.processMultiObjectHistory(d,t,f),T(),!x.value&&g.value.length&&(x.value=g.value[g.value.length-1]),console.log("[DeepDisplacementChart] 选中时间:",x.value),console.log("[DeepDisplacementChart] timeSeriesData 中的时间点:",Array.from(this.timeSeriesData.keys())),x.value&&this.timeSeriesData.has(x.value)){const r=this.timeSeriesData.get(x.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())),I.value++}catch(f){console.error("[DeepDisplacementChart] 解析历史数据失败:",f)}}}processHistoryRecords(e,t){e.forEach(i=>{var o;const s=(o=i==null?void 0:i.time)!=null?o:i==null?void 0:i.datetime;if(!s)return;const a=new Map;if(t.forEach(p=>{const m=p.fv,f=p.depth,h=p.name||"未命名",n=this.getRecordValue(i,m),d=Number(n);if(n!=null&&Number.isFinite(f)){const c=(this.extractStyles().baseElevation||688)+f;a.has(h)||a.set(h,[]),a.get(h).push({depth:f,elevation:c,value:Number.isFinite(d)?d:0})}}),a.size>0){const p=new Map;a.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),this.timeSeriesData.set(String(s),p),L(s)}})}processMultiObjectHistory(e,t,i){const s=e[0]||[];s.length&&s.forEach((a,o)=>{var f;const p=(f=a==null?void 0:a.time)!=null?f:a==null?void 0:a.datetime;if(!p)return;const m=new Map;if(t.forEach(h=>{const n=h.fv,d=h.depth,r=h.name||"未命名",c=h.object_id,v=i.indexOf(c);if(v===-1||!e[v])return;const E=e[v];if(!E[o])return;const O=E[o],C=this.getRecordValue(O,n),D=Number(C);if(C!=null&&Number.isFinite(d)){const R=(this.extractStyles().baseElevation||688)+d;m.has(r)||m.set(r,[]),m.get(r).push({depth:d,elevation:R,value:D})}}),m.size>0){const h=new Map;m.forEach((n,d)=>{n.sort((r,c)=>c.depth-r.depth),h.set(d,n)}),this.timeSeriesData.set(String(p),h),L(p)}})}setSocketData(e){var i,s;if(!e)return;const{data:t}=this.props.conf;if(!(!t||t.length===0))try{const a=(s=(i=e==null?void 0:e.time)!=null?i:e==null?void 0:e.datetime)!=null?s:Date.now(),o=new Map;console.log("[DeepDisplacementChart] realtime raw:",e),t.forEach(m=>{const f=m.fv,h=this.getDepthValue(m.depth),n=m.name||"未命名",d=this.extractDataValue(e,f);console.log("[DeepDisplacementChart] realtime fv:",f,"rawValue:",d),d!=null&&Number.isFinite(Number(d))&&this.latestValues.set(f,Number(d));const r=this.latestValues.get(f);if(r!==void 0&&h!==null){const v=(this.extractStyles().baseElevation||688)+h;o.has(n)||o.set(n,[]),o.get(n).push({depth:h,elevation:v,value:r})}});const p=new Map;o.forEach((m,f)=>{m.sort((h,n)=>n.depth-h.depth),p.set(f,m)}),p.size>0&&(console.log("[DeepDisplacementChart] realtime series keys:",Array.from(p.keys())),console.log("[DeepDisplacementChart] realtime series data:",Array.from(p.entries())),this.timeSeriesData.set(String(a),p),L(a),this.chartData=p,I.value++)}catch(a){console.error("[DeepDisplacementChart] 解析实时数据失败:",a)}}setCurrentObjectId(e){this.currentObjectId=e}getCurrentObjectId(){return this.currentObjectId}getChartOption(){var r;const e=this.extractStyles(),t=((r=this.props.conf)==null?void 0:r.data)||[],i=x.value;i&&this.timeSeriesData.has(i)&&(this.chartData=new Map(this.timeSeriesData.get(i)||new Map));const s=[];let a=[],o=[];this.chartData.forEach((c,v)=>{if(c.length===0)return;c.forEach(D=>{D.depth!==void 0&&a.push(D.depth),D.elevation!==void 0&&o.push(D.elevation)});const E=[...c].sort((D,w)=>(w.depth||0)-(D.depth||0)),O=t.find(D=>D.name===v),C=(O==null?void 0:O.color)||"#4a90d9";s.push({name:v,type:"line",data:E.map(D=>[D.value||0,D.depth||0]),smooth:!0,symbol:"circle",symbolSize:6,lineStyle:{color:C,width:2},itemStyle:{color:C,borderColor:"#fff",borderWidth:2},yAxisIndex:0})}),s.length===0&&this.getMockData().forEach(v=>{s.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(E=>a.push(E[1]))});const p=a.length>0?Math.min(...a):-80,m=a.length>0?Math.max(...a):0,f=o.length>0?Math.min(...o):810,h=o.length>0?Math.max(...o):890,n=h||890,d=c=>n+c;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:c=>{if(!c||c.length===0)return"";const v=c[0].data[1],E=d(v);let O=`<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;">高程: ${E.toFixed(2)}m</div>`;return c.forEach(C=>{O+=`<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:${C.color};margin-right:6px;"></span>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var J=Object.defineProperty,Q=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols,ee=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=Reflect.get;var q=(d,i,a)=>i in d?J(d,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[i]=a,U=(d,i)=>{for(var a in i||(i={}))te.call(i,a)&&q(d,a,i[a]);if(V)for(var a of V(i))oe.call(i,a)&&q(d,a,i[a]);return d},F=(d,i)=>Q(d,Y(i));var K=(d,i,a)=>ae(ee(d),a,i);var G=(d,i,a)=>new Promise((L,m)=>{var j=C=>{try{b(a.next(C))}catch(k){m(k)}},p=C=>{try{b(a.throw(C))}catch(k){m(k)}},b=C=>C.done?L(C.value):Promise.resolve(C.value).then(j,p);b((a=a.apply(d,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const ne=require("./BaseComponent-
|
|
1
|
+
"use strict";var J=Object.defineProperty,Q=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols,ee=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=Reflect.get;var q=(d,i,a)=>i in d?J(d,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[i]=a,U=(d,i)=>{for(var a in i||(i={}))te.call(i,a)&&q(d,a,i[a]);if(V)for(var a of V(i))oe.call(i,a)&&q(d,a,i[a]);return d},F=(d,i)=>Q(d,Y(i));var K=(d,i,a)=>ae(ee(d),a,i);var G=(d,i,a)=>new Promise((L,m)=>{var j=C=>{try{b(a.next(C))}catch(k){m(k)}},p=C=>{try{b(a.throw(C))}catch(k){m(k)}},b=C=>C.done?L(C.value):Promise.resolve(C.value).then(j,p);b((a=a.apply(d,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const ne=require("./BaseComponent-BmhMoM4H.cjs"),z=require("./index-77aUdspY.cjs");require("./index-CJgyJTvc.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,PLATFORM:["pc","screen"]},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(F(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=>({v93f7bd4a:o.unref(O).bgColor,v4701439a:o.unref(O).textColor}));const i=z.useLinkStore(),a=d,L=o.ref({selectedTimes:[],startDate:"",endDate:""}),m=o.ref(new Map),j=`dispChart_${Date.now()}_${Math.random().toString(36).slice(2,8)}`;let p=null,b=null;const C=["#4a90d9","#67c23a","#e6a23c","#f56c6c","#909399","#00bcd4","#9c27b0","#ff9800","#795548","#607d8b"];class k extends ne.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 K(k.prototype,this,"onPreview").call(this)):(console.log("[DeepDisplacementChart] 未配置数据源,使用模拟数据"),this.getMockData().forEach((y,f)=>m.value.set(f,y)),P())})}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=z.formatStatisticsResult(e,n));const g=z.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 A=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 _,R,$;E.get(M).push({depth:(R=(_=u[c.depth_fv])!=null?_: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,_])=>({depth:u,value:_})).sort((u,_)=>_.depth-u.depth);A.set(v,w)}),m.value.set(c.name,A)}):n.forEach((c,A)=>{var M;if(!c.object_id||!c.fv)return;const E=((M=g.history)==null?void 0:M[A])||[],D=new Map,v=new Map;E.forEach(w=>{var R,$;const _=(w.time||w.datetime||"").split(" ")[0];v.has(_)||v.set(_,[]),v.get(_).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)}P()}}setSocketData(e){e&&console.log("[DeepDisplacementChart] 收到实时数据:",e)}}const N=new k(a,"deepDisplacementChart");(!a.conf.data||a.conf.data.length===0)&&(a.conf.data=N.getDefaultData()),N.setupLifecycle();const O=N.getStyle(),H=o.computed(()=>{const t=L.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=L.value,n=((h=a.conf)==null?void 0:h.data)||N.getDefaultData();let s=e.selectedTimes||[];if(m.value.size===0&&N.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||C[g%C.length];g++,s.forEach((S,c)=>{const A=x.get(S)||[];if(A.length===0)return;A.forEach(v=>f.push(v.depth));const E=1-c*.15,D=r;y.push({name:`${l.name} (${S})`,type:"line",data:A.map(v=>[v.value,v.depth]),smooth:!0,symbol:"circle",symbolSize:4,lineStyle:{color:D,width:2,opacity:E},itemStyle:{color:D,opacity:E}})})}),f.length===0&&(f=[-122,-152]);const I=Math.min(...f),T=Math.max(...f);return{grid:{left:60,right:140,top:30,bottom:60},tooltip:{trigger:"axis",backgroundColor:"rgba(255,255,255,0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:l=>{if(!l||l.length===0)return"";let r=`<div style="padding:8px;max-width:280px;">
|
|
2
2
|
<div style="font-weight:600;margin-bottom:6px;">深度: ${l[0].data[1]}m</div>`;return l.forEach(S=>{r+=`<div style="display:flex;align-items:center;margin:2px 0;">
|
|
3
3
|
<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${S.color};margin-right:6px;"></span>
|
|
4
4
|
<span style="flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">${S.seriesName}: ${S.data[0].toFixed(3)} mm</span>
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var de = Object.defineProperty, he = Object.defineProperties;
|
|
2
2
|
var fe = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var K = Object.getOwnPropertySymbols, ve = Object.getPrototypeOf, ye = Object.prototype.hasOwnProperty, ge = Object.prototype.propertyIsEnumerable, be = Reflect.get;
|
|
4
|
-
var Q = (
|
|
4
|
+
var Q = (_, v, g) => v in _ ? de(_, v, { enumerable: !0, configurable: !0, writable: !0, value: g }) : _[v] = g, k = (_, v) => {
|
|
5
5
|
for (var g in v || (v = {}))
|
|
6
|
-
ye.call(v, g) && Q(
|
|
6
|
+
ye.call(v, g) && Q(_, g, v[g]);
|
|
7
7
|
if (K)
|
|
8
8
|
for (var g of K(v))
|
|
9
|
-
ge.call(v, g) && Q(
|
|
10
|
-
return
|
|
11
|
-
}, P = (
|
|
12
|
-
var ee = (
|
|
13
|
-
var te = (
|
|
9
|
+
ge.call(v, g) && Q(_, g, v[g]);
|
|
10
|
+
return _;
|
|
11
|
+
}, P = (_, v) => he(_, fe(v));
|
|
12
|
+
var ee = (_, v, g) => be(ve(_), g, v);
|
|
13
|
+
var te = (_, v, g) => new Promise((C, j) => {
|
|
14
14
|
var G = (y) => {
|
|
15
15
|
try {
|
|
16
16
|
b(g.next(y));
|
|
@@ -24,7 +24,7 @@ var te = (E, v, g) => new Promise((C, j) => {
|
|
|
24
24
|
j(O);
|
|
25
25
|
}
|
|
26
26
|
}, b = (y) => y.done ? C(y.value) : Promise.resolve(y.value).then(G, M);
|
|
27
|
-
b((g = g.apply(
|
|
27
|
+
b((g = g.apply(_, v)).next());
|
|
28
28
|
});
|
|
29
29
|
import { ElSelect as De, ElOption as xe, ElButton as Ce, ElIcon as Se } from "element-plus/es";
|
|
30
30
|
import "element-plus/es/components/base/style/css";
|
|
@@ -32,13 +32,13 @@ import "element-plus/es/components/button/style/css";
|
|
|
32
32
|
import "element-plus/es/components/icon/style/css";
|
|
33
33
|
import "element-plus/es/components/select/style/css";
|
|
34
34
|
import "element-plus/es/components/option/style/css";
|
|
35
|
-
import { defineComponent as
|
|
35
|
+
import { defineComponent as _e, inject as Ee, ref as A, computed as Oe, watch as W, nextTick as q, onMounted as je, onUnmounted as we, openBlock as X, createElementBlock as ae, normalizeStyle as ne, createElementVNode as N, toDisplayString as Ne, unref as $, createVNode as H, withCtx as Y, Fragment as Ae, renderList as ke, createBlock as Me, createTextVNode as Ve, renderSlot as Le } from "vue";
|
|
36
36
|
import { Download as Te } from "@element-plus/icons-vue";
|
|
37
37
|
import "html2canvas";
|
|
38
|
-
import {
|
|
38
|
+
import { N as Ie, G as ze, O as Re, d as B, _ as Fe } from "./index-BZpYmpDy.js";
|
|
39
39
|
import "element-plus";
|
|
40
|
-
import { E as Ue } from "./EChartComponentBase-
|
|
41
|
-
import { formatRequest as Pe } from "./request-
|
|
40
|
+
import { E as Ue } from "./EChartComponentBase-i76OGL3z.js";
|
|
41
|
+
import { formatRequest as Pe } from "./request-CBsG4ipL.js";
|
|
42
42
|
import { A as $e, D as He } from "./ele-lin-icon-Dax-ZiWV.js";
|
|
43
43
|
const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { class: "header-title" }, qe = { class: "chart-area" }, Xe = { class: "toolbar" }, Ye = ["id"], Ze = {
|
|
44
44
|
DEFAULT_ICON: He,
|
|
@@ -116,7 +116,7 @@ const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { clas
|
|
|
116
116
|
color: "#7ed321",
|
|
117
117
|
object_id: ""
|
|
118
118
|
}
|
|
119
|
-
], Qe = ["name", "fv", "fvPrefix", "separator", "minDepth", "maxDepth", "step", "color", "object_id"], et = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], tt = { useAlias: !1, multiObject: !0, source: "mosaic" }, at = { DEFAULT: Ze, OPTIONS: Je, DATA: Ke, PARAMS: Qe, SOURCE: et, COMMON: tt }, nt = /* @__PURE__ */
|
|
119
|
+
], Qe = ["name", "fv", "fvPrefix", "separator", "minDepth", "maxDepth", "step", "color", "object_id"], et = ["mosaic", "statistics", "calculate", "statisticsRealtime", "calculateRealtime"], tt = { useAlias: !1, multiObject: !0, source: "mosaic" }, at = { DEFAULT: Ze, OPTIONS: Je, DATA: Ke, PARAMS: Qe, SOURCE: et, COMMON: tt }, nt = /* @__PURE__ */ _e(P(k({}, at), {
|
|
120
120
|
__name: "deepDisplacementChart",
|
|
121
121
|
props: {
|
|
122
122
|
conf: { type: Object, default: () => ({ data: [] }) },
|
|
@@ -124,8 +124,8 @@ const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { clas
|
|
|
124
124
|
uid: { type: String, default: "" },
|
|
125
125
|
theme: { type: String, default: "light" }
|
|
126
126
|
},
|
|
127
|
-
setup(
|
|
128
|
-
const v =
|
|
127
|
+
setup(_) {
|
|
128
|
+
const v = _;
|
|
129
129
|
class g extends Ue {
|
|
130
130
|
constructor() {
|
|
131
131
|
super(...arguments), this.currentObjectId = "", this.chartData = /* @__PURE__ */ new Map(), this.timeSeriesData = /* @__PURE__ */ new Map(), this.latestValues = /* @__PURE__ */ new Map();
|
|
@@ -207,15 +207,15 @@ const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { clas
|
|
|
207
207
|
return String((w = (D = t[x]) == null ? void 0 : D.object_id) != null ? w : "") === o;
|
|
208
208
|
});
|
|
209
209
|
if (!r.length) return [];
|
|
210
|
-
const f = r[0], S = Array.isArray(m[f]) ? m[f] : [],
|
|
210
|
+
const f = r[0], S = Array.isArray(m[f]) ? m[f] : [], E = [];
|
|
211
211
|
return S.forEach((x, D) => {
|
|
212
212
|
const w = x && typeof x == "object" ? k({}, x) : {};
|
|
213
213
|
r.forEach((R) => {
|
|
214
214
|
var Z, J;
|
|
215
215
|
const F = (Z = m[R]) == null ? void 0 : Z[D], U = (J = t[R]) == null ? void 0 : J.fv;
|
|
216
216
|
U && F && typeof F == "object" && Object.prototype.hasOwnProperty.call(F, U) && (w[U] = F[U]);
|
|
217
|
-
}),
|
|
218
|
-
}),
|
|
217
|
+
}), E.push(w);
|
|
218
|
+
}), E;
|
|
219
219
|
}, u = h.map((o) => n(o));
|
|
220
220
|
if (this.processMultiObjectHistory(u, t, h), L(), !b.value && y.value.length && (b.value = y.value[y.value.length - 1]), console.log("[DeepDisplacementChart] 选中时间:", b.value), console.log("[DeepDisplacementChart] timeSeriesData 中的时间点:", Array.from(this.timeSeriesData.keys())), b.value && this.timeSeriesData.has(b.value)) {
|
|
221
221
|
const o = this.timeSeriesData.get(b.value);
|
|
@@ -265,7 +265,7 @@ const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { clas
|
|
|
265
265
|
if (f === -1 || !e[f]) return;
|
|
266
266
|
const S = e[f];
|
|
267
267
|
if (!S[i]) return;
|
|
268
|
-
const
|
|
268
|
+
const E = S[i], x = this.getRecordValue(E, n), D = Number(x);
|
|
269
269
|
if (x != null && Number.isFinite(u)) {
|
|
270
270
|
const R = (this.extractStyles().baseElevation || 688) + u;
|
|
271
271
|
d.has(o) || d.set(o, []), d.get(o).push({ depth: u, elevation: R, value: D });
|
|
@@ -322,7 +322,7 @@ const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { clas
|
|
|
322
322
|
r.forEach((D) => {
|
|
323
323
|
D.depth !== void 0 && a.push(D.depth), D.elevation !== void 0 && i.push(D.elevation);
|
|
324
324
|
});
|
|
325
|
-
const S = [...r].sort((D, w) => (w.depth || 0) - (D.depth || 0)),
|
|
325
|
+
const S = [...r].sort((D, w) => (w.depth || 0) - (D.depth || 0)), E = t.find((D) => D.name === f), x = (E == null ? void 0 : E.color) || "#4a90d9";
|
|
326
326
|
s.push({
|
|
327
327
|
name: f,
|
|
328
328
|
type: "line",
|
|
@@ -358,15 +358,15 @@ const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { clas
|
|
|
358
358
|
formatter: (r) => {
|
|
359
359
|
if (!r || r.length === 0) return "";
|
|
360
360
|
const f = r[0].data[1], S = u(f);
|
|
361
|
-
let
|
|
361
|
+
let E = `<div style="padding:8px;max-width:300px;">
|
|
362
362
|
<div style="font-weight:600;margin-bottom:6px;">深度: ${f}m</div>
|
|
363
363
|
<div style="color:#666;margin-bottom:6px;">高程: ${S.toFixed(2)}m</div>`;
|
|
364
364
|
return r.forEach((x) => {
|
|
365
|
-
|
|
365
|
+
E += `<div style="display:flex;align-items:center;margin:2px 0;">
|
|
366
366
|
<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${x.color};margin-right:6px;"></span>
|
|
367
367
|
<span style="flex:1;">${x.seriesName}: ${x.data[0].toFixed(2)} mm</span>
|
|
368
368
|
</div>`;
|
|
369
|
-
}),
|
|
369
|
+
}), E += "</div>", E;
|
|
370
370
|
}
|
|
371
371
|
},
|
|
372
372
|
legend: {
|
|
@@ -444,7 +444,7 @@ const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { clas
|
|
|
444
444
|
}
|
|
445
445
|
const C = new g(v, "deepDisplacementChart");
|
|
446
446
|
C.setupLifecycle();
|
|
447
|
-
const j = C.getStyle(), G = C.getEchartId(), M =
|
|
447
|
+
const j = C.getStyle(), G = C.getEchartId(), M = Ee("session", null), b = A(""), y = A([]), O = A([]), V = A(null), se = (c) => {
|
|
448
448
|
if (c == null || c === "") return null;
|
|
449
449
|
const e = typeof c == "string" ? c : String(c);
|
|
450
450
|
if (/^\d+$/.test(e)) return B(Number(e));
|
|
@@ -560,7 +560,7 @@ const Be = { class: "panel-header" }, Ge = { class: "header-left" }, We = { clas
|
|
|
560
560
|
}), n.size > 0) {
|
|
561
561
|
const u = String((m = (h = e == null ? void 0 : e.time) != null ? h : e == null ? void 0 : e.datetime) != null ? m : Date.now()), o = /* @__PURE__ */ new Map();
|
|
562
562
|
n.forEach((r, f) => {
|
|
563
|
-
r.sort((S,
|
|
563
|
+
r.sort((S, E) => E.depth - S.depth), o.set(f, r);
|
|
564
564
|
}), T(u), C.timeSeriesData.set(u, o), C.chartData = o, I.value++;
|
|
565
565
|
}
|
|
566
566
|
}
|