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,841 @@
1
+ var _ = Object.defineProperty, X = Object.defineProperties;
2
+ var q = Object.getOwnPropertyDescriptors;
3
+ var T = Object.getOwnPropertySymbols;
4
+ var V = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
5
+ var $ = (t, e, i) => e in t ? _(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, v = (t, e) => {
6
+ for (var i in e || (e = {}))
7
+ V.call(e, i) && $(t, i, e[i]);
8
+ if (T)
9
+ for (var i of T(e))
10
+ Y.call(e, i) && $(t, i, e[i]);
11
+ return t;
12
+ }, L = (t, e) => X(t, q(e));
13
+ import K from "vue";
14
+ import Q 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 g } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_zrnidtknow37s43kh2nsmp2h4u/node_modules/vue-property-decorator/lib/decorators/Prop.js";
17
+ import { AnalysisMode as F, throttling as J, getPrintLengthToPx as U, getDataLenTimes as H, LeadNameTexts as G, getPointIdxForPx as b } from "@costy-plus/utils";
18
+ import { init as Z, Group as D, Polyline as I, Line as E, Text as C, Polygon as ee, util as te } from "zrender";
19
+ var ie = Object.defineProperty, ae = Object.getOwnPropertyDescriptor, u = (t, e, i, a) => {
20
+ for (var s = a > 1 ? void 0 : a ? ae(e, i) : e, o = t.length - 1, n; o >= 0; o--)
21
+ (n = t[o]) && (s = (a ? n(e, i, s) : n(s)) || s);
22
+ return a && s && ie(e, i, s), s;
23
+ };
24
+ let c = class extends K {
25
+ constructor() {
26
+ super(...arguments), this.AssistCtx = Object.freeze(null), this.sceneIns = Object.freeze(null), this.layerBgGroup = Object.freeze(null), this.leadHeadGroup = Object.freeze(null), this.splitLineGroup = Object.freeze(null), this.rowAndColwaveFromGroup = Object.freeze(null), this.singleWaveFromGroup = Object.freeze(null), this.addwaveFromGroup = Object.freeze(null), this.leadHeadNameGroup = Object.freeze(null), this.leadHeadOffAndDelGroup = Object.freeze(null), this.rulerGroup = Object.freeze(null), this.arrowGroup = Object.freeze(null), this.heardBeatLineGroup = Object.freeze(null), this.bottomAreaHeight = Object.freeze(100), this.dataTotalTimes = Object.freeze(0), this.totalRows = Object.freeze(0), this.rulerStep = Object.freeze(0), this.drawLoopArrowStartPosIdx = Object.freeze(0), this.dbClickWaveFromTime = Object.freeze(0), this.currentHeardBeat = {
27
+ heardBeat: null,
28
+ ele: null
29
+ }, this.loopArrowY = Object.freeze({
30
+ add: 0,
31
+ rowAndCol: 0
32
+ }), this.fontFamily = Object.freeze("\u5FAE\u8F6F\u96C5\u9ED1"), this.splitBlockHeight = 0, this.splitPoint = 0, this.slidingWindowInfo = Object.freeze({}), this.addSlidingWindowInfo = Object.freeze({}), this.highestAndLowestPoint = Object.freeze({
33
+ Data: {
34
+ maxPoints: 0,
35
+ minPoints: 0
36
+ },
37
+ ComplexData: {
38
+ maxPoints: 0,
39
+ minPoints: 0
40
+ }
41
+ }), this.drawArea = Object.freeze({
42
+ width: 0,
43
+ height: 0
44
+ }), this.vuescrollWH = {
45
+ width: 0,
46
+ height: 0
47
+ }, this.waveDataCopy = [], this.addWaveDataCopy = [], this.singleWaveDataCopy = [], this.leadNameList = [], this.activeLeadIdx = -1, this.activeLeadAnalyseValue = null, this.isShowEnlargeWave = !1;
48
+ }
49
+ get canvasContainer() {
50
+ var t;
51
+ return {
52
+ width: this.width,
53
+ height: this.height - (this.vuescrollConfig.isShow && parseInt(`${(t = this.vuescrollConfig.bar) == null ? void 0 : t.size}`) || 0) || 0
54
+ };
55
+ }
56
+ get waveFromData() {
57
+ var t, e, i;
58
+ return ((t = this.formatEcgData) == null ? void 0 : t.analysisValueMode) === F.CompoundWave ? ((e = this.formatEcgData) == null ? void 0 : e.processedData.handleData.ComplexData) || [] : ((i = this.formatEcgData) == null ? void 0 : i.processedData.handleData.Data) || [];
59
+ }
60
+ get isSingleMode() {
61
+ return this.leadModel.column === 1 && this.leadModel.line === 1;
62
+ }
63
+ destroyed() {
64
+ var t, e, i, a, s, o, n, l, r, f, d;
65
+ (t = this.rowAndColwaveFromGroup) == null || t.removeAll(), (e = this.singleWaveFromGroup) == null || e.removeAll(), (i = this.addwaveFromGroup) == null || i.removeAll(), (a = this.leadHeadGroup) == null || a.removeAll(), (s = this.splitLineGroup) == null || s.removeAll(), (o = this.leadHeadNameGroup) == null || o.removeAll(), (n = this.leadHeadOffAndDelGroup) == null || n.removeAll(), (l = this.rulerGroup) == null || l.removeAll(), (r = this.arrowGroup) == null || r.removeAll(), (f = this.heardBeatLineGroup) == null || f.removeAll(), (d = this.sceneIns) == null || d.dispose();
66
+ }
67
+ init() {
68
+ var t;
69
+ this.initWaveFormPeer(), this.combinationDrawing(), (t = this.formatEcgData) != null && t.processedData.otherParams.PosStart && (this.vuescrollConfig.isShow ? this.$nextTick(() => {
70
+ var e, i;
71
+ this.$refs.vueScroll.scrollBy({
72
+ dx: (((e = this.formatEcgData) == null ? void 0 : e.processedData.otherParams.PosStart) || 0) * (((i = this.formatEcgData) == null ? void 0 : i.step) || 0)
73
+ });
74
+ }) : (this.scrollWaveFrom(this.formatEcgData.processedData.otherParams.PosStart), this.scrollRuler(this.formatEcgData.processedData.otherParams.PosStart), this.scrollArrow(this.formatEcgData.processedData.otherParams.PosStart)));
75
+ }
76
+ initWaveFormPeer() {
77
+ const t = document.getElementById("wave-from-box");
78
+ this.sceneIns = Z(t, {
79
+ width: this.canvasContainer.width,
80
+ height: this.canvasContainer.height,
81
+ devicePixelRatio: 2
82
+ });
83
+ const e = document.getElementById("MXGrid");
84
+ this.AssistCtx = e.getContext("2d");
85
+ }
86
+ combinationDrawing() {
87
+ this.initConfig(), this.drawLeadHead(), this.drawColSplitLine(), this.initSlidingWindowInfo(), this.drawRulerNotes(), this.drawWaveFrom();
88
+ }
89
+ initConfig() {
90
+ var e, i, a, s, o, n, l, r, f;
91
+ this.rowAndColwaveFromGroup = new D({
92
+ name: "rowAndColwaveFrom"
93
+ }), this.singleWaveFromGroup = new D({
94
+ name: "singleWaveFrom"
95
+ }), this.addwaveFromGroup = new D({
96
+ name: "addwaveFrom"
97
+ }), this.leadHeadGroup = new D({
98
+ name: "leadHead"
99
+ }), this.splitLineGroup = new D({
100
+ name: "splitLine"
101
+ }), this.leadHeadNameGroup = new D({
102
+ name: "leadHeadName"
103
+ }), this.leadHeadOffAndDelGroup = new D({
104
+ name: "leadHeadOffAndDel"
105
+ }), this.rulerGroup = new D({
106
+ name: "ruler"
107
+ }), this.arrowGroup = new D({
108
+ name: "arrowLoop"
109
+ }), this.heardBeatLineGroup = new D({
110
+ name: "heardBeatLine"
111
+ }), this.vuescrollWH.width = this.width, this.vuescrollWH.height = this.height;
112
+ let t = this.canvasContainer.width;
113
+ if (((i = (e = this.conventionalECGConfig) == null ? void 0 : e.ecgReviewSetting) == null ? void 0 : i.ecgareawidth) === "1") {
114
+ const d = U(((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.SampleRate) || 0) + this.leadHeadConfig.leadHedeWidth;
115
+ d <= t && (t = d);
116
+ }
117
+ this.drawArea = {
118
+ width: t,
119
+ height: this.canvasContainer.height - this.bottomAreaHeight
120
+ }, this.slidingWindowInfo = {
121
+ points: 0,
122
+ startInd: 0,
123
+ endInd: 0
124
+ }, this.addSlidingWindowInfo = {
125
+ points: 0,
126
+ startInd: 0,
127
+ endInd: 0
128
+ }, this.loopArrowY = {
129
+ add: 0,
130
+ rowAndCol: 0
131
+ }, this.currentHeardBeat = {
132
+ heardBeat: null,
133
+ ele: null
134
+ }, this.leadNameList = ((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.LeadName) || [], this.totalRows = this.leadModel.line + this.leadModel.add || 1, this.highestAndLowestPoint = (o = this.formatEcgData) == null ? void 0 : o.calcHighestAndLowestPoint(), this.isSingleMode ? this.splitBlockHeight = (((n = this.formatEcgData) == null ? void 0 : n.analysisValueMode) === F.CompoundWave ? Math.abs(this.highestAndLowestPoint.ComplexData.maxPoints) + Math.abs(this.highestAndLowestPoint.ComplexData.minPoints) : Math.abs(this.highestAndLowestPoint.Data.maxPoints) + Math.abs(this.highestAndLowestPoint.Data.minPoints)) + 22 : this.splitBlockHeight = this.drawArea.height / this.totalRows, this.dataTotalTimes = H(
135
+ this.waveFromData[0].length || 0,
136
+ ((l = this.formatEcgData) == null ? void 0 : l.processedData.otherParams.SampleRate) || 0
137
+ ), this.rulerStep = (((r = this.formatEcgData) == null ? void 0 : r.step) || 1) * (((f = this.formatEcgData) == null ? void 0 : f.processedData.otherParams.SampleRate) || 1) / (this.gridConfig.cellMg * 2 + 2);
138
+ }
139
+ isLeadOff(t) {
140
+ var e;
141
+ return !!(((e = this.formatEcgData) == null ? void 0 : e.processedData.otherParams.LeadOff) || []).includes(t);
142
+ }
143
+ isLeadDel(t) {
144
+ var e;
145
+ return !!(((e = this.formatEcgData) == null ? void 0 : e.processedData.otherParams.LeadDelete) || []).includes(t);
146
+ }
147
+ onDbClickWaveFrom(t, e) {
148
+ console.log("onDbClickWaveFrom", t);
149
+ const i = Date.now(), a = () => {
150
+ var w, p, m, y;
151
+ const s = t.target.name.split("_");
152
+ this.activeLeadIdx = +s[0];
153
+ const o = +s[1];
154
+ let n = 0, l = 0;
155
+ e === "single" ? (n = t.offsetX - this.singleWaveDataCopy[o].pos[0], l = this.singleWaveDataCopy[o].startInd) : e === "rowAndCol" ? (n = t.offsetX - this.waveDataCopy[o].pos[0], l = this.waveDataCopy[o].startInd || 0) : e === "add" && (n = t.offsetX - this.addWaveDataCopy[o].pos[0], l = this.addWaveDataCopy[o].startInd || 0);
156
+ let r = b(n, ((w = this.formatEcgData) == null ? void 0 : w.step) || 1);
157
+ r += l;
158
+ const f = ((p = this.formatEcgData) == null ? void 0 : p.processedData.otherParams.AnalyseValue) || [];
159
+ let d = null;
160
+ if (this.enlargeWaveMode === F.SelectedHeartbeat) {
161
+ if (r <= f[1].KeyPosByBeat.Tend + 0.1 * (((m = this.formatEcgData) == null ? void 0 : m.processedData.otherParams.SampleRate) || 0))
162
+ d = f[1];
163
+ else
164
+ for (let W = 1; W < f.length; W++)
165
+ if (r > f[W - 1].KeyPosByBeat.Tend + 1 && r < f[W].KeyPosByBeat.Tend + 0.1 * (((y = this.formatEcgData) == null ? void 0 : y.processedData.otherParams.SampleRate) || 0)) {
166
+ d = f[W];
167
+ break;
168
+ }
169
+ } else
170
+ d = f[0];
171
+ console.log("currentAnalyseValue", d, d == null ? void 0 : d.BeatID), d && (this.activeLeadAnalyseValue = L(v({}, d), {
172
+ BeatCount: f.length - 1
173
+ }), d = null, this.isShowEnlargeWave = !0);
174
+ };
175
+ i - this.dbClickWaveFromTime < 400 ? (this.dbClickWaveFromTime = 0, a()) : this.dbClickWaveFromTime = i;
176
+ }
177
+ createLeadHead(t, e) {
178
+ var s;
179
+ const i = this.leadHeadConfig.leadHedeWidth / 4, a = ((s = this.formatEcgData) == null ? void 0 : s.sens) || 0;
180
+ return new I({
181
+ cursor: "",
182
+ shape: {
183
+ points: [
184
+ [
185
+ 0 + t,
186
+ 0 + e
187
+ ],
188
+ [
189
+ i + t,
190
+ 0 + e
191
+ ],
192
+ [
193
+ i + t,
194
+ -a + e
195
+ ],
196
+ [
197
+ 3 * i + t,
198
+ -a + e
199
+ ],
200
+ [
201
+ 3 * i + t,
202
+ 0 + e
203
+ ],
204
+ [
205
+ 4 * i + t,
206
+ 0 + e
207
+ ]
208
+ ]
209
+ },
210
+ style: {
211
+ stroke: this.leadHeadConfig.leadHedeColor,
212
+ lineWidth: this.leadHeadConfig.leadHedeLineWidth
213
+ }
214
+ });
215
+ }
216
+ creatSplitLine(t, e) {
217
+ var i;
218
+ return new E({
219
+ cursor: "",
220
+ shape: {
221
+ x1: 0 + t,
222
+ y1: 0 + e,
223
+ x2: 0 + t,
224
+ y2: (((i = this.formatEcgData) == null ? void 0 : i.sens) || 0) + e
225
+ },
226
+ style: {
227
+ stroke: this.leadHeadConfig.leadHedeColor,
228
+ lineWidth: this.leadHeadConfig.leadHedeLineWidth
229
+ }
230
+ });
231
+ }
232
+ drawLeadHead() {
233
+ var t, e;
234
+ for (let i = 1; i <= this.totalRows; i++)
235
+ (t = this.leadHeadGroup) == null || t.add(this.createLeadHead(0, i * this.splitBlockHeight));
236
+ (e = this.sceneIns) == null || e.add(this.leadHeadGroup);
237
+ }
238
+ drawColSplitLine() {
239
+ var i, a, s, o, n;
240
+ (i = this.splitLineGroup) == null || i.removeAll(), (a = this.sceneIns) == null || a.remove(this.splitLineGroup);
241
+ const t = (this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / this.leadModel.column;
242
+ this.splitPoint = t, this.isSingleMode && (this.splitPoint -= 80);
243
+ let e = 0;
244
+ for (let l = 1; l <= this.leadModel.column - 1; l++) {
245
+ e = l * t + this.leadHeadConfig.leadHedeWidth;
246
+ for (let r = 1; r <= this.leadModel.line; r++)
247
+ (o = this.splitLineGroup) == null || o.add(this.creatSplitLine(e, r * this.splitBlockHeight - (((s = this.formatEcgData) == null ? void 0 : s.sens) || 0) * 0.5));
248
+ }
249
+ (n = this.sceneIns) == null || n.add(this.splitLineGroup);
250
+ }
251
+ initSlidingWindowInfo() {
252
+ var a, s;
253
+ const t = ((a = this.formatEcgData) == null ? void 0 : a.step) || 0, e = Math.ceil(this.splitPoint / t);
254
+ this.slidingWindowInfo = {
255
+ points: e,
256
+ startInd: 0,
257
+ endInd: e
258
+ }, this.vuescrollConfig.isShow && (this.vuescrollWH.width = this.canvasContainer.width + (((s = this.formatEcgData) == null ? void 0 : s.dataPxLen) || 0) - this.splitPoint);
259
+ const i = Math.ceil((this.drawArea.width - this.leadHeadConfig.leadHedeWidth) / t);
260
+ this.addSlidingWindowInfo = {
261
+ points: i,
262
+ startInd: 0,
263
+ endInd: i
264
+ };
265
+ }
266
+ getRednerSinglePoints() {
267
+ let t = 0, e = 0;
268
+ const i = this.waveFromData[this.singleModeInfo.defaultSelect] || [];
269
+ let a = this.slidingWindowInfo.startInd || 0, s = this.slidingWindowInfo.endInd || 0;
270
+ const o = [], n = Math.ceil(i.length / (this.slidingWindowInfo.points || 1));
271
+ for (let l = 0; l < 1; l++) {
272
+ t = l * this.splitPoint + this.leadHeadConfig.leadHedeWidth, e = 0;
273
+ for (let r = 1; r <= n; r++)
274
+ e = r * this.splitBlockHeight, r > 1 && (e *= 0.8, a = s, s = a + (this.slidingWindowInfo.points || 0)), r === 1 && (this.loopArrowY.rowAndCol = e), o.push({
275
+ pos: [t, e],
276
+ startInd: a,
277
+ endInd: s,
278
+ data: i.slice(a, s).map((f, d) => {
279
+ var w;
280
+ return [d * (((w = this.formatEcgData) == null ? void 0 : w.step) || 0), -f];
281
+ })
282
+ });
283
+ }
284
+ return o;
285
+ }
286
+ getRednerPoints() {
287
+ let t = 0, e = 0, i = 0, a = [], s = this.slidingWindowInfo.startInd || 0, o = this.slidingWindowInfo.endInd || 0;
288
+ const n = [];
289
+ for (let l = 0; l < this.leadModel.column; l++) {
290
+ t = l * this.splitPoint + this.leadHeadConfig.leadHedeWidth, e = 0, this.leadModel.isContinuous && l > 0 && (s = o, o = s + (this.slidingWindowInfo.points || 0));
291
+ for (let r = 1; r <= this.leadModel.line && (e = r * this.splitBlockHeight, !(i > (this.waveFromData || []).length - 1)); r++)
292
+ a = this.waveFromData[i] || [], i++, r === 1 && (this.loopArrowY.rowAndCol = e), n.push({
293
+ pos: [t, e],
294
+ startInd: s,
295
+ endInd: o,
296
+ data: a.slice(s, o).map((f, d) => {
297
+ var w;
298
+ return [d * (((w = this.formatEcgData) == null ? void 0 : w.step) || 0), -f];
299
+ })
300
+ });
301
+ }
302
+ return n;
303
+ }
304
+ getAddRednerPoints() {
305
+ const t = [], e = this.leadHeadConfig.leadHedeWidth;
306
+ let i = 0, a = 0, s = [];
307
+ for (let o = 0; o < this.leadModel.add; o++)
308
+ a = this.longLeadConfig[o], i = (o + this.leadModel.line + 1) * this.splitBlockHeight, s = this.waveFromData[a] || [], o === 0 && (this.loopArrowY.add = i), t.push({
309
+ pos: [e, i],
310
+ startInd: this.addSlidingWindowInfo.startInd || 0,
311
+ endInd: this.addSlidingWindowInfo.endInd || 0,
312
+ data: s.slice(this.addSlidingWindowInfo.startInd, this.addSlidingWindowInfo.endInd).map((n, l) => {
313
+ var r;
314
+ return [l * (((r = this.formatEcgData) == null ? void 0 : r.step) || 0), -n];
315
+ })
316
+ });
317
+ return t;
318
+ }
319
+ createSingleWaveFrom() {
320
+ var o, n, l, r, f, d, w;
321
+ (o = this.singleWaveFromGroup) == null || o.removeAll();
322
+ const t = (((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.LeadName) || [])[this.singleModeInfo.defaultSelect] || 0;
323
+ let e = this.getRednerSinglePoints(), i = H(this.slidingWindowInfo.points || 0, ((l = this.formatEcgData) == null ? void 0 : l.processedData.otherParams.SampleRate) || 0), a = 0, s = 0;
324
+ for (let p = 0; p < e.length && !(e[p].pos[1] > this.drawArea.height + this.bottomAreaHeight); p++)
325
+ this.isLeadDel(t) || (a = parseInt(`${i / 1e3 / 60}`, 10), s = parseInt(`${i / 1e3 % 60}`, 10), a = s === 60 ? a += 1 : a, a = a === 0 ? "00" : a < 10 ? `0${a}` : a, s = s === 0 || s === 60 ? "00" : s < 10 ? `0${s}` : s, (r = this.singleWaveFromGroup) == null || r.add(new I({
326
+ cursor: "",
327
+ name: this.singleModeInfo.defaultSelect + "_" + p,
328
+ shape: {
329
+ points: e[p].data.map(([m, y]) => [
330
+ m + e[p].pos[0],
331
+ y + e[p].pos[1]
332
+ ])
333
+ },
334
+ style: {
335
+ stroke: this.leadConfig.lineColor,
336
+ lineWidth: this.leadConfig.lineWidth
337
+ },
338
+ onclick: (m) => {
339
+ this.onDbClickWaveFrom(m, "single");
340
+ }
341
+ })), (d = this.singleWaveFromGroup) == null || d.add(new C({
342
+ cursor: "",
343
+ style: {
344
+ x: e[p].pos[0],
345
+ y: e[p].pos[1] - (((f = this.formatEcgData) == null ? void 0 : f.sens) || 0) / 2,
346
+ text: p === 0 ? "00:00 \u5FC3\u7387" : `${a}:${s} \u5FC3\u7387`,
347
+ fontWeight: "bold",
348
+ fontSize: 14,
349
+ fill: "#FF0080",
350
+ fontFamily: this.fontFamily
351
+ }
352
+ })), p > 0 && (i += i));
353
+ this.createLeadName(t, e[0].pos[0] - 10, e[0].pos[1] + 10), this.createLeadOffAndDel(t, e[0].pos[0] - 5, e[0].pos[1] - (((w = this.formatEcgData) == null ? void 0 : w.sens) || 0) / 2 - 15), this.singleWaveDataCopy = e, e = null;
354
+ }
355
+ createAddWaveFrom() {
356
+ var e, i;
357
+ console.time("createAddWaveFrom");
358
+ let t = this.getAddRednerPoints();
359
+ for (let a = 0; a < t.length; a++)
360
+ this.isLeadDel(this.longLeadConfig[a]) || ((e = this.addwaveFromGroup) == null || e.add(new I({
361
+ cursor: "",
362
+ name: this.longLeadConfig[a] + "_" + a,
363
+ shape: {
364
+ points: t[a].data.map(([s, o]) => [
365
+ s + t[a].pos[0],
366
+ o + t[a].pos[1]
367
+ ])
368
+ },
369
+ style: {
370
+ stroke: this.leadConfig.lineColor,
371
+ lineWidth: this.leadConfig.lineWidth
372
+ },
373
+ onclick: (s) => {
374
+ this.onDbClickWaveFrom(s, "add");
375
+ }
376
+ })), this.createLeadName(this.longLeadConfig[a], t[a].pos[0], t[a].pos[1] - 15, !0), this.createLeadOffAndDel(this.longLeadConfig[a], t[a].pos[0] - 5, t[a].pos[1] - (((i = this.formatEcgData) == null ? void 0 : i.sens) || 0) / 2 - 15));
377
+ console.timeEnd("createAddWaveFrom"), this.addWaveDataCopy = t, t = null;
378
+ }
379
+ createRowAndColWaveFrom() {
380
+ var i, a, s, o, n, l;
381
+ console.time("createRowAndColWaveFrom"), (i = this.rowAndColwaveFromGroup) == null || i.removeAll();
382
+ let t = this.getRednerPoints(), e = 0;
383
+ for (let r = 0; r < t.length; r++)
384
+ e = (((a = this.formatEcgData) == null ? void 0 : a.processedData.otherParams.LeadName) || [])[r] || 0, this.isLeadDel(e) || (s = this.rowAndColwaveFromGroup) == null || s.add(new I({
385
+ cursor: "",
386
+ name: r + "_" + r,
387
+ shape: {
388
+ points: t[r].data.map(([f, d]) => [
389
+ f + t[r].pos[0],
390
+ d + t[r].pos[1]
391
+ ])
392
+ },
393
+ style: {
394
+ stroke: this.leadConfig.lineColor,
395
+ lineWidth: this.leadConfig.lineWidth
396
+ },
397
+ onclick: (f) => {
398
+ this.onDbClickWaveFrom(f, "rowAndCol");
399
+ }
400
+ })), r < this.leadModel.line ? (this.createLeadName(e, t[r].pos[0], t[r].pos[1] - 15), this.createLeadOffAndDel(e, t[r].pos[0] - 5, t[r].pos[1] - (((o = this.formatEcgData) == null ? void 0 : o.sens) || 0) / 2 - 15)) : (this.createLeadName(e, t[r].pos[0] + 5, t[r].pos[1] - (((n = this.formatEcgData) == null ? void 0 : n.sens) || 0) / 2), this.createLeadOffAndDel(e, t[r].pos[0] - 5, t[r].pos[1] - (((l = this.formatEcgData) == null ? void 0 : l.sens) || 0) / 2 + 9));
401
+ this.waveDataCopy = t, t = null;
402
+ }
403
+ createLeadName(t, e, i, a = !1) {
404
+ var s;
405
+ (s = this.leadHeadNameGroup) == null || s.add(new C({
406
+ style: {
407
+ x: e,
408
+ y: i,
409
+ text: G[t],
410
+ fontSize: this.leadConfig.fontSize,
411
+ fill: this.leadConfig.lineColor,
412
+ fontFamily: this.leadConfig.fontFamily
413
+ },
414
+ oncontextmenu: (o) => {
415
+ o.event.preventDefault(), this.$emit("notiifyLeadName", {
416
+ event: L(v({}, o), {
417
+ name: G[t],
418
+ idx: t
419
+ }),
420
+ isAdd: a
421
+ });
422
+ },
423
+ onclick: (o) => {
424
+ this.$emit("notiifyLeadName", {
425
+ event: L(v({}, o), {
426
+ name: G[t],
427
+ idx: t
428
+ }),
429
+ isAdd: a
430
+ });
431
+ }
432
+ }));
433
+ }
434
+ createLeadOffAndDel(t, e, i) {
435
+ var a;
436
+ (this.isLeadOff(t) || this.isLeadDel(t)) && ((a = this.leadHeadOffAndDelGroup) == null || a.add(new C({
437
+ cursor: "",
438
+ style: {
439
+ x: e,
440
+ y: i,
441
+ text: "X",
442
+ fontWeight: "bold",
443
+ fontSize: 18,
444
+ fill: "#E42c03",
445
+ fontFamily: this.fontFamily
446
+ }
447
+ })));
448
+ }
449
+ drawRulerNotes() {
450
+ var a, s, o, n;
451
+ if (!this.rulerConfig.isShow)
452
+ return;
453
+ const t = {
454
+ fill: "#FF0080",
455
+ fontSize: 13,
456
+ fontFamily: this.fontFamily
457
+ }, e = new C({
458
+ cursor: "",
459
+ style: v({
460
+ text: "(s)",
461
+ x: this.leadHeadConfig.leadHedeWidth / 2 - 8,
462
+ y: this.drawArea.height + this.bottomAreaHeight - 25
463
+ }, t)
464
+ }), i = new C({
465
+ style: v({
466
+ text: `${(a = this.formatEcgData) == null ? void 0 : a.gain}mm/mV ${(s = this.formatEcgData) == null ? void 0 : s.speed}mm/s`,
467
+ x: this.leadHeadConfig.leadHedeWidth / 2 + 20,
468
+ y: this.drawArea.height + this.bottomAreaHeight - 40
469
+ }, t)
470
+ });
471
+ (o = this.sceneIns) == null || o.add(i), (n = this.sceneIns) == null || n.add(e);
472
+ }
473
+ drawRuler(t = 0) {
474
+ var o, n, l, r, f;
475
+ if (!this.rulerConfig.isShow)
476
+ return;
477
+ const e = this.dataTotalTimes / 1e3;
478
+ let i = this.leadHeadConfig.leadHedeWidth, a = 0, s = e;
479
+ if (this.leadModel.isContinuous)
480
+ s = e * 5;
481
+ else if (!this.leadModel.add && ((o = this.formatEcgData) == null ? void 0 : o.step)) {
482
+ const d = b(this.splitPoint, this.formatEcgData.step), w = H(d, ((n = this.formatEcgData) == null ? void 0 : n.processedData.otherParams.SampleRate) || 0) / 1e3;
483
+ s = t + w;
484
+ }
485
+ for (let d = t; d <= s; d = +(d + 0.1).toFixed(1))
486
+ d !== t && (i += this.rulerStep), d % 1 === 0 ? (a = this.canvasContainer.height - 10, (l = this.rulerGroup) == null || l.add(new C({
487
+ cursor: "",
488
+ style: {
489
+ x: i,
490
+ y: a - 15,
491
+ text: d + "",
492
+ fontSize: 13,
493
+ fontFamily: this.fontFamily,
494
+ fill: "#FF0080"
495
+ }
496
+ }))) : a = this.canvasContainer.height - 5, (r = this.rulerGroup) == null || r.add(new E({
497
+ cursor: "",
498
+ shape: {
499
+ x1: i,
500
+ y1: a,
501
+ x2: i,
502
+ y2: this.canvasContainer.height
503
+ },
504
+ style: {
505
+ stroke: "#FF0080",
506
+ lineWidth: 2
507
+ }
508
+ }));
509
+ (f = this.sceneIns) == null || f.add(this.rulerGroup);
510
+ }
511
+ drawWaveFrom() {
512
+ var t, e, i;
513
+ this.isSingleMode ? (this.addWaveDataCopy = [], this.waveDataCopy = [], this.createSingleWaveFrom(), (t = this.sceneIns) == null || t.add(this.singleWaveFromGroup)) : (this.singleWaveDataCopy = [], this.createAddWaveFrom(), this.createRowAndColWaveFrom(), (e = this.sceneIns) == null || e.add(this.rowAndColwaveFromGroup), (i = this.sceneIns) == null || i.add(this.addwaveFromGroup)), this.drawLeadHeadNameAndOffOrDel(), this.drawRuler(), this.drawLoopArrow();
514
+ }
515
+ drawLeadHeadNameAndOffOrDel() {
516
+ var t, e;
517
+ (t = this.sceneIns) == null || t.add(this.leadHeadNameGroup), (e = this.sceneIns) == null || e.add(this.leadHeadOffAndDelGroup);
518
+ }
519
+ drawLoopArrow(t = 0) {
520
+ var l, r, f, d, w, p, m, y, W, x, O, M, R, k, B, z, j;
521
+ if (this.drawLoopArrowStartPosIdx = t, !this.heartFight.isShow)
522
+ return;
523
+ this.heartFight.mode && this.currentHeardBeat.heardBeat === null && (this.currentHeardBeat.heardBeat = ((l = this.formatEcgData) == null ? void 0 : l.heartBeatPosition[this.heartFight.defaultSelect]) || null, this.drawHeardBeatLine());
524
+ let e = 0, i = 0;
525
+ this.leadModel.add ? i = this.loopArrowY.add - (((r = this.formatEcgData) == null ? void 0 : r.sens) || 0) - this.splitBlockHeight / 3.5 : i = 20;
526
+ let a = 0, s = 0;
527
+ const o = {
528
+ fontSize: 12,
529
+ fill: "red",
530
+ fontFamily: this.fontFamily
531
+ };
532
+ let n = 0;
533
+ for (let P = 0; P < (((f = this.formatEcgData) == null ? void 0 : f.heartBeatPosition) || []).length; P++) {
534
+ const h = (d = this.formatEcgData) == null ? void 0 : d.heartBeatPosition[P];
535
+ if (n = ((h == null ? void 0 : h.position) || 0) - t, !(t > ((h == null ? void 0 : h.position) || 0)) && !(!this.leadModel.isContinuous && !this.leadModel.add && n > (this.slidingWindowInfo.points || 0))) {
536
+ if (((h == null ? void 0 : h.position) || 0) - this.addSlidingWindowInfo.startInd > (this.addSlidingWindowInfo.points || 0))
537
+ break;
538
+ e = n * (((w = this.formatEcgData) == null ? void 0 : w.step) || 0) + this.leadHeadConfig.leadHedeWidth - 9.5, s = 0, (y = this.arrowGroup) == null || y.add(new ee({
539
+ name: "arrow_box",
540
+ shape: {
541
+ points: [
542
+ [4 + e, 0 + i],
543
+ [15 + e, 0 + i],
544
+ [15 + e, 10 + i],
545
+ [19 + e, 10 + i],
546
+ [9.5 + e, 22 + i],
547
+ [0 + e, 10 + i],
548
+ [4 + e, 10 + i],
549
+ [4 + e, 0 + i]
550
+ ]
551
+ },
552
+ style: {
553
+ fill: ((m = (p = this.currentHeardBeat) == null ? void 0 : p.heardBeat) == null ? void 0 : m.index) === (h == null ? void 0 : h.index) ? "blue" : "#ccc"
554
+ },
555
+ onclick: (S) => {
556
+ var N;
557
+ !this.heartFight.mode || (S.target.attr({
558
+ style: { fill: "blue" }
559
+ }), (N = this.arrowGroup) == null || N.children().filter((A) => A.name === "arrow_box").forEach((A) => {
560
+ A.id !== S.target.id && A.attr({
561
+ style: { fill: "#ccc" }
562
+ });
563
+ }), this.arrowLoopClick(h, S.target));
564
+ }
565
+ })), this.heartFight.heartrate && (a = ((W = this.AssistCtx) == null ? void 0 : W.measureText(`${(h == null ? void 0 : h.heartrate) || ""}`).width) || 0, (x = this.arrowGroup) == null || x.add(new C({
566
+ cursor: "",
567
+ style: v({
568
+ x: 4 + e - a * 1.5,
569
+ y: s + i,
570
+ text: `${(h == null ? void 0 : h.heartrate) || ""}`
571
+ }, o)
572
+ })), s += 12), this.heartFight.interval && (a = ((O = this.AssistCtx) == null ? void 0 : O.measureText(`${(h == null ? void 0 : h.interval) || ""}`).width) || 0, (M = this.arrowGroup) == null || M.add(new C({
573
+ cursor: "",
574
+ style: v({
575
+ x: 4 + e - a * 1.5,
576
+ y: s + i,
577
+ text: `${(h == null ? void 0 : h.interval) || ""}`
578
+ }, o)
579
+ })), s += 12), this.heartFight.qrstCompany && (a = ((R = this.AssistCtx) == null ? void 0 : R.measureText(`${(h == null ? void 0 : h.qrstCompany) || ""}`).width) || 0, (k = this.arrowGroup) == null || k.add(new C({
580
+ cursor: "",
581
+ style: v({
582
+ x: 4 + e - a * 1.5,
583
+ y: s + i,
584
+ text: `${(h == null ? void 0 : h.qrstCompany) || ""}`
585
+ }, o)
586
+ })), s += 12), this.heartFight.telectricalaxis && (a = ((B = this.AssistCtx) == null ? void 0 : B.measureText(`${(h == null ? void 0 : h.telectricalaxis) || ""}`).width) || 0, (z = this.arrowGroup) == null || z.add(new C({
587
+ cursor: "",
588
+ style: v({
589
+ x: 4 + e - a * 1.5,
590
+ y: s + i,
591
+ text: `${(h == null ? void 0 : h.telectricalaxis) || ""}`
592
+ }, o)
593
+ })));
594
+ }
595
+ }
596
+ (j = this.sceneIns) == null || j.add(this.arrowGroup);
597
+ }
598
+ arrowLoopClick(t, e) {
599
+ this.$emit("notifyHeardBeat", te.clone(t)), this.currentHeardBeat.heardBeat = t, this.currentHeardBeat.ele = e, this.drawHeardBeatLine();
600
+ }
601
+ drawHeardBeatLine(t = 0) {
602
+ var n, l, r, f, d, w;
603
+ if (!this.currentHeardBeat.heardBeat)
604
+ return;
605
+ (n = this.heardBeatLineGroup) == null || n.removeAll(), (l = this.sceneIns) == null || l.remove(this.heardBeatLineGroup);
606
+ let e = this.formatEcgData.processedData.otherParams.AnalyseValue[this.currentHeardBeat.heardBeat.index].KeyPosByBeat, i = 0, a = this.getRednerPoints(), s = this.getAddRednerPoints(), o;
607
+ for (const p in e)
608
+ if (["Pstart", "Pend", "QRSstart", "QRSend", "Tstart", "Tend"].includes(p) && Object.prototype.hasOwnProperty.call(e, p)) {
609
+ i = (e[p] - this.slidingWindowInfo.startInd) * (((r = this.formatEcgData) == null ? void 0 : r.step) || 0);
610
+ e:
611
+ for (let m = 0; m < a.length; m++)
612
+ if (!(this.isLeadOff(m) || this.isLeadDel(m))) {
613
+ if (t > e[p] || !this.leadModel.isContinuous && e[p] - this.slidingWindowInfo.startInd > (this.slidingWindowInfo.points || 0) || (o = a[m], this.leadModel.isContinuous && m > this.leadModel.line - 1))
614
+ break e;
615
+ (f = this.heardBeatLineGroup) == null || f.add(this.createHeardBeatLine(o.pos[0] + i, o.pos[1]));
616
+ }
617
+ e:
618
+ for (let m = 0; m < s.length; m++)
619
+ if (!(this.isLeadOff(this.longLeadConfig[m]) && this.isLeadDel(this.longLeadConfig[m]))) {
620
+ if (t > e[p])
621
+ break e;
622
+ o = s[m], (d = this.heardBeatLineGroup) == null || d.add(this.createHeardBeatLine(o.pos[0] + i, o.pos[1]));
623
+ }
624
+ }
625
+ (w = this.sceneIns) == null || w.add(this.heardBeatLineGroup), e = null, a = null, s = null;
626
+ }
627
+ createHeardBeatLine(t, e) {
628
+ return new E({
629
+ cursor: "",
630
+ shape: {
631
+ x1: t,
632
+ y1: e - 10,
633
+ x2: t,
634
+ y2: e + 10
635
+ },
636
+ style: {
637
+ stroke: "blue",
638
+ lineWidth: 1
639
+ }
640
+ });
641
+ }
642
+ handleScroll(t, e, i) {
643
+ var a;
644
+ if (e.type === "horizontal") {
645
+ e.scrollLeft = e.scrollLeft || 0;
646
+ const s = b(e.scrollLeft, ((a = this.formatEcgData) == null ? void 0 : a.step) || 1);
647
+ this.scrollWaveFrom(s), this.scrollRuler(s), this.scrollArrow(s), this.$emit("notifyScrollPointIdx", s);
648
+ }
649
+ }
650
+ scrollWaveFrom(t) {
651
+ var a, s;
652
+ this.slidingWindowInfo.startInd = t, this.slidingWindowInfo.endInd = t + (this.slidingWindowInfo.points || 0), this.addSlidingWindowInfo.startInd = t, this.addSlidingWindowInfo.endInd = t + (this.addSlidingWindowInfo.points || 0);
653
+ let e = this.getRednerPoints(), i = this.getAddRednerPoints();
654
+ this.waveDataCopy = e, this.addWaveDataCopy = i, (a = this.rowAndColwaveFromGroup) == null || a.eachChild((o, n) => {
655
+ n = n || 0, o.attr({
656
+ shape: {
657
+ points: e[n].data.map(([l, r]) => [
658
+ l + e[n].pos[0],
659
+ r + e[n].pos[1]
660
+ ])
661
+ }
662
+ });
663
+ }), (s = this.addwaveFromGroup) == null || s.eachChild((o, n) => {
664
+ n = n || 0, o.attr({
665
+ shape: {
666
+ points: i[n].data.map(([l, r]) => [
667
+ l + i[n].pos[0],
668
+ r + i[n].pos[1]
669
+ ])
670
+ }
671
+ });
672
+ }), e = null, i = null;
673
+ }
674
+ scrollRuler(t) {
675
+ var i, a, s;
676
+ (i = this.rulerGroup) == null || i.removeAll(), (a = this.sceneIns) == null || a.remove(this.rulerGroup);
677
+ const e = H(t, ((s = this.formatEcgData) == null ? void 0 : s.processedData.otherParams.SampleRate) || 0) / 1e3;
678
+ this.drawRuler(e);
679
+ }
680
+ scrollArrow(t) {
681
+ var e, i;
682
+ (e = this.arrowGroup) == null || e.removeAll(), (i = this.sceneIns) == null || i.remove(this.arrowGroup), this.drawLoopArrow(t), this.drawHeardBeatLine(t);
683
+ }
684
+ };
685
+ u([
686
+ g({
687
+ required: !0,
688
+ type: Number,
689
+ validator: (t) => typeof t == "number"
690
+ })
691
+ ], c.prototype, "width", 2);
692
+ u([
693
+ g({
694
+ required: !0,
695
+ type: Number,
696
+ validator: (t) => typeof t == "number"
697
+ })
698
+ ], c.prototype, "height", 2);
699
+ u([
700
+ g({
701
+ required: !0
702
+ })
703
+ ], c.prototype, "gridConfig", 2);
704
+ u([
705
+ g({
706
+ default: 5,
707
+ type: Number
708
+ })
709
+ ], c.prototype, "cellPoints", 2);
710
+ u([
711
+ g({
712
+ required: !0
713
+ })
714
+ ], c.prototype, "conventionalECGConfig", 2);
715
+ u([
716
+ g({
717
+ default: () => ({
718
+ leadHedeWidth: 20,
719
+ leadHedeColor: "#000",
720
+ leadHedeLineWidth: 2
721
+ })
722
+ })
723
+ ], c.prototype, "leadHeadConfig", 2);
724
+ u([
725
+ g({
726
+ required: !0
727
+ })
728
+ ], c.prototype, "formatEcgData", 2);
729
+ u([
730
+ g({
731
+ required: !0
732
+ })
733
+ ], c.prototype, "leadModel", 2);
734
+ u([
735
+ g({
736
+ default: () => ({
737
+ lineColor: "#000",
738
+ lineWidth: 1,
739
+ fontFamily: "\u5FAE\u8F6F\u96C5\u9ED1",
740
+ fontSize: 15
741
+ })
742
+ })
743
+ ], c.prototype, "leadConfig", 2);
744
+ u([
745
+ g({
746
+ default: () => [1, 6, 10]
747
+ })
748
+ ], c.prototype, "longLeadConfig", 2);
749
+ u([
750
+ g({
751
+ default: () => ({
752
+ isShow: !1,
753
+ mode: !1,
754
+ defaultSelect: 2,
755
+ heartrate: !1,
756
+ interval: !1,
757
+ qrstCompany: !1,
758
+ telectricalaxis: !1
759
+ })
760
+ })
761
+ ], c.prototype, "heartFight", 2);
762
+ u([
763
+ g({
764
+ default: () => ({
765
+ isShow: !0,
766
+ scrollPanel: {
767
+ scrollingY: !1
768
+ },
769
+ bar: {
770
+ keepShow: !0,
771
+ size: "10px"
772
+ }
773
+ })
774
+ })
775
+ ], c.prototype, "vuescrollConfig", 2);
776
+ u([
777
+ g({
778
+ default: () => ({
779
+ isShow: !1
780
+ })
781
+ })
782
+ ], c.prototype, "rulerConfig", 2);
783
+ u([
784
+ g({
785
+ default: () => ({
786
+ isShow: !1
787
+ })
788
+ })
789
+ ], c.prototype, "measurRulerConfig", 2);
790
+ u([
791
+ g({
792
+ default: () => ({
793
+ isShow: !1
794
+ })
795
+ })
796
+ ], c.prototype, "paralleRulerConfig", 2);
797
+ u([
798
+ g({
799
+ default: () => ({
800
+ isShow: !1
801
+ })
802
+ })
803
+ ], c.prototype, "magnifierRulerConfig", 2);
804
+ u([
805
+ g({
806
+ default: 60
807
+ })
808
+ ], c.prototype, "ventricularRate", 2);
809
+ u([
810
+ g({
811
+ default: F.CompoundWave
812
+ })
813
+ ], c.prototype, "enlargeWaveMode", 2);
814
+ u([
815
+ g({
816
+ default: () => []
817
+ })
818
+ ], c.prototype, "gains", 2);
819
+ u([
820
+ g({
821
+ default: () => []
822
+ })
823
+ ], c.prototype, "speeds", 2);
824
+ u([
825
+ g({
826
+ default: () => ({
827
+ defaultSelect: 1
828
+ })
829
+ })
830
+ ], c.prototype, "singleModeInfo", 2);
831
+ u([
832
+ J(200)
833
+ ], c.prototype, "handleScroll", 1);
834
+ c = u([
835
+ Q({
836
+ name: "Methods"
837
+ })
838
+ ], c);
839
+ export {
840
+ c as default
841
+ };