mixdashboards 1.0.76 → 1.0.77

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.
Files changed (329) hide show
  1. package/dist/{BaseComponent-BmhMoM4H.cjs → BaseComponent-B5ivgb3E.cjs} +1 -1
  2. package/dist/{BaseComponent-CQaDWNO0.js → BaseComponent-DtvXBQYf.js} +3 -3
  3. package/dist/{EChartComponentBase-D9EUh4BZ.cjs → EChartComponentBase-ChoVZ7wg.cjs} +1 -1
  4. package/dist/{EChartComponentBase-i76OGL3z.js → EChartComponentBase-c7NzErOu.js} +2 -2
  5. package/dist/{EmergencyPlanPanel-B9S3Ru5-.js → EmergencyPlanPanel-COfHeuTK.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-BiAHvTfh.cjs → EmergencyPlanPanel-DG23L1EJ.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CbbeFm-i.js → HistoryPlanDialog-CItsTCsk.js} +1 -1
  8. package/dist/{HistoryPlanDialog-BU4GayEm.cjs → HistoryPlanDialog-d5ocUKAB.cjs} +1 -1
  9. package/dist/{MonitoringMap-B6tXBdvK.js → MonitoringMap-CGdqpp4N.js} +2 -2
  10. package/dist/{MonitoringMap-FGDoA0fw.cjs → MonitoringMap-H5AOAU8m.cjs} +1 -1
  11. package/dist/{UniverSheet-D7y2pceH.cjs → UniverSheet-BAwHvLEU.cjs} +1 -1
  12. package/dist/{UniverSheet-D8sflrTb.js → UniverSheet-tSAkLkuy.js} +2 -2
  13. package/dist/{accelerationChart-bch4O3t-.js → accelerationChart-4RM-T97n.js} +2 -2
  14. package/dist/{accelerationChart-DTlwSA0N.cjs → accelerationChart-D69FGgF0.cjs} +1 -1
  15. package/dist/{actionItem-Cw67YwsR.js → actionItem-XXesGERk.js} +2 -2
  16. package/dist/{actionItem-cdsgUvaC.cjs → actionItem-nkkG4T8t.cjs} +1 -1
  17. package/dist/{alarmLevelChart-BynSRHG2.js → alarmLevelChart-Cg4-8uhy.js} +2 -2
  18. package/dist/{alarmLevelChart-BMjTLxB5.cjs → alarmLevelChart-DtzJLIO8.cjs} +1 -1
  19. package/dist/{alertTable-CiwuaydQ.js → alertTable-_7uxXdg1.js} +2 -2
  20. package/dist/{alertTable-3VhkUZSf.cjs → alertTable-cpTXAjVG.cjs} +1 -1
  21. package/dist/{aliasObjectSelectorDemo-BLoecZkV.cjs → aliasObjectSelectorDemo-COnsSHH1.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-DfdRxb4I.js → aliasObjectSelectorDemo-bgchdBQ0.js} +1 -1
  23. package/dist/{annualRainfallChart-DKR-A_PT.cjs → annualRainfallChart-BRRuAOLJ.cjs} +1 -1
  24. package/dist/{annualRainfallChart-CHcr4-0D.js → annualRainfallChart-D5byp5kM.js} +2 -2
  25. package/dist/{aqi-Gu-pAovO.js → aqi-BkNZxokM.js} +2 -2
  26. package/dist/{aqi-D7VqP1QE.cjs → aqi-CbM96i-K.cjs} +1 -1
  27. package/dist/{aqiIndass-Bjj6n1aj.js → aqiIndass-CC_FnBlK.js} +2 -2
  28. package/dist/{aqiIndass-nfYUZ3UM.cjs → aqiIndass-UP1Ez_qA.cjs} +1 -1
  29. package/dist/{areaDeformCurve-fpGWmq05.cjs → areaDeformCurve-97gwWmiv.cjs} +1 -1
  30. package/dist/{areaDeformCurve-nwlcUBDv.js → areaDeformCurve-CoTcTIJx.js} +2 -2
  31. package/dist/{arrayCard-UoDqAGbN.cjs → arrayCard-CDs0w_2C.cjs} +1 -1
  32. package/dist/{arrayCard-TfcgLrHv.js → arrayCard-lwGyTUyK.js} +2 -2
  33. package/dist/{audio-DdUv9Ot-.cjs → audio-DcGRfoFl.cjs} +1 -1
  34. package/dist/{audio-BYgGYoEr.js → audio-DwzGVHhN.js} +2 -2
  35. package/dist/{bar-CkBXc7t1.cjs → bar-Bh4Zupfj.cjs} +1 -1
  36. package/dist/{bar-SfGiFl1r.js → bar-DA7TDioF.js} +2 -2
  37. package/dist/{bmp-BbtdzIrI.js → bmp-C-7PJc-e.js} +2 -2
  38. package/dist/{bmp-CY-Hb2x1.cjs → bmp-D7P6JPZ3.cjs} +1 -1
  39. package/dist/{box-CV41cJuX.js → box-CabcDxmT.js} +2 -2
  40. package/dist/{box-B4C_mirv.cjs → box-EScim_8s.cjs} +1 -1
  41. package/dist/{chartConfigPanel-D650rSn7.js → chartConfigPanel-BOTXJEgB.js} +1 -1
  42. package/dist/{chartConfigPanel-DBlqAbbH.cjs → chartConfigPanel-CGM3JLv0.cjs} +1 -1
  43. package/dist/{circleBar-DkV7xPBl.cjs → circleBar-C3LcD2GM.cjs} +1 -1
  44. package/dist/{circleBar-U3iXMQr5.js → circleBar-okrH5S9i.js} +2 -2
  45. package/dist/{clock-CjgMeOhp.cjs → clock-B-MpqirO.cjs} +1 -1
  46. package/dist/{clock-zKVUU8pu.js → clock-_0PzxcIr.js} +2 -2
  47. package/dist/{clt-BsIA-YPQ.js → clt-B7Ro2RZ9.js} +2 -2
  48. package/dist/{clt-DwI8i7zI.cjs → clt-CmMR6xrj.cjs} +1 -1
  49. package/dist/{cmc-BX9ichBB.cjs → cmc-CFz43gP5.cjs} +1 -1
  50. package/dist/{cmc-CgpHejR2.js → cmc-UjkMrdkf.js} +2 -2
  51. package/dist/{cmp-CTqtxzo4.cjs → cmp-B99dBC5D.cjs} +1 -1
  52. package/dist/{cmp-CS34lG7V.js → cmp-DAoGjmUK.js} +2 -2
  53. package/dist/{conclusionCard-wvtJmV_8.cjs → conclusionCard-BH6PfBmm.cjs} +1 -1
  54. package/dist/{conclusionCard-N6pA6Q9P.js → conclusionCard-DfGfQa2i.js} +2 -2
  55. package/dist/{controlList-Zz5ABe5b.js → controlList-Ch22lz5j.js} +2 -2
  56. package/dist/{controlList-BUAMdHA3.cjs → controlList-UzBZAUg8.cjs} +1 -1
  57. package/dist/{controlRecordList-CMR4y_Ml.cjs → controlRecordList-CjaRe3iR.cjs} +1 -1
  58. package/dist/{controlRecordList-Dx0zj7js.js → controlRecordList-DqVkxlxI.js} +2 -2
  59. package/dist/{controlRecordListAPP-bL9oqWzQ.js → controlRecordListAPP-B4Agwftc.js} +2 -2
  60. package/dist/{controlRecordListAPP-ZDCKmz_8.cjs → controlRecordListAPP-DO9oXKbz.cjs} +1 -1
  61. package/dist/{crd-DZPpD6XY.js → crd-9hr2CpXs.js} +2 -2
  62. package/dist/{crd-8tMwNlgx.cjs → crd-Bf8jZALT.cjs} +1 -1
  63. package/dist/{ctrBtn-eCu0UDtW.cjs → ctrBtn-DrNeLQd9.cjs} +1 -1
  64. package/dist/{ctrBtn-6Ql9ulTr.js → ctrBtn-Yfbw4Pt6.js} +3 -3
  65. package/dist/{ctrSet-BwFVH1Mk.js → ctrSet-BI4qrXOp.js} +3 -3
  66. package/dist/{ctrSet-pX-zVivo.cjs → ctrSet-Cw82MzYN.cjs} +1 -1
  67. package/dist/{ctrSwitch-b6hHf4QF.js → ctrSwitch-CbrB82jp.js} +3 -3
  68. package/dist/{ctrSwitch-D95SI-aJ.cjs → ctrSwitch-CyIBxuP0.cjs} +1 -1
  69. package/dist/{dataManagement-VucRLCK4.js → dataManagement-8jLHO5b6.js} +2 -2
  70. package/dist/{dataManagement-DubA1TV1.cjs → dataManagement-BANzNRgt.cjs} +1 -1
  71. package/dist/{dataReport-CALIw14D.js → dataReport-BTY2YPkp.js} +2 -2
  72. package/dist/{dataReport-CkF5J7X1.cjs → dataReport-C6rqooz1.cjs} +1 -1
  73. package/dist/{dataTable-C1rBH_p9.js → dataTable-CT7O3vOj.js} +1 -1
  74. package/dist/{dataTable-C2q_CX5D.cjs → dataTable-DK1bXW7L.cjs} +1 -1
  75. package/dist/{datetime-Cq8scz5Q.js → datetime-BfpmpRWw.js} +2 -2
  76. package/dist/{datetime-TBTeWqlf.cjs → datetime-Gc1JB409.cjs} +1 -1
  77. package/dist/{deepClusterSlipSurface-Cm50wbjv.js → deepClusterSlipSurface-CuPVV8T2.js} +2 -2
  78. package/dist/{deepClusterSlipSurface-CFaxRVmM.cjs → deepClusterSlipSurface-Do0cuafE.cjs} +1 -1
  79. package/dist/{deepDataMatrix-DyStA98d.js → deepDataMatrix-B2h-jr0-.js} +2 -2
  80. package/dist/{deepDataMatrix-CAYSav3X.cjs → deepDataMatrix-eYmIiIMu.cjs} +1 -1
  81. package/dist/{deepDisplacement3D-B3Iju2KK.cjs → deepDisplacement3D-Cc8f_nFC.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-Bat-Wc3i.js → deepDisplacement3D-DyF7L9GI.js} +2 -2
  83. package/dist/{deepDisplacementChart-CYMpNu_W.js → deepDisplacementChart-BUPlTFCA.js} +3 -3
  84. package/dist/{deepDisplacementChart-D5rHoC9r.js → deepDisplacementChart-BkgOiG2W.js} +2 -2
  85. package/dist/{deepDisplacementChart-CX9ALM89.cjs → deepDisplacementChart-DVscdSYa.cjs} +1 -1
  86. package/dist/{deepDisplacementChart-C-Tr4DdI.cjs → deepDisplacementChart-De935Ifi.cjs} +1 -1
  87. package/dist/{deepDisplacementView-DTSsODJQ.cjs → deepDisplacementView-C3qEJa9Q.cjs} +1 -1
  88. package/dist/{deepDisplacementView-DnjwQmEW.js → deepDisplacementView-C9P1cqRH.js} +1 -1
  89. package/dist/{deepNodeTemperatureChart-C9NRJ49Y.cjs → deepNodeTemperatureChart-DLzI-lAv.cjs} +1 -1
  90. package/dist/{deepNodeTemperatureChart-CLKg72UA.js → deepNodeTemperatureChart-DePoeTnV.js} +2 -2
  91. package/dist/{deepTangentAngleChart-C9aFSFrD.cjs → deepTangentAngleChart-ClBLpr_-.cjs} +1 -1
  92. package/dist/{deepTangentAngleChart-DklHYHhm.js → deepTangentAngleChart-D2SQkZEz.js} +2 -2
  93. package/dist/{deepTemperatureField-CcnVGgbf.js → deepTemperatureField-B_rWuVyI.js} +3 -3
  94. package/dist/{deepTemperatureField-CXBL4_LS.cjs → deepTemperatureField-CUGWy_vS.cjs} +1 -1
  95. package/dist/{deepTrendChart-OGW08BX-.cjs → deepTrendChart-BcrJBFqD.cjs} +1 -1
  96. package/dist/{deepTrendChart-De7ebpk4.js → deepTrendChart-C_e7Dgjz.js} +2 -2
  97. package/dist/{deviceOnlineStatus-DarcMtY4.cjs → deviceOnlineStatus-BZxCnz-5.cjs} +1 -1
  98. package/dist/{deviceOnlineStatus-_3Txb8Tg.js → deviceOnlineStatus-C0SqKqjc.js} +2 -2
  99. package/dist/{deviceStatus-CL6E-pQ0.js → deviceStatus-BPglOIKN.js} +2 -2
  100. package/dist/{deviceStatus-BiJw8rnz.cjs → deviceStatus-DClMreZ3.cjs} +1 -1
  101. package/dist/{displacementDataTable-tKtGe2xd.js → displacementDataTable-9WH9Y3-l.js} +2 -2
  102. package/dist/{displacementDataTable-DmAqr-JK.cjs → displacementDataTable-C5172BMT.cjs} +1 -1
  103. package/dist/{displacementTrajectoryChart-DG2YdSqq.cjs → displacementTrajectoryChart-C-pchT8b.cjs} +1 -1
  104. package/dist/{displacementTrajectoryChart-Dh6oPB0p.js → displacementTrajectoryChart-DWGKAbMq.js} +2 -2
  105. package/dist/{displacementTrendChart-CT140vXG.cjs → displacementTrendChart-B8Em-Apt.cjs} +1 -1
  106. package/dist/{displacementTrendChart-BHORe0qO.js → displacementTrendChart-D4keOUDg.js} +2 -2
  107. package/dist/{dxf-CjcHSJq-.js → dxf-BV56d_m8.js} +2 -2
  108. package/dist/{dxf-CVa4Vfm3.cjs → dxf-CRFblr-a.cjs} +1 -1
  109. package/dist/{dzc-DK16oTVj.cjs → dzc-9BLm4nwW.cjs} +1 -1
  110. package/dist/{dzc-DDXNSuie.js → dzc-FZBGaYTk.js} +2 -2
  111. package/dist/{emergencyPlan-Vim4E6h7.js → emergencyPlan-CbFUPUf9.js} +3 -3
  112. package/dist/{emergencyPlan-D0AMuD-3.cjs → emergencyPlan-D5YlhQNC.cjs} +1 -1
  113. package/dist/{evn-CdMN8gIC.js → evn-DMrhD8U9.js} +2 -2
  114. package/dist/{evn-D2mdSoFB.cjs → evn-ty-ACnv0.cjs} +1 -1
  115. package/dist/{evolutionChart-I8XVW05I.cjs → evolutionChart-C6E2yiqG.cjs} +1 -1
  116. package/dist/{evolutionChart-P0l6P0Bc.js → evolutionChart-Cg3jN_vy.js} +3 -3
  117. package/dist/{fileViewer-D7sAA8-W.cjs → fileViewer-BqlO8FED.cjs} +1 -1
  118. package/dist/{fileViewer-DvntGv0b.js → fileViewer-D3UlJjIK.js} +2 -2
  119. package/dist/{filterBar-8gex5oR-.js → filterBar-BWqpT6Ft.js} +2 -2
  120. package/dist/{filterBar-GSTji96g.cjs → filterBar-x-zvXO4x.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-DrMmHf3N.cjs → fireCombustionCurve-BzvhUF4h.cjs} +1 -1
  122. package/dist/{fireCombustionCurve-B3jAhOft.js → fireCombustionCurve-CCsxFlpG.js} +3 -3
  123. package/dist/{fireFilterBar-Dy9DcHij.cjs → fireFilterBar-BtMlwSl0.cjs} +1 -1
  124. package/dist/{fireFilterBar-CH6iK0Xg.js → fireFilterBar-KU0l3oMk.js} +2 -2
  125. package/dist/{fireHistoryTable-CHxHqPs0.js → fireHistoryTable-BqxPj5bh.js} +2 -2
  126. package/dist/{fireHistoryTable-n6L3juWp.cjs → fireHistoryTable-GYC28vg2.cjs} +1 -1
  127. package/dist/{gag-BsO4kmp1.js → gag-CEsV2Rsa.js} +2 -2
  128. package/dist/{gag-BzjuwBvY.cjs → gag-DnaEi2qS.cjs} +1 -1
  129. package/dist/{gasStationList-QwqTDEAG.cjs → gasStationList-CSmyS9tt.cjs} +1 -1
  130. package/dist/{gasStationList-7JzUcISs.js → gasStationList-enI_qbTZ.js} +2 -2
  131. package/dist/{geo3dViewer-Cf-jHpvF.cjs → geo3dViewer-Bi2I8qrS.cjs} +1 -1
  132. package/dist/{geo3dViewer-doEpUC_J.js → geo3dViewer-D3ZEH_sW.js} +3 -3
  133. package/dist/{glbModel-C6L--3dO.cjs → glbModel-BcrfDRGx.cjs} +1 -1
  134. package/dist/{glbModel-BgFIj_es.js → glbModel-Dz32VGsg.js} +2 -2
  135. package/dist/{globalObjectSelector-P_irB0rv.cjs → globalObjectSelector-CJrFL8ag.cjs} +1 -1
  136. package/dist/{globalObjectSelector-CdfiXRjg.js → globalObjectSelector-DPm_eXg_.js} +1 -1
  137. package/dist/{gnssFilterBar-CIwyv2yc.cjs → gnssFilterBar-DzHsXBPj.cjs} +1 -1
  138. package/dist/{gnssFilterBar-DPNshMIx.js → gnssFilterBar-klba1QZm.js} +2 -2
  139. package/dist/{gnssHistoryTable-j5FL6oYs.cjs → gnssHistoryTable-BmWSzo4U.cjs} +1 -1
  140. package/dist/{gnssHistoryTable-C7x4-Tpp.js → gnssHistoryTable-Cp3pIekL.js} +2 -2
  141. package/dist/{gnssMapView-BWcS4hqj.js → gnssMapView-BV9rsiDD.js} +4 -4
  142. package/dist/{gnssMapView-_VaJWBcE.cjs → gnssMapView-BaZlzP_f.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-hpyiGI-6.js → gnssSectionProfile-CArri0j5.js} +2 -2
  144. package/dist/{gnssSectionProfile-DGbTO7lV.cjs → gnssSectionProfile-D02MfJcd.cjs} +1 -1
  145. package/dist/{gnssTimeSeriesChart-rL9oG1ly.js → gnssTimeSeriesChart-C3VtICJV.js} +2 -2
  146. package/dist/{gnssTimeSeriesChart-CNT6xaNs.cjs → gnssTimeSeriesChart-fZYtdBrL.cjs} +1 -1
  147. package/dist/{gnssXYTrajectory-B1LZAepw.js → gnssXYTrajectory-ClbZljGY.js} +2 -2
  148. package/dist/{gnssXYTrajectory-CwAjhPRc.cjs → gnssXYTrajectory-glpzGLHH.cjs} +1 -1
  149. package/dist/{grd-rJXqEimt.cjs → grd-DAPxN3Yv.cjs} +1 -1
  150. package/dist/{grd-BLab9IY0.js → grd-DFbgrJiz.js} +2 -2
  151. package/dist/{grdIndass-niY4UOwz.cjs → grdIndass-CRYPP8ap.cjs} +1 -1
  152. package/dist/{grdIndass-gGrZ7gRV.js → grdIndass-CdReMrRF.js} +2 -2
  153. package/dist/{grg-Dnro7bLg.js → grg-BuxeFXkW.js} +2 -2
  154. package/dist/{grg-C1L5yeyY.cjs → grg-DBj_IXUS.cjs} +1 -1
  155. package/dist/{gridview-DxUsv2ny.cjs → gridview-DMqISEIm.cjs} +1 -1
  156. package/dist/{gridview-BhjWlD0J.js → gridview-ieOKw-zp.js} +2 -2
  157. package/dist/{groundwaterFilterBar-bNhTkX1C.js → groundwaterFilterBar-CMrXUaJD.js} +2 -2
  158. package/dist/{groundwaterFilterBar-C-2e7S04.cjs → groundwaterFilterBar-DTjCop4R.cjs} +1 -1
  159. package/dist/{groundwaterProfileChart-BxKGPuOe.cjs → groundwaterProfileChart-CHFMvxM0.cjs} +2 -2
  160. package/dist/{groundwaterProfileChart-dhzmwfwz.js → groundwaterProfileChart-wwZ31Nxz.js} +3 -3
  161. package/dist/{groundwaterTimeCurve-BtzP6icm.js → groundwaterTimeCurve-CL7EWs-M.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-CTQPlTUr.cjs → groundwaterTimeCurve-DzTolxJ6.cjs} +1 -1
  163. package/dist/{groupCard-D00ElZoy.js → groupCard-3iWG0sN3.js} +2 -2
  164. package/dist/{groupCard-D4gdaVqR.cjs → groupCard-CdPis-TL.cjs} +1 -1
  165. package/dist/{headerBar-DEHj8fJr.js → headerBar-BVa2ewi0.js} +2 -2
  166. package/dist/{headerBar-MFw1W0qa.cjs → headerBar-DVP5Ob99.cjs} +1 -1
  167. package/dist/{history-D1R2RAZQ.cjs → history-CVMvhgUJ.cjs} +1 -1
  168. package/dist/{history-BRkb914v.js → history-CZCtaT0D.js} +1 -1
  169. package/dist/{index-BZpYmpDy.js → index-BueGUjcH.js} +3291 -3107
  170. package/dist/{index-77aUdspY.cjs → index-DYr57ceS.cjs} +13 -13
  171. package/dist/{insarDeformChart-5EVWIkpL.cjs → insarDeformChart-CVrCLtcb.cjs} +1 -1
  172. package/dist/{insarDeformChart-pbOnnoN-.js → insarDeformChart-vPREnzjC.js} +2 -2
  173. package/dist/{insarImageViewer-DQJBN4YM.cjs → insarImageViewer-C0D9bkS3.cjs} +1 -1
  174. package/dist/{insarImageViewer-D3bbQA6g.js → insarImageViewer-DsNoAsNI.js} +2 -2
  175. package/dist/{kds-D5seJB3L.cjs → kds-C6tBi9fO.cjs} +1 -1
  176. package/dist/{kds-gTJOwHbM.js → kds-DUdtTddq.js} +2 -2
  177. package/dist/{kpiCard-Cx6VNK6L.js → kpiCard-A_7vB_FS.js} +2 -2
  178. package/dist/{kpiCard-Bz-fg6sL.cjs → kpiCard-Dfn9Utnc.cjs} +1 -1
  179. package/dist/{landslideMap-D7_QpwmM.cjs → landslideMap-CjsBed2W.cjs} +1 -1
  180. package/dist/{landslideMap-5erIcZo7.js → landslideMap-DEYHn_Z8.js} +3 -3
  181. package/dist/{landslideWarning-C3FZqrxT.cjs → landslideWarning-9q-8-Yaf.cjs} +1 -1
  182. package/dist/{landslideWarning-CzaddgWf.js → landslideWarning-C2SVP_SW.js} +5 -5
  183. package/dist/{layerTabs-DqbOykS2.js → layerTabs-CkgVEQIu.js} +2 -2
  184. package/dist/{layerTabs-Dc1Xb11W.cjs → layerTabs-DpIpshzv.cjs} +1 -1
  185. package/dist/{leaflet-src-BY2SMh9y.js → leaflet-src-BV47Q4HI.js} +1 -1
  186. package/dist/{leaflet-src-Brb8KUL5.cjs → leaflet-src-DzRw1bMt.cjs} +1 -1
  187. package/dist/{lerc-DGuyYCKG.cjs → lerc-BxPJ0Ezc.cjs} +1 -1
  188. package/dist/{lerc-Chm_GVte.js → lerc-COLax3Js.js} +2 -2
  189. package/dist/{lin-8x2j8aGa.cjs → lin-0o_p8mvp.cjs} +1 -1
  190. package/dist/{lin-tqtSA5ci.js → lin-BgNnturC.js} +2 -2
  191. package/dist/{linIndass-Dxo_bzrZ.cjs → linIndass-DCnHejlJ.cjs} +1 -1
  192. package/dist/{linIndass-DHFymSVI.js → linIndass-DqIczVZr.js} +2 -2
  193. package/dist/{lst-BV6EbDPs.cjs → lst-DVSrQxnF.cjs} +1 -1
  194. package/dist/{lst-BejIuO0f.js → lst-pzZFRLE7.js} +2 -2
  195. package/dist/{manualEntry-Bt4cs6kn.cjs → manualEntry-COjFNu6s.cjs} +1 -1
  196. package/dist/{manualEntry-DObI0OAq.js → manualEntry-CU7C50JU.js} +2 -2
  197. package/dist/{mapBackground-Cuym5Dqr.js → mapBackground-Bi8yjPRE.js} +3 -3
  198. package/dist/{mapBackground-oVOBK3zr.cjs → mapBackground-ssUjWKfZ.cjs} +1 -1
  199. package/dist/{mappingList-Dzq0zMfs.js → mappingList-BRndtYHP.js} +2 -2
  200. package/dist/{mappingList-BEWAqLd4.cjs → mappingList-Cryu-iab.cjs} +1 -1
  201. package/dist/{markdownViewer-V5b1xhPh.cjs → markdownViewer-Dn2PQ9LA.cjs} +1 -1
  202. package/dist/{markdownViewer-Bz50jkb6.js → markdownViewer-i0a6mIv1.js} +2 -2
  203. package/dist/{mix-control-modal-DzVLdO3S.js → mix-control-modal-CHglSLUZ.js} +1 -1
  204. package/dist/{mix-control-modal-I6DqPm04.cjs → mix-control-modal-CicQq7ai.cjs} +1 -1
  205. package/dist/{mixGrid-_ur8VKLD.cjs → mixGrid-CHyP3WlY.cjs} +1 -1
  206. package/dist/{mixGrid-tVSdKPms.js → mixGrid-CJfUwclp.js} +2 -2
  207. package/dist/mixdashboards.cjs +1 -1
  208. package/dist/mixdashboards.css +1 -1
  209. package/dist/mixdashboards.js +1 -1
  210. package/dist/{mixiotObjectListApi-D5vNNWgT.js → mixiotObjectListApi-BzhGWfpb.js} +1 -1
  211. package/dist/{mixiotObjectListApi-BUQ-RZ3L.cjs → mixiotObjectListApi-D8aEu-tS.cjs} +1 -1
  212. package/dist/{mjpegCamera-DnAPpFJU.js → mjpegCamera-BltugLlx.js} +2 -2
  213. package/dist/{mjpegCamera-CjWe8BEK.cjs → mjpegCamera-DNETbJj6.cjs} +1 -1
  214. package/dist/{monitorAlert-qmVSQ1lc.cjs → monitorAlert-B0e6NlDC.cjs} +1 -1
  215. package/dist/{monitorAlert-B-fTYPn6.js → monitorAlert-BZt1nTav.js} +2 -2
  216. package/dist/{monitorData-YhGSUq3H.cjs → monitorData-BN6f9iMG.cjs} +1 -1
  217. package/dist/{monitorData-Dopc660L.js → monitorData-Bj-yPQyW.js} +2 -2
  218. package/dist/{monitorSpeedChart-Brj_YHsO.cjs → monitorSpeedChart-B3VWNas7.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-Dsvr_QPB.js → monitorSpeedChart-DPUyFmKD.js} +1 -1
  220. package/dist/{mxa-BzdI7BLB.cjs → mxa-BQ_gyPOg.cjs} +1 -1
  221. package/dist/{mxa-D4WkyBYZ.js → mxa-pTWhgscr.js} +2 -2
  222. package/dist/{myValue-DYtBtOJ2.js → myValue-Dyyv7mp6.js} +2 -2
  223. package/dist/{myValue-C0tq-asC.cjs → myValue-K9yzWHVv.cjs} +1 -1
  224. package/dist/{myValueList-BJctRTNd.cjs → myValueList-BF88xTbG.cjs} +1 -1
  225. package/dist/{myValueList-Ddpn1S68.js → myValueList-BrL41hIy.js} +2 -2
  226. package/dist/{objectList-Csf0hVwo.cjs → objectList-D1wulpL0.cjs} +1 -1
  227. package/dist/{objectList-G4wXFDwe.js → objectList-DqUaLWIN.js} +3 -3
  228. package/dist/{objectListAPP-BrmUj4At.js → objectListAPP-68pa8xQ3.js} +3 -3
  229. package/dist/{objectListAPP-UZN4iuTn.cjs → objectListAPP-BJI-LZ9h.cjs} +1 -1
  230. package/dist/{photo-BEPeK7U8.js → photo-CqtG1ZDn.js} +2 -2
  231. package/dist/{photo-BYH_qg5O.cjs → photo-D2G-MiYd.cjs} +1 -1
  232. package/dist/{pie-B57zDxJV.cjs → pie-DGQowd1d.cjs} +1 -1
  233. package/dist/{pie-CEVKe1lL.js → pie-rodX5eBx.js} +2 -2
  234. package/dist/{placeholder-Bwv3VyEg.js → placeholder-C2uw4-Bv.js} +1 -1
  235. package/dist/{placeholder-BezBEQGo.cjs → placeholder-yXuUcCld.cjs} +1 -1
  236. package/dist/{pressBtn-1LCNz2gE.js → pressBtn-CkKRECXu.js} +3 -3
  237. package/dist/{pressBtn-CJZTyY8I.cjs → pressBtn-kIjSTK2P.cjs} +1 -1
  238. package/dist/{processTable-HtDeg1by.cjs → processTable-DVvTpite.cjs} +1 -1
  239. package/dist/{processTable-CHDazqah.js → processTable-pFBZ3sr0.js} +2 -2
  240. package/dist/{progressBar-BP4SmPZK.cjs → progressBar-CE8Tat_F.cjs} +1 -1
  241. package/dist/{progressBar-C3NcWUrS.js → progressBar-CJXjo8T8.js} +2 -2
  242. package/dist/{progressCircle-CDqK1iFt.cjs → progressCircle-Cqjxopp0.cjs} +1 -1
  243. package/dist/{progressCircle-Bo9-Qva_.js → progressCircle-jhxHU2LM.js} +2 -2
  244. package/dist/{qrcode-VmYwvClG.js → qrcode-COU9b8jO.js} +2 -2
  245. package/dist/{qrcode-qD6tOm4F.cjs → qrcode-ICKNQzlF.cjs} +1 -1
  246. package/dist/raceBar-CpfkbT_l.cjs +2 -0
  247. package/dist/{raceBar-DR2-luKW.js → raceBar-DPZn5eQr.js} +109 -101
  248. package/dist/{rad-1Jy1KDzt.js → rad-DYSDihyX.js} +2 -2
  249. package/dist/{rad-D7-YZJNO.cjs → rad-MVqAl4DI.cjs} +1 -1
  250. package/dist/{radarMapViewer-KPhNE5XX.cjs → radarMapViewer-DSEst_zr.cjs} +1 -1
  251. package/dist/{radarMapViewer-ByQXe0Mu.js → radarMapViewer-DT-cLDqj.js} +2 -2
  252. package/dist/{rainfallFilterBar-C1obotPf.js → rainfallFilterBar-BH4y-ZiG.js} +2 -2
  253. package/dist/{rainfallFilterBar-CVQpQp82.cjs → rainfallFilterBar-DBckf4TU.cjs} +1 -1
  254. package/dist/{rainfallTimeCurve-DU2tt-Ls.cjs → rainfallTimeCurve-BLPYjZne.cjs} +1 -1
  255. package/dist/{rainfallTimeCurve-B2rEx3T_.js → rainfallTimeCurve-CEROEYQa.js} +3 -3
  256. package/dist/{rangeLin-COsJkCky.cjs → rangeLin-CAWXiFqA.cjs} +1 -1
  257. package/dist/{rangeLin-CdfUCFQr.js → rangeLin-D5m33pm3.js} +2 -2
  258. package/dist/{realtimeEvolutionMap-B7GT8MOq.cjs → realtimeEvolutionMap-7YXQpGQV.cjs} +1 -1
  259. package/dist/{realtimeEvolutionMap-aR63xPW_.js → realtimeEvolutionMap-B_WyUQ7o.js} +2 -2
  260. package/dist/{regionBar-DB-secNe.js → regionBar-BklMVV2U.js} +2 -2
  261. package/dist/{regionBar-BYF7IaGA.cjs → regionBar-CRE0mrBK.cjs} +1 -1
  262. package/dist/{request-CBsG4ipL.js → request-Bu96_fCa.js} +1 -1
  263. package/dist/{request-CvdHjG34.cjs → request-C_dGr-al.cjs} +1 -1
  264. package/dist/{retainer1-CMzTlM5Z.js → retainer1-C9XjKFwo.js} +3 -3
  265. package/dist/{retainer1-1CFk4InO.cjs → retainer1-CSONW25j.cjs} +1 -1
  266. package/dist/{retainer2-DW4ewYX7.js → retainer2-Nohg83dY.js} +3 -3
  267. package/dist/{retainer2-DliOH7it.cjs → retainer2-pxQIRn6B.cjs} +1 -1
  268. package/dist/{retainerRecordList-DV7Tx39d.cjs → retainerRecordList-B7mJ2EWt.cjs} +1 -1
  269. package/dist/{retainerRecordList-Bcm6leuD.js → retainerRecordList-D7ZTrf1N.js} +2 -2
  270. package/dist/{retainerRecordListAPP-BDRwp8T3.js → retainerRecordListAPP-C5v2ahXJ.js} +2 -2
  271. package/dist/{retainerRecordListAPP-CJ-u0Tj2.cjs → retainerRecordListAPP-D-YaMhTT.cjs} +1 -1
  272. package/dist/{ringTopN-rd2UwH9f.cjs → ringTopN-CxZDBUkx.cjs} +1 -1
  273. package/dist/{ringTopN-Duq0pzm_.js → ringTopN-n0TONMcf.js} +2 -2
  274. package/dist/{riskRegionTable-CbPB8mlY.cjs → riskRegionTable-Byb0Z693.cjs} +1 -1
  275. package/dist/{riskRegionTable-BE_ggcEV.js → riskRegionTable-CBddIShe.js} +2 -2
  276. package/dist/{sankey-BqBn6_rx.cjs → sankey-BlIAPski.cjs} +1 -1
  277. package/dist/{sankey-CnKm9PZe.js → sankey-D6XWVSSp.js} +2 -2
  278. package/dist/{scd-BaBLoem8.js → scd-B-DnzdLf.js} +2 -2
  279. package/dist/{scd-BgJ5P7co.cjs → scd-CW_VLAdy.cjs} +1 -1
  280. package/dist/{sideMenu-CUal1UQY.js → sideMenu-B4NRCYfC.js} +2 -2
  281. package/dist/{sideMenu-BgiQL2P1.cjs → sideMenu-DCz3bw5f.cjs} +1 -1
  282. package/dist/{slopeStability-Y2tDzJeh.cjs → slopeStability-C-vWRW5q.cjs} +1 -1
  283. package/dist/{slopeStability-B9YbQLCE.js → slopeStability-D5OmQDgi.js} +2 -2
  284. package/dist/{speedCurve-Kll2RRJ8.cjs → speedCurve-D6uG-gFp.cjs} +1 -1
  285. package/dist/{speedCurve-DERBMtE1.js → speedCurve-tvLBjNoJ.js} +2 -2
  286. package/dist/{stressFilterBar-BGI4gVfE.cjs → stressFilterBar-BQYqGIRB.cjs} +1 -1
  287. package/dist/{stressFilterBar-CHRWFnpP.js → stressFilterBar-aj-X6HC9.js} +2 -2
  288. package/dist/{stressTimeCurve-DE5KiXEt.cjs → stressTimeCurve-B0Gplbam.cjs} +1 -1
  289. package/dist/{stressTimeCurve-hrlqSYS3.js → stressTimeCurve-DC8cKQ52.js} +3 -3
  290. package/dist/{swiper-CnGllhBQ.cjs → swiper-CDdx8LXl.cjs} +1 -1
  291. package/dist/{swiper-DNHC412s.js → swiper-yrpsF9po.js} +2 -2
  292. package/dist/{terminalConfigList-C45EANO4.cjs → terminalConfigList-NmdMNFkS.cjs} +1 -1
  293. package/dist/{terminalConfigList-BlHAsyCm.js → terminalConfigList-VU0kGVKY.js} +2 -2
  294. package/dist/{terminalList-UGjkhyf4.js → terminalList-BAYA-Ac0.js} +2 -2
  295. package/dist/{terminalList-CNI3_FGb.cjs → terminalList-BsHqVc8x.cjs} +1 -1
  296. package/dist/{terminalListAPP-6fPXF-yJ.cjs → terminalListAPP-CsFu8juA.cjs} +1 -1
  297. package/dist/{terminalListAPP-CIJZMdxI.js → terminalListAPP-o2MxJO3g.js} +2 -2
  298. package/dist/{textbox-yNPnOaan.cjs → textbox-5BUkzLTc.cjs} +1 -1
  299. package/dist/{textbox-BD_LQ0EN.js → textbox-B4Mo8FWS.js} +2 -2
  300. package/dist/{timeQueryBar-B-uPtN25.js → timeQueryBar-B0LIBA90.js} +1 -1
  301. package/dist/{timeQueryBar-3qiV0IV9.cjs → timeQueryBar-G4hUPdC2.cjs} +1 -1
  302. package/dist/{timeSeries-DdQI4oZU.js → timeSeries-Ch4UV0P1.js} +3 -3
  303. package/dist/{timeSeries-BTUuojvj.cjs → timeSeries-DC_CbU3l.cjs} +1 -1
  304. package/dist/{timeSeriesCurve-TGXshTzl.js → timeSeriesCurve-BF10Q_7c.js} +3 -3
  305. package/dist/{timeSeriesCurve-Cj_FbK4x.cjs → timeSeriesCurve-CJSHo8qO.cjs} +1 -1
  306. package/dist/{toggleBtn-BMxqm5WG.js → toggleBtn-BhILbiNf.js} +2 -2
  307. package/dist/{toggleBtn-BXcQfnTB.cjs → toggleBtn-DQ2sHyaB.cjs} +1 -1
  308. package/dist/{trajectoryConfigPanel-CqoKO0hL.cjs → trajectoryConfigPanel-BgSmlQkD.cjs} +1 -1
  309. package/dist/{trajectoryConfigPanel-uRLWdXUb.js → trajectoryConfigPanel-BlqriMc7.js} +1 -1
  310. package/dist/{trajectoryScatter-DPE4cC8N.js → trajectoryScatter-BL2aiBf-.js} +2 -2
  311. package/dist/{trajectoryScatter-Dph8PSdN.cjs → trajectoryScatter-CeX4LQpn.cjs} +1 -1
  312. package/dist/{universalConfigPanel-CI1CuBmr.js → universalConfigPanel-CLKhwJP4.js} +1 -1
  313. package/dist/{universalConfigPanel-Db-pC67o.cjs → universalConfigPanel-NMan3ddE.cjs} +1 -1
  314. package/dist/{universalTable-DMrgtBrw.js → universalTable-CEmD-HRB.js} +2 -2
  315. package/dist/{universalTable-dQObEQog.cjs → universalTable-thYFp4vt.cjs} +1 -1
  316. package/dist/{video-DbsKQhVD.cjs → video-8idiBjxG.cjs} +1 -1
  317. package/dist/{video-DEhLie80.js → video-t1nUpAcT.js} +2 -2
  318. package/dist/{videoMonitor-DLBtivXO.cjs → videoMonitor-BEeCMVJf.cjs} +1 -1
  319. package/dist/{videoMonitor-BS6_LYUb.js → videoMonitor-PM3-BUjQ.js} +2 -2
  320. package/dist/{vlu-DaSjPY3I.js → vlu-CE181id-.js} +2 -2
  321. package/dist/{vlu-DXk_wQf-.cjs → vlu-o3-SObwR.cjs} +1 -1
  322. package/dist/{warningOverview-CKCEs_Jj.js → warningOverview-CKcMNgw-.js} +3 -3
  323. package/dist/{warningOverview-DAUlXzr0.cjs → warningOverview-CbJfW5ek.cjs} +1 -1
  324. package/dist/{weather-XUj6pFwM.js → weather-D3LQY9qO.js} +2 -2
  325. package/dist/{weather-BAI0IWNH.cjs → weather-a0CGhe9q.cjs} +1 -1
  326. package/dist/{windLin-C9dsCT1w.cjs → windLin-Cg58bRj3.cjs} +1 -1
  327. package/dist/{windLin-Bt4q2eUT.js → windLin-D7qqnbNz.js} +2 -2
  328. package/package.json +1 -1
  329. package/dist/raceBar-uAs91hyk.cjs +0 -2
