costy-plus 1.0.10-0

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 (200) hide show
  1. package/README.md +1 -0
  2. package/dist/es/_virtual/_commonjsHelpers.js +4 -0
  3. package/dist/es/_virtual/vueComponentNormalizer.js +30 -0
  4. package/dist/es/_virtual/vuescroll-native.js +4 -0
  5. package/dist/es/index.d.ts +5 -0
  6. package/dist/es/index.js +26 -0
  7. package/dist/es/node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js +201 -0
  8. package/dist/es/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js +1 -0
  9. package/dist/es/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js +12 -0
  10. package/dist/es/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js +13 -0
  11. package/dist/es/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/helpers/metadata.js +10 -0
  12. package/dist/es/node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js +1188 -0
  13. package/dist/es/src/BackgroundGrid/PropsMinix.d.ts +12 -0
  14. package/dist/es/src/BackgroundGrid/PropsMinix.js +60 -0
  15. package/dist/es/src/BackgroundGrid/index.js +6 -0
  16. package/dist/es/src/BackgroundGrid/index.vue.d.ts +19 -0
  17. package/dist/es/src/BackgroundGrid/index.vue_vue_type_script_lang.js +118 -0
  18. package/dist/es/src/BackgroundGrid/index.vue_vue_type_template_lang.js +20 -0
  19. package/dist/es/src/BackgroundGrid/index2.js +24 -0
  20. package/dist/es/src/ECGWave/index.js +6 -0
  21. package/dist/es/src/ECGWave/index.vue.d.ts +15 -0
  22. package/dist/es/src/ECGWave/index.vue_vue_type_script_lang.js +90 -0
  23. package/dist/es/src/ECGWave/index.vue_vue_type_template_lang.js +118 -0
  24. package/dist/es/src/ECGWave/index2.js +24 -0
  25. package/dist/es/src/ECGWave/method.js +841 -0
  26. package/dist/es/src/ECGWave/style/index.css +46 -0
  27. package/dist/es/src/EnlargeWave/index.js +6 -0
  28. package/dist/es/src/EnlargeWave/index.vue.d.ts +10 -0
  29. package/dist/es/src/EnlargeWave/index.vue_vue_type_script_lang.js +56 -0
  30. package/dist/es/src/EnlargeWave/index.vue_vue_type_template_lang.js +178 -0
  31. package/dist/es/src/EnlargeWave/index2.js +24 -0
  32. package/dist/es/src/EnlargeWave/medthod.d.ts +185 -0
  33. package/dist/es/src/EnlargeWave/medthod.js +753 -0
  34. package/dist/es/src/EnlargeWave/style/index.css +93 -0
  35. package/dist/es/src/FCGWave/components/And2V5LeadPower.js +24 -0
  36. package/dist/es/src/FCGWave/components/And2V5LeadPower.vue_vue_type_script_lang.js +1114 -0
  37. package/dist/es/src/FCGWave/components/And2V5LeadPower.vue_vue_type_template_lang.js +31 -0
  38. package/dist/es/src/FCGWave/components/LeadPower12.js +24 -0
  39. package/dist/es/src/FCGWave/components/LeadPower12.vue_vue_type_script_lang.js +376 -0
  40. package/dist/es/src/FCGWave/components/LeadPower12.vue_vue_type_template_lang.js +31 -0
  41. package/dist/es/src/FCGWave/components/PowerHistogram.js +24 -0
  42. package/dist/es/src/FCGWave/components/PowerHistogram.vue_vue_type_script_lang.js +256 -0
  43. package/dist/es/src/FCGWave/components/PowerHistogram.vue_vue_type_template_lang.js +31 -0
  44. package/dist/es/src/FCGWave/index.js +6 -0
  45. package/dist/es/src/FCGWave/index.vue.d.ts +6 -0
  46. package/dist/es/src/FCGWave/index.vue_vue_type_script_lang.js +28 -0
  47. package/dist/es/src/FCGWave/index.vue_vue_type_template_lang.js +38 -0
  48. package/dist/es/src/FCGWave/index2.js +24 -0
  49. package/dist/es/src/FCGWave/method.d.ts +49 -0
  50. package/dist/es/src/FCGWave/method.js +94 -0
  51. package/dist/es/src/FCGWave/style/index.css +43 -0
  52. package/dist/es/src/HFECGWave/components/Detail.js +24 -0
  53. package/dist/es/src/HFECGWave/components/Detail.vue_vue_type_script_lang.js +293 -0
  54. package/dist/es/src/HFECGWave/components/Detail.vue_vue_type_template_lang.js +134 -0
  55. package/dist/es/src/HFECGWave/components/Routine.js +24 -0
  56. package/dist/es/src/HFECGWave/components/Routine.vue_vue_type_script_lang.js +302 -0
  57. package/dist/es/src/HFECGWave/components/Routine.vue_vue_type_template_lang.js +47 -0
  58. package/dist/es/src/HFECGWave/index.js +6 -0
  59. package/dist/es/src/HFECGWave/index.vue.d.ts +6 -0
  60. package/dist/es/src/HFECGWave/index.vue_vue_type_script_lang.js +26 -0
  61. package/dist/es/src/HFECGWave/index.vue_vue_type_template_lang.js +36 -0
  62. package/dist/es/src/HFECGWave/index2.js +24 -0
  63. package/dist/es/src/HFECGWave/method.js +86 -0
  64. package/dist/es/src/HFECGWave/style/index.css +58 -0
  65. package/dist/es/src/MagnifierWave/index.js +24 -0
  66. package/dist/es/src/MagnifierWave/index.vue.d.ts +11 -0
  67. package/dist/es/src/MagnifierWave/index.vue_vue_type_script_lang.js +49 -0
  68. package/dist/es/src/MagnifierWave/index.vue_vue_type_template_lang.js +34 -0
  69. package/dist/es/src/MagnifierWave/medthod.d.ts +78 -0
  70. package/dist/es/src/MagnifierWave/medthod.js +276 -0
  71. package/dist/es/src/MagnifierWave/style/index.css +22 -0
  72. package/dist/es/src/MeasuringRuler/index.js +6 -0
  73. package/dist/es/src/MeasuringRuler/index.vue.d.ts +47 -0
  74. package/dist/es/src/MeasuringRuler/index.vue_vue_type_script_lang.js +300 -0
  75. package/dist/es/src/MeasuringRuler/index.vue_vue_type_template_lang.js +17 -0
  76. package/dist/es/src/MeasuringRuler/index2.js +24 -0
  77. package/dist/es/src/MeasuringRuler/style/index.css +0 -0
  78. package/dist/es/src/ParallelRuler/index.js +6 -0
  79. package/dist/es/src/ParallelRuler/index.vue.d.ts +46 -0
  80. package/dist/es/src/ParallelRuler/index.vue_vue_type_script_lang.js +312 -0
  81. package/dist/es/src/ParallelRuler/index.vue_vue_type_template_lang.js +17 -0
  82. package/dist/es/src/ParallelRuler/index2.js +24 -0
  83. package/dist/es/src/Text/index.js +6 -0
  84. package/dist/es/src/Text/index.vue.d.ts +7 -0
  85. package/dist/es/src/Text/index.vue_vue_type_script_lang.js +26 -0
  86. package/dist/es/src/Text/index.vue_vue_type_template_lang.js +10 -0
  87. package/dist/es/src/Text/index2.js +24 -0
  88. package/dist/es/src/Text/style/index.css +6 -0
  89. package/dist/es/src/Text/style/other.css +3 -0
  90. package/dist/es/src/index.d.ts +8 -0
  91. package/dist/es/src/index.js +18 -0
  92. package/dist/es/static/images/heart.jpg +0 -0
  93. package/dist/es/static/images/heartSection.jpg +0 -0
  94. package/dist/es/typings/Common.d.ts +140 -0
  95. package/dist/es/typings/MXBackgroundGrid.d.ts +24 -0
  96. package/dist/es/typings/MXECGWaveComponents.d.ts +151 -0
  97. package/dist/es/typings/MXFCGWaveComponents.d.ts +10 -0
  98. package/dist/es/typings/MXMeasuringRuler.d.ts +14 -0
  99. package/dist/es/typings/MXParallelRuler.d.ts +14 -0
  100. package/dist/es/typings/component.d.ts +3 -0
  101. package/dist/lib/_virtual/_commonjsHelpers.js +1 -0
  102. package/dist/lib/_virtual/vueComponentNormalizer.js +1 -0
  103. package/dist/lib/_virtual/vuescroll-native.js +1 -0
  104. package/dist/lib/index.d.ts +5 -0
  105. package/dist/lib/index.js +1 -0
  106. package/dist/lib/node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js +5 -0
  107. package/dist/lib/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js +1 -0
  108. package/dist/lib/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js +1 -0
  109. package/dist/lib/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js +1 -0
  110. package/dist/lib/node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/helpers/metadata.js +1 -0
  111. package/dist/lib/node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js +4 -0
  112. package/dist/lib/src/BackgroundGrid/PropsMinix.d.ts +12 -0
  113. package/dist/lib/src/BackgroundGrid/PropsMinix.js +1 -0
  114. package/dist/lib/src/BackgroundGrid/index.js +1 -0
  115. package/dist/lib/src/BackgroundGrid/index.vue.d.ts +19 -0
  116. package/dist/lib/src/BackgroundGrid/index.vue_vue_type_script_lang.js +1 -0
  117. package/dist/lib/src/BackgroundGrid/index.vue_vue_type_template_lang.js +1 -0
  118. package/dist/lib/src/BackgroundGrid/index2.js +1 -0
  119. package/dist/lib/src/ECGWave/index.js +1 -0
  120. package/dist/lib/src/ECGWave/index.vue.d.ts +15 -0
  121. package/dist/lib/src/ECGWave/index.vue_vue_type_script_lang.js +1 -0
  122. package/dist/lib/src/ECGWave/index.vue_vue_type_template_lang.js +1 -0
  123. package/dist/lib/src/ECGWave/index2.js +1 -0
  124. package/dist/lib/src/ECGWave/method.js +1 -0
  125. package/dist/lib/src/ECGWave/style/index.css +46 -0
  126. package/dist/lib/src/EnlargeWave/index.js +1 -0
  127. package/dist/lib/src/EnlargeWave/index.vue.d.ts +10 -0
  128. package/dist/lib/src/EnlargeWave/index.vue_vue_type_script_lang.js +1 -0
  129. package/dist/lib/src/EnlargeWave/index.vue_vue_type_template_lang.js +1 -0
  130. package/dist/lib/src/EnlargeWave/index2.js +1 -0
  131. package/dist/lib/src/EnlargeWave/medthod.d.ts +185 -0
  132. package/dist/lib/src/EnlargeWave/medthod.js +1 -0
  133. package/dist/lib/src/EnlargeWave/style/index.css +93 -0
  134. package/dist/lib/src/FCGWave/components/And2V5LeadPower.js +1 -0
  135. package/dist/lib/src/FCGWave/components/And2V5LeadPower.vue_vue_type_script_lang.js +1 -0
  136. package/dist/lib/src/FCGWave/components/And2V5LeadPower.vue_vue_type_template_lang.js +1 -0
  137. package/dist/lib/src/FCGWave/components/LeadPower12.js +1 -0
  138. package/dist/lib/src/FCGWave/components/LeadPower12.vue_vue_type_script_lang.js +1 -0
  139. package/dist/lib/src/FCGWave/components/LeadPower12.vue_vue_type_template_lang.js +1 -0
  140. package/dist/lib/src/FCGWave/components/PowerHistogram.js +1 -0
  141. package/dist/lib/src/FCGWave/components/PowerHistogram.vue_vue_type_script_lang.js +3 -0
  142. package/dist/lib/src/FCGWave/components/PowerHistogram.vue_vue_type_template_lang.js +1 -0
  143. package/dist/lib/src/FCGWave/index.js +1 -0
  144. package/dist/lib/src/FCGWave/index.vue.d.ts +6 -0
  145. package/dist/lib/src/FCGWave/index.vue_vue_type_script_lang.js +1 -0
  146. package/dist/lib/src/FCGWave/index.vue_vue_type_template_lang.js +1 -0
  147. package/dist/lib/src/FCGWave/index2.js +1 -0
  148. package/dist/lib/src/FCGWave/method.d.ts +49 -0
  149. package/dist/lib/src/FCGWave/method.js +1 -0
  150. package/dist/lib/src/FCGWave/style/index.css +43 -0
  151. package/dist/lib/src/HFECGWave/components/Detail.js +1 -0
  152. package/dist/lib/src/HFECGWave/components/Detail.vue_vue_type_script_lang.js +1 -0
  153. package/dist/lib/src/HFECGWave/components/Detail.vue_vue_type_template_lang.js +1 -0
  154. package/dist/lib/src/HFECGWave/components/Routine.js +1 -0
  155. package/dist/lib/src/HFECGWave/components/Routine.vue_vue_type_script_lang.js +1 -0
  156. package/dist/lib/src/HFECGWave/components/Routine.vue_vue_type_template_lang.js +1 -0
  157. package/dist/lib/src/HFECGWave/index.js +1 -0
  158. package/dist/lib/src/HFECGWave/index.vue.d.ts +6 -0
  159. package/dist/lib/src/HFECGWave/index.vue_vue_type_script_lang.js +1 -0
  160. package/dist/lib/src/HFECGWave/index.vue_vue_type_template_lang.js +1 -0
  161. package/dist/lib/src/HFECGWave/index2.js +1 -0
  162. package/dist/lib/src/HFECGWave/method.js +1 -0
  163. package/dist/lib/src/HFECGWave/style/index.css +58 -0
  164. package/dist/lib/src/MagnifierWave/index.js +1 -0
  165. package/dist/lib/src/MagnifierWave/index.vue.d.ts +11 -0
  166. package/dist/lib/src/MagnifierWave/index.vue_vue_type_script_lang.js +1 -0
  167. package/dist/lib/src/MagnifierWave/index.vue_vue_type_template_lang.js +1 -0
  168. package/dist/lib/src/MagnifierWave/medthod.d.ts +78 -0
  169. package/dist/lib/src/MagnifierWave/medthod.js +1 -0
  170. package/dist/lib/src/MagnifierWave/style/index.css +22 -0
  171. package/dist/lib/src/MeasuringRuler/index.js +1 -0
  172. package/dist/lib/src/MeasuringRuler/index.vue.d.ts +47 -0
  173. package/dist/lib/src/MeasuringRuler/index.vue_vue_type_script_lang.js +3 -0
  174. package/dist/lib/src/MeasuringRuler/index.vue_vue_type_template_lang.js +1 -0
  175. package/dist/lib/src/MeasuringRuler/index2.js +1 -0
  176. package/dist/lib/src/MeasuringRuler/style/index.css +0 -0
  177. package/dist/lib/src/ParallelRuler/index.js +1 -0
  178. package/dist/lib/src/ParallelRuler/index.vue.d.ts +46 -0
  179. package/dist/lib/src/ParallelRuler/index.vue_vue_type_script_lang.js +1 -0
  180. package/dist/lib/src/ParallelRuler/index.vue_vue_type_template_lang.js +1 -0
  181. package/dist/lib/src/ParallelRuler/index2.js +1 -0
  182. package/dist/lib/src/Text/index.js +1 -0
  183. package/dist/lib/src/Text/index.vue.d.ts +7 -0
  184. package/dist/lib/src/Text/index.vue_vue_type_script_lang.js +1 -0
  185. package/dist/lib/src/Text/index.vue_vue_type_template_lang.js +1 -0
  186. package/dist/lib/src/Text/index2.js +1 -0
  187. package/dist/lib/src/Text/style/index.css +6 -0
  188. package/dist/lib/src/Text/style/other.css +3 -0
  189. package/dist/lib/src/index.d.ts +8 -0
  190. package/dist/lib/src/index.js +1 -0
  191. package/dist/lib/static/images/heart.jpg +0 -0
  192. package/dist/lib/static/images/heartSection.jpg +0 -0
  193. package/dist/lib/typings/Common.d.ts +140 -0
  194. package/dist/lib/typings/MXBackgroundGrid.d.ts +24 -0
  195. package/dist/lib/typings/MXECGWaveComponents.d.ts +151 -0
  196. package/dist/lib/typings/MXFCGWaveComponents.d.ts +10 -0
  197. package/dist/lib/typings/MXMeasuringRuler.d.ts +14 -0
  198. package/dist/lib/typings/MXParallelRuler.d.ts +14 -0
  199. package/dist/lib/typings/component.d.ts +3 -0
  200. package/package.json +27 -0
