mixdashboards 1.1.20 → 1.1.21

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 (357) hide show
  1. package/dist/{AgActionsRenderer-Bnjx7r_5.js → AgActionsRenderer-3HKXKUJY.js} +1 -1
  2. package/dist/{AgActionsRenderer-BRWd_uZc.cjs → AgActionsRenderer-DnPvuT_-.cjs} +1 -1
  3. package/dist/{AgGridTable-B_Enycf5.js → AgGridTable-BQ8M3fDj.js} +1 -1
  4. package/dist/{AgGridTable-DLcjjtST.cjs → AgGridTable-BQvI6jpO.cjs} +1 -1
  5. package/dist/{BaseComponent-Yu_LvlWs.cjs → BaseComponent-DKuQG62G.cjs} +1 -1
  6. package/dist/{BaseComponent-DgAX0AyD.js → BaseComponent-Dn65PXTp.js} +3 -3
  7. package/dist/{EChartComponentBase-D4DSf0jl.cjs → EChartComponentBase-8GSbyY5P.cjs} +1 -1
  8. package/dist/{EChartComponentBase-BXFQtucH.js → EChartComponentBase-skupRYzl.js} +2 -2
  9. package/dist/{EmergencyPlanPanel-Uokoto8d.js → EmergencyPlanPanel-C4OsnsPP.js} +1 -1
  10. package/dist/{EmergencyPlanPanel-Bvr21RAA.cjs → EmergencyPlanPanel-DLvOrE5U.cjs} +1 -1
  11. package/dist/{HistoryPlanDialog-CwzSy9Yg.cjs → HistoryPlanDialog--99rPq54.cjs} +1 -1
  12. package/dist/{HistoryPlanDialog-cNO78R3Z.js → HistoryPlanDialog-DI0H_vgZ.js} +1 -1
  13. package/dist/{MixiotAppDetailPage-Cn6MrctA.cjs → MixiotAppDetailPage-4mYR4gHm.cjs} +1 -1
  14. package/dist/{MixiotAppDetailPage-CDFMUpgE.js → MixiotAppDetailPage-C_NrtqJU.js} +1 -1
  15. package/dist/{MonitoringMap-Bx-WZ55u.cjs → MonitoringMap-CstXoU8n.cjs} +1 -1
  16. package/dist/{MonitoringMap-B57466ub.js → MonitoringMap-Gxy8ldt1.js} +2 -2
  17. package/dist/{UniverSheet-udaaWiwX.js → UniverSheet-DGNOHAEJ.js} +2 -2
  18. package/dist/{UniverSheet-D_2B9y0P.cjs → UniverSheet-phDDfwXk.cjs} +1 -1
  19. package/dist/{accelerationChart-CoF7xVle.cjs → accelerationChart-B_y_8Y4q.cjs} +1 -1
  20. package/dist/{accelerationChart-CpneHEfN.js → accelerationChart-C4JTCc65.js} +2 -2
  21. package/dist/{actionItem-BL4Aq8xP.cjs → actionItem-Bdw3MAAf.cjs} +1 -1
  22. package/dist/{actionItem-M1Ggj39E.js → actionItem-CGOgCPJR.js} +2 -2
  23. package/dist/{alarmLevelChart-B1AsPSH7.js → alarmLevelChart-BQF-4a0s.js} +2 -2
  24. package/dist/{alarmLevelChart-5C3c0X4W.cjs → alarmLevelChart-CY4GqDio.cjs} +1 -1
  25. package/dist/{alertTable-B9xmoXmb.cjs → alertTable-D3riLPwz.cjs} +1 -1
  26. package/dist/{alertTable-C_N15Q6Y.js → alertTable-DgiRdm5f.js} +2 -2
  27. package/dist/{aliasObjectSelectorDemo-BrKuxy8M.js → aliasObjectSelectorDemo-C7gQUdGu.js} +1 -1
  28. package/dist/{aliasObjectSelectorDemo-D-fDz7Wg.cjs → aliasObjectSelectorDemo-DXFCCnvj.cjs} +1 -1
  29. package/dist/{annualRainfallChart-DNiiap-k.js → annualRainfallChart-C1yG42iq.js} +2 -2
  30. package/dist/{annualRainfallChart-BNfhWc2L.cjs → annualRainfallChart-D3oUahrK.cjs} +1 -1
  31. package/dist/{aqi-BZX7c9k1.cjs → aqi-B3g_go92.cjs} +1 -1
  32. package/dist/{aqi-BcMm8inv.js → aqi-DLqM9gGc.js} +2 -2
  33. package/dist/{aqiIndass-CV6Ke7AN.js → aqiIndass-DDtB5_wf.js} +2 -2
  34. package/dist/{aqiIndass-BRLTBHqq.cjs → aqiIndass-DRYU-FAs.cjs} +1 -1
  35. package/dist/{areaDeformCurve-D3BDgwXr.cjs → areaDeformCurve-CnvUJY_x.cjs} +1 -1
  36. package/dist/{areaDeformCurve-CnVYncv7.js → areaDeformCurve-DaLtFoJT.js} +2 -2
  37. package/dist/{arrayCard-ZHMUXIEB.cjs → arrayCard-9p0Bkc_e.cjs} +1 -1
  38. package/dist/{arrayCard-LDTG_N9H.js → arrayCard-FYb8TmUw.js} +2 -2
  39. package/dist/{audio-BzR-qYkP.js → audio-BBXpJP54.js} +2 -2
  40. package/dist/{audio-CMMleosA.cjs → audio-DGxXcB0a.cjs} +1 -1
  41. package/dist/{bar-CVqAgZWi.js → bar-D26zndUl.js} +2 -2
  42. package/dist/{bar-DGPpw_v5.cjs → bar-btY9Pwkk.cjs} +1 -1
  43. package/dist/{basicShapeToolbox-eeHT0X70.cjs → basicShapeToolbox-XR_NHK87.cjs} +1 -1
  44. package/dist/{basicShapeToolbox-DxlQ8_7z.js → basicShapeToolbox-Y6mXTA8o.js} +2 -2
  45. package/dist/{bmp-DeQAJt0Q.js → bmp-C7tYeLi0.js} +2 -2
  46. package/dist/{bmp-BrGY0Oio.cjs → bmp-DlSoc3Rw.cjs} +1 -1
  47. package/dist/{box-DoAI2aH1.js → box-DroQaZjH.js} +2 -2
  48. package/dist/{box-nnH9wkmX.cjs → box-DyIX9weX.cjs} +1 -1
  49. package/dist/{chartConfigPanel-BnFHLRcU.js → chartConfigPanel-D4dbsVKj.js} +1 -1
  50. package/dist/{chartConfigPanel-CGHSBcfE.cjs → chartConfigPanel-DvTKL5EZ.cjs} +1 -1
  51. package/dist/{circleBar-ithnj58t.js → circleBar-DCnx8wNj.js} +2 -2
  52. package/dist/{circleBar-H_i9p7nU.cjs → circleBar-DulXgWd8.cjs} +1 -1
  53. package/dist/{clock-CRx-mxeQ.js → clock-B1X6vX22.js} +2 -2
  54. package/dist/{clock-BUqmOGY2.cjs → clock-CeM6LdAl.cjs} +1 -1
  55. package/dist/{clt-heq-rWZ_.cjs → clt-CcpO8rrD.cjs} +1 -1
  56. package/dist/{clt-BnBTzmyM.js → clt-IAzRVgiu.js} +2 -2
  57. package/dist/{cmc-Ck7TDAPb.cjs → cmc-B4xRwSti.cjs} +1 -1
  58. package/dist/{cmc-Dv1TIhJh.js → cmc-Swd4NfxE.js} +2 -2
  59. package/dist/{cmp-BY6I5rxe.js → cmp--gCtei5x.js} +2 -2
  60. package/dist/{cmp-CEoUqjTE.cjs → cmp-B9Aip3T2.cjs} +1 -1
  61. package/dist/{conclusionCard-ZEh7CxXp.cjs → conclusionCard-CRif9GmS.cjs} +1 -1
  62. package/dist/{conclusionCard-D4bl8TNR.js → conclusionCard-DQ0HTHsg.js} +2 -2
  63. package/dist/{controlList-BnkhIoMW.js → controlList-4TidO_XJ.js} +4 -4
  64. package/dist/{controlList-D_VM94S4.cjs → controlList-CwLNEkAi.cjs} +1 -1
  65. package/dist/{controlRecordList-DBD0mCd_.cjs → controlRecordList-CuvV65TE.cjs} +1 -1
  66. package/dist/{controlRecordList-DUfM6Cu9.js → controlRecordList-dPW6e4FN.js} +3 -3
  67. package/dist/{controlRecordListAPP-mKW7AvzT.js → controlRecordListAPP-CObVdW3l.js} +2 -2
  68. package/dist/{controlRecordListAPP-DFmDHu_n.cjs → controlRecordListAPP-DCzTOeXr.cjs} +1 -1
  69. package/dist/{crd-yCOo05Gg.cjs → crd-AH_sGivo.cjs} +1 -1
  70. package/dist/{crd-Du78OULd.js → crd-CEWC005o.js} +2 -2
  71. package/dist/{ctrBtn-DsQtZnCc.js → ctrBtn-8xev-mny.js} +3 -3
  72. package/dist/{ctrBtn-C9ufxELU.cjs → ctrBtn-nYp9T0n0.cjs} +1 -1
  73. package/dist/{ctrSet-B38EdzmT.js → ctrSet-3Q4eJSfK.js} +3 -3
  74. package/dist/{ctrSet-DqEmMkZc.cjs → ctrSet-z_9ztVyG.cjs} +1 -1
  75. package/dist/{ctrSwitch-BsLv1Jbh.js → ctrSwitch-BhqYXTMZ.js} +3 -3
  76. package/dist/{ctrSwitch-CBNGCgwY.cjs → ctrSwitch-DacpvyBJ.cjs} +1 -1
  77. package/dist/{dataManagement-BSBRIULo.js → dataManagement-BiPhJbF1.js} +2 -2
  78. package/dist/{dataManagement-CLHvBLxd.cjs → dataManagement-DP1Chfo2.cjs} +1 -1
  79. package/dist/{dataReport-B0jkrbRa.js → dataReport-CQaL-d_q.js} +2 -2
  80. package/dist/{dataReport-UCngV2Kr.cjs → dataReport-C_8TF5Dz.cjs} +1 -1
  81. package/dist/{dataTable-DK9a-V2m.js → dataTable-Bbx5XgV-.js} +1 -1
  82. package/dist/{dataTable-C1uOjGRw.cjs → dataTable-D6-325qb.cjs} +1 -1
  83. package/dist/{datetime-c98_UcMo.js → datetime-CmXZdgkW.js} +2 -2
  84. package/dist/{datetime-_Pqurq2Y.cjs → datetime-DBrUO7wD.cjs} +1 -1
  85. package/dist/{deepClusterSlipSurface-Caaz-E6R.cjs → deepClusterSlipSurface-Ch8i2ql5.cjs} +1 -1
  86. package/dist/{deepClusterSlipSurface-ERMDJnAc.js → deepClusterSlipSurface-D7o7mgg7.js} +2 -2
  87. package/dist/{deepDataMatrix-Dnowf9xF.js → deepDataMatrix-D9GCg496.js} +2 -2
  88. package/dist/{deepDataMatrix-tmCdhdZ6.cjs → deepDataMatrix-DoM8KUHn.cjs} +1 -1
  89. package/dist/{deepDisplacement3D-DBk9_Oje.cjs → deepDisplacement3D-C8ZRCP-R.cjs} +1 -1
  90. package/dist/{deepDisplacement3D-DbHuZGY8.js → deepDisplacement3D-Cjx11pre.js} +2 -2
  91. package/dist/{deepDisplacementChart-cKpaqP68.js → deepDisplacementChart-BHe83IoB.js} +3 -3
  92. package/dist/{deepDisplacementChart-DU7AUz3S.cjs → deepDisplacementChart-BlcS3DVl.cjs} +1 -1
  93. package/dist/{deepDisplacementChart-IIRMg2Oh.js → deepDisplacementChart-HuWab3pz.js} +2 -2
  94. package/dist/{deepDisplacementChart-DFcqegm5.cjs → deepDisplacementChart-r3GIC8hq.cjs} +1 -1
  95. package/dist/{deepDisplacementView-CdPTYeb5.js → deepDisplacementView-B4RBH8Ie.js} +1 -1
  96. package/dist/{deepDisplacementView-8PFopgFH.cjs → deepDisplacementView-BHZQ4s3K.cjs} +1 -1
  97. package/dist/{deepNodeTemperatureChart-CpUU2RjZ.cjs → deepNodeTemperatureChart-BswYkP9V.cjs} +1 -1
  98. package/dist/{deepNodeTemperatureChart-CTeKLsTH.js → deepNodeTemperatureChart-D9maVN-M.js} +2 -2
  99. package/dist/{deepTangentAngleChart-BO0OcTc9.js → deepTangentAngleChart-DIWKa8r3.js} +2 -2
  100. package/dist/{deepTangentAngleChart-BHH6xjlr.cjs → deepTangentAngleChart-DQxOv4Vz.cjs} +1 -1
  101. package/dist/{deepTemperatureField-CoYl0cDp.cjs → deepTemperatureField-2GBzigs_.cjs} +1 -1
  102. package/dist/{deepTemperatureField-BWRMA9eH.js → deepTemperatureField-DlLLcuFb.js} +3 -3
  103. package/dist/{deepTrendChart-Ch5mIwWw.cjs → deepTrendChart-CbYdfjcX.cjs} +1 -1
  104. package/dist/{deepTrendChart-8pnnTpw9.js → deepTrendChart-CdX41nqe.js} +2 -2
  105. package/dist/{deviceOnlineStatus-DXcQQFgs.cjs → deviceOnlineStatus-BMfNv4fX.cjs} +1 -1
  106. package/dist/{deviceOnlineStatus-CcjQRhyI.js → deviceOnlineStatus-BdOeLbLy.js} +2 -2
  107. package/dist/{deviceStatus-CbKfdSIW.js → deviceStatus-B8Ijgoyf.js} +2 -2
  108. package/dist/{deviceStatus-BrMU6D9H.cjs → deviceStatus-CbYBmGvy.cjs} +1 -1
  109. package/dist/{displacementDataTable-DCJhpBbw.cjs → displacementDataTable-BI8cE-vY.cjs} +1 -1
  110. package/dist/{displacementDataTable-BB10v691.js → displacementDataTable-Cqi5Ql6a.js} +2 -2
  111. package/dist/{displacementTrajectoryChart-19Ca6tA-.js → displacementTrajectoryChart-D1UPR4dt.js} +2 -2
  112. package/dist/{displacementTrajectoryChart-BcFy_N-8.cjs → displacementTrajectoryChart-DJM_B-gL.cjs} +1 -1
  113. package/dist/{displacementTrendChart-CUtOfe05.cjs → displacementTrendChart-C4jvpdRY.cjs} +1 -1
  114. package/dist/{displacementTrendChart-CPgo0GtO.js → displacementTrendChart-Dii90QjN.js} +2 -2
  115. package/dist/{dxf-8i3n6nhJ.js → dxf-DAAwQlgQ.js} +2 -2
  116. package/dist/{dxf-D8ka1DKj.cjs → dxf-DsJIwOOJ.cjs} +1 -1
  117. package/dist/{dzc-jKjY0gN-.js → dzc-BjOYTnIF.js} +2 -2
  118. package/dist/{dzc-CYL3DJ2s.cjs → dzc-CpML7WAZ.cjs} +1 -1
  119. package/dist/{emergencyPlan-DI05Vj5v.cjs → emergencyPlan-DWpGIszu.cjs} +1 -1
  120. package/dist/{emergencyPlan-Caz2FDXJ.js → emergencyPlan-DeL1roPL.js} +3 -3
  121. package/dist/{evn-Ds70OLmn.js → evn-CUajXlYc.js} +2 -2
  122. package/dist/{evn-Cx67wqIO.cjs → evn-D0ROeiQD.cjs} +1 -1
  123. package/dist/{evolutionChart-BZntyPEP.js → evolutionChart-B-2W9qVE.js} +3 -3
  124. package/dist/{evolutionChart-Bqo-IFG8.cjs → evolutionChart-D23ALmPJ.cjs} +1 -1
  125. package/dist/{fileViewer-BpGHEtQn.js → fileViewer-D6-jyRWy.js} +2 -2
  126. package/dist/{fileViewer-BSWkn1Su.cjs → fileViewer-DHDmo6px.cjs} +1 -1
  127. package/dist/{filterBar-BBTOB6lu.cjs → filterBar-Bx0qkR7L.cjs} +1 -1
  128. package/dist/{filterBar-Dp71ZLZU.js → filterBar-Cw-wbtF1.js} +2 -2
  129. package/dist/{fireCombustionCurve-BagawR29.cjs → fireCombustionCurve-Dj2o6qcy.cjs} +1 -1
  130. package/dist/{fireCombustionCurve-BmH9YE1S.js → fireCombustionCurve-wPPE55j_.js} +3 -3
  131. package/dist/{fireFilterBar-d-iyDuHX.js → fireFilterBar-COgdZt2b.js} +2 -2
  132. package/dist/{fireFilterBar-BZv8fLKz.cjs → fireFilterBar-t-aUk0FZ.cjs} +1 -1
  133. package/dist/{fireHistoryTable-D_UrD4za.cjs → fireHistoryTable-BgzroLVi.cjs} +1 -1
  134. package/dist/{fireHistoryTable-CZJePGIU.js → fireHistoryTable-Em_cwZSy.js} +2 -2
  135. package/dist/{gag-CWFrvwcH.cjs → gag-C5gOltT8.cjs} +1 -1
  136. package/dist/{gag-rfKUWGcg.js → gag-Dd-osrR9.js} +2 -2
  137. package/dist/{gasStationList-BfG4EXe_.cjs → gasStationList-CKe02Teb.cjs} +1 -1
  138. package/dist/{gasStationList-Clhadnk8.js → gasStationList-CepcJ9BG.js} +3 -3
  139. package/dist/{geo3dViewer-DsxkExJE.cjs → geo3dViewer-CSq4-kE-.cjs} +1 -1
  140. package/dist/{geo3dViewer-BiJsCBWP.js → geo3dViewer-yHqVv2BH.js} +3 -3
  141. package/dist/{glbModel-BvFmkpsx.cjs → glbModel-CBM7-1vZ.cjs} +1 -1
  142. package/dist/{glbModel-q43s67BL.js → glbModel-DFDIJi5z.js} +2 -2
  143. package/dist/{globalObjectSelector-C0BrDEW7.js → globalObjectSelector-BoBf_njv.js} +1 -1
  144. package/dist/{globalObjectSelector-WvpSQJWJ.cjs → globalObjectSelector-BvK0QxXk.cjs} +1 -1
  145. package/dist/{gnssFilterBar-B-MjcBrP.cjs → gnssFilterBar-BabiLlIC.cjs} +1 -1
  146. package/dist/{gnssFilterBar-Cgsgs4V5.js → gnssFilterBar-C4Ozsjee.js} +2 -2
  147. package/dist/{gnssHistoryTable-g8uWfH7Y.cjs → gnssHistoryTable-CEtxui4z.cjs} +1 -1
  148. package/dist/{gnssHistoryTable-CIxOd5w7.js → gnssHistoryTable-DWICO-OK.js} +2 -2
  149. package/dist/{gnssMapView-D44QaNTQ.cjs → gnssMapView-C5IzKoTF.cjs} +2 -2
  150. package/dist/{gnssMapView-BiQVf4gh.js → gnssMapView-CgLO6fng.js} +4 -4
  151. package/dist/{gnssSectionProfile-BtdpmKmn.js → gnssSectionProfile-BFU5_iQa.js} +2 -2
  152. package/dist/{gnssSectionProfile-jjVu5A1a.cjs → gnssSectionProfile-BcS3AU5H.cjs} +1 -1
  153. package/dist/{gnssTimeSeriesChart-CpFkQtUh.cjs → gnssTimeSeriesChart-2AOe01nY.cjs} +1 -1
  154. package/dist/{gnssTimeSeriesChart-Do1kv1qm.js → gnssTimeSeriesChart-Cyc9JVmX.js} +2 -2
  155. package/dist/{gnssXYTrajectory-CFvwWDtK.cjs → gnssXYTrajectory-B3HDdORI.cjs} +1 -1
  156. package/dist/{gnssXYTrajectory-BvOG_D_7.js → gnssXYTrajectory-DAjqaaOt.js} +2 -2
  157. package/dist/{grd-C95ZWmOl.js → grd-BdraSTc0.js} +2 -2
  158. package/dist/{grd-B-Nvc327.cjs → grd-jisN3fY_.cjs} +1 -1
  159. package/dist/{grdIndass-BbcYs8HM.js → grdIndass-BuEWpm2p.js} +2 -2
  160. package/dist/{grdIndass-B_z4KeNP.cjs → grdIndass-BxJWHgbc.cjs} +1 -1
  161. package/dist/{grg-BDIR6B7-.js → grg-BiUyteXn.js} +2 -2
  162. package/dist/{grg-BrmtnaIG.cjs → grg-DHDNZzvS.cjs} +1 -1
  163. package/dist/{gridview-D9LN6PFq.cjs → gridview-C2eGcIgv.cjs} +1 -1
  164. package/dist/{gridview-CW8y8BTd.js → gridview-DsDgxIu-.js} +2 -2
  165. package/dist/{groundwaterFilterBar--mLtU1NA.js → groundwaterFilterBar-CwNVHLoq.js} +2 -2
  166. package/dist/{groundwaterFilterBar-IRv_PmLr.cjs → groundwaterFilterBar-Dwoyvzll.cjs} +1 -1
  167. package/dist/{groundwaterProfileChart-B5D95_jr.js → groundwaterProfileChart-pYkKSQRV.js} +3 -3
  168. package/dist/{groundwaterProfileChart-DmECniYq.cjs → groundwaterProfileChart-xVZS96Bs.cjs} +2 -2
  169. package/dist/{groundwaterTimeCurve-Ca54aXVx.cjs → groundwaterTimeCurve-CCP0yOcn.cjs} +1 -1
  170. package/dist/{groundwaterTimeCurve-BrcA-6cK.js → groundwaterTimeCurve-CRic1FkR.js} +3 -3
  171. package/dist/{groupCard-DrsDWmxv.cjs → groupCard-9mvfU5Qi.cjs} +1 -1
  172. package/dist/{groupCard-BALuY-4u.js → groupCard-DyiQzmSU.js} +2 -2
  173. package/dist/{headerBar-BhcF9zwo.cjs → headerBar-BnZZrxdl.cjs} +1 -1
  174. package/dist/{headerBar-DN_2v5oW.js → headerBar-CT2WWLFX.js} +2 -2
  175. package/dist/{history-AbuttL7F.js → history-CY_TCu9h.js} +1 -1
  176. package/dist/{history-RyapjVQj.cjs → history-Dm7563t_.cjs} +1 -1
  177. package/dist/{index-CBUg675g.js → index-CPTJIw32.js} +1435 -1426
  178. package/dist/{index-_HLheGV-.cjs → index-DoEyCVDU.cjs} +10 -10
  179. package/dist/{insarDeformChart-D9W6Shvh.js → insarDeformChart-Bf6Q1Kll.js} +2 -2
  180. package/dist/{insarDeformChart-CPMmyq2Q.cjs → insarDeformChart-D7r5dP7T.cjs} +1 -1
  181. package/dist/{insarImageViewer-Emg8xI2y.cjs → insarImageViewer-Cj6ywbUG.cjs} +1 -1
  182. package/dist/{insarImageViewer-BKR35-3Y.js → insarImageViewer-CupmlYkz.js} +2 -2
  183. package/dist/{kds-BIhsngsG.cjs → kds-BXJfeT1L.cjs} +1 -1
  184. package/dist/{kds-vULqfPXw.js → kds-vKrvUAFM.js} +2 -2
  185. package/dist/{kpiCard-CMiF6mBN.js → kpiCard-DxJnC2K1.js} +2 -2
  186. package/dist/{kpiCard-B67MCYuq.cjs → kpiCard-SXeIckZe.cjs} +1 -1
  187. package/dist/{landslideMap-CjLKf2iR.cjs → landslideMap-Byzuh2uI.cjs} +1 -1
  188. package/dist/{landslideMap-bZNNSwud.js → landslideMap-g1sW7hGk.js} +3 -3
  189. package/dist/{landslideWarning-DLv7p3mP.cjs → landslideWarning-DBYw20My.cjs} +1 -1
  190. package/dist/{landslideWarning-BuRfKa7J.js → landslideWarning-K2gltHjy.js} +5 -5
  191. package/dist/{layerTabs-Dy_3Ts8T.js → layerTabs-DhKwbCdm.js} +2 -2
  192. package/dist/{layerTabs-Dbz3cgus.cjs → layerTabs-pQHCSR8d.cjs} +1 -1
  193. package/dist/{leaflet-src-DCyKOtdK.cjs → leaflet-src-BNvMLv27.cjs} +1 -1
  194. package/dist/{leaflet-src-BOVMWAgQ.js → leaflet-src-CLsvhZ1a.js} +1 -1
  195. package/dist/{lerc-CiwKGo9N.cjs → lerc-7GSCiwa9.cjs} +1 -1
  196. package/dist/{lerc-CaasK4eX.js → lerc-CqUbnv8h.js} +2 -2
  197. package/dist/{lin-CL6L1ch_.js → lin-Bq35ycag.js} +2 -2
  198. package/dist/{lin-BOWJ-CW7.cjs → lin-D0itRkyl.cjs} +1 -1
  199. package/dist/{linIndass-RCHsMojj.cjs → linIndass-DWiz2vOV.cjs} +1 -1
  200. package/dist/{linIndass-CKa1_9MS.js → linIndass-DYq4eFAR.js} +2 -2
  201. package/dist/{lst-Wkgks7ep.cjs → lst-DdajeugL.cjs} +1 -1
  202. package/dist/{lst-CrqSgZwR.js → lst-qvTez4v1.js} +2 -2
  203. package/dist/{manualEntry-CXfFEtpf.js → manualEntry-D33u42uH.js} +2 -2
  204. package/dist/{manualEntry-BKQGTuWL.cjs → manualEntry-s4RAoEru.cjs} +1 -1
  205. package/dist/{mapBackground-BIf6-eD-.js → mapBackground-DM72oEn2.js} +3 -3
  206. package/dist/{mapBackground-C-kzpjdj.cjs → mapBackground-YtkaIPHY.cjs} +1 -1
  207. package/dist/{mappingList-4KfMGq0t.cjs → mappingList-Ch1HZwNc.cjs} +1 -1
  208. package/dist/{mappingList-CBjvognf.js → mappingList-Dy_UeCUf.js} +4 -4
  209. package/dist/{markdownViewer-D7Ywqp1H.cjs → markdownViewer-DUjEXMVH.cjs} +1 -1
  210. package/dist/{markdownViewer-rrlYeZ7I.js → markdownViewer-ZlwNlmLZ.js} +2 -2
  211. package/dist/{mix-control-modal-f40hkYH3.cjs → mix-control-modal-B3FrB7Jt.cjs} +1 -1
  212. package/dist/{mix-control-modal-TGnsMYa8.js → mix-control-modal-tXOouBPe.js} +1 -1
  213. package/dist/{mixGrid-UzSy29Tj.cjs → mixGrid-BU9U3aHI.cjs} +1 -1
  214. package/dist/{mixGrid-SC1E7q90.js → mixGrid-CogLsRzO.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.js +1 -1
  217. package/dist/{mjpegCamera-D08JqvZv.cjs → mjpegCamera-g6FXbrP3.cjs} +1 -1
  218. package/dist/{mjpegCamera-B-NzFCLp.js → mjpegCamera-xUmmLzM-.js} +2 -2
  219. package/dist/{monitorAlert-CySfW9hE.cjs → monitorAlert-DZd5lJOJ.cjs} +1 -1
  220. package/dist/{monitorAlert-7zKlT848.js → monitorAlert-DhE_HvpR.js} +2 -2
  221. package/dist/{monitorData-CLoDrDAi.js → monitorData-BnEkcdiN.js} +2 -2
  222. package/dist/{monitorData-CN7FgFYY.cjs → monitorData-CpWVhINV.cjs} +1 -1
  223. package/dist/{monitorSpeedChart-3wn9DK7M.js → monitorSpeedChart-CeW-Kk03.js} +1 -1
  224. package/dist/{monitorSpeedChart-DtfHwuuC.cjs → monitorSpeedChart-DwsoytUF.cjs} +1 -1
  225. package/dist/{mxa-nR2EARK7.cjs → mxa-0DZWI1xK.cjs} +1 -1
  226. package/dist/{mxa-BtRYaYaC.js → mxa-C58deh1I.js} +2 -2
  227. package/dist/{myValue-DRH-Z7U4.js → myValue-B4ADQTTG.js} +2 -2
  228. package/dist/{myValue-D0EmXzMl.cjs → myValue-DQLm9XLI.cjs} +1 -1
  229. package/dist/{myValueList-B5lvydIP.cjs → myValueList-DZA9_HEh.cjs} +1 -1
  230. package/dist/{myValueList-C4SdEKSN.js → myValueList-baXd51uR.js} +2 -2
  231. package/dist/{objectList-91MCrGI_.js → objectList-5m0NKALq.js} +4 -4
  232. package/dist/{objectList-D7VpzRS3.cjs → objectList-BHmAruDg.cjs} +1 -1
  233. package/dist/{objectListAPP-CAkXW-XT.js → objectListAPP-COZlfKyw.js} +3 -3
  234. package/dist/{objectListAPP-CIOx7U1x.cjs → objectListAPP-Cs7Wu_86.cjs} +1 -1
  235. package/dist/{percentBar-Cie2WFfD.js → percentBar-BV6nG2iK.js} +2 -2
  236. package/dist/{percentBar-jD76os8U.cjs → percentBar-CPfJrspp.cjs} +1 -1
  237. package/dist/{photo-Dq7u9W4H.cjs → photo-C4739K_A.cjs} +1 -1
  238. package/dist/{photo-C9AebOr-.js → photo-DK4Z23e3.js} +2 -2
  239. package/dist/{pie-DvBgXusO.js → pie-Lx2zjyZY.js} +2 -2
  240. package/dist/{pie-5_CT43-6.cjs → pie-kb79hzax.cjs} +1 -1
  241. package/dist/{placeholder-DuWCH00z.cjs → placeholder-CAWJju9d.cjs} +1 -1
  242. package/dist/{placeholder-C-Jlu7cM.js → placeholder-Cv_i5j6V.js} +1 -1
  243. package/dist/{pressBtn-Ck16nIx8.cjs → pressBtn-DPp2yGFb.cjs} +1 -1
  244. package/dist/{pressBtn-D9g4JPbg.js → pressBtn-DwN7ExMn.js} +3 -3
  245. package/dist/{processTable-G2oq4vGs.js → processTable-DRzy2-fX.js} +2 -2
  246. package/dist/{processTable-zJNS25YB.cjs → processTable-kGjdZ2SC.cjs} +1 -1
  247. package/dist/{progressBar-CvQb9bfy.cjs → progressBar-89gQ5oSf.cjs} +1 -1
  248. package/dist/{progressBar-B5C8F-Yk.js → progressBar-D5GyaH8h.js} +2 -2
  249. package/dist/{progressCircle-BWWhALsz.js → progressCircle-C0qoN2X2.js} +2 -2
  250. package/dist/{progressCircle-DmKwJZ9A.cjs → progressCircle-D6jGTviS.cjs} +1 -1
  251. package/dist/{qrcode-Bqq4gt4d.js → qrcode-B7wIdO7u.js} +2 -2
  252. package/dist/{qrcode-CiCdevKe.cjs → qrcode-DutO28qr.cjs} +1 -1
  253. package/dist/{raceBar-yXI0Fp1k.js → raceBar-JrtM5isa.js} +2 -2
  254. package/dist/{raceBar-B0IDFFMW.cjs → raceBar-Kb4Ok0_0.cjs} +1 -1
  255. package/dist/{rad-BPtEbSHd.cjs → rad-BKh0I2W8.cjs} +1 -1
  256. package/dist/{rad-CNXP40O_.js → rad-NhNcdAlO.js} +2 -2
  257. package/dist/{radarMapViewer-D6R98Oq0.js → radarMapViewer-BrGy_wsI.js} +2 -2
  258. package/dist/{radarMapViewer-BVWov5r2.cjs → radarMapViewer-a-NY9MyR.cjs} +1 -1
  259. package/dist/{rainfallFilterBar-BH62ipFa.js → rainfallFilterBar-CiVPGG1P.js} +2 -2
  260. package/dist/{rainfallFilterBar-D2FHGoJF.cjs → rainfallFilterBar-DlJryHw0.cjs} +1 -1
  261. package/dist/{rainfallTimeCurve-DEQJGfA-.js → rainfallTimeCurve-BwrlePpg.js} +3 -3
  262. package/dist/{rainfallTimeCurve-IkgWW8as.cjs → rainfallTimeCurve-cYcKHYUj.cjs} +1 -1
  263. package/dist/{rangeLin-Kmz2x3Ag.cjs → rangeLin-B24wJK2h.cjs} +1 -1
  264. package/dist/{rangeLin-DfZl-V9t.js → rangeLin-CPKLO87X.js} +2 -2
  265. package/dist/{realtimeEvolutionMap-DGdsJFw9.cjs → realtimeEvolutionMap-CHQ7-WE1.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-D3ciiloi.js → realtimeEvolutionMap-ZFozACoZ.js} +2 -2
  267. package/dist/{regionBar-CJ5RvcOF.js → regionBar-Cz4GtJuo.js} +2 -2
  268. package/dist/{regionBar-CATzPKKY.cjs → regionBar-Dgv2JYSM.cjs} +1 -1
  269. package/dist/{request-DOww08jj.cjs → request-Dm2cf1Aw.cjs} +1 -1
  270. package/dist/{request-BKI8MJr_.js → request-aXSa-Jdv.js} +1 -1
  271. package/dist/{retainer1-DNZcOFbr.js → retainer1-B4KyW6bw.js} +3 -3
  272. package/dist/{retainer1-CoHZJfqZ.cjs → retainer1-B6byWkE5.cjs} +1 -1
  273. package/dist/{retainer2-DcQn7Yl6.cjs → retainer2-B06eGTYw.cjs} +1 -1
  274. package/dist/{retainer2-B697w6Il.js → retainer2-X6vRW_D5.js} +3 -3
  275. package/dist/{retainerRecordList-DMeZdjJR.cjs → retainerRecordList-C8wYAf_v.cjs} +1 -1
  276. package/dist/{retainerRecordList-DSrkhmA6.js → retainerRecordList-DDZSYpCF.js} +4 -4
  277. package/dist/{retainerRecordListAPP-BpxCQy99.js → retainerRecordListAPP-B2Lp-jHM.js} +3 -3
  278. package/dist/{retainerRecordListAPP-BwbTay0w.cjs → retainerRecordListAPP-BHu691JS.cjs} +1 -1
  279. package/dist/{ringTopN-C06E4LW5.cjs → ringTopN-BpJZOE13.cjs} +1 -1
  280. package/dist/{ringTopN-BUVYuls6.js → ringTopN-DX7OzPp7.js} +2 -2
  281. package/dist/{riskRegionTable-DA9T9C3G.js → riskRegionTable-D7blgvMi.js} +2 -2
  282. package/dist/{riskRegionTable-LJj1BdnP.cjs → riskRegionTable-DziKMS_2.cjs} +1 -1
  283. package/dist/{sankey-M3kOKD64.js → sankey-CmgfktZj.js} +2 -2
  284. package/dist/{sankey-CmA5O__I.cjs → sankey-DjC4IYit.cjs} +1 -1
  285. package/dist/{scd-w4eyJs3A.cjs → scd-QV9whYOR.cjs} +1 -1
  286. package/dist/{scd-_wiOjgzS.js → scd-zUFKqN8p.js} +2 -2
  287. package/dist/{sideMenu-DUdbXsAa.js → sideMenu-CI23QNpx.js} +2 -2
  288. package/dist/{sideMenu-CzaKR4Hu.cjs → sideMenu-POQpSa8C.cjs} +1 -1
  289. package/dist/{slopeStability-X5_qgGoU.cjs → slopeStability-Da70drIy.cjs} +1 -1
  290. package/dist/{slopeStability-DqPCVgPw.js → slopeStability-E55huDws.js} +2 -2
  291. package/dist/{speedCurve-BLt4Xejr.js → speedCurve-BhhUH79z.js} +2 -2
  292. package/dist/{speedCurve-7bKZOVtu.cjs → speedCurve-DSX1UJeW.cjs} +1 -1
  293. package/dist/{stackedBar-pGTy4A2F.cjs → stackedBar-B0kr6QB7.cjs} +1 -1
  294. package/dist/{stackedBar-_eIF1vJZ.js → stackedBar-bgd2Ls04.js} +2 -2
  295. package/dist/{stationList-DxYDeSvX.cjs → stationList-BSPTM0iI.cjs} +1 -1
  296. package/dist/{stationList--Ar-04xw.js → stationList-D7k3Lot6.js} +3 -3
  297. package/dist/{stressFilterBar-DUaU7F9R.cjs → stressFilterBar-B3gk67B_.cjs} +1 -1
  298. package/dist/{stressFilterBar-l-YrUNnj.js → stressFilterBar-Beupo7Zb.js} +2 -2
  299. package/dist/{stressTimeCurve-Da0WQpcl.cjs → stressTimeCurve-CbhFLXzA.cjs} +1 -1
  300. package/dist/{stressTimeCurve-CS66wxqE.js → stressTimeCurve-DGBhkdbV.js} +3 -3
  301. package/dist/{swiper-CNQtsbvs.js → swiper-BEau8Ehu.js} +2 -2
  302. package/dist/{swiper-DIUvD5xc.cjs → swiper-UlVDFht8.cjs} +1 -1
  303. package/dist/{tablemanCreate-o-4lbWMg.cjs → tablemanCreate-CF_D5gYW.cjs} +1 -1
  304. package/dist/{tablemanCreate-VO2uhxAK.js → tablemanCreate-WnNbHft8.js} +3 -3
  305. package/dist/{tablemanDetail-laWaJr1H.cjs → tablemanDetail-_SNevfWv.cjs} +1 -1
  306. package/dist/{tablemanDetail-owA2XrSZ.js → tablemanDetail-yz3zQnFP.js} +4 -4
  307. package/dist/{tablemanList-DdeyJDxY.cjs → tablemanList-CDJWp9Pu.cjs} +1 -1
  308. package/dist/{tablemanList-4WOdjHUn.js → tablemanList-CzcVRDtI.js} +4 -4
  309. package/dist/{tablemanTableList-GHxVBKi_.js → tablemanTableList-Bm2fU0EX.js} +4 -4
  310. package/dist/{tablemanTableList-mwLZdCB-.cjs → tablemanTableList-DX76_Wzv.cjs} +1 -1
  311. package/dist/{tablemanUpdate-2B9IwaI3.cjs → tablemanUpdate-wdF6NUSW.cjs} +1 -1
  312. package/dist/{tablemanUpdate-DuEWfUzq.js → tablemanUpdate-zmDu6tfj.js} +3 -3
  313. package/dist/{terminalConfigList-CRwf4zyo.js → terminalConfigList-CCTkfKIn.js} +4 -4
  314. package/dist/{terminalConfigList-D7xXTuXY.cjs → terminalConfigList-Dpktm7uo.cjs} +1 -1
  315. package/dist/{terminalList-DR7oCPJy.js → terminalList-DTG1Cd-P.js} +4 -4
  316. package/dist/{terminalList-CRhQweQ-.cjs → terminalList-DlnAYr5c.cjs} +1 -1
  317. package/dist/{terminalListAPP-BFVkfx-6.js → terminalListAPP-BXX0YEmN.js} +3 -3
  318. package/dist/{terminalListAPP-D4FoVU9w.cjs → terminalListAPP-DcG5Iu89.cjs} +1 -1
  319. package/dist/{textbox-ChfIKoJL.cjs → textbox-C5DmbaFz.cjs} +1 -1
  320. package/dist/{textbox-DPuetTa8.js → textbox-DyFcEXBF.js} +2 -2
  321. package/dist/{timeQueryBar-FYKYYKzy.js → timeQueryBar-BbWq3QkA.js} +1 -1
  322. package/dist/{timeQueryBar-B9DR1YVV.cjs → timeQueryBar-OqKVqlTl.cjs} +1 -1
  323. package/dist/{timeSeries-DtRy32NS.cjs → timeSeries-BDp-gfRT.cjs} +1 -1
  324. package/dist/{timeSeries-CuAwxFJi.js → timeSeries-D_-6XcY8.js} +3 -3
  325. package/dist/{timeSeriesCurve-JG6iIGJC.js → timeSeriesCurve-DgSGvMqB.js} +3 -3
  326. package/dist/{timeSeriesCurve-C47CXjlD.cjs → timeSeriesCurve-KPYndFEq.cjs} +1 -1
  327. package/dist/{toggleBtn-CtCkW-hk.js → toggleBtn-D0JJAMZR.js} +2 -2
  328. package/dist/{toggleBtn-Dgpb_5Bl.cjs → toggleBtn-DtS2UoB4.cjs} +1 -1
  329. package/dist/{trajectoryConfigPanel-XwZw7pOw.cjs → trajectoryConfigPanel-Bth1LMLN.cjs} +1 -1
  330. package/dist/{trajectoryConfigPanel-CBAMAsAC.js → trajectoryConfigPanel-DxBIMfEx.js} +1 -1
  331. package/dist/{trajectoryScatter-C2S4vFqM.js → trajectoryScatter-DqgFAVSz.js} +2 -2
  332. package/dist/{trajectoryScatter-BRH5Fuio.cjs → trajectoryScatter-GkbJne40.cjs} +1 -1
  333. package/dist/{universalConfigPanel-vJ_jQ16_.js → universalConfigPanel-BjyXE23U.js} +1 -1
  334. package/dist/{universalConfigPanel-CmNyleL1.cjs → universalConfigPanel-C4Teu_Op.cjs} +1 -1
  335. package/dist/{universalTable-BowNAGzn.js → universalTable-BVwrJKq8.js} +2 -2
  336. package/dist/{universalTable-nb6nzp2F.cjs → universalTable-D_rkyBG2.cjs} +1 -1
  337. package/dist/{useMixiotPanelPopperClass-BvrGMlpq.js → useMixiotPanelPopperClass-C6Y6iPSp.js} +1 -1
  338. package/dist/{useMixiotPanelPopperClass-CLn2j_j-.cjs → useMixiotPanelPopperClass-DmA-0R1V.cjs} +1 -1
  339. package/dist/{useTablemanApi-DUBohnYP.cjs → useTablemanApi-Big2Hfsi.cjs} +1 -1
  340. package/dist/{useTablemanApi-B7y1TIcu.js → useTablemanApi-CJh5jpVJ.js} +1 -1
  341. package/dist/{useTablemanFormPanel-CTYjwCKD.js → useTablemanFormPanel-CvrN_jY3.js} +2 -2
  342. package/dist/{useTablemanFormPanel-D8jZGcoA.cjs → useTablemanFormPanel-prjUDI9m.cjs} +1 -1
  343. package/dist/{useTablemanListActions-D0_YNwZd.cjs → useTablemanListActions-B9SrCZRt.cjs} +1 -1
  344. package/dist/{useTablemanListActions-BCRCO4cd.js → useTablemanListActions-DVQL1pwu.js} +5 -5
  345. package/dist/{video-BmV6PoXX.cjs → video-CdMEjVoF.cjs} +1 -1
  346. package/dist/{video-DeYLErdB.js → video-DDHDy4Eq.js} +2 -2
  347. package/dist/{videoMonitor-BtdEMF9L.cjs → videoMonitor-BZcjaMPX.cjs} +1 -1
  348. package/dist/{videoMonitor-42YAnzbJ.js → videoMonitor-JQ4tj-qi.js} +2 -2
  349. package/dist/{vlu-CRaLe3lQ.cjs → vlu-39EqfkCs.cjs} +1 -1
  350. package/dist/{vlu-CUZpeezE.js → vlu-Bmqrgnj8.js} +2 -2
  351. package/dist/{warningOverview-UEutBo3S.js → warningOverview-Ctab9k92.js} +3 -3
  352. package/dist/{warningOverview-BdQn2kqB.cjs → warningOverview-DOsI-iKt.cjs} +1 -1
  353. package/dist/{weather-go4sIuOb.cjs → weather-BfV-w4FG.cjs} +1 -1
  354. package/dist/{weather-m9wKYl1i.js → weather-BwTT4bPM.js} +2 -2
  355. package/dist/{windLin-C48czv-s.cjs → windLin-Dfz6aBio.cjs} +1 -1
  356. package/dist/{windLin-BB3b5UZm.js → windLin-DgZctBal.js} +2 -2
  357. package/package.json +1 -1
@@ -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-_HLheGV-.cjs");require("element-plus");const Ds=require("./EChartComponentBase-D4DSf0jl.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-DoEyCVDU.cjs");require("element-plus");const Ds=require("./EChartComponentBase-8GSbyY5P.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, R as Tl, J as wl, Z as Sl, _ as bl } from "./index-CBUg675g.js";
20
+ import { d as cr, R as Tl, J as wl, Z as Sl, _ as bl } from "./index-CPTJIw32.js";
21
21
  import "element-plus";