@@ -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-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
+ "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-B5ivgb3E.cjs"),C=require("./index-DYr57ceS.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,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-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(`
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-DYr57ceS.cjs");require("element-plus");const Ds=require("./EChartComponentBase-ChoVZ7wg.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, N as Tl, G as wl, O as Sl, _ as bl } from "./index-BZpYmpDy.js";
20
+ import { d as cr, N as Tl, G as wl, O as Sl, _ as bl } from "./index-BueGUjcH.js";
21
21
  import "element-plus";
22
- import { E as El } from "./EChartComponentBase-i76OGL3z.js";
22
+ import { E as El } from "./EChartComponentBase-c7NzErOu.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";
@@ -35,10 +35,10 @@ import "element-plus/es/components/option/style/css";
35
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 { N as Ie, G as ze, O as Re, d as B, _ as Fe } from "./index-BZpYmpDy.js";
38
+ import { N as Ie, G as ze, O as Re, d as B, _ as Fe } from "./index-BueGUjcH.js";
39
39
  import "element-plus";
40
- import { E as Ue } from "./EChartComponentBase-i76OGL3z.js";
41
- import { formatRequest as Pe } from "./request-CBsG4ipL.js";
40
+ import { E as Ue } from "./EChartComponentBase-c7NzErOu.js";
41
+ import { formatRequest as Pe } from "./request-Bu96_fCa.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,
@@ -28,8 +28,8 @@ var X = (r, l, o) => new Promise((L, u) => {
28
28
  });