@@ -0,0 +1,753 @@
1
+ var T = Object.defineProperty, b = Object.defineProperties;
2
+ var Q = Object.getOwnPropertyDescriptors;
3
+ var M = Object.getOwnPropertySymbols;
4
+ var W = Object.prototype.hasOwnProperty, G = Object.prototype.propertyIsEnumerable;
5
+ var D = (e, t, a) => t in e ? T(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, c = (e, t) => {
6
+ for (var a in t || (t = {}))
7
+ W.call(t, a) && D(e, a, t[a]);
8
+ if (M)
9
+ for (var a of M(t))
10
+ G.call(t, a) && D(e, a, t[a]);
11
+ return e;
12
+ }, m = (e, t) => b(e, Q(t));
13
+ import K from "vue";
14
+ import N from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
15
+ import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Emit.js";
16
+ import { Prop as h } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js";
17
+ import { Watch as w } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Watch.js";
18
+ import { AnalysisMode as F, AnalyseParameterTable as O, LeadNameTexts as S, getLeadpoint as X, getActualY as z, calcDistance as H, calcPRInterval as j, calcPD as E, calcQRSD as k, calcQTAndQTCAndQTD as _, caclTD as q, calcTA as $, toFixedFun as y, calcPstate as Y, calcPA as J, calcQRS as U, calcSTJA as Z, clacST as ee, calcIaddIIaddIII as te, calcRv5 as ae, calcSv1 as se, calcPelectricAxis as ie, calcQRSelectricAxis as ne, calcTelectricAxis as re, calcMs as le, getStepForSpeed as he } from "@costy-plus/utils";
19
+ import { util as R, Polyline as P, Text as x, Group as B, Line as oe, Circle as de } from "zrender";
20
+ var ue = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, r = (e, t, a, s) => {
21
+ for (var i = s > 1 ? void 0 : s ? ce(t, a) : t, l = e.length - 1, o; l >= 0; l--)
22
+ (o = e[l]) && (i = (s ? o(t, a, i) : o(i)) || i);
23
+ return s && i && ue(t, a, i), i;
24
+ };
25
+ let n = class extends K {
26
+ constructor() {
27
+ super(...arguments), this.AnalysisMode = F, this.AnalyseParameterTable = O, this.sceneIns = Object.freeze(null), this.AssistCtx = Object.freeze(null), this.leadNameIns = Object.freeze(null), this.sensAndSpeedIns = Object.freeze(null), this.waveFromIns = Object.freeze(null), this.waveFromGroup = Object.freeze(null), this.measureGroup = Object.freeze(null), this.leadHeadIns = Object.freeze(null), this.M1 = Object.freeze(null), this.M2 = Object.freeze(null), this.P1 = Object.freeze(null), this.P2 = Object.freeze(null), this.R1 = Object.freeze(null), this.R2 = Object.freeze(null), this.T1 = Object.freeze(null), this.T2 = Object.freeze(null), this.bottomSafeAreaH = Object.freeze(63), this.drawWaveFromX = Object.freeze(0), this.dbClickTime = Object.freeze(0), this.startPos = Object.freeze(0), this.currentGainIdx = Object.freeze(0), this.currentSpeedIdx = Object.freeze(0), this.currentLeadAnalyseValueIdx = Object.freeze(0), this.longdata = Object.freeze(void 0), this.modifyAnalysed = Object.freeze(null), this.measureLineMoveInfo = Object.freeze({
28
+ x: 0,
29
+ findIdx: 0,
30
+ name: "",
31
+ offLeftX: 0
32
+ }), this.measureLineList = Object.freeze([]), this.waveFromLenPX = Object.freeze(0), this.leadNames = [], this.leadNameActive = {
33
+ name: "",
34
+ val: -2
35
+ }, this.isSyncAnalyseValue = !1, this.currentSens = 0, this.currentSpeedValue = 0, this.currentStep = 0, this.currentLeadAnalyseValue = null, this.complexAnalysisvalue = Object.freeze(null), this.enlargeAnalysisData = null, this.difference = {
36
+ timeDifference: 0,
37
+ amplitudeDifference: ""
38
+ };
39
+ }
40
+ watchActiveLeadIdx(e) {
41
+ var t;
42
+ this.leadNameActive = this.leadNames.find((a) => a.val === e) || {
43
+ name: "",
44
+ val: -2
45
+ }, (t = this.leadNameIns) == null || t.attr({
46
+ style: {
47
+ text: this.leadNameActive.name
48
+ }
49
+ });
50
+ }
51
+ watchLeadNameList(e) {
52
+ this.leadNames = e.map((t) => {
53
+ var a;
54
+ return this.activeLeadIdx === t && ((a = this.leadNameIns) == null || a.attr({
55
+ style: {
56
+ text: S[t]
57
+ }
58
+ }), this.leadNameActive = {
59
+ name: S[t],
60
+ val: t
61
+ }), {
62
+ name: S[t],
63
+ val: t
64
+ };
65
+ }).concat({
66
+ name: "ALL",
67
+ val: -1
68
+ });
69
+ }
70
+ get containerWH() {
71
+ return {
72
+ width: this.width - 230,
73
+ height: this.height - 40 - 50
74
+ };
75
+ }
76
+ destroyed() {
77
+ var e, t, a, s, i, l, o, d, u, f, p;
78
+ (e = this.waveFromGroup) == null || e.removeAll(), (t = this.measureGroup) == null || t.removeAll(), (a = this.M1) == null || a.removeAll(), (s = this.M2) == null || s.removeAll(), (i = this.P1) == null || i.removeAll(), (l = this.P2) == null || l.removeAll(), (o = this.R1) == null || o.removeAll(), (d = this.R2) == null || d.removeAll(), (u = this.T1) == null || u.removeAll(), (f = this.T2) == null || f.removeAll();
79
+ try {
80
+ (p = this.sceneIns) == null || p.dispose();
81
+ } catch (A) {
82
+ }
83
+ }
84
+ created() {
85
+ this.modifyAnalysed = /* @__PURE__ */ new Map(), this.measureLineList = [], this.measureLineMoveInfo = {
86
+ x: 0,
87
+ findIdx: 0,
88
+ name: "",
89
+ offLeftX: 0
90
+ }, this.currentGainIdx = this.gains.findIndex((e) => e.value === this.sens / this.gridConfig.cellMg), this.currentSpeedIdx = this.speeds.findIndex((e) => e.value === this.speedValue), this.currentLeadAnalyseValueIdx = this.analyseValue.findIndex((e) => {
91
+ var t;
92
+ return e.BeatID === ((t = this.activeLeadAnalyseValue) == null ? void 0 : t.BeatID);
93
+ }), this.currentSens = this.sens * this.magnification, this.currentSpeedValue = this.speedValue, this.currentStep = this.step * this.magnification, this.currentLeadAnalyseValue = R.clone(this.activeLeadAnalyseValue), this.complexAnalysisvalue = R.clone(this.analyseValue[0]) || null, this.processEnlargeAnalysisData();
94
+ }
95
+ processEnlargeAnalysisData() {
96
+ var e, t, a, s, i;
97
+ this.enlargeAnalysisData = m(c({}, ((e = this.currentLeadAnalyseValue) == null ? void 0 : e.AnabyBeat) || {}), {
98
+ AtrialRate: ((a = (t = this.complexAnalysisvalue) == null ? void 0 : t.AnabyBeat) == null ? void 0 : a.AtrialRate) || 0,
99
+ VentricularRate: ((i = (s = this.complexAnalysisvalue) == null ? void 0 : s.AnabyBeat) == null ? void 0 : i.VentricularRate) || 0,
100
+ QTc: ""
101
+ });
102
+ }
103
+ selectLeadName(e) {
104
+ var t;
105
+ this.leadNameActive = e, (t = this.leadNameIns) == null || t.attr({
106
+ style: {
107
+ text: e.name
108
+ }
109
+ }), this.drawWaveFrom();
110
+ }
111
+ createLeadHead() {
112
+ var s, i;
113
+ const t = this.containerWH.height / 2, a = this.leadHeadConfig.leadHedeWidth / 4;
114
+ this.leadHeadIns && ((s = this.sceneIns) == null || s.remove(this.leadHeadIns)), this.leadHeadIns = new P({
115
+ cursor: "",
116
+ shape: {
117
+ points: [
118
+ [
119
+ 0 + 0,
120
+ 0 + t
121
+ ],
122
+ [
123
+ a + 0,
124
+ 0 + t
125
+ ],
126
+ [
127
+ a + 0,
128
+ -this.currentSens + t
129
+ ],
130
+ [
131
+ 3 * a + 0,
132
+ -this.currentSens + t
133
+ ],
134
+ [
135
+ 3 * a + 0,
136
+ 0 + t
137
+ ],
138
+ [
139
+ 4 * a + 0,
140
+ 0 + t
141
+ ]
142
+ ]
143
+ },
144
+ style: {
145
+ stroke: this.leadHeadConfig.leadHedeColor,
146
+ lineWidth: this.leadHeadConfig.leadHedeLineWidth
147
+ }
148
+ }), (i = this.sceneIns) == null || i.add(this.leadHeadIns);
149
+ }
150
+ createLeadName() {
151
+ var e;
152
+ this.leadNameIns = new x({
153
+ style: {
154
+ x: this.leadHeadConfig.leadHedeWidth,
155
+ y: this.containerWH.height / 2 - this.leadConfig.fontSize,
156
+ text: this.leadNameActive.name,
157
+ fontSize: this.leadConfig.fontSize,
158
+ fill: this.leadConfig.lineColor,
159
+ fontFamily: this.leadConfig.fontFamily
160
+ }
161
+ }), (e = this.sceneIns) == null || e.add(this.leadNameIns);
162
+ }
163
+ createSensAndSpeed() {
164
+ var e, t;
165
+ this.sensAndSpeedIns && ((e = this.sceneIns) == null || e.remove(this.sensAndSpeedIns)), this.sensAndSpeedIns = new x({
166
+ cursor: "",
167
+ style: {
168
+ x: this.leadHeadConfig.leadHedeWidth,
169
+ y: this.containerWH.height - 50,
170
+ text: `${this.currentSens / this.gridConfig.cellMg}mm/mV ${this.currentSpeedValue}mm/s`,
171
+ fontSize: 12,
172
+ fill: "#FF0080",
173
+ fontFamily: this.leadConfig.fontFamily
174
+ }
175
+ }), (t = this.sceneIns) == null || t.add(this.sensAndSpeedIns);
176
+ }
177
+ createWaveFrom() {
178
+ var e;
179
+ this.waveFromIns = new P({
180
+ cursor: "",
181
+ shape: {
182
+ points: []
183
+ },
184
+ style: {
185
+ stroke: this.leadConfig.lineColor,
186
+ lineWidth: this.leadConfig.lineWidth
187
+ }
188
+ }), (e = this.sceneIns) == null || e.add(this.waveFromIns);
189
+ }
190
+ drawWaveFrom() {
191
+ this.leadNameActive.val === -1 ? this.drawAllLead() : this.drawSingleLead(), this.calculatedValue(), this.electricAxisAnalyse(), this.processEnlargeAnalysis();
192
+ }
193
+ drawAllLead() {
194
+ var t, a, s;
195
+ (t = this.waveFromIns) == null || t.hide(), this.waveFromGroup ? this.waveFromGroup.removeAll() : this.waveFromGroup = new B({
196
+ name: "waveFromGroup"
197
+ }), this.longdata = void 0;
198
+ const e = this.containerWH.height / 2;
199
+ for (let i = 0; i < this.leadNames.length - 1; i++) {
200
+ const { beatData: l, startPos: o } = this.getWaveFrom(((a = this.currentLeadAnalyseValue) == null ? void 0 : a.BeatID) || 0, this.leadNames[i].val);
201
+ this.startPos = o, this.drawWaveFromX === 0 && (this.waveFromLenPX = l.length * this.currentStep, this.drawWaveFromX = this.containerWH.width / 2 - this.waveFromLenPX / 2 + this.leadHeadConfig.leadHedeWidth), this.waveFromGroup.add(new P({
202
+ cursor: "",
203
+ name: `${i}`,
204
+ shape: {
205
+ points: l.map((d, u) => [
206
+ u * this.currentStep + this.drawWaveFromX,
207
+ -d + e
208
+ ])
209
+ },
210
+ style: {
211
+ stroke: this.leadColors[i] || this.leadColors[i % this.leadColors.length],
212
+ lineWidth: this.leadConfig.lineWidth
213
+ }
214
+ }));
215
+ }
216
+ (s = this.sceneIns) == null || s.add(this.waveFromGroup);
217
+ }
218
+ drawSingleLead() {
219
+ var i, l, o;
220
+ this.waveFromGroup && ((i = this.sceneIns) == null || i.remove(this.waveFromGroup));
221
+ const { beatData: e, startPos: t, originData: a } = this.getWaveFrom();
222
+ this.startPos = t, this.drawWaveFromX === 0 && (this.waveFromLenPX = e.length * this.currentStep, this.drawWaveFromX = this.containerWH.width / 2 - this.waveFromLenPX / 2 + this.leadHeadConfig.leadHedeWidth), this.longdata = a;
223
+ const s = this.containerWH.height / 2;
224
+ (l = this.waveFromIns) == null || l.attr({
225
+ shape: {
226
+ points: e.map((d, u) => [
227
+ u * this.currentStep + this.drawWaveFromX,
228
+ -d + s
229
+ ])
230
+ }
231
+ }), (o = this.waveFromIns) == null || o.show();
232
+ }
233
+ getWaveFrom(e, t) {
234
+ var a;
235
+ if (e = e !== void 0 ? e : ((a = this.currentLeadAnalyseValue) == null ? void 0 : a.BeatID) || 0, t = t !== void 0 ? t : this.leadNameActive.val, this.typeClass === "ECG") {
236
+ const { beatData: s, startPos: i } = X({
237
+ ComplexData: this.complexData,
238
+ Data: this.normalData,
239
+ AnalyseValue: this.analyseValue,
240
+ BeatID: e,
241
+ leadIdx: t,
242
+ SampleRate: this.sampleRate
243
+ });
244
+ return {
245
+ originData: s,
246
+ beatData: s.map((l) => z(this.sensitivity, l, this.currentSens)),
247
+ startPos: i
248
+ };
249
+ }
250
+ return {
251
+ originData: [],
252
+ beatData: [],
253
+ startPos: -1
254
+ };
255
+ }
256
+ drawMeasureLine() {
257
+ var a, s, i, l, o, d, u, f, p, A, L, v, g, I;
258
+ this.measureGroup ? ((a = this.sceneIns) == null || a.remove(this.measureGroup), this.measureGroup.removeAll()) : this.measureGroup = new B({
259
+ name: "measureGroup"
260
+ });
261
+ const e = H(this.currentSpeedValue, this.gridConfig.cellMg, this.magnification), t = {
262
+ stroke: "#FF09FF",
263
+ lineWidth: 1.5
264
+ };
265
+ this.M1 = this.createMeasureLineGroup("M1", this.drawWaveFromX + 10, t), this.M2 = this.createMeasureLineGroup("M2", this.drawWaveFromX + 10 + e, t), t.stroke = "blue", this.P1 = this.createMeasureLineGroup(
266
+ "P1",
267
+ ((((i = (s = this.currentLeadAnalyseValue) == null ? void 0 : s.KeyPosByBeat) == null ? void 0 : i.Pstart) || 0) - this.startPos) * this.currentStep + this.drawWaveFromX,
268
+ t
269
+ ), this.P2 = this.createMeasureLineGroup(
270
+ "P2",
271
+ ((((o = (l = this.currentLeadAnalyseValue) == null ? void 0 : l.KeyPosByBeat) == null ? void 0 : o.Pend) || 0) - this.startPos) * this.currentStep + this.drawWaveFromX,
272
+ t
273
+ ), this.R1 = this.createMeasureLineGroup(
274
+ "R1",
275
+ ((((u = (d = this.currentLeadAnalyseValue) == null ? void 0 : d.KeyPosByBeat) == null ? void 0 : u.QRSstart) || 0) - this.startPos) * this.currentStep + this.drawWaveFromX,
276
+ t
277
+ ), this.R2 = this.createMeasureLineGroup(
278
+ "R2",
279
+ ((((p = (f = this.currentLeadAnalyseValue) == null ? void 0 : f.KeyPosByBeat) == null ? void 0 : p.QRSend) || 0) - this.startPos) * this.currentStep + this.drawWaveFromX,
280
+ t
281
+ ), this.T1 = this.createMeasureLineGroup(
282
+ "T1",
283
+ ((((L = (A = this.currentLeadAnalyseValue) == null ? void 0 : A.KeyPosByBeat) == null ? void 0 : L.Tstart) || 0) - this.startPos) * this.currentStep + this.drawWaveFromX,
284
+ t
285
+ ), this.T2 = this.createMeasureLineGroup(
286
+ "T2",
287
+ ((((g = (v = this.currentLeadAnalyseValue) == null ? void 0 : v.KeyPosByBeat) == null ? void 0 : g.Tend) || 0) - this.startPos) * this.currentStep + this.drawWaveFromX,
288
+ t
289
+ ), this.measureGroup.add(this.M1), this.measureGroup.add(this.M2), this.measureGroup.add(this.P1), this.measureGroup.add(this.P2), this.measureGroup.add(this.R1), this.measureGroup.add(this.R2), this.measureGroup.add(this.T1), this.measureGroup.add(this.T2), (I = this.sceneIns) == null || I.add(this.measureGroup);
290
+ }
291
+ createMeasureLineGroup(e, t, a) {
292
+ const s = new B({
293
+ name: e,
294
+ draggable: "horizontal",
295
+ ondrag: this.measureLineDrag
296
+ }), i = this.containerWH.height - this.bottomSafeAreaH;
297
+ return s.add(new oe({
298
+ cursor: "w-resize",
299
+ name: `Line_${e}`,
300
+ shape: {
301
+ x1: t,
302
+ y1: 0,
303
+ x2: t,
304
+ y2: i
305
+ },
306
+ style: a
307
+ })), s.add(new de({
308
+ name: "Circle",
309
+ x: t,
310
+ y: i,
311
+ shape: {
312
+ r: 6
313
+ },
314
+ style: {
315
+ fill: "#ccc"
316
+ }
317
+ })), s.add(new x({
318
+ cursor: "",
319
+ name: "Text",
320
+ style: {
321
+ x: t - 7,
322
+ y: i + 12 + 10,
323
+ text: e,
324
+ fontSize: 12,
325
+ fill: "#000",
326
+ fontFamily: "\u5FAE\u8F6F\u96C5\u9ED1"
327
+ }
328
+ })), e !== "M1" && e !== "M2" && (this.measureLineList = [...this.measureLineList, {
329
+ ins: s,
330
+ x: t
331
+ }].sort((l, o) => l.x - o.x)), s;
332
+ }
333
+ measureLineDrag(e) {
334
+ e.target.name === "M1" || e.target.name === "M2" ? this.calculatedValue() : this.calcMeasureLineMove(e);
335
+ }
336
+ calcMeasureLineMove(e) {
337
+ if (e.target.name !== this.measureLineMoveInfo.name) {
338
+ const a = this.measureLineList.findIndex((s) => s.ins.name === e.target.name);
339
+ this.measureLineMoveInfo.findIdx = a, this.measureLineMoveInfo.name = e.target.name;
340
+ }
341
+ if (this.measureLineMoveInfo.findIdx === -1)
342
+ return;
343
+ let t = 0;
344
+ if (this.calcMeasureLineOffx(), this.measureLineMoveInfo.findIdx === 0) {
345
+ const a = this.measureLineList[this.measureLineMoveInfo.findIdx + 1];
346
+ if (t = e.target.childAt(0).shape.x1 + e.target.transform[4] || 0, this.measureLineMoveInfo.offLeftX = t, t < this.drawWaveFromX || t > a.x + a.ins.x - 1.5) {
347
+ e.target.x = this.measureLineMoveInfo.x, this.measureLineMoveInfo.offLeftX = t;
348
+ return;
349
+ }
350
+ } else if (this.measureLineMoveInfo.findIdx === this.measureLineList.length - 1) {
351
+ const a = this.measureLineList[this.measureLineMoveInfo.findIdx - 1];
352
+ if (!a)
353
+ return;
354
+ if (t = e.target.childAt(0).shape.x1 + e.target.transform[4] || 0, this.measureLineMoveInfo.offLeftX = t, t > this.waveFromLenPX + this.drawWaveFromX || t < a.x + a.ins.x - 1.5) {
355
+ e.target.x = this.measureLineMoveInfo.x, this.measureLineMoveInfo.offLeftX = t;
356
+ return;
357
+ }
358
+ } else {
359
+ const a = this.measureLineList[this.measureLineMoveInfo.findIdx + 1], s = this.measureLineList[this.measureLineMoveInfo.findIdx - 1];
360
+ if (t = e.target.childAt(0).shape.x1 + e.target.transform[4] || 0, this.measureLineMoveInfo.offLeftX = t, t > a.x + a.ins.x - 1.5 || t < s.x + s.ins.x - 1.5) {
361
+ e.target.x = this.measureLineMoveInfo.x, this.measureLineMoveInfo.offLeftX = t;
362
+ return;
363
+ }
364
+ }
365
+ this.measureLineMoveInfo.x = e.target.x;
366
+ }
367
+ calcMeasureLineOffx() {
368
+ var t, a, s;
369
+ const e = Math.round((this.measureLineMoveInfo.offLeftX - this.drawWaveFromX) / this.currentStep) + this.startPos;
370
+ switch (this.measureLineMoveInfo.name) {
371
+ case "P1":
372
+ this.currentLeadAnalyseValue.KeyPosByBeat.Pstart = e;
373
+ break;
374
+ case "P2":
375
+ this.currentLeadAnalyseValue.KeyPosByBeat.Pend = e;
376
+ break;
377
+ case "R1":
378
+ this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart = e;
379
+ break;
380
+ case "R2":
381
+ this.currentLeadAnalyseValue.KeyPosByBeat.QRSend = e;
382
+ break;
383
+ case "T1":
384
+ this.currentLeadAnalyseValue.KeyPosByBeat.Tstart = e;
385
+ break;
386
+ case "T2":
387
+ this.currentLeadAnalyseValue.KeyPosByBeat.Tend = e;
388
+ break;
389
+ }
390
+ if (this.electricAxisAnalyse(), this.processEnlargeAnalysis(), this.isShowSyncAnalyseValue) {
391
+ const i = c({}, ((t = this.currentLeadAnalyseValue) == null ? void 0 : t.AnabyBeat) || {});
392
+ for (const l in i)
393
+ Object.prototype.hasOwnProperty.call(i, l) && (i[l] = this.enlargeAnalysisData[l]);
394
+ this.modifyAnalysed.set(((a = this.currentLeadAnalyseValue) == null ? void 0 : a.BeatID) || 0, m(c({}, this.currentLeadAnalyseValue), {
395
+ AnabyBeat: i,
396
+ BeatID: ((s = this.currentLeadAnalyseValue) == null ? void 0 : s.BeatID) || 0
397
+ }));
398
+ }
399
+ }
400
+ processEnlargeAnalysis() {
401
+ var t, a, s, i, l, o;
402
+ const e = {
403
+ start_pos: this.startPos,
404
+ Sensitivity: this.sensitivity,
405
+ SampleRate: this.sampleRate,
406
+ longdata: this.longdata
407
+ };
408
+ if ((this.measureLineMoveInfo.name === "" || this.measureLineMoveInfo.name === "P1" || this.measureLineMoveInfo.name === "R1") && (this.enlargeAnalysisData.PR = Math.round(j(
409
+ this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
410
+ this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,
411
+ this.sampleRate
412
+ ))), (this.measureLineMoveInfo.name === "" || this.measureLineMoveInfo.name === "P1" || this.measureLineMoveInfo.name === "P2") && (this.enlargeAnalysisData.Pd = Math.round(E(
413
+ this.currentLeadAnalyseValue.KeyPosByBeat.Pend,
414
+ this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,
415
+ this.sampleRate
416
+ ))), (this.measureLineMoveInfo.name === "" || this.measureLineMoveInfo.name === "R1" || this.measureLineMoveInfo.name === "R2") && (this.enlargeAnalysisData.QRSd = Math.round(k(
417
+ this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
418
+ this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
419
+ this.sampleRate
420
+ ))), this.measureLineMoveInfo.name === "" || this.measureLineMoveInfo.name === "R1" || this.measureLineMoveInfo.name === "T2") {
421
+ const { QT: d, QTC: u } = _(
422
+ this.currentLeadAnalyseValue.KeyPosByBeat.Tend,
423
+ this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
424
+ this.analyseValue,
425
+ +(((a = (t = this.conventionalECGConfig) == null ? void 0 : t.ecgReviewSetting) == null ? void 0 : a.QTd_algorithm) || 1),
426
+ ((s = this.currentLeadAnalyseValue) == null ? void 0 : s.BeatID) || 0,
427
+ this.sampleRate
428
+ );
429
+ this.enlargeAnalysisData.QT = Math.round(d), this.enlargeAnalysisData.QTc = Math.round(u || (Array.isArray(this.enlargeAnalysisData.QTc) ? this.enlargeAnalysisData.QTc[0] : this.enlargeAnalysisData.QTc));
430
+ }
431
+ if (this.measureLineMoveInfo.name === "" || this.measureLineMoveInfo.name === "T1" || this.measureLineMoveInfo.name === "T2") {
432
+ this.enlargeAnalysisData.Td = Math.round(q(
433
+ this.currentLeadAnalyseValue.KeyPosByBeat.Tend,
434
+ this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,
435
+ this.sampleRate
436
+ ));
437
+ const { TA: d } = $(m(c({}, e), {
438
+ Tstart: this.currentLeadAnalyseValue.KeyPosByBeat.Tstart,
439
+ Tend: this.currentLeadAnalyseValue.KeyPosByBeat.Tend,
440
+ QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
441
+ TPpeak: this.currentLeadAnalyseValue.KeyPosByBeat.TPpeak
442
+ }));
443
+ this.enlargeAnalysisData.TtypeA = y(d || 0, 2);
444
+ }
445
+ if (this.enlargeAnalysisData.Ptype = Y(m(c({}, e), {
446
+ Pstart: this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,
447
+ Pend: this.currentLeadAnalyseValue.KeyPosByBeat.Pend,
448
+ data: this.longdata
449
+ })) || "", this.measureLineMoveInfo.name === "" || this.measureLineMoveInfo.name === "P1" || this.measureLineMoveInfo.name === "P2") {
450
+ const { PA: d } = J(m(c({}, e), {
451
+ Pstart: this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,
452
+ Pend: this.currentLeadAnalyseValue.KeyPosByBeat.Pend,
453
+ PPpeak: this.currentLeadAnalyseValue.KeyPosByBeat.PPpeak
454
+ }));
455
+ this.enlargeAnalysisData.PtypeA = y(d || 0, 2);
456
+ }
457
+ if (this.measureLineMoveInfo.name === "" || this.measureLineMoveInfo.name === "R1" || this.measureLineMoveInfo.name === "R2") {
458
+ const { qrs_morph_type: d, QA: u, QD: f, RA: p, RD: A, SD: L, RPD: v, SA: g, RPA: I } = U(m(c({}, e), {
459
+ QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
460
+ QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend
461
+ }));
462
+ this.enlargeAnalysisData.QRStype = d || "", this.enlargeAnalysisData.QtypeA = y(u || 0, 2), this.enlargeAnalysisData.QD = Math.round(f || 0), this.enlargeAnalysisData.RtypeA = y(p || 0, 2), this.enlargeAnalysisData.StypeA = y(g || 0, 2), this.enlargeAnalysisData.RPA = y(I || 0, 2), this.enlargeAnalysisData.RD = y(A || 0, 2), this.enlargeAnalysisData.SD = y(L || 0, 2), this.enlargeAnalysisData.RPD = y(v || 0, 2);
463
+ const V = Z(
464
+ e.start_pos,
465
+ this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
466
+ this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
467
+ e.Sensitivity,
468
+ e.longdata
469
+ );
470
+ this.enlargeAnalysisData.STJtypeA = y(V || 0, 2), this.enlargeAnalysisData.STstate = ee(V || 0, e.longdata) || "";
471
+ const C = te(m(c({}, e), {
472
+ ComplexData: this.complexData,
473
+ Data: this.normalData,
474
+ QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
475
+ QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
476
+ BeatID: ((i = this.currentLeadAnalyseValue) == null ? void 0 : i.BeatID) || 0,
477
+ AnalyseValue: this.analyseValue,
478
+ leadNameList: this.leadNameList
479
+ }));
480
+ this.enlargeAnalysisData.IandIIandIII = y(C, 2), this.enlargeAnalysisData.RV5Amp = y(ae(m(c({}, e), {
481
+ ComplexData: this.complexData,
482
+ Data: this.normalData,
483
+ QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
484
+ QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
485
+ BeatID: ((l = this.currentLeadAnalyseValue) == null ? void 0 : l.BeatID) || 0,
486
+ AnalyseValue: this.analyseValue,
487
+ leadNameList: this.leadNameList
488
+ })) || 0, 2) + "", this.enlargeAnalysisData.RV5Amp = y(se(m(c({}, e), {
489
+ ComplexData: this.complexData,
490
+ Data: this.normalData,
491
+ QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart,
492
+ QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
493
+ BeatID: ((o = this.currentLeadAnalyseValue) == null ? void 0 : o.BeatID) || 0,
494
+ AnalyseValue: this.analyseValue,
495
+ leadNameList: this.leadNameList
496
+ })) || 0, 2) + "";
497
+ }
498
+ }
499
+ electricAxisAnalyse() {
500
+ var a;
501
+ const e = {
502
+ ComplexData: this.complexData,
503
+ Data: this.normalData,
504
+ BeatID: ((a = this.currentLeadAnalyseValue) == null ? void 0 : a.BeatID) || 0,
505
+ AnalyseValue: this.analyseValue,
506
+ SampleRate: this.sampleRate,
507
+ Sensitivity: this.sensitivity,
508
+ leadNameList: this.leadNameList,
509
+ start_pos: this.startPos
510
+ };
511
+ if (this.measureLineMoveInfo.name === "P1" || this.measureLineMoveInfo.name === "P2") {
512
+ this.enlargeAnalysisData.PAxis = ie(m(c({}, e), {
513
+ Pstart: this.currentLeadAnalyseValue.KeyPosByBeat.Pstart,
514
+ Pend: this.currentLeadAnalyseValue.KeyPosByBeat.Pend
515
+ }));
516
+ return;
517
+ }
518
+ const t = () => {
519
+ let s = Math.abs(
520
+ this.enlargeAnalysisData.QRSAxis - this.enlargeAnalysisData.TAxis
521
+ );
522
+ s > 180 && (s = 360 - s), this.currentLeadAnalyseValue.AnabyBeat.QRS_T = s;
523
+ };
524
+ if (this.measureLineMoveInfo.name === "R1" || this.measureLineMoveInfo.name === "R2") {
525
+ this.enlargeAnalysisData.QRSAxis = ne(m(c({}, e), {
526
+ QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
527
+ QRSstart: this.currentLeadAnalyseValue.KeyPosByBeat.QRSstart
528
+ })), t();
529
+ return;
530
+ }
531
+ if (this.measureLineMoveInfo.name === "T1" || this.measureLineMoveInfo.name === "T2") {
532
+ this.enlargeAnalysisData.TAxis = re(m(c({}, e), {
533
+ QRSend: this.currentLeadAnalyseValue.KeyPosByBeat.QRSend,
534
+ Tend: this.currentLeadAnalyseValue.KeyPosByBeat.Tend
535
+ })), t();
536
+ return;
537
+ }
538
+ }
539
+ calculatedValue() {
540
+ var f, p, A, L;
541
+ const e = (f = this.M1) == null ? void 0 : f.childOfName("Line_M1"), t = (p = this.M2) == null ? void 0 : p.childOfName("Line_M2");
542
+ if (!e || !t)
543
+ return;
544
+ const a = e.shape.x1 + (e.transform && e.transform[4] || 0), s = t.shape.x1 + (t.transform && t.transform[4] || 0), i = Math.abs(a - s), l = le(i, this.currentSpeedValue, this.gridConfig.cellMg, this.magnification);
545
+ this.difference.timeDifference = l;
546
+ const o = parseInt(
547
+ `${(a - this.drawWaveFromX) / this.currentStep}`
548
+ ), d = parseInt(
549
+ `${(s - this.drawWaveFromX) / this.currentStep}`
550
+ );
551
+ let u = [];
552
+ if (this.leadNameActive.val === -1 ? u = ((A = this.waveFromGroup) == null ? void 0 : A.childAt(this.waveFromGroup.childCount() - 1)).shape.points || [] : u = ((L = this.waveFromIns) == null ? void 0 : L.shape.points) || [], d > 0 && o > 0 && d <= u.length - 1 && o <= u.length - 1) {
553
+ const g = (Math.abs(u[d][1] - u[o][1]) / this.currentSens).toFixed(2);
554
+ this.difference.amplitudeDifference = g;
555
+ } else
556
+ this.difference.amplitudeDifference = "";
557
+ }
558
+ toggleGain(e) {
559
+ if (e) {
560
+ this.currentGainIdx < this.gains.length - 1 && (this.currentGainIdx += 1, this.currentSens = this.gains[this.currentGainIdx].value * this.gridConfig.cellMg * this.magnification, this.toggleRender());
561
+ return;
562
+ }
563
+ this.currentGainIdx > 0 && this.currentGainIdx <= this.gains.length - 1 && (this.currentGainIdx -= 1, this.currentSens = this.gains[this.currentGainIdx].value * this.gridConfig.cellMg * this.magnification, this.toggleRender());
564
+ }
565
+ toggleSpeeds(e) {
566
+ console.log("toggleSpeed", this.speeds, this.currentSpeedIdx);
567
+ const t = () => {
568
+ const a = he(this.currentSpeedValue, this.gridConfig.cellMg, this.sampleRate);
569
+ this.currentStep = a * this.magnification;
570
+ };
571
+ if (e) {
572
+ this.currentSpeedIdx < this.speeds.length - 1 && (this.currentSpeedIdx += 1, this.currentSpeedValue = this.speeds[this.currentSpeedIdx].value, t(), this.toggleRender());
573
+ return;
574
+ }
575
+ this.currentSpeedIdx > 0 && this.currentSpeedIdx <= this.speeds.length - 1 && (this.currentSpeedIdx -= 1, this.currentSpeedValue = this.speeds[this.currentSpeedIdx].value, t(), this.toggleRender());
576
+ }
577
+ toggleBeaadId(e) {
578
+ var t, a;
579
+ if (e) {
580
+ this.currentLeadAnalyseValueIdx < this.analyseValue.length - 1 && (this.currentLeadAnalyseValueIdx += 1, this.currentLeadAnalyseValue = m(c({}, this.analyseValue[this.currentLeadAnalyseValueIdx]), {
581
+ BeatCount: ((t = this.currentLeadAnalyseValue) == null ? void 0 : t.BeatCount) || 0
582
+ }), this.toggleRender());
583
+ return;
584
+ }
585
+ this.currentLeadAnalyseValueIdx > 1 && this.currentLeadAnalyseValueIdx <= this.analyseValue.length - 1 && (this.currentLeadAnalyseValueIdx -= 1, this.currentLeadAnalyseValue = m(c({}, this.analyseValue[this.currentLeadAnalyseValueIdx]), {
586
+ BeatCount: ((a = this.currentLeadAnalyseValue) == null ? void 0 : a.BeatCount) || 0
587
+ }), this.toggleRender());
588
+ }
589
+ toggleRender() {
590
+ this.createLeadHead(), this.createSensAndSpeed(), this.drawWaveFrom(), this.drawMeasureLine(), this.calculatedValue(), this.electricAxisAnalyse(), this.processEnlargeAnalysis();
591
+ }
592
+ mainBoxDbClick() {
593
+ const e = Date.now();
594
+ e - this.dbClickTime < 400 ? (this.dbClickTime = 0, this.$emit("notifyCancelEnlargr"), this.$emit("update:isShowEnlargeWave", !1), this.isShowSyncAnalyseValue && this.isSyncAnalyseValue && this.$emit("notifyModifyAnalyse", this.modifyAnalysed)) : this.dbClickTime = e;
595
+ }
596
+ };
597
+ r([
598
+ h({ default: () => "" })
599
+ ], n.prototype, "className", 2);
600
+ r([
601
+ h({
602
+ required: !0,
603
+ type: Number,
604
+ validator: (e) => typeof e == "number"
605
+ })
606
+ ], n.prototype, "width", 2);
607
+ r([
608
+ h({
609
+ required: !0,
610
+ type: Number,
611
+ validator: (e) => typeof e == "number"
612
+ })
613
+ ], n.prototype, "height", 2);
614
+ r([
615
+ h({
616
+ required: !0
617
+ })
618
+ ], n.prototype, "gridConfig", 2);
619
+ r([
620
+ h({
621
+ required: !0
622
+ })
623
+ ], n.prototype, "speedValue", 2);
624
+ r([
625
+ h({
626
+ default: 1
627
+ })
628
+ ], n.prototype, "sens", 2);
629
+ r([
630
+ h({
631
+ default: 1
632
+ })
633
+ ], n.prototype, "step", 2);
634
+ r([
635
+ h({
636
+ required: !0
637
+ })
638
+ ], n.prototype, "sampleRate", 2);
639
+ r([
640
+ h({
641
+ required: !0
642
+ })
643
+ ], n.prototype, "sensitivity", 2);
644
+ r([
645
+ h({
646
+ required: !0,
647
+ default: () => []
648
+ })
649
+ ], n.prototype, "complexData", 2);
650
+ r([
651
+ h({
652
+ required: !0,
653
+ default: () => []
654
+ })
655
+ ], n.prototype, "normalData", 2);
656
+ r([
657
+ h({
658
+ default: !1
659
+ })
660
+ ], n.prototype, "isShowEnlargeWave", 2);
661
+ r([
662
+ h({
663
+ default: !0
664
+ })
665
+ ], n.prototype, "isShowSyncAnalyseValue", 2);
666
+ r([
667
+ h({
668
+ default: () => ({
669
+ leadHedeWidth: 20,
670
+ leadHedeColor: "#000",
671
+ leadHedeLineWidth: 2
672
+ })
673
+ })
674
+ ], n.prototype, "leadHeadConfig", 2);
675
+ r([
676
+ h({
677
+ default: () => ({
678
+ lineColor: "#000",
679
+ lineWidth: 1,
680
+ fontFamily: "\u5FAE\u8F6F\u96C5\u9ED1",
681
+ fontSize: 15
682
+ })
683
+ })
684
+ ], n.prototype, "leadConfig", 2);
685
+ r([
686
+ h({
687
+ default: 5
688
+ })
689
+ ], n.prototype, "magnification", 2);
690
+ r([
691
+ h({
692
+ default: () => []
693
+ })
694
+ ], n.prototype, "leadNameList", 2);
695
+ r([
696
+ h({
697
+ required: !0
698
+ })
699
+ ], n.prototype, "activeLeadIdx", 2);
700
+ r([
701
+ h({
702
+ required: !0
703
+ })
704
+ ], n.prototype, "activeLeadAnalyseValue", 2);
705
+ r([
706
+ h({
707
+ required: !0
708
+ })
709
+ ], n.prototype, "analyseValue", 2);
710
+ r([
711
+ h({
712
+ default: "ECG"
713
+ })
714
+ ], n.prototype, "typeClass", 2);
715
+ r([
716
+ h({
717
+ default: () => ["black", "red", "orange", "yellow", "green", "#4B0082", "blue", "purple", "#FFB6C1", "#EE82EE", "#6A5ACD", "#00FFFF"]
718
+ })
719
+ ], n.prototype, "leadColors", 2);
720
+ r([
721
+ h({
722
+ default: F.CompoundWave
723
+ })
724
+ ], n.prototype, "enlargeWaveMode", 2);
725
+ r([
726
+ h({
727
+ required: !0
728
+ })
729
+ ], n.prototype, "conventionalECGConfig", 2);
730
+ r([
731
+ h({
732
+ default: () => []
733
+ })
734
+ ], n.prototype, "gains", 2);
735
+ r([
736
+ h({
737
+ default: () => []
738
+ })
739
+ ], n.prototype, "speeds", 2);
740
+ r([
741
+ w("activeLeadIdx")
742
+ ], n.prototype, "watchActiveLeadIdx", 1);
743
+ r([
744
+ w("leadNameList", { deep: !0, immediate: !0 })
745
+ ], n.prototype, "watchLeadNameList", 1);
746
+ n = r([
747
+ N({
748
+ name: "Methods"
749
+ })
750
+ ], n);
751
+ export {
752
+ n as default
753
+ };