22
- import { E as El } from "./EChartComponentBase-BXFQtucH.js";
22
+ import { E as El } from "./EChartComponentBase-skupRYzl.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 Z, createElementBlock as ae, normalizeStyle as ne, createElementVNode as N, toDisplayString as Ne, unref as $, createVNode as H, withCtx as J, 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 { R as Ie, J as ze, Z as Re, d as B, _ as Fe } from "./index-CBUg675g.js";
38
+ import { R as Ie, J as ze, Z as Re, d as B, _ as Fe } from "./index-CPTJIw32.js";
39
39
  import "element-plus";
40
- import { E as Ue } from "./EChartComponentBase-BXFQtucH.js";
41
- import { formatRequest as Pe } from "./request-BKI8MJr_.js";
40
+ import { E as Ue } from "./EChartComponentBase-skupRYzl.js";
41
+ import { formatRequest as Pe } from "./request-aXSa-Jdv.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" }, Ze = { class: "toolbar" }, Je = ["id"], Xe = {
44
44
  DEFAULT_ICON: He,
@@ -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-_HLheGV-.cjs");require("element-plus");const me=require("./EChartComponentBase-D4DSf0jl.cjs"),fe=require("./request-DOww08jj.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-DoEyCVDU.cjs");require("element-plus");const me=require("./EChartComponentBase-8GSbyY5P.cjs"),fe=require("./request-Dm2cf1Aw.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>
@@ -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 J, computed as W, watch as q, nextTick as B, onMounted as dt, onBeforeUnmount as pt, openBlock as ft, createElementBlock as ht, createElementVNode as z, toDisplayString as K, renderSlot as ut } from "vue";
30
30
  import "html2canvas";