29
29
  import { defineComponent as ct, useCssVars as rt, unref as P, ref as W, computed as q, watch as J, nextTick as B, onMounted as dt, onBeforeUnmount as pt, openBlock as ft, createElementBlock as ht, createElementVNode as z, toDisplayString as G, renderSlot as ut } from "vue";
30
30
  import "html2canvas";
31
- import { B as mt } from "./BaseComponent-CQaDWNO0.js";
32
- import { l as gt, N as vt, G as yt, _ as xt } from "./index-BZpYmpDy.js";
31
+ import { B as mt } from "./BaseComponent-DtvXBQYf.js";
32
+ import { l as gt, N as vt, G as yt, _ as xt } from "./index-BueGUjcH.js";
33
33
  import "./index-eIsZnzkc.js";
34
34
  import { A as Dt, D as _t } from "./ele-mxa-icon-CJWttkCK.js";
35
35
  import { i as bt } from "./echarts-Bp7QN4X6.js";
@@ -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-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;">
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-B5ivgb3E.cjs"),z=require("./index-DYr57ceS.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,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-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;">
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-DYr57ceS.cjs");require("element-plus");const me=require("./EChartComponentBase-ChoVZ7wg.cjs"),fe=require("./request-C_dGr-al.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 Y=Object.defineProperty,j=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(d,i,s)=>i in d?Y(d,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[i]=s,P=(d,i)=>{for(var s in i||(i={}))X.call(i,s)&&O(d,s,i[s]);if(L)for(var s of L(i))Z.call(i,s)&&O(d,s,i[s]);return d},q=(d,i)=>j(d,F(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),V=require("./index-77aUdspY.cjs");require("./index-CJgyJTvc.cjs");const T=require("./ele-gridview-icon-D3GcssP6.cjs"),H=require("./echarts-BB8O2KSA.cjs"),W={class:"deep-displacement-view"},G={class:"view-toolbar"},J={class:"time-display"},K={class:"view-header"},Q={class:"view-title"},ee={class:"view-time"},te={class:"chart-container"},oe={key:0,class:"no-data"},le={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"深部位移三视图",NAME_EN:"Deep Displacement View",ORDER:12,PLATFORM:["pc","screen"]},ae={title:{value:"深部位移三视图",type:"string",label:"component.deepDisplacement.title"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},lineColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.lineColor"},gridColor:{value:"#e5e5e5",type:"color",label:"component.deepDisplacement.gridColor"},pointColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.pointColor"}},ne=[{configPanelId:""}],ie=["configPanelId"],re=[],se={useAlias:!1,multiObject:!1,source:""},ce={DEFAULT:le,OPTIONS:ae,DATA:ne,PARAMS:ie,SOURCE:re,COMMON:se},de=e.defineComponent(q(P({},ce),{__name:"deepDisplacementView",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(d){e.useCssVars(t=>({v5fe08aba:u.value.bgColor,bbec750a:u.value.textColor,v74d3ff14:u.value.lineColor}));const i=V.useLinkStore(),s=d,R=[{label:"俯视图",value:"top"},{label:"主视图",value:"front"},{label:"侧视图",value:"side"}],M={top:"俯视图",front:"主视图",side:"侧视图"},f=e.ref("top"),b=e.ref(""),z=e.computed(()=>V.dayjs().format("YYYY-MM-DD HH:mm:ss")),N=`deepDisplacementView_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,v=e.ref([]),_=e.computed(()=>v.value&&v.value.length>0);let c=null,g=null;const u=e.computed(()=>{var l,a,m,r,p,x,y;const{options:t,data:o}=s.conf||{};return{title:((l=t==null?void 0:t.title)==null?void 0:l.value)||"深部位移三视图",configPanelId:((a=o==null?void 0:o[0])==null?void 0:a.configPanelId)||"",bgColor:((m=t==null?void 0:t.bgColor)==null?void 0:m.value)||"#ffffff",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.value)||"#333333",lineColor:((p=t==null?void 0:t.lineColor)==null?void 0:p.value)||"#4a90d9",gridColor:((x=t==null?void 0:t.gridColor)==null?void 0:x.value)||"#e5e5e5",pointColor:((y=t==null?void 0:t.pointColor)==null?void 0:y.value)||"#4a90d9"}}),B=t=>{const o=v.value;if(!o||o.length===0)return{};const l=u.value;let a=[],m=[],r="",p="";t==="front"?(a=o.map(n=>n.x),m=o.map(n=>n.depth),r="X (mm)",p="Z (mm)"):t==="side"?(a=o.map(n=>n.y),m=o.map(n=>n.depth),r="Y (mm)",p="Z (mm)"):(a=o.map(n=>n.x),m=o.map(n=>n.y),r="X (mm)",p="Y (mm)");const x=Math.min(...a),y=Math.max(...a),C=Math.min(...m),I=Math.max(...m),A=Math.max(Math.abs(x),Math.abs(y),15e3),k=t==="top"?Math.max(Math.abs(C),Math.abs(I),15e3):Math.abs(C-I)*1.1;return{grid:{left:60,right:50,top:20,bottom:60},tooltip:{trigger:"item",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:n=>{const S=n.dataIndex,h=o[S];return`<div style="padding: 8px;">
1
+ "use strict";var Y=Object.defineProperty,j=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var L=Object.getOwnPropertySymbols;var X=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var O=(d,i,s)=>i in d?Y(d,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):d[i]=s,P=(d,i)=>{for(var s in i||(i={}))X.call(i,s)&&O(d,s,i[s]);if(L)for(var s of L(i))Z.call(i,s)&&O(d,s,i[s]);return d},q=(d,i)=>j(d,F(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),V=require("./index-DYr57ceS.cjs");require("./index-CJgyJTvc.cjs");const T=require("./ele-gridview-icon-D3GcssP6.cjs"),H=require("./echarts-BB8O2KSA.cjs"),W={class:"deep-displacement-view"},G={class:"view-toolbar"},J={class:"time-display"},K={class:"view-header"},Q={class:"view-title"},ee={class:"view-time"},te={class:"chart-container"},oe={key:0,class:"no-data"},le={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"深部位移三视图",NAME_EN:"Deep Displacement View",ORDER:12,PLATFORM:["pc","screen"]},ae={title:{value:"深部位移三视图",type:"string",label:"component.deepDisplacement.title"},bgColor:{value:"#ffffff",type:"color",label:"component.options.bgColor"},textColor:{value:"#333333",type:"color",label:"component.options.textColor"},lineColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.lineColor"},gridColor:{value:"#e5e5e5",type:"color",label:"component.deepDisplacement.gridColor"},pointColor:{value:"#4a90d9",type:"color",label:"component.deepDisplacement.pointColor"}},ne=[{configPanelId:""}],ie=["configPanelId"],re=[],se={useAlias:!1,multiObject:!1,source:""},ce={DEFAULT:le,OPTIONS:ae,DATA:ne,PARAMS:ie,SOURCE:re,COMMON:se},de=e.defineComponent(q(P({},ce),{__name:"deepDisplacementView",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(d){e.useCssVars(t=>({v5fe08aba:u.value.bgColor,bbec750a:u.value.textColor,v74d3ff14:u.value.lineColor}));const i=V.useLinkStore(),s=d,R=[{label:"俯视图",value:"top"},{label:"主视图",value:"front"},{label:"侧视图",value:"side"}],M={top:"俯视图",front:"主视图",side:"侧视图"},f=e.ref("top"),b=e.ref(""),z=e.computed(()=>V.dayjs().format("YYYY-MM-DD HH:mm:ss")),N=`deepDisplacementView_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,v=e.ref([]),_=e.computed(()=>v.value&&v.value.length>0);let c=null,g=null;const u=e.computed(()=>{var l,a,m,r,p,x,y;const{options:t,data:o}=s.conf||{};return{title:((l=t==null?void 0:t.title)==null?void 0:l.value)||"深部位移三视图",configPanelId:((a=o==null?void 0:o[0])==null?void 0:a.configPanelId)||"",bgColor:((m=t==null?void 0:t.bgColor)==null?void 0:m.value)||"#ffffff",textColor:((r=t==null?void 0:t.textColor)==null?void 0:r.value)||"#333333",lineColor:((p=t==null?void 0:t.lineColor)==null?void 0:p.value)||"#4a90d9",gridColor:((x=t==null?void 0:t.gridColor)==null?void 0:x.value)||"#e5e5e5",pointColor:((y=t==null?void 0:t.pointColor)==null?void 0:y.value)||"#4a90d9"}}),B=t=>{const o=v.value;if(!o||o.length===0)return{};const l=u.value;let a=[],m=[],r="",p="";t==="front"?(a=o.map(n=>n.x),m=o.map(n=>n.depth),r="X (mm)",p="Z (mm)"):t==="side"?(a=o.map(n=>n.y),m=o.map(n=>n.depth),r="Y (mm)",p="Z (mm)"):(a=o.map(n=>n.x),m=o.map(n=>n.y),r="X (mm)",p="Y (mm)");const x=Math.min(...a),y=Math.max(...a),C=Math.min(...m),I=Math.max(...m),A=Math.max(Math.abs(x),Math.abs(y),15e3),k=t==="top"?Math.max(Math.abs(C),Math.abs(I),15e3):Math.abs(C-I)*1.1;return{grid:{left:60,right:50,top:20,bottom:60},tooltip:{trigger:"item",backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#e5e5e5",textStyle:{color:"#333",fontSize:12},formatter:n=>{const S=n.dataIndex,h=o[S];return`<div style="padding: 8px;">
2
2
  <div style="font-weight: 600; margin-bottom: 6px;">深度: ${h.depth}m</div>
3
3
  <div style="color: #666; line-height: 1.8;">
4
4
  <div>高程: ${h.elevation}m</div>
@@ -16,7 +16,7 @@ import "element-plus/es/components/select/style/css";
16
16
  import "element-plus/es/components/option/style/css";
17
17
  import "element-plus/es/components/button/style/css";
18
18
  import { defineComponent as le, useCssVars as ae, ref as w, computed as I, watch as A, nextTick as j, onMounted as ne, onBeforeUnmount as ie, openBlock as V, createElementBlock as E, createElementVNode as s, toDisplayString as h, createVNode as L, withCtx as B, createTextVNode as se, Fragment as re, renderList as de, createCommentVNode as ce, renderSlot as me } from "vue";
19
- import { l as pe, d as ue, _ as fe } from "./index-BZpYmpDy.js";
19
+ import { l as pe, d as ue, _ as fe } from "./index-BueGUjcH.js";
20
20
  import "./index-eIsZnzkc.js";
21
21
  import { A as ve, D as xe } from "./ele-gridview-icon-cSd1oIDi.js";
22
22
  import { i as ge } from "./echarts-Bp7QN4X6.js";
@@ -1 +1 @@
1
- "use strict";var oe=Object.defineProperty,se=Object.defineProperties;var ae=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var U=(p,i,f)=>i in p?oe(p,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):p[i]=f,G=(p,i)=>{for(var f in i||(i={}))ie.call(i,f)&&U(p,f,i[f]);if(P)for(var f of P(i))re.call(i,f)&&U(p,f,i[f]);return p},K=(p,i)=>se(p,ae(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),ce=require("@element-plus/icons-vue"),V=require("./index-77aUdspY.cjs");require("element-plus");const ue=require("./EChartComponentBase-D9EUh4BZ.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),W=require("./ele-lin-icon-Dke_1AmT.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),de=require("./install-C8buXQPI.cjs"),pe=require("./install-CltTFs4e.cjs"),fe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ge={class:"toolbar"},ve=["id"],Ce={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"节点温度图",NAME_EN:"DeepNodeTemperatureChart",ORDER:19,PLATFORM:["pc","screen"]},Se={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"温度(℃)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},X=[{name:"-130m",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"-140m",fv:"temp_140",depth:-140,color:"#91cc75",object_id:""}],be=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Oe={useAlias:!1,multiObject:!0,source:"mosaic"},ke={DEFAULT:Ce,OPTIONS:Se,DATA:X,PARAMS:be,SOURCE:Ne,COMMON:Oe},ye=o.defineComponent(K(G({},ke),{__name:"deepNodeTemperatureChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){R.use([de.install,R.install,pe.install,R.install$1,fe.install]);const i=p,f=V.useLinkStore(),d=o.ref(""),x=o.ref([]),k=o.ref(new Map);class Y extends ue.EChartComponentBase{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),l=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","温度(℃)"),linkChannel:l}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=X),o.nextTick(()=>this.initChart())}setHistoryData(n){M(n)}setSocketData(n){n&&M(n)}onLinkEvent(n){F(n)}getChartOption(){var t;const n=((t=i.conf)==null?void 0:t.data)||[];return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:L.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},yAxis:{type:"value",name:this.Style.value.yName,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:n.map((l,a)=>({name:(l==null?void 0:l.name)||`节点${a+1}`,type:"line",smooth:!0,data:Z(l==null?void 0:l.depth),lineStyle:{color:(l==null?void 0:l.color)||D[a%D.length],width:2},itemStyle:{color:(l==null?void 0:l.color)||D[a%D.length]}}))}}}const C=new Y(i,"deepNodeTemperatureChart"),J=C.getEchartId();C.setupLifecycle();const T=C.getStyle(),Q=o.computed(()=>he.generateTitleStyle(i.conf.options)),S=o.ref([]),D=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272"],L=o.computed(()=>{if(d.value&&k.value.has(d.value)){const n=k.value.get(d.value)||[],t=new Set;return n.forEach(l=>t.add(l.t)),Array.from(t)}const e=new Set;return S.value.forEach(n=>e.add(n.t)),Array.from(e)}),Z=e=>{const n=Number(e),t=new Map;return(d.value&&k.value.has(d.value)?k.value.get(d.value)||[]:S.value).forEach(a=>{Math.abs(a.depth-n)<.1&&t.set(a.t,a.temp)}),L.value.map(a=>{var s;return(s=t.get(a))!=null?s:null})},N=()=>{o.nextTick(()=>{const e=C.getChartInstance();e&&e.setOption(C.getChartOption(),!0)})},ee=()=>N(),te=()=>{const e=C.getChartInstance();if(!e)return;const n=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=n,t.download=`node-temperature-${d.value||Date.now()}.png`,t.click()},z=()=>{var l,a,s;const e=((l=i.conf)==null?void 0:l.options)||{},n=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||T.value.linkChannel||"deepDisplacement",t=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return n==="custom"&&t?t:n},ne=e=>{var a,s,u;const n=((a=i.conf)==null?void 0:a.data)||[],t=[];if(Array.isArray(e==null?void 0:e.data))return e.data.forEach((c,b)=>{var r,O;const v=String((O=(r=c==null?void 0:c.time)!=null?r:c==null?void 0:c.datetime)!=null?O:b);n.forEach(E=>{const A=E.fv,m=E.depth,h=Number(c==null?void 0:c[A]);Number.isFinite(m)&&Number.isFinite(h)&&t.push({t:v,depth:m,temp:h})})}),t;const l=String((u=(s=e==null?void 0:e.time)!=null?s:e==null?void 0:e.datetime)!=null?u:Date.now());return n.forEach(c=>{const b=c.fv,v=c.depth,r=Number(e==null?void 0:e[b]);Number.isFinite(v)&&Number.isFinite(r)&&t.push({t:l,depth:v,temp:r})}),t},F=e=>{var c,b,v;if(i.mode==="edit"||!e||!e.payload)return;const n=z();if((c=e.topic)!=null&&c.channel&&n&&e.topic.channel!==n||!f.shouldHandle(e,"deepNodeTemperatureChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const r=t.timeRange||t.dateRange||t.timeRangeValue;if((b=t.selectedTimes)!=null&&b.length){d.value=String(t.selectedTimes[t.selectedTimes.length-1]),N();return}if(Array.isArray(r)&&r.length){d.value=String(r[r.length-1]),N();return}if(r!=null&&r.endDate||r!=null&&r.end){d.value=String(r.endDate||r.end),N();return}return}const l=i.conf,a=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{};if(a.length>0&&!(s!=null&&s.multiObject)){const r=V.getObjectId(s,s==null?void 0:s.useAlias,i.uid)||((v=a[0])==null?void 0:v.object_id),O=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(r&&O&&String(r)!==String(O))return}const u=ne(t);u.length&&(S.value=u.length<20?[...S.value.slice(-500),...u]:u,N())},M=e=>{var c,b,v,r,O,E,A;const n=i.conf,t=(n==null?void 0:n.data)||[],l=(n==null?void 0:n.common)||{},a=(l==null?void 0:l.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=V.formatStatisticsResult(s,t));const u=[];if((c=s==null?void 0:s.history)!=null&&c.length){const m=new Map;s.history.forEach((h,q)=>{var _,B;const g=(h==null?void 0:h[0])||h||{},I=String((B=(_=g==null?void 0:g.time)!=null?_:g==null?void 0:g.datetime)!=null?B:q),y=I.split(" ")[0];t.forEach($=>{const le=$.fv,j=$.depth,H=Number(g==null?void 0:g[le]);Number.isFinite(j)&&Number.isFinite(H)&&(m.has(y)||m.set(y,[]),m.get(y).push({t:I,depth:j,temp:H}))})}),x.value=Array.from(m.keys()).sort().reverse(),k.value=m,x.value.length>0&&!d.value&&(d.value=x.value[0]),S.value=m.get(d.value)||[]}else{const m=l!=null&&l.multiObject?"":V.getObjectId(l,l==null?void 0:l.useAlias,i.uid),h=m&&((v=(b=s==null?void 0:s[m])==null?void 0:b[a])==null?void 0:v.data)||((r=s==null?void 0:s[a])==null?void 0:r.data)||(s==null?void 0:s.data)||s,q=String((E=(O=h==null?void 0:h.time)!=null?O:h==null?void 0:h.datetime)!=null?E:Date.now());t.forEach(g=>{const I=g.fv,y=g.depth,_=Number(h==null?void 0:h[I]);Number.isFinite(y)&&Number.isFinite(_)&&u.push({t:q,depth:y,temp:_})}),S.value=[...S.value.slice(-500),...u]}!u.length&&!((A=s==null?void 0:s.history)!=null&&A.length)||N()};return o.watch(()=>f.channels[z()],e=>{e&&F(e)},{deep:!0}),o.watchEffect(()=>{i.conf.socketData&&C.setSocketData(i.conf.socketData)}),o.watch(()=>{var e;return(e=i.conf)==null?void 0:e.options},()=>{C.getStyle().value=C.extractStyles(),N()},{deep:!0}),o.onMounted(()=>{if(i.mode==="edit"&&!S.value.length){const e=[-1,-10,-20,-30],n=["2026-03-05","2026-03-04","2026-03-03"];n.forEach(t=>{const l=[];for(let a=0;a<24;a++){const s=`${t} ${String(a).padStart(2,"0")}:00:00`;e.forEach((u,c)=>{l.push({t:s,depth:u,temp:Number((18+c*1.5+Math.sin(a/4+c)*2).toFixed(2))})})}k.value.set(t,l)}),x.value=n,d.value=n[0],S.value=k.value.get(n[0])||[]}N()}),(e,n)=>{const t=w.ElOption,l=w.ElSelect,a=w.ElIcon,s=w.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(T).bgColor,borderRadius:`${o.unref(T).radiusSize}px`})},[o.unref(T).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Q.value)},o.toDisplayString(p.conf.caption||p.conf.name),5)),o.createElementVNode("div",me,[o.createElementVNode("div",ge,[o.createVNode(l,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=u=>d.value=u),placeholder:"选择时间",size:"small",class:"time-select",onChange:ee},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,u=>(o.openBlock(),o.createBlock(t,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(s,{size:"small",class:"export-btn",onClick:te},{default:o.withCtx(()=>[o.createVNode(a,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ce.Download))]),_:1}),n[1]||(n[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(J)},null,8,ve)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),xe=V._export_sfc(ye,[["__scopeId","data-v-69009f4e"]]);exports.default=xe;
1
+ "use strict";var oe=Object.defineProperty,se=Object.defineProperties;var ae=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable;var U=(p,i,f)=>i in p?oe(p,i,{enumerable:!0,configurable:!0,writable:!0,value:f}):p[i]=f,G=(p,i)=>{for(var f in i||(i={}))ie.call(i,f)&&U(p,f,i[f]);if(P)for(var f of P(i))re.call(i,f)&&U(p,f,i[f]);return p},K=(p,i)=>se(p,ae(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const o=require("vue"),ce=require("@element-plus/icons-vue"),V=require("./index-DYr57ceS.cjs");require("element-plus");const ue=require("./EChartComponentBase-ChoVZ7wg.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),W=require("./ele-lin-icon-Dke_1AmT.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),de=require("./install-C8buXQPI.cjs"),pe=require("./install-CltTFs4e.cjs"),fe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ge={class:"toolbar"},ve=["id"],Ce={DEFAULT_ICON:W.DEFAULT_ICON,ACTIVE_ICON:W.ACTIVE_ICON,NAME_CN:"节点温度图",NAME_EN:"DeepNodeTemperatureChart",ORDER:19,PLATFORM:["pc","screen"]},Se={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:35,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"温度(℃)",type:"string",label:"Y轴名称"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},X=[{name:"-130m",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"-140m",fv:"temp_140",depth:-140,color:"#91cc75",object_id:""}],be=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Oe={useAlias:!1,multiObject:!0,source:"mosaic"},ke={DEFAULT:Ce,OPTIONS:Se,DATA:X,PARAMS:be,SOURCE:Ne,COMMON:Oe},ye=o.defineComponent(K(G({},ke),{__name:"deepNodeTemperatureChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){R.use([de.install,R.install,pe.install,R.install$1,fe.install]);const i=p,f=V.useLinkStore(),d=o.ref(""),x=o.ref([]),k=o.ref(new Map);class Y extends ue.EChartComponentBase{extractStyles(){const n=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),l=n==="custom"&&t?t:n;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",35),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","温度(℃)"),linkChannel:l}}init(){var n;this.Style.value=this.extractStyles(),this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=X),o.nextTick(()=>this.initChart())}setHistoryData(n){M(n)}setSocketData(n){n&&M(n)}onLinkEvent(n){F(n)}getChartOption(){var t;const n=((t=i.conf)==null?void 0:t.data)||[];return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},legend:{top:8,textStyle:{color:this.Style.value.textColor}},tooltip:{trigger:"axis"},xAxis:{type:"category",name:this.Style.value.xName,data:L.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},yAxis:{type:"value",name:this.Style.value.yName,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:n.map((l,a)=>({name:(l==null?void 0:l.name)||`节点${a+1}`,type:"line",smooth:!0,data:Z(l==null?void 0:l.depth),lineStyle:{color:(l==null?void 0:l.color)||D[a%D.length],width:2},itemStyle:{color:(l==null?void 0:l.color)||D[a%D.length]}}))}}}const C=new Y(i,"deepNodeTemperatureChart"),J=C.getEchartId();C.setupLifecycle();const T=C.getStyle(),Q=o.computed(()=>he.generateTitleStyle(i.conf.options)),S=o.ref([]),D=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272"],L=o.computed(()=>{if(d.value&&k.value.has(d.value)){const n=k.value.get(d.value)||[],t=new Set;return n.forEach(l=>t.add(l.t)),Array.from(t)}const e=new Set;return S.value.forEach(n=>e.add(n.t)),Array.from(e)}),Z=e=>{const n=Number(e),t=new Map;return(d.value&&k.value.has(d.value)?k.value.get(d.value)||[]:S.value).forEach(a=>{Math.abs(a.depth-n)<.1&&t.set(a.t,a.temp)}),L.value.map(a=>{var s;return(s=t.get(a))!=null?s:null})},N=()=>{o.nextTick(()=>{const e=C.getChartInstance();e&&e.setOption(C.getChartOption(),!0)})},ee=()=>N(),te=()=>{const e=C.getChartInstance();if(!e)return;const n=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=n,t.download=`node-temperature-${d.value||Date.now()}.png`,t.click()},z=()=>{var l,a,s;const e=((l=i.conf)==null?void 0:l.options)||{},n=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||T.value.linkChannel||"deepDisplacement",t=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return n==="custom"&&t?t:n},ne=e=>{var a,s,u;const n=((a=i.conf)==null?void 0:a.data)||[],t=[];if(Array.isArray(e==null?void 0:e.data))return e.data.forEach((c,b)=>{var r,O;const v=String((O=(r=c==null?void 0:c.time)!=null?r:c==null?void 0:c.datetime)!=null?O:b);n.forEach(E=>{const A=E.fv,m=E.depth,h=Number(c==null?void 0:c[A]);Number.isFinite(m)&&Number.isFinite(h)&&t.push({t:v,depth:m,temp:h})})}),t;const l=String((u=(s=e==null?void 0:e.time)!=null?s:e==null?void 0:e.datetime)!=null?u:Date.now());return n.forEach(c=>{const b=c.fv,v=c.depth,r=Number(e==null?void 0:e[b]);Number.isFinite(v)&&Number.isFinite(r)&&t.push({t:l,depth:v,temp:r})}),t},F=e=>{var c,b,v;if(i.mode==="edit"||!e||!e.payload)return;const n=z();if((c=e.topic)!=null&&c.channel&&n&&e.topic.channel!==n||!f.shouldHandle(e,"deepNodeTemperatureChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const r=t.timeRange||t.dateRange||t.timeRangeValue;if((b=t.selectedTimes)!=null&&b.length){d.value=String(t.selectedTimes[t.selectedTimes.length-1]),N();return}if(Array.isArray(r)&&r.length){d.value=String(r[r.length-1]),N();return}if(r!=null&&r.endDate||r!=null&&r.end){d.value=String(r.endDate||r.end),N();return}return}const l=i.conf,a=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{};if(a.length>0&&!(s!=null&&s.multiObject)){const r=V.getObjectId(s,s==null?void 0:s.useAlias,i.uid)||((v=a[0])==null?void 0:v.object_id),O=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(r&&O&&String(r)!==String(O))return}const u=ne(t);u.length&&(S.value=u.length<20?[...S.value.slice(-500),...u]:u,N())},M=e=>{var c,b,v,r,O,E,A;const n=i.conf,t=(n==null?void 0:n.data)||[],l=(n==null?void 0:n.common)||{},a=(l==null?void 0:l.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=V.formatStatisticsResult(s,t));const u=[];if((c=s==null?void 0:s.history)!=null&&c.length){const m=new Map;s.history.forEach((h,q)=>{var _,B;const g=(h==null?void 0:h[0])||h||{},I=String((B=(_=g==null?void 0:g.time)!=null?_:g==null?void 0:g.datetime)!=null?B:q),y=I.split(" ")[0];t.forEach($=>{const le=$.fv,j=$.depth,H=Number(g==null?void 0:g[le]);Number.isFinite(j)&&Number.isFinite(H)&&(m.has(y)||m.set(y,[]),m.get(y).push({t:I,depth:j,temp:H}))})}),x.value=Array.from(m.keys()).sort().reverse(),k.value=m,x.value.length>0&&!d.value&&(d.value=x.value[0]),S.value=m.get(d.value)||[]}else{const m=l!=null&&l.multiObject?"":V.getObjectId(l,l==null?void 0:l.useAlias,i.uid),h=m&&((v=(b=s==null?void 0:s[m])==null?void 0:b[a])==null?void 0:v.data)||((r=s==null?void 0:s[a])==null?void 0:r.data)||(s==null?void 0:s.data)||s,q=String((E=(O=h==null?void 0:h.time)!=null?O:h==null?void 0:h.datetime)!=null?E:Date.now());t.forEach(g=>{const I=g.fv,y=g.depth,_=Number(h==null?void 0:h[I]);Number.isFinite(y)&&Number.isFinite(_)&&u.push({t:q,depth:y,temp:_})}),S.value=[...S.value.slice(-500),...u]}!u.length&&!((A=s==null?void 0:s.history)!=null&&A.length)||N()};return o.watch(()=>f.channels[z()],e=>{e&&F(e)},{deep:!0}),o.watchEffect(()=>{i.conf.socketData&&C.setSocketData(i.conf.socketData)}),o.watch(()=>{var e;return(e=i.conf)==null?void 0:e.options},()=>{C.getStyle().value=C.extractStyles(),N()},{deep:!0}),o.onMounted(()=>{if(i.mode==="edit"&&!S.value.length){const e=[-1,-10,-20,-30],n=["2026-03-05","2026-03-04","2026-03-03"];n.forEach(t=>{const l=[];for(let a=0;a<24;a++){const s=`${t} ${String(a).padStart(2,"0")}:00:00`;e.forEach((u,c)=>{l.push({t:s,depth:u,temp:Number((18+c*1.5+Math.sin(a/4+c)*2).toFixed(2))})})}k.value.set(t,l)}),x.value=n,d.value=n[0],S.value=k.value.get(n[0])||[]}N()}),(e,n)=>{const t=w.ElOption,l=w.ElSelect,a=w.ElIcon,s=w.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(T).bgColor,borderRadius:`${o.unref(T).radiusSize}px`})},[o.unref(T).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(Q.value)},o.toDisplayString(p.conf.caption||p.conf.name),5)),o.createElementVNode("div",me,[o.createElementVNode("div",ge,[o.createVNode(l,{modelValue:d.value,"onUpdate:modelValue":n[0]||(n[0]=u=>d.value=u),placeholder:"选择时间",size:"small",class:"time-select",onChange:ee},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(x.value,u=>(o.openBlock(),o.createBlock(t,{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),o.createVNode(s,{size:"small",class:"export-btn",onClick:te},{default:o.withCtx(()=>[o.createVNode(a,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ce.Download))]),_:1}),n[1]||(n[1]=o.createTextVNode(" 导出图 ",-1))]),_:1})]),o.createElementVNode("div",{class:"echart-container",id:o.unref(J)},null,8,ve)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),xe=V._export_sfc(ye,[["__scopeId","data-v-69009f4e"]]);exports.default=xe;
@@ -18,9 +18,9 @@ import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as be, ref as w, computed as J, watch as Q, watchEffect as Oe, onMounted as Ne, openBlock as I, createElementBlock as F, normalizeStyle as Z, unref as E, toDisplayString as _e, createCommentVNode as xe, createElementVNode as L, createVNode as R, withCtx as M, Fragment as ye, renderList as ke, createBlock as Ee, createTextVNode as De, renderSlot as Ve, nextTick as ee } from "vue";
20
20
  import { Download as Te } from "@element-plus/icons-vue";
21
- import { l as Ae, O as te, N as we, _ as Ie } from "./index-BZpYmpDy.js";
21
+ import { l as Ae, O as te, N as we, _ as Ie } from "./index-BueGUjcH.js";
22
22
  import "element-plus";
23
- import { E as Re } from "./EChartComponentBase-i76OGL3z.js";
23
+ import { E as Re } from "./EChartComponentBase-c7NzErOu.js";
24
24
  import { g as ze } from "./titleStyle-BT5GlpAb.js";
25
25
  import { A as Fe, D as Le } from "./ele-lin-icon-Dax-ZiWV.js";
26
26
  import { u as Me, i as $e, a as Be } from "./installCanvasRenderer-oDYkyVFy.js";
@@ -1 +1 @@
1
- "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(v,c,C)=>c in v?se(v,c,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[c]=C,B=(v,c)=>{for(var C in c||(c={}))ie.call(c,C)&&G(v,C,c[C]);if(K)for(var C of K(c))ce.call(c,C)&&G(v,C,c[C]);return v},q=(v,c)=>ae(v,oe(c));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const n=require("vue"),re=require("@element-plus/icons-vue"),E=require("./index-77aUdspY.cjs");require("element-plus");const ue=require("./EChartComponentBase-D9EUh4BZ.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),X=require("./ele-lin-icon-Dke_1AmT.cjs"),de=require("./install-kGXY_57n.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),ge=require("./install-C8buXQPI.cjs"),fe=require("./install-CltTFs4e.cjs"),pe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ve={class:"toolbar"},Ce={key:0,class:"custom-legend"},Se=["onClick"],ye={class:"legend-text"},be=["id"],ke={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"深部切线角",NAME_EN:"DeepTangentAngleChart",ORDER:17,PLATFORM:["pc","screen"]},xe={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:40,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"切线角(°)",type:"string",label:"Y轴名称"},yMin:{value:-90,type:"number",label:"Y轴最小值"},yMax:{value:90,type:"number",label:"Y轴最大值"},showThresholdBand:{value:!0,type:"switch",label:"显示阈值带"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},J=[{name:"切线角",fv:"angle_130",depth:-130,color:"#5470c6",object_id:""},{name:"切线角",fv:"angle_140",depth:-140,color:"#5470c6",object_id:""}],Oe=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],_e={useAlias:!1,multiObject:!0,source:"mosaic"},Ee={DEFAULT:ke,OPTIONS:xe,DATA:J,PARAMS:Oe,SOURCE:Ne,COMMON:_e},Ve=n.defineComponent(q(B({},Ee),{__name:"deepTangentAngleChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){R.use([ge.install,R.install,fe.install,de.install,R.install$1,pe.install]);const c=v,C=E.useLinkStore(),V=(e,l,t)=>{const s=(e==null?void 0:e.name)||`切线角${l+1}`;if(t.filter(p=>((p==null?void 0:p.name)||"")===s).length<=1)return s;const o=(e==null?void 0:e.depth)!==void 0?`${e.depth}m`:`${l+1}`;return`${s}-${o}`},S=n.ref(""),D=n.ref([]),M=n.ref(new Map);class Q extends ue.EChartComponentBase{extractStyles(){const l=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),s=l==="custom"&&t?t:l;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","切线角(°)"),yMin:this.getOptionValue("yMin",-90),yMax:this.getOptionValue("yMax",90),showThresholdBand:this.getOptionValue("showThresholdBand",!0),linkChannel:s}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=J),n.nextTick(()=>this.initChart())}setHistoryData(l){U(l)}setSocketData(l){l&&U(l)}onLinkEvent(l){H(l)}getChartOption(){var p;const l=((p=c.conf)==null?void 0:p.data)||[],t=S.value&&M.value.has(S.value)?M.value.get(S.value)||new Map:k.value,s=[];let u=[];if(l.forEach((i,g)=>{const f=V(i,g,l),d=(i==null?void 0:i.color)||"#5470c6",a=t instanceof Map?t.get(f)||[]:[];g===0&&(u=a);const r=a.map(x=>x.angle),m=a[a.length-1],h=_.value[f]!==!1;h&&s.push({name:f,type:"line",data:r,smooth:!1,symbol:"circle",symbolSize:6,lineStyle:{color:d,width:2},itemStyle:{color:d},markArea:void 0,markPoint:m&&h?{symbol:"circle",symbolSize:8,label:{show:!0,formatter:f,position:"right",color:d,fontSize:12},data:[{coord:[m.t,m.angle]}]}:void 0})}),!u.length&&t instanceof Map){const i=Array.from(t.keys())[0];u=i?t.get(i)||[]:[]}const o=this.Style.value.showThresholdBand?90:0;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right+o,containLabel:!0},tooltip:{trigger:"axis",formatter:i=>{var d;if(!(i!=null&&i.length))return"";const g=((d=i[0])==null?void 0:d.axisValue)||"-",f=i.map(a=>{var r;return`${a.seriesName}: ${(r=a.data)!=null?r:"-"}°`});return`${g}<br/>${f.join("<br/>")}`}},xAxis:{type:"category",name:this.Style.value.xName,data:u.map(i=>i.t),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:i=>{if(!i)return i;const g=E.dayjs(i);if(g.isValid())return g.format("MM-DD HH:mm");if(i.includes(" ")){const[f,d]=i.split(" "),[,a,r]=f.split("-"),[m,h]=d.split(":");return`${a}-${r} ${m}:${h}`}return i}}},yAxis:{type:"value",name:this.Style.value.yName,min:Number(this.Style.value.yMin),max:Number(this.Style.value.yMax),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:s}}}const y=new Q(c,"deepTangentAngleChart"),Z=y.getEchartId();y.setupLifecycle();const A=y.getStyle(),ee=n.computed(()=>he.generateTitleStyle(c.conf.options)),k=n.ref(new Map),_=n.ref({}),P=n.computed(()=>{var l;const e=((l=c.conf)==null?void 0:l.data)||[];return e.map((t,s)=>({name:V(t,s,e),color:(t==null?void 0:t.color)||"#5470c6"}))}),b=()=>{n.nextTick(()=>{const e=y.getChartInstance();e&&e.setOption(y.getChartOption(),!0)})},F=e=>{_.value=(e==null?void 0:e.selected)||{},b()},te=e=>{_.value=q(B({},_.value),{[e]:_.value[e]===!1}),b()};n.watch(()=>y.getChartInstance(),e=>{e&&(e.off("legendselectchanged",F),e.on("legendselectchanged",F))});const ne=()=>{const e=y.getChartInstance();if(!e)return;const l=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=l,t.download=`tangent-angle-${S.value||Date.now()}.png`,t.click()},j=()=>{var s,u,o;const e=((s=c.conf)==null?void 0:s.options)||{},l=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||A.value.linkChannel||"deepDisplacement",t=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"";return l==="custom"&&t?t:l},le=e=>{var s;const l=((s=c.conf)==null?void 0:s.data)||[],t=new Map;return l.length&&l.forEach((u,o)=>{var d,a;const p=u.fv,i=V(u,o,l),g=Number(e==null?void 0:e[p]);if(!Number.isFinite(g))return;const f=String((a=(d=e==null?void 0:e.time)!=null?d:e==null?void 0:e.datetime)!=null?a:Date.now());t.has(i)||t.set(i,[]),t.get(i).push({t:f,angle:g})}),t},H=e=>{var g,f,d;if(c.mode==="edit"||!e||!e.payload)return;const l=j();if((g=e.topic)!=null&&g.channel&&l&&e.topic.channel!==l||!C.shouldHandle(e,"deepTangentAngleChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const a=t.timeRange||t.dateRange||t.timeRangeValue;if((f=t.selectedTimes)!=null&&f.length){S.value=String(t.selectedTimes[t.selectedTimes.length-1]),b();return}if(Array.isArray(a)&&a.length){S.value=String(a[a.length-1]),b();return}if(a!=null&&a.endDate||a!=null&&a.end){S.value=String(a.endDate||a.end),b();return}return}const s=c.conf,u=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(u.length>0&&!(o!=null&&o.multiObject)){const a=E.getObjectId(o,o==null?void 0:o.useAlias,c.uid)||((d=u[0])==null?void 0:d.object_id),r=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(a&&r&&String(a)!==String(r))return}const p=le(t);if(!p.size)return;const i=new Map(k.value);p.forEach((a,r)=>{const m=i.get(r)||[];i.set(r,[...m.slice(-199),...a])}),k.value=i,b()},U=e=>{var i,g,f,d;const l=c.conf,t=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{},u=(s==null?void 0:s.source)||"mosaic";let o=e;["statistics","calculate"].includes(u)&&(o=E.formatStatisticsResult(o,t));let p=!1;if((i=o==null?void 0:o.history)!=null&&i.length){const a=new Map;o.history.forEach((r,m)=>{var N,T;const h=(r==null?void 0:r[0])||r||{},x=String((T=(N=h==null?void 0:h.time)!=null?N:h==null?void 0:h.datetime)!=null?T:m),O=x.split(" ")[0];t.forEach((w,I)=>{const $=w.fv,z=V(w,I,t),Y=Number(h==null?void 0:h[$]);if(!Number.isFinite(Y))return;a.has(O)||a.set(O,new Map);const L=a.get(O);L.has(z)||L.set(z,[]),L.get(z).push({t:x,angle:Y})})}),D.value=Array.from(a.keys()).sort().reverse(),M.value=a,D.value.length>0&&!S.value&&(S.value=D.value[0]),k.value=a.get(S.value)||new Map,p=!0}else{const a=s!=null&&s.multiObject?"":E.getObjectId(s,s==null?void 0:s.useAlias,c.uid),r=a&&((f=(g=o==null?void 0:o[a])==null?void 0:g[u])==null?void 0:f.data)||((d=o==null?void 0:o[u])==null?void 0:d.data)||(o==null?void 0:o.data)||o,m=new Map;if(t.forEach((h,x)=>{var I,$;const O=h.fv,N=V(h,x,t),T=Number(r==null?void 0:r[O]);if(!Number.isFinite(T))return;const w=String(($=(I=r==null?void 0:r.time)!=null?I:r==null?void 0:r.datetime)!=null?$:Date.now());m.has(N)||m.set(N,[]),m.get(N).push({t:w,angle:T})}),m.size>0){const h=new Map(k.value);m.forEach((x,O)=>{const N=h.get(O)||[];h.set(O,[...N.slice(-199),...x])}),k.value=h,p=!0}}p&&b()};return n.watch(()=>C.channels[j()],e=>{e&&H(e)},{deep:!0}),n.watchEffect(()=>{c.conf.socketData&&y.setSocketData(c.conf.socketData)}),n.watch(()=>{var e;return(e=c.conf)==null?void 0:e.options},()=>{y.getStyle().value=y.extractStyles(),b()},{deep:!0}),n.onMounted(()=>{if(c.mode==="edit"&&!k.value.length){const e=["2026-03-05","2026-03-04","2026-03-03"];e.forEach(l=>{const t=[];for(let s=0;s<24;s++){const u=`${l} ${String(s).padStart(2,"0")}:00:00`,o=Number((Math.sin(s/3)*50+s%4*6).toFixed(2));t.push({t:u,angle:o})}M.value.set(l,t)}),D.value=e,S.value=e[0],k.value=M.value.get(e[0])||[]}b()}),(e,l)=>{const t=W.ElIcon,s=W.ElButton;return n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(A).bgColor,borderRadius:`${n.unref(A).radiusSize}px`})},[n.unref(A).isHideTitle?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"mix-title",style:n.normalizeStyle(ee.value)},n.toDisplayString(v.conf.caption||v.conf.name),5)),n.createElementVNode("div",me,[n.createElementVNode("div",ve,[n.createVNode(s,{size:"small",class:"export-btn",onClick:ne},{default:n.withCtx(()=>[n.createVNode(t,null,{default:n.withCtx(()=>[n.createVNode(n.unref(re.Download))]),_:1}),l[0]||(l[0]=n.createTextVNode(" 导出图 ",-1))]),_:1})]),P.value.length?(n.openBlock(),n.createElementBlock("div",Ce,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(P.value,u=>(n.openBlock(),n.createElementBlock("span",{key:u.name,class:n.normalizeClass(["legend-item",{inactive:_.value[u.name]===!1}]),onClick:o=>te(u.name)},[n.createElementVNode("span",{class:"legend-dot",style:n.normalizeStyle({backgroundColor:u.color})},null,4),n.createElementVNode("span",ye,n.toDisplayString(u.name),1)],10,Se))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"echart-container",id:n.unref(Z)},null,8,be)]),n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Me=E._export_sfc(Ve,[["__scopeId","data-v-da74a3c3"]]);exports.default=Me;
1
+ "use strict";var se=Object.defineProperty,ae=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;var G=(v,c,C)=>c in v?se(v,c,{enumerable:!0,configurable:!0,writable:!0,value:C}):v[c]=C,B=(v,c)=>{for(var C in c||(c={}))ie.call(c,C)&&G(v,C,c[C]);if(K)for(var C of K(c))ce.call(c,C)&&G(v,C,c[C]);return v},q=(v,c)=>ae(v,oe(c));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const n=require("vue"),re=require("@element-plus/icons-vue"),E=require("./index-DYr57ceS.cjs");require("element-plus");const ue=require("./EChartComponentBase-ChoVZ7wg.cjs"),he=require("./titleStyle-NSnz6cUg.cjs"),X=require("./ele-lin-icon-Dke_1AmT.cjs"),de=require("./install-kGXY_57n.cjs"),R=require("./installCanvasRenderer-CyhM1Qpl.cjs"),ge=require("./install-C8buXQPI.cjs"),fe=require("./install-CltTFs4e.cjs"),pe=require("./install-CYwVETsi.cjs"),me={class:"mix-body"},ve={class:"toolbar"},Ce={key:0,class:"custom-legend"},Se=["onClick"],ye={class:"legend-text"},be=["id"],ke={DEFAULT_ICON:X.DEFAULT_ICON,ACTIVE_ICON:X.ACTIVE_ICON,NAME_CN:"深部切线角",NAME_EN:"DeepTangentAngleChart",ORDER:17,PLATFORM:["pc","screen"]},xe={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:40,left:50,right:30,xName:{value:"时间",type:"string",label:"X轴名称"},yName:{value:"切线角(°)",type:"string",label:"Y轴名称"},yMin:{value:-90,type:"number",label:"Y轴最小值"},yMax:{value:90,type:"number",label:"Y轴最大值"},showThresholdBand:{value:!0,type:"switch",label:"显示阈值带"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},J=[{name:"切线角",fv:"angle_130",depth:-130,color:"#5470c6",object_id:""},{name:"切线角",fv:"angle_140",depth:-140,color:"#5470c6",object_id:""}],Oe=["name","fv","depth","color","object_id"],Ne=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],_e={useAlias:!1,multiObject:!0,source:"mosaic"},Ee={DEFAULT:ke,OPTIONS:xe,DATA:J,PARAMS:Oe,SOURCE:Ne,COMMON:_e},Ve=n.defineComponent(q(B({},Ee),{__name:"deepTangentAngleChart",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(v){R.use([ge.install,R.install,fe.install,de.install,R.install$1,pe.install]);const c=v,C=E.useLinkStore(),V=(e,l,t)=>{const s=(e==null?void 0:e.name)||`切线角${l+1}`;if(t.filter(p=>((p==null?void 0:p.name)||"")===s).length<=1)return s;const o=(e==null?void 0:e.depth)!==void 0?`${e.depth}m`:`${l+1}`;return`${s}-${o}`},S=n.ref(""),D=n.ref([]),M=n.ref(new Map);class Q extends ue.EChartComponentBase{extractStyles(){const l=this.getOptionValue("linkChannel","deepDisplacement"),t=this.getOptionValue("customChannel",""),s=l==="custom"&&t?t:l;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",40),left:this.getOptionValue("left",50),right:this.getOptionValue("right",30),xName:this.getOptionValue("xName","时间"),yName:this.getOptionValue("yName","切线角(°)"),yMin:this.getOptionValue("yMin",-90),yMax:this.getOptionValue("yMax",90),showThresholdBand:this.getOptionValue("showThresholdBand",!0),linkChannel:s}}init(){var l;this.Style.value=this.extractStyles(),this.applyTheme(),(l=this.props.conf.data)!=null&&l.length||(this.props.conf.data=J),n.nextTick(()=>this.initChart())}setHistoryData(l){U(l)}setSocketData(l){l&&U(l)}onLinkEvent(l){H(l)}getChartOption(){var p;const l=((p=c.conf)==null?void 0:p.data)||[],t=S.value&&M.value.has(S.value)?M.value.get(S.value)||new Map:k.value,s=[];let u=[];if(l.forEach((i,g)=>{const f=V(i,g,l),d=(i==null?void 0:i.color)||"#5470c6",a=t instanceof Map?t.get(f)||[]:[];g===0&&(u=a);const r=a.map(x=>x.angle),m=a[a.length-1],h=_.value[f]!==!1;h&&s.push({name:f,type:"line",data:r,smooth:!1,symbol:"circle",symbolSize:6,lineStyle:{color:d,width:2},itemStyle:{color:d},markArea:void 0,markPoint:m&&h?{symbol:"circle",symbolSize:8,label:{show:!0,formatter:f,position:"right",color:d,fontSize:12},data:[{coord:[m.t,m.angle]}]}:void 0})}),!u.length&&t instanceof Map){const i=Array.from(t.keys())[0];u=i?t.get(i)||[]:[]}const o=this.Style.value.showThresholdBand?90:0;return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right+o,containLabel:!0},tooltip:{trigger:"axis",formatter:i=>{var d;if(!(i!=null&&i.length))return"";const g=((d=i[0])==null?void 0:d.axisValue)||"-",f=i.map(a=>{var r;return`${a.seriesName}: ${(r=a.data)!=null?r:"-"}°`});return`${g}<br/>${f.join("<br/>")}`}},xAxis:{type:"category",name:this.Style.value.xName,data:u.map(i=>i.t),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,formatter:i=>{if(!i)return i;const g=E.dayjs(i);if(g.isValid())return g.format("MM-DD HH:mm");if(i.includes(" ")){const[f,d]=i.split(" "),[,a,r]=f.split("-"),[m,h]=d.split(":");return`${a}-${r} ${m}:${h}`}return i}}},yAxis:{type:"value",name:this.Style.value.yName,min:Number(this.Style.value.yMin),max:Number(this.Style.value.yMax),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize},splitLine:{lineStyle:{color:"#f0f0f0"}}},series:s}}}const y=new Q(c,"deepTangentAngleChart"),Z=y.getEchartId();y.setupLifecycle();const A=y.getStyle(),ee=n.computed(()=>he.generateTitleStyle(c.conf.options)),k=n.ref(new Map),_=n.ref({}),P=n.computed(()=>{var l;const e=((l=c.conf)==null?void 0:l.data)||[];return e.map((t,s)=>({name:V(t,s,e),color:(t==null?void 0:t.color)||"#5470c6"}))}),b=()=>{n.nextTick(()=>{const e=y.getChartInstance();e&&e.setOption(y.getChartOption(),!0)})},F=e=>{_.value=(e==null?void 0:e.selected)||{},b()},te=e=>{_.value=q(B({},_.value),{[e]:_.value[e]===!1}),b()};n.watch(()=>y.getChartInstance(),e=>{e&&(e.off("legendselectchanged",F),e.on("legendselectchanged",F))});const ne=()=>{const e=y.getChartInstance();if(!e)return;const l=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),t=document.createElement("a");t.href=l,t.download=`tangent-angle-${S.value||Date.now()}.png`,t.click()},j=()=>{var s,u,o;const e=((s=c.conf)==null?void 0:s.options)||{},l=((u=e==null?void 0:e.linkChannel)==null?void 0:u.value)||A.value.linkChannel||"deepDisplacement",t=((o=e==null?void 0:e.customChannel)==null?void 0:o.value)||"";return l==="custom"&&t?t:l},le=e=>{var s;const l=((s=c.conf)==null?void 0:s.data)||[],t=new Map;return l.length&&l.forEach((u,o)=>{var d,a;const p=u.fv,i=V(u,o,l),g=Number(e==null?void 0:e[p]);if(!Number.isFinite(g))return;const f=String((a=(d=e==null?void 0:e.time)!=null?d:e==null?void 0:e.datetime)!=null?a:Date.now());t.has(i)||t.set(i,[]),t.get(i).push({t:f,angle:g})}),t},H=e=>{var g,f,d;if(c.mode==="edit"||!e||!e.payload)return;const l=j();if((g=e.topic)!=null&&g.channel&&l&&e.topic.channel!==l||!C.shouldHandle(e,"deepTangentAngleChart"))return;const t=e.payload;if((t==null?void 0:t.type)==="filter"){const a=t.timeRange||t.dateRange||t.timeRangeValue;if((f=t.selectedTimes)!=null&&f.length){S.value=String(t.selectedTimes[t.selectedTimes.length-1]),b();return}if(Array.isArray(a)&&a.length){S.value=String(a[a.length-1]),b();return}if(a!=null&&a.endDate||a!=null&&a.end){S.value=String(a.endDate||a.end),b();return}return}const s=c.conf,u=(s==null?void 0:s.data)||[],o=(s==null?void 0:s.common)||{};if(u.length>0&&!(o!=null&&o.multiObject)){const a=E.getObjectId(o,o==null?void 0:o.useAlias,c.uid)||((d=u[0])==null?void 0:d.object_id),r=(t==null?void 0:t.objectId)||(t==null?void 0:t.object_id);if(a&&r&&String(a)!==String(r))return}const p=le(t);if(!p.size)return;const i=new Map(k.value);p.forEach((a,r)=>{const m=i.get(r)||[];i.set(r,[...m.slice(-199),...a])}),k.value=i,b()},U=e=>{var i,g,f,d;const l=c.conf,t=(l==null?void 0:l.data)||[],s=(l==null?void 0:l.common)||{},u=(s==null?void 0:s.source)||"mosaic";let o=e;["statistics","calculate"].includes(u)&&(o=E.formatStatisticsResult(o,t));let p=!1;if((i=o==null?void 0:o.history)!=null&&i.length){const a=new Map;o.history.forEach((r,m)=>{var N,T;const h=(r==null?void 0:r[0])||r||{},x=String((T=(N=h==null?void 0:h.time)!=null?N:h==null?void 0:h.datetime)!=null?T:m),O=x.split(" ")[0];t.forEach((w,I)=>{const $=w.fv,z=V(w,I,t),Y=Number(h==null?void 0:h[$]);if(!Number.isFinite(Y))return;a.has(O)||a.set(O,new Map);const L=a.get(O);L.has(z)||L.set(z,[]),L.get(z).push({t:x,angle:Y})})}),D.value=Array.from(a.keys()).sort().reverse(),M.value=a,D.value.length>0&&!S.value&&(S.value=D.value[0]),k.value=a.get(S.value)||new Map,p=!0}else{const a=s!=null&&s.multiObject?"":E.getObjectId(s,s==null?void 0:s.useAlias,c.uid),r=a&&((f=(g=o==null?void 0:o[a])==null?void 0:g[u])==null?void 0:f.data)||((d=o==null?void 0:o[u])==null?void 0:d.data)||(o==null?void 0:o.data)||o,m=new Map;if(t.forEach((h,x)=>{var I,$;const O=h.fv,N=V(h,x,t),T=Number(r==null?void 0:r[O]);if(!Number.isFinite(T))return;const w=String(($=(I=r==null?void 0:r.time)!=null?I:r==null?void 0:r.datetime)!=null?$:Date.now());m.has(N)||m.set(N,[]),m.get(N).push({t:w,angle:T})}),m.size>0){const h=new Map(k.value);m.forEach((x,O)=>{const N=h.get(O)||[];h.set(O,[...N.slice(-199),...x])}),k.value=h,p=!0}}p&&b()};return n.watch(()=>C.channels[j()],e=>{e&&H(e)},{deep:!0}),n.watchEffect(()=>{c.conf.socketData&&y.setSocketData(c.conf.socketData)}),n.watch(()=>{var e;return(e=c.conf)==null?void 0:e.options},()=>{y.getStyle().value=y.extractStyles(),b()},{deep:!0}),n.onMounted(()=>{if(c.mode==="edit"&&!k.value.length){const e=["2026-03-05","2026-03-04","2026-03-03"];e.forEach(l=>{const t=[];for(let s=0;s<24;s++){const u=`${l} ${String(s).padStart(2,"0")}:00:00`,o=Number((Math.sin(s/3)*50+s%4*6).toFixed(2));t.push({t:u,angle:o})}M.value.set(l,t)}),D.value=e,S.value=e[0],k.value=M.value.get(e[0])||[]}b()}),(e,l)=>{const t=W.ElIcon,s=W.ElButton;return n.openBlock(),n.createElementBlock("div",{class:"mix-component",style:n.normalizeStyle({background:n.unref(A).bgColor,borderRadius:`${n.unref(A).radiusSize}px`})},[n.unref(A).isHideTitle?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"mix-title",style:n.normalizeStyle(ee.value)},n.toDisplayString(v.conf.caption||v.conf.name),5)),n.createElementVNode("div",me,[n.createElementVNode("div",ve,[n.createVNode(s,{size:"small",class:"export-btn",onClick:ne},{default:n.withCtx(()=>[n.createVNode(t,null,{default:n.withCtx(()=>[n.createVNode(n.unref(re.Download))]),_:1}),l[0]||(l[0]=n.createTextVNode(" 导出图 ",-1))]),_:1})]),P.value.length?(n.openBlock(),n.createElementBlock("div",Ce,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(P.value,u=>(n.openBlock(),n.createElementBlock("span",{key:u.name,class:n.normalizeClass(["legend-item",{inactive:_.value[u.name]===!1}]),onClick:o=>te(u.name)},[n.createElementVNode("span",{class:"legend-dot",style:n.normalizeStyle({backgroundColor:u.color})},null,4),n.createElementVNode("span",ye,n.toDisplayString(u.name),1)],10,Se))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"echart-container",id:n.unref(Z)},null,8,be)]),n.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Me=E._export_sfc(Ve,[["__scopeId","data-v-da74a3c3"]]);exports.default=Me;
@@ -16,9 +16,9 @@ import "element-plus/es/components/button/style/css";
16
16
  import "element-plus/es/components/icon/style/css";
17
17
  import { defineComponent as ye, ref as T, computed as ee, watch as j, watchEffect as be, onMounted as xe, openBlock as V, createElementBlock as E, normalizeStyle as U, unref as A, toDisplayString as te, createCommentVNode as ne, createElementVNode as $, createVNode as Y, withCtx as se, createTextVNode as Oe, Fragment as ke, renderList as _e, normalizeClass as Ne, renderSlot as Me, nextTick as ae } from "vue";
18
18
  import { Download as De } from "@element-plus/icons-vue";
19
- import { l as Te, d as Ve, O as le, N as Ee, _ as Ae } from "./index-BZpYmpDy.js";
19
+ import { l as Te, d as Ve, O as le, N as Ee, _ as Ae } from "./index-BueGUjcH.js";
20
20
  import "element-plus";
21
- import { E as $e } from "./EChartComponentBase-i76OGL3z.js";
21
+ import { E as $e } from "./EChartComponentBase-c7NzErOu.js";
22
22
  import { g as we } from "./titleStyle-BT5GlpAb.js";
23
23
  import { A as ze, D as Le } from "./ele-lin-icon-Dax-ZiWV.js";
24
24
  import { i as Ie } from "./install-UooD2LwU.js";
@@ -32,11 +32,11 @@ import "element-plus/es/components/button/style/css";
32
32
  import "element-plus/es/components/icon/style/css";
33
33
  import { defineComponent as Nt, ref as M, computed as F, watch as P, watchEffect as At, onMounted as kt, openBlock as W, createElementBlock as it, normalizeStyle as st, unref as E, toDisplayString as _t, createCommentVNode as ot, createElementVNode as Y, createVNode as q, withCtx as G, createTextVNode as at, createBlock as wt, renderSlot as Mt, nextTick as rt } from "vue";
34
34
  import { Download as Et } from "@element-plus/icons-vue";
35
- import { l as Rt, O as lt, N as Vt, d as ct, _ as $t } from "./index-BZpYmpDy.js";
35
+ import { l as Rt, O as lt, N as Vt, d as ct, _ as $t } from "./index-BueGUjcH.js";
36
36
  import "element-plus";
37
- import { E as Lt } from "./EChartComponentBase-i76OGL3z.js";
37
+ import { E as Lt } from "./EChartComponentBase-c7NzErOu.js";
38
38
  import { g as Ft } from "./titleStyle-BT5GlpAb.js";
39
- import It from "./history-BRkb914v.js";
39
+ import It from "./history-CZCtaT0D.js";
40
40
  import { A as zt, D as Ht } from "./ele-lin-icon-Dax-ZiWV.js";
41
41
  import { i as jt } from "./install-DNDCMXB3.js";
42
42
  import { u as Bt, i as Ut, a as Pt } from "./installCanvasRenderer-oDYkyVFy.js";