31
- import { B as mt } from "./BaseComponent-DgAX0AyD.js";
32
- import { o as gt, R as vt, J as yt, _ as xt } from "./index-CBUg675g.js";
31
+ import { B as mt } from "./BaseComponent-Dn65PXTp.js";
32
+ import { o as gt, R as vt, J as yt, _ as xt } from "./index-CPTJIw32.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-Yu_LvlWs.cjs"),z=require("./index-_HLheGV-.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-DKuQG62G.cjs"),z=require("./index-DoEyCVDU.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>
@@ -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 { o as pe, d as ue, _ as fe } from "./index-CBUg675g.js";
19
+ import { o as pe, d as ue, _ as fe } from "./index-CPTJIw32.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,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-_HLheGV-.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-DoEyCVDU.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>
@@ -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-_HLheGV-.cjs");require("element-plus");const ue=require("./EChartComponentBase-D4DSf0jl.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-DoEyCVDU.cjs");require("element-plus");const ue=require("./EChartComponentBase-8GSbyY5P.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 q, watch as J, watchEffect as Oe, onMounted as Ne, openBlock as R, createElementBlock as F, normalizeStyle as Q, unref as E, toDisplayString as _e, createCommentVNode as xe, createElementVNode as L, createVNode as I, 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 { o as Ae, Z as te, R as we, _ as Re } from "./index-CBUg675g.js";
21
+ import { o as Ae, Z as te, R as we, _ as Re } from "./index-CPTJIw32.js";
22
22
  import "element-plus";
23
- import { E as Ie } from "./EChartComponentBase-BXFQtucH.js";
23
+ import { E as Ie } from "./EChartComponentBase-skupRYzl.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";
@@ -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 { o as Te, d as Ve, Z as le, R as Ee, _ as Ae } from "./index-CBUg675g.js";
19
+ import { o as Te, d as Ve, Z as le, R as Ee, _ as Ae } from "./index-CPTJIw32.js";
20
20
  import "element-plus";
21
- import { E as $e } from "./EChartComponentBase-BXFQtucH.js";
21
+ import { E as $e } from "./EChartComponentBase-skupRYzl.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";
@@ -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-_HLheGV-.cjs");require("element-plus");const ue=require("./EChartComponentBase-D4DSf0jl.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-DoEyCVDU.cjs");require("element-plus");const ue=require("./EChartComponentBase-8GSbyY5P.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 +1 @@
1
- "use strict";var ct=Object.defineProperty,ut=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var K=(g,r,f)=>r in g?ct(g,r,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[r]=f,V=(g,r)=>{for(var f in r||(r={}))mt.call(r,f)&&K(g,f,r[f]);if(J)for(var f of J(r))pt.call(r,f)&&K(g,f,r[f]);return g},I=(g,r)=>ut(g,dt(r));var Q=(g,r,f)=>new Promise((F,M)=>{var k=O=>{try{w(f.next(O))}catch(R){M(R)}},j=O=>{try{w(f.throw(O))}catch(R){M(R)}},w=O=>O.done?F(O.value):Promise.resolve(O.value).then(k,j);w((f=f.apply(g,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const o=require("vue"),ft=require("@element-plus/icons-vue"),E=require("./index-_HLheGV-.cjs");require("element-plus");const ht=require("./EChartComponentBase-D4DSf0jl.cjs"),gt=require("./titleStyle-NSnz6cUg.cjs"),vt=require("./history-RyapjVQj.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),yt=require("./install-LtoYukZU.cjs"),B=require("./installCanvasRenderer-CyhM1Qpl.cjs"),St=require("./install-C8buXQPI.cjs"),bt=require("./install-CIT6k8Ga.cjs"),Ct={class:"mix-body"},Dt={class:"toolbar"},Ot=["id"],Tt={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部温度场",NAME_EN:"DeepTemperatureField",ORDER:16,PLATFORM:["pc","screen"]},xt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:30,left:50,right:60,visualMin:{value:0,type:"number",label:"温度最小值"},visualMax:{value:40,type:"number",label:"温度最大值"},points:{value:200,type:"number",label:"历史数据条数"},showDebugClear:{value:!1,type:"switch",label:"显示清空过滤按钮"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},tt=[{name:"温度场",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"温度场",fv:"temp_140",depth:-140,color:"#5470c6",object_id:""}],Nt=["name","fv","depth","color","object_id"],kt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],wt={useAlias:!1,multiObject:!0,source:"mosaic"},At={DEFAULT:Tt,OPTIONS:xt,DATA:tt,PARAMS:Nt,SOURCE:kt,COMMON:wt},_t=o.defineComponent(I(V({},At),{__name:"deepTemperatureField",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(g){B.use([St.install,B.install,bt.install,B.install$1,yt.install]);const r=g,f=E.useLinkStore(),F=new vt.default,M=o.ref(!1),k=o.ref("");o.ref([]);const j=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),i=typeof e=="number"||/^\d+$/.test(t)?new Date(Number(e)):new Date(t);if(Number.isNaN(i.getTime()))return t;const a=i.getFullYear(),s=String(i.getMonth()+1).padStart(2,"0"),c=String(i.getDate()).padStart(2,"0"),d=String(i.getHours()).padStart(2,"0"),h=String(i.getMinutes()).padStart(2,"0"),u=String(i.getSeconds()).padStart(2,"0");return`${a}-${s}-${c} ${d}:${h}:${u}`},w=e=>{if(e==null)return null;const t=String(e);return/^\d+$/.test(t)?E.dayjs(Number(t)):E.dayjs(e)},O=(e,t)=>{const n=e?w(e):null,i=t?w(t):null,a=!!(e&&String(e).includes(" ")),s=!!(t&&String(t).includes(" "));return{start:n?a?n:n.startOf("day"):null,end:i?s?i:i.endOf("day"):null}};class R extends ht.EChartComponentBase{extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",30),left:this.getOptionValue("left",50),right:this.getOptionValue("right",60),visualMin:this.getOptionValue("visualMin",0),visualMax:this.getOptionValue("visualMax",40),showDebugClear:this.getOptionValue("showDebugClear",!1),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=tt),o.nextTick(()=>this.initChart())}setHistoryData(t){W(t)}setSocketData(t){t&&W(t)}onLinkEvent(t){P(t)}getChartOption(){var i,a,s,c,d,h,u,S;const t=Number((c=(s=(a=(i=r.conf)==null?void 0:i.options)==null?void 0:a.visualMin)==null?void 0:s.value)!=null?c:this.Style.value.visualMin),n=Number((S=(u=(h=(d=r.conf)==null?void 0:d.options)==null?void 0:h.visualMax)==null?void 0:u.value)!=null?S:this.Style.value.visualMax);return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},tooltip:{position:"top",formatter:m=>{var y,x,b;const l=q.value[(y=m.value)==null?void 0:y[0]]||"-",p=z.value[(x=m.value)==null?void 0:x[1]]||"-",v=(b=m.value)==null?void 0:b[2];return`时间: ${l}<br/>深度: ${p}m<br/>温度: ${v}℃`}},xAxis:{type:"category",data:q.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,rotate:45,formatter:m=>{if(/^\d+$/.test(m)){const l=new Date(Number(m)),p=String(l.getMonth()+1).padStart(2,"0"),v=String(l.getDate()).padStart(2,"0"),y=String(l.getHours()).padStart(2,"0"),x=String(l.getMinutes()).padStart(2,"0");return`${p}-${v} ${y}:${x}`}if(m&&m.includes(" ")){const[l,p]=m.split(" "),v=l.split("-");if(v.length===3){const[y,x,b]=v,[H,D]=p.split(":");return`${x}-${b} ${H}:${D}`}}return m}}},yAxis:{type:"category",data:z.value.map(m=>String(m)),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},visualMap:{min:Number.isFinite(t)?t:0,max:Number.isFinite(n)?n:40,calculable:!0,orient:"vertical",right:8,top:"middle"},series:[{name:"温度场",type:"heatmap",data:it.value,label:{show:!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.4)"}}}]}}}const T=new R(r,"deepTemperatureField"),et=T.getEchartId();T.setupLifecycle();const L=T.getStyle(),nt=o.computed(()=>gt.generateTitleStyle(r.conf.options)),C=o.ref([]),A=o.ref([]),q=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(String(t.t))),Array.from(e).sort()}),z=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(Number(t.depth))),Array.from(e).sort((t,n)=>t-n)}),it=o.computed(()=>{const e=new Map,t=new Map;return q.value.forEach((n,i)=>e.set(n,i)),z.value.forEach((n,i)=>t.set(n,i)),C.value.map(n=>{const i=e.get(String(n.t)),a=t.get(Number(n.depth)),s=Number(n.temp);return i===void 0||a===void 0||!Number.isFinite(s)?null:[i,a,s]}).filter(Boolean)}),N=()=>{o.nextTick(()=>{const e=T.getChartInstance();e&&e.setOption(T.getChartOption(),!0)})},st=()=>{const e=T.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`temperature-field-${Date.now()}.png`,n.click()},ot=()=>{$.value=null,_(),N()},U=()=>{var i,a,s;const e=((i=r.conf)==null?void 0:i.options)||{},t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||L.value.linkChannel||"deepDisplacement",n=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return t==="custom"&&n?n:t},P=e=>{var h,u,S,m;if(r.mode==="edit"||!e||!e.payload)return;const t=U();if((h=e.topic)!=null&&h.channel&&t&&e.topic.channel!==t||!f.shouldHandle(e,"deepTemperatureField"))return;const n=e.payload,i=r.conf,a=(i==null?void 0:i.data)||[],s=(i==null?void 0:i.common)||{};if(n.type==="filter"){const l=(u=n.filter)!=null?u:n;console.log("[deepTemperatureField] 收到筛选配置:",l);const p=String((l==null?void 0:l.objectId)||(l==null?void 0:l.object_id)||"").trim();p&&p!==k.value&&(k.value=p,A.value=[],C.value=[],Y()),rt(l);return}if(a.length>0&&!(s!=null&&s.multiObject)){const l=E.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((S=a[0])==null?void 0:S.object_id),p=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(l&&p&&String(l)!==String(p))return}const c=j((n==null?void 0:n.time)||(n==null?void 0:n.datetime)||((m=e.topic)==null?void 0:m.time)||Date.now()),d=[];a.forEach(l=>{const p=l.fv,v=Number(l.depth),y=Number(n==null?void 0:n[p]);Number.isFinite(v)&&Number.isFinite(y)&&d.push({t:c,depth:v,temp:y})}),d.length&&(A.value=[...A.value,...d],_(),N())},$=o.ref(null),at=o.computed(()=>{var i,a;const e=(a=(i=r.conf)==null?void 0:i.common)==null?void 0:a.historyTimeRange;if(!e)return null;const t=e.startDate||e.start_time||"",n=e.endDate||e.end_time||"";return!t&&!n?null:{startDate:t,endDate:n}}),rt=e=>{var c;if(!e){$.value=null,_(),N();return}console.log("[deepTemperatureField] 收到配置数据类型:",typeof e,e);const t=Array.isArray(e)?null:e||null;if(t){const d=t.timeRange||t.dateRange,h=t.timeList||t.selectedTimes,u={};d&&(u.startDate=d.startDate||d.start||d[0],u.endDate=d.endDate||d.end||d[1]),Array.isArray(h)&&h.length>0&&(u.timeList=h),$.value=u,_(),N();return}const n=Array.isArray(e)?e:[];if(n.length===0){console.warn("[deepTemperatureField] 配置为空或格式错误");return}const i=n.find(d=>d.type==="timeRange"),a=n.find(d=>d.type==="timeList"),s={};i&&(s.startDate=i.startDate,s.endDate=i.endDate),a&&((c=a.selectedTimes)==null?void 0:c.length)>0&&(s.timeList=a.selectedTimes),$.value=s,_(),N()},_=()=>{const e=A.value,t=$.value,n=at.value;if(t!=null&&t.timeList&&t.timeList.length>0){const i=new Set(t.timeList);C.value=e.filter(a=>{const s=String(a.t).split(" ")[0];return i.has(s)||i.has(String(a.t))});return}if(t!=null&&t.startDate||t!=null&&t.endDate){const{start:i,end:a}=O(t.startDate,t.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}if(n!=null&&n.startDate||n!=null&&n.endDate){const{start:i,end:a}=O(n.startDate,n.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}C.value=e},W=e=>{var d,h,u,S;const t=r.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},a=(i==null?void 0:i.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=E.formatStatisticsResult(s,n));const c=[];if((d=s==null?void 0:s.history)!=null&&d.length)s.history.forEach((m,l)=>{const p=n==null?void 0:n[l];if(!p)return;const v=p.fv,y=Number(p.depth);if(!Number.isFinite(y)||!v)return;(Array.isArray(m)?m:[m]).forEach((b,H)=>{const D=(b==null?void 0:b[0])||b||{},lt=(D==null?void 0:D.time)||(D==null?void 0:D.datetime)||H,G=Number(D==null?void 0:D[v]);Number.isFinite(G)&&c.push({t:String(lt),depth:y,temp:G})})}),A.value=c;else{const m=i!=null&&i.multiObject?"":E.getObjectId(i,i==null?void 0:i.useAlias,r.uid),l=m&&((u=(h=s==null?void 0:s[m])==null?void 0:h[a])==null?void 0:u.data)||((S=s==null?void 0:s[a])==null?void 0:S.data)||(s==null?void 0:s.data)||s,p=(l==null?void 0:l.time)||(l==null?void 0:l.datetime)||Date.now();n.forEach(v=>{const y=v.fv,x=Number(v.depth),b=Number(l==null?void 0:l[y]);Number.isFinite(x)&&Number.isFinite(b)&&c.push({t:String(p),depth:x,temp:b})}),c.length&&(A.value=[...A.value,...c])}c.length&&(_(),N())};o.watch(()=>f.channels[U()],e=>{e&&P(e)},{deep:!0}),o.watchEffect(()=>{r.conf.socketData&&T.setSocketData(r.conf.socketData)}),o.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{T.getStyle().value=T.extractStyles(),N()},{deep:!0}),o.watch(()=>{var e,t;return(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.historyTimeRange},()=>{_(),N()},{deep:!0});const Y=()=>Q(null,null,function*(){var e,t,n,i,a;try{const s=r.conf||{},c=V({},s.common||{}),d=Array.isArray(s.data)?s.data.map(S=>V({},S)):[];k.value&&(c.multiObject=!1,c.useAlias=!1,c.object_id=k.value,d.forEach(S=>{S.object_id=k.value}));const h=I(V({},r),{conf:I(V({},s),{common:c,data:d})});console.info("[deepTemperatureField] 开始拉取历史数据",{uid:r.uid,source:(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.source,historyTimeRange:(i=(n=r.conf)==null?void 0:n.common)==null?void 0:i.historyTimeRange,linkedObjectId:k.value||""});const u=yield F.getHistoryData(h,"deepTemperatureField");M.value=!0,console.info("[deepTemperatureField] 历史数据返回",{hasResult:!!u,historyLen:Array.isArray(u==null?void 0:u.history)?u.history.length:0,firstHistoryRows:Array.isArray((a=u==null?void 0:u.history)==null?void 0:a[0])?u.history[0].length:0}),u&&T.setHistoryData(u)}catch(s){M.value=!0,console.warn("[deepTemperatureField] 拉取历史数据失败:",s)}});return o.onMounted(()=>{if(r.mode==="edit"&&!C.value.length){const e=["2026-03-10 00:44:43","2026-03-10 02:44:40","2026-03-10 04:44:40","2026-03-10 06:44:40","2026-03-10 08:44:40","2026-03-10 09:44:44"],t=[-122,-124,-126,-128,-130,-132,-134,-136,-138,-140,-142,-144,-146,-148,-150,-152];e.forEach(n=>{t.forEach(i=>{const a=Number((5+Math.abs(i)*.05+Math.random()*2).toFixed(2));C.value.push({t:n,depth:i,temp:a})})}),A.value=[...C.value]}Y(),N()}),(e,t)=>{const n=X.ElIcon,i=X.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(L).bgColor,borderRadius:`${o.unref(L).radiusSize}px`})},[o.unref(L).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(nt.value)},o.toDisplayString(g.conf.caption||g.conf.name),5)),o.createElementVNode("div",Ct,[o.createElementVNode("div",Dt,[o.createVNode(i,{size:"small",class:"export-btn",onClick:st},{default:o.withCtx(()=>[o.createVNode(n,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ft.Download))]),_:1}),t[0]||(t[0]=o.createTextVNode(" 导出图 ",-1))]),_:1}),o.unref(L).showDebugClear?(o.openBlock(),o.createBlock(i,{key:0,size:"small",class:"clear-btn",onClick:ot},{default:o.withCtx(()=>[...t[1]||(t[1]=[o.createTextVNode(" 清空过滤 ",-1)])]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:"echart-container",id:o.unref(et)},null,8,Ot)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Et=E._export_sfc(_t,[["__scopeId","data-v-4412d160"]]);exports.default=Et;
1
+ "use strict";var ct=Object.defineProperty,ut=Object.defineProperties;var dt=Object.getOwnPropertyDescriptors;var J=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var K=(g,r,f)=>r in g?ct(g,r,{enumerable:!0,configurable:!0,writable:!0,value:f}):g[r]=f,V=(g,r)=>{for(var f in r||(r={}))mt.call(r,f)&&K(g,f,r[f]);if(J)for(var f of J(r))pt.call(r,f)&&K(g,f,r[f]);return g},I=(g,r)=>ut(g,dt(r));var Q=(g,r,f)=>new Promise((F,M)=>{var k=O=>{try{w(f.next(O))}catch(R){M(R)}},j=O=>{try{w(f.throw(O))}catch(R){M(R)}},w=O=>O.done?F(O.value):Promise.resolve(O.value).then(k,j);w((f=f.apply(g,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/icon/style/css");const o=require("vue"),ft=require("@element-plus/icons-vue"),E=require("./index-DoEyCVDU.cjs");require("element-plus");const ht=require("./EChartComponentBase-8GSbyY5P.cjs"),gt=require("./titleStyle-NSnz6cUg.cjs"),vt=require("./history-Dm7563t_.cjs"),Z=require("./ele-lin-icon-Dke_1AmT.cjs"),yt=require("./install-LtoYukZU.cjs"),B=require("./installCanvasRenderer-CyhM1Qpl.cjs"),St=require("./install-C8buXQPI.cjs"),bt=require("./install-CIT6k8Ga.cjs"),Ct={class:"mix-body"},Dt={class:"toolbar"},Ot=["id"],Tt={DEFAULT_ICON:Z.DEFAULT_ICON,ACTIVE_ICON:Z.ACTIVE_ICON,NAME_CN:"深部温度场",NAME_EN:"DeepTemperatureField",ORDER:16,PLATFORM:["pc","screen"]},xt={titleColor:"#111",textColor:"#111",bgColor:"#fff",radiusSize:8,textSize:12,isHideTitle:!1,top:40,bottom:30,left:50,right:60,visualMin:{value:0,type:"number",label:"温度最小值"},visualMax:{value:40,type:"number",label:"温度最大值"},points:{value:200,type:"number",label:"历史数据条数"},showDebugClear:{value:!1,type:"switch",label:"显示清空过滤按钮"},linkChannel:{value:"deepDisplacement",type:"select",label:"component.linkChannel",options:[{label:"component.linkChannelOptions.deepDisplacement",value:"deepDisplacement"},{label:"component.linkChannelOptions.gnss",value:"gnss"},{label:"component.linkChannelOptions.slope",value:"slope"},{label:"component.linkChannelOptions.device",value:"device"},{label:"component.linkChannelOptions.alarm",value:"alarm"},{label:"component.linkChannelOptions.custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},tt=[{name:"温度场",fv:"temp_130",depth:-130,color:"#5470c6",object_id:""},{name:"温度场",fv:"temp_140",depth:-140,color:"#5470c6",object_id:""}],Nt=["name","fv","depth","color","object_id"],kt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],wt={useAlias:!1,multiObject:!0,source:"mosaic"},At={DEFAULT:Tt,OPTIONS:xt,DATA:tt,PARAMS:Nt,SOURCE:kt,COMMON:wt},_t=o.defineComponent(I(V({},At),{__name:"deepTemperatureField",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(g){B.use([St.install,B.install,bt.install,B.install$1,yt.install]);const r=g,f=E.useLinkStore(),F=new vt.default,M=o.ref(!1),k=o.ref("");o.ref([]);const j=e=>{if(e==null)return"";const t=typeof e=="string"?e:String(e),i=typeof e=="number"||/^\d+$/.test(t)?new Date(Number(e)):new Date(t);if(Number.isNaN(i.getTime()))return t;const a=i.getFullYear(),s=String(i.getMonth()+1).padStart(2,"0"),c=String(i.getDate()).padStart(2,"0"),d=String(i.getHours()).padStart(2,"0"),h=String(i.getMinutes()).padStart(2,"0"),u=String(i.getSeconds()).padStart(2,"0");return`${a}-${s}-${c} ${d}:${h}:${u}`},w=e=>{if(e==null)return null;const t=String(e);return/^\d+$/.test(t)?E.dayjs(Number(t)):E.dayjs(e)},O=(e,t)=>{const n=e?w(e):null,i=t?w(t):null,a=!!(e&&String(e).includes(" ")),s=!!(t&&String(t).includes(" "));return{start:n?a?n:n.startOf("day"):null,end:i?s?i:i.endOf("day"):null}};class R extends ht.EChartComponentBase{extractStyles(){const t=this.getOptionValue("linkChannel","deepDisplacement"),n=this.getOptionValue("customChannel",""),i=t==="custom"&&n?n:t;return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),top:this.getOptionValue("top",40),bottom:this.getOptionValue("bottom",30),left:this.getOptionValue("left",50),right:this.getOptionValue("right",60),visualMin:this.getOptionValue("visualMin",0),visualMax:this.getOptionValue("visualMax",40),showDebugClear:this.getOptionValue("showDebugClear",!1),linkChannel:i}}init(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=tt),o.nextTick(()=>this.initChart())}setHistoryData(t){W(t)}setSocketData(t){t&&W(t)}onLinkEvent(t){P(t)}getChartOption(){var i,a,s,c,d,h,u,S;const t=Number((c=(s=(a=(i=r.conf)==null?void 0:i.options)==null?void 0:a.visualMin)==null?void 0:s.value)!=null?c:this.Style.value.visualMin),n=Number((S=(u=(h=(d=r.conf)==null?void 0:d.options)==null?void 0:h.visualMax)==null?void 0:u.value)!=null?S:this.Style.value.visualMax);return{grid:{top:this.Style.value.top,bottom:this.Style.value.bottom,left:this.Style.value.left,right:this.Style.value.right,containLabel:!0},tooltip:{position:"top",formatter:m=>{var y,x,b;const l=q.value[(y=m.value)==null?void 0:y[0]]||"-",p=z.value[(x=m.value)==null?void 0:x[1]]||"-",v=(b=m.value)==null?void 0:b[2];return`时间: ${l}<br/>深度: ${p}m<br/>温度: ${v}℃`}},xAxis:{type:"category",data:q.value,axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize,rotate:45,formatter:m=>{if(/^\d+$/.test(m)){const l=new Date(Number(m)),p=String(l.getMonth()+1).padStart(2,"0"),v=String(l.getDate()).padStart(2,"0"),y=String(l.getHours()).padStart(2,"0"),x=String(l.getMinutes()).padStart(2,"0");return`${p}-${v} ${y}:${x}`}if(m&&m.includes(" ")){const[l,p]=m.split(" "),v=l.split("-");if(v.length===3){const[y,x,b]=v,[H,D]=p.split(":");return`${x}-${b} ${H}:${D}`}}return m}}},yAxis:{type:"category",data:z.value.map(m=>String(m)),axisLabel:{color:this.Style.value.textColor,fontSize:this.Style.value.textSize}},visualMap:{min:Number.isFinite(t)?t:0,max:Number.isFinite(n)?n:40,calculable:!0,orient:"vertical",right:8,top:"middle"},series:[{name:"温度场",type:"heatmap",data:it.value,label:{show:!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.4)"}}}]}}}const T=new R(r,"deepTemperatureField"),et=T.getEchartId();T.setupLifecycle();const L=T.getStyle(),nt=o.computed(()=>gt.generateTitleStyle(r.conf.options)),C=o.ref([]),A=o.ref([]),q=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(String(t.t))),Array.from(e).sort()}),z=o.computed(()=>{const e=new Set;return C.value.forEach(t=>e.add(Number(t.depth))),Array.from(e).sort((t,n)=>t-n)}),it=o.computed(()=>{const e=new Map,t=new Map;return q.value.forEach((n,i)=>e.set(n,i)),z.value.forEach((n,i)=>t.set(n,i)),C.value.map(n=>{const i=e.get(String(n.t)),a=t.get(Number(n.depth)),s=Number(n.temp);return i===void 0||a===void 0||!Number.isFinite(s)?null:[i,a,s]}).filter(Boolean)}),N=()=>{o.nextTick(()=>{const e=T.getChartInstance();e&&e.setOption(T.getChartOption(),!0)})},st=()=>{const e=T.getChartInstance();if(!e)return;const t=e.getDataURL({type:"png",pixelRatio:2,backgroundColor:"#fff"}),n=document.createElement("a");n.href=t,n.download=`temperature-field-${Date.now()}.png`,n.click()},ot=()=>{$.value=null,_(),N()},U=()=>{var i,a,s;const e=((i=r.conf)==null?void 0:i.options)||{},t=((a=e==null?void 0:e.linkChannel)==null?void 0:a.value)||L.value.linkChannel||"deepDisplacement",n=((s=e==null?void 0:e.customChannel)==null?void 0:s.value)||"";return t==="custom"&&n?n:t},P=e=>{var h,u,S,m;if(r.mode==="edit"||!e||!e.payload)return;const t=U();if((h=e.topic)!=null&&h.channel&&t&&e.topic.channel!==t||!f.shouldHandle(e,"deepTemperatureField"))return;const n=e.payload,i=r.conf,a=(i==null?void 0:i.data)||[],s=(i==null?void 0:i.common)||{};if(n.type==="filter"){const l=(u=n.filter)!=null?u:n;console.log("[deepTemperatureField] 收到筛选配置:",l);const p=String((l==null?void 0:l.objectId)||(l==null?void 0:l.object_id)||"").trim();p&&p!==k.value&&(k.value=p,A.value=[],C.value=[],Y()),rt(l);return}if(a.length>0&&!(s!=null&&s.multiObject)){const l=E.getObjectId(s,s==null?void 0:s.useAlias,r.uid)||((S=a[0])==null?void 0:S.object_id),p=(n==null?void 0:n.objectId)||(n==null?void 0:n.object_id);if(l&&p&&String(l)!==String(p))return}const c=j((n==null?void 0:n.time)||(n==null?void 0:n.datetime)||((m=e.topic)==null?void 0:m.time)||Date.now()),d=[];a.forEach(l=>{const p=l.fv,v=Number(l.depth),y=Number(n==null?void 0:n[p]);Number.isFinite(v)&&Number.isFinite(y)&&d.push({t:c,depth:v,temp:y})}),d.length&&(A.value=[...A.value,...d],_(),N())},$=o.ref(null),at=o.computed(()=>{var i,a;const e=(a=(i=r.conf)==null?void 0:i.common)==null?void 0:a.historyTimeRange;if(!e)return null;const t=e.startDate||e.start_time||"",n=e.endDate||e.end_time||"";return!t&&!n?null:{startDate:t,endDate:n}}),rt=e=>{var c;if(!e){$.value=null,_(),N();return}console.log("[deepTemperatureField] 收到配置数据类型:",typeof e,e);const t=Array.isArray(e)?null:e||null;if(t){const d=t.timeRange||t.dateRange,h=t.timeList||t.selectedTimes,u={};d&&(u.startDate=d.startDate||d.start||d[0],u.endDate=d.endDate||d.end||d[1]),Array.isArray(h)&&h.length>0&&(u.timeList=h),$.value=u,_(),N();return}const n=Array.isArray(e)?e:[];if(n.length===0){console.warn("[deepTemperatureField] 配置为空或格式错误");return}const i=n.find(d=>d.type==="timeRange"),a=n.find(d=>d.type==="timeList"),s={};i&&(s.startDate=i.startDate,s.endDate=i.endDate),a&&((c=a.selectedTimes)==null?void 0:c.length)>0&&(s.timeList=a.selectedTimes),$.value=s,_(),N()},_=()=>{const e=A.value,t=$.value,n=at.value;if(t!=null&&t.timeList&&t.timeList.length>0){const i=new Set(t.timeList);C.value=e.filter(a=>{const s=String(a.t).split(" ")[0];return i.has(s)||i.has(String(a.t))});return}if(t!=null&&t.startDate||t!=null&&t.endDate){const{start:i,end:a}=O(t.startDate,t.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}if(n!=null&&n.startDate||n!=null&&n.endDate){const{start:i,end:a}=O(n.startDate,n.endDate);C.value=e.filter(s=>{const c=w(s.t);return!(!c||!c.isValid()||i&&c.isBefore(i)||a&&c.isAfter(a))});return}C.value=e},W=e=>{var d,h,u,S;const t=r.conf,n=(t==null?void 0:t.data)||[],i=(t==null?void 0:t.common)||{},a=(i==null?void 0:i.source)||"mosaic";let s=e;["statistics","calculate"].includes(a)&&(s=E.formatStatisticsResult(s,n));const c=[];if((d=s==null?void 0:s.history)!=null&&d.length)s.history.forEach((m,l)=>{const p=n==null?void 0:n[l];if(!p)return;const v=p.fv,y=Number(p.depth);if(!Number.isFinite(y)||!v)return;(Array.isArray(m)?m:[m]).forEach((b,H)=>{const D=(b==null?void 0:b[0])||b||{},lt=(D==null?void 0:D.time)||(D==null?void 0:D.datetime)||H,G=Number(D==null?void 0:D[v]);Number.isFinite(G)&&c.push({t:String(lt),depth:y,temp:G})})}),A.value=c;else{const m=i!=null&&i.multiObject?"":E.getObjectId(i,i==null?void 0:i.useAlias,r.uid),l=m&&((u=(h=s==null?void 0:s[m])==null?void 0:h[a])==null?void 0:u.data)||((S=s==null?void 0:s[a])==null?void 0:S.data)||(s==null?void 0:s.data)||s,p=(l==null?void 0:l.time)||(l==null?void 0:l.datetime)||Date.now();n.forEach(v=>{const y=v.fv,x=Number(v.depth),b=Number(l==null?void 0:l[y]);Number.isFinite(x)&&Number.isFinite(b)&&c.push({t:String(p),depth:x,temp:b})}),c.length&&(A.value=[...A.value,...c])}c.length&&(_(),N())};o.watch(()=>f.channels[U()],e=>{e&&P(e)},{deep:!0}),o.watchEffect(()=>{r.conf.socketData&&T.setSocketData(r.conf.socketData)}),o.watch(()=>{var e;return(e=r.conf)==null?void 0:e.options},()=>{T.getStyle().value=T.extractStyles(),N()},{deep:!0}),o.watch(()=>{var e,t;return(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.historyTimeRange},()=>{_(),N()},{deep:!0});const Y=()=>Q(null,null,function*(){var e,t,n,i,a;try{const s=r.conf||{},c=V({},s.common||{}),d=Array.isArray(s.data)?s.data.map(S=>V({},S)):[];k.value&&(c.multiObject=!1,c.useAlias=!1,c.object_id=k.value,d.forEach(S=>{S.object_id=k.value}));const h=I(V({},r),{conf:I(V({},s),{common:c,data:d})});console.info("[deepTemperatureField] 开始拉取历史数据",{uid:r.uid,source:(t=(e=r.conf)==null?void 0:e.common)==null?void 0:t.source,historyTimeRange:(i=(n=r.conf)==null?void 0:n.common)==null?void 0:i.historyTimeRange,linkedObjectId:k.value||""});const u=yield F.getHistoryData(h,"deepTemperatureField");M.value=!0,console.info("[deepTemperatureField] 历史数据返回",{hasResult:!!u,historyLen:Array.isArray(u==null?void 0:u.history)?u.history.length:0,firstHistoryRows:Array.isArray((a=u==null?void 0:u.history)==null?void 0:a[0])?u.history[0].length:0}),u&&T.setHistoryData(u)}catch(s){M.value=!0,console.warn("[deepTemperatureField] 拉取历史数据失败:",s)}});return o.onMounted(()=>{if(r.mode==="edit"&&!C.value.length){const e=["2026-03-10 00:44:43","2026-03-10 02:44:40","2026-03-10 04:44:40","2026-03-10 06:44:40","2026-03-10 08:44:40","2026-03-10 09:44:44"],t=[-122,-124,-126,-128,-130,-132,-134,-136,-138,-140,-142,-144,-146,-148,-150,-152];e.forEach(n=>{t.forEach(i=>{const a=Number((5+Math.abs(i)*.05+Math.random()*2).toFixed(2));C.value.push({t:n,depth:i,temp:a})})}),A.value=[...C.value]}Y(),N()}),(e,t)=>{const n=X.ElIcon,i=X.ElButton;return o.openBlock(),o.createElementBlock("div",{class:"mix-component",style:o.normalizeStyle({background:o.unref(L).bgColor,borderRadius:`${o.unref(L).radiusSize}px`})},[o.unref(L).isHideTitle?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"mix-title",style:o.normalizeStyle(nt.value)},o.toDisplayString(g.conf.caption||g.conf.name),5)),o.createElementVNode("div",Ct,[o.createElementVNode("div",Dt,[o.createVNode(i,{size:"small",class:"export-btn",onClick:st},{default:o.withCtx(()=>[o.createVNode(n,null,{default:o.withCtx(()=>[o.createVNode(o.unref(ft.Download))]),_:1}),t[0]||(t[0]=o.createTextVNode(" 导出图 ",-1))]),_:1}),o.unref(L).showDebugClear?(o.openBlock(),o.createBlock(i,{key:0,size:"small",class:"clear-btn",onClick:ot},{default:o.withCtx(()=>[...t[1]||(t[1]=[o.createTextVNode(" 清空过滤 ",-1)])]),_:1})):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:"echart-container",id:o.unref(et)},null,8,Ot)]),o.renderSlot(e.$slots,"default",{},void 0,!0)],4)}}})),Et=E._export_sfc(_t,[["__scopeId","data-v-4412d160"]]);exports.default=Et;
@@ -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 Z, withCtx as q, 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 { o as Rt, Z as lt, R as Vt, d as ct, _ as $t } from "./index-CBUg675g.js";
35
+ import { o as Rt, Z as lt, R as Vt, d as ct, _ as $t } from "./index-CPTJIw32.js";
36
36
  import "element-plus";
37
- import { E as Lt } from "./EChartComponentBase-BXFQtucH.js";
37
+ import { E as Lt } from "./EChartComponentBase-skupRYzl.js";
38
38
  import { g as Ft } from "./titleStyle-BT5GlpAb.js";
39
- import It from "./history-AbuttL7F.js";
39
+ import It from "./history-CY_TCu9h.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";